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

 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 ZH,GO,jIw,Zag,YF,uf,GOO,gg,RI,fHO,oFy,D1a,lf,m1I,sIt,pa,nFE,U11,Oaa,Rth,NgD,IHH,PfF,CfH,QIE,htH,D0,LEg,uE,vFt,n8,d1F,r2,Fm,aHI,x1I,p8,C8,MIf,jVH,y5a,BJ,c5y,Z8H,Git,oWF,WQH,L8,YZH,uma,r5f,oH,FQO,U3a,$3f,KQF,O8t,fQ,nWF,W3,XJH,b8O,I0I,pJO,PEa,u9,VVh,CEt,QVh,A5f,B2w,H8g,d3w,SZD,a0D,MVh,kiD,y9a,jHH,RH,W6a,oQF,NH,DHa,sHh,YB1,mHH,IH,hEE,pQ,P3,J9,nQD,uZO,tDt,A9,X3E,bQ1,F6h,$Ha,UHt,K6h,OQI,gQD,CQ,lgO,NSt,p3t,C9f,MH,HQD,P9I,L6t,dHw,SBF,w31,xHt,j$f,WfE,cnF,GeF,f3D,Y3I,nXI,$9w,R01,PFh,XM,VQy,Q$F,Anw,gf,lF,
I$,pf,V7,hn,Lf,vX,S3H,x9w,ifI,wXt,jQO,cp,ym1,Gt,fc,oQ,DG,cmO,Zcg,Gt1,fGE,oif,zlg,Y$I,moI,sQt,tqa,s$,mp,nia,Xph,bcE,Fph,rmt,Uo1,KpH,OcO,U$,$i,Kc,O$,RQ,RlH,E$,Eiy,Jmf,IQ,Vqt,CRH,QQH,Pp,Ama,hlH,Bsa,Jm,vig,Cc,Tsa,aGH,Qt,icg,xoE,Mqt,elw,wpH,q$F,Bp,ktI,jfD,Hp,ySh,WVg,Lc,vp,ds,Sq,cSF,GaI,ZPw,Tt,oyh,DgI,z9h,xi,eq,ws,qo,ki,jL,YbF,sfF,uFF,tLf,nyD,Xuw,bPE,rSh,FVI,UgF,$gI,KVw,Wu,OPF,gyH,R9a,za,Yy,l_y,I_D,puw,PGf,VLt,CGO,QfH,HPO,LVh,vyt,dgD,SbH,TQt,a_w,e9a,uG,wuf,qbI,tS,kaH,jef,yoa,WMy,Zgt,XkO,bg1,rog,$Qf,KMD,
KP,OgF,ldO,IdF,pkh,PCF,JoH,VZH,CCt,Qe1,Aoa,BLy,Hgy,ErH,LMD,vrE,dQy,SRa,TLD,adH,xQD,iga,MZH,j2y,qRg,clw,ylH,WTh,fSH,okF,DPH,ZLg,YNy,G9D,s2D,LP,vu,SL,u8O,nkg,XaE,FTa,ISF,$Pg,UPy,OLa,RyH,KT1,Q2H,JlI,Aly,hyH,BVI,HLD,LTO,dPf,vkD,TVh,aSt,xPF,iLf,eyw,qNy,k9H,j8F,WCH,yWt,tyF,nNF,iG,XIy,FC1,Unh,$nO,KCH,OjH,RTh,lLh,ENf,ck,Nja,C1y,fg,oe,BjI,LCD,wIH,fPt,mM,zef,uWg,mC1,sSD,bC,t51,n7E,bRD,r6D,F9I,UCa,$CH,K9g,ORI,Reh,lPI,Nrh,E7I,PlO,lC,Ie,V5h,ClH,QSf,A6w,heI,Brh,L9f,dCI,v7I,vk,SZ,kjt,xr,cvh,iC,GMa,MQ,o2w,fnw,n2D,
bXa,UVI,$Vt,OXF,g2w,R$I,E2I,pnf,PzE,kr,kMt,WsE,ccy,ZDt,G5h,fJI,ycF,Czy,VSh,yR,Jvy,ogF,zXh,mFg,tuH,ssI,ZS,XOO,rcF,Fsh,UFh,$FF,DS,KsO,ggH,ODf,RXg,EgO,mT,Ctw,Acy,VuO,HDh,dFw,SPt,X8,b7,rV,TCg,MuI,F8,ON,k5y,R2,Wyw,G7I,oMh,D4H,z2t,l7,YQw,m4y,sNy,tNw,nMD,XRE,bvw,Fyh,NP,U4f,$41,pL,CL,gMf,R2D,lmI,Al,Im1,pRa,Jsw,dV,BJa,HvH,LyH,vME,d4h,xk,i7,MP,et,amg,qP,x4w,ivH,MN1,e2f,qQw,k7g,wRt,yGI,jiI,W4I,fUO,jy,GrH,oTw,cGt,DRy,WI,mRg,zhH,sig,usE,tby,XTF,nTD,bOI,URy,rGF,K4H,Nzg,pTh,JGf,CMf,hhO,AGh,QiF,BzH,vTy,SLw,dRw,Tzg,
xRE,iOH,tW,qLD,b1,yEF,jPI,Wqf,Fl,UE,cEg,$N,ZlH,f2w,D2y,m21,urw,sPF,Sy,tGa,oAa,$2H,Kqg,Olt,Mn,gA1,l2w,EAI,kN,I2y,JEO,PNI,AE1,hoO,BKI,HlI,vAw,x2D,d2h,TKD,a2F,ilH,eoH,MGE,qcI,wA1,oS,kGh,yKI,WZt,fK1,nR,XW,oRa,DWO,bl,svF,$7,KR,OA,X$F,gr,FZH,EA,UWh,$WH,KZD,Oqf,pR,gRO,lKg,ERE,IKF,Poh,CoH,AKg,H7,h4w,Buw,Hqh,LZO,vRD,dWt,Sqt,TuH,S5,iqa,MvE,e4D,w$O,qqy,kxh,jWE,yqH,Wvg,cqf,ZZg,G2H,flw,qC,rqy,Fvf,k7,jS,yJ,UOH,$Oy,Kvf,OZw,g$E,RzD,llg,P0a,Jqy,Vda,C0f,QWt,GM,ol,Dn,zM,sW,uz,tv,hzw,XD,HZh,rX,Lvt,v$h,FD,dOw,Stt,TMI,
j51,WDI,omt,mMH,Y0I,yxh,s5I,nmh,IVD,$MO,C6I,O6f,Vja,Q5g,lz,hPw,NV,H6a,LDy,dMa,S0D,TpO,xMI,Pn,Mjy,eP1,wQg,q0O,ks1,j9I,y3g,i6h,ZNI,GPt,fzI,VJ,s9I,uxI,miH,n0f,XhE,r3y,FIH,bNI,lzO,NZH,pha,J3H,TM,BZh,hWO,SH1,azI,iNf,Mlh,eWD,whI,qHH,cO,oxh,zUh,GbH,Zxw,Duh,jLw,muI,K$w,t9h,nx1,XFa,J71,Cvf,Pvt,L$F,pFH,kPg,Hxg,uPg,$uh,V9H,YeH,W$w,y7H,c7g,faH,IaF,Fc,Wla,GZf,Zpa,fxh,oYt,D8F,bpt,Op1,gYy,PO,lxw,IxF,V8E,JzI,Q3H,AzE,HpH,Big,LlF,d8H,dC,SVH,TiF,x8w,axw,Su,kZw,qVy,wGH,cDD,j0f,Zsg,Wtg,Gqt,as,fvH,YdD,DvH,zYH,s0g,u6E,
XEO,tst,bsa,$vH,Ktf,RYD,EDw,jN,yv,PLg,JDI,WR,cR,VsI,Zm,G7,CL1,fv,Q0E,Dm,ADI,hYy,YM,BeE,Hsh,LtD,vDH,dv1,TeO,Sdg,xvI,eY1,MsI,wEt,qdI,avy,kqt,WHE,ydO,isy,cdf,ZyE,nv,Gya,o3O,fsD,Dag,zV1,maI,Y9E,sTO,bn,toy,n3F,uGO,byy,rdg,FHD,Oyy,lsa,PTf,QTh,rJ,BlH,HyI,Fo,LHg,OQ,gJ,xaH,$M,EQ,iy1,Mot,wUt,q9H,jEa,W8g,cfI,Zif,G$w,Dry,uYf,mrw,o6D,t6I,n6h,PR,sEy,XNH,Cv,biI,rff,F8I,UrD,g6I,$rt,Oif,N5I,Iqw,Cm1,V6g,hJa,S2O,T5w,xra,M6I,eJh,q2I,k$O,j_I,WeH,cPO,Zdg,o_h,mLF,s_F,DLO,t2h,XMH,n_w,uwt,bdw,Fef,ULF,$LI,KeI,OdH,M4,eN,kM,
yn,liy,E_I,IiO,JPt,WT,ZU,V2f,Gr,APF,hsD,BTa,oi,Sfw,ida,esw,wME,qfE,kuf,j4y,cUO,zr,Z$H,opI,m4,DKw,mKt,s4a,u1g,YpD,FSF,KSH,UKf,O$1,l91,NaO,pPw,CUF,Vwt,Ba1,Xs,H$h,LSH,bM,vpw,rz,dKO,Spw,Taf,xKH,a9g,i$E,Mwh,eGf,wPH,Z2D,fyI,DJD,obf,yhH,kFD,YXt,s7g,b2H,rht,gbI,lyF,KO,EbF,IyD,pgI,Jhg,Ahw,Bqg,Lz1,vbH,dJI,SXD,MmI,Tqy,kHg,jOH,WAO,Ri,ZUg,GAE,fYh,ojD,DDy,zFH,YSO,sOt,upF,Ii,njH,XiH,FAD,pO,rJO,$DH,RFt,JG,lYh,Ejy,N_h,PpH,JJH,IYH,Cpt,B_I,dDO,SSh,vT,T_I,MXE,kAg,ai,Wxh,jXI,yeH,ZGy,fNF,oK1,mhD,t0E,uzf,sXD,nK1,bGI,reE,
gKa,FxH,RgI,NHI,lNf,C_H,hgE,HGa,vKO,wsH,kCf,jYH,Z7I,fTa,N2,hE,b71,X_E,FXF,UED,KXy,$Ea,O7H,gHa,BA,DMg,tey,rkw,nHf,Qu,EHh,Ntt,ITa,p_g,iN,POa,M2,JkI,VeD,COw,QYt,q2,Akt,H7w,vHO,dEF,e8D,quw,kkD,jUI,Wuy,cAI,ov,GSD,fuF,oIf,DYg,zdI,Yxg,sUE,txw,Xvt,bFw,OFI,$Yw,gIF,EID,NRH,nq,IuI,pv1,PXD,CXh,AAE,QUy,BR1,LuH,Fj,dYt,Sx1,vIO,TRa,auI,iFI,edE,MxE,wvh,xYO,qxh,kSw,jt1,yIg,W_I,cIw,ZHO,GRI,fEE,zDy,DtI,YUw,stf,mtf,Uq,u3f,X0a,$tt,tza,K_F,OHD,gPf,RDw,VzE,QtO,AIt,BFa,HHO,P$,SUI,iHH,eDO,JK,jxE,kRE,yth,Ql,WBw,cty,ZAh,frI,
oSh,D71,zZw,m7I,sxg,KBt,rtI,U7E,gSD,OAw,RZh,lrF,NUI,pjy,Jtw,C$D,TUI,iAD,eZa,wjt,qoF,kIa,jZw,WWg,cyy,f$g,ong,D0g,zrh,Yst,m0t,sZf,u_a,X8F,bBf,ryI,io,MW,ev,wu,FWy,jd,$0O,gny,EnF,p8D,VcH,Ayy,CuD,j6f,yZh,T$O,erH,qsI,B$f,iBE,QZh,a$1,OBt,vnt,I$D,l$I,Z4f,GpO,ffI,Jy1,HBD,Ssy,D6f,YOf,s6F,nsO,X2g,z2,gsE,O4I,NYF,PZh,ViO,Q6E,AZy,H4a,vsw,LKI,TYH,x6D,jww,qO1,Mi1,kp1,e5I,yLH,Ggt,Ot,taI,ml1,Xbh,bnF,FgO,UlI,RW,$lw,gZg,RpI,lZH,EZw,Qw1,Cch,VM,HK,dly,Ska,vK,TNI,aZf,xlt,inD,MaD,epy,wbE,qkg,kgO,jng,yaw,W2D,caa,ZeD,GQO,
dM,fca,oaa,DB1,zI1,YmI,mBO,snI,uft,tAI,naw,XLE,beg,T2,F2y,$BH,Oe1,lcg,IcH,pLw,PBE,VAE,Qnh,AaF,hIf,HeI,Smt,vaF,Txa,acI,xBh,eIa,y2O,WnD,ZWE,DV,fWt,f6,DTF,zkI,zs,Y71,sMF,uSa,t7E,Ym,r2f,UTD,lWa,Rky,NOF,IWH,XX,b6,pBf,J2D,Cxt,QMI,hkF,BOg,V7E,HWa,TOD,M7a,eka,rp,wBf,NbO,VMf,IRH,PWH,JTf,HuO,Q1D,Lmt,vEh,S1t,aRE,xqH,iuO,MMg,e1I,wzg,kWH,jAE,yjw,W7I,cjf,G0w,o1w,Yrg,t3I,boh,F71,K71,R5,OoI,g1H,RMO,lhg,E1w,IhE,pVt,PD1,JjF,V3w,CDg,QAI,Ajt,hM1,BGt,HoE,v1E,L7H,TGh,xfE,iot,NM,M3f,eMg,k0w,qrD,p6,WaD,cQh,fAa,DmI,oCF,GKa,
mmI,Ygw,Xma,sBf,hx,t4t,OSD,Fat,Umf,$mH,KaF,gCH,lAa,RnH,BQ,HQ,V41,NdE,JQH,Paf,IAh,pmh,AQH,hnI,HSI,Bda,SgF,dmh,xmF,iSH,enH,wmg,M4E,qgD,juE,kKf,WRf,GnD,i6,f6h,olD,YFI,nlH,$dF,ej,O9w,ElH,PbI,pZD,NvH,I6y,yE,ArO,VkD,Cba,hbw,H9I,Bva,ddE,SFH,a6D,xdh,i9f,Mkt,ebg,qF1,kng,sH,yME,t3,WNI,fF1,ova,rZ,DeO,Yh1,FNf,Uew,tOy,rMH,nvF,X5h,gvD,RSI,O1H,lFw,EvI,P3H,Nma,JMF,VOg,gZ,QKf,AMf,hSH,C3g,H1I,Bmw,R9,ShI,w5E,qhE,kvt,jcH,yXt,Wbt,fty,ZMw,G1E,cXI,DAH,YaI,mAE,tHh,nzO,bMg,pN,rXI,FbO,UAh,KbD,OMw,gzt,RQI,ltO,NhH,p9f,PSF,CSw,
VHf,AXf,QcO,hQf,Bhh,HMa,CN,vzf,jrF,qaI,c0O,Z5I,YIH,m_H,srF,uuO,tJE,ntF,r0F,FYI,U_f,$_t,gtw,Rw1,lCI,Etw,NAF,ICh,pYy,PJt,J0I,VJ1,CJH,A0w,hwD,BAI,LYF,d_t,TAH,MJ1,i5h,x_I,aCw,yf,wYy,qID,kzH,jFt,c$a,y$w,ZVH,Za,GcI,W3y,fXF,oJI,DS1,ziI,YJO,mS1,tgh,uNO,sFt,nJH,XfE,USh,$SI,m$,K3I,OVf,gJH,RiI,lXg,EJt,IXH,pfI,PQg,J$I,QFD,CQI,L3f,Vg1,uv,vJI,A$1,HVf,TkD,xSI,qJF,eia,wfF,Mgt,iVF,Ue,kch,ywE,WUy,cwy,Zmh,GTE,Kx,Oe,Y5y,ouF,fBI,DNH,$Nw,FUw,zjH,rwI,NWh,IB1,pwI,A7,P2a,Jw1,VRw,AwI,BWw,LUg,dNh,S5F,TWF,MRa,img,ejD,q5H,S9,
yOy,W0H,cOD,ZCD,aL,xx,oqH,Yva,Xxa,UsE,$sI,K0g,OCt,gqy,lMI,NEg,Eqh,IMF,px1,Pet,JOD,Vn1,CeI,Qaf,AOt,hRw,kx,vqa,BEO,j8,Svy,dsw,TEF,qvI,kXy,Mnh,iCg,wxy,eRy,ZKy,Gmw,f5f,ody,DZI,zmg,Yiw,mZO,tYH,sCh,uED,ndt,bKy,FF1,$Zt,OKa,Rmw,I5F,po1,PYI,JNf,VYf,GZ,QC1,CYH,fp,ANI,BcH,HKH,LF1,vdO,xZw,iKI,MYt,emE,wog,qif,kmw,sV,y_g,Wiy,c_y,GBO,ZrE,f7f,DGE,zaH,Y8F,sjE,uTH,mGy,Fiw,Kiw,Orf,gGg,RaE,EGI,l7g,J_F,V$w,C4D,Qjy,haD,A_g,Hrw,a7a,T0I,irI,M$y,eaI,ybD,Wka,cby,ZYI,zxE,DIH,oBg,sgD,tKt,u0a,nBI,lg,Xew,bYg,$It,UIy,KkH,OYw,gBg,
Rxw,Nww,peI,Pdy,Jbf,VKg,Cdw,Qg1,AbE,BwI,hxD,HYf,vBF,LkI,dIf,STg,Tw1,a1I,xIy,MKw,exf,weI,qTE,k4F,jbF,yFy,cFy,ZEH,Wjy,BG,o9w,zHH,YYg,mzO,sbg,tUh,n9D,Uzf,$zF,lIO,N6D,IIO,JFy,VUE,C8O,QbD,AFy,hHE,HEw,LjI,dzH,T6H,xzg,wrE,MU1,iEI,eHh,qYE,y4F,klO,jDF,c4I,f4F,o5D,D$g,Y6F,m$E,sDH,tpO,XD1,unI,bJw,r4F,FLI,U$I,$$F,KLy,OJF,g5h,R3O,E5I,l4w,N1O,I4E,pDw,PkI,J4g,VpI,Ckf,QDE,B1F,HJy,A4f,h3w,d$E,a4w,x$y,ZkO,jJy,cuf,Gh1,W1H,yo,feO,oUw,zAF,sJh,mcg,uVg,tFf,WE,Zv,X4y,bkH,o0,Dv,ru1,F1D,OkI,leE,NPF,IeD,p4H,Pqh,Juf,Cqh,QJD,
AuE,hA1,BPE,HkI,L1O,mt,vUH,dca,uL,SKI,TPI,aeh,xcO,iky,MFf,X6,bL,eAy,w4g,re,qKD,khE,jRy,yBw,cB1,Z3H,f8I,mwg,YGF,zvF,sRI,uHt,Fof,XlD,b3t,neE,rBg,Ud,O3t,geh,Rvy,l8a,EeH,I8w,VPI,PKF,$D,pl1,B9O,LoE,ve1,dwa,SGH,T9D,i3y,MPD,wlt,qGI,kEH,jht,Wcg,cVg,ZTI,fjh,ohO,DUH,Yy1,mUD,utF,tBg,bTD,FcO,$Ut,UUO,OTO,ghy,RCI,ljh,Eht,IjH,pSE,Phw,AVO,hCf,B4I,HTy,vhO,I0,PE,ps,dUg,Syg,T4F,ajt,MBD,iTf,wSI,qyw,k3g,ypO,WJE,fkD,Dbw,zct,YlD,Vo,mbt,uaI,tWD,bby,rpa,Cs,Qo,$by,FJD,KJf,RcH,ObH,lkF,hD,NyH,IkF,JpI,Cyy,BE,Apw,hcO,ByH,HbE,
LJt,vcE,dbE,xbw,ibI,wHI,MWD,ecw,qlh,kJ1,cgh,jzy,WGH,Z0D,GUH,foH,zuf,Ynt,mpw,szE,uU1,FGf,rgI,Rua,NoI,xD,IoO,rWE,pWt,PrH,VrE,QzH,AgI,Snw,ToH,jo,aoI,xpD,i0O,Mr1,euF,qnH,jqy,wWw,kUH,cCE,WPI,GNh,fOF,oof,DyH,zLy,Y_g,myt,sqI,XtI,FPy,bwI,UyO,$yE,KPD,cU,Owg,goh,Gy,lOt,RLa,Eo1,N3I,ptF,PjI,V1I,CjF,Qqt,ACI,hLy,HwO,dy1,aOH,M1O,iwE,eLh,wtO,jGy,Yz1,Zha,sGH,uRg,nff,Xct,rRH,Frt,U5y,$5g,KrO,Ohg,gfy,lQh,IQH,pcg,PPH,JRH,QGy,CPD,HhD,LrH,vfa,d5D,Szt,aQE,Ky,ihI,lT,eOg,qzh,k81,Zz1,fww,Yw1,spI,u7a,n8F,XdF,bza,F5H,$XH,K5I,
RBO,E8O,pdD,Iwf,NBh,Jd,J8w,PHw,VCF,CHh,QpI,A8I,hBE,BBa,HzH,v8y,dXt,Swh,awE,MCO,TBf,xXI,eBa,wdH,qwa,k_H,yia,WwH,YCD,mxw,syg,uJg,tht,bII,HU,OIw,gwI,R7I,lDf,EwO,Ly,dL,QyI,So,Aig,dx1,vwt,Ty,TDH,$oa;_.yw=function(y,W){if(Error.captureStackTrace)Error.captureStackTrace(this,_.yw);else{var c=Error().stack;c&&(this.stack=c)}y&&(this.message=String(y));W!==void 0&&(this.cause=W)};
ZH=function(y){return(y&192)!==128};
GO=function(){throw Error("B");};
jIw=function(y,W){W=String.fromCharCode.apply(null,W);return y==null?W:y+W};
Zag=function(y){var W=!1;W=W===void 0?!1:W;if(yHg){if(W&&(WE1?!y.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(y)))throw Error("C");y=(cHw||(cHw=new TextEncoder)).encode(y)}else{for(var c=0,Z=new Uint8Array(3*y.length),G=0;G<y.length;G++){var D=y.charCodeAt(G);if(D<128)Z[c++]=D;else{if(D<2048)Z[c++]=D>>6|192;else{if(D>=55296&&D<=57343){if(D<=56319&&G<y.length){var Y=y.charCodeAt(++G);if(Y>=56320&&Y<=57343){D=(D-55296)*1024+Y-56320+65536;Z[c++]=D>>18|
240;Z[c++]=D>>12&63|128;Z[c++]=D>>6&63|128;Z[c++]=D&63|128;continue}else G--}if(W)throw Error("C");D=65533}Z[c++]=D>>12|224;Z[c++]=D>>6&63|128}Z[c++]=D&63|128}}y=c===Z.length?Z:Z.subarray(0,c)}return y};
YF=function(y){_.DH.setTimeout(function(){throw y;},0)};
_.mE=function(y,W){return y.lastIndexOf(W,0)==0};
uf=function(y,W){var c=y.length-W.length;return c>=0&&y.indexOf(W,c)==c};
_.tH=function(y){return/^[\s\xa0]*$/.test(y)};
_.Xh=function(y,W){return y.indexOf(W)!=-1};
_.Fh=function(y,W){return _.Xh(y.toLowerCase(),W.toLowerCase())};
_.UD=function(){var y=_.DH.navigator;return y&&(y=y.userAgent)?y:""};
GOO=function(y){if(!$F||!Ka)return!1;for(var W=0;W<Ka.brands.length;W++){var c=Ka.brands[W].brand;if(c&&_.Xh(c,y))return!0}return!1};
gg=function(y){return _.Xh(_.UD(),y)};
RI=function(){return $F?!!Ka&&Ka.brands.length>0:!1};
fHO=function(){return RI()?!1:gg("Opera")};
oFy=function(){return RI()?!1:gg("Trident")||gg("MSIE")};
D1a=function(){return RI()?GOO("Microsoft Edge"):gg("Edg/")};
lf=function(){return gg("Firefox")||gg("FxiOS")};
_.ztf=function(){return gg("Safari")&&!(_.II()||(RI()?0:gg("Coast"))||fHO()||(RI()?0:gg("Edge"))||D1a()||(RI()?GOO("Opera"):gg("OPR"))||lf()||gg("Silk")||gg("Android"))};
_.II=function(){return RI()?GOO("Chromium"):(gg("Chrome")||gg("CriOS"))&&!(RI()?0:gg("Edge"))||gg("Silk")};
_.YDy=function(){return gg("Android")&&!(_.II()||lf()||fHO()||gg("Silk"))};
m1I=function(y){var W={};y.forEach(function(c){W[c[0]]=c[1]});
return function(c){return W[c.find(function(Z){return Z in W})]||""}};
sIt=function(y){var W=_.UD();if(y==="Internet Explorer"){if(oFy())if((y=/rv: *([\d\.]*)/.exec(W))&&y[1])W=y[1];else{y="";var c=/MSIE +([\d\.]+)/.exec(W);if(c&&c[1])if(W=/Trident\/(\d.\d)/.exec(W),c[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":y="8.0";break;case "5.0":y="9.0";break;case "6.0":y="10.0";break;case "7.0":y="11.0"}else y="7.0";else y=c[1];W=y}else W="";return W}var Z=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var G;G=Z.exec(W);)c.push([G[1],G[2],G[3]||void 0]);
W=m1I(c);switch(y){case "Opera":if(fHO())return W(["Version","Opera"]);if(RI()?GOO("Opera"):gg("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(RI()?0:gg("Edge"))return W(["Edge"]);if(D1a())return W(["Edg"]);break;case "Chromium":if(_.II())return W(["Chrome","CriOS","HeadlessChrome"])}return y==="Firefox"&&lf()||y==="Safari"&&_.ztf()||y==="Android Browser"&&_.YDy()||y==="Silk"&&gg("Silk")?(W=c[2])&&W[1]||"":""};
_.uhh=function(y){if(RI()&&y!=="Silk"){var W=Ka.brands.find(function(c){return c.brand===y});
if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=sIt(y);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])};
pa=function(){return $F?!!Ka&&!!Ka.platform:!1};
_.tIa=function(){return pa()?Ka.platform==="Android":gg("Android")};
nFE=function(){return gg("iPhone")&&!gg("iPod")&&!gg("iPad")};
_.Vw=function(){return nFE()||gg("iPad")||gg("iPod")};
_.XyI=function(){return pa()?Ka.platform==="macOS":gg("Macintosh")};
_.baE=function(){return pa()?Ka.platform==="Windows":gg("Windows")};
_.rHH=function(){return pa()?Ka.platform==="Chrome OS":gg("CrOS")};
_.Ca=function(y){return y[y.length-1]};
_.Qw=function(y,W,c){W=_.FEy(y,W,c);return W<0?null:typeof y==="string"?y.charAt(W):y[W]};
_.FEy=function(y,W,c){for(var Z=y.length,G=typeof y==="string"?y.split(""):y,D=0;D<Z;D++)if(D in G&&W.call(c,G[D],D,y))return D;return-1};
U11=function(y){for(var W=_.AH,c=typeof y==="string"?y.split(""):y,Z=y.length-1;Z>=0;Z--)if(Z in c&&W.call(void 0,c[Z],Z,y))return Z;return-1};
_.Hy=function(y,W){return _.By(y,W)>=0};
_.$1I=function(y,W){_.Hy(y,W)||y.push(W)};
_.dg=function(y,W){W=_.By(y,W);var c;(c=W>=0)&&_.KEh(y,W);return c};
_.KEh=function(y,W){Array.prototype.splice.call(y,W,1)};
_.SI=function(y){var W=y.length;if(W>0){for(var c=Array(W),Z=0;Z<W;Z++)c[Z]=y[Z];return c}return[]};
_.eI=function(y,W){for(var c=1;c<arguments.length;c++){var Z=arguments[c];if(_.TO(Z)){var G=y.length||0,D=Z.length||0;y.length=G+D;for(var Y=0;Y<D;Y++)y[G+Y]=Z[Y]}else y.push(Z)}};
_.gFH=function(y,W,c,Z){Array.prototype.splice.apply(y,Oaa(arguments,1))};
Oaa=function(y,W,c){return arguments.length<=2?Array.prototype.slice.call(y,W):Array.prototype.slice.call(y,W,c)};
Rth=function(y,W){W=W||y;for(var c=0,Z=0,G={};Z<y.length;){var D=y[Z++],Y=_.q1(D)?"o"+_.kF(D):(typeof D).charAt(0)+D;Object.prototype.hasOwnProperty.call(G,Y)||(G[Y]=!0,W[c++]=D)}W.length=c};
_.EFO=function(y,W,c){c=c||_.lHh;for(var Z=0,G=y.length,D;Z<G;){var Y=Z+(G-Z>>>1);var u=c(W,y[Y]);u>0?Z=Y+1:(G=Y,D=!u)}return D?Z:-Z-1};
_.yT=function(y,W,c){if(!_.TO(y)||!_.TO(W)||y.length!=W.length)return!1;var Z=y.length;c=c||NgD;for(var G=0;G<Z;G++)if(!c(y[G],W[G]))return!1;return!0};
_.lHh=function(y,W){return y>W?1:y<W?-1:0};
NgD=function(y,W){return y===W};
IHH=function(y,W,c){W=Array.prototype.splice.call(y,W,1);Array.prototype.splice.call(y,c,0,W[0])};
PfF=function(y){return pya[y]||""};
CfH=function(y){if(!JHg)return _.cJ(y);y=VIw.test(y)?y.replace(VIw,PfF):y;y=atob(y);for(var W=new Uint8Array(y.length),c=0;c<y.length;c++)W[c]=y.charCodeAt(c);return W};
QIE=function(y,W){y.__closure__error__context__984382||(y.__closure__error__context__984382={});y.__closure__error__context__984382.severity=W};
_.Z0=function(y){y=Error(y);QIE(y,"warning");return y};
htH=function(y,W){if(y!=null){var c;var Z=(c=AHE)!=null?c:AHE={};c=Z[y]||0;c>=W||(Z[y]=c+1,y=Error(),QIE(y,"incident"),YF(y))}};
D0=function(y,W,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&y?Symbol.for(y):y!=null?Symbol(y):Symbol():W};
LEg=function(y,W){YW||_.mQ in y||Bgg(y,Haf);y[_.mQ]|=W};
uE=function(y,W){YW||_.mQ in y||Bgg(y,Haf);y[_.mQ]=W};
vFt=function(y){if(4&y)return 512&y?512:1024&y?1024:0};
n8=function(y){LEg(y,34);return y};
d1F=function(y){LEg(y,32);return y};
r2=function(){return typeof BigInt==="function"};
Fm=function(y,W){return W===void 0?y.copyOnWrite!==SDE&&!!(2&(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.mQ]|0)):!!(2&W)&&y.copyOnWrite!==SDE};
_.RV=function(y,W){if(y!=null)if(typeof y==="string")y=y?new UZ(y,OZ):_.g2();else if(y.constructor!==UZ)if(TgH&&y!=null&&y instanceof Uint8Array)y=y.length?new UZ(new Uint8Array(y),OZ):_.g2();else{if(!W)throw Error();y=void 0}return y};
aHI=function(y,W){if(typeof W!=="number"||W<0||W>=y.length)throw Error();};
x1I=function(y,W,c){W=W&128?0:-1;var Z=y.length,G;if(G=!!Z)G=y[Z-1],G=G!=null&&typeof G==="object"&&G.constructor===Object;for(var D=Z+(G?-1:0),Y=0;Y<D;Y++)c(Y-W,y[Y]);if(G){y=y[Z-1];for(var u in y)!isNaN(u)&&c(+u,y[u])}};
p8=function(y){return y&128?IV:void 0};
_.VT=function(y){return y};
C8=function(y){y.isGuard_doNotManuallySetPrettyPlease=!0;return y};
MIf=function(){var y=iag;return C8(function(W){for(var c in y)if(W===y[c]&&!/^[0-9]+$/.test(c))return!0;return!1})};
_.QT=function(y){var W=y;if(etF(W)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(W))throw Error(String(W));}else if(wyh(W)&&!Number.isSafeInteger(W))throw Error(String(W));return qDE?BigInt(y):y=kO1(y)?y?"1":"0":etF(y)?y.trim()||"0":String(y)};
jVH=function(y,W){if(y.length>W.length)return!1;if(y.length<W.length||y===W)return!0;for(var c=0;c<y.length;c++){var Z=y[c],G=W[c];if(Z>G)return!1;if(Z<G)return!0}};
y5a=function(y){var W=y>>>0;A5=W;h5=(y-W)/4294967296>>>0};
BJ=function(y){if(y<0){y5a(-y);var W=_.z(WQH(A5,h5));y=W.next().value;W=W.next().value;A5=y>>>0;h5=W>>>0}else y5a(y)};
c5y=function(y,W){var c=W*4294967296+(y>>>0);return Number.isSafeInteger(c)?c:_.HJ(y,W)};
Z8H=function(y,W){var c=W&2147483648;c&&(y=~y+1>>>0,W=~W>>>0,y==0&&(W=W+1>>>0));y=c5y(y,W);return typeof y==="number"?c?-y:y:c?"-"+y:y};
_.HJ=function(y,W){W>>>=0;y>>>=0;if(W<=2097151)var c=""+(4294967296*W+y);else r2()?c=""+(BigInt(W)<<BigInt(32)|BigInt(y)):(c=(y>>>24|W<<8)&16777215,W=W>>16&65535,y=(y&16777215)+c*6777216+W*6710656,c+=W*8147497,W*=2,y>=1E7&&(c+=y/1E7>>>0,y%=1E7),c>=1E7&&(W+=c/1E7>>>0,c%=1E7),c=W+Git(c)+Git(y));return c};
Git=function(y){y=String(y);return"0000000".slice(y.length)+y};
_.f0t=function(y,W){W&2147483648?r2()?y=""+(BigInt(W|0)<<BigInt(32)|BigInt(y>>>0)):(W=_.z(WQH(y,W)),y=W.next().value,W=W.next().value,y="-"+_.HJ(y,W)):y=_.HJ(y,W);return y};
oWF=function(y){if(y.length<16)BJ(Number(y));else if(r2())y=BigInt(y),A5=Number(y&BigInt(4294967295))>>>0,h5=Number(y>>BigInt(32)&BigInt(4294967295));else{var W=+(y[0]==="-");h5=A5=0;for(var c=y.length,Z=W,G=(c-W)%6+W;G<=c;Z=G,G+=6)Z=Number(y.slice(Z,G)),h5*=1E6,A5=A5*1E6+Z,A5>=4294967296&&(h5+=Math.trunc(A5/4294967296),h5>>>=0,A5>>>=0);W&&(W=_.z(WQH(A5,h5)),y=W.next().value,W=W.next().value,A5=y,h5=W)}};
WQH=function(y,W){W=~W;y?y=~y+1:W+=1;return[y,W]};
L8=function(y){return Array.prototype.slice.call(y)};
_.d2=function(y,W){throw Error(W===void 0?"unexpected value "+y+"!":W);};
_.SV=function(y){if(y!=null&&typeof y!=="number")throw Error("I`"+typeof y+"`"+y);return y};
_.D3H=function(y){if(y==null||typeof y==="number")return y;if(y==="NaN"||y==="Infinity"||y==="-Infinity")return Number(y)};
YZH=function(y){if(y!=null&&typeof y!=="boolean")throw Error("J`"+_.zEO(y)+"`"+y);return y};
_.m3D=function(y){if(y==null||typeof y==="boolean")return y;if(typeof y==="number")return!!y};
_.iE=function(y){switch(typeof y){case "bigint":return!0;case "number":return aV(y);case "string":return sVy.test(y);default:return!1}};
_.q3=function(y){if(!aV(y))throw _.Z0("enum");return y|0};
_.kW=function(y){return y==null?y:aV(y)?y|0:void 0};
uma=function(y){if(typeof y!=="number")throw _.Z0("int32");if(!aV(y))throw _.Z0("int32");return y|0};
_.jD=function(y){return y==null?y:uma(y)};
_.yd=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return aV(y)?y|0:void 0};
_.tVt=function(y){if(y==null)return y;if(typeof y==="string"&&y)y=+y;else if(typeof y!=="number")return;return aV(y)?y>>>0:void 0};
r5f=function(y){var W=0;W=W===void 0?0:W;if(!_.iE(y))throw _.Z0("int64");var c=typeof y;switch(W){case 512:switch(c){case "string":return W3(y);case "bigint":return String(c3(64,y));default:return nWF(y)}case 1024:switch(c){case "string":return XJH(y);case "bigint":return _.QT(c3(64,y));default:return b8O(y)}case 0:switch(c){case "string":return W3(y);case "bigint":return _.QT(c3(64,y));default:return fQ(y)}default:return _.d2(W,"Unknown format requested type for int64")}};
oH=function(y){return y==null?y:r5f(y)};
FQO=function(y){if(y[0]==="-")return!1;var W=y.length;return W<20?!0:W===20&&Number(y.substring(0,6))<184467};
U3a=function(y){var W=y.length;return y[0]==="-"?W<20?!0:W===20&&Number(y.substring(0,7))>-922337:W<19?!0:W===19&&Number(y.substring(0,6))<922337};
$3f=function(y){if(y<0){BJ(y);var W=_.HJ(A5,h5);y=Number(W);return Dg(y)?y:W}W=String(y);if(FQO(W))return W;BJ(y);return c5y(A5,h5)};
KQF=function(y){if(U3a(y))return y;oWF(y);return _.f0t(A5,h5)};
O8t=function(y){if(FQO(y))return y;oWF(y);return _.HJ(A5,h5)};
fQ=function(y){y=zf(y);Dg(y)||(BJ(y),y=Z8H(A5,h5));return y};
_.gWa=function(y){y=zf(y);return y>=0&&Dg(y)?y:$3f(y)};
nWF=function(y){y=zf(y);if(Dg(y))y=String(y);else{var W=String(y);U3a(W)?y=W:(BJ(y),y=_.f0t(A5,h5))}return y};
_.REH=function(y){y=zf(y);if(y>=0&&Dg(y))y=String(y);else{var W=String(y);FQO(W)?y=W:(BJ(y),y=_.HJ(A5,h5))}return y};
W3=function(y){var W=zf(Number(y));if(Dg(W))return String(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return KQF(y)};
XJH=function(y){var W=zf(Number(y));if(Dg(W))return _.QT(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return r2()?_.QT(c3(64,BigInt(y))):_.QT(KQF(y))};
b8O=function(y){return Dg(y)?_.QT(fQ(y)):_.QT(nWF(y))};
_.l0h=function(y){return Dg(y)?_.QT(_.gWa(y)):_.QT(_.REH(y))};
_.EWy=function(y){var W=zf(Number(y));if(Dg(W)&&W>=0)return String(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return O8t(y)};
_.N2E=function(y){var W=zf(Number(y));if(Dg(W)&&W>=0)return _.QT(W);W=y.indexOf(".");W!==-1&&(y=y.substring(0,W));return r2()?_.QT((0,_.YQ)(64,BigInt(y))):_.QT(O8t(y))};
I0I=function(y,W){W=W===void 0?!1:W;var c=typeof y;if(y==null)return y;if(c==="bigint")return String(c3(64,y));if(_.iE(y))return c==="string"?W3(y):W?nWF(y):fQ(y)};
pJO=function(y){if(y==null)return y;var W=typeof y;if(W==="bigint")return String(c3(64,y));if(_.iE(y)){if(W==="string")return W3(y);if(W==="number")return fQ(y)}};
PEa=function(y){if(y==null)return y;var W=typeof y;if(W==="bigint")return String((0,_.YQ)(64,y));if(_.iE(y)){if(W==="string")return _.EWy(y);if(W==="number")return _.gWa(y)}};
_.sB=function(y){if(typeof y!=="string")throw Error();return y};
u9=function(y){if(y!=null&&typeof y!=="string")throw Error();return y};
_.t9=function(y){return y==null||typeof y==="string"?y:void 0};
VVh=function(y,W,c,Z){if(y!=null&&typeof y==="object"&&y[b9]===rS)return y;if(!Array.isArray(y))return c?Z&2?((y=W[J5O])||(y=new W,n8(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),y=W[J5O]=y),W=y):W=new W:W=void 0,W;c=y[_.mQ]|0;Z=c|Z&32|Z&2;Z!==c&&uE(y,Z);return new W(y)};
CEt=function(y,W,c){y=W?uma(y):_.yd(y);return y==null?c?0:void 0:y|0};
QVh=function(y){return y};
A5f=function(y){return y};
B2w=function(y,W,c,Z,G,D){y=VVh(y,Z,c,D);G&&(y=hEE(y));return y};
H8g=function(y){return[y,this.get(y)]};
d3w=function(){return LQF||(LQF=new FZ(n8([]),void 0,void 0,void 0,vWH))};
SZD=function(y){var W=UB($Q);return W?y[W]:void 0};
a0D=function(y,W){var c=UB($Q),Z;YW&&c&&((Z=y[c])==null?void 0:Z[W])!=null&&htH(T2g,3)};
MVh=function(y,W){var c=c===void 0?!1:c;if(UB(x3O)&&UB($Q)&&void 0===x3O){var Z=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=Z[$Q];if(!G)return;if(G=G.reviveUnknownFields)try{G(Z,W,i8I);return}catch(D){YF(D)}}c&&(y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(c=UB($Q))&&c in y&&(y=y[c])&&delete y[W])};
kiD=function(y,W,c,Z){var G=Z!==void 0;Z=!!Z;var D=[],Y=y.length,u=4294967295,t=!1,b=!!(W&64),r=b?W&128?0:-1:void 0;if(!(W&1)){var F=Y&&y[Y-1];F!=null&&typeof F==="object"&&F.constructor===Object?(Y--,u=Y):F=void 0;if(b&&!(W&128)&&!G){t=!0;var K;u=((K=eE1)!=null?K:QVh)(u-r,r,y,F)+r}}W=void 0;for(K=0;K<Y;K++){var l=y[K];if(l!=null&&(l=c(l,Z))!=null)if(b&&K>=u){var N=K-r,P=void 0;((P=W)!=null?P:W={})[N]=l}else D[K]=l}if(F)for(var V in F)Y=F[V],Y!=null&&(Y=c(Y,Z))!=null&&(K=+V,l=void 0,b&&!Number.isNaN(K)&&
(l=K+r)<u?D[l]=Y:(K=void 0,((K=W)!=null?K:W={})[V]=Y));W&&(t?D.push(W):D[u]=W);G&&UB($Q)&&(y=SZD(y))&&y instanceof wJf&&(D[$Q]=qZa(y));return D};
y9a=function(y){y[0]=jHH(y[0]);y[1]=jHH(y[1]);return y};
jHH=function(y){switch(typeof y){case "number":return Number.isFinite(y)?y:""+y;case "bigint":return(0,_.KQ)(y)?Number(y):""+y;case "boolean":return y?1:0;case "object":if(Array.isArray(y)){var W=y[_.mQ]|0;return y.length===0&&W&1?void 0:kiD(y,W,jHH)}if(y[b9]===rS)return W6a(y);if(y instanceof UZ){W=y.JSC$6680_value_;if(W==null)y="";else if(typeof W==="string")y=W;else{if(JHg){for(var c="",Z=0,G=W.length-10240;Z<G;)c+=String.fromCharCode.apply(null,W.subarray(Z,Z+=10240));c+=String.fromCharCode.apply(null,
Z?W.subarray(Z):W);W=btoa(c)}else W=_.OB(W);y=y.JSC$6680_value_=W}return y}if(y instanceof FZ)return y=y.size!==0?Array.from(gS.prototype.entries.call(y),y9a):void 0,y;return}return y};
RH=function(y,W){if(W){eE1=W==null||W===QVh||W[c9t]!==ZQa?QVh:W;try{return W6a(y)}finally{eE1=void 0}}return W6a(y)};
W6a=function(y){y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kiD(y,y[_.mQ]|0,jHH)};
oQF=function(y){switch(typeof y){case "boolean":return GfI||(GfI=[0,void 0,!0]);case "number":return y>0?void 0:y===0?fgy||(fgy=[0,void 0]):[-y,void 0];case "string":return[0,y];case "object":return y}};
NH=function(y,W,c){y=_.EB(y,W[0],W[1],c?1:2);W!==GfI&&c&&LEg(y,2048);return y};
_.EB=function(y,W,c,Z){Z=Z===void 0?0:Z;if(y==null){var G=32;c?(y=[c],G|=128):y=[];W&&(G=G&-16760833|(W&1023)<<14)}else{if(!Array.isArray(y))throw Error("L");G=y[_.mQ]|0;4096&G&&!(2&G)&&DHa();if(G&256)throw Error("N");if(G&64)return Z!==0||G&4096||uE(y,G|4096),y;if(c&&(G|=128,c!==y[0]))throw Error("O");a:{c=y;G|=64;var D=c.length;if(D){var Y=D-1,u=c[Y];if(u!=null&&typeof u==="object"&&u.constructor===Object){W=G&128?0:-1;Y-=W;if(Y>=1024)throw Error("Q");for(var t in u)D=+t,D<Y&&(c[D+W]=u[t],delete u[t]);
G=G&-16760833|(Y&1023)<<14;break a}}if(W){t=Math.max(W,D-(G&128?0:-1));if(t>1024)throw Error("R");G=G&-16760833|(t&1023)<<14}}}G|=64;Z===0&&(G|=4096);uE(y,G);return y};
DHa=function(){htH(z6D,5)};
sHh=function(y,W){if(typeof y!=="object")return y;if(Array.isArray(y)){var c=y[_.mQ]|0;return y.length===0&&c&1?void 0:YB1(y,c,W)}if(y[b9]===rS)return mHH(y);if(y instanceof FZ){W=y.arrayState;if(W&2)return y;if(!y.size)return;c=n8(Array.from(gS.prototype.entries.call(y)));if(y.valueCtor)for(y=0;y<c.length;y++){var Z=c[y],G=Z[1];G==null||typeof G!=="object"?G=void 0:G[b9]===rS?G=mHH(G):Array.isArray(G)?G=YB1(G,G[_.mQ]|0,!!(W&32)):G=void 0;Z[1]=G}return c}if(y instanceof UZ)return y};
YB1=function(y,W,c){if(W&2)return y;!c||8192&W||16&W?y=IH(y,W,!1,c&&!(W&16)):(LEg(y,34),W&4&&Object.freeze(y));return y};
mHH=function(y){var W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=W[_.mQ]|0;return Fm(y,c)?y:IH(W,c)};
IH=function(y,W,c,Z){Z!=null||(Z=!!(34&W));y=kiD(y,W,sHh,Z);Z=32;c||(Z|=2);W=W&16761025|Z;uE(y,W);return y};
hEE=function(y){var W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=W[_.mQ]|0;return Fm(y,c)?new y.constructor(IH(W,c,!0)):y};
pQ=function(y){if(y.copyOnWrite!==SDE)return!1;var W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=IH(W,W[_.mQ]|0,!0);y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=W;y.copyOnWrite=void 0;y.noLegacyNull=void 0;return!0};
P3=function(y){if(!pQ(y)&&Fm(y,y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.mQ]|0))throw Error();};
J9=function(y,W,c,Z,G){var D=c+(G?0:-1),Y=y.length-1;if(Y>=1+(G?0:-1)&&D>=Y){var u=y[Y];if(u!=null&&typeof u==="object"&&u.constructor===Object)return u[c]=Z,W}if(D<=Y)return y[D]=Z,W;if(Z!==void 0){var t;Y=((t=W)!=null?t:W=y[_.mQ]|0)>>14&1023||536870912;c>=Y?Z!=null&&(D={},y[Y+(G?0:-1)]=(D[c]=Z,D)):y[D]=Z}return W};
_.Qd=function(y,W,c,Z,G){var D=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=D[_.mQ]|0;Z=Fm(y,Y)?1:Z;G=!!G||Z===3;Z===2&&pQ(y)&&(D=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=D[_.mQ]|0);y=uZO(D,W);var u=y===Vd?7:y[_.mQ]|0,t=tDt(u,Y);var b=4&t?!1:!0;if(b){4&t&&(y=L8(y),u=0,t=CQ(t,Y),Y=J9(D,Y,W,y));for(var r=0,F=0;r<y.length;r++){var K=c(y[r]);K!=null&&(y[F++]=K)}F<r&&(y.length=F);c=(t|4)&-513;t=c&=-1025;t&=-8193}t!==u&&(uE(y,t),2&t&&Object.freeze(y));return y=nQD(y,t,D,
Y,W,Z,b,G)};
nQD=function(y,W,c,Z,G,D,Y,u){var t=W;D===1||(D!==4?0:2&W||!(16&W)&&32&Z)?A9(W)||(W|=!y.length||Y&&!(8192&W)||32&Z&&!(8192&W||16&W)?2:256,W!==t&&uE(y,W),Object.freeze(y)):(D===2&&A9(W)&&(y=L8(y),t=0,W=CQ(W,Z),J9(c,Z,G,y)),A9(W)||(u||(W|=16),W!==t&&uE(y,W)));return y};
uZO=function(y,W,c){y=h9(y,W,c);return Array.isArray(y)?y:Vd};
tDt=function(y,W){2&W&&(y|=2);return y|1};
A9=function(y){return!!(2&y)&&!!(4&y)||!!(256&y)};
X3E=function(y){return _.RV(y,!0)};
bQ1=function(y,W){var c=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=c[_.mQ]|0;a:{var G=Z;Z=Fm(y,Z);!Z&&pQ(y)&&(c=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=c[_.mQ]|0);var D=h9(c,W);y=!1;if(D==null){if(Z){W=d3w();break a}D=[]}else if(D.constructor===FZ)if(D.arrayState&2&&!Z)D=Array.from(gS.prototype.entries.call(D));else{W=D;break a}else Array.isArray(D)?y=!!((D[_.mQ]|0)&2):D=[];if(Z){if(!D.length){W=d3w();break a}y||(y=!0,n8(D))}else if(y){y=!1;Z=D;Z=L8(Z);for(D=0;D<
Z.length;D++){var Y=Z[D]=L8(Z[D]);Array.isArray(Y[1])&&(Y[1]=n8(Y[1]))}D=Z}!y&&G&32&&d1F(D);y=new FZ(D,void 0,CEt,CEt);J9(c,G,W,y);W=y}return W};
_.H3=function(y,W,c,Z){P3(y);var G=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=G[_.mQ]|0;if(c==null)return J9(G,D,W),y;var Y=c===Vd?7:c[_.mQ]|0,u=Y,t=A9(Y),b=t||Object.isFrozen(c);t||(Y=0);b||(c=L8(c),u=0,Y=CQ(Y,D),b=!1);Y|=5;var r;t=(r=vFt(Y))!=null?r:0;for(r=0;r<c.length;r++){var F=c[r],K=Z(F,t);Object.is(F,K)||(b&&(c=L8(c),u=0,Y=CQ(Y,D),b=!1),c[r]=K)}Y!==u&&(b&&(c=L8(c),Y=CQ(Y,D)),uE(c,Y));J9(G,D,W,c);return y};
_.LQ=function(y,W,c,Z,G){P3(y);var D=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J9(D,D[_.mQ]|0,W,(Z==="0"?Number(c)===0:c===Z)?void 0:c,G);return y};
_.r9E=function(y,W,c){if(W&2)throw Error();var Z=p8(W),G=uZO(y,c,Z),D=G===Vd?7:G[_.mQ]|0,Y=tDt(D,W);if(2&Y||A9(Y)||16&Y)G=L8(G),D=0,Y=CQ(Y,W),J9(y,W,c,G,Z);Y&=-13;Y!==D&&uE(G,Y);return G};
F6h=function(y){if(YW){var W;return(W=y[v3])!=null?W:y[v3]=new Map}if(v3 in y)return y[v3];W=new Map;Object.defineProperty(y,v3,{value:W});return W};
$Ha=function(y,W,c,Z,G){var D=F6h(y),Y=UHt(D,y,W,c,G);Y!==Z&&(Y&&(W=J9(y,W,Y,void 0,G)),D.set(c,Z));return W};
UHt=function(y,W,c,Z,G){var D=y.get(Z);if(D!=null)return D;for(var Y=D=0;Y<Z.length;Y++){var u=Z[Y];h9(W,u,G)!=null&&(D!==0&&(c=J9(W,c,D,void 0,G)),D=u)}y.set(Z,D);return D};
K6h=function(y,W,c,Z,G){y=h9(y,Z,G,function(D){return VVh(D,c,!1,W)});
if(y!=null)return y};
OQI=function(y,W,c,Z,G,D,Y,u){var t=Fm(y,c);D=t?1:D;Y=!!Y||D===3;t=u&&!t;(D===2||t)&&pQ(y)&&(W=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=W[_.mQ]|0);y=uZO(W,G);var b=y===Vd?7:y[_.mQ]|0,r=tDt(b,c);if(u=!(4&r)){var F=y,K=c,l=!!(2&r);l&&(K|=2);for(var N=!l,P=!0,V=0,Q=0;V<F.length;V++){var S=VVh(F[V],Z,!1,K);if(S instanceof Z){if(!l){var cy=Fm(S);N&&(N=!cy);P&&(P=cy)}F[Q++]=S}}Q<V&&(F.length=Q);r|=4;r=P?r&-8193:r|8192;r=N?r|8:r&-9}r!==b&&(uE(y,r),2&r&&Object.freeze(y));if(t&&!(8&r||!y.length&&
(D===1||(D!==4?0:2&r||!(16&r)&&32&c)))){A9(r)&&(y=L8(y),r=CQ(r,c),c=J9(W,c,G,y));Z=y;t=r;for(b=0;b<Z.length;b++)F=Z[b],r=hEE(F),F!==r&&(Z[b]=r);t|=8;r=t=Z.length?t|8192:t&-8193;uE(y,r)}return y=nQD(y,r,W,c,G,D,u,Y)};
gQD=function(y){y==null&&(y=void 0);return y};
CQ=function(y,W){return y=(2&W?y|2:y&-3)&-273};
_.R6f=function(y,W,c,Z,G){P3(y);W=_.Qd(y,W,G,2,!0);var D;G=(D=vFt(W===Vd?7:W[_.mQ]|0))!=null?D:0;W.push(c(Z,G));return y};
lgO=function(y,W,c,Z,G,D,Y){P3(y);var u=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;y=OQI(y,u,u[_.mQ]|0,c,W,2,!0);if(D&&Y)G!=null||(G=y.length-1),aHI(y,G),y.splice(G,D),y.length||(y[_.mQ]&=-8193);else{if(D){if(typeof G!=="number"||G<0||G>y.length)throw Error();}else Z=Z!=null?Z:new c;G!=void 0?y.splice(G,D,Z):y.push(Z);G=c=y===Vd?7:y[_.mQ]|0;Fm(Z)?(c&=-9,y.length===1&&(c&=-8193)):c|=8192;c!==G&&uE(y,c)}};
NSt=function(y,W){if(typeof y==="string")return new Tf(CfH(y),W);if(Array.isArray(y))return new Tf(new Uint8Array(y),W);if(y.constructor===Uint8Array)return new Tf(y,!1);if(y.constructor===ArrayBuffer)return y=new Uint8Array(y),new Tf(y,!1);if(y.constructor===UZ)return W=EQt(y)||new Uint8Array(0),new Tf(W,!0,y);if(y instanceof Uint8Array)return y=y.constructor===Uint8Array?y:new Uint8Array(y.buffer,y.byteOffset,y.byteLength),new Tf(y,!1);throw Error();};
_.aH=function(){var y=function(){throw Error();};
Object.setPrototypeOf(y,y.prototype);return y};
p3t=function(y,W){var c=c===void 0?IgH:c;return new xQ(y,W,c)};
C9f=function(y,W,c,Z,G){W=P9I(W,Z);W!=null&&(c=_.J9O(y,c),G(W,y),_.VDt(y,c))};
MH=function(y,W,c,Z){var G=Z[y];if(G)return G;G={};G.binaryFields=Z;G.messageMetadata=oQF(Z[0]);var D=Z[1],Y=1;D&&D.constructor===Object&&(G.extensions=D,D=Z[++Y],typeof D==="function"&&(G.isMessageSet=!0,QHh!=null||(QHh=D),A9E!=null||(A9E=Z[Y+1]),D=Z[Y+=2]));for(var u={};D&&Array.isArray(D)&&D.length&&typeof D[0]==="number"&&D[0]>0;){for(var t=0;t<D.length;t++)u[D[t]]=D;D=Z[++Y]}for(t=1;D!==void 0;){typeof D==="number"&&(t+=D,D=Z[++Y]);var b=void 0;if(D instanceof xQ)var r=D;else r=h6f,Y--;D=void 0;
if((D=r)==null?0:D.$$isMsg){D=Z[++Y];b=Z;var F=Y;typeof D==="function"&&(D=D(),b[F]=D);b=D}D=Z[++Y];F=t+1;typeof D==="number"&&D<0&&(F-=D,D=Z[++Y]);for(;t<F;t++){var K=u[t];b?c(G,t,r,b,K):W(G,t,r,K)}}return Z[y]=G};
HQD=function(y){return Array.isArray(y)?y[0]instanceof xQ?y:[BSH,y]:[y,void 0]};
P9I=function(y,W){if(y instanceof _.eD)return y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(y))return NH(y,W,!1)};
L6t=function(y,W,c,Z){var G=c.$$binaryReaderFn;y[W]=Z?function(D,Y,u){return G(D,Y,u,Z)}:G};
dHw=function(y,W,c,Z,G){var D=c.$$binaryReaderFn,Y,u;y[W]=function(t,b,r){return D(t,b,r,u||(u=MH(vQI,L6t,dHw,Z).messageMetadata),Y||(Y=SBF(Z)),G)}};
SBF=function(y){var W=y[TSD];if(W!=null)return W;var c=MH(vQI,L6t,dHw,y);W=c.isMessageSet?function(Z,G){return QHh(Z,G,c)}:function(Z,G){for(var D=Z[_.mQ]|0;agF(G)&&G.nextWireType_!=4;){var Y=G.nextField_,u=c[Y];
if(u==null){var t=c.extensions;t&&(t=t[Y])&&(t=xHt(t),t!=null&&(u=c[Y]=t))}if(u==null||!u(G,Z,Y)){t=G;u=t.fieldCursor_;iQF(t);if(t.discardUnknownFields)var b=void 0;else{var r=t.decoder_.cursor_-u;t.decoder_.cursor_=u;b=MDw(t.decoder_,r)}r=t=u=void 0;var F=Z;b&&((u=(t=(r=F[$Q])!=null?r:F[$Q]=new wJf)[Y])!=null?u:t[Y]=[]).push(b)}}if(G=SZD(Z))G.reviveUnknownFields=c.binaryFields[e61];D&2048&&n8(Z);return!0};
y[TSD]=W;y[e61]=w31.bind(y);return W};
w31=function(y,W,c,Z){var G=this[vQI],D=this[TSD],Y=NH(void 0,G.messageMetadata,!1),u=SZD(y);if(u){var t=!1,b=G.extensions;if(b){G=function(N,P,V){if(V.length!==0)if(b[P])for(N=_.z(V),P=N.next();!P.done;P=N.next()){P=qBH(P.value);try{t=!0,D(Y,P)}finally{P.free()}}else Z==null||Z(y,P,V)};
if(W==null)kfD(u,G);else if(u!=null){var r=u[W];r&&G(u,W,r)}if(t){var F=y[_.mQ]|0;if(F&2&&F&4096&&(c==null||!c.reviveIntoImmutable))throw Error();var K=p8(F),l=function(N,P){if(h9(y,N,K)!=null)switch(c==null?void 0:c.resolutionBehavior){case 1:return;default:throw Error();}P!=null&&(F=J9(y,F,N,P,K));delete u[N]};
W==null?x1I(Y,Y[_.mQ]|0,function(N,P){l(N,P)}):l(W,h9(Y,W,K))}}}};
xHt=function(y){y=HQD(y);var W=y[0].$$binaryReaderFn;if(y=y[1]){var c=SBF(y),Z=MH(vQI,L6t,dHw,y).messageMetadata;return function(G,D,Y){return W(G,D,Y,Z,c)}}return W};
j$f=function(y,W,c){y[W]=c.$$binaryWriterFn};
WfE=function(y,W,c,Z){var G,D,Y=c.$$binaryWriterFn;y[W]=function(u,t,b){return Y(u,t,b,D||(D=MH(yng,j$f,WfE,Z).messageMetadata),G||(G=cnF(Z)))}};
cnF=function(y){var W=y[ZfD];if(!W){var c=MH(yng,j$f,WfE,y);W=function(Z,G){return GeF(Z,G,c)};
y[ZfD]=W}return W};
GeF=function(y,W,c){x1I(y,y[_.mQ]|0,function(Z,G){if(G!=null){var D=f3D(c,Z);D&&D(W,G,Z)}});
(y=SZD(y))&&kfD(y,function(Z,G,D){qH(W,W.encoder_.end());for(Z=0;Z<D.length;Z++)qH(W,EQt(D[Z])||new Uint8Array(0))})};
f3D=function(y,W){var c=y[W];if(c)return c;if(c=y.extensions)if(c=c[W]){c=HQD(c);var Z=c[0].$$binaryWriterFn;if(c=c[1]){var G=cnF(c),D=MH(yng,j$f,WfE,c).messageMetadata;c=y.isMessageSet?A9E(D,G):function(Y,u,t){return Z(Y,u,t,D,G)}}else c=Z;
return y[W]=c}};
_.oXh=function(y,W,c){if(Array.isArray(W)){var Z=W[_.mQ]|0;if(Z&4)return W;for(var G=0,D=0;G<W.length;G++){var Y=y(W[G]);Y!=null&&(W[D++]=Y)}D<G&&(W.length=D);c&&(uE(W,(Z|5)&-1537),Z&2&&Object.freeze(W));return W}};
_.kQ=function(y,W,c){return new xQ(y,W,c)};
_.D9D=function(y,W,c){return new xQ(y,W,c)};
_.jQ=function(y,W,c){J9(y,y[_.mQ]|0,W,c,p8(y[_.mQ]|0))};
Y3I=function(y,W,c){W=_.D3H(W);W!=null&&(_.y7(y,c,1),y=y.encoder_,c=z01||(z01=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+W,!0),A5=c.getUint32(0,!0),h5=c.getUint32(4,!0),_.WX(y,A5),_.WX(y,h5))};
_.ff=function(y,W,c){W=pJO(W);if(W!=null){switch(typeof W){case "string":m9f(W)}if(W!=null)switch(_.y7(y,c,0),typeof W){case "number":y=y.encoder_;BJ(W);s$F(y,A5,h5);break;case "bigint":c=BigInt.asUintN(64,W);c=new uMy(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));s$F(y.encoder_,c.JSC$6737_lo,c.JSC$6737_hi);break;default:c=m9f(W),s$F(y.encoder_,c.JSC$6737_lo,c.JSC$6737_hi)}}};
nXI=function(y,W,c){W=_.yd(W);W!=null&&W!=null&&(_.y7(y,c,0),_.tQH(y.encoder_,W))};
_.bff=function(y,W,c){XXh(y,c,PEa(W))};
_.rnD=function(y,W,c){W=_.m3D(W);W!=null&&(_.y7(y,c,0),y.encoder_.JSC$6739_buffer_.push(W?1:0))};
_.U9E=function(y,W,c){W=_.t9(W);W!=null&&FfI(y,c,Zag(W))};
$9w=function(y,W,c,Z,G){W=P9I(W,Z);W!=null&&(c=_.J9O(y,c),G(W,y),_.VDt(y,c))};
_.Kft=function(y,W,c){W=W==null||typeof W=="string"||W instanceof UZ?W:void 0;W!=null&&FfI(y,c,NSt(W,!0).buffer)};
_.Ofa=function(y,W,c){W=_.yd(W);W!=null&&(W=parseInt(W,10),_.y7(y,c,0),_.tQH(y.encoder_,W))};
_.o$=function(y,W){return function(c,Z){var G={treatNewDataAsImmutable:!0};Z&&Object.assign(G,Z);c=qBH(c,void 0,void 0,G);try{var D=new y,Y=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;SBF(W)(Y,c);var u=D}finally{c.free()}return u}};
_.D3=function(y){return function(W){return gXI(W,y)}};
R01=function(y){return function(){return gXI(this,y)}};
_.l3F=function(y){return C8(function(W){return W instanceof y&&!Fm(W)})};
_.ze=function(y){return function(W){return EXh(y,W)}};
PFh=function(y,W){return NfH({child:y,origin:W||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:I3g,getPayloadCase:function(c){return c.getPayloadCase()},
createInitMessage:function(c){var Z=new mf,G=new pXg;c=_.uF(G,1,c);return _.tn(Z,5,nf,c)}})};
XM=function(y){return{valueOf:y}.valueOf()};
VQy=function(){var y=null;if(!JnE)return y;try{var W=function(c){return c};
y=JnE.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(c){}return y};
Q$F=function(){CFy===void 0&&(CFy=VQy());return CFy};
_.rf=function(y){var W=Q$F();y=W?W.createScriptURL(y):y;return new bF(y)};
_.U3=function(y){if(y instanceof bF)return y.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
Anw=function(y){return y.toString().indexOf("`")===-1};
gf=function(y){return new _.O3(h0y,y)};
lF=function(y){return y instanceof _.O3};
_.N9=function(y){if(lF(y))return y.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
I$=function(y){return new BfF(function(W){return W.substr(0,y.length+1).toLowerCase()===y+":"})};
pf=function(y,W){W=W===void 0?Hff:W;if(lF(y))return y;for(var c=0;c<W.length;++c){var Z=W[c];if(Z instanceof BfF&&Z.isValid(y))return gf(y)}};
_.Jn=function(y,W){W=W===void 0?Hff:W;return pf(y,W)||PX};
V7=function(y){var W=window;if(typeof MediaSource!=="undefined"&&y instanceof MediaSource||typeof W.ManagedMediaSource!=="undefined"&&y instanceof W.ManagedMediaSource)return gf(URL.createObjectURL(y));W=y.type;W.toLowerCase()==="application/octet-stream"?W=!0:(W=W.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),W=(W==null?void 0:W.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(W[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(W[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(W[1])||/^font\/[\w-]+$/i.test(W[1])));if(!W)throw Error("da");return gf(URL.createObjectURL(y))};
_.Q7=function(y){for(var W=_.Cf.apply(1,arguments),c=[y[0]],Z=0;Z<W.length;Z++)c.push(String(W[Z])),c.push(y[Z+1]);return gf(c.join(""))};
_.vXw=function(y){if(!Lff){a:{var W=document.createElement("a");try{W.href=y}catch(c){y=void 0;break a}y=W.protocol;y=y===":"||y===""?"https:":y}return y}try{W=new URL(y)}catch(c){return"https:"}return W.protocol};
_.An=function(y){y instanceof _.O3?y=_.N9(y):y=d9a.test(y)?y:void 0;return y};
hn=function(y,W){W=_.An(W);W!==void 0&&(y.href=W)};
Lf=function(y){var W=Q$F();y=W?W.createHTML(y):y;return new BX(y)};
vX=function(y){if(y instanceof BX)return y.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.df=function(y,W){y.src=_.U3(W).toString()};
S3H=function(y,W){y.setAttribute("sandbox","");for(var c=0;c<W.length;c++)y.sandbox.supports&&!y.sandbox.supports(W[c])||y.sandbox.add(W[c])};
_.a3D=function(y,W,c){y.removeAttribute("srcdoc");switch(W){case 0:if(c instanceof bF)throw new TfI("TrustedResourceUrl",0);S3H(y,[]);W=_.An(c);W!==void 0&&(y.src=W);break;case 1:if(!(c instanceof bF))throw new TfI(typeof c,1);S3H(y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.df(y,c);break;case 2:if(c instanceof bF)throw new TfI("TrustedResourceUrl",2);S3H(y,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
W=_.An(c);W!==void 0&&(y.src=W);break;default:_.d2(W)}};
_.SQ=function(y,W,c,Z){W=_.An(W);return W!==void 0?y.open(W,c,Z):null};
_.Te=function(y){y=y===void 0?document:y;var W,c;y=(c=(W=y).querySelector)==null?void 0:c.call(W,"script[nonce]");return y==null?"":y.nonce||y.getAttribute("nonce")||""};
_.iF=function(y){var W=Q$F();y=W?W.createScript(y):y;return new _.xX(y)};
x9w=function(y){if(y instanceof _.xX)return y.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
ifI=function(y){var W=_.Te(y.ownerDocument);W&&y.setAttribute("nonce",W)};
_.M9=function(y,W){y.textContent=x9w(W);ifI(y)};
_.eQ=function(y,W){y.src=_.U3(W);ifI(y)};
_.wf=function(y,W){if(y.nodeType===1&&/^(script|style)$/i.test(y.tagName))throw Error("da");y.innerHTML=vX(W)};
_.kX=function(y,W,c,Z){if(y.length===0)throw Error("da");y=y.map(function(D){if(D instanceof MQD)D=D.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return D});
var G=c.toLowerCase();if(y.every(function(D){return G.indexOf(D)!==0}))throw Error("ea`"+c);
W.setAttribute(c,Z)};
_.jq=function(y,W,c){if(W instanceof bF)y.href=_.U3(W).toString(),y.rel=c;else{if(e0I.indexOf(c)===-1)throw Error("fa`"+c);W=_.An(W);W!==void 0&&(y.href=W,y.rel=c)}};
wXt=function(y){return"function"==typeof _.Wp&&y instanceof _.Wp};
_.q3y=function(y){if(wXt(y))return y.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.kef=function(y,W){W=_.An(W);W!==void 0&&(y.href=W)};
jQO=function(y,W){y&&(W=y.indexOf(W),0<=W&&y.splice(W,1))};
cp=function(y){return typeof y==="function"};
ym1=function(y){return y instanceof ZG||y&&"closed"in y&&cp(y.remove)&&cp(y.add)&&cp(y.unsubscribe)};
Gt=function(){};
fc=function(y){Wpf(function(){throw y;})};
oQ=function(y){return y};
DG=function(){return cmO(_.Cf.apply(0,arguments))};
cmO=function(y){return y.length===0?oQ:y.length===1?y[0]:function(W){return y.reduce(function(c,Z){return Z(c)},W)}};
Zcg=function(y){var W;return(W=y!=null?y:void 0)!=null?W:Promise};
Gt1=function(y,W){return new zt(function(c){var Z=0;return W.schedule(function(){Z===y.length?c.complete():(c.next(y[Z++]),c.closed||this.schedule())})})};
fGE=function(y,W){if(!y)throw Error("ga");return new zt(function(c){var Z=new ZG;Z.add(W.schedule(function(){var G=y[Symbol.asyncIterator]();Z.add(W.schedule(function(){var D=this;G.next().then(function(Y){Y.done?c.complete():(c.next(Y.value),D.schedule())})}))}));
return Z})};
oif=function(y,W,c){W=W.schedule(function(){try{c.call(this)}catch(Z){y.error(Z)}},0);
y.add(W)};
zlg=function(y,W){return new zt(function(c){var Z;c.add(W.schedule(function(){Z=y[DoF]();oif(c,W,function(){var G=Z.next(),D=G.value;G.done?c.complete():(c.next(D),this.schedule())})}));
return function(){var G;return cp((G=Z)==null?void 0:G.return)&&Z.return()}})};
Y$I=function(y,W){return new zt(function(c){var Z=new ZG;Z.add(W.schedule(function(){var G=y[Yi]();Z.add(G.subscribe({next:function(D){Z.add(W.schedule(function(){return c.next(D)}))},
error:function(D){Z.add(W.schedule(function(){return c.error(D)}))},
complete:function(){Z.add(W.schedule(function(){return c.complete()}))}}))}));
return Z})};
moI=function(y,W){return new zt(function(c){return W.schedule(function(){return y.then(function(Z){c.add(W.schedule(function(){c.next(Z);c.add(W.schedule(function(){return c.complete()}))}))},function(Z){c.add(W.schedule(function(){return c.error(Z)}))})})})};
sQt=function(y){return new TypeError("ha`"+(y!==null&&typeof y==="object"?"an invalid object":"'"+y+"'"))};
tqa=function(y,W){if(y!=null){if(cp(y[Yi]))return Y$I(y,W);if(u2y(y))return Gt1(y,W);if(cp(y==null?void 0:y.then))return moI(y,W);if(Symbol.asyncIterator&&cp(y==null?void 0:y[Symbol.asyncIterator]))return fGE(y,W);if(cp(y==null?void 0:y[DoF]))return zlg(y,W)}throw sQt(y);};
s$=function(y,W){return W?tqa(y,W):mp(y)};
mp=function(y){if(y instanceof zt)return y;if(y!=null){if(cp(y[Yi]))return nia(y);if(u2y(y))return Xph(y);if(cp(y==null?void 0:y.then))return bcE(y);if(Symbol.asyncIterator&&cp(y==null?void 0:y[Symbol.asyncIterator]))return rmt(y);if(cp(y==null?void 0:y[DoF]))return Fph(y)}throw sQt(y);};
nia=function(y){return new zt(function(W){var c=y[Yi]();if(cp(c.subscribe))return c.subscribe(W);throw new TypeError("ia");})};
Xph=function(y){return new zt(function(W){for(var c=0;c<y.length&&!W.closed;c++)W.next(y[c]);W.complete()})};
bcE=function(y){return new zt(function(W){y.then(function(c){W.closed||(W.next(c),W.complete())},function(c){return W.error(c)}).then(null,fc)})};
Fph=function(y){return new zt(function(W){for(var c=y[DoF]();!W.closed;){var Z=c.next(),G=Z.value;Z.done?W.complete():W.next(G)}return function(){return cp(c==null?void 0:c.return)&&c.return()}})};
rmt=function(y){return new zt(function(W){Uo1(y,W).catch(function(c){return W.error(c)})})};
Uo1=function(y,W){var c,Z,G,D,Y,u;return _.m(function(t){switch(t.nextAddress){case 1:_.tm(t,2,3);var b=y[Symbol.asyncIterator];D=b!==void 0?b.call(y):new $oa(_.z(y));case 5:return _.n(t,D.next(),8);case 8:Z=t.yieldResult;if(Z.done){t.jumpTo(3);break}Y=Z.value;W.next(Y);t.jumpTo(5);break;case 3:_.nc(t);_.X2(t,9);if(!Z||Z.done||!(G=D.return)){t.jumpTo(9);break}return _.n(t,G.call(D),9);case 9:_.nc(t,0,0,1);if(c)throw c.error;_.bR(t,10,1);break;case 10:_.bR(t,4);break;case 2:u=_.rs(t);c={error:u};t.jumpTo(3);
break;case 4:W.complete(),_.F2(t)}})};
KpH=function(y,W){return W?Gt1(y,W):Xph(y)};
OcO=function(y){return cp(y[y.length-1])?y.pop():void 0};
U$=function(y){var W=y[y.length-1];return W&&cp(W.schedule)?y.pop():void 0};
$i=function(){var y=_.Cf.apply(0,arguments),W=U$(y);return W?Gt1(y,W):KpH(y)};
Kc=function(y){var W=cp(y)?y:function(){return y};
return new zt(function(c){return c.error(W())})};
O$=function(y){return function(W){if(cp(W==null?void 0:W.lift))return W.lift(function(c){try{return y(c,this)}catch(Z){this.error(Z)}});
throw new TypeError("ja");}};
RQ=function(){return O$(function(y,W){var c=null;y._refCount++;var Z=new gs(W,void 0,void 0,void 0,function(){if(!y||y._refCount<=0||0<--y._refCount)c=null;else{var G=y._connection,D=c;c=null;!G||D&&G!==D||G.unsubscribe();W.unsubscribe()}});
y.subscribe(Z);Z.closed||(c=y.connect())})};
RlH=function(){var y=gia;var W=W===void 0?0:W;return O$(function(c,Z){Z.add(y.schedule(function(){return c.subscribe(Z)},W))})};
E$=function(y){return O$(function(W,c){var Z=0;W.subscribe(new gs(c,function(G){c.next(y.call(void 0,G,Z++))}))})};
Eiy=function(y){return E$(function(W){return lGD(W)?y.apply(null,_.No(W)):y(W)})};
Jmf=function(y){if(y.length===1){var W=y[0];if(NsO(W))return{args:W,keys:null};if(W&&typeof W==="object"&&IGD(W)===ppE)return y=PRO(W),{args:y.map(function(c){return W[c]}),
keys:y}}return{args:y,keys:null}};
IQ=function(){var y=_.Cf.apply(0,arguments),W=U$(y),c=OcO(y);y=Jmf(y);var Z=y.args,G=y.keys;if(Z.length===0)return s$([],W);W=new zt(Vqt(Z,W,G?function(D){for(var Y={},u=0;u<D.length;u++)Y[G[u]]=D[u];return Y}:oQ));
return c?W.pipe(Eiy(c)):W};
Vqt=function(y,W,c){c=c===void 0?oQ:c;return function(Z){CRH(W,function(){for(var G=y.length,D=Array(G),Y=G,u=y.map(function(){return!1}),t=!0,b={i$jscomp$260:0};b.i$jscomp$260<G;b={i$jscomp$260:b.i$jscomp$260},b.i$jscomp$260++)CRH(W,function(r){return function(){s$(y[r.i$jscomp$260],W).subscribe(new pc(Z,function(F){D[r.i$jscomp$260]=F;
t&&(u[r.i$jscomp$260]=!0,t=!u.every(oQ));t||Z.next(c(D.slice()))},function(){return--Y===0}))}}(b),Z)},Z)}};
CRH=function(y,W,c){y?c.add(y.schedule(W)):W()};
QQH=function(y,W,c,Z){var G=[],D=0,Y=0,u=!1,t=function(b){D++;mp(c(b,Y++)).subscribe(new gs(W,function(r){W.next(r)},void 0,function(){D--;
for(var r={};G.length&&D<Z;r={bufferedValue:void 0})r.bufferedValue=G.shift(),t(r.bufferedValue);!u||G.length||D||W.complete()}))};
y.subscribe(new gs(W,function(b){return D<Z?t(b):G.push(b)},void 0,function(){u=!0;
!u||G.length||D||W.complete()}));
return function(){G=null}};
Pp=function(y,W){var c=c===void 0?Infinity:c;if(cp(W))return Pp(function(Z,G){return E$(function(D,Y){return W(Z,D,G,Y)})(mp(y(Z,G)))},c);
typeof W==="number"&&(c=W);return O$(function(Z,G){return QQH(Z,G,y,c)})};
Ama=function(y){y=y===void 0?Infinity:y;return Pp(oQ,y)};
hlH=function(){var y=_.Cf.apply(0,arguments);return Ama(1)(KpH(y,U$(y)))};
Bsa=function(y){return new zt(function(W){mp(y()).subscribe(W)})};
Jm=function(y,W,c){if(cp(c)){var Z=c;c=void 0}if(Z)return Jm(y,W,c).pipe(Eiy(Z));Z=_.z(cp(y.addEventListener)&&cp(y.removeEventListener)?Hca.map(function(Y){return function(u){return y[Y](W,u,c)}}):cp(y.addListener)&&cp(y.removeListener)?Lpw.map(vig(y,W)):cp(y.on)&&cp(y.off)?doO.map(vig(y,W)):[]);
var G=Z.next().value,D=Z.next().value;return!G&&u2y(y)?Pp(function(Y){return Jm(Y,W,c)})(KpH(y)):new zt(function(Y){if(!G)throw new TypeError("ka");
var u=function(){var t=_.Cf.apply(0,arguments);return Y.next(1<t.length?t:t[0])};
G(u);return function(){return D(u)}})};
vig=function(y,W){return function(c){return function(Z){return y[c](W,Z)}}};
Cc=function(){var y=_.Cf.apply(0,arguments),W=U$(y);var c=typeof y[y.length-1]==="number"?y.pop():Infinity;return y.length?y.length===1?mp(y[0]):Ama(c)(KpH(y,W)):Vt};
Tsa=function(y){return y.length===1&&S$h(y[0])?y[0]:y};
aGH=function(){var y=Tsa(_.Cf.apply(0,arguments));return O$(function(W,c){var Z=[W].concat(_.No(y)),G=function(){if(!c.closed)if(Z.length>0){try{var D=mp(Z.shift())}catch(u){G();return}var Y=new gs(c,void 0,Gt,Gt);c.add(D.subscribe(Y));Y.add(G)}else c.complete()};
G()})};
Qt=function(y){return O$(function(W,c){var Z=0;W.subscribe(new gs(c,function(G){return y.call(void 0,G,Z++)&&c.next(G)}))})};
icg=function(){var y=_.Cf.apply(0,arguments);y=Tsa(y);return y.length===1?mp(y[0]):new zt(xoE(y))};
xoE=function(y){return function(W){for(var c=[],Z={i$jscomp$263:0};c&&!W.closed&&Z.i$jscomp$263<y.length;Z={i$jscomp$263:Z.i$jscomp$263},Z.i$jscomp$263++)c.push(mp(y[Z.i$jscomp$263]).subscribe(new gs(W,function(G){return function(D){if(c){for(var Y=0;Y<c.length;Y++)Y!==G.i$jscomp$263&&c[Y].unsubscribe();c=null}W.next(D)}}(Z))))}};
Mqt=function(){var y=_.Cf.apply(0,arguments),W=OcO(y),c=Tsa(y);return c.length?new zt(function(Z){var G=c.map(function(){return[]}),D=c.map(function(){return!1});
Z.add(function(){G=D=null});
for(var Y={sourceIndex$jscomp$1:0};!Z.closed&&Y.sourceIndex$jscomp$1<c.length;Y={sourceIndex$jscomp$1:Y.sourceIndex$jscomp$1},Y.sourceIndex$jscomp$1++)mp(c[Y.sourceIndex$jscomp$1]).subscribe(new gs(Z,function(u){return function(t){G[u.sourceIndex$jscomp$1].push(t);G.every(function(b){return b.length})&&(t=G.map(function(b){return b.shift()}),Z.next(W?W.apply(null,_.No(t)):t),G.some(function(b,r){return!b.length&&D[r]})&&Z.complete())}}(Y),void 0,function(u){return function(){D[u.sourceIndex$jscomp$1]=
!0;
!G[u.sourceIndex$jscomp$1].length&&Z.complete()}}(Y)));
return function(){G=D=null}}):Vt};
elw=function(y){var W,c,Z;return!!y&&typeof y.active==="boolean"&&typeof((W=y.clock)==null?void 0:W.now)==="function"&&((c=y.clock)==null?void 0:c.timeline)!==void 0&&!((Z=y.lastMeasurement)==null||!Z.timestamp)&&typeof y.equivalentTo==="function"&&typeof y.extrapolateToNow==="function"&&typeof y.extrapolateToTime==="function"&&typeof y.map==="function"&&typeof y.joinWith==="function"};
wpH=function(y){function W(c){return typeof c==="boolean"||typeof c==="string"||typeof c==="number"||c===void 0||c===null}
return W(y)?!0:Array.isArray(y)?y.every(W):typeof y==="object"?Object.keys(y).every(function(c){return typeof c==="string"})&&Object.values(y).every(function(c){return Array.isArray(c)?c.every(W):W(c)}):!1};
q$F=function(y){if(wpH(y))return y;if(elw(y))return{lastMeasurement:{value:q$F(y.lastMeasurement.value),timestamp:Am(y.lastMeasurement.timestamp,new hm(0,y.lastMeasurement.timestamp.timeline))},active:y.active};try{return JSON.parse(JSON.stringify(y))}catch(W){}return String(y)};
Bp=function(y,W){return function(c){return new zt(function(Z){return c.subscribe(function(G){y.timeExecution(W,function(){Z.next(G)})()},function(G){y.timeExecution(W,function(){Z.error(G)})()},function(){y.timeExecution(W,function(){Z.complete()})()})})}};
ktI=function(y,W){var c=!1;return new zt(function(Z){var G=y.setTimeout(function(){c=!0;Z.next(!0);Z.complete()},W);
return function(){c||y.clearTimeout(G)}})};
jfD=function(y){y=y.global;if(y.fetchLater)return y.fetchLater.bind(y)};
Hp=function(y){return O$(function(W,c){var Z=null,G=!1,D;Z=W.subscribe(new gs(c,void 0,function(Y){D=mp(y(Y,Hp(y)(W)));Z?(Z.unsubscribe(),Z=null,D.subscribe(c)):G=!0}));
G&&(Z.unsubscribe(),Z=null,D.subscribe(c))})};
ySh=function(y,W,c){return function(Z,G){var D=c,Y=W,u=0;Z.subscribe(new gs(G,function(t){var b=u++;Y=D?y(Y,t,b):(D=!0,t);G.next(Y)},void 0,void 0))}};
WVg=function(y){y=y===void 0?null:y;return O$(function(W,c){var Z=!1;W.subscribe(new gs(c,function(G){Z=!0;c.next(G)},void 0,function(){Z||c.next(y);
c.complete()}))})};
Lc=function(){return O$(function(y,W){y.subscribe(new gs(W,Gt))})};
vp=function(y){return O$(function(W,c){W.subscribe(new gs(c,function(){return c.next(y)}))})};
ds=function(y){return y<=0?function(){return Vt}:O$(function(W,c){var Z=0;
W.subscribe(new gs(c,function(G){++Z<=y&&(c.next(G),y<=Z&&c.complete())}))})};
Sq=function(y){var W=W===void 0?oQ:W;var c;y=(c=y)!=null?c:cSF;return O$(function(Z,G){var D,Y=!0;Z.subscribe(new gs(G,function(u){var t=W(u);if(Y||!y(D,t))Y=!1,D=t,G.next(u)}))})};
cSF=function(y,W){return y===W};
GaI=function(y){y=y===void 0?ZPw:y;return O$(function(W,c){var Z=!1;W.subscribe(new gs(c,function(G){Z=!0;c.next(G)},void 0,function(){return Z?c.complete():c.error(y())}))})};
ZPw=function(){return new f_f};
Tt=function(){var y=_.Cf.apply(0,arguments);return function(W){return hlH(W,$i.apply(null,_.No(y)))}};
oyh=function(y){return O$(function(W,c){var Z=0;W.subscribe(new gs(c,function(G){y.call(void 0,G,Z++,W)||(c.next(!1),c.complete())},void 0,function(){c.next(!0);
c.complete()}))})};
DgI=function(){return O$(function(y,W){var c=[];y.subscribe(new gs(W,function(Z){c.push(Z);1<c.length&&c.shift()},void 0,function(){for(var Z=_.z(c),G=Z.next();!G.done;G=Z.next())W.next(G.value);
W.complete()},function(){c=null}))})};
z9h=function(y,W){var c=arguments.length>=2;return function(Z){return Z.pipe(y?Qt(function(G,D){return y(G,D,Z)}):oQ,DgI(),c?WVg(W):GaI(function(){return new f_f}))}};
xi=function(y){var W=cp(y)?y:function(){return y};
return cp()?O$(function(c,Z){var G=W();(void 0)(G).subscribe(Z).add(c.subscribe(G))}):function(c){var Z=new aQ(c,W);
cp(c==null?void 0:c.lift)&&(Z.lift=c.lift);Z.source=c;Z.subjectFactory=W;return Z}};
eq=function(y){var W=new iR(y,void 0,void 0);return function(c){return xi(function(){return W})(c)}};
ws=function(y,W){return O$(ySh(y,W,arguments.length>=2))};
qo=function(){var y=_.Cf.apply(0,arguments),W=U$(y);return O$(function(c,Z){(W?hlH(y,c,W):hlH(y,c)).subscribe(Z)})};
ki=function(y){return O$(function(W,c){var Z=null,G=0,D=!1;W.subscribe(new gs(c,function(Y){var u;(u=Z)==null||u.unsubscribe();u=G++;mp(y(Y,u)).subscribe(Z=new gs(c,function(t){return c.next(t)},void 0,function(){Z=null;
D&&!Z&&c.complete()}))},void 0,function(){(D=!0,!Z)&&c.complete()}))})};
jL=function(y,W){W=W===void 0?!1:W;return O$(function(c,Z){var G=0;c.subscribe(new gs(Z,function(D){var Y=y(D,G++);(Y||W)&&Z.next(D);!Y&&Z.complete()}))})};
YbF=function(y,W,c){var Z=cp(y)||W||c?{next:y,error:W,complete:c}:y;return Z?O$(function(G,D){G.subscribe(new gs(D,function(Y){var u;(u=Z.next)==null||u.call(Z,Y);D.next(Y)},function(Y){var u;
(u=Z.error)==null||u.call(Z,Y);D.error(Y)},function(){var Y;
(Y=Z.complete)==null||Y.call(Z);D.complete()}))}):oQ};
sfF=function(){var y=_.Cf.apply(0,arguments),W=OcO(y);return O$(function(c,Z){for(var G=y.length,D=Array(G),Y=y.map(function(){return!1}),u=!1,t={i$jscomp$273:0};t.i$jscomp$273<G;t={i$jscomp$273:t.i$jscomp$273},t.i$jscomp$273++)mp(y[t.i$jscomp$273]).subscribe(new gs(Z,function(b){return function(r){D[b.i$jscomp$273]=r;
u||Y[b.i$jscomp$273]||(Y[b.i$jscomp$273]=!0,(u=Y.every(oQ))&&(Y=null))}}(t),void 0,Gt));
c.subscribe(new gs(Z,function(b){u&&(b=[b].concat(_.No(D)),Z.next(W?W.apply(null,_.No(b)):b))}))})};
uFF=function(y){var W=[],c=0,Z;for(Z in y)W[c++]=Z;return W};
tLf=function(y,W){for(var c in y)if(y[c]==W)return!0;return!1};
nyD=function(y,W,c){for(var Z in y)if(W.call(c,y[Z],Z,y))return Z};
Xuw=function(y){if(!y||typeof y!=="object")return y;if(typeof y.clone==="function")return y.clone();if(typeof Map!=="undefined"&&y instanceof Map)return new Map(y);if(typeof Set!=="undefined"&&y instanceof Set)return new Set(y);if(y instanceof Date)return new Date(y.getTime());var W=Array.isArray(y)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(y)||y instanceof DataView?{}:new y.constructor(y.length),c;for(c in y)W[c]=Xuw(y[c]);return W};
bPE=function(y){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return bPE.apply(null,arguments[0]);if(W%2)throw Error("oa");for(var c={},Z=0;Z<W;Z+=2)c[arguments[Z]]=arguments[Z+1];return c};
rSh=function(y){var W=arguments.length;if(W==1&&Array.isArray(arguments[0]))return rSh.apply(null,arguments[0]);for(var c={},Z=0;Z<W;Z++)c[arguments[Z]]=!0;return c};
_.yx=function(y){return new MQD(y[0].toLowerCase())};
FVI=function(y){try{return new URL(y,window.document.baseURI)}catch(W){return new URL("about:invalid")}};
UgF=function(y,W){var c=W.createRange();c.selectNode(W.body);y=Lf(y);return c.createContextualFragment(vX(y))};
$gI=function(y){y=y.nodeName;return typeof y==="string"?y:"FORM"};
KVw=function(y){y=y.nodeType;return y===1||typeof y!=="number"};
Wu=function(y,W,c){y.setAttribute(W,c)};
OPF=function(y){return y.parts.map(function(W){var c=W.descriptor;return""+W.url+(c?" "+c:"")}).join(" , ")};
_.cu=function(y){var W=_.Cf.apply(1,arguments);if(W.length===0)return _.rf(y[0]);for(var c=y[0],Z=0;Z<W.length;Z++)c+=encodeURIComponent(W[Z])+y[Z+1];return _.rf(c)};
_.of=function(y,W){y=_.U3(y).toString();var c=y.split(/[?#]/),Z=/[?]/.test(y)?"?"+c[1]:"";return gyH(c[0],Z,/[#]/.test(y)?"#"+(Z?c[2]:c[1]):"",W)};
gyH=function(y,W,c,Z){function G(Y,u){Y!=null&&(Array.isArray(Y)?Y.forEach(function(t){return G(t,u)}):(W+=D+encodeURIComponent(u)+"="+encodeURIComponent(Y),D="&"))}
var D=W.length?"&":"?";Z.constructor===Object&&(Z=Object.entries(Z));Array.isArray(Z)?Z.forEach(function(Y){return G(Y[1],Y[0])}):Z.forEach(G);
return _.rf(y+W+c)};
R9a=function(y){y=y.global;if(y.PendingGetBeacon)return y.PendingGetBeacon};
za=function(y){return function(W){return W.pipe(l_y(y,xi(new D_)))}};
Yy=function(y){return function(W){return W.pipe(l_y(y,eq(1)))}};
l_y=function(y,W){function c(Z){return new zt(function(G){return Z.subscribe(function(D){mV(y,function(){return void G.next(D)},3)},function(D){mV(y,function(){return void G.error(D)},3)},function(){mV(y,function(){return void G.complete()},3)})})}
return DG(c,RlH(),W,RQ(),c)};
I_D=function(y){var W=EyF(y);return W===null?new sb(null):W.pipe(E$(function(c){c=c.serialize();if(NQH)c=_.DH.btoa(c);else{for(var Z=[],G=0,D=0;D<c.length;D++){var Y=c.charCodeAt(D);Y>255&&(Z[G++]=Y&255,Y>>=8);Z[G++]=Y}c=_.OB(Z)}return c}),ds(1),Yy(y.queue))};
puw=function(y){var W=W===void 0?{}:W;if(typeof Event==="function")return new Event(y,W);if(typeof document!=="undefined"){var c=document.createEvent("CustomEvent");c.initCustomEvent(y,W.bubbles||!1,W.cancelable||!1,W.detail);return c}throw Error();};
PGf=function(y){return typeof y==="string"?document.getElementById(y):y};
VLt=function(y){var W=!1;W=W===void 0?!1:W;if(y.tagName==="IMG"){if(y.complete&&(!y.naturalWidth||!y.naturalHeight))return!0;var c;if(W&&((c=y.style)==null?void 0:c.display)==="none")return!0}var Z,G;return JSg.test((Z=y.getAttribute("width"))!=null?Z:"")&&JSg.test((G=y.getAttribute("height"))!=null?G:"")};
CGO=function(y,W){if(y.tagName==="IMG")return y.naturalWidth&&y.naturalHeight?!0:!1;try{if(y.readyState)var c=y.readyState;else{var Z,G;c=(Z=y.contentWindow)==null?void 0:(G=Z.document)==null?void 0:G.readyState}return c==="complete"}catch(D){return W===void 0?!1:W}};
QfH=function(y){y||(y=function(W,c,Z){W.addEventListener(c,Z)});
return y};
HPO=function(y,W){var c=ASf();c=c===void 0?new h9F:c;if(y=PGf(y)){var Z=QfH(Z);for(var G=!1,D=function(V){G||(G=!0,W(V))},Y,u=2,t=0;t<BQD.length;++t)if(BQD[t]===y.tagName){u=3;
Y=[y];break}Y||(Y=y.querySelectorAll(BQD.join(",")));var b=0,r=0,F=!0,K=y=!1;t={};for(var l=0;l<Y.length;t={isImg:void 0},l++){var N=Y[l];if(!VLt(N))if(t.isImg=N.tagName==="IMG",CGO(N,c.crossDomainLoadedDefault))y=!0,t.isImg&&(F=!0);else{b++;var P=function(V){return function(Q){b--;!b&&F&&D(u);V.isImg&&(Q=Q&&Q.type==="error",r--,Q||(F=!0),!r&&K&&F&&D(u))}}(t);
Z(N,"load",P);t.isImg&&(r++,Z(N,"error",P))}}r===0&&(F=!0);Y=null;Y=_.DH.document.readyState==="complete";if(b===0&&!y&&Y)u=5;else if(b||!y){Z(_.DH,"load",function(){!c.pendingImagesBlockLoad||!r&&F?D(4):K=!0});
return}D(u)}};
LVh=function(y,W,c){if(y)for(var Z=0;y!=null&&Z<500&&!c(y);++Z)y=W(y)};
vyt=function(y,W){LVh(y,function(c){try{return c===c.parent?null:c.parent}catch(Z){}return null},W)};
dgD=function(y,W){if(y.tagName=="IFRAME")W(y);else{y=y.querySelectorAll("IFRAME");for(var c=0;c<y.length&&!W(y[c]);++c);}};
SbH=function(y){return(y=y.ownerDocument)&&(y.parentWindow||y.defaultView)||null};
TQt=function(y,W,c){try{var Z=JSON.parse(c.data)}catch(Y){}if(typeof Z==="object"&&Z&&Z.type==="creativeLoad"){var G=SbH(y);if(c.source&&G){var D;vyt(c.source,function(Y){try{if(Y.parent===G)return D=Y,!0}catch(u){}});
D&&dgD(y,function(Y){if(Y.contentWindow===D)return W(Z),!0})}}};
a_w=function(y){return typeof y==="string"?document.getElementById(y):y};
e9a=function(){var y={};return y[0]=_.cu(xgy,"current"),y[1]=_.cu(iPE),y[2]=_.cu(MLO),y};
uG=function(y,W){return y.left===W.left&&y.top===W.top&&y.width===W.width&&y.height===W.height};
wuf=function(y,W){return{left:Math.max(y.left,W.left),top:Math.max(y.top,W.top),width:Math.max(0,Math.min(y.left+y.width,W.left+W.width)-Math.max(y.left,W.left)),height:Math.max(0,Math.min(y.top+y.height,W.top+W.height)-Math.max(y.top,W.top))}};
qbI=function(y,W){return{left:Math.round(y.left+W.x),top:Math.round(y.top+W.y),width:y.width,height:y.height}};
tS=function(y,W,c,Z){this.top=y;this.right=W;this.bottom=c;this.left=Z};
kaH=function(y,W,c){if(y&&W!==null&&W!=W.top){if(!W.top)return new _.nP(-12245933,-12245933);W=W.top}try{return(c===void 0?0:c)?(new _.nP(W.innerWidth,W.innerHeight)).round():_.bG(W).round()}catch(Z){return new _.nP(-12245933,-12245933)}};
jef=function(y,W,c){try{if(y){if(!W.top)return new tS(-12245933,-12245933,-12245933,-12245933);W=W.top}var Z=kaH(y,W,c),G=Z.height,D=Z.width;if(D===-12245933)return new tS(D,D,D,D);var Y=rQ(FF(W.document)),u=Y.x,t=Y.y;return new tS(t,u+D,t+G,u)}catch(b){return new tS(-12245933,-12245933,-12245933,-12245933)}};
yoa=function(y){var W;return(W=y.google_tag_data)!=null?W:y.google_tag_data={}};
WMy=function(y){var W,c;return typeof((W=y.navigator)==null?void 0:(c=W.userAgentData)==null?void 0:c.getHighEntropyValues)==="function"};
Zgt=function(y){if(!WMy(y))return null;var W=yoa(y);if(W.uach_promise)return W.uach_promise;y=y.navigator.userAgentData.getHighEntropyValues(coy).then(function(c){W.uach!=null||(W.uach=c);return c});
return W.uach_promise=y};
XkO=function(y){var W;return GYH(fdO(org(DQt(zKO(YRD(mQE(seH(ueI(new tZt,y.architecture||""),y.bitness||""),y.mobile||!1),y.model||""),y.platform||""),y.platformVersion||""),y.uaFullVersion||""),((W=y.fullVersionList)==null?void 0:W.map(function(c){var Z=new nrI;Z=_.Ub(Z,1,c.brand);return _.Ub(Z,2,c.version)}))||[]),y.wow64||!1)};
bg1=function(y){var W,c;return(c=(W=Zgt(y))==null?void 0:W.then(function(Z){return XkO(Z)}))!=null?c:null};
rog=function(y,W){return new zt(function(c){var Z=!1,G=Array(W.length);G.fill(void 0);var D=new Set,Y=new Set,u=function(F,K){y.running?(G[K]=F,D.add(K),Z||(Z=!0,mV(y,function(){Z=!1;c.next(_.SI(G))},1))):c.error(new $y(K))},t=function(F,K){Y.add(K);
D.add(K);mV(y,function(){c.error(F)},1)},b=function(F){Y.add(F);
mV(y,function(){Y.size===W.length&&c.complete()},1)},r=W.map(function(F,K){return F.subscribe(function(l){return void u(l,K)},function(l){return void t(l,K)},function(){return void b(K)})});
return function(){r.forEach(function(F){return void F.unsubscribe()})}})};
$Qf=function(y,W,c){function Z(){if(W.debugChannel){var V=W.debugChannel,Q=V.next;var S={creativeId:W.debugNames.getName(c),requiredSignals:G,signals:Object.assign({},D),hasPrematurelyCompleted:Y,errorMessage:u,erroredSignalKey:t};S={specMajor:2,specMinor:0,specPatch:0,timestamp:Am(W.timeProvider.now(),new hm(0,W.timeProvider.timeline)),instanceId:W.debugNames.getName(W.symbol),creativeState:S};Q.call(V,S)}}
for(var G=Object.keys(y),D={},Y=!1,u=null,t=null,b={},r=new Set,F=[],K=[],l=_.z(G),N=l.next(),P={};!N.done;P={key$jscomp$372:void 0},N=l.next())P.key$jscomp$372=N.value,N=y[P.key$jscomp$372],N instanceof sb?(b[P.key$jscomp$372]=N.value,r.add(P.key$jscomp$372),W.debugChannel&&(D[String(P.key$jscomp$372)]=q$F(N.value))):(N=N.pipe(Sq(function(V,Q){return elw(V)||elw(Q)?!1:V===Q}),E$(function(V){return function(Q){W.debugChannel&&(D[String(V.key$jscomp$372)]=q$F(Q),Z());
var S={};return S[V.key$jscomp$372]=Q,S}}(P)),Hp(function(V){return function(Q){if(Q instanceof $y)throw new FMD(String(V.key$jscomp$372));
throw Q;}}(P)),YbF(function(V){return function(){r.add(V.key$jscomp$372)}}(P),function(V){return function(Q){t=String(V.key$jscomp$372);
u=String(Q);Z()}}(P),function(V){return function(){r.has(V.key$jscomp$372)||(Y=!0,Z())}}(P))),K.push(P.key$jscomp$372),F.push(N));
(y=Object.keys(D).length>0)&&Z();l=rog(W.queue,F).pipe(Hp(function(V){if(V instanceof $y)throw new UQ1(String(K[V.inputObservableIndex]));throw V;}),E$(function(V){return Object.freeze(Object.assign.apply(Object,[{},
b].concat(_.No(V))))}));
return(F=F.length>0)&&y?Cc($i(Object.freeze(b)),l):F?l:$i(Object.freeze(b))};
KMD=function(y,W,c,Z,G){return y.performanceMonitor.timeExecution.bind(y.performanceMonitor)(733,function(){var D={};try{return W.pipe(Hp(function(Y){Z(Object.assign({},D,{error:Y}));return Vt}),Pp(function(Y){try{var u=c(y,Y)}catch(b){return Z(Object.assign({},D,{error:b instanceof Error?b:String(b)})),Vt}var t={};
return $Qf(u,y,Y.symbol).pipe(YbF(function(b){t=b}),eq(1),RQ()).pipe(G,Hp(function(b){Z(Object.assign({},t,{error:b}));
return Vt}),Tt(void 0),E$(function(){return!0}))})).pipe(ws(function(Y){return Y+1},0),Hp(function(Y){Z(Object.assign({},D,{error:Y}));
return Vt}))}catch(Y){return Z(Object.assign({},D,{error:Y})),Vt}})()};
KP=function(y){var W=new Map;if(typeof y!=="object"||y===null)return W;Object.values(y).forEach(function(c){c&&typeof c.extrapolateToNow==="function"&&(W.has(c.clock.timeline)||W.set(c.clock.timeline,c.clock.now()))});
return W};
OgF=function(y,W){return typeof y==="string"?encodeURIComponent(y):typeof y==="number"?String(y):Array.isArray(y)?y.map(function(c){return OgF(c,W)}).join(","):y instanceof hm?y.toString():y&&typeof y.extrapolateToNow==="function"?OgF(y.extrapolateUsingTimestampMap(W).value,W):y===!0?"1":y===!1?"0":y===void 0||y===null?null:y instanceof grI?RKD(y):[y.top,
y.left,y.top+y.height,y.left+y.width].join()};
ldO=function(y,W){y=Object.entries(y).map(function(c){var Z=_.z(c);c=Z.next().value;Z=Z.next().value;Z=OgF(Z,W);return Z===null?"":c+"="+Z}).filter(function(c){return c!==""});
return y.length?y.join("&"):""};
IdF=function(y,W){var c=ErH,Z=NLa;W=W===void 0?.01:W;return function(G){W>0&&Math.random()<=W&&(y.global.HTMLFencedFrameElement&&y.global.fence&&typeof y.global.fence.reportEvent==="function"&&y.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),G=Object.assign({},G,{errorMessage:G.error instanceof Error&&G.error.message?G.error.message:String(G.error),errorStack:G.error instanceof Error&&G.error.stack?String(G.error.stack):null,errorName:G.error instanceof
Error&&G.error.name?String(G.error.name):null,errorContext:String(y.performanceMonitor.timedFunctionContext),errorEscapedQueryId:G.escapedQueryId}),c(Object.assign({},G,{payloadMapper:function(){return function(D){try{return Z(Object.assign({},D))}catch(Y){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),KP(G)).forEach(function(D){y.beaconFactory.makeBeacon(D).sendNow()}))}};
pkh=function(){var y=_.Cf.apply(0,arguments);return function(W){var c=W.pipe(eq(1),RQ());W=y.map(function(Z){return c.pipe(Z,Tt(!0))});
return IQ(W).pipe(ds(1),Lc())}};
PCF=function(){var y=_.Cf.apply(0,arguments);return function(W){var c=W.pipe(eq(1),RQ());W=y.map(function(Z){return c.pipe(Z,Tt(!0))});
return Cc.apply(null,_.No(W)).pipe(ds(1),Lc())}};
JoH=function(y,W){return function(c){var Z=c.pipe(eq(1),RQ());c=Z.pipe(y,Tt(!0));Z=Z.pipe(DG(W,eq(),RQ()),Tt(!0));c=IQ([c,Z]);return icg(c,Z).pipe(ds(1),Lc())}};
VZH=function(y,W,c){c(!0)};
CCt=function(y,W){return DG(ki(function(c){var Z=y(c),G=W(c),D={};return Z&&G&&D?new zt(function(Y){G(Z,D,function(u){Y.next(Object.assign({},c,{canEmit:u}));Y.complete()});
return function(){}}):Ob}),Qt(function(c){return c.canEmit}))};
Qe1=function(y){var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(c){return c.pipe(ki(function(Z){return new zt(function(G){function D(){u.disconnect();t.unsubscribe()}
var Y=y.MutationObserver;if(Y&&Z.ref!==void 0){var u=new Y(function(b){G.next(b)});
u.observe(Z.ref,W);var t=Z.JSC$7205_released.subscribe(D);return D}})}))}};
Aoa=function(y){if(y.measurementDeferralState===3)return null;if(y.timeOnScreenReason!==void 0){var W=y.creativeFound===!1?"n":null;if(W!==null)return W}return y.geometricMeasurementErrors instanceof gQ?"msf":y.contextValidationErrors instanceof Rf?"c":y.contextVisibilityKnown===!1?"pv":y.geometricMeasurementErrors||y.contextValidationErrors?"x":null};
BLy=function(y,W){return y.replace(hKg,function(c,Z){try{var G=_.Eb.get(W,Z);if(G==null||G.toString()==null)return c;G=G.toString();if(G==""||!_.tH(G==null?"":String(G)))return encodeURIComponent(G).replace(/%2C/g,",")}catch(D){}return c})};
Hgy=function(y,W){var c=Object.assign({},y),Z=y.userAgentClientHints;c=(delete c.userAgentClientHints,c);c=y.payloadMapper(c);var G=ldO(c,W);return _.Ng(y.urlPrefixes,function(D){var Y="";typeof Z==="string"&&(Y="&"+ldO({uach:Z},W));var u={};return BLy(D,(u.VIEWABILITY=G,u))+Y})};
ErH=function(y,W){var c=y.payloadMapper(y),Z=ldO(c,W);return Z?_.Ng(y.urlPrefixes,function(G){G=G.indexOf("?")>=0?G:G+"?";G="?&".indexOf(G.slice(-1))>=0?G:G+"&";return G+Z}):y.urlPrefixes};
LMD=function(){return DG(Qt(function(y){return y!==void 0}),E$(function(y){return y}))};
vrE=function(y){return DG(E$(function(){return!0}),qo(!1),Yy(y))};
dQy=function(y){return y.length<=0?Vt:IQ(y.map(function(W){var c=0;return W.pipe(E$(function(Z){return{index:c++,value:Z}}))})).pipe(Qt(function(W){return W.every(function(c){return c.index===W[0].index})}),E$(function(W){return W.map(function(c){return c.value})}))};
SRa=function(y,W){y.currentState&&(y.previousState=y.currentState);y.currentState=W;y.previousState&&y.previousState.value?(W=Math.max(0,Am(W.timestamp,y.previousState.timestamp)),y.totalTime+=W,y.consecutiveTime+=W):y.consecutiveTime=0;return y};
TLD=function(){return DG(ws(SRa,{totalTime:0,consecutiveTime:0}),E$(function(y){return y.totalTime}))};
adH=function(){return DG(ws(SRa,{totalTime:0,consecutiveTime:0}),E$(function(y){return y.consecutiveTime}))};
xQD=function(y,W){return function(c){return dQy(W.map(function(Z){return c.pipe(y(Z))}))}};
iga=function(){var y;return DG(YbF(function(W){return void(y=W.timestamp)}),adH(),E$(function(W){return{timestamp:y,
value:Math.round(W)}}))};
MZH=function(y,W){return uG(y.topWindowViewportExternalGeometry,W.topWindowViewportExternalGeometry)&&uG(y.elementGeometry,W.elementGeometry)&&uG(y.exposedViewportLocalGeometry,W.exposedViewportLocalGeometry)&&uG(y.intersectionGeometry,W.intersectionGeometry)&&y.elementGeometrySourceName===W.elementGeometrySourceName&&y.measurementRequests===W.measurementRequests&&y.viewportGeometrySourceName===W.viewportGeometrySourceName&&y.viewportLocalAppOffset.x===W.viewportLocalAppOffset.x&&y.viewportLocalAppOffset.y===
W.viewportLocalAppOffset.y};
j2y=function(y,W){return function(c){return function(Z){var G=Z.pipe(xi(new D_),RQ());Z=c.element.pipe(Sq());G=G.pipe(E$(function(D){return D.value}));
return IQ([Z,G,W]).pipe(E$(function(D){var Y=_.z(D);D=Y.next().value;var u=Y.next().value;Y=Y.next().value;if(D.ref===void 0)var t={top:0,left:0,width:0,height:0};else{t=D.ref.getBoundingClientRect();var b=D.ref,r=y.global,F=new _.If(0,0),K=pP(_.Pu(b));if(eKt(K,"parent")){do{if(K==r)var l=_.Vx(b);else l=wka(b),l=new _.If(l.left,l.top);F.x+=l.x;F.y+=l.y}while(K&&K!=r&&K!=K.parent&&(b=K.frameElement)&&(K=K.parent))}t={top:F.y,left:F.x,width:t.width,height:t.height}}t=qbI(t,u.viewportLocalAppOffset);
r=wuf(t,u.exposedViewportLocalGeometry);F=y.timeProvider.now();K=Object;b=K.assign;if(Y!==2||y.inCrossDomainIframe||r.width<=0||r.height<=0)var N=!1;else try{var P=y.document.elementFromPoint(r.left+r.width/2,r.top+r.height/2);N=P?!qRg(P,D):!1}catch(V){N=!1}return{timestamp:F,value:b.call(K,{},u,{elementGeometrySourceName:"geo",intersectionGeometry:N?kYw.intersectionGeometry:r,elementGeometry:t})}}),za(y.queue))}}};
qRg=function(y,W,c){c=c===void 0?0:c;return y.ref===void 0||W.ref===void 0?!1:y.ref===W.ref||_.CP(W.ref,function(Z){return Z===y.ref})?!0:W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView===W.ref.ownerDocument.defaultView.top?!1:c<10&&W.ref.ownerDocument&&W.ref.ownerDocument.defaultView&&W.ref.ownerDocument.defaultView.frameElement?qRg(y,new Qx(W.ref.ownerDocument.defaultView.frameElement),c+1):!0};
clw=function(y){return function(W){return W.pipe(y.ResizeObserver?ylH(y):WTh(y),eq(1),RQ())}};
ylH=function(y){return function(W){return W.pipe(ki(function(c){var Z=y.ResizeObserver;if(!Z||c.ref===void 0)return $i(kYw.elementGeometry);var G=(new zt(function(D){function Y(){c.ref!==void 0&&u.unobserve(c.ref);u.disconnect();t.unsubscribe()}
if(c.ref===void 0)return D.complete(),function(){};
var u=new Z(function(b){b.forEach(function(r){D.next(r)})});
u.observe(c.ref);var t=c.JSC$7205_released.subscribe(Y);return Y})).pipe(Bp(y.performanceMonitor,736),E$(function(D){return D.contentRect}));
return Cc($i(c.ref.getBoundingClientRect()),G)}),Sq(uG))}};
WTh=function(y){return function(W){var c=W.pipe(Qe1(y)),Z=y.onResize;c=Cc(W.pipe(E$(function(){return puw("resize")})),c,Z);
return IQ(W,c).pipe(Bp(y.performanceMonitor,737),E$(function(G){G=_.z(G).next().value;return G.ref===void 0?void 0:G.ref.getBoundingClientRect()}),LMD(),Sq(uG))}};
fSH=function(y,W){var c=ZLg(y,W).pipe(eq(1),RQ());return function(Z){return function(G){G=G.pipe(ki(function(D){return D.element}),Sq());
return IQ([c,G]).pipe(ki(function(D){var Y=_.z(D);D=Y.next().value;Y=Y.next().value;return G9D(y,D.intersectionObserver,clw(y),D.observations,Z,D.flushRecords,Y)}),za(y.queue))}}};
okF=function(y){return E$(function(W){return W.value.viewportGeometrySourceName!=="nio"?W:Object.assign({},W,{value:Object.assign({},W.value,{exposedViewportLocalGeometry:AS(y,!0),topWindowViewportExternalGeometry:AS(y,!0)})})})};
DPH=function(y,W){return $i(W).pipe(y,E$(function(){return W}))};
ZLg=function(y,W){return y.timeProvider.timeline!==zyH?Kc(new gQ(2)):y.MutationObserver?typeof IntersectionObserver==="undefined"?Kc(new gQ(0)):(new zt(function(c){var Z=new D_,G=new hS(Z.next.bind(Z),{threshold:[].concat(_.No(W))});c.next({observations:Z.pipe(Bp(y.performanceMonitor,735)),intersectionObserver:G,flushRecords:function(D){D=G.takeRecords(D);D.length>0&&Z.next(D)}})})).pipe(ds(1),eq(1),RQ()):Kc(new gQ(1))};
YNy=function(y){return tqa(y.sort(function(W,c){return W.time-c.time}),gia)};
G9D=function(y,W,c,Z,G,D,Y){return new zt(function(u){function t(){N||(N=!0,Y.ref!==void 0&&W.unobserve(G,Y.ref),r.unsubscribe(),l.unsubscribe(),K.unsubscribe(),P.unsubscribe())}
if(Y.ref!==void 0){mPF(W,G);W.observe(G,Y.ref);var b=new Bu({timestamp:y.timeProvider.now(),value:Object.assign({},kYw,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),r=Z.pipe(Pp(function(V){return YNy(V)}),Qt(function(V){return V.target===Y.ref}),E$(function(V){return{timestamp:new hm(V.time,zyH),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:V.rootBounds||Hu,topWindowViewportExternalGeometry:V.rootBounds||AS(y,!0),measurementRequests:F,elementGeometrySourceName:"nio",intersectionGeometry:V.intersectionRect,elementGeometry:V.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:V.isIntersecting,isV2Visible:V.isVisible}}}),xi(b),RQ()).subscribe(u),F=new D_,K=F.subscribe(function(){D(G);
u.next({timestamp:y.timeProvider.now(),value:b.value.value});Y.ref!==void 0&&(W.unobserve(G,Y.ref),W.observe(G,Y.ref))}),l=DPH(c,Y).subscribe(function(){F.next()}),N=!1,P=Y.JSC$7205_released.subscribe(function(){return t()});
return t}})};
s2D=function(y,W){var c=y.getOnBackgrounded().pipe(E$(function(){return"b"}));
return icg(W,c).pipe(ds(1),Yy(y.queue))};
LP=function(y){return function(W){var c;return W.pipe(YbF(function(Z){return void(c=Z.timestamp)}),E$(function(Z){return Z.value}),y,E$(function(Z){return{timestamp:c,
value:Z}}))}};
vu=function(y,W,c){c=c===void 0?function(Z,G){return Z===G}:c;
return y.timestamp.equals(W.timestamp)&&c(y.value,W.value)};
SL=function(y,W){return W.pipe(E$(function(c){return new dQ(y.timeProvider,{timestamp:y.timeProvider.now(),value:c})}))};
u8O=function(y){return function(W){return W.pipe(sfF(y),E$(function(c){var Z=_.z(c);c=Z.next().value;Z=Z.next().value;var G=c.value;return{timestamp:c.timestamp,value:G>=1?!0:G<=0?!1:G>=Z}}))}};
nkg=function(){return DG(Qt(function(y,W){return W>0}),ttD,qo(-1),Sq())};
XaE=function(y,W,c){return y?IQ([W,c]).pipe(Qt(function(Z){var G=_.z(Z);Z=G.next().value;G=G.next().value;return Z.timestamp.equals(G.timestamp)}),E$(function(Z){var G=_.z(Z);
Z=G.next().value;G=G.next().value;return Z.value>G.value?Z:G})):W};
FTa=function(y){return function(W){var c=W.pipe(bLE),Z=W.pipe(rlF);return y instanceof zt?y.pipe(ki(function(G){return XaE(G,c,Z)})):XaE(y.value,c,Z)}};
ISF=function(y,W,c,Z){var G=Z.geometryIsOccluded,D=Z.exposureThreshold,Y=Z.wasLargeAdAtRender,u=Z.allowLargeAdThreshold,t=Z.largeAdExposureThreshold,b=Z.mayUseViewportShareExposure,r=Z.hasMeasurementStarted;Z=Z.useIntersectionObserverV2;W=UPy(y,c,W);c=$Pg(y,c);Z=KT1(W,Z);var F=OLa(y,G,b,W),K=F.pipe(E$(function(fa){return fa.value}),Sq(),Yy(y),ws(function(fa,jI){return Math.max(fa,jI)},0)),l=F.pipe(E$(function(fa){return fa.value}),nkg(),Yy(y)),N=W.pipe(gkt,E$(function(fa){return fa.value}),ds(2),
Sq(),Yy(y));
Y=RyH(y,W,Y,u);var P=Y.pipe(qo(!1),Sq(),E$(function(fa){return fa?t:D}));
u=F.pipe(u8O(P),Sq(),Yy(y));var V=IQ([u,W]).pipe(Qt(function(fa){var jI=_.z(fa);fa=jI.next().value;jI=jI.next().value;return fa.timestamp.equals(jI.timestamp)}),E$(function(fa){var jI=_.z(fa);
fa=jI.next().value;jI=jI.next().value;return{visible:fa.value,geometry:jI.value.elementGeometry}}),ws(function(fa,jI){return!jI.visible&&fa.visible?fa:jI},{visible:!1,
geometry:Hu}),E$(function(fa){return fa.geometry}),qo(Hu),Yy(y),Sq(uG));
b=b instanceof zt?b.pipe(Sq(),vp()):Ob;P=IQ([b,P]).pipe(vp());var Q=W.pipe(Qt(function(fa){return fa.value.viewportGeometrySourceName!=="ns"&&fa.value.elementGeometrySourceName!=="ns"}),ws(function(fa){return fa+1},0),qo(0),Yy(y)),S=c.pipe(vp(!0),qo(!1),Yy(y));
S=IQ([r,S]).pipe(E$(function(fa){var jI=_.z(fa);fa=jI.next().value;jI=jI.next().value;return fa&&!jI}),Yy(y));
var cy=W.pipe(lSH,Sq()),M=cy.pipe(E$(function(fa){return fa.value}),ws(function(fa,jI){return Math.max(fa,jI)},0),Sq(),Yy(y));
y=cy.pipe(E$(function(fa){return fa.value}),nkg(),Yy(y));
return{shouldResetExposureSignals:b,shouldResetViewabilitySignals:P,geometrySignals:{readyGeometryWithDefault:W,measurementStrategy:W.pipe(Eka),creativePosition:V.pipe(Sq(uG)),visible:u.pipe(Sq(vu)),timestampedExposure:F.pipe(Sq(vu)),maximumExposure:K,minimumExposure:l,browserSize:W.pipe(NVH,Sq(_.yT)),timestampedScreenShare:cy,maxScreenShare:M,minScreenShare:y,geometricMeasurementErrors:c,measurementRequests:W.pipe(E$(function(fa){return fa.value.measurementRequests})),
isLargeAd:Y,geometryIsOccluded:G,hasMeasurementStarted:r,geometryMeasurable:S,validMeasurementCount:Q,loadTimeExposure:N,v2VisibilityBitVector:Z}}};
$Pg=function(y,W){return W.pipe(Qt(function(){return!1}),E$(function(c){return c}),Hp(function(c){return Ta(new sb(c),y)}))};
UPy=function(y,W,c){return W.pipe(aGH(Ob),Yy(y)).pipe(Sq(function(Z,G){return vu(Z,G,MZH)}),qo({timestamp:c.now(),
value:kYw}),Yy(y))};
OLa=function(y,W,c,Z){c=Z.pipe(FTa(c),LP(E$(function(G){return Math.round(G*100)/100})),Yy(y));
return W instanceof sb?c:IQ([c,W]).pipe(E$(function(G){var D=_.z(G);G=D.next().value;D=D.next().value;return{timestamp:D.timestamp.maximum(G.timestamp),value:D.value?0:G.value}}),Sq(vu),Yy(y))};
RyH=function(y,W,c,Z){W=[W.pipe(E$(function(G){return G.value.elementGeometry.width*G.value.elementGeometry.height>=242500}))];
c instanceof zt&&W.push(c.pipe(E$(function(G){return!!G})));
c=IQ(W);return Z?c.pipe(E$(function(G){return G.some(function(D){return D})}),qo(!1),Sq(),Yy(y)):Ta(new sb(!1),y)};
KT1=function(y,W){y=IQ([y,W]).pipe(E$(function(G){var D=_.z(G);G=D.next().value;if(D.next().value&&G.value.isIntersecting)return G.value.isV2Visible}),Sq());
var c=y.pipe(E$(function(G){return G===void 0?!0:G}),ws(function(G,D){return G||!D},!1)),Z=y.pipe(ws(function(G,D){return D===void 0?G:D?!1:G!=null?G:!0},void 0),E$(function(G){return!!G}));
return IQ([W,Mqt(y,c,Z)]).pipe(E$(function(G){var D=_.z(G);G=D.next().value;var Y=_.z(D.next().value);D=Y.next().value;var u=Y.next().value;Y=Y.next().value;var t=0;if(!G)return 0;if(D===void 0)return 16;D&&(t|=1);D||(t|=2);u&&(t|=4);Y&&(t|=8);return t}))};
Q2H=function(y,W,c,Z,G){var D=pat.timeThresholdMs;var Y=Y===void 0?new P7D(W,Z):Y;return(new zt(function(u){var t=c.pipe(qo(void 0),ki(function(){return JlI(G)})).pipe(E$(function(b){var r=b.value;
b=b.timestamp;var F=r.visible;r=r.consecutiveViewTime;var K=r>=D;K||!F?Vt1(Y):(b=Math.max(0,Am(W.now(),b)),C7t(Y,Math.max(0,D-r-b)));return K}),ws(function(b,r){return r||b},!1),Sq()).subscribe(u);
return function(){Y.dispose();t.unsubscribe()}})).pipe(jL(function(u){return!u},!0),Yy(y))};
JlI=function(y){return dQy([y,y.pipe(iga())]).pipe(E$(function(W){var c=_.z(W);W=c.next().value;c=c.next().value;return{timestamp:W.timestamp,value:{visible:W.value,consecutiveViewTime:c.value}}}),Sq(function(W,c){return vu(W,c,function(Z,G){return Z.consecutiveViewTime===G.consecutiveViewTime&&Z.visible===G.visible})}))};
Aly=function(){return DG(adH(),ws(function(y,W){return Math.max(y,W)},0),E$(function(y){return Math.round(y)}))};
hyH=function(y){return DG(u8O($i(y)),Aly())};
BVI=function(y,W){return W instanceof zt?W.pipe(ki(function(c){return(c=c?15:null)?Kc(new gQ(c)):y})):(W=W.value?15:null)?Kc(new gQ(W)):y};
HLD=function(y){var W=new gQ(13);if(y.length<1)return{chain:Vt,capturedErrors:Vt};var c=new D_,Z=y[0];return{chain:y.slice(1).reduce(function(G,D){return G.pipe(Hp(function(Y){c.next(Y);return D}))},Z).pipe(Hp(function(G){c.next(G);
return Kc(W)}),xi(new D_),RQ()),
capturedErrors:c}};
LTO=function(y,W){var c=y.pipe(xi(new D_),RQ());return ki(function(Z){return c.pipe(W(Z))})};
dPf=function(y,W){if(y.inCrossDomainIframe)return Kc(new gQ(6));var c=new D_;return Cc($i({}),W,c).pipe(E$(function(){return{timestamp:y.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:vkD(y),topWindowViewportExternalGeometry:AS(y,!0),measurementRequests:c,viewportLocalAppOffset:{x:0,y:0}}}}),za(y.queue))};
vkD=function(y){var W=AS(y,!1);if(!y.inIframe||!SNf(y.global.parent)||y.global.parent===y.global)return W;var c=new af(y.global.parent,y.debugChannel);c.beaconFactory=y.beaconFactory;c=vkD(c);y=y.global.frameElement.getBoundingClientRect();return wuf(qbI(wuf(c,y),{x:W.left-y.left,y:W.top-y.top}),W)};
TVh=function(y){if(y.prerendering)return 3;var W;return(W={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[y.visibilityState||y.webkitVisibilityState||y.mozVisibilityState||""])!=null?W:0};
aSt=function(y){return y.document.JSC$7216_onVisibilityChange.pipe(E$(function(W){return W==="visible"}),Sq(),Yy(y.queue))};
xPF=function(y,W,c){var Z;return W.pipe(Sq(),ki(function(G){return c.pipe(E$(function(){if(!Z){Z=!0;try{G.next()}finally{Z=!1}}return!0}))}),qo(!1),Yy(y.queue))};
iLf=function(y){return DG(LP(E$(function(W){return W>=1?!0:W<=0?!1:W>=y})),TLD(),E$(function(W){return Math.round(W)}))};
eyw=function(y,W,c,Z,G){var D=MtH;if(D.length>1)for(var Y=0;Y<D.length-1;Y++)if(D[Y]<D[Y+1])throw Error();Y=G.pipe(qo(void 0),ki(function(){return c.pipe(iga())}),Sq(),Yy(y));
G=G.pipe(qo(void 0),ki(function(){return c.pipe(Aly())}),Sq(),Yy(y));
return{totalMeasurementTime:Z.pipe(qo(void 0),ki(function(){return W.pipe(E$(function(u){return{timestamp:u.timestamp,value:!0}}),TLD())}),Sq(),Yy(y)),
totalUnviewedTime:Z.pipe(qo(void 0),ki(function(){return W.pipe(E$(function(u){return{timestamp:u.timestamp,value:u.value===0}}),TLD())}),Sq(),Yy(y)),
maxTimeOnScreen:Z.pipe(qo(void 0),ki(function(){return W.pipe(xQD(hyH,D))}),Sq(_.yT),Yy(y)),
timeOnScreen:Z.pipe(qo(void 0),ki(function(){return W.pipe(xQD(iLf,D),E$(function(u){return u.map(function(t,b){return b>0?t-u[b-1]:t})}))}),Sq(_.yT),Yy(y)),
maxConsecutiveViewTime:G,consecutiveViewTime:Y.pipe(Sq(vu),Yy(y))}};
qNy=function(y){var W=!0;W=W===void 0?!1:W;return DG(ki(function(c){return waE(y.document,c,W)}),Yy(y.queue))};
k9H=function(y,W,c){var Z=c.pipe(E$(function(G){return{value:G,timestamp:y.timeProvider.now()}}),Sq(vu));
return W instanceof zt?W.pipe(Sq(),ki(function(G){return G?Ta(new sb({value:!1,timestamp:y.timeProvider.now()}),y.queue):Z})):W.value===!1?Z:new sb(!1)};
j8F=function(y,W,c,Z,G,D,Y){var u=pat;W=W instanceof zt?W.pipe(qo(!1),Sq()):W;var t=!y.isMobile();c=k9H(y,c,Z);y=Y.measurableCreative.pipe(vrE(y.queue));return Object.assign({},u,{geometryIsOccluded:c,wasLargeAdAtRender:G,allowLargeAdThreshold:t,mayUseViewportShareExposure:W,hasMeasurementStarted:y,useIntersectionObserverV2:D})};
WCH=function(y,W,c,Z,G,D){var Y=1;D=D===void 0?!0:D;Y=Y===void 0?.01:Y;var u=u===void 0?y.timeProvider.intervalObservable(100).pipe(Yy(y.queue)):u;return y.performanceMonitor.timeExecution(916,function(){return yWt(y,W.pipe(za(y.queue)),c.pipe(za(y.queue)),Z,G,D,Y,u)})()};
yWt=function(y,W,c,Z,G,D,Y,u){var t=aSt(y).pipe(E$(function(r){return!r})),b=new cWw(y,[new Zjh(y,MtH),
new GwI(y,u)]);u=pkh(fLt,oN1);return KMD(y,W,function(r,F){var K=Ta(new sb(F.element),r.queue).pipe(qNy(r),Yy(r.queue)),l={loadedElement:K,shouldMeasure:K.pipe(vp(!0)),measurableCreative:K.pipe(E$(function(fa){var jI=jI===void 0?Symbol():jI;return Object.freeze({symbol:jI,element:Ta(new sb(fa),r.queue)})})),
creativeSearchResult:Ta(new sb("mue"),r.queue)},N=new sb(!1),P=new sb(!1),V=new sb(17),Q=new sb(!1),S=new sb(!1),cy=Ta(xy,r.queue);N=b.buildGeometrySource(l,{inApp:N,useV2:!1,requestSource:Ta(V,r.queue)}).geometrySource;l=j8F(r,Q,P,t,S,cy,l);P=ISF(r.queue,r.timeProvider,N,l);l=P.geometrySignals;Q=P.shouldResetViewabilitySignals;P=eyw(r.queue,l.timestampedExposure,l.visible,P.shouldResetExposureSignals,Q);Q=Q2H(r.queue,r.timeProvider,Q,l.measurementRequests,l.visible);S=c.pipe(Qt(function(fa){return fa===
F.element.ref}),E$(function(){return"ur"}));
cy=ktI(r.timeProvider,G).pipe(vp("t"));S=s2D(r,Cc(S,cy));cy=xPF(r,l.measurementRequests,S.pipe(Qt(function(fa){return fa!==null})));
N=S.pipe(Qt(function(fa){return fa!==null}),E$(function(){return TVh(r.global.document)===1}));
var M=Dnt(r.document);return Object.assign({},{beaconFactory:new sb(r.beaconFactory),context:new sb(r),inferredPingId:new sb("lidar2"),timeOnScreenPingId:new sb("lidartos"),binaryContext:new sb(17),binaryVersion:new sb(Z),requestSource:V,contextValidationErrors:new sb(r.validate()?null:new Rf),contextVisibilityKnown:new sb(M),payloadMapper:new sb(NLa),endOfSessionReason:S,timeOnScreenReason:S,requestMeasurementOnEndOfSession:cy,hasImpressionFired:zTw,crossDomainIframeState:new sb(r.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:xy,inFetchLaterBeaconExperiment:xy,isTurtlex:xy,turtlexReportEventData:new sb(""),reportFencedFrameEvent:Ob,isViewableAttributionEnabled:xy,inViewableAttributionExperiment:new sb(0),fetchBeaconFactory:Ob,supportsPendingBeacon:xy,supportsFetchLater:xy,emit:new sb(VZH),beginToRenderEvent:new sb(Symbol()),activeViewUnmeasurableEvent:new sb(Symbol()),activeViewViewableEvent:new sb(Symbol()),creativeFound:zTw,immediateUrlPrefixes:new sb(F.immediateUrls),timeOnScreenUrlPrefixes:new sb(F.timeOnScreenUrls),
cpmavUrls:Ob,viewableRelayUrls:Ob,measurementDeferralState:new sb(2),urlSerializer:new sb(Hgy),viewUrlSerializer:new sb(YEw),isCreativeLoaded:K.pipe(vrE(r.queue)),pageVisible:t.pipe(E$(function(fa){return!fa})),
eosPageVisible:N,timestampedExposureHistory:l.timestampedExposure.pipe(ws(function(fa,jI){fa.push(jI);return fa},[]))},l,{viewable:SL(r,Q),
maxTimeOnScreen:SL(r,P.maxTimeOnScreen),timeOnScreen:SL(r,P.timeOnScreen),maxConsecutiveViewTime:SL(r,P.maxConsecutiveViewTime),consecutiveViewTime:P.consecutiveViewTime.pipe(E$(function(fa){return new dQ(r.timeProvider,fa)})),
totalMeasurementTime:SL(r,P.totalMeasurementTime),totalUnviewedTime:SL(r,P.totalUnviewedTime),userAgentClientHints:I_D(r),clientOrderPingCounter:new sb(new grI)})},IdF(y,Y),PCF(D?JoH(u,mnh):JoH(u,s8g),ulI))};
tyF=function(y,W){return(y=(new RegExp("[^#]*[?&]"+W+"=([^&#]*)")).exec(y))?y[1]:null};
nNF=function(y){var W=_.Cf.apply(1,arguments).filter(Boolean).join("&");if(!W)return y;var c=y.match(/[?&]adurl=/);return c?y.slice(0,c.index+1)+W+"&"+y.slice(c.index+1):y+(y.indexOf("?")<0?"?":"&")+W};
iG=function(y,W){return W?"&"+y+"="+encodeURIComponent(W):""};
XIy=function(){try{var y,W;return!!((y=window)==null?0:(W=y.top)==null?0:W.location.href)&&!1}catch(c){return!0}};
_.Mg=function(y){y&&typeof y.dispose=="function"&&y.dispose()};
_.bjg=function(y){for(var W=0,c=arguments.length;W<c;++W){var Z=arguments[W];_.TO(Z)?_.bjg.apply(null,Z):_.Mg(Z)}};
FC1=function(){var y=rWE();y=y===void 0?"bevasrsg":y;return new Promise(function(W){var c=window===window.top?window:XIy()?window:window.top,Z=c[y],G;((G=Z)==null?0:G.bevasrs)?W(new eL(Z.bevasrs)):(Z||(Z={},Z=(Z.nqfbel=[],Z),c[y]=Z),Z.nqfbel.push(function(D){W(new eL(D))}))})};
Unh=function(y){var W={c:y.mK,e:y.sxS,mc:y.jUk,me:y.b3e};y.oc&&(W.co={c:y.oc.cTl,a:y.oc.nbs,s:y.oc.aX3});return W};
$nO=function(y){var W,c,Z={mK:y.c,sxS:y.e,jUk:(W=y.mc)!=null?W:!1,b3e:(c=y.me)!=null?c:!1};y.co&&(Z.oc={cTl:y.co.c,nbs:y.co.a,aX3:y.co.s});return Z};
KCH=function(y){return function(){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,y(),2);W=c.yieldResult;return c.return({f:function(){return W.yJE()},
c:function(Z){return W.hiv(Z)},
m:function(Z){return W.sD($nO(Z))},
mws:function(Z){return W.w3($nO(Z))}})})}};
OjH=function(y,W){var c=rWE();c=c===void 0?"bevasrsg":c;W={s:function(D){var Y;return y.snapshot(Object.assign({},D.c&&{mK:D.c},D.s&&{aE3:D.s},{uLc:(Y=D.p)!=null?Y:!0}))},
e:function(D){var Y;return void((Y=y.d0U)==null?void 0:Y.call(y,D))},
c:function(D,Y){return y.wen(D,Y)},
p:y.ke4,l:function(){return y.o63()},
wpc:W?KCH(W):void 0};var Z=window===window.top?window:XIy()?window:window.top,G=Z[c];if(G){G.bevasrs=W;if(G.nqfbel!==void 0)for(c=_.z(G.nqfbel),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z(W);G.nqfbel=void 0}else G={},G=(G.bevasrs=W,G.nqfbel=void 0,G),Z[c]=G};
RTh=function(y){var W=W===void 0?49:W;var c=[];_.wQ(y,gNg,6,_.ky()).forEach(function(Z){_.jZ(Z,2)<=W&&c.push(_.jZ(Z,1))});
return c};
lLh=function(y){var W=W===void 0?49:W;var c=[];_.wQ(y,gNg,6,_.ky()).forEach(function(Z){_.jZ(Z,2)>W&&c.push(_.jZ(Z,1))});
return c};
ENf=function(y){y.then(function(){},function(){})};
_.Wk=function(y){return{fieldType:1,fieldName:y}};
ck=function(y){return{fieldType:2,fieldName:y}};
_.Zd=function(y){return{fieldType:3,fieldName:y}};
Nja=function(){function y(){G[0]=1732584193;G[1]=4023233417;G[2]=2562383102;G[3]=271733878;G[4]=3285377520;r=b=0}
function W(F){for(var K=Y,l=0;l<64;l+=4)K[l/4]=F[l]<<24|F[l+1]<<16|F[l+2]<<8|F[l+3];for(l=16;l<80;l++)F=K[l-3]^K[l-8]^K[l-14]^K[l-16],K[l]=(F<<1|F>>>31)&4294967295;F=G[0];var N=G[1],P=G[2],V=G[3],Q=G[4];for(l=0;l<80;l++){if(l<40)if(l<20){var S=V^N&(P^V);var cy=1518500249}else S=N^P^V,cy=1859775393;else l<60?(S=N&P|V&(N|P),cy=2400959708):(S=N^P^V,cy=3395469782);S=((F<<5|F>>>27)&4294967295)+S+Q+cy+K[l]&4294967295;Q=V;V=P;P=(N<<30|N>>>2)&4294967295;N=F;F=S}G[0]=G[0]+F&4294967295;G[1]=G[1]+N&4294967295;
G[2]=G[2]+P&4294967295;G[3]=G[3]+V&4294967295;G[4]=G[4]+Q&4294967295}
function c(F,K){if(typeof F==="string"){F=unescape(encodeURIComponent(F));for(var l=[],N=0,P=F.length;N<P;++N)l.push(F.charCodeAt(N));F=l}K||(K=F.length);l=0;if(b==0)for(;l+64<K;)W(F.slice(l,l+64)),l+=64,r+=64;for(;l<K;)if(D[b++]=F[l++],r++,b==64)for(b=0,W(D);l+64<K;)W(F.slice(l,l+64)),l+=64,r+=64}
function Z(){var F=[],K=r*8;b<56?c(u,56-b):c(u,64-(b-56));for(var l=63;l>=56;l--)D[l]=K&255,K>>>=8;W(D);for(l=K=0;l<5;l++)for(var N=24;N>=0;N-=8)F[K++]=G[l]>>N&255;return F}
for(var G=[],D=[],Y=[],u=[128],t=1;t<64;++t)u[t]=0;var b,r;y();return{reset:y,update:c,digest:Z,digestString:function(){for(var F=Z(),K="",l=0;l<F.length;l++)K+="0123456789ABCDEF".charAt(Math.floor(F[l]/16))+"0123456789ABCDEF".charAt(F[l]%16);return K}}};
C1y=function(y,W){W=W===void 0?IL1:W;if(!pIF){var c;y=(c=y.navigator)==null?void 0:c.userAgentData;if(!y||typeof y.getHighEntropyValues!=="function"||y.brands&&typeof y.brands.map!=="function")return Promise.reject(Error("ya"));P1f((y.brands||[]).map(function(G){var D=new JW1;D=_.Ub(D,1,G.brand);return _.Ub(D,2,G.version)}));
typeof y.mobile==="boolean"&&_.GY(VyI,2,y.mobile);pIF=y.getHighEntropyValues(W)}var Z=new Set(W);return pIF.then(function(G){var D=VyI.clone();Z.has("platform")&&_.Ub(D,3,G.platform);Z.has("platformVersion")&&_.Ub(D,4,G.platformVersion);Z.has("architecture")&&_.Ub(D,5,G.architecture);Z.has("model")&&_.Ub(D,6,G.model);Z.has("uaFullVersion")&&_.Ub(D,7,G.uaFullVersion);return D.serialize()}).catch(function(){return VyI.serialize()})};
fg=function(y,W,c,Z){this.initialValue_=y;this.maxValue_=W;this.currBaseValue_=this.currValue_=y;this.randomFactor_=c||0;this.backoffFactor_=Z||2};
oe=function(y){this.src=y;this.listeners={};this.typeCount_=0};
BjI=function(){for(var y;y=Q8f.remove();){try{y.fn.call(y.scope)}catch(W){YF(W)}AWh.put(y)}hTE=!1};
_.HjH=function(y){switch(y){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}};
LCD=function(y){switch(y){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""}};
_.vNa=function(){};
wIH=function(y){return{lmH:new dnE(y),errorCount:new SED(y),eventCount:new TjI(y),dx3:new aLE(y),xTl:new xnw(y),tSk:new ijI(y),pe6:new Myf(y),npk:new eTh(y)}};
fPt=function(y,W,c,Z){y=qEf(kwD(jSy(new _.Dd(1828,"0"),y),new y6y));W.length&&W9y(y,c6y(new ZRf,W));Z!==void 0&&(y.destinationUrl=Z);var G=new GjH(1828,"","",!1,"",y.build());_.zY(G,y);var D=new Yr({flush:function(Y){try{G.flush(Y)}catch(u){c(u)}}});
D.addOnDisposeCallback(function(){setTimeout(function(){try{D.snapshotAndFlush()}finally{G.dispose()}})});
D.invocationLimit=1E5;D.flushInterval=3E4;D.JSC$7652_flushTimer.setInterval(3E4);return D};
mM=function(){var y,W,c;return(c=(y=globalThis.performance)==null?void 0:(W=y.now)==null?void 0:W.call(y))!=null?c:Date.now()};
zef=function(y,W,c){if(y.disable)return new o7h;W=W?RTh(W):[];if(c)return c.wQS(W),c.share();y={wX:y.wX,zxE:y.b2W,vWd:y.xW3,destinationUrl:y.destinationUrl,uOl:y.uOl,qNz:y.qNz};c=W;c=c===void 0?[]:c;return new DCh(y,c)};
_.YAH=function(y){if(!y)return null;y=_.sR(y,4);return y===null||y===void 0?null:_.rf(y)};
uWg=function(y,W){return W?mC1(W):y?sSD(y):Promise.resolve()};
mC1=function(y){return new Promise(function(W,c){var Z=_.uC("SCRIPT"),G=_.YAH(y);_.eQ(Z,G);Z.onload=function(){_.to(Z);W()};
Z.onerror=function(){_.to(Z);c(Error("Ja"))};
(Xe("HEAD")[0]||document.documentElement).appendChild(Z)})};
sSD=function(y){return new Promise(function(W){var c=_.uC("SCRIPT");if(y){var Z=_.sR(y,6);Z=Z===null||Z===void 0?null:_.iF(Z)}else Z=null;_.M9(c,Z);(Xe("HEAD")[0]||document.documentElement).appendChild(c);_.to(c);W()})};
bC=function(y,W,c){var Z,G=new Promise(function(D){Z=setTimeout(D,W)});
return Promise.race([y.finally(function(){return void clearTimeout(Z)}),
G.then(c)])};
t51=function(y,W){try{return globalThis.sessionStorage.setItem(y,W),!0}catch(c){return!1}};
n7E=function(y,W,c,Z){W=W===void 0?0:W;c=c===void 0?y.length:c;var G=0;for(Z&&(G=n7E(Z));W<c;W++)Z=typeof y==="string"?y.charCodeAt(W):y[W],G=X7E(31,G)+Z|0;return G};
bRD=function(y,W){return[n7E(y,0,y.length>>1,W),n7E(y,y.length>>1)]};
r6D=function(y){var W=_.z(bRD(y,rL));y=W.next().value;W=W.next().value;return y.toString(16)+W.toString(16)};
F9I=function(y,W){var c=bRD(W);y=new Uint32Array(y.buffer);W=y[0];var Z=_.z(c);c=Z.next().value;Z=Z.next().value;for(var G=1;G<y.length;G+=2){for(var D=W,Y=G,u=c,t=Z,b=0;b<22;b++)Y=Y>>>8|Y<<24,Y+=D|0,Y^=u+38293,D=D<<3|D>>>29,D^=Y,t=t>>>8|t<<24,t+=u|0,t^=b+38293,u=u<<3|u>>>29,u^=t;D=[D,Y];y[G]^=D[0];G+1<y.length&&(y[G+1]^=D[1])}};
UCa=function(y,W,c,Z,G){var D=(4-(rL.length+c.length)%4)%4,Y=new Uint8Array(4+D+rL.length+4+c.length),u=new DataView(Y.buffer),t=0;u.setUint32(t,Math.random()*4294967295);t=t+4+D;Y.set(rL,t);t+=rL.length;u.setUint32(t,G);Y.set(c,t+4);F9I(Y,Z);return y.insert(W,function(b){return void globalThis.sessionStorage.removeItem(b)})?t51(W,_.OB(Y))?"s":"t":"i"};
$CH=function(y,W){var c=globalThis.sessionStorage.getItem(y);if(!c)return["m"];try{var Z=_.cJ(c);F9I(Z,W)}catch(G){return globalThis.sessionStorage.removeItem(y),["c"]}for(W=4;W<7&&Z[W]===0;)W++;for(c=0;c<rL.length;c++)if(Z[W++]!==rL[c])return globalThis.sessionStorage.removeItem(y),["d"];c=(new DataView(Z.buffer)).getUint32(W);return Math.floor(Date.now()/1E3)>=c?(globalThis.sessionStorage.removeItem(y),["e"]):["a",new Uint8Array(Z.buffer,W+4)]};
K9g=function(y){return globalThis.TextEncoder?(new TextEncoder).encode(y):_.Fe(y)};
ORI=function(y){var W=y,c;return function(){if(W){var Z=W;W=void 0;c=Z.apply(this,arguments)}return c}};
Reh=function(y){return C8(function(W){if(W instanceof y)return!0;var c,Z,G=W==null?void 0:(c=W.ownerDocument)==null?void 0:(Z=c.defaultView)==null?void 0:Z[y.name];return g7f(G)&&W instanceof G})};
_.Kg=function(y,W,c){_.UR.call(this);this.JSC$7867_listener_=y;this.JSC$7867_interval_=W||0;this.handler_=c;this.callback_=(0,_.$r)(this.JSC$7869_doAction_,this)};
_.OR=function(y){y=lPI(y);return _.rf(y)};
lPI=function(y){return y===null?"null":y===void 0?"undefined":y};
Nrh=function(y){if(y&&y.focus)if(y!==document.activeElement)y.focus();else return E7I(function(){return _.m(function(W){document.activeElement&&document.activeElement.blur();return W.return(E7I(function(){y.focus()}))})})};
_.IPF=function(y){var W=W===void 0?5:W;setTimeout(function(){var c;return _.m(function(Z){Z.nextAddress==1&&(c=document.activeElement);if(Z.nextAddress!=5)return(document.activeElement===c||document.activeElement===document.body)&&W>=0&&y?_.n(Z,Nrh(y),5):Z.jumpTo(0);if(document.activeElement===y)return Z.return();y=y.parentElement;--W;return Z.jumpTo(2)})},15)};
E7I=function(y){return new Promise(function(W){requestAnimationFrame(function(){W(y())})})};
PlO=function(y){if(_.gL)y(_.gL);else{var W;((W=p7F)!=null?W:p7F=[]).push(y)}};
lC=function(){!_.gL&&_.Re&&_.J6g(_.Re());return _.gL};
_.J6g=function(y){_.gL=y;var W;(W=p7F)==null||W.forEach(PlO);p7F=void 0};
_.ER=function(y){_.gL&&_.gL.beforeLoadModuleCode(y)};
_.NQ=function(){_.gL&&_.gL.JSC$8803_setLoaded()};
Ie=function(y){return(0,_.KQ)(y)?Number(y):String(y)};
V5h=function(y){this.action=y;this.wfv=!1};
ClH=function(y,W){V5h.call(this,"set-drive-options");this.appId=y;this.appOrigin=W};
QSf=function(y){V5h.call(this,"visibility");this.visible=y};
A6w=function(y,W,c){pg.call(this,y,W,c)};
heI=function(y){Pk.call(this,y)};
Brh=function(y){y=y&&y.getWindow()||window;return y.gadgets&&y.gadgets.rpc};
L9f=function(y,W){var c=W&&W.getWindow()||window;if(Brh(W))y();else if(HRg)HRg.push(y);else var Z=HRg=[y],G=c.setInterval(function(){if(Brh(W)){c.clearInterval(G);for(var D=0;D<Z.length;D++)Z[D]();HRg=null}},100)};
dCI=function(y,W){var c=new Jo(y);_.zY(W,c);var Z={passive:!1};W.listen(c,"mousewheel",function(G){return void v7I(y,G)},Z).listen(y,"scroll",function(G){return void v7I(y,G)},Z)};
v7I=function(y,W){var c;a:{for(c=W.target;c;){if(c.nodeType==1){var Z=_.V4(c,"overflowY");if(Z=="auto"||Z=="scroll")break a}c=c.parentNode}c=null}if(!c||!_.Cg(y,c)||c.scrollHeight==c.clientHeight||W.deltaY>0&&Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))<=1||W.deltaY<0&&c.scrollTop==0)W.preventDefault(),W.stopPropagation()};
vk=function(y,W,c,Z,G,D,Y,u,t){u=u===void 0?!1:u;t=t===void 0?!1:t;pg.call(this,void 0,void 0,void 0);pg.call(this,D?D+" picker modal-dialog":"picker modal-dialog",!0,c);_.Q4(y,"protocol");this.iframeManager_=new SAH;this.targetId_=Ao();this.rpcToken_=Ao();y=_.ho(y);_.Bk(y,"hostId");c=_.Bk(y,"parent");this.useGapi_=!t&&!0||(c==null?void 0:c.includes("onepick.corp.google.com"));u&&_.Hk(y,"fv2","true");this.setUrl(y.toString());this.preferredDialogWidth_=Z;this.preferredDialogHeight_=G;Z!==void 0||
G!==void 0?Z=!0:(Z=_.Bk(_.ho(y.toString()),"hostId"),TrD||(TrD=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),Z=!TrD.has(Z));this.autoSizeDialog_=Z;this.JSC$8057_gadgetsDomHelper_=Y||this.JSC$8008_dom_;W&&(Y=this.JSC$8057_gadgetsDomHelper_,W=_.Bk(_.ho(this.JSC$8059_url_),"grugl")=="true"?aPH:xCf,Brh(Y)||(Y=Y||FF(document),Z=Y.createElement("SCRIPT"),_.eQ(Z,W),Z.type="text/javascript",Y.JSC$7234_document_.body.appendChild(Z)));
y=y.toString();W=null;Y=y.indexOf("/picker?");Y>-1?W=y.substring(0,Y+8-1):uf(y,"/picker")&&(W=y);W&&this.setRelayUrl(W+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(y=this.buttons_,y.JSC$8042_element_=this.buttonEl_,y.render()):_.wf(this.buttonEl_,iRy),_.Lg(this.buttonEl_,!!this.buttons_))};
_.qAa=function(y){var W=W===void 0?M51:W;var c=_.kF(y),Z=function(D){D=_.z(D);D.next();D=dL(D);return W(c,D)},G=function(D){var Y=_.z(D);
D=Y.next().value;Y=dL(Y);return y.apply(D,Y)};
return function(){var D=_.Cf.apply(0,arguments),Y=this||_.DH,u=eeI.get(Y);u||(u={},eeI.set(Y,u));return _.w7g(u,[this].concat(_.No(D)),G,Z)}};
SZ=function(y){var W={};y=y.replace(/\r/g,"").split("\n");for(var c=0;c<y.length;c++){var Z=y[c],G=Z.indexOf(":");G<0||(W[Z.substring(0,G)]=Z.substring(G+2,Z.length))}return W};
kjt=function(y,W,c){c=c===void 0?function(){}:c;
W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;if(Z instanceof Array&&Z.includes(y)||Z===y)return G()}return c()};
_.TY=function(y,W,c){c=c===void 0?function(){}:c;
return y?W():c()};
_.yvE=function(y){var W;return((W=jla.documentOverride)!=null?W:y).__wizdispatcher};
xr=function(y){var W=_.ae;_.ae=y;return W};
cvh=function(y,W){var c;if((c=y)==null?0:c.isDisposed)throw Error("nb`"+String(y.debugName));for(;y!==void 0;){c=y;if(c.retrieve)return c.retrieve(W,{optional:!0});y=y.parent}return Why};
iC=function(y){return{"\u0275prov":{providedIn:"root",token:Symbol(y),factory:void 0,value:void 0}}};
_.ZXh=function(y){var W=xr(y);y={};return y[Symbol.dispose]=function(){xr(W)},y};
GMa=function(y,W){y.disposables||(y.disposables=[]);y.disposables.push(W)};
MQ=function(y){var W=_.ae;W&&!W.isDisposed&&(GMa(W,function(){return void fnw(y)}),y.parent=W)};
o2w=function(y){if(y.disposables){for(var W=_.z(y.disposables),c=W.next();!c.done;c=W.next())c=c.value,c();y.disposables.length=0}};
fnw=function(y){if(!y.isDisposed){y.isDisposed=!0;var W;(W=y[Symbol.dispose])==null||W.call(y);delete y.parent;o2w(y)}};
n2D=function(y){var W={retrieve:function(c){switch(c.\u0275prov.token){case DV1.\u0275prov.token:var Z=y.rootElement;break;case z$E.\u0275prov.token:Z=y.modelRootElement;break;case YWI.\u0275prov.token:Z=y.appContext;break;case mVE.\u0275prov.token:Z=y.rendererData;break;case slF.\u0275prov.token:Z=y.injectingConstructor;break;case uDf.\u0275prov.token:Z=y.dispatcher}if(Z)c=Z;else a:{for(Z=W.parent;Z;){var G=Z;if(G.retrieve){c=G.retrieve(c);break a}Z=Z.parent}Z=c.\u0275prov.token;G=tSF[Z];G!==void 0?
c=G:(G=c.\u0275prov.providedIn,c.\u0275prov.factory?(c=c.\u0275prov.factory(),Z&&G==="root"&&(tSF[Z]=c)):c=Why)}return c}};
MQ(W);return W};
bXa=function(y){var W="";var c=_.DH._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(y=document.getElementById(y))){var Z=y.tagName.toUpperCase();if(Z=="SCRIPT"||Z=="LINK")W=y.src?y.src:y.getAttribute("href")}if(c&&W){if(c!=W)throw Error("vb`"+c+"`"+W);W=c}else W=c||W;if(!XnI(W))throw Error("wb");return W};
UVI=function(){if(!rvh){rvh=!0;try{var y=bXa(_.DH._F_jsUrl?"":"base-js")}catch(Z){return}var W=Fh1(eZ(y)),c=Object.keys(W);c.length!==0&&PlO(function(Z){for(var G=_.z(c),D=G.next();!D.done;D=G.next()){D=D.value;for(var Y=_.z(Object.keys(W[D])),u=Y.next();!u.done;u=Y.next())Z.addExtraEdge(D,u.value)}})}};
$Vt=function(y,W,c){var Z;return y&&W?y+"__"+W:(Z=y!=null?y:W)!=null?Z:c};
OXF=function(){var y=Object.assign({},KhF);Object.getOwnPropertyNames(KhF).forEach(function(W){wL[W]!==void 0&&(y[W]=wL[W])});
return y};
g2w=function(y,W){if(wL.enablePerformanceTiming){var c,Z;(Z=(c=performance).mark)==null||Z.call(c,y+"Start__"+W)}};
R$I=function(y,W){if(wL.enablePerformanceTiming){var c,Z;(Z=(c=performance).measure)==null||Z.call(c,y+"__"+W,y+"Start__"+W)}};
E2I=function(y,W){var c=Object.create(lna);c.debugName=W;!_.ae||MQ(c);W=xr(c);try{y(c)}finally{xr(W)}return function(){return void fnw(c)}};
pnf=function(y){return NXh(y)&&InI in y};
PzE=function(y,W){return Object.is(y,W)};
kr=function(y){var W=qQ;qQ=y;return W};
kMt=function(y){if(jt)throw Error("da");if(qQ!==null){var W=qQ.nextProducerIndex++;Jvy(qQ);W<qQ.producerNode.length&&qQ.producerNode[W]!==y&&yR(qQ)&&VSh(qQ.producerNode[W],qQ.producerIndexOfThis[W]);qQ.producerNode[W]!==y&&(qQ.producerNode[W]=y,qQ.producerIndexOfThis[W]=yR(qQ)?Czy(y,qQ,W):0);qQ.producerLastReadVersion[W]=y.version}};
WsE=function(y){if(!yR(y)||y.dirty)if(y.dirty||y.lastCleanEpoch!==jsy)(y.producerMustRecompute(y)||ycF(y))&&y.producerRecomputeValue(y),y.dirty=!1,y.lastCleanEpoch=jsy};
ccy=function(y){if(y.liveConsumerNode!==void 0){var W=jt;jt=!0;try{for(var c=_.z(y.liveConsumerNode),Z=c.next();!Z.done;Z=c.next()){var G=Z.value;G.dirty||(y=void 0,G.dirty=!0,ccy(G),(y=G.consumerMarkedDirty)==null||y.call(G,G))}}finally{jt=W}}};
ZDt=function(){var y;return((y=qQ)==null?void 0:y.consumerAllowSignalWrites)!==!1};
G5h=function(y){y&&(y.nextProducerIndex=0);return kr(y)};
fJI=function(y,W){kr(W);if(y&&y.producerNode!==void 0&&y.producerIndexOfThis!==void 0&&y.producerLastReadVersion!==void 0){if(yR(y))for(W=y.nextProducerIndex;W<y.producerNode.length;W++)VSh(y.producerNode[W],y.producerIndexOfThis[W]);for(;y.producerNode.length>y.nextProducerIndex;)y.producerNode.pop(),y.producerLastReadVersion.pop(),y.producerIndexOfThis.pop()}};
ycF=function(y){Jvy(y);for(var W=0;W<y.producerNode.length;W++){var c=y.producerNode[W],Z=y.producerLastReadVersion[W];if(Z!==c.version)return!0;WsE(c);if(Z!==c.version)return!0}return!1};
Czy=function(y,W,c){ogF(y);if(y.liveConsumerNode.length===0&&y.producerNode!==void 0)for(var Z=0;Z<y.producerNode.length;Z++)y.producerIndexOfThis[Z]=Czy(y.producerNode[Z],y,Z);y.liveConsumerIndexOfThis.push(c);return y.liveConsumerNode.push(W)-1};
VSh=function(y,W){ogF(y);if(y.liveConsumerNode.length===1&&y.producerNode!==void 0)for(var c=0;c<y.producerNode.length;c++)VSh(y.producerNode[c],y.producerIndexOfThis[c]);c=y.liveConsumerNode.length-1;y.liveConsumerNode[W]=y.liveConsumerNode[c];y.liveConsumerIndexOfThis[W]=y.liveConsumerIndexOfThis[c];y.liveConsumerNode.length--;y.liveConsumerIndexOfThis.length--;W<y.liveConsumerNode.length&&(c=y.liveConsumerIndexOfThis[W],y=y.liveConsumerNode[W],Jvy(y),y.producerIndexOfThis[c]=W)};
yR=function(y){var W,c;return y.consumerIsAlwaysLive||((c=y==null?void 0:(W=y.liveConsumerNode)==null?void 0:W.length)!=null?c:0)>0};
Jvy=function(y){y.producerNode!=null||(y.producerNode=[]);y.producerIndexOfThis!=null||(y.producerIndexOfThis=[]);y.producerLastReadVersion!=null||(y.producerLastReadVersion=[])};
ogF=function(y){y.liveConsumerNode!=null||(y.liveConsumerNode=[]);y.liveConsumerIndexOfThis!=null||(y.liveConsumerIndexOfThis=[])};
zXh=function(y){var W=Object.create(DFf);W.computation=y;y=function(){WsE(W);kMt(W);if(W.value===Wa)throw W.error;return W.value};
y[ca]=W;return y};
mFg=function(y){var W=Object.create(YPt);W.value=y;y=function(){kMt(W);return W.value};
y[ca]=W;return y};
tuH=function(y){y=mFg(y);var W=y[ca];return[y,function(c){return ssI(W,c)},
function(c){ZDt()||ucI(W);ssI(W,c(W.value))}]};
ssI=function(y,W){ZDt()||ucI(y);if(!y.equal(y.value,W)){y.value=W;y.version++;jsy++;ccy(y);var c;(c=ngh)==null||c(y)}};
ZS=function(y){var W=kr(null);try{return y()}finally{kr(W)}};
_.G9=function(y,W,c){c=c===void 0?"":c;y=_.z(tuH(y));var Z=y.next().value,G=y.next().value,D=y.next().value,Y=Z[ca];Y.debugName=$Vt(W==null?void 0:W.debugName,c,"[signal]");(W==null?void 0:W.equals)!=null&&(Y.equal=W.equals);return[Z,function(u){XOO(function(){return void G(u)},Y)},
function(u){XOO(function(){return void D(u)},Y)}]};
XOO=function(y,W){g2w("signalSet",W.debugName);try{y()}finally{R$I("signalSet",W.debugName)}};
rcF=function(y,W){var c=_.z(_.G9(y,void 0,"cPpJzc"));y=c.next().value;c=c.next().value;y[bDI]=c;y[fL]=W;return y};
Fsh=function(y){return!!y&&typeof y==="object"&&Object.getPrototypeOf(y)===Object.prototype};
UFh=function(y){return typeof y==="function"&&bDI in y&&typeof y[bDI]==="function"};
$FF=function(y,W){Object.defineProperty(y,fL,{get:function(){return W}})};
DS=function(y,W){if(o2(y)){var c=y.map(function(D){return DS(D,W)});
$FF(c,W);return c}if(Fsh(y)){c={};y=_.z(Object.entries(y));for(var Z=y.next();!Z.done;Z=y.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;c[Z]=DS(G,W)}$FF(c,W);return c}return rcF(y,W)};
KsO=function(y){if(o2(y))return y.map(function(G){return KsO(G)});
if(Fsh(y)){var W={};y=_.z(Object.entries(y));for(var c=y.next();!c.done;c=y.next()){var Z=_.z(c.value);c=Z.next().value;Z=Z.next().value;W[c]=KsO(Z)}return W}return UFh(y)?y():y};
ggH=function(){var y={height:0,width:0};if(!Fsh(y))throw Error("Hb");var W=Symbol("Ib");return[DS(y,W),function(c,Z){if(c[fL]===W)if(typeof Z==="function"){var G=[].concat(_.No(KsO(c)));Z=Z(G)||G;ODf(c,[].concat(_.No(Z)))}else ODf(c,Z);else throw Error("Jb");}]};
ODf=function(y,W){if(UFh(y))y[bDI](W);else if(o2(y)&&o2(W))W=DS(W,y[fL]),y.length=0,y.push.apply(y,_.No(W));else if((Fsh(y)||o2(y))&&(o2(W)||typeof W==="object"&&W!==null)){W=_.z(Object.entries(W));for(var c=W.next();!c.done;c=W.next()){var Z=_.z(c.value);c=Z.next().value;Z=Z.next().value;var G=y,D=G[c];Object.hasOwn(y,c)?ODf(D,Z):G[c]=DS(Z,y[fL])}}else throw Error("Kb");};
RXg=function(y){return Object.create(Object.assign({},z9,y))};
EgO=function(){var y;return(y=lJF)!=null?y:lJF=RXg({consumerAllowSignalWrites:!0})};
_.Yk=function(y,W,c){c=c===void 0?"":c;y=zXh(y);var Z=y[ca];Z.debugName=$Vt(W==null?void 0:W.debugName,c,"[computed]");(W==null?void 0:W.equals)!=null&&(Z.equal=W.equals);return y};
mT=function(y){var W=kr(NCa);try{y()}finally{kr(W)}};
Ctw=function(y){if(!y.isDisposed){switch(y.effectType){case IJI:pO1.schedule(y);break;case PtE:JcO.schedule(y);break;default:_.d2(y.effectType)}y.hasRun||VuO()}};
Acy=function(y){QsE.push(y);return function(){var W=QsE.indexOf(y);W!==-1&&QsE.splice(W,1)}};
VuO=function(){for(var y=_.z(hXD),W=y.next();!W.done;W=y.next())W.value.flush()};
HDh=function(y){for(var W=_.z(y),c=W.next();!c.done;c=W.next()){var Z=c.value;for(c=[Z];Z.parent!==void 0;)Z=Z.parent,BCH(Z)&&y.has(Z)&&c.push(Z);for(;c.length>0;){Z=_.VT(c.pop());try{Z.run()}finally{y.delete(Z)}}}};
dFw=function(y){Lsh--;if(y)vgD.length=0;else if(!(Lsh>0))for(;vgD.length>0;){y=vgD.shift();if(!y)throw Error("Lb");try{y()}catch(W){YF(W)}}};
SPt=function(y){var W=y.component;var c=y.debugInstance;y=y.fn;var Z,G=(Z=W.debugName)!=null?Z:W.name;tl.push({name:c?G+" ("+c+")":G,isReactive:W.componentType!==nL});W=y();tl.pop();return W};
X8=function(){return tl[tl.length-1]};
b7=function(){var y=tl[tl.length-1];return y?y.isReactive:!1};
rV=function(y,W){W=W===void 0?{}:W;var c=tl.length;W.stack&&(tl=[].concat(_.No(W.stack)));try{return y()}catch(D){y=D;TCg(y);if(y!==aJD){xFf=tl.slice();W=[];for(var Z=_.ae;Z;){var G=void 0;W.push((G=Z.debugName)!=null?G:"[context]");G=void 0;Z=(G=Z.parent)!=null?G:null}iDE=W.reverse()}aJD=y;throw y;}finally{c=tl.length-c,c>0&&tl.splice(-c)}};
TCg=function(y){var W=tl;if(W.length!==0&&!y.componentStack){var c=W.slice(-20).reverse().map(function(Z){return Z.name}).join(" > ");
c=y.message+"\n\nComponent stack: "+c;try{y.componentStack=W.slice(),wL.enableComponentStacksInErrorMessages&&(y.stack&&(y.stack=y.stack.replace(y.message,c)),y.message=c)}catch(Z){}}};
MuI=function(y,W,c){W=Object.create(W);W.componentStack=tl.slice();W.effectFn=y;c&&(W.debugName=c);MQ(W);return W};
F8=function(y,W,c){c=c===void 0?3:c;var Z,G;var D=(G=(Z=xFf)==null?void 0:Z.slice())!=null?G:[];var Y,u;Z=(u=(Y=iDE)==null?void 0:Y.slice())!=null?u:[];W={componentStack:D,contextTrace:Z,errorSeverity:c,featureFlags:OXF(),tagName:W};return[y,W]};
_.UN=function(y,W){y=MuI(y,eXy,W);W=qQ;if(BCH(W)&&W.effectType===PtE){var c;(c=wL.handleError)==null||c.call.apply(c,[wL].concat(_.No(F8(Error("tb")))))}Ctw(y)};
_.$k=function(y,W){y=MuI(y,wOy,W);Ctw(y)};
_.KL=function(y){var W=_.ae;if(W){var c=tl.slice();GMa(W,function(){var Z=kr(EgO());try{rV(function(){return void y()},{stack:c})}finally{kr(Z)}})}};
ON=function(y,W){var c={};(W===void 0||W)&&MQ(c);W=xr(c);try{y(c)}finally{xr(W)}return function(){return void fnw(c)}};
_.gV=function(y){return typeof y==="function"?y():(y==null?0:y[qP1])?y.get():y};
k5y=function(y){if(_.ae)throw Error("rb");ON(y,!1)};
R2=function(y,W){y=xr(y);try{return ZS(W)}finally{xr(y)}};
Wyw=function(y,W,c){if(Object.hasOwnProperty.call(jNw,y)&&(y=jNw[y],Object.hasOwnProperty.call(y,W)&&(y=y[W],y instanceof Array))){for(var Z=null,G=!1,D=0,Y=y.length;D<Y;++D){var u=y[D],t=u.contingentAttribute;if(!t)return u.contract;Z===null&&(Z={});t=Object.hasOwnProperty.call(Z,t)?Z[t]:Z[t]=c(t);if(t===u.requiredValue)return u.contract;t==null&&(G=!0)}if(G)return null}W=ysf[W];return typeof W==="number"?W:null};
G7I=function(y,W,c){var Z=null;(y=csg[y])&&(Z=y[W]);return typeof Z!=="number"&&((y=csg["*"])&&(Z=y[W]),typeof Z!=="number")?!1:!0===Zvh[Z][String(c).toLowerCase()]};
oMh=function(y,W){W=Wyw(y.toLowerCase(),W,function(){var Z;(Z=wL.handleError)==null||Z.call.apply(Z,[wL].concat(_.No(F8(Error("Qb"),y.toLowerCase()))))});
if(W===null)return null;var c;return(c=fmf[W])!=null?c:null};
D4H=function(y,W,c){if(c===null||c===void 0)return c;y=oMh(y,W);return y===null?c:y(W,c)};
z2t=function(){};
l7=function(y,W){for(;y.length>W;)y.pop()};
YQw=function(y){y=Array(y);l7(y,0);return y};
m4y=function(y,W,c){if(c==null)y.removeAttribute(W);else{var Z;(Z=W.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":W.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?y.setAttributeNS(Z,W,c):y.setAttribute(W,c)}};
sNy=function(y,W,c){y[W]=c};
tNw=function(y,W,c){y=y.style;if(typeof c==="string")y.cssText=c;else{y.cssText="";for(var Z in c)if(uoy.call(c,Z)){W=y;var G=Z,D=c[Z];G.indexOf("-")>=0?W.setProperty(G,D):W[G]=D}}};
nMD=function(y,W,c){var Z=typeof c;Z==="object"||Z==="function"?y[W]=c:m4y(y,W,c)};
XRE=function(){var y=new z2t;y[EN.default]=nMD;y.style=tNw;return y};
bvw=function(y,W,c,Z){(Z[W]||Z[EN.default])(y,W,c)};
Fyh=function(y,W,c){W=new rsD(W,c);return y.__incrementalDOMData=W};
NP=function(y,W){if(y.__incrementalDOMData)return y.__incrementalDOMData;var c=y.nodeType===1?y.localName:y.nodeName,Z=y.nodeType===1?y.getAttribute("key"):null;W=Fyh(y,c,y.nodeType===1?Z||W:null);if(y.nodeType===1&&(y=y.attributes,c=y.length)){Z=W._attrsArr||(W._attrsArr=YQw(c*2));for(var G=0,D=0;G<c;G+=1,D+=2){var Y=y[G],u=Y.value;Z[D]=Y.name;Z[D+1]=u}}return W};
U4f=function(y,W,c,Z,G){return W==c&&Z==G};
$41=function(y){for(var W=I2,c=pL();c!==y;){var Z=c.nextSibling;W.removeChild(c);Pa.deleted.push(c);c=Z}};
pL=function(){return VR?VR.nextSibling:I2.firstChild};
CL=function(){VR=pL()};
gMf=function(y,W,c){CL();var Z;a:{if(Z=VR){do{var G=Z,D=y,Y=W,u=NP(G,Y);if(Kyg(G,D,u.nameOrCtor,Y,u.key))break a}while(W&&(Z=Z.nextSibling))}Z=null}Z||(y==="#text"?(c=QR.createTextNode(""),Fyh(c,"#text",null),y=c):(Z=QR,G=I2,typeof y==="function"?Z=new y:Z=(G=y==="svg"?"http://www.w3.org/2000/svg":y==="math"?"http://www.w3.org/1998/Math/MathML":G==null||NP(G).nameOrCtor==="foreignObject"?null:G.namespaceURI)?Z.createElementNS(G,y):Z.createElement(y),Fyh(Z,y,W),y=Z,c&&y.setAttribute("nonce",c)),Pa.created.push(y),
Z=y);c=Z;if(c!==VR){if(Ovw.indexOf(c)>=0)for(y=I2,W=c.nextSibling,Z=VR;Z!==null&&Z!==c;)G=Z.nextSibling,y.insertBefore(Z,W),Z=G;else I2.insertBefore(c,VR);VR=c}};
R2D=function(y,W,c){gMf(y,W,c);I2=VR;VR=null;return I2};
lmI=function(){$41(null);VR=I2;I2=I2.parentNode};
Al=function(){VR=I2.lastChild};
Im1=function(y,W){W=W===void 0?{}:W;var c=W.matches===void 0?U4f:W.matches;return function(Z,G,D){var Y=Pa,u=QR,t=Ovw,b=hl,r=Ba,F=VR,K=I2,l=Kyg;QR=Z.ownerDocument;Pa=new EMt(Z);Kyg=c;hl=[];Ba=[];VR=null;var N=I2=Z.parentNode,P,V=NJH.call(Z);if((P=V.nodeType===11||V.nodeType===9?V.activeElement:null)&&Z.contains(P)){for(V=[];P!==N;)V.push(P),P=P.parentNode||(N?P.host:null);N=V}else N=[];Ovw=N;try{return y(Z,G,D)}finally{Z=Pa,Ha&&Z.deleted.length>0&&Ha(Z.deleted),QR=u,Pa=Y,Kyg=l,hl=b,Ba=r,VR=F,I2=K,
Ovw=t}}};
pRa=function(y,W,c,Z){LL.push(bvw);LL.push(y);LL.push(W);LL.push(c);LL.push(Z)};
Jsw=function(y,W,c){var Z=Ba;W=W._attrsArr||(W._attrsArr=YQw(Z.length));for(var G=!W.length||!1,D=0;D<Z.length;D+=2){var Y=Z[D];if(G)W[D]=Y;else if(W[D]!==Y)break;var u=Z[D+1];if(G||W[D+1]!==u)W[D+1]=u,pRa(y,Y,u,c)}if(D<Z.length||D<W.length){for(D=G=D;D<W.length;D+=2)va[W[D]]=W[D+1];for(D=G;D<Z.length;D+=2)G=Z[D],Y=Z[D+1],va[G]!==Y&&pRa(y,G,Y,c),W[D]=G,W[D+1]=Y,delete va[G];l7(W,Z.length);for(var t in va)pRa(y,t,void 0,c),delete va[t]}y=PnH;PnH=c=LL.length;for(t=y;t<c;t+=5)(0,LL[t])(LL[t+1],LL[t+
2],LL[t+3],LL[t+4]);PnH=y;l7(LL,y);l7(Z,0)};
dV=function(y){gMf("#text",null);var W=VR;var c=NP(W);if(c.text!==y){c=c.text=y;for(var Z=1;Z<arguments.length;Z+=1)c=(0,arguments[Z])(c);W.data!==c&&(W.data=c)}};
BJa=function(y,W,c){if(c===!1&&VNy.has(W))m4y(y,W,null);else if(W!=="idomKey"&&W!=="skip"&&W!=="skipchildren"&&W!=="children"&&W!=="el"){if(W.startsWith("on"))if(W[2]===":"){if(c===void 0||c===null){var Z;(Z=wL.handleError)==null||Z.call.apply(Z,[wL].concat(_.No(F8(Error("Wb`"+W),y.tagName))));y[W]=void 0;return}if(typeof c!=="object"||c===null)throw Error("Xb`"+W+"`"+typeof c);if(typeof c.getFn!=="function")throw Error("Yb`"+W+"`"+Object.keys(c));var G=c.getFn(0),D=W.slice(3);if((Z=b7())&&y["on"+
D]===void 0)y.addEventListener(D,G),_.KL(function(){return void y.removeEventListener(D,G)});
else if(Z||!Cn1.includes(D))y["on"+D]=G}else{QNI(y,W,c);return}else if(W.startsWith("data-")&&typeof c==="string")try{c=AsI(c)}catch(Y){c="zSoyz"}typeof c!=="function"||y._disposeEffects!=null?(wL.enableAttributeSanitization&&(c=D4H(y.tagName,W,c)),W==="style"?h2E(y,W,c):W.startsWith("prop:")?(W=W.slice(5),y[W]=c):QNI(y,W,c)):(y._signalProps||(y._signalProps=[]),y._signalValues||(y._signalValues=[]),y._signalProps.push(W))}};
HvH=function(y,W,c){c=(c===void 0?{}:c).isReactive;if(W==null?0:W.el){var Z=W.el;if(typeof Z==="function")Z(y);else{var G;(G=Z.onRender)==null||G.call(Z,y);y._disposeRef||(y._disposeRef=function(){var D;(D=Z.onUnmount)==null||D.call(Z);delete y._disposeRef},c&&_.KL(function(){var D;
return void((D=y._disposeRef)==null?void 0:D.call(y))}))}}};
LyH=function(y){return NXh(y)&&St in y};
vME=function(y){return LyH(y)?y[St].flattened:y};
d4h=function(y,W){var c=_.Cf.apply(2,arguments),Z;W=(Z=W)!=null?Z:{};Z={};return Z.type=y,Z.props=W,Z.children=c,Z[T9]=!0,Z};
_.a2=function(y){return y.children};
xk=function(y){var W=SQt!==d4h;SQt=y?TJO:d4h;return W};
i7=function(y){return _.q1(y)?"nodeType"in y:!1};
MP=function(){return document.createTextNode("")};
et=function(y){y=document.createTextNode(String(y));y._isSignalTextNode=!0;return y};
amg=function(y){var W=document.createElement("div");if(!(y instanceof BX)){if(y.contentKind!==wV)throw Error("Ub");y=Lf(y.toString())}_.wf(W,y);y=_.z(W.childNodes);for(var c=y.next();!c.done;c=y.next())c.value._isSafeOrSanitizedHtmlNode=!0;return W};
qP=function(y){y=typeof y;return y==="string"||y==="number"||y==="boolean"};
x4w=function(y){return y instanceof bF||lF(y)||"function"==typeof _.Wp&&y instanceof _.Wp||!1};
ivH=function(y,W){var c=y.parentElement;if(!c)return W;c.replaceChild(W,y);return W};
MN1=function(y,W){var c=y[0].parentElement;if(c)if(y[0].previousSibling||y[y.length-1].nextSibling){c.insertBefore(W,y[0]);for(var Z=y.length-1;Z>=0;Z--)c.removeChild(y[Z])}else c.textContent="",c.appendChild(W);return W};
e2f=function(y,W){if(y[0].parentElement)for(var c=y[0].parentElement,Z=W.length,G=y.length,D=Z,Y=0,u=0,t=y[G-1].nextSibling,b=null;Y<G||u<D;)if(y[Y]===W[u])Y++,u++;else{for(;y[G-1]===W[D-1];)G--,D--;if(G===Y)for(var r=D<Z?u?W[u-1].nextSibling:W[D-u]:t;u<D;){var F=W[u++];c.insertBefore(F,r)}else if(D===u)for(;Y<G;)r=y[Y],b&&b.has(r)||c.removeChild(r),Y++;else if(y[Y]===W[D-1]&&W[u]===y[G-1])r=y[--G].nextSibling,c.insertBefore(W[u++],y[Y++].nextSibling),c.insertBefore(W[--D],r),y[G]=W[D];else{if(!b)for(b=
new Map,r=u;r<D;)b.set(W[r],r++);r=b.get(y[Y]);if(r==null)c.removeChild(y[Y]),Y++;else if(u<r&&r<D){F=Y;for(var K=1,l=void 0;++F<G&&F<D&&(l=b.get(y[F]))!=null&&l===r+K;)K++;if(K>r-u)for(F=y[Y];u<r;)c.insertBefore(W[u++],F);else c.replaceChild(W[u++],y[Y++])}else Y++}}return W};
qQw=function(y){if(Array.isArray(y)){if(y.length>1)throw Error("gc`"+y.length+"`"+y.map(wRt).join(", "));y=y[0]}if(y==null)return null;if(!(y instanceof _.xX)){var W,c;if((W=window)==null?0:(c=W.trustedTypes)==null?0:c.isScript(y))throw Error("fc");if(String(y).trim().length===0)return null;throw Error("hc`"+wRt(y));}return y};
k7g=function(y){if(Array.isArray(y)){if(y.length>1)throw Error("ic`"+y.length+"`"+y.map(wRt).join(", "));y=y[0]}if(y==null)return null;if(!wXt(y)){if(String(y).trim().length===0)return null;throw Error("jc`"+wRt(y));}return y};
wRt=function(y){return"("+typeof y+") "+(y!=null&&typeof y==="object"?y.constructor.name:typeof y)+" "+y};
yGI=function(y,W){return jiI(y,W)};
jiI=function(y,W){function c(){G=!1;Lsh++;var D=Z[0],Y=Z[St].flattened,u=xk(!0);try{var t=y(),b=W4I(D,t,Z);Array.isArray(b)||(Z[St].flattened=[b]);var r=Z[St].flattened;if(Y&&(!Array.isArray(Y)||Y.length!==0)){var F=Array.isArray(Y)?Y[0]:Y,K=F[kk],l=F._disposeEffects;F._disposeEffects=void 0;F=Array.isArray(r)?r[0]:r;F[kk]=K;F[kk]&&(F[kk].numNodes=F===r?1:r.length);F._disposeEffects=l}Z[0]=b;dFw(!1)}catch(N){throw dFw(!0),N;}finally{xk(u)}}
var Z=cGt(),G=!0;_.UN(function(){(ZOH==null?0:ZOH.logger)&&!G?ZOH.logger.logGraft(Z[0],c):c()},W);
return Z};
W4I=function(y,W,c){for(;typeof W==="function";)W=W();if(W!=null&&W[T9]){var Z,G,D;(D=wL.handleError)==null||D.call.apply(D,[wL].concat(_.No(F8(Error("kc`"+((Z=W.type)==null?void 0:Z.TAG_NAME)),(G=W.type)==null?void 0:G.TAG_NAME))))}if(y==null)return W==null?MP():qP(W)?et(W):x4w(W)?et(W.toString()):i7(W)?W:W.length===0?MP():GrH(W,c);if(i7(y)){if(W==null)return ivH(y,MP());if(qP(W))return fUO(y,W);if(x4w(W))return fUO(y,W.toString());if(i7(W))return ivH(y,W);if(W.length===0)return ivH(y,MP());W=GrH(W,
c);e2f([y],c[St].flattened);return W}y=jy(y);if(W==null)return MN1(y,MP());if(qP(W))return MN1(y,et(W));if(x4w(W))return MN1(y,et(W.toString()));if(i7(W))return e2f(y,[W])[0];if(W.length===0)return MN1(y,MP());W=GrH(W,c);e2f(y,c[St].flattened);return W};
fUO=function(y,W){y.nodeType===Node.TEXT_NODE?y.textContent!==String(W)&&(y.textContent=String(W)):y=ivH(y,et(W));return y};
jy=function(y,W,c){return oTw(y,W!=null?W:[],c===void 0?!1:c)};
GrH=function(y,W){var c=jy(y,void 0,!0);if(c.length===0)return MP();W[St].flattened=c;return y};
oTw=function(y,W,c,Z,G){W=W===void 0?[]:W;c=c===void 0?!1:c;G=G===void 0?-1:G;if(y==null)return W;if(y instanceof ya)return y=y.render(),oTw(y,W,c,Z,G);if(i7(W)&&W.nodeType===Node.ELEMENT_NODE)switch(W.tagName){case "SCRIPT":c=qQw(y);c!==null&&_.M9(W,c);return;case "STYLE":c=k7g(y);c!==null&&(W.textContent=_.q3y(c));return}qP(y)&&(y=et(y),Z&&c&&(Z[G]=y));if(y!=null&&y.contentKind===wV||y instanceof BX){c=amg(y);c=Array.from(c.childNodes);c=_.z(c);for(y=c.next();!y.done;y=c.next())DRy(W,y.value);return W}x4w(y)&&
(y=et(y.toString()),Z&&c&&(Z[G]=y));if(i7(y))return DRy(W,y);if(Array.isArray(y)){for(var D=0;D<y.length;D++)oTw(y[D],W,c,y,D);return W}if(typeof y==="function"){y=jiI(y,"qmF2ne")[0];if(Array.isArray(y)){c=_.z(y);for(y=c.next();!y.done;y=c.next())DRy(W,y.value);return W}Z&&c&&(Z[G]=y);return DRy(W,y)}if(y!=null&&y[T9]){Z=xk(!0);G=SQt;try{D=G.apply(null,[y.type,y.props].concat(_.No(y.children)))}finally{xk(Z)}return oTw(D,W,c)}var Y;(Y=wL.handleError)==null||Y.call.apply(Y,[wL].concat(_.No(F8(Error("lc")))));
return W};
cGt=function(y){var W={};W=Object.assign([],(W[St]={flattened:[]},W));if(!y)return W;W[0]=GrH(y,W);return W};
DRy=function(y,W){Array.isArray(y)?y.push(W):y.appendChild(W);return y};
WI=function(y){if(!wL.enableLazyTsx)return y;if(Array.isArray(y)){for(var W=0;W<y.length;W++)y[W]=WI(y[W]);return y}return y instanceof ya?(y=y.render(),WI(y)):y};
mRg=function(y,W){var c,Z,G=zhH(y),D=function(l){Z=l;l=xk(!0);var N=kr(cI);g2w("render",G);try{c=WI(y(W))}finally{R$I("render",G),kr(N),xk(l)}};
D=wL.enableContextPerComponent?E2I(D,G):ON(D,wL.alwaysTrackContexts||!!_.ae);pnf(Z);if(!W.renderedFromIdom){var Y=xr(Z);try{return YLw(y,W,c),c}finally{xr(Y)}}!LyH(c)&&Array.isArray(c)&&(c=cGt(c));var u=vME(c);Y=Array.isArray(u)?u[0]:u;var t=!1;if(Y){var b,r=(b=W==null?void 0:W.idomKey)!=null?b:y;b=u!==Y;Y._disposeEffects=D;var F=Y[kk]||{},K=LyH(c)?c:F.sourceDynamicRange;Object.assign(F,{key:r,numNodes:b?u.length:1,context:Z,higherOrder:!!Y[kk],sourceDynamicRange:K});Y[kk]=F}else t=!0;(function(){var l=
xr(Z);try{YLw(y,W,u)}finally{xr(l)}})();
t&&D();return c};
zhH=function(y){var W,c;return(c=(W=y.debugName)!=null?W:y.name)!=null?c:"[component]"};
sig=function(y){var W={},c;for(c in y)W={prev$jscomp$23:void 0,next$jscomp$25:void 0},W.prev$jscomp$23=ZL[c],W.next$jscomp$25=y[c],ZL[c]=function(Z){return function(){var G=_.Cf.apply(0,arguments);Z.prev$jscomp$23.apply(null,_.No(G));Z.next$jscomp$25.apply(null,_.No(G))}}(W)};
usE=function(){if(b7())throw Error("mc");return Gw};
tby=function(y,W){if(!y.__unmounted&&W){y.__unmounted=!0;try{y.didUnmount()}catch(G){var c,Z;(Z=wL.handleError)==null||Z.call.apply(Z,[wL].concat(_.No(F8(G,(c=y.JSC$8126___type)==null?void 0:c.TAG_NAME))))}ZL.didUnmount(y);y.el=null;W.__instance&&delete W.__instance}};
XTF=function(y,W,c){y._signalProps!=null&&y._disposeEffects==null&&((c===void 0?0:c)?y._disposeEffects=ON(function(){return void nTD(y,W)},wL.alwaysTrackContexts||!!_.ae):nTD(y,W))};
nTD=function(y,W){_.UN(function(){for(var c=y._signalProps,Z=y._signalValues,G=0;G<c.length;G++){var D=c[G],Y=W[D]();Z[G]!==Y&&(Z[G]=Y,BJa(y,D,Y))}},"e3YVbb")};
bOI=function(y,W,c){var Z,G=[];y._disposeEffects=ON(function(){_.UN(function(){var D=c();if(D===null||D===void 0)D="";if(qP(D)||D===null)Z!=null||(Z=document.createTextNode("")),Z.parentNode!==y&&(Z._isSignalTextNode=!0,y.insertBefore(Z,W)),Z.textContent=String(D);else if(D!=null&&D.contentKind===wV||D instanceof BX){for(var Y=G.length>0?G[G.length-1].nextSibling:W,u=_.z(G),t=u.next();!t.done;t=u.next())y.removeChild(t.value);D=amg(D);G=Array.from(D.childNodes);D=_.z(G);for(u=D.next();!u.done;u=D.next())y.insertBefore(u.value,
Y)}else throw t=(u=(Y=X8())==null?void 0:Y.name)!=null?u:"unknown",Error("bc`"+t+"`"+typeof D);},"VvDgC")},wL.alwaysTrackContexts||!!_.ae)};
URy=function(y,W){var c=_.Cf.apply(2,arguments);W!=null||(W={});return!wL.enableLazyTsx||X8()!=null&&!b7()?rGF(y,W,c):new F4O(y,W,c)};
rGF=function(y,W,c){if(y===_.a2)return c;if(typeof y==="function")return X8()&&!b7()&&(W.renderedFromIdom=!0),SPt({component:y,debugInstance:W.debugInstance,fn:function(){var D=$RH(y,W,c);if(D)return D;c.length>0&&(W.children=c.length===1?c[0]:c);D=W;if(y.componentType!==nL)var Y=!1;else{D||(D={});var u=new DL(D,y),t=kr(cI);try{Y=u.render(D)}finally{kr(t)}Y instanceof HTMLElement&&(Y.__instance=u,u.el=Y,u.JSC$8126___type=y,y.TAG_NAME=Y.tagName.toLowerCase(),ZL.didPatch(u))}return Y===!1?mRg(y,W):
Y}});
var Z=K4H(y,W),G;for(G in W)BJa(Z,G,W[G]);XTF(Z,W);jy(c,Z);HvH(Z,W,{isReactive:!0});OOa(Z,W);return Z};
K4H=function(y,W){y=(gTI.has(y.toLowerCase())?0:Rht.has(y.startsWith("svg:")?y.replace("svg:",""):y))?document.createElementNS("http://www.w3.org/2000/svg",y.startsWith("svg:")?y.replace("svg:",""):y):lUg(y,W)||document.createElement(y);y[ETw]=!0;return y};
Nzg=function(y){if(y){var W;(W=y._disposeRef)==null||W.call(y);var c;(c=y._disposeEffects)==null||c.call(y);y.__instance&&y.__instance instanceof zw&&(W=y.__instance,tby(W,y),W instanceof DL&&W.disposeEffects());for(W=0;W<y.childNodes.length;W++)Nzg(y.childNodes[W])}};
pTh=function(y){IUD.push(y)===1&&requestAnimationFrame(function(){setTimeout(function(){var W=[].concat(_.No(IUD));IUD=[];W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;try{for(var Z=0;Z<c.length;Z++)Nzg(c[Z])}catch(G){Z=c=void 0,(Z=(c=wL).handleError)==null||Z.call.apply(Z,[c].concat(_.No(F8(G))))}}})})};
_.X=function(y,W){return SQt.apply(null,[y,W].concat(_.No(_.Cf.apply(2,arguments))))};
JGf=function(){var y=document.body.firstElementChild;window.ng||y.__ngContext__||(y.__ngContext__={},y.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=PMw)};
_.YN=function(y){var W=y.cond;if(W===void 0)return y.else&&y.else();var c=_.Yk(function(){return!!W()},void 0,"y0Xknf"),Z=function(){var G=W();
if(!G){var D;(D=wL.handleError)==null||D.call.apply(D,[wL].concat(_.No(F8(Vbh.nonNullableCondIsNull()))))}return G};
return yGI(function(){var G=c(),D;ON(function(){var Y=kr(cI);try{D=WI(G?y.then(Z):y.else&&y.else())}finally{kr(Y)}},!0);
return D},y.debugInstance)};
CMf=function(y){return _.YN(y)};
_.mC=function(y){return y.keyBy==="INDEX"?QiF(y):AGh(y)};
hhO=function(y){y=_.z(y);for(var W=y.next();!W.done;W=y.next()){var c=void 0;(c=W.value)==null||c()}};
AGh=function(y){var W=y.keyBy===void 0||y.keyBy==="REFERENCE",c=W?function(r){return r}:y.keyBy,Z=[],G=[],D=[],Y=[],u=[],t=[],b=!0;
_.KL(function(){hhO(Y)});
return yGI(function(){var r=y.each(),F=r.length;if(F===0){if(Z.length===0&&!b)return D;hhO(Y);Z=r;G=[];for(r=0;r<Z.length;r++)G.push(c(Z[r]));D=[];Y=[];u=[];t=[];y.fallback&&(Y[0]=BzH(function(){D[0]=WI(y.fallback())}));
b=!1;return D}for(var K=new HOg,l=Z.length-1;l>=0;l--)K.push(G[l],l);l=Array(F);for(var N=Array(F),P=Array(F),V=Array(F),Q=Array(W?0:F),S={i$jscomp$486:0};S.i$jscomp$486<F;S={i$jscomp$486:S.i$jscomp$486,item$jscomp$105:void 0,key$jscomp$517:void 0},S.i$jscomp$486++){S.item$jscomp$105=r[S.i$jscomp$486];S.key$jscomp$517=c(S.item$jscomp$105);var cy=K.pop(S.key$jscomp$517);cy!=null?(P[S.i$jscomp$486]=D[cy],N[S.i$jscomp$486]=G[cy],l[S.i$jscomp$486]=Y[cy],V[S.i$jscomp$486]=u[cy],W||(Q[S.i$jscomp$486]=t[cy]),
mT(function(M){return function(){V[M.i$jscomp$486](M.i$jscomp$486);if(!W)Q[M.i$jscomp$486](M.item$jscomp$105)}}(S)),delete Y[cy]):l[S.i$jscomp$486]=BzH(function(M){return function(){var fa=_.z(_.G9(M.i$jscomp$486,void 0,"g4fKif")),jI=fa.next().value;
fa=fa.next().value;V[M.i$jscomp$486]=fa;N[M.i$jscomp$486]=M.key$jscomp$517;if(W)P[M.i$jscomp$486]=WI(y.children(M.item$jscomp$105,jI));else{var sD=_.z(_.G9(M.item$jscomp$105,void 0,"Ile0Kc"));fa=sD.next().value;sD=sD.next().value;Q[M.i$jscomp$486]=sD;P[M.i$jscomp$486]=WI(y.children(fa,jI))}}}(S))}hhO(Y);
Z=r;G=N;D=P;Y=l;u=V;t=Q;b=!1;return P},y.debugInstance)};
QiF=function(y){var W=[],c=[],Z=[],G=[],D=!1;_.KL(function(){for(var Y=_.z(G),u=Y.next();!u.done;u=Y.next())u=u.value,u()});
return yGI(function(){var Y=y.each();D&&Y.length>0&&(G.pop()(),W.pop(),D=!1);for(var u=Array(Y.length),t={i$jscomp$487:0};t.i$jscomp$487<Y.length;t={i$jscomp$487:t.i$jscomp$487},t.i$jscomp$487++)if(t.i$jscomp$487<W.length)W[t.i$jscomp$487]!==Y[t.i$jscomp$487]&&(mT(function(r){return function(){return void c[r.i$jscomp$487](Y[r.i$jscomp$487])}}(t)),W[t.i$jscomp$487]=Y[t.i$jscomp$487]),u[t.i$jscomp$487]=Z[t.i$jscomp$487];
else{var b=BzH(function(r){return function(){W[r.i$jscomp$487]=Y[r.i$jscomp$487];var F=_.z(_.G9(Y[r.i$jscomp$487],void 0,"C53T8b")),K=F.next().value;F=F.next().value;c[r.i$jscomp$487]=F;u[r.i$jscomp$487]=WI(y.children(K,r.i$jscomp$487))}}(t));
G[t.i$jscomp$487]=b}for(;W.length>Y.length;)W.pop(),G.pop()(),c.pop();Y.length===0&&!D&&y.fallback&&(t=BzH(function(){u[0]=WI(y.fallback())}),G[0]=t,D=!0);
return Z=u},y.debugInstance)};
BzH=function(y){var W=_.ae;return ON(function(c){var Z=kr(cI);try{c.parent=W,y(c)}finally{kr(Z)}},!1)};
_.sE=function(y){return y};
_.L4y=function(y){return{isDefault:!0,children:y.children}};
_.u1=function(y){var W=vTy(y),c=_.Yk(function(){return dRw(W)},void 0,"BHmkEe");
return yGI(function(){var Z=c(),G;ON(function(){var D=kr(cI);try{G=WI(Z())}finally{kr(D)}});
return G},y.debugInstance)};
vTy=function(y){y=y.children;return Array.isArray(y)?y:[y]};
SLw=function(y){var W=y.props;y=y.getChildren()[0];return W.when?{when:W.when,children:y}:{isDefault:!0,children:y}};
dRw=function(y){var W=function(){return null};
y=_.z(y);for(var c=y.next();!c.done;c=y.next())if(c=c.value,c!=null&&c[T9]&&(c=c.type===_.L4y?{isDefault:!0,children:c.children[0]}:{when:c.props.when,children:c.children[0]}),c instanceof ya&&(c=SLw(c)),c.isDefault)W=c.children;else if(c.when())return c.children;return W};
Tzg=function(y){var W=null,c;return{value:null,onRender:function(Z){if(c&&Z!==c){var G;(G=W)==null||G();c._disposeRef=void 0}c=Z;W=y(Z)||null},
onUnmount:function(){var Z;(Z=W)==null||Z();W=null}}};
xRE=function(y){var W=usE();if(W==null)throw aUt.PRIMITIVE_INVALID_HOOK_CALL();var c=W.hookCounter++;W.hooks||(W.hooks=[]);var Z=W.hooks;Z[c]||(Z[c]={key:y,host:W});if(y!==Z[c].key){var G,D;y=((G=W.JSC$8126___type)==null?void 0:G.name)||((D=W.functionComponent)==null?void 0:D.name);throw aUt.OUT_OF_ORDER_HOOK_CALL(y);}return Z[c]};
iOH=function(y,W){return!y||y.length!==(W==null?void 0:W.length)||y.some(function(c,Z){return c!==W[Z]})};
tW=function(y,W){var c=xRE("onChange"),Z=usE();iOH(c.deps,W)&&(c.deps=W,c.pendingEffect=y,Z.__syncEffects||(Z.__syncEffects=[]),Z.__syncEffects.push(c))};
qLD=function(y,W){var c;W!=null?c=W:c=_.yvE(document).getAppContext();c.get(MbI).JSC$25217_getEventTarget().dispatchEvent(new eh1(wTf,y,wV))};
_.nj=function(y,W){var c=c===void 0?{enableDevtools:!1}:c;var Z=rV(function(){var G=kr(cI);try{return ON(function(){var D=_.yvE(_.Pu(y)),Y;var u=n2D({appContext:c.appContext||(D==null?void 0:(Y=D.getOptionalAppContext)==null?void 0:Y.call(D)),dispatcher:D});D=xr(u);u=xk(!0);Lsh++;try{jy(W(),y),dFw(!1)}catch(t){throw dFw(!0),t;}finally{xk(u),xr(D)}},!1)}finally{kr(G)}});
y[kry]=!0;c.legacyTriggerSoyRendererEvents&&qLD(y,c.appContext);return function(){y.textContent="";Z();y[kry]=!1}};
_.Xl=function(y){if(BCH(qQ)){var W;(W=wL.handleError)==null||W.call.apply(W,[wL].concat(_.No(F8(Error("ac")))))}var c=_.ae,Z=tl.slice();Promise.resolve().then(function(){c&&!c.isDisposed&&rV(function(){var G=xr(c);try{y()}finally{xr(G)}},{stack:Z})})};
b1=function(y,W){tW(function(){return ZS(y)},W)};
_.rj=function(y){b7()?_.Xl(function(){ZS(y)}):tW(function(){return ZS(y)},[])};
yEF=function(y){var W=[].concat(_.No(y));y.length=0;y=_.z(W);for(W=y.next();!W.done;W=y.next()){W=W.value;jPI(W);var c=W.pendingEffect;W.pendingEffect=null;if(c=c==null?void 0:c())W.pendingCleanup=c}};
jPI=function(y){var W=y.pendingCleanup;y.pendingCleanup=null;W==null||W()};
Wqf=function(y,W){if(b7())return y();var c=xRE("useMemoInternal");iOH(c.deps,W)&&(c.deps=W,c.value=y());return c.value};
Fl=function(y,W){return Wqf(y,W)};
UE=function(y){return Wqf(y,[])};
cEg=function(){var y=_.Cf.apply(0,arguments),W=UE(function(){return y.map(function(c){return _.G9(c,void 0,"lnSD0c")})});
b1(function(){for(var c=0;c<y.length;c++)(0,W[c][1])(y[c])},y);
return W.map(function(c){return _.z(c).next().value})};
$N=function(y){return UE(function(){return{value:y}})};
_.Kj=function(y,W){if(!y)return null;y=Object.keys(y);y=_.z(y);for(var c=y.next();!c.done;c=y.next()){c=c.value;var Z=c.toLowerCase();if(Z.indexOf(W,Z.length-W.length)>-1)return c}return null};
_.l1=function(){var y=arguments,W=_.R8;y.length>1?W[y[0]]=y[1]:y.length===1&&Object.assign(W,y[0])};
_.Nn=function(y,W){return y in _.R8?_.R8[y]:W};
_.I8=function(y,W){return!!_.Nn(y,W)};
ZlH=function(y){var W=_.R8.EXPERIMENT_FLAGS;return W?W[y]:void 0};
f2w=function(y){GGf.forEach(function(W){return W(y)})};
_.PI=function(y){return y&&window.yterr?function(){try{return y.apply(this,arguments)}catch(W){_.pj(W)}}:y};
_.pj=function(y){var W=_.JW("yt.logging.errors.log");W?W(y,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=_.Nn("ERRORS",[]),W.push([y,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.l1("ERRORS",W));f2w(y)};
_.Va=function(y,W,c,Z,G){var D=_.JW("yt.logging.errors.log");D?D(y,"WARNING",W,c,Z,void 0,G):(D=_.Nn("ERRORS",[]),D.push([y,"WARNING",W,c,Z,void 0,G]),_.l1("ERRORS",D))};
D2y=function(y,W){W=y.split(W);for(var c={},Z=0,G=W.length;Z<G;Z++){var D=W[Z].split("=");if(D.length===1&&D[0]||D.length===2)try{var Y=oAa(D[0]||""),u=oAa(D[1]||"");if(Y in c){var t=c[Y];Array.isArray(t)?_.eI(t,u):c[Y]=[t,u]}else c[Y]=u}catch(K){var b=K,r=D[0],F=String(D2y);b.args=[{key:r,value:D[1],query:y,method:zoI===F?"unchanged":F}];YcH.hasOwnProperty(r)||_.Va(b)}}return c};
m21=function(y){var W=[];_.Eb.forEach(y,function(c,Z){var G=_.Cj(Z);_.Qa(Array.isArray(c)?c:[c],function(D){D==""?W.push(G):W.push(G+"="+_.Cj(D))})});
return W.join("&")};
_.AW=function(y){y.charAt(0)==="?"&&(y=y.substring(1));return D2y(y,"&")};
_.hW=function(y){return y.indexOf("?")!==-1?(y=(y||"").split("#")[0],y=y.split("?",2),_.AW(y.length>1?y[1]:y[0])):{}};
_.BI=function(y,W){return sPF(y,W||{},!0)};
urw=function(y,W){return sPF(y,W||{},!1)};
sPF=function(y,W,c){var Z=y.split("#",2);y=Z[0];Z=Z.length>1?"#"+Z[1]:"";var G=y.split("?",2);y=G[0];G=_.AW(G[1]||"");for(var D in W)if(c||!_.Eb.containsKey(G,D))G[D]=W[D];return _.HI(y,G)+Z};
Sy=function(y){if(!W)var W=window.location.href;var c=_.Lj(y)[1]||null,Z=_.vI(y);return c&&Z?dj(y,W):Z?_.vI(W)===Z&&(Number(_.Lj(W)[4]||null)||null)===(Number(_.Lj(y)[4]||null)||null):!0};
_.nAf=function(y){y=tGa(y);return y===null?!1:y[0]==="com"&&y[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
tGa=function(y){y=_.vI(y);return y!==null?y.split(".").reverse():null};
oAa=function(y){return y&&y.match(XAt)?y:Tw(y)};
_.xN=function(y){return new bly(y)};
_.U=function(){rEE||(rEE=new Fqt);return rEE};
$2H=function(y){var W=_.i1,c,Z;_.m(function(G){c=_.U();return(Z=c.resolve(_.xN(W)))?(y(Z),G.return(Promise.resolve(Z))):G.return(c.resolve(new U21(W)).then(function(D){y(D);return D}))})};
_.O=function(y){y=Mn(y);return typeof y==="string"&&y==="false"?!1:!!y};
_.ey=function(y,W){y=Mn(y);return y===void 0&&W!==void 0?W:Number(y||0)};
Kqg=function(y){y=Mn(y);return Array.isArray(y)?_.Ng(y,function(W){return Number(W||0)}):[Number(y||0)]};
_.wj=function(y){y=Mn(y);return y!==void 0?String(y):""};
_.qn=function(y){y=Mn(y);return Array.isArray(y)?_.Ng(y,function(W){return String(W||"")}):[String(y||"")]};
Olt=function(){return _.Nn("EXPERIMENTS_TOKEN","")};
Mn=function(y){return _.Nn("EXPERIMENT_FLAGS",{})[y]};
gA1=function(){for(var y=[],W=_.Nn("EXPERIMENTS_FORCED_FLAGS",{}),c=_.z(Object.keys(W)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,y.push({key:Z,value:String(W[Z])});c=_.Nn("EXPERIMENT_FLAGS",{});Z=_.z(Object.keys(c));for(var G=Z.next();!G.done;G=Z.next())G=G.value,G.startsWith("force_")&&W[G]===void 0&&y.push({key:G,value:String(c[G])});return y};
l2w=function(){if(!RoE)return null;var y=RoE();return"open"in y?y:null};
EAI=function(y){switch(kN(y)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
kN=function(y){return y&&"status"in y?y.status:-1};
_.j5=function(y,W){typeof y==="function"&&(y=_.PI(y));return window.setTimeout(y,W)};
_.y2=function(y,W){typeof y==="function"&&(y=_.PI(y));return window.setInterval(y,W)};
_.W7=function(y){window.clearTimeout(y)};
I2y=function(y){y=_.hW(y);for(var W=_.z(NKf),c=W.next();!c.done;c=W.next())if(y[c.value]!==void 0)return!0;return!1};
JEO=function(y,W,c,Z,G,D,Y,u){c=c===void 0?"GET":c;Z=Z===void 0?"":Z;u=u===void 0?!1:u;var t=l2w();if(!t)return null;var b=function(){(t&&"readyState"in t?t.readyState:0)===4&&W&&_.PI(W)(t)};
"onloadend"in t?t.addEventListener("loadend",b,!1):t.onreadystatechange=b;_.O("debug_forward_web_query_parameters")&&(y=pAa(y,window.location.search));t.open(c,y,!0);D&&(t.responseType=D);Y&&(t.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(Z instanceof FormData));if(G=PNI(y,G))for(var r in G)t.setRequestHeader(r,G[r]),"content-type"===r.toLowerCase()&&(c=!1);c&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(u&&"setAttributionReporting"in XMLHttpRequest.prototype){y=
{eventSourceEligible:!0,triggerEligible:!1};try{t.setAttributionReporting(y)}catch(F){_.Va(F)}}t.send(Z);return t};
PNI=function(y,W){W=W===void 0?{}:W;var c=Sy(y),Z=_.Nn("INNERTUBE_CLIENT_NAME"),G=_.O("web_ajax_ignore_global_headers_if_set"),D;for(D in VGh){var Y=_.Nn(VGh[D]),u=D==="X-Goog-AuthUser"||D==="X-Goog-PageId";D!=="X-Goog-Visitor-Id"||Y||(Y=_.Nn("VISITOR_DATA"));var t;if(!(t=!Y)){if(!(t=c||(_.vI(y)?!1:!0))){t=y;var b;if(b=_.O("add_auth_headers_to_remarketing_google_dot_com_ping")&&D==="Authorization"&&(Z==="TVHTML5"||Z==="TVHTML5_UNPLUGGED"||Z==="TVHTML5_SIMPLY"))b=tGa(t),b=b===null?!1:b[1]==="google"?
!0:b[2]==="google"?b[0]==="au"&&b[1]==="com"?!0:b[0]==="uk"&&b[1]==="co"?!0:!1:!1;b&&(t=_.c7(t)||"",t=t.split("/"),t="/"+(t.length>1?t[1]:""),b=t==="/pagead");t=b?!0:!1}t=!t}t||G&&W[D]!==void 0||Z==="TVHTML5_UNPLUGGED"&&u||(W[D]=Y)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(c||!_.vI(y))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!_.vI(y)){try{var r=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(F){}r&&(W["X-YouTube-Time-Zone"]=
r)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&_.vI(y)||(W["X-YouTube-Ad-Signals"]=m21(CNf()));return W};
_.QPE=function(y,W){var c=_.vI(y);_.O("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Sy(y)&&(c=document.location.hostname);var Z=_.c7(y);Z=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&Z&&Z.startsWith("/api/");if(!c||Z)return y;var G=_.AW(W),D={};_.Qa(NKf,function(Y){G[Y]&&(D[Y]=G[Y])});
return urw(y,D)};
AE1=function(y,W){W.method="POST";W.postParams||(W.postParams={});return _.ZP(y,W)};
hoO=function(y,W){var c=_.Nn("XSRF_FIELD_NAME"),Z;W.headers&&(Z=W.headers["Content-Type"]);return!W.excludeXsrf&&(!_.vI(y)||W.withCredentials||_.vI(y)===document.location.hostname)&&W.method==="POST"&&(!Z||Z==="application/x-www-form-urlencoded")&&!(W.postParams&&W.postParams[c])};
_.ZP=function(y,W){var c=W.format||"JSON";y=BKI(y,W);var Z=HlI(y,W),G=!1,D=LqI(y,function(t){if(!G){G=!0;u&&_.W7(u);var b=EAI(t),r=null,F=400<=t.status&&t.status<500,K=500<=t.status&&t.status<600;if(b||F||K)r=vAw(y,c,t,W.convertToSafeHtml);b&&(b=d2h(c,t,r));r=r||{};F=W.context||_.DH;b?W.onSuccess&&W.onSuccess.call(F,t,r):W.onError&&W.onError.call(F,t,r);W.onFinish&&W.onFinish.call(F,t,r)}},W.method,Z,W.headers,W.responseType,W.withCredentials);
Z=W.timeout||0;if(W.onTimeout&&Z>0){var Y=W.onTimeout;var u=_.j5(function(){G||(G=!0,D.abort(),_.W7(u),Y.call(W.context||_.DH,D))},Z)}return D};
BKI=function(y,W){W.includeDomain&&(y=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+y);var c=_.Nn("XSRF_FIELD_NAME");if(W=W.urlParams)W[c]&&delete W[c],y=_.BI(y,W);return y};
HlI=function(y,W){var c=_.Nn("XSRF_FIELD_NAME"),Z=_.Nn("XSRF_TOKEN"),G=W.postBody||"",D=W.postParams;hoO(y,W)&&(D||(D={}),D[c]=Z);(_.O("ajax_parse_query_data_only_when_filled")&&D&&Object.keys(D).length>0||D)&&typeof G==="string"&&(G=_.AW(G),_.Eb.extend(G,D),G=W.postBodyFormat&&W.postBodyFormat==="JSON"?JSON.stringify(G):_.Gj(G));D=G||D&&!_.Eb.isEmpty(D);!Sca&&D&&W.method!=="POST"&&(Sca=!0,_.pj(Error("Gc")));return G};
vAw=function(y,W,c,Z){var G=null;switch(W){case "JSON":try{var D=c.responseText}catch(Y){throw Z=Error("Hc"),Z.params=y,_.Va(Z),Y;}y=c.getResponseHeader("Content-Type")||"";D&&y.indexOf("json")>=0&&(D.substring(0,5)===")]}'\n"&&(D=D.substring(5)),G=JSON.parse(D));break;case "XML":if(y=(y=c.responseXML)?TKD(y):null)G={},_.Qa(y.getElementsByTagName("*"),function(Y){G[Y.tagName]=a2F(Y)})}Z&&x2D(G);
return G};
x2D=function(y){if(_.q1(y))for(var W in y)W==="html_content"||uf(W,"_html")?y[W]=Lf(y[W]):x2D(y[W])};
d2h=function(y,W,c){if(W&&W.status===204)return!0;switch(y){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}};
TKD=function(y){return y?(y=("responseXML"in y?y.responseXML:y).getElementsByTagName("root"))&&y.length>0?y[0]:null:null};
a2F=function(y){var W="";_.Qa(y.childNodes,function(c){W+=c.nodeValue});
return W};
ilH=function(y){if(y.name==="JavaException")return!0;y=y.stack;return y.includes("chrome://")||y.includes("chrome-extension://")||y.includes("moz-extension://")};
_.fR=function(y){_.UR.call(this);this.JSC$8298_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!y};
eoH=function(y,W){var c=y.length,Z=0,G=function(){return y.charCodeAt(Z++)};
do{var D=MGE(G);if(D===Infinity)break;var Y=D>>3;switch(D&7){case 0:D=MGE(G);if(Y===W)return D;break;case 1:if(Y===W)return;Z+=8;break;case 2:D=MGE(G);if(Y===W)return y.substr(Z,D);Z+=D;break;case 5:if(Y===W)return;Z+=4;break;default:return}}while(Z<c)};
MGE=function(y){var W=y(),c=W&127;if(W<128)return c;W=y();c|=(W&127)<<7;if(W<128)return c;W=y();c|=(W&127)<<14;if(W<128)return c;W=y();return W<128?c|(W&127)<<21:Infinity};
qcI=function(y,W,c,Z){if(y)if(Array.isArray(y)){var G=Z;for(Z=0;Z<y.length&&!(y[Z]&&(G+=wA1(Z,y[Z],W,c),G>500));Z++);Z=G}else if(typeof y==="object")for(G in y){if(y[G]){var D=G;var Y=y[G],u=W,t=c;D=typeof Y!=="string"||D!=="clickTrackingParams"&&D!=="trackingParams"?0:(Y=eoH(atob(Y.replace(/-/g,"+").replace(/_/g,"/")),2))?wA1(D+".ve",Y,u,t):0;Z+=D;Z+=wA1(G,y[G],W,c);if(Z>500)break}}else c[W]=oS(y),Z+=c[W].length;else c[W]=oS(y),Z+=c[W].length;return Z};
wA1=function(y,W,c,Z){c+="."+y;y=oS(W);Z[c]=y;return c.length+y.length};
oS=function(y){try{return(typeof y==="string"?y:String(JSON.stringify(y))).substr(0,500)}catch(W){return"unable to serialize "+typeof y+" ("+W.message+")"}};
kGh=function(y){switch(y){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}};
_.zj=function(y,W,c,Z,G){_.DP.set(y,W,{maxAge:c,path:"/",domain:Z===void 0?"youtube.com":Z,secure:G===void 0?!1:G})};
_.jvt=function(y,W,c){_.DP.remove(y,W===void 0?"/":W,c===void 0?"youtube.com":c)};
_.Y7=function(){if(_.O("embeds_web_enable_cookie_detection_fix")){if(!_.DH.navigator.cookieEnabled)return!1}else if(!_.DP.isEnabled())return!1;if(!_.DP.isEmpty())return!0;_.O("embeds_web_enable_cookie_detection_fix")?_.DP.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.DP.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.DP.get("TESTCOOKIESENABLED")!=="1")return!1;_.DP.remove("TESTCOOKIESENABLED");return!0};
yKI=function(){var y=_.DH.navigator;return y?y.connection:void 0};
WZt=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(y){}};
_.ZqE=function(){var y=yKI();if(y){var W=cKt[y.type||"unknown"]||"CONN_UNKNOWN";y=cKt[y.effectiveType||"unknown"]||"CONN_UNKNOWN";W==="CONN_CELLULAR_UNKNOWN"&&y!=="CONN_UNKNOWN"&&(W=y);if(W!=="CONN_UNKNOWN")return W;if(y!=="CONN_UNKNOWN")return y}};
fK1=function(){var y=yKI();if(y!=null&&y.effectiveType)return Gxa.hasOwnProperty(y.effectiveType)?Gxa[y.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.sA=function(){try{return _.m9(),!0}catch(y){return!1}};
_.m9=function(y){if(_.Nn("DATASYNC_ID")!==void 0)return _.Nn("DATASYNC_ID");throw new _.ul("Datasync ID not set",y===void 0?"unknown":y);};
_.t6=function(y){this.mechanism=y};
nR=function(y){this.mechanism=y};
XW=function(y){this.storage_=y;this.cachedIsStorageAvailable_=null};
oRa=function(){var y=null;try{y=_.DH.localStorage||null}catch(W){}XW.call(this,y)};
DWO=function(){var y=null;try{y=_.DH.sessionStorage||null}catch(W){}XW.call(this,y)};
bl=function(y,W){this.mechanism_=y;this.JSC$8400_prefix_=W+"::"};
_.z4D=function(y){var W=new oRa;return W.isAvailable()?y?new bl(W,y):W:null};
_.Yqw=function(y){var W=new DWO;return W.isAvailable()?y?new bl(W,y):W:null};
svF=function(){var y;return(y=mWw())==null?void 0:y.get("LAST_RESULT_ENTRY_KEY",!0)};
_.UA=function(y){ujf||(_.rr?_.rr.logError(y):(_.FW.push({type:"ERROR",payload:y}),_.FW.length>10&&_.FW.shift()))};
$7=function(y,W){ujf||(_.rr?_.rr.logEvent(y,W):(_.FW.push({type:"EVENT",eventType:y,payload:W}),_.FW.length>10&&_.FW.shift()))};
KR=function(y){if(y.indexOf(":")>=0)throw Error("Oc");};
OA=function(y){return y.substr(0,y.indexOf(":"))||y};
X$F=function(){return(tvH||nRa)&&gr("applewebkit")&&!gr("version")&&(!gr("safari")||gr("gsa/"))};
gr=function(y){var W=_.UD();return W?W.toLowerCase().indexOf(y)>=0:!1};
FZH=function(y,W,c,Z){W=OA(W);var G=y instanceof Error?y:Error("Pc`"+y);if(G instanceof RS)return G;y={objectStoreNames:c,dbName:W,dbVersion:Z};if(G.name==="QuotaExceededError")return new RS("QUOTA_EXCEEDED",y);if(_.ll&&G.name==="UnknownError")return new RS("QUOTA_MAYBE_EXCEEDED",y);if(G instanceof bqI)return new RS("MISSING_INDEX",Object.assign({},y,{objectStore:G.objectStore,index:G.index}));if(G.name==="InvalidStateError"&&rKg.some(function(D){return G.message.includes(D)}))return new RS("EXECUTE_TRANSACTION_ON_CLOSED_DB",
y);
if(G.name==="AbortError")return new RS("UNKNOWN_ABORT",y,G.message);G.args=[Object.assign({},y,{name:"IdbError",originalName:G.name})];G.level="WARNING";return G};
EA=function(y,W,c){var Z=svF();return new RS("IDB_NOT_SUPPORTED",{context:{caller:y,publicName:W,version:c,hasSucceededOnce:Z==null?void 0:Z.hasSucceededOnce}})};
UWh=function(y){if(!y)throw Error();throw y;};
$WH=function(y){return y};
KZD=function(y,W,c){var Z=function(){try{y.removeEventListener("success",G),y.removeEventListener("error",D)}catch(Y){}},G=function(){W(y.result);
Z()},D=function(){c(y.error);
Z()};
y.addEventListener("success",G);y.addEventListener("error",D)};
Oqf=function(y){return new Promise(function(W,c){KZD(y,W,c)})};
pR=function(y){return new NC(new IS(function(W,c){KZD(y,W,c)}))};
gRO=function(y,W){return new NC(new IS(function(c,Z){var G=function(){var D=y?W(y):null;D?D.then(function(Y){y=Y;G()},Z):c()};
G()}))};
lKg=function(y,W,c){return new Promise(function(Z,G){var D=W!==void 0?self.indexedDB.open(y,W):self.indexedDB.open(y);var Y=c.blocked,u=c.blocking,t=c.terminated,b=c.upgrade,r=c.closed,F,K=function(){F||(F=new P7(D.result,{closed:r}));return F};
D.addEventListener("upgradeneeded",function(l){try{if(l.newVersion===null)throw Error("Uc");if(D.transaction===null)throw Error("Vc");l.dataLoss&&l.dataLoss!=="none"&&$7("IDB_DATA_CORRUPTED",{reason:l.dataLossMessage||"unknown reason",dbName:OA(y)});var N=K(),P=new R41(D.transaction);b&&b(N,function(V){return l.oldVersion<V&&l.newVersion>=V},P);
P.done.catch(function(V){G(V)})}catch(V){G(V)}});
D.addEventListener("success",function(){var l=D.result;u&&l.addEventListener("versionchange",function(){u(K())});
l.addEventListener("close",function(){$7("IDB_UNEXPECTEDLY_CLOSED",{dbName:OA(y),dbVersion:l.version});t&&t()});
Z(K())});
D.addEventListener("error",function(){G(D.error)});
Y&&D.addEventListener("blocked",function(){Y()})})};
ERE=function(y,W,c){c=c===void 0?{}:c;return lKg(y,W,c)};
_.V2=function(y,W){W=W===void 0?{}:W;var c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return _.tm(Y,2),c=self.indexedDB.deleteDatabase(y),Z=W,(G=Z.blocked)&&c.addEventListener("blocked",function(){G()}),_.n(Y,Oqf(c),4);
if(Y.nextAddress!=2)return _.J6(Y,0);D=_.rs(Y);throw FZH(D,y,"",-1);})};
IKF=function(y,W){var c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.CR(NuI,W),2);c=Z.yieldResult;return Z.return(_.Q2(c,["databases"],{enableRetries:!0,mode:"readwrite"},function(G){var D=G.objectStore("databases");return D.get(y.actualName).then(function(Y){if(Y?y.actualName!==Y.actualName||y.publicName!==Y.publicName||y.userIdentifier!==Y.userIdentifier:1)return D.put(y).then(function(){})})}))})};
_.A6=function(y,W){var c;return _.m(function(Z){if(Z.nextAddress==1)return y?_.n(Z,_.CR(NuI,W),2):Z.return();c=Z.yieldResult;return Z.return(c.delete("databases",y))})};
_.p$I=function(y,W){var c,Z;return _.m(function(G){return G.nextAddress==1?(c=[],_.n(G,_.CR(NuI,W),2)):G.nextAddress!=3?(Z=G.yieldResult,_.n(G,_.Q2(Z,["databases"],{enableRetries:!0,mode:"readonly"},function(D){c.length=0;return h6(D.objectStore("databases"),{},function(Y){y(Y.getValue())&&c.push(Y.getValue());return Y.continue()})}),3)):G.return(c)})};
Poh=function(y,W){return _.p$I(function(c){return c.publicName===y&&c.userIdentifier!==void 0},W)};
CoH=function(){var y,W,c,Z;return _.m(function(G){switch(G.nextAddress){case 1:y=svF();if((W=y)==null?0:W.hasSucceededOnce)return G.return(!0);var D;if(D=JKw)D=/WebKit\/([0-9]+)/.exec(_.UD()),D=!!(D&&parseInt(D[1],10)>=600);D&&(D=/WebKit\/([0-9]+)/.exec(_.UD()),D=!(D&&parseInt(D[1],10)>=602));if(D||_.B7)return G.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return G.return(!1)}catch(Y){return G.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return G.return(!1);
_.tm(G,2);Z={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.n(G,IKF(Z,Vva),4);case 4:return _.n(G,_.A6("yt-idb-test-do-not-use",Vva),5);case 5:return G.return(!0);case 2:return _.rs(G),G.return(!1)}})};
AKg=function(){if(QvH!==void 0)return QvH;ujf=!0;return QvH=CoH().then(function(y){ujf=!1;var W;if((W=mWw())!=null&&W.expiringStorage_){var c;W={hasSucceededOnce:((c=svF())==null?void 0:c.hasSucceededOnce)||y};var Z;(Z=mWw())==null||Z.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return y})};
H7=function(){return _.JW("ytglobal.idbToken_")||void 0};
_.dr=function(){var y=H7();return y?Promise.resolve(y):AKg().then(function(W){(W=W?Vva:void 0)&&_.LR("ytglobal.idbToken_",W);return W})};
h4w=function(y){if(!_.sA())throw y=new RS("AUTH_INVALID",{dbName:y}),_.UA(y),y;var W=_.m9();return{actualName:y+":"+W,publicName:y,userIdentifier:W}};
Buw=function(y,W,c,Z){var G,D,Y,u,t,b;return _.m(function(r){switch(r.nextAddress){case 1:return D=(G=Error().stack)!=null?G:"",_.n(r,_.dr(),2);case 2:Y=r.yieldResult;if(!Y)throw u=EA("openDbImpl",y,W),_.O("ytidb_async_stack_killswitch")||(u.stack=u.stack+"\n"+D.substring(D.indexOf("\n")+1)),_.UA(u),u;KR(y);t=c?{actualName:y,publicName:y,userIdentifier:void 0}:h4w(y);_.tm(r,3);return _.n(r,IKF(t,Y),5);case 5:return _.n(r,ERE(t.actualName,W,Z),6);case 6:return r.return(r.yieldResult);case 3:return b=
_.rs(r),_.tm(r,7),_.n(r,_.A6(t.actualName,Y),9);case 9:_.J6(r,8);break;case 7:_.rs(r);case 8:throw b;}})};
Hqh=function(y,W,c){c=c===void 0?{}:c;return Buw(y,W,!1,c)};
LZO=function(y,W,c){c=c===void 0?{}:c;return Buw(y,W,!0,c)};
vRD=function(y,W){W=W===void 0?{}:W;var c,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,_.dr(),2);if(G.nextAddress!=3){c=G.yieldResult;if(!c)return G.return();KR(y);Z=h4w(y);return _.n(G,_.V2(Z.actualName,W),3)}return _.n(G,_.A6(Z.actualName,c),0)})};
dWt=function(y,W,c){y=y.map(function(Z){return _.m(function(G){return G.nextAddress==1?_.n(G,_.V2(Z.actualName,W),2):_.n(G,_.A6(Z.actualName,c),0)})});
return Promise.all(y).then(function(){})};
Sqt=function(y){var W=W===void 0?{}:W;var c,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,_.dr(),2);if(G.nextAddress!=3){c=G.yieldResult;if(!c)return G.return();KR(y);return _.n(G,Poh(y,c),3)}Z=G.yieldResult;return _.n(G,dWt(Z,W,c),0)})};
TuH=function(y,W){W=W===void 0?{}:W;var c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.dr(),2);if(Z.nextAddress!=3){c=Z.yieldResult;if(!c)return Z.return();KR(y);return _.n(Z,_.V2(y,W),3)}return _.n(Z,_.A6(y,c),0)})};
S5=function(y,W){return aKI(y,W)};
iqa=function(y){return _.CR(xW1(),y)};
MvE=function(y,W,c,Z){var G,D,Y;return _.m(function(u){switch(u.nextAddress){case 1:return G={config:y,hashData:W,timestamp:Z!==void 0?Z:(0,_.Tj)()},_.n(u,iqa(c),2);case 2:return D=u.yieldResult,_.n(u,D.clear("hotConfigStore"),3);case 3:return _.n(u,D.put("hotConfigStore",G),4);case 4:return Y=u.yieldResult,u.return(Y)}})};
e4D=function(y,W,c,Z,G){var D,Y,u;return _.m(function(t){switch(t.nextAddress){case 1:return D={config:y,hashData:W,configData:c,timestamp:G!==void 0?G:(0,_.Tj)()},_.n(t,iqa(Z),2);case 2:return Y=t.yieldResult,_.n(t,Y.clear("coldConfigStore"),3);case 3:return _.n(t,Y.put("coldConfigStore",D),4);case 4:return u=t.yieldResult,t.return(u)}})};
w$O=function(y){var W,c;return _.m(function(Z){return Z.nextAddress==1?_.n(Z,iqa(y),2):Z.nextAddress!=3?(W=Z.yieldResult,c=void 0,_.n(Z,_.Q2(W,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(G){return _.aS(G.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(D){c=D.getValue()})}),3)):Z.return(c)})};
qqy=function(y){var W,c;return _.m(function(Z){return Z.nextAddress==1?_.n(Z,iqa(y),2):Z.nextAddress!=3?(W=Z.yieldResult,c=void 0,_.n(Z,_.Q2(W,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(G){return _.aS(G.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(D){c=D.getValue()})}),3)):Z.return(c)})};
kxh=function(){return _.m(function(y){return _.n(y,Sqt("ytGcfConfig"),0)})};
jWE=function(){return"INNERTUBE_API_KEY"in _.R8&&"INNERTUBE_API_VERSION"in _.R8};
_.x7=function(){return{innertubeApiKey:_.Nn("INNERTUBE_API_KEY"),innertubeApiVersion:_.Nn("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Nn("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Nn("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Nn("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Nn("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Nn("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.I8("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.I8("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Nn("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.o$I=function(y){var W={client:{hl:y.innertubeContextHostLanguage,gl:y.innertubeContextGeoLocation,clientName:y.innertubeContextClientName,clientVersion:y.innertubeContextClientVersion,configInfo:y.innertubeContextClientConfigInfo}};navigator.userAgent&&(W.client.userAgent=String(navigator.userAgent));var c=_.DH.devicePixelRatio;c&&c!=1&&(W.client.screenDensityFloat=String(c));c=Olt();c!==""&&(W.client.experimentsToken=c);c=gA1();c.length>0&&(W.request={internalExperimentFlags:c});yqH(y,void 0,W);
Wvg(void 0,W);cqf(void 0,W);ZZg(y,void 0,W);G2H(void 0,W);_.O("start_client_gcf")&&flw(void 0,W);_.Nn("DELEGATED_SESSION_ID")&&!_.O("pageid_as_header_web")&&(W.user={onBehalfOfUser:_.Nn("DELEGATED_SESSION_ID")});!_.O("fill_delegate_context_in_gel_killswitch")&&(y=_.Nn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:y}));y=_.Nn("INNERTUBE_CONTEXT");var Z;if(_.O("enable_persistent_device_token")&&(y==null?0:(Z=y.client)==null?0:Z.rolloutToken)){var G;
W.client.rolloutToken=y==null?void 0:(G=y.client)==null?void 0:G.rolloutToken}Z=Object;G=Z.assign;y=W.client;c={};for(var D=_.z(Object.entries(_.AW(_.Nn("DEVICE","")))),Y=D.next();!Y.done;Y=D.next()){var u=_.z(Y.value);Y=u.next().value;u=u.next().value;Y==="cbrand"?c.deviceMake=u:Y==="cmodel"?c.deviceModel=u:Y==="cbr"?c.browserName=u:Y==="cbrver"?c.browserVersion=u:Y==="cos"?c.osName=u:Y==="cosver"?c.osVersion=u:Y==="cplatform"&&(c.platform=u)}W.client=G.call(Z,y,c);return W};
yqH=function(y,W,c){y=y.innertubeContextClientName;if(y==="WEB"||y==="MWEB"||y===1||y===2)if(W){c=_.il(W,DO1,96)||new DO1;var Z=zzH();Z=Object.keys(Ytg).indexOf(Z);Z=Z===-1?null:Z;Z!==null&&_.MC(c,3,Z);_.uF(W,96,c)}else c&&(c.client.mainAppWebInfo=(Z=c.client.mainAppWebInfo)!=null?Z:{},c.client.mainAppWebInfo.webDisplayMode=zzH())};
Wvg=function(y,W){var c=_.JW("yt.embedded_player.embed_url");c&&(y?(W=_.il(y,mOa,7)||new mOa,_.Ub(W,4,c),_.uF(y,7,W)):W&&(W.thirdParty={embedUrl:c}))};
cqf=function(y,W){var c;if(_.O("web_log_memory_total_kbytes")&&((c=_.DH.navigator)==null?0:c.deviceMemory)){var Z;c=(Z=_.DH.navigator)==null?void 0:Z.deviceMemory;y?_.e5(y,95,oH(c*1E6)):W&&(W.client.memoryTotalKbytes=""+c*1E6)}};
ZZg=function(y,W,c){if(y.appInstallData)if(W){var Z;c=(Z=_.il(W,wr,62))!=null?Z:new wr;_.Ub(c,6,y.appInstallData);_.uF(W,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=y.appInstallData)};
G2H=function(y,W){var c=_.ZqE();c&&(y?_.MC(y,61,sWO[c]):W&&(W.client.connectionType=c));_.O("web_log_effective_connection_type")&&(c=fK1())&&(y?_.MC(y,94,uy1[c]):W&&(W.client.effectiveConnectionType=c))};
_.XKF=function(y,W,c){c=c===void 0?{}:c;var Z={};_.Nn("EOM_VISITOR_DATA")?Z={"X-Goog-EOM-Visitor-Id":_.Nn("EOM_VISITOR_DATA")}:Z={"X-Goog-Visitor-Id":c.visitorData||_.Nn("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return Z;W=c.authorization||_.Nn("AUTHORIZATION");W||(y?W="Bearer "+_.JW("gapi.auth.getToken")().access_token:(tdw.instance||(tdw.instance=new tdw),y=n$t(),_.O("pageid_as_header_web")||delete y["X-Goog-PageId"],Z=Object.assign({},Z,y)));W&&(Z.Authorization=W);return Z};
flw=function(y,W){var c=bZD();if(c){var Z=c.coldConfigData,G=c.coldHashData;c=c.hotHashData;if(y){var D;W=(D=_.il(y,wr,62))!=null?D:new wr;Z=_.Ub(W,1,Z);_.Ub(Z,3,G).setHotHashData(c);_.uF(y,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},Z&&(W.client.configInfo.coldConfigData=Z),G&&(W.client.configInfo.coldHashData=G),c&&(W.client.configInfo.hotHashData=c))}};
qC=function(y){for(var W=y.length;--W>=0;)y[W]=0};
rqy=function(y,W,c,Z,G){this.static_tree=y;this.extra_bits=W;this.extra_base=c;this.elems=Z;this.max_length=G;this.has_stree=y&&y.length};
Fvf=function(y,W){this.dyn_tree=y;this.max_code=0;this.stat_desc=W};
k7=function(y,W){y.pending_buf[y.pending++]=W&255;y.pending_buf[y.pending++]=W>>>8&255};
jS=function(y,W,c){y.bi_valid>16-c?(y.bi_buf|=W<<y.bi_valid&65535,k7(y,y.bi_buf),y.bi_buf=W>>16-y.bi_valid,y.bi_valid+=c-16):(y.bi_buf|=W<<y.bi_valid&65535,y.bi_valid+=c)};
yJ=function(y,W,c){jS(y,c[W*2],c[W*2+1])};
UOH=function(y,W){var c=0;do c|=y&1,y>>>=1,c<<=1;while(--W>0);return c>>>1};
$Oy=function(y,W,c){var Z=Array(16),G=0,D;for(D=1;D<=15;D++)Z[D]=G=G+c[D-1]<<1;for(c=0;c<=W;c++)G=y[c*2+1],G!==0&&(y[c*2]=UOH(Z[G]++,G))};
Kvf=function(y){var W;for(W=0;W<286;W++)y.dyn_ltree[W*2]=0;for(W=0;W<30;W++)y.dyn_dtree[W*2]=0;for(W=0;W<19;W++)y.bl_tree[W*2]=0;y.dyn_ltree[512]=1;y.opt_len=y.static_len=0;y.last_lit=y.matches=0};
OZw=function(y){y.bi_valid>8?k7(y,y.bi_buf):y.bi_valid>0&&(y.pending_buf[y.pending++]=y.bi_buf);y.bi_buf=0;y.bi_valid=0};
g$E=function(y,W,c){OZw(y);k7(y,c);k7(y,~c);Wn.arraySet(y.pending_buf,y.window,W,c,y.pending);y.pending+=c};
RzD=function(y,W,c,Z){var G=W*2,D=c*2;return y[G]<y[D]||y[G]===y[D]&&Z[W]<=Z[c]};
llg=function(y,W,c){for(var Z=y.heap[c],G=c<<1;G<=y.heap_len;){G<y.heap_len&&RzD(W,y.heap[G+1],y.heap[G],y.depth)&&G++;if(RzD(W,Z,y.heap[G],y.depth))break;y.heap[c]=y.heap[G];c=G;G<<=1}y.heap[c]=Z};
P0a=function(y,W,c){var Z=0;if(y.last_lit!==0){do{var G=y.pending_buf[y.d_buf+Z*2]<<8|y.pending_buf[y.d_buf+Z*2+1];var D=y.pending_buf[y.l_buf+Z];Z++;if(G===0)yJ(y,D,W);else{var Y=cn[D];yJ(y,Y+256+1,W);var u=E$t[Y];u!==0&&(D-=NMI[Y],jS(y,D,u));G--;Y=G<256?Zn[G]:Zn[256+(G>>>7)];yJ(y,Y,c);u=Ilw[Y];u!==0&&(G-=pKg[Y],jS(y,G,u))}}while(Z<y.last_lit)}yJ(y,256,W)};
Jqy=function(y,W){var c=W.dyn_tree,Z=W.stat_desc.static_tree,G=W.stat_desc.has_stree,D=W.stat_desc.elems,Y,u=-1;y.heap_len=0;y.heap_max=573;for(Y=0;Y<D;Y++)c[Y*2]!==0?(y.heap[++y.heap_len]=u=Y,y.depth[Y]=0):c[Y*2+1]=0;for(;y.heap_len<2;){var t=y.heap[++y.heap_len]=u<2?++u:0;c[t*2]=1;y.depth[t]=0;y.opt_len--;G&&(y.static_len-=Z[t*2+1])}W.max_code=u;for(Y=y.heap_len>>1;Y>=1;Y--)llg(y,c,Y);t=D;do Y=y.heap[1],y.heap[1]=y.heap[y.heap_len--],llg(y,c,1),Z=y.heap[1],y.heap[--y.heap_max]=Y,y.heap[--y.heap_max]=
Z,c[t*2]=c[Y*2]+c[Z*2],y.depth[t]=(y.depth[Y]>=y.depth[Z]?y.depth[Y]:y.depth[Z])+1,c[Y*2+1]=c[Z*2+1]=t,y.heap[1]=t++,llg(y,c,1);while(y.heap_len>=2);y.heap[--y.heap_max]=y.heap[1];Y=W.dyn_tree;t=W.max_code;Z=W.stat_desc.static_tree;G=W.stat_desc.has_stree;D=W.stat_desc.extra_bits;var b=W.stat_desc.extra_base,r=W.stat_desc.max_length,F,K=0;for(F=0;F<=15;F++)y.bl_count[F]=0;Y[y.heap[y.heap_max]*2+1]=0;for(W=y.heap_max+1;W<573;W++){var l=y.heap[W];F=Y[Y[l*2+1]*2+1]+1;F>r&&(F=r,K++);Y[l*2+1]=F;if(!(l>
t)){y.bl_count[F]++;var N=0;l>=b&&(N=D[l-b]);var P=Y[l*2];y.opt_len+=P*(F+N);G&&(y.static_len+=P*(Z[l*2+1]+N))}}if(K!==0){do{for(F=r-1;y.bl_count[F]===0;)F--;y.bl_count[F]--;y.bl_count[F+1]+=2;y.bl_count[r]--;K-=2}while(K>0);for(F=r;F!==0;F--)for(l=y.bl_count[F];l!==0;)Z=y.heap[--W],Z>t||(Y[Z*2+1]!==F&&(y.opt_len+=(F-Y[Z*2+1])*Y[Z*2],Y[Z*2+1]=F),l--)}$Oy(c,u,y.bl_count)};
Vda=function(y,W,c){var Z,G=-1,D=W[1],Y=0,u=7,t=4;D===0&&(u=138,t=3);W[(c+1)*2+1]=65535;for(Z=0;Z<=c;Z++){var b=D;D=W[(Z+1)*2+1];++Y<u&&b===D||(Y<t?y.bl_tree[b*2]+=Y:b!==0?(b!==G&&y.bl_tree[b*2]++,y.bl_tree[32]++):Y<=10?y.bl_tree[34]++:y.bl_tree[36]++,Y=0,G=b,D===0?(u=138,t=3):b===D?(u=6,t=3):(u=7,t=4))}};
C0f=function(y,W,c){var Z,G=-1,D=W[1],Y=0,u=7,t=4;D===0&&(u=138,t=3);for(Z=0;Z<=c;Z++){var b=D;D=W[(Z+1)*2+1];if(!(++Y<u&&b===D)){if(Y<t){do yJ(y,b,y.bl_tree);while(--Y!==0)}else b!==0?(b!==G&&(yJ(y,b,y.bl_tree),Y--),yJ(y,16,y.bl_tree),jS(y,Y-3,2)):Y<=10?(yJ(y,17,y.bl_tree),jS(y,Y-3,3)):(yJ(y,18,y.bl_tree),jS(y,Y-11,7));Y=0;G=b;D===0?(u=138,t=3):b===D?(u=6,t=3):(u=7,t=4)}}};
QWt=function(y){var W=4093624447,c;for(c=0;c<=31;c++,W>>>=1)if(W&1&&y.dyn_ltree[c*2]!==0)return 0;if(y.dyn_ltree[18]!==0||y.dyn_ltree[20]!==0||y.dyn_ltree[26]!==0)return 1;for(c=32;c<256;c++)if(y.dyn_ltree[c*2]!==0)return 1;return 0};
GM=function(y,W,c){y.pending_buf[y.d_buf+y.last_lit*2]=W>>>8&255;y.pending_buf[y.d_buf+y.last_lit*2+1]=W&255;y.pending_buf[y.l_buf+y.last_lit]=c&255;y.last_lit++;W===0?y.dyn_ltree[c*2]++:(y.matches++,W--,y.dyn_ltree[(cn[c]+256+1)*2]++,y.dyn_dtree[(W<256?Zn[W]:Zn[256+(W>>>7)])*2]++);return y.last_lit===y.lit_bufsize-1};
ol=function(y,W){y.msg=fX[W];return W};
Dn=function(y){for(var W=y.length;--W>=0;)y[W]=0};
zM=function(y){var W=y.state,c=W.pending;c>y.avail_out&&(c=y.avail_out);c!==0&&(Wn.arraySet(y.output,W.pending_buf,W.pending_out,c,y.next_out),y.next_out+=c,W.pending_out+=c,y.total_out+=c,y.avail_out-=c,W.pending-=c,W.pending===0&&(W.pending_out=0))};
sW=function(y,W){var c=y.block_start>=0?y.block_start:-1,Z=y.strstart-y.block_start,G=0;if(y.level>0){y.strm.data_type===2&&(y.strm.data_type=QWt(y));Jqy(y,y.l_desc);Jqy(y,y.d_desc);Vda(y,y.dyn_ltree,y.l_desc.max_code);Vda(y,y.dyn_dtree,y.d_desc.max_code);Jqy(y,y.bl_desc);for(G=18;G>=3&&y.bl_tree[AqH[G]*2+1]===0;G--);y.opt_len+=3*(G+1)+5+5+4;var D=y.opt_len+3+7>>>3;var Y=y.static_len+3+7>>>3;Y<=D&&(D=Y)}else D=Y=Z+5;if(Z+4<=D&&c!==-1)jS(y,W?1:0,3),g$E(y,c,Z);else if(y.strategy===4||Y===D)jS(y,2+(W?
1:0),3),P0a(y,Y2,mh);else{jS(y,4+(W?1:0),3);c=y.l_desc.max_code+1;Z=y.d_desc.max_code+1;G+=1;jS(y,c-257,5);jS(y,Z-1,5);jS(y,G-4,4);for(D=0;D<G;D++)jS(y,y.bl_tree[AqH[D]*2+1],3);C0f(y,y.dyn_ltree,c-1);C0f(y,y.dyn_dtree,Z-1);P0a(y,y.dyn_ltree,y.dyn_dtree)}Kvf(y);W&&OZw(y);y.block_start=y.strstart;zM(y.strm)};
uz=function(y,W){y.pending_buf[y.pending++]=W};
tv=function(y,W){y.pending_buf[y.pending++]=W>>>8&255;y.pending_buf[y.pending++]=W&255};
hzw=function(y,W){var c=y.max_chain_length,Z=y.strstart,G=y.prev_length,D=y.nice_match,Y=y.strstart>y.w_size-262?y.strstart-(y.w_size-262):0,u=y.window,t=y.w_mask,b=y.prev,r=y.strstart+258,F=u[Z+G-1],K=u[Z+G];y.prev_length>=y.good_match&&(c>>=2);D>y.lookahead&&(D=y.lookahead);do{var l=W;if(u[l+G]===K&&u[l+G-1]===F&&u[l]===u[Z]&&u[++l]===u[Z+1]){Z+=2;for(l++;u[++Z]===u[++l]&&u[++Z]===u[++l]&&u[++Z]===u[++l]&&u[++Z]===u[++l]&&u[++Z]===u[++l]&&u[++Z]===u[++l]&&u[++Z]===u[++l]&&u[++Z]===u[++l]&&Z<r;);
l=258-(r-Z);Z=r-258;if(l>G){y.match_start=W;G=l;if(l>=D)break;F=u[Z+G-1];K=u[Z+G]}}}while((W=b[W&t])>Y&&--c!==0);return G<=y.lookahead?G:y.lookahead};
XD=function(y){var W=y.w_size,c;do{var Z=y.window_size-y.lookahead-y.strstart;if(y.strstart>=W+(W-262)){Wn.arraySet(y.window,y.window,W,W,0);y.match_start-=W;y.strstart-=W;y.block_start-=W;var G=c=y.hash_size;do{var D=y.head[--G];y.head[G]=D>=W?D-W:0}while(--c);G=c=W;do D=y.prev[--G],y.prev[G]=D>=W?D-W:0;while(--c);Z+=W}if(y.strm.avail_in===0)break;G=y.strm;c=y.window;D=y.strstart+y.lookahead;var Y=G.avail_in;Y>Z&&(Y=Z);Y===0?c=0:(G.avail_in-=Y,Wn.arraySet(c,G.input,G.next_in,Y,D),G.state.wrap===
1?G.adler=BMy(G.adler,c,Y,D):G.state.wrap===2&&(G.adler=nX(G.adler,c,Y,D)),G.next_in+=Y,G.total_in+=Y,c=Y);y.lookahead+=c;if(y.lookahead+y.insert>=3)for(Z=y.strstart-y.insert,y.ins_h=y.window[Z],y.ins_h=(y.ins_h<<y.hash_shift^y.window[Z+1])&y.hash_mask;y.insert&&!(y.ins_h=(y.ins_h<<y.hash_shift^y.window[Z+3-1])&y.hash_mask,y.prev[Z&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=Z,Z++,y.insert--,y.lookahead+y.insert<3););}while(y.lookahead<262&&y.strm.avail_in!==0)};
HZh=function(y,W){for(var c;;){if(y.lookahead<262){XD(y);if(y.lookahead<262&&W===0)return 1;if(y.lookahead===0)break}c=0;y.lookahead>=3&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,c=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);c!==0&&y.strstart-c<=y.w_size-262&&(y.match_length=hzw(y,c));if(y.match_length>=3)if(c=GM(y,y.strstart-y.match_start,y.match_length-3),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=3){y.match_length--;
do y.strstart++,y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart;while(--y.match_length!==0);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+1])&y.hash_mask;else c=GM(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(c&&(sW(y,!1),y.strm.avail_out===0))return 1}y.insert=y.strstart<2?y.strstart:2;return W===4?(sW(y,
!0),y.strm.avail_out===0?3:4):y.last_lit&&(sW(y,!1),y.strm.avail_out===0)?1:2};
rX=function(y,W){for(var c,Z;;){if(y.lookahead<262){XD(y);if(y.lookahead<262&&W===0)return 1;if(y.lookahead===0)break}c=0;y.lookahead>=3&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,c=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);y.prev_length=y.match_length;y.prev_match=y.match_start;y.match_length=2;c!==0&&y.prev_length<y.max_lazy_match&&y.strstart-c<=y.w_size-262&&(y.match_length=hzw(y,c),y.match_length<=5&&(y.strategy===1||y.match_length===3&&
y.strstart-y.match_start>4096)&&(y.match_length=2));if(y.prev_length>=3&&y.match_length<=y.prev_length){Z=y.strstart+y.lookahead-3;c=GM(y,y.strstart-1-y.prev_match,y.prev_length-3);y.lookahead-=y.prev_length-1;y.prev_length-=2;do++y.strstart<=Z&&(y.ins_h=(y.ins_h<<y.hash_shift^y.window[y.strstart+3-1])&y.hash_mask,y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);while(--y.prev_length!==0);y.match_available=0;y.match_length=2;y.strstart++;if(c&&(sW(y,!1),y.strm.avail_out===0))return 1}else if(y.match_available){if((c=
GM(y,0,y.window[y.strstart-1]))&&sW(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return 1}else y.match_available=1,y.strstart++,y.lookahead--}y.match_available&&(GM(y,0,y.window[y.strstart-1]),y.match_available=0);y.insert=y.strstart<2?y.strstart:2;return W===4?(sW(y,!0),y.strm.avail_out===0?3:4):y.last_lit&&(sW(y,!1),y.strm.avail_out===0)?1:2};
Lvt=function(y,W){for(var c,Z,G,D=y.window;;){if(y.lookahead<=258){XD(y);if(y.lookahead<=258&&W===0)return 1;if(y.lookahead===0)break}y.match_length=0;if(y.lookahead>=3&&y.strstart>0&&(Z=y.strstart-1,c=D[Z],c===D[++Z]&&c===D[++Z]&&c===D[++Z])){for(G=y.strstart+258;c===D[++Z]&&c===D[++Z]&&c===D[++Z]&&c===D[++Z]&&c===D[++Z]&&c===D[++Z]&&c===D[++Z]&&c===D[++Z]&&Z<G;);y.match_length=258-(G-Z);y.match_length>y.lookahead&&(y.match_length=y.lookahead)}y.match_length>=3?(c=GM(y,1,y.match_length-3),y.lookahead-=
y.match_length,y.strstart+=y.match_length,y.match_length=0):(c=GM(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++);if(c&&(sW(y,!1),y.strm.avail_out===0))return 1}y.insert=0;return W===4?(sW(y,!0),y.strm.avail_out===0?3:4):y.last_lit&&(sW(y,!1),y.strm.avail_out===0)?1:2};
v$h=function(y,W){for(var c;;){if(y.lookahead===0&&(XD(y),y.lookahead===0)){if(W===0)return 1;break}y.match_length=0;c=GM(y,0,y.window[y.strstart]);y.lookahead--;y.strstart++;if(c&&(sW(y,!1),y.strm.avail_out===0))return 1}y.insert=0;return W===4?(sW(y,!0),y.strm.avail_out===0?3:4):y.last_lit&&(sW(y,!1),y.strm.avail_out===0)?1:2};
FD=function(y,W,c,Z,G){this.good_length=y;this.max_lazy=W;this.nice_length=c;this.max_chain=Z;this.func=G};
dOw=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 Wn.Buf16(1146);this.dyn_dtree=new Wn.Buf16(122);this.bl_tree=new Wn.Buf16(78);Dn(this.dyn_ltree);Dn(this.dyn_dtree);Dn(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Wn.Buf16(16);this.heap=new Wn.Buf16(573);Dn(this.heap);this.heap_max=this.heap_len=0;this.depth=new Wn.Buf16(573);Dn(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};
Stt=function(y,W){if(!y||!y.state||W>5||W<0)return y?ol(y,-2):-2;var c=y.state;if(!y.output||!y.input&&y.avail_in!==0||c.status===666&&W!==4)return ol(y,y.avail_out===0?-5:-2);c.strm=y;var Z=c.last_flush;c.last_flush=W;if(c.status===42)if(c.wrap===2)y.adler=0,uz(c,31),uz(c,139),uz(c,8),c.gzhead?(uz(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),uz(c,c.gzhead.time&255),uz(c,c.gzhead.time>>8&255),uz(c,c.gzhead.time>>16&255),uz(c,c.gzhead.time>>
24&255),uz(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),uz(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(uz(c,c.gzhead.extra.length&255),uz(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(y.adler=nX(y.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(uz(c,0),uz(c,0),uz(c,0),uz(c,0),uz(c,0),uz(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),uz(c,3),c.status=113);else{var G=8+(c.w_bits-8<<4)<<8;G|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.strstart!==0&&(G|=
32);c.status=113;tv(c,G+(31-G%31));c.strstart!==0&&(tv(c,y.adler>>>16),tv(c,y.adler&65535));y.adler=1}if(c.status===69)if(c.gzhead.extra){for(G=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>G&&(y.adler=nX(y.adler,c.pending_buf,c.pending-G,G)),zM(y),G=c.pending,c.pending!==c.pending_buf_size));)uz(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>G&&(y.adler=nX(y.adler,c.pending_buf,c.pending-G,G));c.gzindex===c.gzhead.extra.length&&
(c.gzindex=0,c.status=73)}else c.status=73;if(c.status===73)if(c.gzhead.name){G=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>G&&(y.adler=nX(y.adler,c.pending_buf,c.pending-G,G)),zM(y),G=c.pending,c.pending===c.pending_buf_size)){var D=1;break}D=c.gzindex<c.gzhead.name.length?c.gzhead.name.charCodeAt(c.gzindex++)&255:0;uz(c,D)}while(D!==0);c.gzhead.hcrc&&c.pending>G&&(y.adler=nX(y.adler,c.pending_buf,c.pending-G,G));D===0&&(c.gzindex=0,c.status=91)}else c.status=91;if(c.status===
91)if(c.gzhead.comment){G=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>G&&(y.adler=nX(y.adler,c.pending_buf,c.pending-G,G)),zM(y),G=c.pending,c.pending===c.pending_buf_size)){D=1;break}D=c.gzindex<c.gzhead.comment.length?c.gzhead.comment.charCodeAt(c.gzindex++)&255:0;uz(c,D)}while(D!==0);c.gzhead.hcrc&&c.pending>G&&(y.adler=nX(y.adler,c.pending_buf,c.pending-G,G));D===0&&(c.status=103)}else c.status=103;c.status===103&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&zM(y),
c.pending+2<=c.pending_buf_size&&(uz(c,y.adler&255),uz(c,y.adler>>8&255),y.adler=0,c.status=113)):c.status=113);if(c.pending!==0){if(zM(y),y.avail_out===0)return c.last_flush=-1,0}else if(y.avail_in===0&&(W<<1)-(W>4?9:0)<=(Z<<1)-(Z>4?9:0)&&W!==4)return ol(y,-5);if(c.status===666&&y.avail_in!==0)return ol(y,-5);if(y.avail_in!==0||c.lookahead!==0||W!==0&&c.status!==666){Z=c.strategy===2?v$h(c,W):c.strategy===3?Lvt(c,W):$2[c.level].func(c,W);if(Z===3||Z===4)c.status=666;if(Z===1||Z===3)return y.avail_out===
0&&(c.last_flush=-1),0;if(Z===2&&(W===1?(jS(c,2,3),yJ(c,256,Y2),c.bi_valid===16?(k7(c,c.bi_buf),c.bi_buf=0,c.bi_valid=0):c.bi_valid>=8&&(c.pending_buf[c.pending++]=c.bi_buf&255,c.bi_buf>>=8,c.bi_valid-=8)):W!==5&&(jS(c,0,3),g$E(c,0,0),W===3&&(Dn(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),zM(y),y.avail_out===0))return c.last_flush=-1,0}if(W!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(uz(c,y.adler&255),uz(c,y.adler>>8&255),uz(c,y.adler>>16&255),uz(c,y.adler>>24&255),uz(c,
y.total_in&255),uz(c,y.total_in>>8&255),uz(c,y.total_in>>16&255),uz(c,y.total_in>>24&255)):(tv(c,y.adler>>>16),tv(c,y.adler&65535));zM(y);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1};
TMI=function(y){if(!(this instanceof TMI))return new TMI(y);y=this.options=Wn.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},y||{});y.raw&&y.windowBits>0?y.windowBits=-y.windowBits:y.gzip&&y.windowBits>0&&y.windowBits<16&&(y.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new alf;this.strm.avail_out=0;var W=this.strm;var c=y.level,Z=y.method,G=y.windowBits,D=y.memLevel,Y=y.strategy;if(W){var u=1;c===-1&&(c=6);G<0?(u=0,G=-G):G>15&&
(u=2,G-=16);if(D<1||D>9||Z!==8||G<8||G>15||c<0||c>9||Y<0||Y>4)W=ol(W,-2);else{G===8&&(G=9);var t=new dOw;W.state=t;t.strm=W;t.wrap=u;t.gzhead=null;t.w_bits=G;t.w_size=1<<t.w_bits;t.w_mask=t.w_size-1;t.hash_bits=D+7;t.hash_size=1<<t.hash_bits;t.hash_mask=t.hash_size-1;t.hash_shift=~~((t.hash_bits+3-1)/3);t.window=new Wn.Buf8(t.w_size*2);t.head=new Wn.Buf16(t.hash_size);t.prev=new Wn.Buf16(t.w_size);t.lit_bufsize=1<<D+6;t.pending_buf_size=t.lit_bufsize*4;t.pending_buf=new Wn.Buf8(t.pending_buf_size);
t.d_buf=t.lit_bufsize;t.l_buf=3*t.lit_bufsize;t.level=c;t.strategy=Y;t.method=Z;if(W&&W.state){W.total_in=W.total_out=0;W.data_type=2;c=W.state;c.pending=0;c.pending_out=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;W.adler=c.wrap===2?0:1;c.last_flush=0;if(!xOH){Z=Array(16);for(D=Y=0;D<28;D++)for(NMI[D]=Y,G=0;G<1<<E$t[D];G++)cn[Y++]=D;cn[Y-1]=D;for(D=Y=0;D<16;D++)for(pKg[D]=Y,G=0;G<1<<Ilw[D];G++)Zn[Y++]=D;for(Y>>=7;D<30;D++)for(pKg[D]=Y<<7,G=0;G<1<<Ilw[D]-7;G++)Zn[256+Y++]=D;for(G=0;G<=15;G++)Z[G]=
0;for(G=0;G<=143;)Y2[G*2+1]=8,G++,Z[8]++;for(;G<=255;)Y2[G*2+1]=9,G++,Z[9]++;for(;G<=279;)Y2[G*2+1]=7,G++,Z[7]++;for(;G<=287;)Y2[G*2+1]=8,G++,Z[8]++;$Oy(Y2,287,Z);for(G=0;G<30;G++)mh[G*2+1]=5,mh[G*2]=UOH(G,5);iZf=new rqy(Y2,E$t,257,286,15);Mdw=new rqy(mh,Ilw,0,30,15);ezD=new rqy([],wKw,0,19,7);xOH=!0}c.l_desc=new Fvf(c.dyn_ltree,iZf);c.d_desc=new Fvf(c.dyn_dtree,Mdw);c.bl_desc=new Fvf(c.bl_tree,ezD);c.bi_buf=0;c.bi_valid=0;Kvf(c);c=0}else c=ol(W,-2);c===0&&(W=W.state,W.window_size=2*W.w_size,Dn(W.head),
W.max_lazy_match=$2[W.level].max_lazy,W.good_match=$2[W.level].good_length,W.nice_match=$2[W.level].nice_length,W.max_chain_length=$2[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=2,W.match_available=0,W.ins_h=0);W=c}}else W=-2;if(W!==0)throw Error(fX[W]);y.header&&(W=this.strm)&&W.state&&W.state.wrap===2&&(W.state.gzhead=y.header);if(y.dictionary){var b;typeof y.dictionary==="string"?b=qtO(y.dictionary):k2D.call(y.dictionary)==="[object ArrayBuffer]"?
b=new Uint8Array(y.dictionary):b=y.dictionary;y=this.strm;D=b;Y=D.length;if(y&&y.state)if(b=y.state,W=b.wrap,W===2||W===1&&b.status!==42||b.lookahead)W=-2;else{W===1&&(y.adler=BMy(y.adler,D,Y,0));b.wrap=0;Y>=b.w_size&&(W===0&&(Dn(b.head),b.strstart=0,b.block_start=0,b.insert=0),c=new Wn.Buf8(b.w_size),Wn.arraySet(c,D,Y-b.w_size,b.w_size,0),D=c,Y=b.w_size);c=y.avail_in;Z=y.next_in;G=y.input;y.avail_in=Y;y.next_in=0;y.input=D;for(XD(b);b.lookahead>=3;){D=b.strstart;Y=b.lookahead-2;do b.ins_h=(b.ins_h<<
b.hash_shift^b.window[D+3-1])&b.hash_mask,b.prev[D&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=D,D++;while(--Y);b.strstart=D;b.lookahead=2;XD(b)}b.strstart+=b.lookahead;b.block_start=b.strstart;b.insert=b.lookahead;b.lookahead=0;b.match_length=b.prev_length=2;b.match_available=0;y.next_in=Z;y.input=G;y.avail_in=c;b.wrap=W;W=0}else W=-2;if(W!==0)throw Error(fX[W]);this._dict_set=!0}};
j51=function(y,W){W=W||{};W.gzip=!0;W=new TMI(W);W.push(y,!0);if(W.err)throw W.msg||fX[W.err];return W.result};
WDI=function(y,W){var c=yxh();c&&c.publish.call(c,y.toString(),y,W)};
omt=function(y,W,c){var Z=yxh();if(!Z)return 0;var G=Z.subscribe(y.toString(),function(D,Y){var u=_.JW("ytPubsub2Pubsub2SkipSubKey");u&&u==G||(u=function(){if(cxt[G])try{if(Y&&y instanceof Z6w&&y!=D)try{var t=y.dataClass,b=Y;if(!b.args||!b.version)throw Error("Xc");try{if(!t.version_){var r=new t;t.version_=r.version}var F=t.version_}catch(K){}if(!F||b.version!=F)throw Error("Yc");try{Y=Reflect.construct(t,_.SI(b.args))}catch(K){throw K.message="yt.pubsub2.Data.deserialize(): "+K.message,K;}}catch(K){throw K.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+y.toString()+": "+K.message,K;}W.call(c||window,Y)}catch(K){_.pj(K)}},GsI[y.toString()]?_.JW("yt.scheduler.instance")?_.KX.addLowPriorityJob(u):_.j5(u,0):u())});
cxt[G]=!0;fVt[y.toString()]||(fVt[y.toString()]=[]);fVt[y.toString()].push(G);return G};
mMH=function(){var y=DMg,W=omt(zPI,function(c){y.apply(void 0,arguments);Y0I(W)});
return W};
Y0I=function(y){var W=yxh();W&&(typeof y==="number"&&(y=[y]),_.Qa(y,function(c){W.unsubscribeByKey(c);delete cxt[c]}))};
yxh=function(){return _.JW("ytPubsub2Pubsub2Instance")};
s5I=function(y,W,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&WDI("meta_logging_csi_event",{timerName:y,timelineData:W})};
_.uXO=function(y){return y?(y=y.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.iF(y):null:null};
_.OW=function(y){return y?(y=y.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.rf(y):null:null};
nmh=function(){tjI||(tjI=_.OW(_.Nn("WORKER_SERIALIZATION_URL")));return tjI||void 0};
_.b6y=function(){var y=nmh();XQf||y===void 0||(XQf=new Worker(_.U3(y),void 0));return XQf};
_.rxF=function(){return typeof Worker==="function"&&nmh()?!0:!1};
_.KDH=function(){if(_.rxF()&&!FDO){var y=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var Z=UMD.get(c.key);Z&&($MO(c.gzippedBatch,Z.latencyPayload,Z.url,Z.options,Z.sendFn),UMD.delete(c.key))}},W=_.b6y();
W&&(W.addEventListener("message",y),W.onerror=function(){UMD.clear()},FDO=!0)}};
IVD=function(y,W,c,Z,G){G=G===void 0?!1:G;var D={startTime:(0,_.Tj)(),ticks:{},infos:{}};if(gX)try{var Y=O6f(W);if(Y!=null&&(Y>gmF||Y<RPH))Z(y,c);else{if(_.O("gzip_gel_with_worker")&&(_.O("initial_gzip_use_main_thread")&&!lVD||!_.O("initial_gzip_use_main_thread"))){FDO||_.KDH();var u=_.b6y();if(u&&!G){UMD.set(Emf,{latencyPayload:D,url:y,options:c,sendFn:Z});u.postMessage({op:"gelBatchToGzip",serializedBatch:W,key:Emf});Emf++;return}}var t=j51(Npw(W));$MO(t,D,y,c,Z)}}catch(b){_.Va(b),Z(y,c)}else Z(y,
c)};
$MO=function(y,W,c,Z,G){lVD=!1;var D=(0,_.Tj)();W.ticks.gelc=D;Rl++;_.O("disable_compression_due_to_performance_degredation")&&D-W.startTime>=pQw&&(P6E++,_.O("abandon_compression_after_N_slow_zips")?Rl===_.ey("compression_disable_point")&&P6E>JxO&&(gX=!1):gX=!1);Vja(W);Z.headers||(Z.headers={});Z.headers["Content-Encoding"]="gzip";Z.postBody=y;Z.postParams=void 0;G(c,Z)};
C6I=function(y){var W=W===void 0?!1:W;var c=c===void 0?!1:c;var Z=(0,_.Tj)(),G={startTime:Z,ticks:{},infos:{}},D=W?_.JW("yt.logging.gzipForFetch",!1):!0;if(gX&&D){if(!y.body)return y;try{var Y=c?y.body:typeof y.body==="string"?y.body:JSON.stringify(y.body);D=Y;if(!c&&typeof Y==="string"){var u=O6f(Y);if(u!=null&&(u>gmF||u<RPH))return y;c=W?{level:1}:void 0;D=j51(Npw(Y),c);var t=(0,_.Tj)();G.ticks.gelc=t;if(W){Rl++;if((_.O("disable_compression_due_to_performance_degredation")||_.O("disable_compression_due_to_performance_degradation_lr"))&&
t-Z>=pQw)if(P6E++,_.O("abandon_compression_after_N_slow_zips")||_.O("abandon_compression_after_N_slow_zips_lr")){W=P6E/Rl;var b=JxO/_.ey("compression_disable_point");Rl>0&&Rl%_.ey("compression_disable_point")===0&&W>=b&&(gX=!1)}else gX=!1;Vja(G)}}y.headers=Object.assign({},{"Content-Encoding":"gzip"},y.headers||{});y.body=D;return y}catch(r){return _.Va(r),y}}else return y};
O6f=function(y){try{return(new Blob(y.split(""))).size}catch(W){return _.Va(W),null}};
Vja=function(y){_.O("gel_compression_csi_killswitch")||!_.O("log_gel_compression_latency")&&!_.O("log_gel_compression_latency_lr")||s5I("gel_compression",y,{sampleRate:.1})};
Q5g=function(){this.blockSize=-1};
lz=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var y=1;y<this.blockSize;++y)this.pad_[y]=0;this.total_=this.inbuf_=0;this.reset()};
hPw=function(y){y=Object.assign({},y);delete y.Authorization;var W=AxI();if(W){var c=new lz;c.update(_.Nn("INNERTUBE_API_KEY"));c.update(W);y.hash=_.OB(c.digest(),3)}return y};
NV=function(){Bpa||(Bpa=new _.EW("yt.innertube"));return Bpa};
H6a=function(y,W,c,Z){if(Z)return null;Z=NV().get("nextId",!0)||1;var G=NV().get("requests",!0)||{};G[Z]={method:y,request:W,authState:hPw(c),requestTime:Math.round((0,_.Tj)())};NV().set("nextId",Z+1,86400,!0);NV().set("requests",G,86400,!0);return Z};
LDy=function(y){var W=NV().get("requests",!0)||{};delete W[y];NV().set("requests",W,86400,!0)};
dMa=function(y){var W=NV().get("requests",!0);if(W){for(var c in W){var Z=W[c];if(!(Math.round((0,_.Tj)())-Z.requestTime<6E4)){var G=Z.authState,D=hPw(_.XKF(!1));_.Eb.equals(G,D)&&(G=Z.request,"requestTimeMs"in G&&(G.requestTimeMs=Math.round((0,_.Tj)())),vmH(y,Z.method,G,{}));delete W[c]}}NV().set("requests",W,86400,!0)}};
S0D=function(y){var W;return(y=y==null?void 0:(W=y.error)==null?void 0:W.code)&&y>=400&&y<=599?!1:!0};
TpO=function(y){var W;y=y==null?void 0:(W=y.error)==null?void 0:W.code;return!(y!==400&&y!==415)};
xMI=function(){if(aVt)return aVt();var y={};aVt=S5("LogsDatabaseV2",{objectStores:(y.LogsRequestsStore={addedAtVersion:2},y),shared:!1,upgrade:function(W,c,Z){c(2)&&Il(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(Z=Z.objectStore("LogsRequestsStore"),Z.JSC$8459_wrapped.indexNames.contains("newRequest")&&Z.JSC$8459_wrapped.deleteIndex("newRequest"),pX(Z,"newRequestV2",["status","interface","timestamp"]));c(7)&&W.JSC$8444_wrapped.objectStoreNames.contains("sapisid")&&W.JSC$8444_wrapped.deleteObjectStore("sapisid");
c(9)&&W.JSC$8444_wrapped.objectStoreNames.contains("SWHealthLog")&&W.JSC$8444_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return aVt()};
Pn=function(y){return _.CR(xMI(),y)};
Mjy=function(y,W){var c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return c={startTime:(0,_.Tj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.n(Y,Pn(W),2);if(Y.nextAddress!=3)return Z=Y.yieldResult,G=Object.assign({},y,{options:JSON.parse(JSON.stringify(y.options)),interface:_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.n(Y,Z.put("LogsRequestsStore",G),3);D=Y.yieldResult;c.ticks.tc=(0,_.Tj)();i6h(c);return Y.return(D)})};
eP1=function(y,W){var c,Z,G,D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1)return c={startTime:(0,_.Tj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.n(r,Pn(W),2);if(r.nextAddress!=3)return Z=r.yieldResult,G=_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME",0),D=[y,G,0],Y=[y,G,(0,_.Tj)()],u=IDBKeyRange.bound(D,Y),t="prev",_.O("use_fifo_for_networkless")&&(t="next"),b=void 0,_.n(r,_.Q2(Z,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(F){return _.aS(F.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:u,direction:t},function(K){K.getValue()&&(b=K.getValue(),y==="NEW"&&(b.status="QUEUED",K.update(b)))})}),3);
c.ticks.tc=(0,_.Tj)();i6h(c);return r.return(b)})};
wQg=function(y,W){var c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,Pn(W),2);c=Z.yieldResult;return Z.return(_.Q2(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(G){var D=G.objectStore("LogsRequestsStore");return D.get(y).then(function(Y){if(Y)return Y.status="QUEUED",D.put(Y).then(function(){return Y})})}))})};
q0O=function(y,W,c,Z){c=c===void 0?!0:c;var G;return _.m(function(D){if(D.nextAddress==1)return _.n(D,Pn(W),2);G=D.yieldResult;return D.return(_.Q2(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Y){var u=Y.objectStore("LogsRequestsStore");return u.get(y).then(function(t){return t?(t.status="NEW",c&&(t.sendCount+=1),Z!==void 0&&(t.options.compress=Z),u.put(t).then(function(){return t})):NC.resolve(void 0)})}))})};
ks1=function(y,W){var c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,Pn(W),2);c=Z.yieldResult;return Z.return(c.delete("LogsRequestsStore",y))})};
j9I=function(y){var W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,Pn(y),2);W=Z.yieldResult;c=(0,_.Tj)()-2592E6;return _.n(Z,_.Q2(W,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(G){return h6(G.objectStore("LogsRequestsStore"),{},function(D){if(D.getValue().timestamp<=c)return D.delete().then(function(){return D.continue()})})}),0)})};
y3g=function(){_.m(function(y){return _.n(y,Sqt("LogsDatabaseV2"),0)})};
i6h=function(y){_.O("nwl_csi_killswitch")||s5I("networkless_performance",y,{sampleRate:1})};
_.c3h=function(y){return _.CR(WIt(),y)};
ZNI=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.c3h(y),2);W=Z.yieldResult;c=(0,_.Tj)()-2592E6;return _.n(Z,_.Q2(W,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(G){return h6(G.objectStore("SWHealthLog"),{},function(D){if(D.getValue().timestamp<=c)return D.delete().then(function(){return D.continue()})})}),0)})};
GPt=function(y){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,_.c3h(y),2);W=c.yieldResult;return _.n(c,W.clear("SWHealthLog"),0)})};
_.Jv=function(y,W,c,Z,G,D,Y){G=G===void 0?"":G;D=D===void 0?!1:D;Y=Y===void 0?!1:Y;if(y)if(c&&!gr("cobalt"))_.Va(new _.ul("Legacy referrer-scrubbed ping detected")),y&&fzI(y,void 0,{scrubReferrer:!0});else if(G)JEO(y,W,"POST",G,Z);else if(_.Nn("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Z||Y)JEO(y,W,"GET","",Z,void 0,D,Y);else{b:{try{c:{var u=new o0H({url:y});if(tyF(u.JSC$7345_url_,"dsh")==="1")var t=null;else{var b=tyF(u.JSC$7345_url_,"ae");if(b==="1"){var r=tyF(u.JSC$7345_url_,"adurl");if(r)try{t={version:3,
directUrl:decodeURIComponent(r),asyncUrl:nNF(u.JSC$7345_url_,"act=1","ri=1",Dif(u))};break c}catch(N){}}t=b==="2"?{version:4,directUrl:nNF(u.JSC$7345_url_,"dct=1","suid="+u.suid_,""),asyncUrl:nNF(u.JSC$7345_url_,"act=1","ri=1","suid="+u.suid_)}:null}}if(t){var F=_.c7(y);var K=!(!F||!F.endsWith("/aclk")||_.Q4(y,"ri")!=="1");break b}}catch(N){}K=!1}if(K){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(y,"")){var l=!0;break b}}catch(N){}l=!1}l?(W&&W(),c=!0):c=!1}else c=
!1;c||fzI(y,W)}};
fzI=function(y,W,c){c=c===void 0?{}:c;var Z=new Image,G=""+zWH++;YH1[G]=Z;Z.onload=Z.onerror=function(){W&&YH1[G]&&W();delete YH1[G]};
c.scrubReferrer&&(Z.referrerPolicy="no-referrer");Z.src=y};
VJ=function(y,W){miH(y,W==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
s9I=function(y){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?y+"&nis=6":y+"&nis=5"};
uxI=function(y){if(!y)return!1;try{var W;if(((W=_.AW(y))==null?void 0:W.asm)==="4")return!0}catch(c){_.pj(c)}return!1};
miH=function(y,W){W?(y=s9I(y),_.Jv(y,void 0,void 0,void 0,"",!0,!0)):_.Jv(y)};
n0f=function(){tlH||(tlH=new _.EW("yt.offline"));return tlH};
XhE=function(y){if(_.O("offline_error_handling")){var W=n0f().get("errors",!0)||{};W[y.message]={name:y.name,stack:y.stack};y.level&&(W[y.message].level=y.level);n0f().set("errors",W,2592E3,!0)}};
r3y=function(y,W,c,Z){Z=Z===void 0?!1:Z;W=_.O("web_fp_via_jspb")?Object.assign({},W):W;_.O("use_cfr_monitor")&&bNI(y,W);if(_.O("use_request_time_ms_header"))W.headers&&Sy(y)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Tj)())));else{var G;if((G=W.postParams)==null?0:G.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,_.Tj)())}c&&Object.keys(W).length===0?_.Jv(y):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),IVD(y,W.postBody,
W,_.ZP,Z)):IVD(y,JSON.stringify(W.postParams),W,AE1,Z):_.ZP(y,W)};
FIH=function(y,W){_.O("use_event_time_ms_header")&&Sy(y)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Tj)())));return W};
_.$if=function(){UiD||(UiD=new _.CX({logOfflineErrors:!0,enablePolling:!0}));return UiD};
bNI=function(y,W){var c=W.onError?W.onError:function(){};
W.onError=function(G,D){QJ().requestComplete(y,!1);c(G,D)};
var Z=W.onSuccess?W.onSuccess:function(){};
W.onSuccess=function(G,D){QJ().requestComplete(y,!0);Z(G,D)}};
_.KIH=function(){return _.vI(document.location.toString())!=="www.youtube-nocookie.com"};
_.RWg=function(){return _.JW("ytNetworklessLoggingInitializationOptions")?_.ONI.isNwlInitialized:_.g0h};
lzO=function(y,W){if(_.O("polymer_on_demand_shady_dom")){var c;var Z=(c=y.__shady_native_firstElementChild)!=null?c:y.firstElementChild}else Z=y.firstElementChild;for(;Z;){if(y=W(Z)?Z:lzO(Z,W))return y;Z=Z.nextElementSibling}return null};
NZH=function(){var y=document;if("visibilityState"in y)return y.visibilityState;var W=E0h+"VisibilityState";if(W in y)return y[W]};
_.IzO=function(y,W){var c;Av(y,function(Z){c=W[Z];return!!c});
return c};
_.Bn=function(y){var W=pha(y);W?W.focus():_.hv(y)};
pha=function(y){return(y=lzO(y,function(W){return _.Hn(W)?Pst(W)&&!!W.offsetParent:!1}))?y:null};
_.hv=function(y,W){y.hasAttribute("tabindex")||y.setAttribute("tabindex","-1");y.focus(W)};
J3H=function(y,W,c,Z){Z=Z===void 0?{}:Z;y.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return _.Eb.findKey(LX,function(G){var D=typeof G[4]==="boolean"&&G[4]==!!Z,Y=_.q1(G[4])&&_.q1(Z)&&_.Eb.equals(G[4],Z);return!!G.length&&G[0]==y&&G[1]==W&&G[2]==c&&(D||Y)})};
_.SS=function(y,W,c,Z){Z=Z===void 0?{}:Z;if(!y||!y.addEventListener&&!y.attachEvent)return"";var G=J3H(y,W,c,Z);if(G)return G;G=++VlI.count+"";var D=!(W!="mouseenter"&&W!="mouseleave"||!y.addEventListener||"onmouseenter"in document);var Y=D?function(u){u=new vn(u);if(!_.CP(u.relatedTarget,function(t){return t==y},!0))return u.currentTarget=y,u.type=W,c.call(y,u)}:function(u){u=new vn(u);
u.currentTarget=y;return c.call(y,u)};
Y=_.PI(Y);y.addEventListener?(W=="mouseenter"&&D?W="mouseover":W=="mouseleave"&&D?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),CsI()||typeof Z==="boolean"?y.addEventListener(W,Y,Z):y.addEventListener(W,Y,!!Z.capture)):y.attachEvent("on"+W,Y);LX[G]=[y,W,c,Y,Z];return G};
_.A3w=function(y,W,c){var Z=Z===void 0?{}:Z;var G=_.SS(y,W,function(){_.Q9O(G);c.apply(y,arguments)},Z)};
_.Q9O=function(y){y&&(typeof y=="string"&&(y=[y]),_.Qa(y,function(W){if(W in LX){var c=LX[W],Z=c[0],G=c[1],D=c[3];c=c[4];Z.removeEventListener?CsI()||typeof c==="boolean"?Z.removeEventListener(G,D,c):Z.removeEventListener(G,D,!!c.capture):Z.detachEvent&&Z.detachEvent("on"+G,D);delete LX[W]}}))};
TM=function(y){this.callback_=y;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(y=0;y<4;y++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.SS(window,"mousemove",(0,_.$r)(this.onMouseMove_,this));this.timerId_=_.y2((0,_.$r)(this.checkPosition_,this),25)};
BZh=function(){var y={};var W=y.preferMobileEvents===void 0?!1:y.preferMobileEvents;y=y.enableScrollEventListener===void 0?!0:y.enableScrollEventListener;if(_.JW("_lact",window)==null){var c=parseInt(_.Nn("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;_.LR("_lact",c,window);_.LR("_fact",c,window);c==-1&&_.iz();_.SS(document,"keydown",_.iz);_.SS(document,"keyup",_.iz);_.SS(document,"mousedown",_.iz);_.SS(document,"mouseup",_.iz);W?_.SS(window,"touchmove",function(){hWO("touchmove",200)},{passive:!0}):
(_.SS(window,"resize",function(){hWO("resize",200)}),y&&_.SS(window,"scroll",function(){hWO("scroll",200)}));
new TM(function(){hWO("mouse",100)});
_.SS(document,"touchstart",_.iz,{passive:!0});_.SS(document,"touchend",_.iz,{passive:!0})}};
hWO=function(y,W){HNy[y]||(HNy[y]=!0,_.KX.addLowPriorityJob(function(){_.iz();HNy[y]=!1},W))};
_.iz=function(){_.JW("_lact",window)==null&&BZh();var y=Date.now();_.LR("_lact",y,window);_.JW("_fact",window)==-1&&_.LR("_fact",y,window);(y=_.JW("ytglobal.ytUtilActivityCallback_"))&&y()};
_.MV=function(){var y=_.JW("_lact",window);return y==null?-1:Math.max(Date.now()-y,0)};
_.k2=function(y,W,c){var Z=_.eS();if(Z&&W){var G=Z.subscribe(y,function(){var D=arguments,Y=function(){wX[G]&&W.apply&&typeof W.apply=="function"&&W.apply(c||window,D)};
try{_.LII[y]?Y():_.j5(Y,0)}catch(u){_.pj(u)}},c);
wX[G]=!0;qV[y]||(qV[y]=[]);qV[y].push(G);return G}return 0};
_.v0H=function(y){var W=_.eS();W&&(typeof y==="number"?y=[y]:typeof y==="string"&&(y=[parseInt(y,10)]),_.Qa(y,function(c){W.unsubscribeByKey(c);delete wX[c]}))};
_.diI=function(y,W){var c=_.eS();c&&c.publish.apply(c,arguments)};
_.TZw=function(y){var W=_.eS();if(W)if(W.clear(y),y)SH1(y);else for(var c in qV)SH1(c)};
_.eS=function(){return _.DH.ytPubsubPubsubInstance};
SH1=function(y){qV[y]&&(y=qV[y],_.Qa(y,function(W){wX[W]&&delete wX[W]}),y.length=0)};
azI=function(){var y,W;return"h5vcc"in ju&&((y=ju.h5vcc.traceEvent)==null?0:y.traceBegin)&&((W=ju.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in ju&&ju.performance.mark&&ju.performance.measure?2:0};
iNf=function(y){var W=azI();switch(W){case 1:ju.h5vcc.traceEvent.traceBegin("YTLR",y);break;case 2:ju.performance.mark(y+"-start");break;case 0:break;default:_.d2(W,"unknown trace type")}};
Mlh=function(y){var W=azI();switch(W){case 1:ju.h5vcc.traceEvent.traceEnd("YTLR",y);break;case 2:W=y+"-start";var c=y+"-end";ju.performance.mark(c);ju.performance.measure(y,W,c);break;case 0:break;default:_.d2(W,"unknown trace type")}};
eWD=function(y){var W,c;(c=(W=window).onerror)==null||c.call(W,y.message,"",0,0,y)};
whI=function(y){if(_.O("web_lifecycle_error_handling_killswitch"))return y();try{return y()}catch(W){eWD(W)}};
qHH=function(y){return[y.auth===void 0?"undefined":y.auth,y.isJspb===void 0?"undefined":y.isJspb,y.cttAuthInfo===void 0?"undefined":y.cttAuthInfo,y.tier===void 0?"undefined":y.tier].join("/")};
_.g=function(y,W){if(y)return y[W.name]};
_.y8=function(y){return y};
cO=function(){var y=_.JW("yt.logging.ims");y||(y=new WO,_.LR("yt.logging.ims",y));return y};
oxh=function(y,W){if(y.endpoint==="log_event"){kPg(y);var c=jLw(y),Z=y7H(y.payload)||"",G=W$w(Z),D=200;if(G){if(G.enabled===!1&&!_.O("web_payload_policy_disabled_killswitch"))return;D=c7g(G.tier);if(D===400){Zxw(y,W);return}}ZJ[c]=!0;c={cttAuthInfo:c,isJspb:!1,tier:D};cO().storePayload(c,y.payload);GbH(W,!1,c,faH(Z))}};
zUh=function(y,W,c){if(W.endpoint==="log_event"){kPg(void 0,W);var Z=jLw(W,!0),G=W$w(y),D=200;if(G){if(G.enabled===!1&&!_.O("web_payload_policy_disabled_killswitch"))return;D=c7g(G.tier);if(D===400){Duh(y,W,c);return}}ZJ[Z]=!0;Z={cttAuthInfo:Z,isJspb:!0,tier:D};cO().storePayload(Z,RH(W.payload));GbH(c,!0,Z,faH(y))}};
GbH=function(y,W,c,Z){W=W===void 0?!1:W;Z=Z===void 0?!1:Z;y&&(G5=new y);y=_.ey("tvhtml5_logging_max_batch_ads_fork")||_.ey("tvhtml5_logging_max_batch")||_.ey("web_logging_max_batch")||100;var G=(0,_.Tj)(),D=YeH(W,c.tier),Y=D.lastDebounceQueueFromLogTimeMs;Z&&(D.useVideoStatsEndPoint=!0);Z=0;c&&(Z=cO().getSequenceCount(c));var u=function(){muI({writeThenSend:!0},W,c.tier)};
Z>=1E3?u():Z>=y?sLO||(sLO=uPg(function(){u();sLO=void 0},0)):G-Y>=10&&(t9h(W,c.tier),D.lastDebounceQueueFromLogTimeMs=G)};
Zxw=function(y,W){if(y.endpoint==="log_event"){_.O("more_accurate_gel_parser")&&cO().storePayload({isJspb:!1},y.payload);kPg(y);var c=jLw(y),Z=new Map;Z.set(c,[y.payload]);var G=y7H(y.payload)||"";W&&(G5=new W);return new _.fD(function(D,Y){G5&&G5.isReady()?nx1(Z,G5,D,Y,{bypassNetworkless:!0},!0,faH(G)):D()})}};
Duh=function(y,W,c){if(W.endpoint==="log_event"){kPg(void 0,W);var Z=jLw(W,!0),G=new Map;G.set(Z,[RH(W.payload)]);c&&(G5=new c);return new _.fD(function(D){G5&&G5.isReady()?XFa(G,G5,D,{bypassNetworkless:!0},!0,faH(y)):D()})}};
jLw=function(y,W){var c="";if(y.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(y.cttAuthInfo){if(W===void 0?0:W){W=y.cttAuthInfo.token;c=y.cttAuthInfo;var Z=new bxE;c.videoId?Z.setVideoId(c.videoId):c.playlistId&&os(Z,2,r7h,u9(c.playlistId));F$f[W]=Z}else W=y.cttAuthInfo,c={},W.videoId?c.videoId=W.videoId:W.playlistId&&(c.playlistId=W.playlistId),Uuh[y.cttAuthInfo.token]=c;c=y.cttAuthInfo.token}return c};
muI=function(y,W,c){y=y===void 0?{}:y;W=W===void 0?!1:W;new _.fD(function(Z,G){var D=YeH(W,c),Y=D.useVideoStatsEndPoint;D.useVideoStatsEndPoint=!1;$uh(D.queueTimer);$uh(D.queueMaxTimer);D.queueMaxTimer=0;G5&&G5.isReady()?c===void 0&&_.O("enable_web_tiered_gel")?K$w(Z,G,y,W,300,Y):K$w(Z,G,y,W,c,Y):(t9h(W,c),Z())})};
K$w=function(y,W,c,Z,G,D){var Y=G5;c=c===void 0?{}:c;Z=Z===void 0?!1:Z;G=G===void 0?200:G;D=D===void 0?!1:D;var u=new Map,t=new Map,b={isJspb:Z,cttAuthInfo:void 0,tier:G},r={isJspb:Z,cttAuthInfo:void 0};if(Z){W=_.z(Object.keys(ZJ));for(G=W.next();!G.done;G=W.next())G=G.value,t=_.O("enable_web_tiered_gel")?cO().smartExtractMatchingEntries({keys:[b,r],sizeLimit:1E3}):cO().extractMatchingEntries({isJspb:!0,cttAuthInfo:G}),t.length>0&&u.set(G,t),(_.O("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.O("web_fp_via_jspb_and_json"))&&
delete ZJ[G];XFa(u,Y,y,c,!1,D)}else{u=_.z(Object.keys(ZJ));for(b=u.next();!b.done;b=u.next())b=b.value,r=_.O("enable_web_tiered_gel")?cO().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:b,tier:G},{isJspb:!1,cttAuthInfo:b}],sizeLimit:1E3}):cO().extractMatchingEntries({isJspb:!1,cttAuthInfo:b}),r.length>0&&t.set(b,r),(_.O("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.O("web_fp_via_jspb_and_json"))&&delete ZJ[b];nx1(t,Y,y,W,c,!1,D)}};
t9h=function(y,W){y=y===void 0?!1:y;W=W===void 0?200:W;var c=function(){muI({writeThenSend:!0},y,W)},Z=YeH(y,W),G=Z===OxO||Z===gxa?5E3:RUH;
_.O("web_gel_timeout_cap")&&!Z.queueMaxTimer&&(G=uPg(function(){c()},G),Z.queueMaxTimer=G);
$uh(Z.queueTimer);G=_.Nn("LOGGING_BATCH_TIMEOUT",_.ey("web_gel_debounce_ms",1E4));_.O("shorten_initial_gel_batch_timeout")&&laE&&(G=ExH);G=uPg(function(){_.ey("gel_min_batch_size")>0?cO().getSequenceCount({cttAuthInfo:void 0,isJspb:y,tier:W})>=NIw&&c():c()},G);
Z.queueTimer=G};
nx1=function(y,W,c,Z,G,D,Y){G=G===void 0?{}:G;var u=Math.round((0,_.Tj)()),t=y.size,b=IaF(Y);y=_.z(y);var r=y.next();for(Y={};!r.done;Y={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},r=y.next()){var F=_.z(r.value);r=F.next().value;F=F.next().value;Y.batchRequest=_.Eb.unsafeClone({context:_.o$I(W.config_||_.x7())});if(!_.TO(F)&&!_.O("throw_err_when_logevent_malformed_killswitch")){Z();break}Y.batchRequest.events=F;
(F=Uuh[r])&&pFH(Y.batchRequest,r,F);delete Uuh[r];Y.dangerousLogToVisitorSession=r==="visitorOnlyApprovedKey";Pvt(Y.batchRequest,u,Y.dangerousLogToVisitorSession);J71(G);Y.onSuccess$jscomp$3=function(K){_.O("start_client_gcf")&&_.KX.addLowPriorityJob(function(){return _.m(function(l){return _.n(l,V9H(K),0)})});
t--;t||c()};
Y.networkFailures=0;Y.onError$jscomp$5=function(K){return function(){K.networkFailures++;if(G.bypassNetworkless&&K.networkFailures===1)try{vmH(W,b,K.batchRequest,Cvf({writeThenSend:!0},K.dangerousLogToVisitorSession,K.onSuccess$jscomp$3,K.onError$jscomp$5,D)),laE=!1}catch(l){_.pj(l),Z()}t--;t||c()}}(Y);
try{vmH(W,b,Y.batchRequest,Cvf(G,Y.dangerousLogToVisitorSession,Y.onSuccess$jscomp$3,Y.onError$jscomp$5,D)),laE=!1}catch(K){_.pj(K),Z()}}};
XFa=function(y,W,c,Z,G,D){Z=Z===void 0?{}:Z;var Y=Math.round((0,_.Tj)()),u={value:y.size},t=new Map([].concat(_.No(y)));t=_.z(t);for(var b=t.next();!b.done;b=t.next()){var r=_.z(b.value).next().value,F=y.get(r);b=new QLH;var K=W.config_||_.x7(),l=new DJ,N=new A7f;_.Ub(N,1,K.innertubeContextHostLanguage);_.Ub(N,2,K.innertubeContextGeoLocation);_.MC(N,16,K.innertubeContextClientNameFieldNumber);_.Ub(N,17,K.innertubeContextClientVersion);if(K.innertubeContextClientConfigInfo){var P=K.innertubeContextClientConfigInfo,
V=new wr;P.coldConfigData&&_.Ub(V,1,P.coldConfigData);P.appInstallData&&_.Ub(V,6,P.appInstallData);P.coldHashData&&_.Ub(V,3,P.coldHashData);P.hotHashData&&V.setHotHashData(P.hotHashData);_.uF(N,62,V)}(P=_.DH.devicePixelRatio)&&P!=1&&_.e5(N,65,_.SV(P));P=Olt();P!==""&&_.Ub(N,54,P);P=gA1();if(P.length>0){V=new hU1;for(var Q=0;Q<P.length;Q++){var S=new z5;S.setKey(P[Q].key);os(S,2,BIw,u9(P[Q].value));Yg(V,15,z5,S)}_.uF(l,5,V)}yqH(K,N);Wvg(l);cqf(N);ZZg(K,N);G2H(N);_.O("start_client_gcf")&&flw(N);_.Nn("DELEGATED_SESSION_ID")&&
!_.O("pageid_as_header_web")&&(K=new ms,_.Ub(K,3,_.Nn("DELEGATED_SESSION_ID")));!_.O("fill_delegate_context_in_gel_killswitch")&&(P=_.Nn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(V=_.il(l,ms,3)||new ms,K=l,P=_.Ub(V,18,P),_.uF(K,3,P));K=N;P=_.z(Object.entries(_.AW(_.Nn("DEVICE",""))));for(V=P.next();!V.done;V=P.next())Q=_.z(V.value),V=Q.next().value,Q=Q.next().value,V==="cbrand"?_.Ub(K,12,Q):V==="cmodel"?_.Ub(K,13,Q):V==="cbr"?_.Ub(K,87,Q):V==="cbrver"?_.Ub(K,88,Q):V==="cos"?_.Ub(K,18,
Q):V==="cosver"?_.Ub(K,19,Q):V==="cplatform"&&_.MC(K,42,kGh(Q));l.setClient(N);_.uF(b,1,l);if(N=F$f[r])a:{if(_.sR(N,sP(N,r7h,1)))l=1;else if(N.getPlaylistId())l=2;else break a;_.uF(b,4,N);N=b.getContext()||new DJ;K=_.il(N,ms,3)||new ms;P=new ut;P.setToken(r);_.MC(P,1,l);Yg(K,12,ut,P);_.uF(N,3,K)}delete F$f[r];r=r==="visitorOnlyApprovedKey";Hxg()||_.tc(b,2,Y);!r&&(l=_.Nn("EVENT_ID"))&&(N=L$F(),K=new vxf,_.Ub(K,1,l),_.tc(K,2,N),_.uF(b,5,K));J71(Z);if(_.O("jspb_serialize_with_worker")&&(l=_.b6y())&&
Z.writeThenSend){_.duf.set(SeH,{client:W,resolve:c,networklessOptions:Z,isIsolated:G,useVSSEndpoint:D,dangerousLogToVisitorSession:r,requestsOutstanding:u});l.postMessage({op:"gelBatchToSerialize",batchRequest:RH(b),clientEvents:F,key:SeH});SeH++;break}if(F){l=[];for(N=0;N<F.length;N++)try{l.push(new nD(F[N]))}catch(cy){_.pj(new _.ul("Transport failed to deserialize "+String(F[N])))}F=l}else F=[];F=_.z(F);for(l=F.next();!l.done;l=F.next())Yg(b,3,nD,l.value);F={startTime:(0,_.Tj)(),ticks:{},infos:{}};
b=b.serialize();F.ticks.geljspc=(0,_.Tj)();_.O("log_jspb_serialize_latency")&&s5I("gel_jspb_serialize",F,{sampleRate:.1});_.TIh(b,W,c,Z,G,D,r,u)}};
_.TIh=function(y,W,c,Z,G,D,Y,u){Z=Z===void 0?{}:Z;u=u===void 0?{value:0}:u;D=IaF(D);Z=Cvf(Z,Y,function(t){_.O("start_client_gcf")&&_.KX.addLowPriorityJob(function(){return _.m(function(b){return _.n(b,V9H(t),0)})});
u.value--;u.value||c()},function(){u.value--;
u.value||c()},G);
Z.headers["Content-Type"]="application/json+protobuf";Z.postBodyFormat="JSPB";Z.postBody=y;vmH(W,D,"",Z);laE=!1};
J71=function(y){_.O("always_send_and_write")&&(y.writeThenSend=!1)};
Cvf=function(y,W,c,Z,G){y={retry:!0,onSuccess:c,onError:Z,networklessOptions:y,dangerousLogToVisitorSession:W,bypassMonitoring:!!G,headers:{},postBodyFormat:"",postBody:"",compress:_.O("compress_gel")||_.O("compress_gel_lr")};Hxg()&&(y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Tj)())));return y};
Pvt=function(y,W,c){Hxg()||(y.requestTimeMs=String(W));_.O("unsplit_gel_payloads_in_logs")&&(y.unsplitGelPayloadsInLogs=!0);!c&&(W=_.Nn("EVENT_ID"))&&(c=L$F(),y.serializedClientEventId={serializedEventId:W,clientCounter:String(c)})};
L$F=function(){var y=_.Nn("BATCH_CLIENT_COUNTER")||0;y||(y=Math.floor(Math.random()*65535/2));y++;y>65535&&(y=1);_.l1("BATCH_CLIENT_COUNTER",y);return y};
pFH=function(y,W,c){if(c.videoId)var Z="VIDEO";else if(c.playlistId)Z="PLAYLIST";else return;y.credentialTransferTokenTargetId=c;y.context=y.context||{};y.context.user=y.context.user||{};y.context.user.credentialTransferTokens=[{token:W,scope:Z}]};
kPg=function(y,W){var c=_.wj("il_payload_scraping")==="enable_il_payload_scraping";if(!_.JW("yt.logging.transport.enableScrapingForTest"))if(c)aaf=[],_.LR("yt.logging.transport.enableScrapingForTest",!0),_.LR("yt.logging.transport.scrapedPayloadsForTesting",aaf),_.LR("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.LR("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.LR("yt.logging.transport.scrapeClientEvent",!0);else return;c=_.JW("yt.logging.transport.scrapedPayloadsForTesting");var Z=_.JW("yt.logging.transport.payloadToScrape");W&&(W=_.JW("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W.payload)())&&c.push(W);W=_.JW("yt.logging.transport.scrapeClientEvent");if(Z&&Z.length>=1)for(var G=0;G<Z.length;G++)if(y&&y.payload[Z[G]])if(W)c.push(y.payload);else{var D=void 0;c.push(((D=y)==null?void 0:D.payload)[Z[G]])}_.LR("yt.logging.transport.scrapedPayloadsForTesting",
c)};
Hxg=function(){return _.O("use_request_time_ms_header")||_.O("lr_use_request_time_ms_header")};
uPg=function(y,W){return _.O("transport_use_scheduler")===!1?_.j5(y,W):_.O("logging_avoid_blocking_during_navigation")||_.O("lr_logging_avoid_blocking_during_navigation")?_.Xc(_.KX,function(){if(_.xu1().currentState==="none")y();else{var c={};_.xu1().install((c.none={callback:y},c))}},W):_.Xc(_.KX,y,W)};
$uh=function(y){_.O("transport_use_scheduler")?_.KX.cancelJob(y):_.W7(y)};
V9H=function(y){var W,c,Z,G,D,Y,u,t,b,r;return _.m(function(F){return F.nextAddress==1?(Z=(W=y)==null?void 0:(c=W.responseContext)==null?void 0:c.globalConfigGroup,G=_.g(Z,ixg),Y=(D=Z)==null?void 0:D.hotHashData,u=_.g(Z,M9O),b=(t=Z)==null?void 0:t.coldHashData,(r=_.U().resolve(_.xN(bt)))?Y?G?_.n(F,eUI(r,Y,G),2):_.n(F,eUI(r,Y),2):F.jumpTo(2):F.return()):b?u?_.n(F,wFy(r,b,u),0):_.n(F,wFy(r,b),0):F.jumpTo(0)})};
YeH=function(y,W){W=W===void 0?200:W;return y?W===300?OxO:qe1:W===300?gxa:kba};
W$w=function(y){if(_.O("enable_web_tiered_gel")){y=j3g[y||""];var W,c,Z,G=_.U().resolve(_.xN(bt))==null?void 0:(W=yzO())==null?void 0:(c=W.loggingHotConfig)==null?void 0:(Z=c.eventLoggingConfig)==null?void 0:Z.payloadPolicies;if(G)for(W=0;W<G.length;W++)if(G[W].payloadNumber===y)return G[W]}};
y7H=function(y){y=Object.keys(y);y=_.z(y);for(var W=y.next();!W.done;W=y.next())if(W=W.value,j3g[W])return W};
c7g=function(y){switch(y){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}};
faH=function(y){return y==="gelDebuggingEvent"};
IaF=function(y){return(y===void 0?0:y)&&_.O("vss_through_gel_video_stats")?"video_stats":"log_event"};
Fc=function(y,W,c,Z){Z=Z===void 0?{}:Z;var G={},D=Math.round(Z.timestamp||(0,_.Tj)());G.eventTimeMs=D<Number.MAX_SAFE_INTEGER?D:0;G[y]=W;y=_.MV();G.context={lastActivityMs:String(Z.timestamp||!isFinite(y)?-1:y)};Z.sequenceGroup&&!_.O("web_gel_sequence_info_killswitch")&&(y=G.context,W=Z.sequenceGroup,W={index:Wla(W),groupKey:W},y.sequence=W,Z.endOfSequence&&delete rC[Z.sequenceGroup]);(Z.sendIsolatedPayload?Zxw:oxh)({endpoint:"log_event",payload:G,cttAuthInfo:Z.cttAuthInfo,dangerousLogToVisitorSession:Z.dangerousLogToVisitorSession},
c)};
Wla=function(y){rC[y]=y in rC?rC[y]+1:0;return rC[y]};
_.$g=function(y,W,c){c=c===void 0?{}:c;var Z=UP;_.I8("ytLoggingEventsDefaultDisabled",!1)&&UP===UP&&(Z=null);Fc(y,W,Z,c)};
_.KD=function(){if(_.O("web_fp_via_jspb")){var y=!0;y=y===void 0?!1:y;var W=czf;czf=[];if(W){W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,y?Fc(c.payloadName,c.payload,UP,c.options):_.$g(c.payloadName,c.payload,c.options)}muI(void 0,!0);if(!_.O("web_fp_via_jspb_and_json"))return}muI(void 0,!1)};
GZf=function(y,W){var c;if((c=W)==null?0:c.componentStack)return W;if(y=y.componentStack)W||(W={}),W.componentStack=Zpa(y);return W};
Zpa=function(y){return y.slice(0,void 0).map(function(W){return W.name}).join(" > ")};
fxh=function(){_.Qa(_.Nn("ERRORS")||[],function(y){_.OP.apply(null,y)});
_.l1("ERRORS",[])};
_.gC=function(y){_.OP(y)};
_.Rs=function(y){_.OP(y,"WARNING")};
oYt=function(y){y instanceof Error?_.OP(y):(y=_.q1(y)?JSON.stringify(y):String(y),y=new _.ul(y),y.name="RejectedPromiseError",_.Rs(y))};
D8F=function(y,W,c,Z,G,D){W=W===void 0?"Unknown file":W;c=c===void 0?0:c;var Y=!1,u=ZlH("log_window_onerror_fraction");if(u&&Math.random()<u)Y=!0;else{u=document.getElementsByTagName("script");for(var t=0,b=u.length;t<b;t++)if(u[t].src.indexOf("/debug-")>0){Y=!0;break}}Y&&(Y=!1,G?Y=!0:(typeof y==="string"?u=y:ErrorEvent&&y instanceof ErrorEvent?(Y=!0,u=y.message,W=y.filename,c=y.lineno,Z=y.colno):(u="Unknown error",W="Unknown file",c=0),G=new _.ul(u),G.name="UnhandledWindowError",G.message=u,G.fileName=
W,G.lineNumber=c,isNaN(Z)?delete G.columnNumber:G.columnNumber=Z),_.O("wiz_enable_component_stack_propagation_killswitch")||(D=GZf(G,D)),D&&_.NF(G,D),Y?_.OP(G):_.Rs(G))};
_.OP=function(y,W,c,Z,G,D,Y,u){D=D===void 0?{}:D;D.name=c||_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME",1);D.version=Z||_.Nn("INNERTUBE_CONTEXT_CLIENT_VERSION");c=D;W=W===void 0?"ERROR":W;Y=Y===void 0?!1:Y;W=W===void 0?"ERROR":W;Y=Y===void 0?!1:Y;if(y&&(y.hasOwnProperty("level")&&y.level&&(W=y.level),_.O("console_log_js_exceptions")&&(Z=[],Z.push("Name: "+y.name),Z.push("Message: "+y.message),y.hasOwnProperty("params")&&Z.push("Error Params: "+JSON.stringify(y.params)),y.hasOwnProperty("args")&&Z.push("Error args: "+
JSON.stringify(y.args)),Z.push("File name: "+y.fileName),Z.push("Stacktrace: "+y.stack),Z=Z.join("\n"),window.console.log(Z,y)),!(zNO>=5))){Z=[];G=_.z(YVE);for(D=G.next();!D.done;D=G.next()){D=D.value;try{D()&&Z.push(D())}catch(V){}}Z=[].concat(_.No(m8a),_.No(Z));var t=s3a(y);G=t.message||"Unknown Error";D=t.name||"UnknownError";var b=t.stack||y.stacktrace||"Not available";if(b.startsWith(D+": "+G)){var r=b.split("\n");r.shift();b=r.join("\n")}r=t.lineNumber||"Not available";t=t.fileName||"Not available";
var F=0;if(y.hasOwnProperty("args")&&y.args&&y.args.length)for(var K=0;K<y.args.length&&!(F=qcI(y.args[K],"params."+K,c,F),F>=500);K++);else if(y.hasOwnProperty("params")&&y.params){var l=y.params;if(typeof y.params==="object")for(K in l){if(l[K]){var N="params."+K,P=oS(l[K]);c[N]=P;F+=N.length+P.length;if(F>500)break}}else c.params=oS(l)}if(Z.length)for(K=0;K<Z.length&&!(F=qcI(Z[K],"params.context."+K,c,F),F>=500);K++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);
K={message:G,name:D,lineNumber:r,fileName:t,stack:b,params:c,sampleWeight:1};c=Number(y.columnNumber);isNaN(c)||(K.lineNumber=K.lineNumber+":"+c);if(y.level==="IGNORED")y=0;else a:{y=u5a();c=_.z(y.messageWeights);for(Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,K.message&&K.message.match(Z.messageRegExp)){y=Z.weight;break a}y=_.z(y.callbackWeights);for(c=y.next();!c.done;c=y.next())if(c=c.value,c.callback(K)){y=c.weight;break a}y=1}K.sampleWeight=y;y=_.z(t8h);for(c=y.next();!c.done;c=y.next())if(c=
c.value,c.patternsForType[K.name])for(G=_.z(c.patternsForType[K.name]),Z=G.next();!Z.done;Z=G.next())if(D=Z.value,Z=K.message.match(D.regexp)){K.params["params.error.original"]=Z[0];G=D.groups;D={};for(r=0;r<G.length;r++)D[G[r]]=Z[r+1],K.params["params.error."+G[r]]=Z[r+1];K.message=c.messageFn(D);break}K.params||(K.params={});y=u5a();K.params["params.errorServiceSignature"]="msg="+y.messageWeights.length+"&cb="+y.callbackWeights.length;K.params["params.serviceWorker"]="false";_.DH.document&&_.DH.document.querySelectorAll&&
(K.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Is(nYI,"sample")).constructor!==Is&&(K.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(K);if(K.sampleWeight!==0&&!XGI.has(K.message)){if(Y&&_.O("web_enable_error_204"))bpt(W===void 0?"ERROR":W,K);else{W=W===void 0?"ERROR":W;W==="ERROR"?(rzD.publish("handleError",K),_.O("record_app_crashed_web")&&Flf===0&&K.sampleWeight===1&&(Flf++,Y={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.O("report_client_error_with_app_crash_ks")||(Y.systemHealth={crashData:{clientError:{logMessage:{message:K.message}}}}),_.$g("appCrashed",Y)),U8y++):W==="WARNING"&&rzD.publish("handleWarning",K);if(_.O("kevlar_gel_error_routing")){Y=W;u=u===void 0?{}:u;b:{y=_.z($8f);for(c=y.next();!c.done;c=y.next())if(gr(c.value.toLowerCase())){y=!0;break b}y=!1}if(y)u=void 0;else{c={stackTrace:K.stack};K.fileName&&(c.filename=K.fileName);y=K.lineNumber&&K.lineNumber.split?K.lineNumber.split(":"):[];y.length!==
0&&(y.length!==1||isNaN(Number(y[0]))?y.length!==2||isNaN(Number(y[0]))||isNaN(Number(y[1]))||(c.lineNumber=Number(y[0]),c.columnNumber=Number(y[1])):c.lineNumber=Number(y[0]));y={level:"ERROR_LEVEL_UNKNOWN",message:K.message,errorClassName:K.name,sampleWeight:K.sampleWeight};Y==="ERROR"?y.level="ERROR_LEVEL_ERROR":Y==="WARNING"&&(y.level="ERROR_LEVEL_WARNNING");c={isObfuscated:!0,browserStackInfo:c};u.pageUrl=window.location.href;u.kvPairs=[];_.Nn("FEXP_EXPERIMENTS")&&(u.experimentIds=_.Nn("FEXP_EXPERIMENTS"));
Z=_.Nn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!ZlH("web_disable_gel_stp_ecatcher_killswitch")&&Z)for(G=_.z(Object.keys(Z)),D=G.next();!D.done;D=G.next())D=D.value,u.kvPairs.push({key:D,value:String(Z[D])});if(Z=K.params)for(G=_.z(Object.keys(Z)),D=G.next();!D.done;D=G.next())D=D.value,u.kvPairs.push({key:"client."+D,value:String(Z[D])});Z=_.Nn("SERVER_NAME");G=_.Nn("SERVER_VERSION");Z&&G&&(u.kvPairs.push({key:"server.name",value:Z}),u.kvPairs.push({key:"server.version",value:G}));u={errorMetadata:u,
stackTrace:c,logMessage:y}}u&&(_.$g("clientError",u),(Y==="ERROR"||_.O("errors_flush_gel_always_killswitch"))&&_.KD())}_.O("suppress_error_204_logging")||bpt(W,K)}try{XGI.add(K.message)}catch(V){}zNO++}}};
bpt=function(y,W){var c=W.params||{};y={urlParams:{a:"logerror",t:"jserror",type:W.name,msg:W.message.substr(0,250),line:W.lineNumber,level:y,"client.name":c.name},postParams:{url:_.Nn("PAGE_NAME",window.location.href),file:W.fileName},method:"POST"};c.version&&(y["client.version"]=c.version);if(y.postParams){W.stack&&(y.postParams.stack=W.stack);W=_.z(Object.keys(c));for(var Z=W.next();!Z.done;Z=W.next())Z=Z.value,y.postParams["client."+Z]=c[Z];if(c=_.Nn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(W=
_.z(Object.keys(c)),Z=W.next();!Z.done;Z=W.next())Z=Z.value,y.postParams[Z]=c[Z];(c=_.Nn("LAVA_VERSION"))&&(y.postParams["lava.version"]=c);c=_.Nn("SERVER_NAME");W=_.Nn("SERVER_VERSION");c&&W&&(y.postParams["server.name"]=c,y.postParams["server.version"]=W)}_.ZP(_.Nn("ECATCHER_REPORT_HOST","")+"/error_204",y)};
_.KlH=function(y,W){W=W===void 0?"ERROR":W;var c=c===void 0?{}:c;var Z=_.JW("ytbin.polymer.shared.lib.tampering.info");Z&&(Z=Z())&&(c["params.tamperingInfo"]=Z.sort().join(","));_.OP(y,W,void 0,void 0,!0,c)};
_.NF=function(y){var W=_.Cf.apply(1,arguments);y.args||(y.args=[]);Array.isArray(y.args)&&y.args.push.apply(y.args,_.No(W))};
Op1=function(y){y.level="IGNORED"};
gYy=function(y,W){m8a.push(y);W();m8a.pop()};
PO=function(y,W){for(var c in W)W.hasOwnProperty(c)&&(y=_.pD(y,c,W[c]));return y};
_.RNO=function(y,W,c){c=c===void 0?!1:c;if(!y)return null;if(y.adInfoDialogEndpoint||y.backstageImageUploadEndpoint||y.confirmDialogEndpoint||y.clientActionEndpoint||y.createBackstagePostDialogEndpoint||y.createCommentReplyDialogEndpoint||y.flowEndpoint||y.guideBuilderEndpoint||y.liveChatDialogEndpoint||y.modalEndpoint||y.openPopupAction||y.shareEndpoint||y.shareEntityEndpoint||y.showLiveChatItemEndpoint||y.subscriptionManagerEndpoint||y.unlimitedCreateFamilyEndpoint||y.unlimitedFamilyFlowEndpoint||
y.updateCommentDialogEndpoint||y.updateCommentReplyDialogEndpoint||y.userFeedbackEndpoint||y.videoEditorEndpoint||y.ypcCancelSurveyEndpoint)return W=_.ey("polymer_report_client_url_requested_rate"),!c&&Math.random()<W&&_.Rs(new _.ul("urlForEndpoint used on client endpoint",y)),null;var Z=_.ey("polymer_report_missing_web_navigation_endpoint_rate");if(y.liveChatEndpoint||y.liveChatReplayEndpoint)Z=0;if(!y.commandMetadata&&!y.clickTrackingParams&&Math.random()<Z){var G={},D;for(D in y)G[D]="1";_.Rs(new _.ul("Missing navigation data",
G))}G="";if(y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.url)G=y.commandMetadata.webCommandMetadata.url;else if(y.searchEndpoint)Math.random()<Z&&_.Rs(new _.ul("Should not manually handle search",y)),G="/results?search_query="+encodeURIComponent(y.searchEndpoint.query).replace(/%20/g,"+"),y.searchEndpoint.params&&(G+="&sp="+y.searchEndpoint.params);else if(y.watchEndpoint)Math.random()<Z&&_.Rs(new _.ul("Should not manually handle watch",y)),G="/watch?v="+
y.watchEndpoint.videoId,y.watchEndpoint.playlistId&&(G+="&list="+y.watchEndpoint.playlistId),y.watchEndpoint.index&&(G+="&index="+y.watchEndpoint.index),y.watchEndpoint.startTimeSeconds&&(G+="&t="+y.watchEndpoint.startTimeSeconds);else if(y.browseEndpoint)Z=y.browseEndpoint.browseId,(D=y.browseEndpoint.canonicalBaseUrl)?G=D:Z&&(G=Z.substr(0,2),G=G==="FE"?Z==="FEwhat_to_watch"?"/":Z==="FEmy_videos"?"/my_videos":"/feed/"+Z.substr(2):G==="VL"?"/playlist?list="+Z.substr(2):"/channel/"+Z),G&&y.browseEndpoint.query&&
(G=PO(G+"/search",{query:y.browseEndpoint.query})),G&&y.browseEndpoint.params&&(G=PO(G,{params:y.browseEndpoint.params}));else{if(y.urlEndpoint)return y.urlEndpoint.url;y.signInEndpoint?(G="https://accounts.google.com/ServiceLogin",Z={},_.Eb.extend(Z,W||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),W=Z):y.uploadEndpoint?G="//www.youtube.com/upload":y.liveChatEndpoint?(G=y.liveChatEndpoint,Z=_.Eb.clone(G),_.q1(G.continuation)&&(D=Object.keys(G.continuation)[0],
Z.continuation=G.continuation[D].continuation),G=PO("/youtubei/v1/live_chat/get_live_chat",Z)):y.liveChatReplayEndpoint?(G=_.Eb.clone(y.liveChatReplayEndpoint),G.currentPlayerState&&(_.Eb.extend(G,G.currentPlayerState),delete G.currentPlayerState),G=PO("/youtubei/v1/live_chat/get_live_chat_replay",G)):y.liveChatItemContextMenuEndpoint?G=PO("/youtubei/v1/live_chat/get_item_context_menu",y.liveChatItemContextMenuEndpoint):y.liveChatPurchaseMessageEndpoint?G=PO("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
y.liveChatPurchaseMessageEndpoint):y.openSuperStickerBuyFlowCommand?G=PO("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",y.openSuperStickerBuyFlowCommand):y.videoEditEndpoint?G=PO("/edit",{video_id:y.videoEditEndpoint.videoId}):y.liveDashboardEndpoint?G=y.liveDashboardEndpoint.videoId?PO("/live_dashboard",{v:y.liveDashboardEndpoint.videoId}):"/live_dashboard":y.signalNavigationEndpoint&&y.signalNavigationEndpoint.signal&&y.signalNavigationEndpoint.signal==="WEBCAM"?G="/webcam":y.getPdgBuyFlowCommand&&
(G=PO(y.getPdgBuyFlowCommand.buyflowApiPath,{params:y.getPdgBuyFlowCommand.params}))}return G||c?PO(G,W||{}):(_.Rs(new _.ul("Error: Can't construct url for endpoint","keys:"+Object.keys(y).sort().join(","),y)),null)};
lxw=function(y){if(y){if(y.browseEndpoint)return!!y.browseEndpoint.nofollow;if(y.watchEndpoint)return!!y.watchEndpoint.nofollow;if(y.urlEndpoint)return!!y.urlEndpoint.nofollow}return!1};
_.NiE=function(y,W){var c=W+y,Z=EYH.get(c);if(Z)return Z;y=W+"-"+y.replace(/([A-Z])/g,"-$1").toLowerCase();EYH.set(c,y);return y};
IxF=function(y){var W=_.Kj(y,"action")||_.Kj(y,"command")||_.Kj(y,"endpoint");if(!W)return null;W=_.NiE(W,"yt");_.g(y,_.Jc)&&(W+="-"+_.g(y,_.Jc).signal.toLowerCase().replace(/_/g,"-"));return W};
V8E=function(y){try{var W=Object.keys(y)}catch(G){return[]}for(var c=0;c<W.length;c++){var Z=W[c];if(pGH.test(Z)||Pgf.test(Z))return JzI(y[Z])}return[]};
JzI=function(y){return y.command?[y.command]:y.onExecutionAction?[y.onExecutionAction]:y.onResponseReceivedCommand?[y.onResponseReceivedCommand]:y.updateFlowCommand?[y.updateFlowCommand]:y.clientActions?y.clientActions:y.action?[y.action]:y.actions||y.commands||y.onResponseReceivedActions||y.onResponseReceivedCommands||y.onResponseReceivedEndpoints||[]};
Q3H=function(y,W){W=W===void 0?!1:W;var c=_.U().resolve(_.xN(V8));c||(c=new Cga,_.U().addProvider({provide:V8,useValue:c}));return c&&y&&!_.Eb.isEmpty(y)?c.getUrl(y,W):""};
AzE=function(y,W,c){c=c===void 0?"":c;if(W){y.data=W;var Z=Q3H(W);Z?(hn(y,Z),lxw(W)||!Sy(Z)?y.rel="nofollow":y.removeAttribute("rel"),_.g(W,_.CD)&&_.g(W,_.CD).target==="TARGET_NEW_WINDOW"?y.target="_blank":c?y.target=c:y.removeAttribute("target")):(y.removeAttribute("href"),y.removeAttribute("rel"),y.removeAttribute("target"))}};
_.BO=function(y,W){var c=_.ae;if(b7())hNa(y,function(){var D=_.Cf.apply(0,arguments);R2(c,function(){W.apply(null,_.No(D))})});
else{var Z=_.Q8.getInstance(),G=$N(W);tW(function(){G.value=W});
_.rj(function(){var D={},Y=_.Ac(Z,(D[y]=function(){var u=_.Cf.apply(0,arguments);R2(c,function(){G.value.apply(G,_.No(u))})},D));
return function(){var u={};_.hc(Z,(u[y]="",u),Y)}})}};
_.HO=function(y){return b7()?Big(y):HpH(y)};
_.LD=function(y){return b7()?Big(y):HpH(y)};
HpH=function(y){return UE(function(){return Big(y)})};
Big=function(y){var W=Tzg(function(c){W.value&&W.value===c||(W.__count=W.__count?W.__count+1:1);W.value=c;var Z=function(){var G=kr(null);try{return y==null?void 0:y(c)}finally{kr(G)}}();
return function(){Z==null||Z();W.value=null}});
return W};
LlF=function(y){var W=_.ae,c=tl.slice();return{getFn:function(){return function(Z){W.isDisposed||rV(function(){return ZS(function(){return y(Z)})},{stack:c})!==!0&&Z.stopPropagation()}}}};
_.vO=function(y,W,c){if(b7())vYw(y,W,function(G){var D=kr(null);try{c(G)}finally{kr(D)}});
else{var Z=$N(c);tW(function(){Z.value=c});
_.rj(function(){var G=y.value;if(G){var D=function(Y){Z.value(Y)};
G.addEventListener(W,D,void 0);return function(){G?G.removeEventListener(W,D,void 0):d8H(y)}}d8H(y)})}};
d8H=function(y){var W;(W=wL.handleError)==null||W.call.apply(W,[wL].concat(_.No(F8(aUt.LOG_NULL_EL_REF_VALUE(),y.__expectedTagName,2))))};
dC=function(y){if(typeof y.children==="function")return y.children(),null;y=_.z(y.children);for(var W=y.next();!W.done;W=y.next())W=W.value,W();return null};
SVH=function(y){var W;return((W=y.prototype)==null?void 0:W.render)===void 0};
TiF=function(y){y=y.items.map(y.children);return y.length>0&&typeof y[0]==="string"?y.join(""):y};
x8w=function(y,W,c){c=c===void 0?!1:c;rV(function(){return axw(y,W,c)})};
axw=function(y,W,c){c=((c===void 0?0:c)?ipg:M8D)(y,function(){Su(W)});
return c===null?y:c};
Su=function(y){if(y!==void 0&&y!==null)if(y instanceof ya)for(var W=I2;pL()!=null&&ETw in pL()&&W.contains(pL());)CL();else if(Array.isArray(y))for(W=_.z(y),y=W.next();!y.done;y=W.next())Su(y.value);else if(y instanceof bF||"function"==typeof _.Wp&&y instanceof _.Wp)dV(y.toString());else if(i7(y)){if(pL()!==y){var c,Z;W=(Z=(c=X8())==null?void 0:c.name)!=null?Z:"unknown";throw Error("ec`"+y.tagName+"`"+W);}CL()}else if(y!=null&&y.contentKind===wV||y instanceof BX)for(W=amg(y),W=Array.from(W.childNodes),
W=_.z(W),y=W.next();!y.done;y=W.next())I2.appendChild(y.value),CL();else if(lF(y)&&(y=y.toString()),c=typeof y,c==="boolean"||c==="number"||c==="string")dV(y);else if(typeof y==="function"){W=I2;var G=pL();G&&(G._isSignalTextNode||G._isSafeOrSanitizedHtmlNode)||bOI(W,G,y);CL()}else if(y.type===TiF)Su(y.type(Object.assign({},y.props,{children:y.children[0]})));else{ZL.beforeVisit(y);if(typeof y.type==="string"){a:{y.__open||R2D(y.type,y.props.idomKey);G=I2;for(W in y.props)if(y.props[W]!==eNa){var D=
y.props[W];c=Ba;c.push(W);c.push(D)}W=wL.attributes;W=W===void 0?T5:W;D=I2;c=NP(D);Jsw(D,c,W);XTF(G,y.props,!0);if((y.props.skip||y.props.skipchildren)&&I2.hasChildNodes())Al();else{if(y.type==="style"&&k7g(y.children)===null){Al();W=void 0;break a}Su(y.children)}lmI();y.__open&&(y.__open=!1);HvH(G,y.props);W=G}return W}if(y.type===_.a2)Su(y.children);else if(!wGH(y)){W=y;try{qVy(W)}catch(Y){y=Y,(D=wL.handleError)==null||D.call.apply(D,[wL].concat(_.No(F8(y,(G=W.type)==null?void 0:G.TAG_NAME))))}W.__open&&
(lmI(),W.__open=!1)}}};
kZw=function(y,W){var c;SVH(y)?c=new DL(W,y):c=new y(W);c.JSC$8126___type=y;c.__updateContext={nextState:c.state,isForced:!1};return c};
qVy=function(y){var W=y.type,c=W.TAG_NAME;if(W===dC)y.props.children=y.children,W(y.props);else{y.children.length>0&&(y.props.children=y.children);var Z;(Z=y.props).idomKey||(Z.idomKey=W);if(c){var G=R2D(c,y.props.idomKey);y.__open=!0;var D=G.__instance}D||(D=kZw(W,y.props),D.props=null,G&&(G.__instance=D,D.el=G));var Y;c=((Y=D.__updateContext)!=null?Y:{nextState:D.state,isForced:!1}).nextState;D.__updateContext=void 0;W.getDerivedStateFromProps&&(c=W.getDerivedStateFromProps(y.props,c));D.props=
y.props;D.state=c;Y=function(){var u=D;ZL.beforeRender(u);var t=u.render(u.props);ZL.afterRender(u,t);t?(u.props.idomKey&&(t.props.idomKey=u.props.idomKey),u=t):u=void 0;if(t=u)if(t.__open=y.__open,u=Su(t),y.__open=t.__open,!W.TAG_NAME)if(u)W.TAG_NAME=u.tagName.toLowerCase(),u.__instance=D,D.el=u;else{var b;if((b=D.hooks)==null?0:b.length){var r;(r=wL.handleError)==null||r.call.apply(r,[wL].concat(_.No(F8(Error("kd")))))}}D.didPatch();ZL.didPatch(D)};
(c=D.functionComponent)?SPt({component:c,debugInstance:D.props.debugInstance,fn:Y}):Y()}};
wGH=function(y){var W=y.type;if(!SVH(W)||W===dC||W.componentType===nL)return!1;y.props.children=y.children.length>1?y.children:y.children[0];var c,Z=(c=y.props.idomKey)!=null?c:y.type,G;if(pL()&&((G=pL()[kk])==null?void 0:G.key)===Z){var D=pL(),Y=D[kk];if(!Y)throw Error("dc`"+D.tagName);var u;(u=Y.updateSignalsFromIdomProps)==null||u.call(Y,y.props);j0f(Y);return!0}if(yDa.has(W.name))throw u=W.name,W=(Y=(D=X8())==null?void 0:D.name)!=null?Y:"unknown",Error("cc`"+u+"`"+W);$RH(y.type,y.props,y.children);
y.props.renderedFromIdom=!0;(u=SPt({component:y.type,debugInstance:y.props.debugInstance,fn:function(){return mRg(y.type,y.props)}}))&&Wtg(u);
return!0};
cDD=function(y){for(var W=0;W<jy(y).length;W++)CL()};
j0f=function(y){var W=Zsg();if(W)cDD(W);else for(var c=0;c<y.numNodes;c++)(W=Zsg())?cDD(W):CL()};
Zsg=function(){var y;return(y=pL()[kk])==null?void 0:y.sourceDynamicRange};
Wtg=function(y){y=vME(y);y=Array.isArray(y)?y:[y];y=_.z(y);for(var W=y.next();!W.done;W=y.next())I2.insertBefore(W.value,pL()),CL()};
Gqt=function(y){var W=usE(),c=UE(function(){return{value:typeof y==="function"?y():y}});
return[c.value,function(Z){if(Gw!==null){var G;(G=wL.handleError)==null||G.call.apply(G,[wL].concat(_.No(F8(Error("ld")))))}c.value=typeof Z==="function"?Z(c.value):Z;W.__updateContext={nextState:W.state,isForced:!0};Z=xr(W.effectContext);G=xk(!1);try{if(W.el){var D,Y={},u=(Y.props=W.props,Y.type=W.JSC$8126___type,Y.children=(D=W.props.children)!=null?D:[],Y[T9]=!0,Y);try{x8w(W.el,u,!0)}catch(r){var t,b;(b=wL.handleError)==null||b.call.apply(b,[wL].concat(_.No(F8(r,(t=W.JSC$8126___type)==null?void 0:
t.TAG_NAME))))}}}finally{xk(G),xr(Z)}}]};
as=function(y,W){var c=_.ae,Z=function(G){R2(c,function(){W(G)})};
window.addEventListener(y,Z,void 0);_.KL(function(){window.removeEventListener(y,Z,void 0)})};
_.MF=function(y,W){var c=_.ae;_.rj(function(){var Z,G=(Z=W.observer)!=null?Z:_.U().resolve(xg);if(Z=y.value){var D=fvH(Z),Y=[];W.showOption&&Y.push(G.observe(Z,function(){R2(c,function(){W.visibilityCallback(!0)})},W.showOption));
W.hideOption&&Y.push(G.observe(Z,function(){R2(c,function(){W.visibilityCallback(!1)})},W.hideOption));
W.prescanOption&&W.prescanCallback&&Y.push(G.observe(Z,function(){R2(c,function(){W.prescanCallback()})},W.prescanOption));
var u;D.visibilityMonitorKeys=((u=D.visibilityMonitorKeys)!=null?u:[]).concat(Y)}})};
fvH=function(y){var W;return(W=y.polymerController)!=null?W:y};
_.eu=function(y){y.componentType=nL};
YdD=function(y,W){var c=oDO;return _.X(_.a2,null,_.TY(wL.enableLazyTsx,function(){return _.X(DvH,{id:c,value:y,children:W})},function(){var Z=zYH(c,y);
MQ(Z);Z=xr(Z);try{return W()}finally{xr(Z)}}))};
DvH=function(y){var W=y.children;y=zYH(y.id,y.value);MQ(y);y=xr(y);try{return _.X(_.a2,null,WI(W()))}finally{xr(y)}};
zYH=function(y,W){return Object.assign(Object.create(mvw),{id:y,contextValue:W})};
s0g=function(y){var W,c=_.ae;_.UN(function(){var Z=xr(c),G=xk(!W);try{if(W)x8w(W,y.children(),!0);else if(W=WI(y.children()),!(W instanceof Element))throw Error("md");}finally{xk(G),xr(Z)}});
return W};
u6E=function(y){var W,c=ON(function(){var Z=xk(!0);try{W=jy(y())}finally{xk(Z)}},!1);
return[W,c]};
XEO=function(y,W,c){tst(y,W);y[W][nDw].unshift(c)};
tst=function(y,W){if(!y[W]||!y[W][nDw]){var c=y[W],Z=c?[c]:[];y[W]=function(){for(var G=_.z(Z),D=G.next();!D.done;D=G.next())D.value.apply(this,arguments)};
y[W][nDw]=Z}};
bsa=function(y){if(!y)return[];var W=[];y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=c.value,Array.isArray(c)?W.push.apply(W,_.No(bsa(c))):W.push(c);return W};
_.qF=function(y,W){if(y&&rDy.test(y)||y==="//")return y;if(Fth===void 0){Fth=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";Fth=c.href==="http://a/c%20d"}catch(Z){}}W||(W=document.baseURI||window.location.href);if(Fth)try{return(new URL(y,W)).href}catch(Z){return y}wC||(wC=document.implementation.createHTMLDocument("temp"),wC.base=wC.createElement("base"),wC.head.appendChild(wC.base),wC.anchor=wC.createElement("a"),wC.body.appendChild(wC.anchor));wC.base.href=W;wC.anchor.href=y;return wC.anchor.href||
y};
$vH=function(y,W){return y.replace(UvF,function(c,Z,G,D){return Z+"'"+_.qF(G.replace(/["']/g,""),W)+"'"+D})};
Ktf=function(y){return y.substring(0,y.lastIndexOf("/")+1)};
RYD=function(){OsH=!1;for(var y=kg.length,W=0;W<y;W++){var c=kg[W];if(c)try{c()}catch(Z){setTimeout(function(){throw Z;})}}kg.splice(0,y);
gDf+=y};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(y){console.log("["+y.is+"]: registered")};
EDw=function(y){lvD.push(y)};
jN=function(y){return NeF[y]||(NeF[y]=y.indexOf("-")<0?y:y.replace(Ivh,function(W){return W[1].toUpperCase()}))};
yv=function(y){return NeF[y]||(NeF[y]=y.replace(pEI,"-$1").toLowerCase())};
PLg=function(y,W){var c=W.parentInfo&&PLg(y,W.parentInfo);if(c)for(y=c.firstChild,c=0;y;y=y.nextSibling){if(W.parentIndex===c++)return y}else return y};
JDI=function(y,W){y=y._methodHost||y;return function(c){if(y[W])y[W](c,c.detail);else console.warn("listener method `"+W+"` not defined")}};
WR=function(y){return y.indexOf(".")>=0};
cR=function(y){var W=y.indexOf(".");return W===-1?y:y.slice(0,W)};
VsI=function(y,W){return y.indexOf(W+".")===0};
Zm=function(y,W){return W.indexOf(y+".")===0};
G7=function(y,W,c){return W+c.slice(y.length)};
CL1=function(y,W){return y===W||VsI(y,W)||Zm(y,W)};
fv=function(y){if(Array.isArray(y)){for(var W=[],c=0;c<y.length;c++)for(var Z=y[c].toString().split("."),G=0;G<Z.length;G++)W.push(Z[G]);return W.join(".")}return y};
Q0E=function(y){return Array.isArray(y)?fv(y).split("."):y.toString().split(".")};
Dm=function(y,W,c){W=Q0E(W);for(var Z=0;Z<W.length;Z++){if(!y)return;y=y[W[Z]]}c&&(c.path=W.join("."));return y};
ADI=function(y,W,c){var Z=Q0E(W),G=Z[Z.length-1];if(Z.length>1){for(W=0;W<Z.length-1;W++)if(y=y[Z[W]],!y)return;y[G]=c}else y[W]=c;return Z.join(".")};
hYy=function(y,W,c){var Z=y[W];if(!Z)Z=y[W]={};else if(!y.hasOwnProperty(W)&&(Z=y[W]=Object.create(y[W]),c))for(var G in Z)for(y=Z[G],W=Z[G]=Array(y.length),c=0;c<y.length;c++)W[c]=y[c];return Z};
YM=function(y,W,c,Z,G,D){if(W){var Y=!1,u=z7++,t;for(t in c){var b=G?cR(t):t;if(b=W[b])for(var r=0,F=b.length,K=void 0;r<F&&(K=b[r]);r++)K.info&&K.info.lastRun===u||G&&!BeE(t,K.trigger)||(K.info&&(K.info.lastRun=u),K.fn(y,t,c,Z,K.info,G,D),Y=!0)}return Y}return!1};
BeE=function(y,W){if(W){var c=W.name;return c==y||!(!W.structured||!VsI(c,y))||!(!W.wildcard||!Zm(c,y))}return!0};
Hsh=function(y,W,c,Z,G){W=typeof G.method==="string"?y[G.method]:G.method;c=G.property;W?W.call(y,y.__data[c],Z[c]):G.dynamicFn||console.warn("observer method `"+G.method+"` not defined")};
LtD=function(y,W,c,Z){c={value:c,queueProperty:!0};Z&&(c.path=Z);(0,_.my)(y).dispatchEvent(new CustomEvent(W,{detail:c}))};
vDH=function(y,W,c,Z,G,D){D=(Z=(D?cR(W):W)!=W?W:null)?Dm(y,Z):y.__data[W];Z&&D===void 0&&(D=c[W]);LtD(y,G.eventName,D,Z)};
dv1=function(y,W,c,Z,G){c=y.__data[W];sQ&&(c=sQ(c,G.attrName,"attribute",y));y._propertyToAttribute(W,G.attrName,c)};
TeO=function(y){var W=y.constructor.__orderedComputedDeps;if(!W){W=new Map;for(var c=y.__computeEffects,Z=Sdg(y),G=Z.counts,D=Z.ready,Y=Z.total;Z=D.shift();)W.set(Z,W.size),(Z=c[Z])&&Z.forEach(function(u){u=u.info.methodInfo;--Y;--G[u]===0&&D.push(u)});
Y!==0&&console.warn("Computed graph for "+y.localName+" incomplete; circular?");y.constructor.__orderedComputedDeps=W}return W};
Sdg=function(y){var W=y.__computeInfo,c={};y=y.__computeEffects;var Z=[],G=0,D;for(D in W){var Y=W[D];G+=c[D]=Y.args.filter(function(t){return!t.literal}).length+(Y.dynamicFn?1:0)}for(var u in y)W[u]||Z.push(u);
return{counts:c,ready:Z,total:G}};
xvI=function(y,W,c,Z,G){W=avy(y,W,c,Z,G);if(W===un)return!1;G=G.methodInfo;if(y.__dataHasAccessor&&y.__dataHasAccessor[G])return y._setPendingProperty(G,W,!0);y[G]=W;return!1};
eY1=function(y,W,c,Z,G,D,Y){c.bindings=c.bindings||[];Z={kind:Z,target:G,parts:D,literal:Y,isCompound:D.length!==1};c.bindings.push(Z);Z.target&&Z.kind!="attribute"&&Z.kind!="text"&&!Z.isCompound&&Z.parts[0].mode==="{"&&(c=Z.parts[0],D=c.negate,Z.listenerEvent=c.event||yv(G)+"-changed",Z.listenerNegate=D);G=W.nodeInfoList.length;for(c=0;c<Z.parts.length;c++){var u=Z.parts[c];u.compoundIndex=c;D=y;Y=W;var t=Z,b=u,r=G;if(!b.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+
t.target+' because "-" is not a valid attribute starting character');else for(u=b.dependencies,t={index:r,binding:t,part:b,evaluator:D},b=0;b<u.length;b++)r=u[b],typeof r=="string"&&(r=isy(r),r.wildcard=!0),D._addTemplatePropertyEffect(Y,r.rootProperty,{fn:MsI,info:t,trigger:r})}};
MsI=function(y,W,c,Z,G,D,Y){Y=Y[G.index];var u=G.binding,t=G.part;D&&t.source&&W.length>t.source.length&&u.kind=="property"&&!u.isCompound&&Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[u.target]?(c=c[W],W=G7(t.source,u.target,W),Y._setPendingPropertyOrPath(W,c,!1,!0)&&y._enqueueClient(Y)):(W=G.evaluator._evaluateBinding(y,t,W,c,Z,D),W!==un&&(u.isCompound&&(c=Y.__dataCompoundStorage[u.target],c[t.compoundIndex]=W,W=c.join("")),u.kind==="attribute"||u.target!=="textContent"&&
(u.target!=="value"||Y.localName!=="input"&&Y.localName!=="textarea")||(W=W==void 0?"":W),t=W,sQ&&(t=sQ(t,u.target,u.kind,Y)),u.kind=="attribute"?y._valueToNodeAttribute(Y,t,u.target):(u=u.target,Y.__isPropertyEffectsClient&&Y.__dataHasAccessor&&Y.__dataHasAccessor[u]?Y.__readOnly&&Y.__readOnly[u]||Y._setPendingProperty(u,t)&&y._enqueueClient(Y):y._setUnmanagedPropertyToNode(Y,u,t))))};
wEt=function(y,W,c){if(c.listenerEvent){var Z=c.parts[0];y.addEventListener(c.listenerEvent,function(G){var D=c.target,Y=Z.source,u=Z.negate,t=G.detail,b=t&&t.path;b?(Y=G7(D,Y,b),G=t&&t.value):G=G.currentTarget[D];W.__readOnly&&W.__readOnly[Y]||!W._setPendingPropertyOrPath(Y,u?!G:G,!0,!!b)||t&&t.queueProperty||W._invalidateProperties()})}};
qdI=function(y,W,c,Z,G,D){D=W.static||D&&(typeof D!=="object"||D[W.methodName]);G={methodName:W.methodName,args:W.args,methodInfo:G,dynamicFn:D};for(var Y=0,u=void 0;Y<W.args.length&&(u=W.args[Y]);Y++)u.literal||y._addPropertyEffect(u.rootProperty,c,{fn:Z,info:G,trigger:u});D&&y._addPropertyEffect(W.methodName,c,{fn:Z,info:G});return G};
avy=function(y,W,c,Z,G){Z=y._methodHost||y;var D=Z[G.methodName];if(D)return y=y._marshalArgs(G.args,W,c),y===un?un:D.apply(Z,y);G.dynamicFn||console.warn("method `"+G.methodName+"` not defined")};
kqt=function(y){for(var W="",c=0;c<y.length;c++)W+=y[c].literal||"";return W};
WHE=function(y){if(y=y.match(/([^\s]+?)\(([\s\S]*)\)/)){var W={methodName:y[1],static:!0,args:jTE};return y[2].trim()?ydO(y[2].replace(/\\,/g,"&comma;").split(","),W):W}return null};
ydO=function(y,W){W.args=y.map(function(c){c=isy(c);c.literal||(W.static=!1);return c},this);
return W};
isy=function(y){y=y.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var W={name:y,value:"",literal:!1},c=y[0];c==="-"&&(c=y[1]);c>="0"&&c<="9"&&(c="#");switch(c){case "'":case '"':W.value=y.slice(1,-1);W.literal=!0;break;case "#":W.value=Number(y),W.literal=!0}W.literal||(W.rootProperty=cR(y),W.structured=WR(y),W.structured&&(W.wildcard=y.slice(-2)==".*",W.wildcard&&(W.name=y.slice(0,-2))));return W};
cdf=function(y,W,c){y=Dm(y,c);y===void 0&&(y=W[c]);return y};
ZyE=function(y,W,c,Z){Z={indexSplices:Z};ts&&!y._overrideLegacyUndefined&&(W.splices=Z);y.notifyPath(c+".splices",Z);y.notifyPath(c+".length",W.length);ts&&!y._overrideLegacyUndefined&&(Z.indexSplices=[])};
nv=function(y,W,c,Z,G,D){ZyE(y,W,c,[{index:Z,addedCount:G,removed:D,object:W,type:"splice"}])};
Gya=function(y){y=$vH((y.body?y.body:y).textContent,y.baseURI);var W=document.createElement("style");W.textContent=y;return W};
o3O=function(y){y=y.trim().split(/\s+/);for(var W=[],c=0;c<y.length;c++)W.push.apply(W,_.No(fsD(y[c])));return W};
fsD=function(y){var W=Xo.import(y);if(!W)return console.warn("Could not find style data in module named",y),[];if(W._styles===void 0){y=[];y.push.apply(y,_.No(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W)));var c=W.querySelector("template");c&&y.push.apply(y,_.No(Dag(c,W.assetpath)));W._styles=y}return W._styles};
Dag=function(y,W){if(!y._styles){for(var c=[],Z=y.content.querySelectorAll("style"),G=0;G<Z.length;G++){var D=Z[G],Y=D.getAttribute("include");Y&&c.push.apply(c,_.No(o3O(Y).filter(function(u,t,b){return b.indexOf(u)===t})));
W&&(D.textContent=$vH(D.textContent,W));c.push(D)}y._styles=c}return y._styles};
zV1=function(y){return(y=Xo.import(y))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(y){var W=[];y=y.querySelectorAll("link[rel=import][type~=css]");for(var c=0;c<y.length;c++){var Z=y[c];if(Z.import){var G=Z.import;if((Z=Z.hasAttribute("shady-unscoped"))&&!G._unscopedStyle){var D=Gya(G);D.setAttribute("shady-unscoped","");G._unscopedStyle=D}else G._style||(G._style=Gya(G));W.push(Z?G._unscopedStyle:G._style)}}return W};
maI=function(y){y=y.trim().split(/\s+/);for(var W="",c=0;c<y.length;c++)W+=Y9E(y[c]);return W};
Y9E=function(y){var W=Xo.import(y);if(W&&W._cssText===void 0){var c=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W),Z=W.querySelector("template");Z&&(c+=sTO(Z,W.assetpath));W._cssText=c||null}W||console.warn("Could not find style data in module named",y);return W&&W._cssText||""};
sTO=function(y,W){var c="";y=Dag(y,W);for(W=0;W<y.length;W++){var Z=y[W];Z.parentNode&&Z.parentNode.removeChild(Z);c+=Z.textContent}return c};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(y){var W="";y=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y);for(var c=0;c<y.length;c++)W+=y[c].textContent;return W};
bn=function(y,W){return{index:y,removed:[],addedCount:W}};
toy=function(y,W,c,Z){var G=0,D=0,Y=0,u=0,t=Math.min(W-G,Z-D);if(G==0&&D==0)a:{for(Y=0;Y<t;Y++)if(y[Y]!==c[Y])break a;Y=t}if(W==y.length&&Z==c.length){u=y.length;for(var b=c.length,r=0;r<t-Y&&uGO(y[--u],c[--b]);)r++;u=r}G+=Y;D+=Y;W-=u;Z-=u;if(W-G==0&&Z-D==0)return[];if(G==W){for(W=bn(G,0);D<Z;)W.removed.push(c[D++]);return[W]}if(D==Z)return[bn(G,W-G)];t=G;Y=D;Z=Z-Y+1;u=W-t+1;W=Array(Z);for(b=0;b<Z;b++)W[b]=Array(u),W[b][0]=b;for(b=0;b<u;b++)W[0][b]=b;for(b=1;b<Z;b++)for(r=1;r<u;r++)if(y[t+r-1]===
c[Y+b-1])W[b][r]=W[b-1][r-1];else{var F=W[b-1][r]+1,K=W[b][r-1]+1;W[b][r]=F<K?F:K}t=W.length-1;Y=W[0].length-1;Z=W[t][Y];for(y=[];t>0||Y>0;)t==0?(y.push(2),Y--):Y==0?(y.push(3),t--):(u=W[t-1][Y-1],b=W[t-1][Y],r=W[t][Y-1],F=b<r?b<u?b:u:r<u?r:u,F==u?(u==Z?y.push(0):(y.push(1),Z=u),t--,Y--):F==b?(y.push(3),t--,Z=b):(y.push(2),Y--,Z=r));y.reverse();W=void 0;t=[];for(Y=0;Y<y.length;Y++)switch(y[Y]){case 0:W&&(t.push(W),W=void 0);G++;D++;break;case 1:W||(W=bn(G,0));W.addedCount++;G++;W.removed.push(c[D]);
D++;break;case 2:W||(W=bn(G,0));W.addedCount++;G++;break;case 3:W||(W=bn(G,0)),W.removed.push(c[D]),D++}W&&t.push(W);return t};
n3F=function(y,W){return toy(y,y.length,W,W.length)};
uGO=function(y,W){return y===W};
byy=function(y){if(y instanceof XUE)return y.value;throw Error("Dd`"+y);};
rdg=function(y,W){for(var c in W)c===null?y.style.removeProperty(c):y.style.setProperty(c,W[c])};
FHD=function(y,W){return(y=window.getComputedStyle(y).getPropertyValue(W))?y.trim():""};
Oyy=function(y){requestAnimationFrame(function(){Uah?Uah(y):($ag||($ag=new Promise(function(W){KHE=W}),document.readyState==="complete"?KHE():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&KHE()})),$ag.then(function(){y&&y()}))})};
lsa=function(y){g3I=y&&y.shimcssproperties?!1:RVE||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
PTf=function(y){if(!(E3a.indexOf(y)>-1)&&y!=="touchend"&&Nlh&&Isg&&pUw)return{passive:!0}};
QTh=function(y){for(var W=JdO?["click"]:E3a,c=0,Z;c<W.length;c++)Z=W[c],y?(VoE.length=0,document.addEventListener(Z,CTD,!0)):document.removeEventListener(Z,CTD,!0)};
rJ=function(y){var W=y.type;return E3a.indexOf(W)>-1?W==="mousemove"?(W=y.buttons===void 0?1:y.buttons,y instanceof window.MouseEvent&&!AdI&&(W=hVI[y.which]||0),!!(W&1)):(y.button===void 0?0:y.button)===0:!1};
BlH=function(y){if(y.type==="click"){if(y.detail===0)return!0;var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);if(!W.nodeType||W.nodeType!==Node.ELEMENT_NODE)return!0;W=W.getBoundingClientRect();var c=y.pageX;y=y.pageY;return!(c>=W.left&&c<=W.right&&y>=W.top&&y<=W.bottom)}return!1};
HyI=function(y,W,c){y.movefn=W;y.upfn=c;document.addEventListener("mousemove",W);document.addEventListener("mouseup",c)};
Fo=function(y){document.removeEventListener("mousemove",y.movefn);document.removeEventListener("mouseup",y.upfn);y.movefn=null;y.upfn=null};
LHg=function(y,W){for(var c=document.elementFromPoint(y,W),Z=c;Z&&Z.shadowRoot&&!window.ShadyDOM;){var G=Z;Z=Z.shadowRoot.elementFromPoint(y,W);if(G===Z)break;Z&&(c=Z)}return c};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){var W=v3H(y);return W.length>0?W[0]:y.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){var W=y.type,c=y.currentTarget.__polymerGestures;if(c&&(c=c[W])){if(!y.__polymerGesturesHandled&&(y.__polymerGesturesHandled={},W.slice(0,5)==="touch")){var Z=y.changedTouches[0];W==="touchstart"&&y.touches.length===1&&(daa=Z.identifier);if(daa!==Z.identifier)return;Nlh||(W==="touchstart"||W==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y)}Z=
y.__polymerGesturesHandled;if(!Z.skip){for(var G=0,D;G<UQ.length;G++)D=UQ[G],c[D.name]&&!Z[D.name]&&D.flow&&D.flow.start.indexOf(y.type)>-1&&D.reset&&D.reset();for(G=0;G<UQ.length;G++)D=UQ[G],c[D.name]&&!Z[D.name]&&(Z[D.name]=!0,D[W](y))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){var W=y.changedTouches[0],c=y.type;if(c==="touchstart")S9O=W.clientX,TlH=W.clientY,asy=!1;else if(c==="touchmove"&&!asy){asy=!0;c="auto";for(var Z=v3H(y),G=0,D;G<Z.length;G++)if(D=Z[G],D.__polymerGesturesTouchAction){c=D.__polymerGesturesTouchAction;break}Z=!1;G=Math.abs(S9O-W.clientX);W=Math.abs(TlH-W.clientY);y.cancelable&&(c==="none"?Z=!0:c==="pan-x"?Z=W>G:c==="pan-y"&&(Z=G>W));Z?y.preventDefault():
$M("track")}};
OQ=function(y,W,c){return Kv[W]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,W,c),!0):!1};
gJ=function(y,W,c){return Kv[W]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y,W,c),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y,W,c){var Z=Kv[W],G=Z.deps,D=Z.name,Y=y.__polymerGestures;Y||(y.__polymerGestures=Y={});for(var u=0,t,b;u<G.length;u++)t=G[u],JdO&&E3a.indexOf(t)>-1&&t!=="click"||((b=Y[t])||(Y[t]=b={_count:0}),b._count===0&&y.addEventListener(t,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,PTf(t)),b[D]=(b[D]||0)+1,b._count=(b._count||0)+1);y.addEventListener(W,c);Z.touchAction&&_.RN(y,Z.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y,W,c){var Z=Kv[W],G=Z.deps;Z=Z.name;var D=y.__polymerGestures;if(D)for(var Y=0,u,t;Y<G.length;Y++)u=G[Y],(t=D[u])&&t[Z]&&(t[Z]=(t[Z]||1)-1,t._count=(t._count||1)-1,t._count===0&&y.removeEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,PTf(u)));y.removeEventListener(W,c)};
xaH=function(y){UQ.push(y);for(var W=0;W<y.emits.length;W++)Kv[y.emits[W]]=y};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y){for(var W=0,c;W<UQ.length;W++){c=UQ[W];for(var Z=0,G;Z<c.emits.length;Z++)if(G=c.emits[Z],G===y)return c}return null};
_.RN=function(y,W){Nlh&&y instanceof HTMLElement&&ln.run(function(){y.style.touchAction=W});
y.__polymerGesturesTouchAction=W};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(y,W,c){W=new Event(W,{bubbles:!0,cancelable:!0,composed:!0});W.detail=c;(0,_.my)(y).dispatchEvent(W);W.defaultPrevented&&(y=c.preventer||c.sourceEvent)&&y.preventDefault&&y.preventDefault()};
$M=function(y){y=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);y.info&&(y.info.prevent=!0)};
EQ=function(y,W,c,Z){W&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,y,{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:Z,prevent:function(G){return $M(G)}})};
iy1=function(y,W,c){if(y.prevent)return!1;if(y.started)return!0;c=Math.abs(y.y-c);return Math.abs(y.x-W)>=5||c>=5};
Mot=function(y,W,c){if(W){var Z=y.moves[y.moves.length-2],G=y.moves[y.moves.length-1],D=G.x-y.x,Y=G.y-y.y,u=0;if(Z){var t=G.x-Z.x;u=G.y-Z.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,"track",{state:y.state,x:c.clientX,y:c.clientY,dx:D,dy:Y,ddx:t,ddy:u,sourceEvent:c,hover:function(){return LHg(c.clientX,c.clientY)}})}};
wUt=function(y,W,c){var Z=Math.abs(W.clientX-y.x),G=Math.abs(W.clientY-y.y),D=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c||W);!D||eVI[D.localName]&&D.hasAttribute("disabled")||!(isNaN(Z)||isNaN(G)||Z<=25&&G<=25||BlH(W))||y.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,"tap",{x:W.clientX,y:W.clientY,sourceEvent:W,preventer:c})};
q9H=function(y,W,c,Z,G){var D;G&&(D=typeof c==="object"&&c!==null)&&(Z=y.__dataTemp[W]);Z=Z!==c&&(Z===Z||c===c);D&&Z&&(y.__dataTemp[W]=c);return Z};
jEa=function(){if(N4&&!IN){if(!kyI){kyI=!0;var y=document.createElement("style");y.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(y)}return!0}return!1};
W8g=function(){return yfa};
cfI=function(y,W){yfa=y;Object.setPrototypeOf(y,W.prototype);new W;yfa=null};
Zif=function(y,W){for(var c=0;c<W.length;c++){var Z=W[c];if(!!y!=!!Z.__hideTemplateChildren__)if(Z.nodeType===Node.TEXT_NODE)y?(Z.__polymerTextContent__=Z.textContent,Z.textContent=""):Z.textContent=Z.__polymerTextContent__;else if(Z.localName==="slot")if(y)Z.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.my)((0,_.my)(Z).parentNode).replaceChild(Z.__polymerReplaced__,Z);else{var G=Z.__polymerReplaced__;G&&(0,_.my)((0,_.my)(G).parentNode).replaceChild(Z,G)}else Z.style&&(y?(Z.__polymerDisplay__=
Z.style.display,Z.style.display="none"):Z.style.display=Z.__polymerDisplay__);Z.__hideTemplateChildren__=y;Z._showHideChildren&&Z._showHideChildren(y)}};
G$w=function(y){return(y=y.__dataHost)&&y._methodHost||y};
Dry=function(y,W,c){var Z=c.mutableData?fqD:pv;PR.mixin&&(Z=PR.mixin(Z));var G=function(){return Z.apply(this,arguments)||this};
_.R(G,Z);G.prototype.__templatizeOptions=c;G.prototype._bindTemplate(y);o6D(G,y,W,c);return G};
uYf=function(y,W,c,Z){var G=c.forwardHostProp;if(G&&W.hasHostProps){var D=y.localName=="template",Y=W.templatizeTemplateClass;if(!Y){if(D){var u=c.mutableData?zJO:Y2E;Y=function(){return u.apply(this,arguments)||this};
_.R(Y,u);Y=W.templatizeTemplateClass=Y}else{var t=y.constructor;Y=function(){return t.apply(this,arguments)||this};
_.R(Y,t);Y=W.templatizeTemplateClass=Y}var b=W.hostProps,r;for(r in b)Y.prototype._addPropertyEffect("_host_"+r,Y.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:mrw(G)}),Y.prototype._createNotifyingProperty("_host_"+r);Js&&Z&&sEy(W,c,Z)}y.__dataProto&&Object.assign(y.__data,y.__dataProto);if(D)cfI(y,Y),y.__dataTemp={},y.__dataPending=null,y.__dataOld=null,y._enableProperties();else{Object.setPrototypeOf(y,Y.prototype);W=W.hostProps;for(var F in W)F="_host_"+F,F in y&&(W=y[F],delete y[F],y.__data[F]=
W)}}};
mrw=function(y){return function(W,c,Z){y.call(W.__templatizeOwner,c.substring(6),Z[c])}};
o6D=function(y,W,c,Z){var G=c.hostProps||{},D;for(D in Z.instanceProps){delete G[D];var Y=Z.notifyInstanceProp;Y&&y.prototype._addPropertyEffect(D,y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:t6I(Y)})}if(Z.forwardHostProp&&W.__dataHost)for(var u in G)c.hasHostProps||(c.hasHostProps=!0),y.prototype._addPropertyEffect(u,y.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:n6h()})};
t6I=function(y){return function(W,c,Z){y.call(W.__templatizeOwner,W,c,Z[c])}};
n6h=function(){return function(y,W,c){y.__dataHost._setPendingPropertyOrPath("_host_"+W,c[W],!0,!0)}};
PR=function(y,W,c){if(Vv&&!G$w(y))throw Error("Jd");c=c||{};if(y.__templatizeOwner)throw Error("Kd");y.__templatizeOwner=W;var Z=(W?W.constructor:pv)._parseTemplate(y),G=Z.templatizeInstanceClass;G||(G=Dry(y,Z,c),Z.templatizeInstanceClass=G);var D=G$w(y);uYf(y,Z,c,D);c=function(){return G.apply(this,arguments)||this};
_.R(c,G);c.prototype._methodHost=D;c.prototype.__dataHost=y;c.prototype.__templatizeOwner=W;c.prototype.__hostProps=Z.hostProps;return c};
sEy=function(y,W,c){c=c.constructor._properties;y=y.propertyEffects;W=W.instanceProps;for(var Z in y)if(!(c[Z]||W&&W[Z]))for(var G=y[Z],D=0;D<G.length;D++){var Y=G[D].info.part;if(!Y.signature||!Y.signature.static){console.warn("Property '"+Z+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
XNH=function(y,W){for(var c;W;)if(c=W.__dataHost?W:W.__templatizeInstance)if(c.__dataHost!=y)W=c.__dataHost;else return c;else W=(0,_.my)(W).parentNode;return null};
Cv=function(y){return y.localName==="slot"};
biI=function(){for(var y=Qv.prototype,W="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),c={},Z=0;Z<W.length;c={method$jscomp$32:void 0},Z++)c.method$jscomp$32=W[Z],y[c.method$jscomp$32]=function(G){return function(){return this.node[G.method$jscomp$32].apply(this.node,arguments)}}(c)};
rff=function(y,W){for(var c={},Z=0;Z<W.length;c={name$jscomp$377:void 0},Z++)c.name$jscomp$377=W[Z],Object.defineProperty(y,c.name$jscomp$377,{get:function(G){return function(){return this.node[G.name$jscomp$377]}}(c),
configurable:!0})};
F8I=function(){for(var y=Qv.prototype,W=["textContent","innerHTML","className"],c={},Z=0;Z<W.length;c={name$jscomp$378:void 0},Z++)c.name$jscomp$378=W[Z],Object.defineProperty(y,c.name$jscomp$378,{get:function(G){return function(){return this.node[G.name$jscomp$378]}}(c),
set:function(G){return function(D){this.node[G.name$jscomp$378]=D}}(c),
configurable:!0})};
UrD=function(){As=document.documentElement.getAttribute("dir");As=document.documentElement.getAttribute("dir");for(var y=0;y<hs.length;y++){var W=hs[y];W.__autoDirOptOut||W.setAttribute("dir",As)}};
g6I=function(){BR=!0;requestAnimationFrame(function(){BR=!1;$rt(K8D);setTimeout(function(){for(var y=0,W=HR.length;y<W;y++)Oif(HR.shift())})})};
$rt=function(y){for(;y.length;)Oif(y.shift())};
Oif=function(y){var W=y[0],c=y[1];y=y[2];try{c.apply(W,y)}catch(Z){setTimeout(function(){throw Z;})}};
_.RJI=function(y,W,c){BR||g6I();K8D.push([y,W,c])};
_.Lv=function(y,W,c){BR||g6I();HR.push([y,W,c])};
N5I=function(y,W){W=W===void 0?!1:W;if(!lqa||!E6H||!lqa.handlesDynamicScoping)return null;var c=E6H.ScopingShim;if(!c)return null;var Z=c.scopeForNode(y),G=(0,_.my)(y).getRootNode(),D=function(Y){if((0,_.my)(Y).getRootNode()===G){var u=Array.from(lqa.nativeMethods.querySelectorAll.call(Y,"*"));u.push(Y);for(Y=0;Y<u.length;Y++){var t=u[Y];if((0,_.my)(t).getRootNode()===G){var b=c.currentScopeForNode(t);b!==Z&&(b!==""&&c.unscopeNode(t,b),c.scopeNode(t,Z))}}}};
D(y);return W?(W=new MutationObserver(function(Y){for(var u=0;u<Y.length;u++)for(var t=Y[u],b=0;b<t.addedNodes.length;b++){var r=t.addedNodes[b];r.nodeType===Node.ELEMENT_NODE&&D(r)}}),W.observe(y,{childList:!0,
subtree:!0}),W):null};
Iqw=function(){document.body.removeAttribute("unresolved")};
Cm1=function(y){var W=y=y.replace(pNa,"").replace(PmI,""),c=new JfO;c.start=0;c.end=W.length;for(var Z=c,G=0,D=W.length;G<D;G++)if(W[G]==="{"){Z.rules||(Z.rules=[]);var Y=Z,u=Y.rules[Y.rules.length-1]||null;Z=new JfO;Z.start=G+1;Z.parent=Y;Z.previous=u;Y.rules.push(Z)}else W[G]==="}"&&(Z.end=G+1,Z=Z.parent||c);return V6g(c,y)};
V6g=function(y,W){var c=W.substring(y.start,y.end-1);y.parsedCssText=y.cssText=c.trim();y.parent&&(c=W.substring(y.previous?y.previous.end:y.parent.start,y.start-1),c=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c),c=c.replace(QED," "),c=c.substring(c.lastIndexOf(";")+1),c=y.parsedSelector=y.selector=c.trim(),y.atRule=c.indexOf("@")===0,y.atRule?c.indexOf("@media")===0?y.type=4:c.match(AfE)&&(y.type=7,y.keyframesName=y.selector.split(QED).pop()):c.indexOf("--")===
0?y.type=1E3:y.type=1);if(c=y.rules)for(var Z=0,G=c.length,D=void 0;Z<G&&(D=c[Z]);Z++)V6g(D,W);return y};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(y){return y.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var W=arguments[1],c=6-W.length;c--;)W="0"+W;return"\\"+W})};
hJa=function(y,W,c){c=c===void 0?"":c;var Z="";if(y.cssText||y.rules){var G=y.rules;if(G&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(G))for(var D=0,Y=G.length,u=void 0;D<Y&&(u=G[D]);D++)Z=hJa(u,W,Z);else W?W=y.cssText:(W=y.cssText,W=W.replace(B5E,"").replace(HiD,""),W=W.replace(L8F,"").replace(v6E,"")),(Z=W.trim())&&(Z="  "+Z+"\n")}Z&&(y.selector&&(c+=y.selector+" {\n"),c+=Z,y.selector&&(c+="}\n\n"));return c};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(y){y=y[0];return!!y&&!!y.selector&&y.selector.indexOf("--")===0};
S2O=function(y){if(y=drt[y])y._applyShimCurrentVersion=y._applyShimCurrentVersion||0,y._applyShimValidatingVersion=y._applyShimValidatingVersion||0,y._applyShimNextVersion=(y._applyShimNextVersion||0)+1};
T5w=function(y){return y._applyShimCurrentVersion===y._applyShimNextVersion};
xra=function(y){y._applyShimValidatingVersion=y._applyShimNextVersion;y._validating||(y._validating=!0,aqF.then(function(){y._applyShimCurrentVersion=y._applyShimNextVersion;y._validating=!1}))};
M6I=function(y){if(!y)return"";typeof y==="string"&&(y=Cm1(y));return hJa(y,iif)};
eJh=function(y){!y.__cssRules&&y.textContent&&(y.__cssRules=Cm1(y.textContent));return y.__cssRules||null};
q2I=function(y,W,c,Z){if(y){var G=!1,D=y.type;if(Z&&D===4){var Y=y.selector.match(wNF);Y&&(window.matchMedia(Y[1]).matches||(G=!0))}D===1?W(y):c&&D===7?c(y):D===1E3&&(G=!0);if((y=y.rules)&&!G)for(G=0,D=y.length,Y=void 0;G<D&&(Y=y[G]);G++)q2I(Y,W,c,Z)}};
k$O=function(y,W){var c=y.indexOf("var(");if(c===-1)return W(y,"","","");a:{var Z=0;var G=c+3;for(var D=y.length;G<D;G++)if(y[G]==="(")Z++;else if(y[G]===")"&&--Z===0)break a;G=-1}Z=y.substring(c+4,G);c=y.substring(0,c);y=k$O(y.substring(G+1),W);D=Z.indexOf(",");if(D===-1)return W(c,Z.trim(),"",y);G=Z.substring(0,D).trim();Z=Z.substring(D+1).trim();return W(c,G,Z,y)};
j_I=function(y){if(vR!==void 0)return vR;if(y.__cssBuild===void 0){var W=y.getAttribute("css-build");if(W)y.__cssBuild=W;else{a:{W=y.localName==="template"?y.content.firstChild:y.firstChild;if(W instanceof Comment&&(W=W.textContent.trim().split(":"),W[0]==="css-build")){W=W[1];break a}W=""}if(W!==""){var c=y.localName==="template"?y.content.firstChild:y.firstChild;c.parentNode.removeChild(c)}y.__cssBuild=W}}return y.__cssBuild||""};
WeH=function(y,W,c,Z){for(var G=W._noAccessors,D=Object.getOwnPropertyNames(W),Y=0;Y<D.length;Y++){var u=D[Y];if(!(u in Z))if(G)y[u]=W[u];else{var t=Object.getOwnPropertyDescriptor(W,u);t&&(t.configurable=!0,Object.defineProperty(y,u,t))}}for(var b in yPw)W[b]&&(c[b]=c[b]||[],c[b].push(W[b]))};
cPO=function(y,W,c){W=W||[];for(var Z=y.length-1;Z>=0;Z--){var G=y[Z];G?Array.isArray(G)?cPO(G,W):W.indexOf(G)<0&&(!c||c.indexOf(G)<0)&&W.unshift(G):console.warn("behavior is null, check for missing or 404 import")}return W};
Zdg=function(y,W){for(var c in W){var Z=y[c],G=W[c];y[c]=!("value"in G)&&Z&&"value"in Z?Object.assign({value:Z.value},G):G}};
o_h=function(y,W,c){var Z={},G=function(){return W.apply(this,arguments)||this};
_.R(G,W);G._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Y)for(var t=0,b;t<Y.length;t++)b=Y[t],b.properties&&this.createProperties(b.properties),b.observers&&this.createObservers(b.observers,b.properties);y.properties&&this.createProperties(y.properties);y.observers&&this.createObservers(y.observers,y.properties);this._prepareTemplate()}else W._finalizeClass.call(this)};
G.prototype.created=function(){W.prototype.created.call(this);var t=Z.created;if(t)for(var b=0;b<t.length;b++)t[b].call(this)};
G.prototype._registered=function(){var t=G.prototype;if(!t.hasOwnProperty("__hasRegisterFinished")){t.__hasRegisterFinished=!0;W.prototype._registered.call(this);N4&&u(t);t=Object.getPrototypeOf(this);var b=Z.beforeRegister;if(b)for(var r=0;r<b.length;r++)b[r].call(t);if(b=Z.registered)for(r=0;r<b.length;r++)b[r].call(t)}};
G.prototype._applyListeners=function(){W.prototype._applyListeners.call(this);var t=Z.listeners;if(t)for(var b=0;b<t.length;b++){var r=t[b];if(r)for(var F in r)this._addMethodEventListenerToNode(this,F,r[F])}};
G.prototype._ensureAttributes=function(){var t=Z.hostAttributes;if(t)for(var b=t.length-1;b>=0;b--){var r=t[b],F;for(F in r)this._ensureAttribute(F,r[F])}W.prototype._ensureAttributes.call(this)};
G.prototype.ready=function(){W.prototype.ready.call(this);var t=Z.ready;if(t)for(var b=0;b<t.length;b++)t[b].call(this)};
G.prototype.attached=function(){W.prototype.attached.call(this);var t=Z.attached;if(t)for(var b=0;b<t.length;b++)t[b].call(this)};
G.prototype.detached=function(){W.prototype.detached.call(this);var t=Z.detached;if(t)for(var b=0;b<t.length;b++)t[b].call(this)};
G.prototype.attributeChanged=function(t,b,r){W.prototype.attributeChanged.call(this);var F=Z.attributeChanged;if(F)for(var K=0;K<F.length;K++)F[K].call(this,t,b,r)};
_.dJ.Object.defineProperties(G,{properties:{configurable:!0,enumerable:!0,get:function(){var t={};if(Y)for(var b=0;b<Y.length;b++)Zdg(t,Y[b].properties);Zdg(t,y.properties);return t}},
observers:{configurable:!0,enumerable:!0,get:function(){var t=[];if(Y)for(var b=0,r;b<Y.length;b++)r=Y[b],r.observers&&(t=t.concat(r.observers));y.observers&&(t=t.concat(y.observers));return t}}});
if(c){Array.isArray(c)||(c=[c]);var D=W.prototype.behaviors;var Y=cPO(c,null,D);G.prototype.behaviors=D?D.concat(c):Y}var u=function(t){if(Y)for(var b=Y,r=0;r<b.length;r++)WeH(t,b[r],Z,Guy);WeH(t,y,Z,fif)};
N4||u(G.prototype);G.generatedFrom=y;return G};
mLF=function(y){var W=typeof y!=="string"?y:{is:y,notifyObserversOnUndefined:!0};W.fastInit===void 0&&(W.fastInit=!0);return function(c){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==_.SN)throw Error("Od");var Z=c.prototype;Z.is=W.is;XEO(Z,"created",function(){this.hostElement=this;this.polymerController=this});
DLO(Z,c,W.fastInit);W.notifyObserversOnUndefined&&(Z._overrideLegacyUndefined=!0);if(zsH)for(var G=_.z(Object.getOwnPropertyNames(Z)),D=G.next();!D.done;D=G.next()){D=D.value;var Y=Object.getOwnPropertyDescriptor(Z,D);Y.enumerable===!1&&(Y.enumerable=!0,Object.defineProperty(Z,D,Y))}if("template"in c)var u=function(){return c.template};
else W.template!==void 0&&(u=W.template);if(u!==void 0){var t;Object.defineProperty(Z,"_template",{get:function(){t===void 0&&(t=u());return t},
set:function(b){t=b},
configurable:!0,enumerable:!0})}Polymer(Z);c[YfH]=Z}};
s_F=function(y){y=y===void 0?{}:y;y.fastInit===void 0&&(y.fastInit=!0);return function(W){if(!y.disableInheritanceCheck&&Object.getPrototypeOf(W.prototype).constructor!==aN)throw Error("Pd");DLO(W.prototype,W,y.fastInit)}};
DLO=function(y,W,c){c=c===void 0?!1:c;uwt(W);c?XEO(y,"created",function(){this.disableEnforceFastDefaultValuesCheck||t2h(W,this)}):XEO(y,"ready",function(){for(var Z={},G=_.z(bsa(this.behaviors)),D=G.next();!D.done;D=G.next())D=D.value,D.properties&&Object.assign(Z,n_w(this,D.properties));
Object.assign(Z,n_w(this,this.properties));t2h(W,this);G=_.z(Object.keys(Z));for(D=G.next();!D.done;D=G.next())D=D.value,this[D]=Z[D]})};
t2h=function(y,W){if(zsH){y=new y;for(var c=_.z(Object.getOwnPropertyNames(y)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,W[Z]=y[Z];for(c=W;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){Z=_.z(Object.getOwnPropertyNames(c));for(var G=Z.next();!G.done;G=Z.next())G=G.value,y.hasOwnProperty(G)||Object.defineProperty(y,G,XMH(W,G))}}else y.apply(W)};
XMH=function(y,W){return{get:function(){var c=y[W];return c instanceof Function?c.bind(y):c},
set:function(c){y[W]=c}}};
n_w=function(y,W){if(!W)return{};for(var c={},Z=_.z(Object.keys(W)),G=Z.next();!G.done;G=Z.next())if(G=G.value,!W[G].readOnly){var D=y[G];D!==void 0&&(c[G]=D)}return c};
uwt=function(y){var W=new y;y=y.prototype.properties||{};for(var c=_.z(Object.keys(y)),Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,W.hasOwnProperty(Z)){var G=y[Z];typeof G==="function"&&(y[Z]=G={type:G});W[Z]!=null&&G.type===Object&&(G.type=bdw(W[Z].constructor))}};
bdw=function(y){for(var W=_.z(rPh),c=W.next();!c.done;c=W.next())if(c=c.value,y===c)return c;return Object};
Fef=function(y){return function(W,c){W.behaviors=W.behaviors||[];W.behaviors.push(y||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",W,c).prototype:void 0));Object.defineProperty(W,c,{get:function(){return this},
enumerable:!0,configurable:!0})}};
ULF=function(y){y=y===void 0?{}:y;return function(W,c){W.properties=W.properties||{};y.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?y.type=bdw(Reflect.getMetadata("design:type",W,c)):y.type=String);var Z=y,G=W.properties[c];W.properties[c]=G?Object.assign({},G,Z):Z}};
$LI=function(y){return function(W,c){W.listeners=W.listeners||{};W.listeners[y]=c}};
KeI=function(){var y=_.Cf.apply(0,arguments);if(y.length===0)throw Error("Qd");return function(W,c){W.observers=W.observers||[];W.observers.push(c+"("+y.join(",")+")")}};
OdH=function(){var y=_.Cf.apply(0,arguments);return function(W,c,Z){var G=Object.getOwnPropertyDescriptor(W,c).get,D="__compute__"+c;Object.defineProperty(W,D,{value:G,enumerable:!0});W.properties=W.properties||{};G=W.properties[c];G||(G={},W.properties[c]=G);G.computed=D+"("+y.join(",")+")";Z.get=void 0}};
_.xM=function(y,W,c){_.UR.call(this);this.JSC$9068_id_=null;this.usingListeners_=!1;this.JSC$9068_listener_=y;this.handler_=c;this.JSC$9068_win_=W||window;this.callback_=(0,_.$r)(this.JSC$9070_doAction_,this)};
M4=function(y){this.range_=y};
eN=function(y){this.range_=y};
kM=function(y,W,c){_.UR.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=y;this.scrollTimer_=new _.wJ(50);this.JSC$9147_eventHandler_=new _.q4(this);this.scrollDelta_=new _.If;this.containerIsActuallyContent_=y.tagName==="BODY"||y.tagName==="HTML";this.containerBounds_=g_h(y);this.containerIsActuallyContent_&&(y=_.bG(),this.containerBounds_.height=y.height,this.containerBounds_.width=y.width);this.margin_=W||0;if(W){if(W=this.containerBounds_.clone(),y=this.margin_){var Z=
Math.min(y,W.height*.25);W.top+=Z;W.height-=2*Z;y=Math.min(y,W.width*.25);W.left+=y;W.width-=2*y}}else W=this.containerBounds_;this.scrollBounds_=W;c||this.JSC$9147_eventHandler_.listen(_.Pu(this.containerNode_),"mousemove",this.JSC$9149_onMouseMove);this.JSC$9147_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9149_onTick_)};
_.jb=function(y){this.mechanism=y};
yn=function(y,W){this.JSC$9245_key_=y;this.JSC$9245_value_=W};
liy=function(y){if(y>=55296&&y<=57343||y>1114111)return"\ufffd";y in Rsf&&(y=Rsf[y]);var W="";y>65535&&(y-=65536,W+=String.fromCharCode(y>>>10&1023|55296),y=56320|y&1023);return W+=String.fromCharCode(y)};
E_I=function(y,W){return y<W?1:-1};
IiO=function(){return function(y){return y.charAt(1)==="#"?y.charAt(2)==="X"||y.charAt(2)==="x"?liy(parseInt(y.substr(3),16)):liy(parseInt(y.substr(2),10)):NTa[y.slice(1,-1)]}};
JPt=function(y){return y.slice(1,y.length-1).trim().replace(pMf,function(W){return P5f[W]||" "})};
WT=function(y){return y===32||y===9};
ZU=function(y,W){return W<y.length?y.charCodeAt(W):-1};
V2f=function(y){for(;y;){if(y._lastLineBlank)return!0;var W=y.type;if(W==="list"||W==="item")y=y._lastChild;else break}return!1};
Gr=function(y){if(C5g.test(y)){var W=1,c=0,Z=0;for(y[c]=="|"&&c++;c<y.length;){switch(y[c]){case "|":Z=1;break;case " ":break;case "\t":break;default:Z&&(Z=0,W++)}c++}return Q_H.test(y)?-W:W}return 0};
APF=function(y){return y=="table"||y=="row"||y=="cell"};
hsD=function(){return new fO("document",[[1,1],[0,0]])};
BTa=function(){};
oi=function(){var y={safe:!1};y=y||{};y.softbreak=y.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=y};
Sfw=function(y,W){var c="";if(y)if(y=y.toLowerCase(),y===" "||Hdf.test(y))c="space";else if(LeI.test(y))c="esc";else if(y.length==1){if(!W||v_H.test(y))c=y}else c=dLH.test(y)?y.replace("arrow",""):y=="multiply"?"*":y;return c};
ida=function(y,W){var c=y.hasModifiers;if(W.key)c=Sfw(W.key,c);else if(W.detail&&W.detail.key)c=Sfw(W.detail.key,c);else{c=W.keyIdentifier;var Z="";c&&(c in TTg?Z=TTg[c]:ait.test(c)?(c=parseInt(c.replace("U+","0x"),16),Z=String.fromCharCode(c).toLowerCase()):Z=c.toLowerCase());(c=Z)||(c=W.keyCode,Z="",Number(c)&&(c>=65&&c<=90?Z=String.fromCharCode(32+c):c>=112&&c<=123?Z="f"+(c-112+1):c>=48&&c<=57?Z=String(c-48):c>=96&&c<=105?Z=String(c-96):Z=xLa[c]),c=Z);c=c||""}return c===y.key&&(!y.hasModifiers||
!!W.shiftKey===!!y.shiftKey&&!!W.ctrlKey===!!y.ctrlKey&&!!W.altKey===!!y.altKey&&!!W.metaKey===!!y.metaKey)};
esw=function(y){return y.length===1?{combo:y,key:y,event:"keydown"}:y.split("+").reduce(function(W,c){var Z=c.split(":");c=Z[0];Z=Z[1];c in M2E?(W[M2E[c]]=!0,W.hasModifiers=!0):(W.key=c,W.event=Z||"keydown");return W},{combo:y.split(":").shift()})};
wME=function(y){return y.trim().split(" ").map(function(W){return esw(W)})};
qfE=function(y,W){if(y&&y.fn){var c=y.fn;y.fn=function(){try{c.apply(this,arguments)}catch(Z){if(Z instanceof DU)console.warn("Argument '"+Z.arg+"'"+(W?" for method '"+W+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw Z;}}}return y};
kuf=function(){var y=_.Cf.apply(0,arguments);return y.length===0?function(W){return W}:y.length===1?y[0]:y.reduce(function(W,c){return function(){return W(c.apply(null,_.No(_.Cf.apply(0,arguments))))}})};
j4y=function(){var y=_.Cf.apply(0,arguments);return function(W){return function(c,Z){c=W(c,Z);var G=function(){throw Error("Ae");},D={getState:c.getState,
dispatch:function(Y){return G.apply(null,[Y].concat(_.No(_.Cf.apply(1,arguments))))}};
Z=y.map(function(Y){return Y(D)});
G=kuf.apply(null,_.No(Z))(c.dispatch);return Object.assign({},c,{dispatch:G})}}};
cUO=function(y){Object.keys(y).forEach(function(W){var c=y[W];if(typeof c(void 0,{type:yUO})==="undefined")throw Error("Be`"+W);if(typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+WSI()})==="undefined")throw Error("Ce`"+W+"`"+yUO);})};
zr=function(y){for(var W=Object.keys(y),c={},Z=0;Z<W.length;Z++){var G=W[Z];typeof y[G]==="function"&&(c[G]=y[G])}var D=Object.keys(c);try{cUO(c)}catch(u){var Y=u}return function(u,t){u=u===void 0?{}:u;if(Y)throw Y;for(var b=!1,r={},F=0;F<D.length;F++){var K=D[F],l=u[K],N=(0,c[K])(l,t);if(typeof N==="undefined")throw u=t&&t.type,Error("De`"+(u?'"'+String(u)+'"':"(unknown type)")+"`"+K);r[K]=N;b=b||N!==l}return(b=b||D.length!==Object.keys(u).length)?r:u}};
Z$H=function(y,W,c){function Z(){if(r)throw Error("Ee");return u}
function G(l){if(typeof l!=="function")throw Error("Fe`"+typeof l);if(r)throw Error("Ge");var N=!0;b===t&&(b=t.slice());b.push(l);return function(){if(N){if(r)throw Error("He");N=!1;b===t&&(b=t.slice());var P=b.indexOf(l);b.splice(P,1);t=null}}}
function D(l){if(typeof l!=="object"||l===null)var N=!1;else{for(N=l;Object.getPrototypeOf(N)!==null;)N=Object.getPrototypeOf(N);N=Object.getPrototypeOf(l)===N}if(!N)throw Error("Ie`"+typeof l);if(typeof l.type==="undefined")throw Error("Je");if(r)throw Error("Ke");try{r=!0,u=Y(u,l)}finally{r=!1}N=t=b;for(var P=0;P<N.length;P++)(0,N[P])();return l}
if(typeof W==="function"&&typeof c==="function"||typeof c==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof W==="function"&&typeof c==="undefined"&&(c=W,W=void 0);if(typeof c!=="undefined"){if(typeof c!=="function")throw Error("Me`"+typeof c);return c(Z$H)(y,W)}if(typeof y!=="function")throw Error("Ne`"+typeof y);var Y=y,u=W,t=[],b=t,r=!1;D({type:yUO});var F={},K=(F.dispatch=D,F.subscribe=G,F.getState=Z,F.replaceReducer=function(l){if(typeof l!=="function")throw Error("Oe`"+
typeof l);Y=l;D({type:GFI});return K},F[f9H]=function(){var l={};
return l.subscribe=function(N){function P(){N.next&&N.next(Z())}
if(typeof N!=="object"||N===null)throw new TypeError("Pe`"+typeof N);P();return{unsubscribe:G(P)}},l[f9H]=function(){return this},l},F);
return K};
opI=function(y){function W(){G&&(G=!1,y());D&&Z()}
function c(){requestAnimationFrame(W)}
function Z(){var u=Date.now();if(G){if(u-Y<2)return;D=!0}else G=!0,D=!1,setTimeout(c,20);Y=u}
var G=!1,D=!1,Y=0;return Z};
m4=function(y){return typeof y==="number"?y:parseFloat(y)||0};
DKw=function(y){return _.Cf.apply(1,arguments).reduce(function(W,c){return W+m4(y["border-"+c+"-width"])},0)};
_.E=function(y,W){W=vX(Lf(W));y.innerHTML=W};
mKt=function(y){var W=zGy;W||(W=YpD(),W=zGy=_.Eb.transpose(W));W=W[y];return typeof W==="string"?W:_.sL(y)};
s4a=function(y){y=String(y).toLowerCase();var W=YpD()[y];return typeof W==="string"?W:_.uM(y)};
u1g=function(y){y=y.toLowerCase();y=YpD()[y];return typeof y==="string"?y:null};
YpD=function(){if(!twt){for(var y=Object.assign({},npF),W=_.z(XPH),c=W.next();!c.done;c=W.next())c=c.value,y[c.toLowerCase()]=c;twt=y}return twt};
FSF=function(y,W){var c=window.customElements;return c&&c.get(y)||b$I[y]===!0?2:W.name==="HTMLUnknownElement"?1:W.name==="HTMLElement"&&rUf.test(y)?3:0};
KSH=function(y,W){switch(W){case "innerHTML":return UKf(y)===1?2:null;case "textContent":return y=UKf(y),y===1||y===6?1:null;default:var c,Z;return(Z=(c=$KF[y.localName])==null?void 0:c[W])!=null?Z:null}};
UKf=function(y){var W=y.localName,c=FSF(W,y.constructor);switch(c){case 0:case 1:return O$1(W,y);case 3:case 2:return 1;default:_.d2(c,"got an unknown element classification")}};
O$1=function(y,W){var c=Object.hasOwnProperty.call(gpD,y)?gpD[y]:null;return c!==null?c:Object.hasOwnProperty.call(RGI,y)&&W instanceof SVGElement?RGI[y]:null};
l91=function(y,W){return W};
NaO=function(y){return(y=y.split(Ept,2))?{url:y[0],metadata:y[1]}:null};
pPw=function(y){var W=String(y.url).replace(I9F,encodeURIComponent);if(y=y.metadata){I9F.lastIndex=0;if(I9F.test(y))return null;W+=" "+y}return W};
CUF=function(y){function W(b){var r=b.localName;if(!b.getAttribute("is")&&FSF(r,b.constructor)===2){var F;return(F=t)!=null?F:t=document.createElement("polyresinuncustomized")}(b=u[r])||(b=u[r]=document.createElement(r));return b}
var c=y.reportHandler||void 0,Z=y.safeTypesBridge||PUH,G=/^$/;if(y=y.allowedIdentifierPrefixes){y=_.z(y);for(var D=y.next();!D.done;D=y.next())G=new RegExp(G.source+"|^"+_.JUt(D.value))}c&&c(!1,"initResin",null);var Y=Vwt(G,Z,c),u={},t=null;return function(b,r,F){var K=b.nodeType;if(K!==Node.ELEMENT_NODE){if(K===Node.TEXT_NODE){r=b.parentElement;F=!r;if(r&&r.nodeType===Node.ELEMENT_NODE){K=r.localName;var l=FSF(K,r.constructor);switch(l){case 0:case 1:r=O$1(K,r);F=r===1||r===6;break;case 3:case 2:F=
!0;break;default:_.d2(l,"got an unknown element classification")}}if(F)return function(Q){return""+Z(Q,"STRING",Q)}}return function(Q){if(!Q&&Q!==document.all)return Q;
c&&c(!0,"Failed to sanitize "+(b.parentElement&&b.parentElement.nodeName)+" #text node to value "+Q,b.parentElement);return tG}}var N=b.localName;
K=W(b);var P=null;switch(F){case "attribute":if(s4a(r)in K)break;return function(Q){return Q};
case "property":if(r in K){P=KSH(K,r);break}if((l=u1g(r))&&l in K)break;return function(Q){return Q};
default:_.d2(F,"got an unknown resin type, expected either 'property' or 'attribute'")}var V=F==="attribute"?r.toLowerCase():mKt(r);P||(P=Wyw(N,V,function(Q){var S=b.getAttribute(Q);return!S||/[\[\{]/.test(Q)?null:S}));
return function(Q){var S=nO,cy=null;if(!Q&&Q!==document.all)return Q;if(P!=null){var M=Y[P],fa=M.safeType;cy=M.safeReplacement;fa&&(S=Z(Q,fa,nO));S===nO&&(M.filterString?(S=String(Z(Q,"STRING",Q)),S=M.filterString(N,V,S)):M.filterRaw&&(S=M.filterRaw(N,V,Q,b)),S===cy&&(S=nO))}S===nO&&(S=cy||tG,c&&c(!0,"Failed to sanitize attribute of <"+N+">: <"+N+" "+V+'="'+Q+'">',b));return S}}};
Vwt=function(y,W,c){return[,{filterRaw:function(Z,G,D){return D},
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:Q4g,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Q4g,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:tG,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:AUF,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Z,G,D){D=
String(D).toLowerCase();return G7I(Z,G,D)?D:tG},
safeReplacement:tG,safeType:void 0},,{filterRaw:void 0,filterString:function(Z,G,D){return y.test(D)?D:tG},
safeReplacement:tG,safeType:"CONSTANT"},{filterRaw:function(Z,G,D,Y){if(typeof D==="string")var u=(u=D.match(hGD))?u.map(NaO).filter(Boolean):[];else if(Array.isArray(D))u=D;else return Q4g;var t=u;u=[];var b=[],r={};if(Array.isArray(t))for(var F=0,K=t.length;F<K;++F){var l=t[F],N=l&&l.url;if(N){var P=W(N,"URL",r);if(P){var V=P!==r;(V?u:b).push({url:V?P:N,metadata:l.metadata})}}}else b.push(t);t=b.length?JSON.stringify(b):null;b=nO;if(u.length){if(!Array.isArray(u))throw Error();b=u.map(pPw).filter(Boolean).join(" , ")||
nO}t&&c&&c(!0,"Failed to sanitize attribute value of <"+Z+">: <"+Z+" "+G+'="'+D+'">: '+t,Y);return b===nO?Q4g:b},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Ba1=function(y){var W=CUF(y);return function(c,Z,G,D){return D||D===document.all?W(c,Z,G)(D):D}};
Xs=function(y,W){function c(){function G(u,t,b){for(t=Reflect.getMetadata("parameters",u)||[];t.length<=b;)t.push(null);t[b]=t[b]||[];t[b].push(Y);Reflect.defineMetadata(t,u);return u}
var D=_.Cf.apply(0,arguments);if(this instanceof c)return Z.apply(this,D),this;var Y=new (Function.prototype.bind.apply(c,[null].concat(_.No(D))));G.annotation=Y;return G}
var Z=H$h(W);c.prototype.toString=function(){return"@"+y};
return c.annotationCls=c};
H$h=function(y){return function(){var W=_.Cf.apply(0,arguments),c=this;y.forEach(function(Z,G){G=W[G];if(Array.isArray(Z))c[Z[0]]=G&&G!==void 0?G:Z[1];else for(var D in Z)c[D]=G&&G[D]!==void 0?G[D]:Z[D]})}};
LSH=function(y){return y!==void 0&&y!==null};
bM=function(y){if(typeof y==="string")return y;if(y===void 0||y===null)return""+y;if(y.overriddenName)return y.overriddenName;if(y.name)return y.name;y=y.toString();var W=y.indexOf("\n");return W===-1?y:y.substring(0,W)};
vpw=function(y){y.__forward_ref__=vpw;y.toString=function(){return bM(this())};
return y};
rz=function(y){return typeof y==="function"&&y.hasOwnProperty("__forward_ref__")&&y.__forward_ref__===vpw?y():y};
dKO=function(y){return y?y.map(function(W){return new (Function.prototype.bind.apply(W.type.annotationCls,[null].concat(_.No(W.args?W.args:[]))))}):[]};
Spw=function(y){for(var W=[],c=0;c<y.length;++c){if(W.indexOf(y[c])>-1){W.push(y[c]);break}W.push(y[c])}return W};
Taf=function(y){return y.length>1?" ("+Spw(y.slice().reverse()).map(function(W){return bM(W.token)}).join(" -> ")+")":""};
xKH=function(y,W,c,Z){if(Z){var G=Error("We``"+(Z instanceof Error?Z.message:Z));G.ngOriginalError=Z}else G=Error();G.addKey=a9g;G.keys=[W];G.injectors=[y];G.constructResolvingMessage=c;G.message=G.constructResolvingMessage();G.ngOriginalError=Z;return G};
a9g=function(y,W){this.injectors.push(y);this.keys.push(W);this.message=this.constructResolvingMessage()};
i$E=function(y,W){return xKH(y,W,function(){return"No provider for "+bM(this.keys[0].token)+"!"+Taf(this.keys)})};
Mwh=function(y,W){return xKH(y,W,function(){return"Cannot instantiate cyclic dependency!"+Taf(this.keys)})};
eGf=function(y,W,c){return xKH(y,c,function(){var Z=bM(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Z+"!"+Taf(this.keys)+"."},W)};
wPH=function(y,W){for(var c=[],Z=0,G=W.length;Z<G;Z++){var D=W[Z];D&&D.length!=0?c.push(D.map(bM).join(" ")):c.push("?")}return Error("$e`"+bM(y)+"`"+c.join(", ")+"`"+bM(y))};
Z2D=function(y){var W=void 0,c=void 0;if(y&&y.useClass!==void 0){W=y.useClass;var Z=rz(y.useClass);var G=qpI.factory(Z);Z=kFD(Z)}else y&&y.useExisting!==void 0?(G=function(D){return D},Z=[j7w(Fs.get(rz(y.useExisting)))]):y&&y.useFactory!==void 0?(G=y.useFactory,Z=yhH(y.useFactory,y.deps)):(c=y.useValue,G=function(){return y.useValue},Z=WzO);
return new chH(G,Z,W,c)};
fyI=function(y){return new GHa(Fs.get(rz(y.provide)),[Z2D(y)],y.multi)};
DJD=function(y){y=obf(y,[]).map(fyI);for(var W=new Map,c=0;c<y.length;c++){var Z=y[c],G=W.get(Z.key.id);if(G){if(Z.multiProvider!==G.multiProvider)throw Error("bf`"+G+"`"+Z);if(Z.multiProvider)for(var D=0;D<Z.resolvedFactories.length;D++)G.resolvedFactories.push(Z.resolvedFactories[D]);else W.set(Z.key.id,Z)}else G=void 0,Z.multiProvider?G=new GHa(Z.key,Z.resolvedFactories.slice(),Z.multiProvider):G=Z,W.set(Z.key.id,G)}return Array.from(W.values())};
obf=function(y,W){y.forEach(function(c){if(c instanceof z_a)W.push({provide:c,useClass:c});else if(c&&typeof c=="object"&&c.provide!==void 0)W.push(c);else if(c instanceof Array)obf(c,W);else throw Error("Ze`"+c);});
return W};
yhH=function(y,W){if(W){var c=W.map(function(Z){return[Z]});
return W.map(function(Z){return YXt(y,Z,c)})}return kFD(y)};
kFD=function(y){var W=qpI.parameters(y);if(!W)return[];if(W.some(function(c){return c==null}))throw wPH(y,W);
return W.map(function(c){return YXt(y,c,W)})};
YXt=function(y,W,c){var Z=null,G=!1;if(!Array.isArray(W))return W instanceof mJO?s7g(W.token,G,null):s7g(W,G,null);for(var D=null,Y=0;Y<W.length;++Y){var u=W[Y];if(u instanceof z_a)Z=u;else if(u instanceof mJO)Z=u.token;else if(u instanceof uOF)G=!0;else if(u instanceof tmt||u instanceof nbf)D=u}Z=rz(Z);if(Z!=null)return s7g(Z,G,D);throw wPH(y,c);};
s7g=function(y,W,c){return new Xgh(Fs.get(rz(y)),W,c)};
b2H=function(y,W){for(var c=Array(y.providers.length),Z=0;Z<y.providers.length;++Z){var G=Z;if(Z<0||Z>=y.providers.length)throw Error("af`"+Z);c[G]=W(y.providers[Z])}return c};
rht=function(y){return typeof y==="function"&&qpI.parameters(y).every(function(W){return!!W})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(y)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(y)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y,W){var c,Z;if(y.contains(W))return!0;y=_.UL(y).querySelectorAll("content,slot");for(c=0;c<y.length;++c){var G=_.UL(y[c]).getDistributedNodes();for(Z=0;Z<G.length;++Z)if(G[Z].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(G[Z],W))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){y.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(y)&&y.preventDefault();y.targetTouches&&(y=y.targetTouches[0],Fzg=y.pageX,UJ1=y.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 y=0,W=$T.length;y<W;y++)document.addEventListener($T[y],_._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 y=0,W=$T.length;y<W;y++)document.removeEventListener($T[y],_._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(y){var W=_.UL(y).rootTarget;y.type!=="touchmove"&&$JH!==W&&($JH=W,KzI=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.UL(y).path));if(!KzI.length)return!0;if(y.type==="touchstart")return!1;y=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(y);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(KzI,y.deltaX,y.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){for(var W=[],c=y.indexOf(O2a),Z=0;Z<=c;Z++)if(y[Z].nodeType===Node.ELEMENT_NODE){var G=y[Z],D=G.style;D.overflow!=="scroll"&&D.overflow!=="auto"&&(D=window.getComputedStyle(G));D.overflow!=="scroll"&&D.overflow!=="auto"||W.push(G)}return W};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y,W,c){if(W||c)for(var Z=Math.abs(c)>=Math.abs(W),G=0;G<y.length;G++){var D=y[G];if(Z?c<0?D.scrollTop>0:D.scrollTop<D.scrollHeight-D.clientHeight:W<0?D.scrollLeft>0:D.scrollLeft<D.scrollWidth-D.clientWidth)return D}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(y){var W={deltaX:y.deltaX,deltaY:y.deltaY};"deltaX"in y||("wheelDeltaX"in y&&"wheelDeltaY"in y?(W.deltaX=-y.wheelDeltaX,W.deltaY=-y.wheelDeltaY):"wheelDelta"in y?(W.deltaX=0,W.deltaY=-y.wheelDelta):"axis"in y?(W.deltaX=y.axis===1?y.detail:0,W.deltaY=y.axis===2?y.detail:0):y.targetTouches&&(y=y.targetTouches[0],W.deltaX=Fzg-y.pageX,W.deltaY=UJ1-y.pageY));return W};
gbI=function(y){this.element=y;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
lyF=function(y){this.element=y;this.color=window.getComputedStyle(y).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");_.UL(this.waveContainer).appendChild(this.wave);R_t(this)};
KO=function(y,W){for(var c in y)if(c.toLowerCase()===W.toLowerCase())return y[c]};
EbF=function(y,W){for(var c in y)if(c.toLowerCase()===W.toLowerCase()){delete y[c];break}};
IyD=function(y){y=_.Eb.clone(y);for(var W=0;W<NqI.length;++W){var c=NqI[W],Z=KO(y,c);Z&&(y["X-Goog-Upload-Header-"+c]=Z,EbF(y,c))}return y};
pgI=function(y){y=_.Eb.clone(y);EbF(y,"X-Goog-Upload-Status")};
Jhg=function(y){return PiH.some(function(W){return W.test(y)})};
Ahw=function(y,W){var c;var Z=(c=y.formContent)==null?void 0:c.locale;c=Z==null?void 0:Z.split("-")[0];Z=Z&&Vma.includes(Z)?Z:c&&Vma.includes(c)?c:void 0;Z=(Z!=null?Z:"en").replaceAll("-","_").toLowerCase();var G;y=((G=y.initializationData)==null?0:G.useNightlyRelease)?"nightly":"live";var D;return(W==null?0:(D=W.getEnableAlohaBinarySplit)==null?0:D.call(W))?_.cu(CiO,y):_.cu(Q7F,y,Z)};
Bqg=function(y,W,c,Z){if(h_f)return h_f;var G=Ahw(y,Z);return h_f=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(D,Y){var u=_.uC("SCRIPT");_.eQ(u,G);u.onload=function(){W.feedbackV2GlobalObject?D(W.feedbackV2GlobalObject):Y(Error("ef"))};
u.onerror=function(){Y(Error("ff`"+G.toString()))};
c.body.appendChild(u)})};
Lz1=function(y,W,c,Z){if(H2g)return H2g;var G=Ahw(y,Z);return H2g=W.feedbackV2GlobalObject?Promise.resolve(W.feedbackV2GlobalObject):new Promise(function(D,Y){var u=_.uC("SCRIPT");_.eQ(u,G);u.onload=function(){W.feedbackV2GlobalObject?D(W.feedbackV2GlobalObject):Y(Error("ef"))};
u.onerror=function(){Y(Error("ff`"+G.toString()))};
c.body.appendChild(u)})};
vbH=function(y,W,c,Z,G){G=G===void 0?!0:G;var D,Y,u,t,b;return _.m(function(r){switch(r.nextAddress){case 1:return D=Date.now(),_.n(r,Bqg(y,c,Z,W),2);case 2:Y=r.yieldResult;if(!(G||((t=y.initializationData)==null?0:t.useNightlyRelease)||((b=y.initializationData)==null?0:b.isLocalServer))){u=Y.initializeFeedbackClient(y,D,W);r.jumpTo(3);break}return _.n(r,Y.initializeFeedbackClientAsync(y,D,W),4);case 4:u=r.yieldResult;case 3:return u.initiateAloha(),r.return(u)}})};
dJI=function(y,W,c,Z){var G,D,Y;return _.m(function(u){if(u.nextAddress==1)return G=Date.now(),_.n(u,Lz1(y,c,Z.document,W),2);if(u.nextAddress!=3)return D=u.yieldResult,_.n(u,D.initializeFeedbackClientAsync(y,G,W,Z),3);Y=u.yieldResult;Y.initiateAloha();return u.return(Y)})};
SXD=function(y,W,c){var Z=!0;Z=Z===void 0?!0:Z;var G,D,Y,u,t,b,r,F,K,l;return _.m(function(N){G=c||_.DH;if((D=W)==null?0:(u=(Y=D).getEnableAlohaBinarySplit)==null?0:u.call(Y)){t=G;if(t.isFormOpened)throw b=Error("gf"),b.name="DuplicateFormError",b;t.isFormOpened=!0;y.callbacks=y.callbacks||{};r=y.callbacks.onClose||function(){};
y.callbacks.onClose=function(P){t.isFormOpened=!1;r(P)};
try{return N.return(dJI(y,W,t,G))}catch(P){throw t.isFormOpened=!1,P;}}else{F=G;if(F.isFormOpened)throw K=Error("gf"),K.name="DuplicateFormError",K;F.isFormOpened=!0;y.callbacks=y.callbacks||{};l=y.callbacks.onClose||function(){};
y.callbacks.onClose=function(P){F.isFormOpened=!1;l(P)};
try{return N.return(vbH(y,W,F,G.document,Z))}catch(P){throw F.isFormOpened=!1,P;}}_.F2(N)})};
MmI=function(y,W){return _.m(function(c){return c.return(new Promise(function(Z){var G=Tqy(W!=null?W:"")+"/aloha_form_properties?productId="+y;ayy(G,function(D){D=D.target;var Y=null;try{var u=JSON,t=u.stringify;if(D.JSC$7661_xhr_){var b=D.JSC$7661_xhr_.responseText;b.indexOf(")]}'\n")==0&&(b=b.substring(5));var r=(0,_.OL)(b)}else r=void 0;Y=EXh(xJO,t.call(u,r))}catch(F){t=new xJO,r=i2h(),r=_.gz(r,13,!1),r=_.gz(r,14,!0),r=_.gz(r,15,!0),r=_.gz(r,20,!1),Y=_.uF(t,1,r)}Z(Y)},"GET","",{},2E3,!0)}))})};
Tqy=function(y){return Jhg(y)?y:"https://www.google.com/tools/feedback"};
kHg=function(y){y=y.match(new RegExp(e_D,"gi"))||[];y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;a:{var c=_.z(wgt);for(var Z=c.next();!Z.done;Z=c.next())if(Z.value.test(W)){c=!1;break a}c=!0}if(!c)a:{c=_.z(qXE);for(Z=c.next();!Z.done;Z=c.next())if(Z.value.test(W)){c=!0;break a}c=!1}if(c)return!0}return!1};
jOH=function(y){switch(y){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"}};
WAO=function(y){if(window.crypto&&window.crypto.getRandomValues)try{var W=Array(y),c=new Uint8Array(y);window.crypto.getRandomValues(c);for(var Z=0;Z<W.length;Z++)W[Z]=c[Z];return W}catch(D){}W=Array(y);for(c=0;c<y;c++){Z=Date.now();for(var G=0;G<Z%23;G++)W[c]=Math.random();W[c]=Math.floor(Math.random()*256)}if(yJE)for(c=1,Z=0;Z<yJE.length;Z++)W[c%y]^=W[(c-1)%y]/4^yJE.charCodeAt(Z),c++;return W};
Ri=function(y){y=WAO(y);for(var W=[],c=0;c<y.length;c++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(y[c]&63));return W.join("")};
ZUg=function(y){y&&_.$g("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:cJy,clientScreenNonce:y})};
GAE=function(y){return _.Nn("client-screen-nonce-store",{})[y===void 0?0:y]};
fYh=function(y,W){W=W===void 0?0:W;var c=_.Nn("client-screen-nonce-store");c||(c={},_.l1("client-screen-nonce-store",c));c[W]=y};
ojD=function(y){y=y===void 0?0:y;return y===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+y};
DDy=function(y){return _.Nn(ojD(y===void 0?0:y))};
_.EL=function(y){return(y=DDy(y===void 0?0:y))?new _.lM({veType:y,youtubeData:void 0,jspbYoutubeData:void 0}):null};
zFH=function(){var y=_.Nn("csn-to-ctt-auth-info");y||(y={},_.l1("csn-to-ctt-auth-info",y));return y};
YSO=function(){return Object.values(_.Nn("client-screen-nonce-store",{})).filter(function(y){return y!==void 0})};
_.NR=function(y){y=GAE(y===void 0?0:y);if(!y&&!_.I8("USE_CSN_FALLBACK",!0))return null;y||(y="UNDEFINED_CSN");return y?y:null};
sOt=function(y){for(var W=_.z(Object.values(mDh)),c=W.next();!c.done;c=W.next())if(_.NR(c.value)===y)return!0;return!1};
upF=function(y,W,c){var Z=zFH();(c=_.NR(c))&&delete Z[c];W&&(Z[y]=W)};
Ii=function(y){return zFH()[y]};
_.tXI=function(y,W,c,Z){c=c===void 0?0:c;if(y!==GAE(c)||W!==_.Nn(ojD(c)))if(upF(y,Z,c),fYh(y,c),_.l1(ojD(c),W),W=function(){setTimeout(function(){ZUg(y)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(W)}catch(G){W()}else W()};
njH=function(y,W){W=W===void 0?"":W;var c=[],Z;for(Z in y)if(y.hasOwnProperty(Z)){var G=W!==""?W+"."+Z:Z;typeof y[Z]==="object"?c.push.apply(c,_.No(njH(y[Z],G))):c.push([G,y[Z]])}c.sort();return c};
_.bUI=function(y){var W=_.Cf.apply(1,arguments);if(!pO(y)||W.some(function(Z){return!pO(Z)}))throw Error("hf");
W=_.z(W);for(var c=W.next();!c.done;c=W.next())XiH(y,c.value)};
XiH=function(y,W){for(var c in W)if(pO(W[c])){if(c in y&&!pO(y[c]))throw Error("jf");c in y||(y[c]={});XiH(y[c],W[c])}else if(rJO(W[c])){if(c in y&&!rJO(y[c]))throw Error("kf");c in y||(y[c]=[]);FAD(y[c],W[c])}else y[c]=W[c];return y};
FAD=function(y,W){W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,pO(c)?y.push(XiH({},c)):rJO(c)?y.push(FAD([],c)):y.push(c);return y};
pO=function(y){return typeof y==="object"&&!Array.isArray(y)};
rJO=function(y){return typeof y==="object"&&Array.isArray(y)};
$DH=function(y){for(var W=_.z(Object.entries(UDF)),c=W.next();!c.done;c=W.next())if(c=_.z(c.value),c.next(),c=c.next().value,c==="SLI_STATUS_"+y)return c;return"SLI_STATUS_UNKNOWN"};
_.PT=function(y,W,c,Z){return KA1(y,W,function(){return new _.OUh(y,W,c,Z)})};
_.gjH=function(){return _.PT("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
RFt=function(){return _.PT("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
JG=function(){return _.PT("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
lYh=function(){return _.PT("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Ejy=function(){return _.PT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
N_h=function(){return _.PT("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
PpH=function(y){y&&(y.dataset?y.dataset[IYH()]="true":_.kX([_.yx(piy)],y,"data-loaded","true".toString()))};
JJH=function(y){return y?y.dataset?y.dataset[IYH()]:y.getAttribute("data-loaded"):null};
IYH=function(){return VXF.loaded||(VXF.loaded="loaded".replace(/\-([a-z])/g,function(y,W){return W.toUpperCase()}))};
_.Vn=function(y,W,c){Cpt(y,W,c===void 0?null:c)};
_.AJH=function(y,W){y&&W&&(y=""+_.kF(W),(y=QOf[y])&&_.v0H(y))};
Cpt=function(y,W,c){c=c===void 0?null:c;var Z=_.hFw(y),G=document.getElementById(Z),D=G&&JJH(G),Y=G&&!D;D?W&&W():(W&&(D=_.k2(Z,W),W=""+_.kF(W),QOf[W]=D),Y||(G=B_I(y,Z,function(){JJH(G)||(PpH(G),_.diI(Z),_.j5(function(){_.TZw(Z)},0))},c)))};
B_I=function(y,W,c,Z){Z=Z===void 0?null:Z;var G=_.uC("SCRIPT");G.id=W;G.onload=function(){c&&setTimeout(c,0)};
G.onreadystatechange=function(){switch(G.readyState){case "loaded":case "complete":G.onload()}};
Z&&G.setAttribute("nonce",Z);_.eQ(G,_.OR(y));y=document.getElementsByTagName("head")[0]||document.body;y.insertBefore(G,y.firstChild);return G};
_.hFw=function(y){var W=document.createElement("a");hn(W,y);return"js-"+CO(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.vjD=function(){var y=_.Eb.clone(HUH),W;return(new _.fD(function(c,Z){y.onSuccess=function(G){EAI(G)?c(new LAy(G)):Z(new _.Qn("Request failed, status="+kN(G),"net.badstatus",G))};
y.onError=function(G){Z(new _.Qn("Unknown request error","net.unknown",G))};
y.onTimeout=function(G){Z(new _.Qn("Request timed out","net.timeout",G))};
W=_.ZP("//googleads.g.doubleclick.net/pagead/id",y)})).thenCatch(function(c){if(c instanceof _.AG){var Z;
(Z=W)==null||Z.abort()}return _.hG(c)})};
dDO=function(y){var W=_.Nn("INNERTUBE_HOST_OVERRIDE");W&&(y=String(W)+String(_.BT(y)));return y};
SSh=function(y){var W={};_.O("json_condensed_response")&&(W.prettyPrint="false");return y=urw(y,W)};
_.HT=function(y){return Sy(y)?"same-origin":"include"};
_.LO=function(y){return Sy(y)?"same-origin":"cors"};
vT=function(y,W,c){c=c===void 0?{}:c;y={method:W===void 0?"POST":W,mode:_.LO(y),credentials:_.HT(y)};W={};for(var Z=_.z(Object.keys(c)),G=Z.next();!G.done;G=Z.next())G=G.value,c[G]&&(W[G]=c[G]);Object.keys(W).length>0&&(y.headers=W);return y};
_.dz=function(y,W){W=W===void 0?{}:W;return"service:"+y+"/"+Object.keys(W).sort().map(function(c){return c+":"+W[c]}).join("/")};
T_I=function(y){var W,c,Z,G;y=(W=_.g(y,_.Sb))==null?void 0:(c=W.watchEndpointSupportedOnesieConfig)==null?void 0:(Z=c.html5PlaybackOnesieConfig)==null?void 0:(G=Z.commonConfig)==null?void 0:G.url;if(!y)return[];W=new _.Tr(y);return W.JSC$7898_domain_?["https://"+W.JSC$7898_domain_+"/generate_204"]:[]};
_.iUa=function(){return aYf()||X$F()||xDy&&gr("version/")?!0:_.Nn("EOM_VISITOR_DATA")?!1:!0};
MXE=function(y){var W=y.docid||y.video_id||y.videoId||y.id;if(W)return W;W=y.raw_player_response;W||(y=y.player_response)&&(W=JSON.parse(y));return W&&W.videoDetails&&W.videoDetails.videoId||null};
_.wiF=function(y){a:{var W="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(W="EMBEDDED_PLAYER_MODE_PFL");var c=y.raw_embedded_player_response;if(!c&&(y=y.embedded_player_response))try{c=JSON.parse(y)}catch(G){break a}if(c)b:for(var Z in eFI)if(eFI[Z]==c.embeddedPlayerMode){W=eFI[Z];break b}}return W==="EMBEDDED_PLAYER_MODE_PFL"};
_.qSD=function(){if(_.O("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.iUa())return Error("pf");var y=_.Nn("PLAYER_VARS",{});if(_.Eb.get(y,"privembed",!1)=="1")return Error("qf");if(_.wiF(y))return Error("rf")};
kAg=function(y){return y.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
ai=function(y){return!isNaN(Number(y))&&!_.tH(y)};
_.wz=function(y,W,c,Z){Z=Z===void 0?!0:Z;var G=_.Nn("VALID_SESSION_TEMPDATA_DOMAINS",[]),D=_.vI(window.location.href);D&&G.push(D);D=_.vI(y);if(_.Hy(G,D)||!D&&_.mE(y,"/"))if(G=document.createElement("a"),hn(G,y),y=G.href)if(y=_.BT(y),y=_.xT(y))Z&&!W.csn&&(W.itct||W.ved)&&(W=Object.assign({csn:_.NR()},W)),c?(c=parseInt(c,10),isFinite(c)&&c>0&&jXI(y,W,c)):jXI(y,W)};
Wxh=function(y){var W=_.Nn("VALID_SESSION_TEMPDATA_DOMAINS",[]),c=_.vI(window.location.href);c&&W.push(c);c=_.vI(y);if(!(_.Hy(W,c)||!c&&_.mE(y,"/")))return null;y=_.BT(y);(y=_.xT(y))?(y=yeH(y),y=(y=_.DP.get(y,void 0)||null)?_.AW(y):{}):y=null;return y};
jXI=function(y,W,c){y=yeH(y);W=W?_.Gj(W):"";c=c||5;_.iUa()&&_.zj(y,W,c)};
yeH=function(y){for(var W=_.z(ceO),c=W.next();!c.done;c=W.next())y=_.qR(y,c.value);return"ST-"+CO(y).toString(36)};
ZGy=function(y,W){y.commandMetadata&&_.g(y.commandMetadata,_.kT)&&_.g(y.commandMetadata,_.kT).url&&(y=_.hW(_.g(y.commandMetadata,_.kT).url).adurl)&&_.nAf(y)&&_.wz(_.BT(y),{encoded_ad_playback_context:W})};
_.GCF=function(y){if(y.requestFullscreen)y=y.requestFullscreen(void 0);else if(y.webkitRequestFullscreen)y=y.webkitRequestFullscreen();else if(y.mozRequestFullScreen)y=y.mozRequestFullScreen();else if(y.msRequestFullscreen)y=y.msRequestFullscreen();else if(y.webkitEnterFullscreen)y=y.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return y instanceof Promise?y:Promise.resolve()};
_.yu=function(y){var W;_.IzO(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.jG()==y&&(W=document):W=y;if(W&&(y=_.IzO(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))){y.call(W)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.jG=function(){var y=y===void 0?!1:y;var W=_.IzO(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(y)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null};
_.WA=function(y,W){W=W===void 0?!0:W;y.addEventListener("wheel",fNF);y.overscrollConfig={cooldown:W}};
_.cA=function(y){y.overscrollConfig=void 0;y.removeEventListener("wheel",fNF)};
fNF=function(y){var W=y.deltaY,c=y.target,Z=null;if(window.Polymer&&window.Polymer.Element){if(c=y.path||y.composedPath&&y.composedPath()){c=_.z(c);for(var G=c.next();!G.done&&(G=G.value,!oK1(G,W));G=c.next())if(G.overscrollConfig){Z=G;break}}}else for(;c&&!oK1(c,W);){if(c.overscrollConfig){Z=c;break}c=c.parentElement}Z&&(W=Z.overscrollConfig,W.cooldown?(Z=y.deltaY,c=W.lastDeltaY||0,W.lastDeltaY=Z,G=W.lastStopped||0,c&&G&&c>0==Z>0?Math.abs(c)>=Math.abs(Z)?(Z=G+1200,c=!1):(Z=G+600,c=!0):(Z=Date.now()+
600,c=!0),Z>Date.now()&&(y.preventDefault(),c&&(W.lastStopped=Date.now()))):y.preventDefault())};
oK1=function(y,W){return W<0&&y.scrollTop>0||W>0&&y.scrollTop<y.scrollHeight-y.clientHeight-1?(y=getComputedStyle(y).overflowY,y=="auto"||y=="scroll"):!1};
_.Z2=function(y,W,c,Z){Z||(Z={bubbles:!0,cancelable:!1,composed:!0});c!==null&&c!==void 0&&(Z.detail=c);W=new CustomEvent(W,Z);y.dispatchEvent(W);return W};
_.GG=function(y,W,c,Z){W=new Dhf(W,!(Z===void 0||!Z),c);_.Z2(y,"yt-action",W);return W.returnValue};
_.fl=function(y,W,c){return _.GG(y,W,c,!0)};
_.oP=function(y,W,c){return _.GG(y,W,c)[0]};
_.mq=function(y,W,c,Z){W&&W.length&&W.forEach(function(G){var D=IxF(G);D&&(_.O("handle_service_request_actions")&&G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.sendPost?_.D2(c?c:y,[G]):_.fl(y,D,[G,c,Z]))})};
_.D2=function(y,W){var c=[y];W&&c.push.apply(c,W);W=_.GG(y,"yt-service-request",c);return W.length>0&&(W=W[0],_.Z2(y,"yt-service-request-sent",W),W&&W.ajaxPromise)?(W.ajaxPromise.then(function(Z){_.Z2(y,"yt-service-request-completed",Z)},function(Z){_.Z2(y,"yt-service-request-error",{error:Z,
params:c})},y),W.ajaxPromise):_.sc()};
_.tE=function(y,W){if(_.O("handle_service_request_actions"))_.mq(W,y,W);else{y=_.z(y);for(var c=y.next();!c.done;c=y.next()){c=c.value;var Z=void 0;((Z=_.g(c,_.uN))==null?0:Z.commands)?_.tE(_.g(c,_.uN).commands,W):(Z=void 0,((Z=_.g(c,_.nl))==null?0:Z.actions)?_.tE(_.g(c,_.nl).actions,W):(Z=void 0,((Z=_.g(c.commandMetadata,_.kT))==null?0:Z.sendPost)?_.D2(W,[c]):_.mq(W,[c],W)))}}};
_.YMf=function(y,W,c){W=W===void 0?{}:W;typeof W==="function"&&(W={callback:W});c||W._c&&W._c.jsl&&W._c.jsl.h||_.Eb.extend(W,{_c:{jsl:{h:_.Nn("GAPI_HINT_PARAMS")}}});(W.gapiHintOverride||_.Nn("GAPI_HINT_OVERRIDE"))&&(c=_.hW(document.location.href).gapi_jsh)&&_.Eb.extend(W,{_c:{jsl:{h:c}}});zgF(y,W)};
_.bN=function(y,W,c){W=W===void 0?{}:W;y=(y=y in Xr?Xr[y]:c)||"";c={};for(var Z in W){c={key$jscomp$782:c.key$jscomp$782};c.key$jscomp$782=Z;var G=function(D){return function(){return String(W[D.key$jscomp$782])}}(c);
y=y.replace(new RegExp("\\$\\{"+c.key$jscomp$782+"\\}","gi"),G);y=y.replace(new RegExp("\\$"+c.key$jscomp$782,"gi"),G)}return y};
_.rK=function(y,W){return mhD(y in Xr?Xr[y]:{},W)};
mhD=function(y,W){var c=_.Nn("I18N_PLURAL_RULES");c||(c=function(Z){return Z==1?"one":"other"});
return(y=y["case"+W]||y[c(W)])?y.replace("#",W.toString()):W+""};
t0E=function(y){var W=sXD(y),c=document.getElementById(W),Z=c&&JJH(c);Z||c&&!Z||(c=uzf(y,W,function(){if(!JJH(c)){PpH(c);_.diI(W);var G=_.Fr(_.TZw,W);_.j5(G,0)}}))};
uzf=function(y,W,c){var Z=document.createElement("link");Z.id=W;Z.onload=function(){c&&setTimeout(c,0)};
y=_.OR(y);_.jq(Z,y,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Z);return Z};
sXD=function(y){var W=_.uC("A");hn(W,gf(y));return"css-"+CO(W.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Xs1=function(y){var W=nK1();y!==W&&(W=_.Uc(),!_.O("web_autonav_allow_off_by_default")&&y||_.$A(0,141,!0),_.$A(0,140,!y),W.save())};
nK1=function(){var y=_.Uc();return _.O("web_autonav_allow_off_by_default")&&!y.getFlag(141)&&_.Nn("AUTONAV_OFF_BY_DEFAULT")?!1:!y.getFlag(140)};
bGI=function(y,W){var c,Z;y=((c=y.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Z=c.videoAuthorizationToken)==null?void 0:Z.credentialTransferTokens)||[];for(c=0;c<y.length;++c)if(y[c].scope===W)return y[c].token||void 0};
reE=function(y){for(var W=0,c=0;c<y.length;c++)W=W*31+y.charCodeAt(c),c<y.length-1&&(W%=0x800000000000);return W%1E5};
_.Kl=function(y){return _.JW("ytcsi."+(y||"")+"data_")||FxH(y)};
_.Uhw=function(y){y=_.Kl(y);y.metadata||(y.metadata={});return y.metadata};
_.$hh=function(y){y=_.Kl(y);y.tick||(y.tick={});return y.tick};
_.KxI=function(y){y=_.Kl(y);if(y.gel){var W=y.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else y.gel={gelTicks:{},gelInfos:{}};return y.gel};
_.OGf=function(y){y=_.KxI(y);y.gelInfos||(y.gelInfos={});return y.gelInfos};
gKa=function(y){var W=_.Kl(y).nonce;W||(W=Ri(16),_.Kl(y).nonce=W);return W};
FxH=function(y){var W={tick:{},info:{}};_.LR("ytcsi."+(y||"")+"data_",W);return W};
RgI=function(){var y=_.JW("ytcsi.debug");y||(y=[],_.LR("ytcsi.debug",y),_.LR("ytcsi.reference",{}));return y};
_.EKI=function(y){y=y||"";var W=lNf();if(W[y])return W[y];var c=RgI(),Z={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};c.push(Z);return W[y]=Z};
NHI=function(y){y=y||"";var W=lNf();W[y]&&delete W[y];var c=RgI(),Z={timerName:y,info:{},tick:{},span:{},jspbInfo:[]};c.push(Z);W[y]=Z};
lNf=function(){var y=_.JW("ytcsi.reference");if(y)return y;RgI();return _.JW("ytcsi.reference")};
_.psg=function(y){return INE[y]||"LATENCY_ACTION_UNKNOWN"};
C_H=function(y,W,c){c=c===void 0?{}:c;var Z=!1;_.I8("ytLoggingEventsDefaultDisabled",!1)&&(Z=!0);Z=Z?null:UP;c=c===void 0?{}:c;var G=Math.round(c.timestamp||(0,_.Tj)());_.tc(W,1,G<Number.MAX_SAFE_INTEGER?G:0);G=new P_H;if(c.lact)_.tc(G,1,isFinite(c.lact)?c.lact:-1);else if(c.timestamp)_.tc(G,1,-1);else{var D=_.MV();_.tc(G,1,isFinite(D)?D:-1)}if(c.sequenceGroup&&!_.O("web_gel_sequence_info_killswitch")){D=c.sequenceGroup;var Y=Wla(D),u=new JeH;u.setIndex(Y);_.Ub(u,1,D);_.uF(G,3,u);c.endOfSequence&&
delete V0I[c.sequenceGroup]}_.uF(W,33,G);(c.sendIsolatedPayload?Duh:zUh)(y,{endpoint:"log_event",payload:W,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},Z)};
_.gK=function(){return(_.O("csi_use_time_origin")||_.O("csi_use_time_origin_tvhtml5"))&&_.Oc.timeOrigin?Math.floor(_.Oc.timeOrigin):_.Oc.timing.navigationStart};
_.QXE=function(y,W){_.RP("_start",y,W)};
_.lN=function(y,W){if(!_.O("web_csi_action_sampling_enabled")||!_.Kl(W).actionDisabled){var c=_.EKI(W||"");_.bUI(c.info,y);y.loadType&&(c=y.loadType,_.Uhw(W).loadType=c);_.bUI(_.OGf(W),y);c=gKa(W);W=_.Kl(W).cttAuthInfo;Aea().info(y,c,W)}};
hgE=function(){var y,W,c,Z;return((Z=_.U().resolve(_.xN(bt))==null?void 0:(y=yzO())==null?void 0:(W=y.loggingHotConfig)==null?void 0:(c=W.csiConfig)==null?void 0:c.debugTicks)!=null?Z:[]).map(function(G){return Object.values(G)[0]})};
_.RP=function(y,W,c){if(!_.O("web_csi_action_sampling_enabled")||!_.Kl(c).actionDisabled){var Z=gKa(c),G;if(G=_.O("web_csi_debug_sample_enabled")&&Z){(_.U().resolve(_.xN(bt))==null?0:yzO())&&!BHh&&(BHh=!0,_.RP("gcfl",(0,_.Tj)(),c));var D,Y,u;G=(_.U().resolve(_.xN(bt))==null?void 0:(D=yzO())==null?void 0:(Y=D.loggingHotConfig)==null?void 0:(u=Y.csiConfig)==null?void 0:u.debugSampleWeight)||0;if(D=G!==0)b:{D=hgE();if(D.length>0)for(Y=0;Y<D.length;Y++)if(y===D[Y]){D=!0;break b}D=!1}D?(G=reE(Z)%G!==0,
_.Kl(c).debugTicksExcludedLogged||(D={},D.debugTicksExcluded=G,_.lN(D,c)),_.Kl(c).debugTicksExcludedLogged=!0):G=!1}if(!G){y[0]!=="_"&&HGa(y,c,W);G=_.EKI(c||"");G.tick[y]=W||(0,_.Tj)();if(G.callback&&G.callback[y])for(G=_.z(G.callback[y]),D=G.next();!D.done;D=G.next())D=D.value,D();G=_.KxI(c);G.gelTicks&&(G.gelTicks[y]=!0);D=_.$hh(c);G=W||(0,_.Tj)();_.O("log_repeated_ytcsi_ticks")?y in D||(D[y]=G):D[y]=G;D=_.Kl(c).cttAuthInfo;y==="_start"?Aea().baseline(Z,W,D):Aea().tick(y,Z,W,D);_.Lx1(c);return G}}};
HGa=function(y,W,c){if(_.Oc.mark)if(y.startsWith("mark_")||(y="mark_"+y),W&&(y+=" ("+W+")"),c===void 0||_.O("web_csi_disable_alt_time_performance_mark"))_.Oc.mark(y);else{c=_.O("csi_use_performance_navigation_timing")||_.O("csi_use_performance_navigation_timing_tvhtml5")?c-_.Oc.timeOrigin:c-(_.Oc.timeOrigin||_.Oc.timing.navigationStart);try{_.Oc.mark(y,{startTime:c})}catch(Z){}}};
vKO=function(){var y,W=(y=_.Oc.getEntriesByType)==null?void 0:y.call(_.Oc,"mark");W&&W.forEach(function(c){if(c.name.startsWith("mark_")){var Z;(Z=_.Oc.clearMarks)==null||Z.call(_.Oc,c.name)}})};
_.dhy=function(){switch(NZH()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.SME=function(y){var W={},c=function(D,Y,u){Y=Y.match("_rid")?Y.split("_rid")[0]:Y;typeof u==="number"&&(u=JSON.stringify(u));D.requestIds?D.requestIds.push({endpoint:Y,id:u}):D.requestIds=[{endpoint:Y,id:u}]};
y=_.z(Object.entries(y));for(var Z=y.next();!Z.done;Z=y.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;switch(Z){case "GetBrowse_rid":c(W,Z,G);break;case "GetGuide_rid":c(W,Z,G);break;case "GetHome_rid":c(W,Z,G);break;case "GetPlayer_rid":c(W,Z,G);break;case "GetSearch_rid":c(W,Z,G);break;case "GetSettings_rid":c(W,Z,G);break;case "GetTrending_rid":c(W,Z,G);break;case "GetWatchNext_rid":c(W,Z,G);break;case "yt_red":W.isRedSubscriber=!!G;break;case "yt_ad":W.isMonetized=!!G}}return W};
_.THH=function(y){var W=_.Ec("aft",y);if(W)return W;W=_.Nn((y||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=W.length,Z=0;Z<c;Z++){var G=_.Ec(W[Z],y);if(G)return G}return NaN};
_.aNy=function(y,W){_.LR("ytglobal.timing"+(W||"")+"ready_",y)};
_.Ec=function(y,W){if(y=_.$hh(W)[y])return typeof y==="number"?y:y[y.length-1]};
_.Lx1=function(y){var W=_.Ec("_start",y),c=_.THH(y),Z=!xhO;W&&c&&Z&&(WDI(iGw,new M0H(Math.round(c-W),y)),xhO=!0)};
wsH=function(y){FxH(y);egH();vKO();y||(_.Nn("TIMING_ACTION")&&_.l1("PREVIOUS_ACTION",_.Nn("TIMING_ACTION")),_.l1("TIMING_ACTION",""))};
_.qMt=function(y){y=y===void 0?{}:y;_.PI(function(){N2();NHI();wsH();_.aNy(!1);y.cttAuthInfo&&(_.Kl().cttAuthInfo=y.cttAuthInfo);_.l1("TIMING_AFT_KEYS",[]);y.isHot?_.IP({loadType:"hot"}):_.IP({loadType:"warm"});_.l1("TIMING_ACTION","");delete _.Nn("TIMING_INFO",{}).yt_lt;_.PI(_.QXE)(y.startTime,void 0)})()};
_.pl=function(y,W,c,Z){W=W===void 0?{}:W;_.PI(function(){var G=c?c:y;kCf(G);var D=W.sampleRate;if(!_.O("web_csi_action_sampling_enabled")||D===void 0||D<=1)D=!1;else{var Y=gKa(G);D=reE(Y)%D!==0}D&&(_.Kl(G).actionDisabled=!0);_.EKI(G||"").info.actionType=y;W.cttAuthInfo&&(_.Kl(G).cttAuthInfo=W.cttAuthInfo);_.l1(G+"TIMING_ACTION",y);_.PI(_.QXE)(W.startTime,G);D={actionType:Z||_.psg(y)};W.logPreviousAction&&(D.previousAction=_.psg(_.Nn("TIMING_ACTION")));(Y=_.NR())&&Y!=="UNDEFINED_CSN"&&(D.clientScreenNonce=
Y);_.IP(D,G);_.aNy(!0,G)})()};
kCf=function(y){_.PI(function(){N2(y);NHI(y);wsH(y)})()};
jYH=function(){_.PI(function(){var y=[],W;for(W in _.JW("ytcsi.".slice(0,-1)))W.endsWith("data_")&&y.push(W.slice(0,-5));y=_.z(y);for(W=y.next();!W.done;W=y.next())kCf(W.value);N2()})()};
_.WXh=function(y){return _.PI(function(){return _.ykg("_start",y)})()};
_.IP=function(y,W,c){_.PI(_.lN)(y,W,c===void 0?!1:c)};
_.PA=function(y,W,c){return _.PI(_.RP)(y,W,c)};
_.ykg=function(y,W){return _.PI(function(){var c=_.$hh(W);return y in c})()};
Z7I=function(y){if(!_.O("universal_csi_network_ticks"))return"";y=_.c7(y)||"";for(var W=Object.keys(ckw),c=0;c<W.length;c++){var Z=W[c];if(y.includes(Z))return Z}return""};
fTa=function(y){if(!_.O("universal_csi_network_ticks"))return function(){};
var W=ckw[y];return W?(_.JE(W),function(){var c=_.O("universal_csi_network_ticks")?(c=Gk1[y])?_.JE(c):!1:!1;return c}):function(){}};
_.JE=function(y,W,c){return _.PI(function(){if(_.ykg(y,c))return!1;_.PA(y,W,c);return!0})()};
_.Vu=function(y,W,c){_.PI(function(){if(!_.WXh(c)||_.ykg(y,c))return!1;_.PA(y,W,c);return!0})()};
_.Cl=function(y){return _.PI(_.Ec)(y,void 0)};
N2=function(y){_.WXh(y)&&_.PA("aa",void 0,y)};
_.sYI=function(y,W,c,Z,G,D,Y,u,t){var b=oHy();u=new _.lM({veType:W,youtubeData:D,jspbYoutubeData:u});D=Qu({},b);G&&(D.cttAuthInfo=G);G={csn:b,pageVe:u.getAsJson()};_.O("expectation_logging")&&t&&t.screenCreatedLoggingExpectations&&(G.screenCreatedLoggingExpectations=t.screenCreatedLoggingExpectations);c&&c.visualElement?(G.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},Y&&(G.implicitGesture.gestureType=Y)):c&&_.Rs(new _.ul("newScreen() parent element does not have a VE - rootVe",
W));Z&&(G.cloneCsn=Z);y?Fc("screenCreated",G,y,D):_.$g("screenCreated",G,D);WDI(zPI,new z8F(b));AE.clear();Yuh.clear();mED.clear();return b};
hE=function(y,W,c,Z,G){_.uBH(y,W,c,[Z],G===void 0?!1:G)};
_.uBH=function(y,W,c,Z,G){G=G===void 0?!1:G;for(var D=Qu({cttAuthInfo:Ii(W)||void 0},W),Y=_.z(Z),u=Y.next();!u.done;u=Y.next()){u=u.value;var t=u.getAsJson();(_.Eb.isEmpty(t)||!t.trackingParams&&!t.veType)&&_.Rs(Error("uf"));if(_.O("no_client_ve_attach_unless_shown")){var b=tey(u,W);if(t.veType&&!Yuh.has(b)&&!mED.has(b)&&!G){if(!_.O("il_attach_cache_limit")||AE.size<1E3){AE.set(b,[y,W,c,u]);return}_.O("il_attach_cache_limit")&&AE.size>1E3&&_.Rs(new _.ul("IL Attach cache exceeded limit"))}u=tey(c,
W);AE.has(u)?nHf(c,W):mED.set(u,!0)}}Z=Z.filter(function(r){r.csn!==W?(r.csn=W,r=!0):r=!1;return r});
c={csn:W,parentVe:c.getAsJson(),childVes:_.Ng(Z,function(r){return r.getAsJson()})};
W==="UNDEFINED_CSN"?BA("visualElementAttached",D,c):y?Fc("visualElementAttached",c,y,D):_.$g("visualElementAttached",c,D)};
b71=function(y,W,c,Z,G){X_E(y,W,c,G)};
X_E=function(y,W,c,Z){rkw(c,W);var G=Qu({cttAuthInfo:Ii(W)||void 0},W);c={csn:W,ve:c.getAsJson(),eventType:1};Z&&(c.clientData=Z);W==="UNDEFINED_CSN"?BA("visualElementShown",G,c):y?Fc("visualElementShown",c,y,G):_.$g("visualElementShown",c,G)};
FXF=function(y,W,c,Z){rkw(c,W);var G=Qu({cttAuthInfo:Ii(W)||void 0},W);c={csn:W,ve:c.getAsJson(),eventType:4};Z&&(c.clientData=Z);W==="UNDEFINED_CSN"?BA("visualElementShown",G,c):y?Fc("visualElementShown",c,y,G):_.$g("visualElementShown",c,G)};
UED=function(y,W,c,Z,G){var D=(Z=Z===void 0?!1:Z)?16:8;Z=Qu({cttAuthInfo:Ii(W)||void 0,endOfSequence:Z},W);c={csn:W,ve:c.getAsJson(),eventType:D};G&&(c.clientData=G);W==="UNDEFINED_CSN"?BA("visualElementHidden",Z,c):y?Fc("visualElementHidden",c,y,Z):_.$g("visualElementHidden",c,Z)};
KXy=function(y,W,c,Z,G){$Ea(y,W,c,void 0,Z,G)};
$Ea=function(y,W,c,Z,G){rkw(c,W);Z=Z||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var D=Qu({cttAuthInfo:Ii(W)||void 0},W);c={csn:W,ve:c.getAsJson(),gestureType:Z};G&&(c.clientData=G);W==="UNDEFINED_CSN"?BA("visualElementGestured",D,c):y?Fc("visualElementGestured",c,y,D):_.$g("visualElementGestured",c,D)};
O7H=function(y,W,c,Z){var G=Qu({cttAuthInfo:Ii(W)||void 0},W);c={csn:W,ve:c.getAsJson(),clientData:Z};W==="UNDEFINED_CSN"?BA("visualElementStateChanged",G,c):y?Fc("visualElementStateChanged",c,y,G):_.$g("visualElementStateChanged",c,G)};
gHa=function(){var y=WAO(16);for(var W=[],c=0;c<y.length;c++)W.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(y[c]&63));return W.join("")};
BA=function(y,W,c){R8I.push({payloadName:y,payload:c,jspbPayload:void 0,options:W});lTw||(lTw=mMH())};
DMg=function(y){if(R8I){for(var W=_.z(R8I),c=W.next();!c.done;c=W.next())c=c.value,c.payload&&(c.payload.csn=y.csn,_.$g(c.payloadName,c.payload,c.options));R8I.length=0}lTw=0};
tey=function(y,W){return""+y.getAsJson().veType+y.getAsJson().veCounter+W};
rkw=function(y,W){if(_.O("no_client_ve_attach_unless_shown")){var c=tey(y,W);Yuh.set(c,!0);nHf(y,W)}};
nHf=function(y,W){y=tey(y,W);AE.has(y)&&(W=AE.get(y)||[],hE(W[0],W[1],W[2],W[3],!0),AE.delete(y))};
Qu=function(y,W){_.O("log_sequence_info_on_gel_web")&&(y.sequenceGroup=W);return y};
_.HA=function(y,W,c){_.PI(hE)(void 0,y,W,c)};
_.Ll=function(y,W){_.PI(b71)(void 0,y,W,void 0,void 0,void 0)};
_.vA=function(y,W,c){_.PI(function(){_.Qa(W,function(Z){FXF(void 0,y,Z,c)})})()};
_.dK=function(y,W,c,Z){_.PI(function(){_.Qa(W,function(G){UED(void 0,y,G,c,Z)})})()};
_.SG=function(y,W,c){_.PI(KXy)(void 0,y,W,c,void 0)};
_.TG=function(y,W,c,Z){_.PI($Ea)(void 0,y,W,c,Z,void 0)};
_.aP=function(y,W,c){_.PI(O7H)(void 0,y,W,c,void 0)};
EHh=function(y,W){xA.set(y,W)};
Ntt=function(y,W){var c=Object.keys(y);y=new _.ul("[Command Handler] "+W,{filteredCommandNames:c,originalCommand:y});_.OP(y)};
ITa=function(y,W){Ntt(y,W+" was called but not set")};
p_g=function(y){return function(){return new y}};
iN=function(y){return function(){return _.U().resolve(y)}};
POa=function(y,W){var c=_.g(y,_.Jc);if(c&&(c=W[c.signal]))return c();y=_.z(Object.keys(y));for(c=y.next();!c.done;c=y.next())if(c=c.value,W[c]&&(c=W[c]))return c()};
M2=function(y,W,c,Z){return{browseEndpoint:{browseId:y},commandMetadata:{webCommandMetadata:{url:W,rootVe:c,webPageType:Z===void 0?"WEB_PAGE_TYPE_BROWSE":Z}}}};
JkI=function(y,W,c){var Z=W=W===void 0?0:W;c=c===void 0?0:c;var G=c-Z;return _.eG(y,"PPSV",void 0,void 0,(G>600?0:G<60||c<=0||Z/c>.9)?0:W)};
_.eG=function(y,W,c,Z,G){var D="/watch?v="+y;y={videoId:y};W&&(y.playlistId=W,D+="&list="+W);Z&&(D+="&pp="+Z);G&&(y.startTimeSeconds=G,D+="&t="+G+"s");W={watchEndpoint:y,commandMetadata:{webCommandMetadata:{url:D,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};c&&(W.clickTrackingParams=c);Z&&(_.g(W,_.Sb).playerParams=Z);return W};
VeD=function(y){return{browseEndpoint:{browseId:"VL"+y},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+y,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
COw=function(y){if(y){var W;if(y){var c=(W=_.g(y.commandMetadata,_.kT))==null?void 0:W.url;W=!(!c||c==="/service_ajax")}else W=!1;if(W)return y;var Z;if(y=(Z=_.g(y,_.uN))==null?void 0:Z.commands)for(Z=_.z(y),y=Z.next();!y.done;y=Z.next())if(y=COw(y.value))return y}};
_.wK=function(y){return{runs:[{text:y}]}};
QYt=function(y,W){return y&&W?{runs:[{text:y,navigationEndpoint:W}]}:void 0};
q2=function(y){return y?_.wK(y):void 0};
_.kA=function(y){return y?{simpleText:y}:void 0};
_.jv=function(y){var W=y.type;y=y.payload;W={type:W};y!==void 0&&(W.payload=y);return W};
Akt=function(y,W,c){for(var Z=Object.assign({},y),G=_.z(Object.keys(W)),D=G.next();!D.done;D=G.next()){D=D.value;var Y=y[D],u=W[D];if(u===void 0)delete Z[D];else if(Y===void 0)Z[D]=u;else if(Array.isArray(u)&&Array.isArray(Y))Z[D]=c?[].concat(_.No(Y),_.No(u)):u;else if(!Array.isArray(u)&&_.q1(u)&&!Array.isArray(Y)&&_.q1(Y))Z[D]=Akt(Y,u,c);else if(typeof u===typeof Y)Z[D]=u;else return W=new _.ul("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:D,originalValue:Y,updateValue:u}),
_.OP(W),y}return Z};
H7w=function(y){if(!y.length)return"";try{if(h8t)return h8t.decode(y);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(y)}catch(Y){}for(var W=0,c=[],Z=y.length;W<Z;){for(var G=0;G<1024&&W<Z;){var D=y[W++];if(D<128)Bt1[G++]=D;else{if(D<224)D=(D&31)<<6|y[W++]&63;else if(D<240)D=(D&15)<<12|(y[W++]&63)<<6|y[W++]&63;else{if(G+1===1024){--W;break}D=(D&7)<<18|(y[W++]&63)<<12|(y[W++]&63)<<6|y[W++]&63;D-=65536;Bt1[G++]=55296|D>>10;D=56320|D&1023}Bt1[G++]=D}}D=String.fromCharCode.apply(String,
Bt1);G<1024&&(D=D.substring(0,G));c.push(D)}return c.join("")};
vHO=function(y,W){var c;if((c=LXg)==null?0:c.encodeInto)return W=LXg.encodeInto(y,W),W.read<y.length?y.length*4:W.written;for(var Z=c=0;Z<y.length;Z++){var G=y.charCodeAt(Z);G<128?W[c++]=G:(G<2048?W[c++]=G>>6|192:((G&64512)===55296&&Z+1<y.length&&(y.charCodeAt(Z+1)&64512)===56320?(G=65536+((G&1023)<<10)+(y.charCodeAt(++Z)&1023),W[c++]=G>>18|240,W[c++]=G>>12&63|128):W[c++]=G>>12|224,W[c++]=G>>6&63|128),W[c++]=G&63|128)}return c};
dEF=function(y,W){y=new Uint8Array(y);W&&y.set(W);return y};
_.W$=function(y){y=new Suf(new TtH([_.cJ(decodeURIComponent(y))]));if(aTF(y,2)){var W=yl(y);var c=y.pos;c=y.arrayView.getDataView(c===void 0?0:c,W===void 0?-1:W);c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);y.pos+=W;W=c}else W=void 0;W=W?H7w(W):void 0;y=aTF(y,4)?yl(y):void 0;c=xED[y];if(typeof c==="undefined")throw y=new _.ul("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:y}),_.OP(y),y;return{entityTypeFieldNumber:y,entityType:c,entityId:W}};
_.Gx=function(y,W,c){c=c===void 0?0:c;var Z=new i7I;if(LXg)y=LXg.encode(y);else{var G=new Uint8Array(Math.ceil(y.length*1.2)),D=vHO(y,G);G.length<D&&(G=new Uint8Array(D),D=vHO(y,G));G.length>D&&(G=G.subarray(0,D));y=G}y!==void 0&&(c$(Z,18),G=y.length,c$(Z,G),ZK(Z,G),Z.buf.set(y,Z.pos),Z.pos+=G);y=MeI[W];if(typeof y==="undefined")throw c=new _.ul("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),_.OP(c),c;y!==void 0&&(c$(Z,32),c$(Z,y));c$(Z,40);c$(Z,1);W=new Uint8Array(Z.buf.buffer,
Z.buf.byteOffset,Z.pos);return encodeURIComponent(_.OB(W,c))};
e8D=function(y){y=y.key||y.id;if(!y)throw Error("xf");return y};
quw=function(y,W){y=y===void 0?{}:y;return w_t(y,W)};
kkD=function(y,W,c,Z){if(Z===void 0)return Z=Object.assign({},y[W]||{}),c=(delete Z[c],Z),Z={},Object.assign({},y,(Z[W]=c,Z));var G={},D={};return Object.assign({},y,(D[W]=Object.assign({},y[W],(G[c]=Z,G)),D))};
jUI=function(y,W,c,Z,G){var D=y[W];if(D==null||!D[c])return y;Z=Akt(D[c],Z,G==="REPEATED_FIELDS_MERGE_OPTION_APPEND");G={};D={};return Object.assign({},y,(D[W]=Object.assign({},y[W],(G[c]=Z,G)),D))};
_.fq=function(y,W,c){return y[W]?y[W][c]||null:null};
Wuy=function(){if(yAH)return yAH();var y={};yAH=S5("PersistentEntityStoreDb",{objectStores:(y.EntityStore={addedAtVersion:1},y.EntityAssociationStore={addedAtVersion:2},y),shared:!1,upgrade:function(W,c){c(1)&&pX(Il(W,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(W=Il(W,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),pX(W,"byParentEntityKey","parentEntityKey"),pX(W,"byChildEntityKey","childEntityKey"))},
version:3});return yAH()};
cAI=function(y){return _.CR(Wuy(),y)};
ov=function(y){return window.Int32Array?new Int32Array(y):Array(y)};
GSD=function(y){return _.CR(ZFa(),y)};
fuF=function(y){return new DK("WRONG_DATA_TYPE",{encoderVersion:y})};
oIf=function(y){return y instanceof Error?new DK("UNKNOWN_ENCODE_ERROR",{originalMessage:y.message}):new DK("UNKNOWN_ENCODE_ERROR")};
DYg=function(y){return y instanceof Error?new DK("UNKNOWN_DECODE_ERROR",{originalMessage:y.message}):new DK("UNKNOWN_DECODE_ERROR")};
zdI=function(y,W){y=y instanceof DK?y:W(y);_.OP(y);throw y;};
Yxg=function(y){y=(new TextEncoder).encode(y).subarray(0,16);var W=new Uint8Array(16);W.set(y);return W};
sUE=function(y){var W=mYD[y];if(W)return W;_.Rs(new _.ul("Entity model not found.",{entityType:y}))};
_.zx=function(){ubH||(ubH=txw());return ubH};
txw=function(){var y,W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.tm(Z,2),_.n(Z,_.dr(),4);if(Z.nextAddress!=2){y=Z.yieldResult;if(!y||!_.sA()||typeof _.DH.BroadcastChannel==="undefined")return Z.return();W=new nII;return Z.return(new YR(y,W))}c=_.rs(Z);c instanceof Error&&_.OP(c);return Z.return()})};
_.mZ=function(y,W){var c;return _.m(function(Z){if(Z.nextAddress==1){c=y.mutations;if(!c||c.length<=0)return Z.return();W&&W.dispatch(_.jv({type:"ENTITY_LOADED",payload:c}));return _.n(Z,Xvt(c),2)}c.length=0;_.F2(Z)})};
Xvt=function(y){var W;return _.m(function(c){return c.nextAddress==1?_.n(c,_.zx(),2):(W=c.yieldResult)?_.n(c,_.sq(W,"readwrite",function(Z){for(var G={},D=_.z(y),Y=D.next(),u={};!Y.done;u={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Y=D.next())u.mutation$jscomp$4=Y.value,u.mutation$jscomp$4.entityKey&&bFw(u.mutation$jscomp$4)&&(u.mutationEntityType$jscomp$3=(0,_.Eb.getAnyKey)(u.mutation$jscomp$4.payload),Y=void 0,u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Y=function(t){return function(){return _.rAO(Z,
t.mutation$jscomp$4.payload[t.mutationEntityType$jscomp$3],t.mutationEntityType$jscomp$3)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Y=function(t){return function(){return Fut(Z,t.mutation$jscomp$4.entityKey)}}(u)),u.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Y=function(t){return function(){return UYh(Z,t.mutation$jscomp$4.entityKey,t.mutation$jscomp$4.payload[t.mutationEntityType$jscomp$3],t.mutationEntityType$jscomp$3)}}(u)),Y&&(G[u.mutation$jscomp$4.entityKey]=
G[u.mutation$jscomp$4.entityKey]?G[u.mutation$jscomp$4.entityKey].then(Y):Y()));
return NC.all(Object.values(G))}),0):c.return()})};
bFw=function(y){var W;y=(W=y.options)==null?void 0:W.persistenceOption;return y==="ENTITY_PERSISTENCE_OPTION_PERSIST"||y==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
OFI=function(y,W){var c,Z;_.m(function(G){if(G.nextAddress==1)return _.n(G,_.zx(),2);if(G.nextAddress!=3)return(c=G.yieldResult)?_.n(G,_.sq(c,"readonly",function(D){var Y={},u=Object.keys(W).map(function(t){var b=W[t]?[].concat(_.No(W[t])):[];return $Yw(D,t,b,Y)});
return NC.all(u).then(function(){return Y})}),3):G.return();
Z=G.yieldResult;Object.keys(Z).length>0&&y.dispatch(Kuw(Z));_.F2(G)})};
$Yw=function(y,W,c,Z){return tK(y,W,c).then(function(G){Z[W]=gIF(c,G)})};
gIF=function(y,W){if(W.length!==y.length)throw Error("Af");return W.reduce(function(c,Z,G){c[y[G]]=Z;return c},{})};
EID=function(y){var W=y.filter(function(G){var D;return(G==null?void 0:(D=G.transferEntity)==null?void 0:D.transferState)==="TRANSFER_STATE_COMPLETE"}).length,c=y.filter(function(G){var D;
return(G==null?void 0:(D=G.transferEntity)==null?void 0:D.transferState)==="TRANSFER_STATE_FAILED"}).length,Z=y.filter(function(G){var D;
return(G==null?void 0:(D=G.transferEntity)==null?void 0:D.transferState)&&RdO.includes(G.transferEntity.transferState)});
if(!(W||Z!=null&&Z.length))return 0;W=_.luH(Z)+W;y=y.length-c;return y===0?0:Math.round(W*100/y)/100};
_.luH=function(y){var W=[];W=W.concat.apply(W,_.No(y.filter(function(D){return D.streamEntity}).map(function(D){var Y=Object.assign({},D.streamEntity),u,t=(u=D.transferEntity)==null?void 0:u.transferState;
Y.streamsProgress=Y.streamsProgress||[];Y.streamsProgress=Y.streamsProgress.map(function(b){var r=Object.assign({},b);r.numBytesDownloaded=t==="TRANSFER_STATE_COMPLETE"?b.numTotalBytes:b.numBytesDownloaded;return r});
return Y}).map(function(D){return D.streamsProgress})));
var c=y=0;W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next()){var G=Z.value;Z=Number(G.numBytesDownloaded);G=Number(G.numTotalBytes);c+=isNaN(Z)?0:Z;y+=isNaN(G)?0:G}return y===0?0:Math.round(c*100/y)/100};
NRH=function(y){if(!y||!y.expirationTimestamp||!y.action)return!1;var W=(0,_.Tj)()/1E3;return Number(y.expirationTimestamp)>=W};
nq=function(y){return y&&y.expirationTimestamp&&y.action?NRH(y)&&y.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Xj=function(y){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(y||"TRANSFER_STATE_UNKNOWN")};
IuI=function(y){var W=new i7I;if(y!==void 0){var c=Math.ceil(Math.log2(y.length*4+2)/7);c=c===void 0?2:c;c$(W,10);W.submessagePosStack.push(W.pos);W.submessagePosStack.push(c);W.pos+=c;ZK(W,y.length*1.2);c=vHO(y,W.buf.subarray(W.pos));W.pos+c>W.buf.length&&(ZK(W,c),c=vHO(y,W.buf.subarray(W.pos)));W.pos+=c;y=W.submessagePosStack.pop();c=W.submessagePosStack.pop();for(var Z=W.pos-c-y;y--;){var G=y?128:0;W.view.setUint8(c++,Z&127|G);Z>>=7}}W=new Uint8Array(W.buf.buffer,W.buf.byteOffset,W.pos);return(new TextDecoder("utf-8")).decode(W)};
_.bo=function(y){var W=0;y=_.z(y);for(var c=y.next(),Z={};!c.done;Z={transferState$jscomp$3:void 0},c=y.next()){var G=c.value,D=void 0;c=(D=G.streamEntity)!=null?D:{};D=void 0;Z.transferState$jscomp$3=(D=G.transferEntity)==null?void 0:D.transferState;D=G=void 0;((G=c)==null?0:(D=G.streamsProgress)==null?0:D.length)&&c.streamsProgress.forEach(function(Y){return function(u){u=Number(Y.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?u.numTotalBytes:u.numBytesDownloaded);isFinite(u)&&(W+=u)}}(Z))}return W};
pv1=function(y){return y.some(function(W){var c;if(!(W==null?0:(c=W.transferEntity)==null?0:c.transferState)){var Z;return!(W==null?0:(Z=W.policyEntity)==null?0:Z.action)||W.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return RdO.includes(W.transferEntity.transferState)})};
PXD=function(y,W){if(!W)return!1;if(_.O("of_pb_en_po_ks"))return!0;var c;y=(c=_.fq(y,"offlineVideoPolicy",_.Gx(W,"offlineVideoPolicy")))!=null?c:void 0;return!!y&&nq(y)};
_.VxO=function(y){var W=["TRANSFER_STATE_COMPLETE"];W=W===void 0?JAD:W;return y.filter(function(c){var Z,G;return W.includes((G=(Z=c.transferEntity)==null?void 0:Z.transferState)!=null?G:"TRANSFER_STATE_UNKNOWN")})};
CXh=function(y,W){if(W){var c,Z=(c=_.fq(y,"playbackData",_.Gx(W,"playbackData")))!=null?c:null,G;c=(G=_.fq(y,"transfer",_.Gx(W,"transfer")))!=null?G:null;var D;G=(D=_.fq(y,"offlineVideoStreams",_.Gx(W,"offlineVideoStreams")))!=null?D:null;var Y;y=(Y=_.fq(y,"offlineVideoPolicy",_.Gx(W,"offlineVideoPolicy")))!=null?Y:null;if(Z||c||G||y)return{playbackDataEntity:Z,transferEntity:c,streamEntity:G,policyEntity:y}}};
_.ru=function(y){var W=y.playbackData;if(!W)return[];var c=[];W=_.z(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next()){var G=Z.value;if(!QUy(y,_.W$(G).entityId)&&(Z=CXh(y,_.W$(G).entityId))){var D=void 0,Y=void 0;G=(Y=Number((D=_.fq(y,"playbackData",G))==null?void 0:D.streamDownloadTimestampSeconds))!=null?Y:(0,_.Tj)();c.push({entity:Z,streamDownloadTimestamp:G})}}return c.sort(function(u,t){var b=u.streamDownloadTimestamp,r=t.streamDownloadTimestamp;return r===b?u.entity.streamEntity&&!t.entity.streamEntity?
1:-1:r-b}).map(function(u){return u.entity})};
AAE=function(y){return _.VxO(_.ru(y))};
_.hdH=function(y){return _.ru(y).filter(function(W){var c;if(((c=W.policyEntity)==null?0:c.action)&&W.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Z;if((Z=W.transferEntity)==null?0:Z.transferState){var G;return RdO.includes((G=W.transferEntity)==null?void 0:G.transferState)}return!0})};
QUy=function(y,W){var c;return((c=_.fq(y,"downloadStatusEntity",_.Gx(W,"downloadStatusEntity")))==null?void 0:c.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
BR1=function(y){var W;if(y==null?0:(W=y.playbackDataEntity)==null?0:W.key)return _.W$(y.playbackDataEntity.key).entityId;var c;if(y==null?0:(c=y.transferEntity)==null?0:c.key)return _.W$(y.transferEntity.key).entityId;var Z;if(y==null?0:(Z=y.streamEntity)==null?0:Z.key)return _.W$(y.streamEntity.key).entityId;var G;if(y==null?0:(G=y.policyEntity)==null?0:G.key)return _.W$(y.policyEntity.key).entityId};
LuH=function(y){var W=new Set,c;y=(c=y.mainDownloadsListEntity)==null?void 0:c[HFy];var Z;if(!(y==null?0:(Z=y.downloads)==null?0:Z.length))return W;var G;y==null||(G=y.downloads)==null||G.forEach(function(D){(D==null?0:D.videoItem)&&W.add(D.videoItem)});
return W};
Fj=function(y,W){if(W){var c=_.fq(y,"mainVideoEntity",_.Gx(W,"mainVideoEntity")),Z=_.fq(y,"downloadStatusEntity",_.Gx(W,"downloadStatusEntity")),G=_.fq(y,"ytMainChannelEntity",_.Gx(W,"ytMainChannelEntity")),D={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};y=CXh(y,W);Z=(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.O("woffle_render_failed_download_state_ks")&&(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_FAILED";!y&&Z&&(y=D);if(y&&c&&
G)return Object.assign({},{videoEntity:c,channelEntity:G},y)}};
dYt=function(y,W){return vIO(y,W)==="TRANSFER_STATE_COMPLETE"&&PXD(y,W)};
Sx1=function(y,W){if(!W)return!1;var c;y=(c=_.fq(y,"playbackData",_.Gx(W,"playbackData")))!=null?c:void 0;return!!y&&!!y.playerResponseJson};
vIO=function(y,W){if(!W)return"TRANSFER_STATE_UNKNOWN";var c=_.fq(y,"transfer",_.Gx(W,"transfer"));if(c){var Z;return(Z=c.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN"}c=_.fq(y,"offlineOrchestrationActionWrapperEntity",_.Gx(W,"offlineOrchestrationActionWrapperEntity"));y=_.fq(y,"mainVideoEntity",_.Gx(W,"mainVideoEntity"));return c||y?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
TRa=function(y,W){if(!W)return"TRANSFER_STATE_UNKNOWN";if(y=_.fq(y,"transfer",_.Gx(W,"transfer"))){var c;return(c=y.transferState)!=null?c:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
auI=function(y,W){return W&&(y=_.fq(y,"videoPlaybackPositionEntity",_.Gx(W,"videoPlaybackPositionEntity")),y==null?0:y.lastPlaybackPositionSeconds)?Number(y.lastPlaybackPositionSeconds):0};
iFI=function(y,W){return xYO(y).some(function(c){var Z;return(c==null?void 0:(Z=c.mainPlaylistEntity)==null?void 0:Z.playlistId)===W})};
edE=function(y,W,c){var Z=MxE(y,W);if(!Z.length)return[];W=[];Z=_.z(Z);for(var G=Z.next();!G.done;G=Z.next()){G=G.value;var D=Fj(y,G);c&&vIO(y,G)!=="TRANSFER_STATE_COMPLETE"||D&&W.push(D)}return W};
MxE=function(y,W){if(!W)return[];var c=_.Gx(W,"mainPlaylistEntity"),Z;W=(Z=y.mainPlaylistEntity)==null?void 0:Z[c];Z=[];if(W==null||!W.videos)return Z;W=_.z(W.videos);for(c=W.next();!c.done;c=W.next()){c=c.value;var G=void 0,D=void 0,Y=void 0,u=(G=y)==null?void 0:(D=G.mainPlaylistVideoEntity)==null?void 0:(Y=D[c])==null?void 0:Y.video;u&&(c=_.W$(u).entityId)&&Z.push(c)}return Z};
wvh=function(y,W){if(W){var c=_.fq(y,"mainPlaylistEntity",_.Gx(W,"mainPlaylistEntity")),Z=_.fq(y,"mainPlaylistDownloadStateEntity",_.Gx(W,"mainPlaylistDownloadStateEntity"));y=_.fq(y,"ytMainChannelEntity",_.Gx(W,"ytMainChannelEntity"));if(Z&&c)return Object.assign({},{mainPlaylistEntity:c,mainPlaylistDownloadStateEntity:Z},!!y&&{channelEntity:y})}};
xYO=function(y){return qxh(y).sort(function(W,c){return c.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedPlaylistEntities})};
qxh=function(y){var W=y.mainPlaylistDownloadStateEntity,c=[];if(!W)return c;for(var Z=_.z(Object.keys(W)),G=Z.next();!G.done;G=Z.next()){var D=G.value;G=wvh(y,_.W$(D).entityId);var Y=void 0;D=Number((Y=W[D])==null?void 0:Y.addedTimestampMillis);Y=isNaN(D)?(0,_.Tj)():D;G!==void 0&&c.push({downloadedPlaylistEntities:G,addedTimestampMillis:Y})}return c};
kSw=function(y){var W,c=(W=y.mainPlaylistVideoEntity)!=null?W:{};return new Set(xYO(y).reduce(function(Z,G){Z=Z===void 0?[]:Z;var D,Y;G==null||(D=G.mainPlaylistEntity)==null||(Y=D.videos)==null||Y.forEach(function(u){var t;(u=(t=c[u])==null?void 0:t.video)&&Z.push(u)});
return Z},[]))};
jt1=function(y){return"downloadedMusicPlaylistEntities"in y};
yIg=function(y){return"mainPlaylistEntity"in y&&"mainPlaylistDownloadStateEntity"in y};
W_I=function(y){return"videoEntity"in y&&"channelEntity"in y};
cIw=function(y){var W=y.musicPlaylistDownloadMetadataEntity,c=[];if(!W)return c;for(var Z=_.z(Object.keys(W)),G=Z.next();!G.done;G=Z.next()){G=G.value;a:{var D=y,Y=_.W$(G).entityId;if(Y){var u=_.fq(D,"musicPlaylist",_.Gx(Y,"musicPlaylist"));D=_.fq(D,"musicPlaylistDownloadMetadataEntity",_.Gx(Y,"musicPlaylistDownloadMetadataEntity"));if(u&&D){u={musicPlaylistEntity:u,musicPlaylistDownloadStateEntity:D};break a}}u=void 0}D=void 0;G=Number((D=W[G])==null?void 0:D.addedTimestampMillis);G=isNaN(G)?(0,_.Tj)():
G;u!==void 0&&c.push({downloadedMusicPlaylistEntities:u,addedTimestampMillis:G})}return c};
ZHO=function(y){var W=new Set;y=_.z(y);for(var c=y.next();!c.done;c=y.next())if(c=c.value,"musicPlaylistEntity"in c&&"musicPlaylistDownloadStateEntity"in c){c=_.z(c.musicPlaylistEntity.tracks);for(var Z=c.next();!Z.done;Z=c.next())W.add(Z.value)}return W};
GRI=function(y,W){if(W){var c=_.fq(y,"musicTrack",_.Gx(W,"musicTrack")),Z=_.fq(y,"musicArtist",_.Gx(W,"musicArtist"))||{};if((y=CXh(y,W))&&c&&Z)return Object.assign({},{musicTrackEntity:c,musicArtistEntity:Z},y)}};
fEE=function(y){var W=y.musicTrackDownloadMetadataEntity,c=[];if(!W)return[];W=_.z(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next()){var G=Z.value;Z=GRI(y,_.W$(G).entityId);var D=void 0;G=Number((D=_.fq(y,"musicTrackDownloadMetadataEntity",G))==null?void 0:D.addedTimestampMillis);D=isNaN(G)?(0,_.Tj)():G;Z!==void 0&&c.push({downloadedMusicEntities:Z,addedTimestampMillis:D})}return c};
zDy=function(y,W){if(!W)return[];if(Object.values(oPw).includes(W))return DtI(y,W);W=_.Gx(W,"musicPlaylist");var c;y=(c=y.musicPlaylist)==null?void 0:c[W];c=[];if(y==null||!y.tracks)return c;y=_.z(y.tracks);for(W=y.next();!W.done;W=y.next())(W=_.W$(W.value).entityId)&&c.push(W);return c};
DtI=function(y,W){var c=new Set,Z=cIw(y).map(function(D){return D.downloadedMusicPlaylistEntities});
Z=ZHO(Z);Z=_.z(Z);for(var G=Z.next();!G.done;G=Z.next())(G=_.W$(G.value).entityId)&&c.add(G);return YUw(y).downloadedMusicEntities.filter(function(D){var Y;if((Y=D.musicTrackEntity)!=null&&Y.videoId){D=D.musicTrackEntity;if(Y=W==="PPOM"?!0:!c.has(D.videoId))b:switch(D=D.musicVideoType,W){case "PPSE":Y=D==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Y=D!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}D=Y}else D=!1;return D}).map(function(D){var Y;
return(Y=D.musicTrackEntity)==null?void 0:Y.videoId})};
YUw=function(y){var W=fEE(y).sort(function(c,Z){return Z.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:jt1(c)?c.downloadedMusicPlaylistEntities:{}});
y=cIw(y).sort(function(c,Z){return Z.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:jt1(c)?c.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:W,downloadedMusicPlaylistEntities:y}};
stf=function(y,W){W=_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?zDy(y,W):MxE(y,W);if(!W.length)return"TRANSFER_STATE_UNKNOWN";W=W.map(function(c){return TRa(y,c)});
return mtf(W)};
mtf=function(y){var W=new Set(y);if(W.has("TRANSFER_STATE_FAILED")&&W.size===1)return"TRANSFER_STATE_FAILED";W.delete("TRANSFER_STATE_FAILED");if(W.has("TRANSFER_STATE_UNKNOWN")&&W.size===1)return"TRANSFER_STATE_PRE_TRANSFER";W.delete("TRANSFER_STATE_UNKNOWN");if(W.has("TRANSFER_STATE_PRE_TRANSFER")&&W.size===1||W.size===0)return"TRANSFER_STATE_PRE_TRANSFER";y=W.has("TRANSFER_STATE_TRANSFERRING");W=W.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return y||W?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Uq=function(y){var W=y.mainVideoDownloadStateEntity,c=[];if(!W)return[];W=_.z(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next()){var G=Z.value;if(!QUy(y,_.W$(G).entityId)){Z=Fj(y,_.W$(G).entityId);var D=void 0,Y=void 0;G=(Y=Number((D=_.fq(y,"mainVideoDownloadStateEntity",G))==null?void 0:D.addedTimestampMillis))!=null?Y:(0,_.Tj)();Z!==void 0&&c.push({downloadedVideoEntities:Z,addedTimestampMillis:G})}}return c};
u3f=function(y){return Uq(y).sort(function(W,c){return c.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return W.downloadedVideoEntities})};
_.nPI=function(y){var W=kSw(y),c=_.$R(y),Z=LuH(y),G=Uq(y).filter(function(Y){var u,t;if((Y==null?void 0:(u=Y.downloadedVideoEntities)==null?void 0:(t=u.transferEntity)==null?void 0:t.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var b,r;Y=Y==null?void 0:(b=Y.downloadedVideoEntities)==null?void 0:(r=b.videoEntity)==null?void 0:r.key;return _.O("kevlar_use_library_entity")?Y&&(Z.has(Y)||c[Y]):Y&&!W.has(Y)}),D=qxh(y).filter(function(Y){return stf(y,Y.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.No(G),_.No(D)).sort(function(Y,u){return u.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return tza(Y)})};
X0a=function(y,W){if(W&&PXD(y,W)){var c,Z,G=(Z=(c=_.fq(y,"playbackData",_.Gx(W,"playbackData")))!=null?c:void 0)==null?void 0:Z.playerResponseJson;if(G){try{var D=JSON.parse(G);var Y=_.fq(y,"transfer",_.Gx(W,"transfer")),u=auI(y,W);u&&(D=Object.assign({},D,{playerConfig:Object.assign({},D.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+u*1E3}}})}));D.cotn=Y==null?void 0:Y.cotn}catch(t){}return D}}};
_.F_I=function(y){var W,c,Z;y=(Z=(c=((W=y.downloadsPageViewConfigurationEntity)!=null?W:{})[bHH])==null?void 0:c.smartDownloadsOptInBannerVisibility)!=null?Z:{};var G;return(G=_.g(y,rIH))!=null?G:{}};
_.$R=function(y){var W,c,Z;y=(Z=(c=((W=y.mainDownloadsListEntity)!=null?W:{})[_.Utt])==null?void 0:c.downloads)!=null?Z:[];W={};c=_.z(y);for(Z=c.next();!Z.done;Z=c.next())y=void 0,W[(y=Z.value.videoItem)!=null?y:""]=!0;return W};
$tt=function(y){var W=_.$R(y);if(Object.keys(W).length===0)return!1;var c=y.mainVideoEntity;if(!c)return!0;c=_.z(Object.keys(c));for(var Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var G=_.W$(Z).entityId;if(W[Z]&&!QUy(y,G))return!1}return!0};
_.Kq=function(y){var W=_.$R(y);return Uq(y).sort(function(c,Z){return c.addedTimestampMillis-Z.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities}).filter(function(c){var Z;
return(c=c==null?void 0:(Z=c.videoEntity)==null?void 0:Z.key)&&!!W[c]})};
tza=function(y){return"downloadedVideoEntities"in y?y.downloadedVideoEntities:"downloadedPlaylistEntities"in y?y.downloadedPlaylistEntities:{}};
K_F=function(y){var W=_.$R(y),c=kSw(y),Z=Uq(y).filter(function(G){var D,Y;return(G=G==null?void 0:(D=G.downloadedVideoEntities)==null?void 0:(Y=D.videoEntity)==null?void 0:Y.key)&&!W[G]&&!c.has(G)});
y=qxh(y);return[].concat(_.No(Z),_.No(y)).sort(function(G,D){return D.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return tza(G)})};
_.Oq=function(y){if(!_.O("kevlar_use_library_entity"))return K_F(y);var W=Uq(y).filter(function(Z){var G,D;if(G=Z=Z==null?void 0:(G=Z.downloadedVideoEntities)==null?void 0:(D=G.videoEntity)==null?void 0:D.key){var Y,u,t;G=((u=(Y=y.mainDownloadsListEntity)==null?void 0:Y[HFy])==null?0:(t=u.downloads)==null?0:t.length)?LuH(y).has(Z):!1}return G}),c=qxh(y);
return[].concat(_.No(W),_.No(c)).sort(function(Z,G){return G.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return tza(Z)})};
OHD=function(y){var W=_.$R(y),c=kSw(y);return u3f(y).filter(function(Z){var G;return(Z=Z==null?void 0:(G=Z.videoEntity)==null?void 0:G.key)&&!W[Z]&&!c.has(Z)})};
gPf=function(y){if(!_.O("kevlar_use_library_entity"))return OHD(y);var W=_.$R(y),c=LuH(y);return u3f(y).filter(function(Z){var G;return(Z=Z==null?void 0:(G=Z.videoEntity)==null?void 0:G.key)&&!W[Z]&&c.has(Z)})};
RDw=function(y,W){W=_.Gx(W,"settingEntity");var c,Z,G;return!!((G=(Z=((c=y.settingEntity)!=null?c:{})[W])==null?void 0:Z.settingOptionValue)!=null?G:{}).boolValue};
_.gu=function(y){var W=_.Kq(y);if(pv1(W))return 0;var c=[];W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var G=void 0,D=void 0;if((G=Z)==null?0:(D=G.videoEntity)==null?0:D.key)G=_.W$(Z.videoEntity.key).entityId,Z=y,G=_.Gx(G,"mainVideoDownloadStateEntity"),Z=_.fq(Z,"mainVideoDownloadStateEntity",G),(Z=Number(Z==null?void 0:Z.addedTimestampMillis))&&c.push(Z)}return Math.max.apply(Math,_.No(c))};
_.Rv=function(y){return y.ui.richGridMiniMode};
_.lo=function(y){return y.ui.richGridItemsPerRow};
_.lEO=function(y){return y.ui.richGridSlimItemsPerRow};
_.EPI=function(y){return y.ui.guideIsExpanded};
_.Eq=function(y){return y.ui.miniplayerIsActive};
_.NFI=function(y){return y.ui.singleOptionSurveyIsActive};
_.NW=function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.IEt=function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.p0O=function(y){return y.ui.inlinePreviewIsActive};
_.PAt=function(y){return y.ui.inlinePreviewIsEnabled};
_.JIO=function(y){return y.ui.miniplayerPlaybackState};
VzE=function(y){return y.ui.isOnline};
_.CAO=function(y){return y.ui.frostedGlassMode};
_.Iv=function(y,W){return vIO(y.entities,W)};
_.pq=function(y,W){return stf(y.entities,W)};
QtO=function(y,W){var c;if(W){var Z;y=(Z=_.fq(y.entities,"offlineVideoPolicy",_.Gx(W,"offlineVideoPolicy")))==null?void 0:Z.action}else y=void 0;return(c=y)!=null?c:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
AIt=function(y,W){var c;W?(y=_.fq(y.entities,"offlineVideoPolicy",_.Gx(W,"offlineVideoPolicy")),y=Number(y==null?void 0:y.expirationTimestamp)):y=void 0;return(c=y)!=null?c:0};
_.hDH=function(y){return _.ru(y.entities).length};
BFa=function(y,W){return Fj(y.entities,W)};
HHO=function(y,W){return wvh(y.entities,W)};
P$=function(y,W){return(y=Fj(y.entities,W))?_.luH([y]):0};
_.L_1=function(y,W){var c=_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(c){var Z=y.entities;var G=zDy(Z,W);if(G.length){var D=[];G=_.z(G);for(var Y=G.next();!Y.done;Y=G.next())(Y=GRI(Z,Y.value))&&D.push(Y);Z=D}else Z=[]}else Z=edE(y.entities,W);var u;if(c){var t=y.entities;W?(W=_.Gx(W,"musicPlaylist"),t=(u=t.musicPlaylist)==null?void 0:u[W],u=t!=null&&t.tracks?t.tracks.length:0):u=0}else u=y.entities,W?(W=_.Gx(W,"mainPlaylistEntity"),u=(t=u.mainPlaylistEntity)==null?void 0:t[W],u=u!=null&&u.videos?
u.videos.length:0):u=0;return Z.length!==u?0:Z?EID(Z):0};
_.vPw=function(y){return y.download.isLeaderTab};
_.dtH=function(y,W,c){if(!W&&c){var Z=y.entities;if(c){var G=IuI(c),D,Y;W=(Y=(D=_.fq(Z,"offlineabilityEntity",_.Gx(G,"offlineabilityEntity")))==null?void 0:D.addToOfflineButtonState)!=null?Y:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else D=y.entities,W?(Y=IuI(W),W=(G=(Z=_.fq(D,"offlineabilityEntity",_.Gx(Y,"offlineabilityEntity")))==null?void 0:Z.addToOfflineButtonState)!=null?G:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):W="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return W};
SUI=function(y,W){y=y.entities;if(W){W=IuI(W);var c,Z;W=(Z=(c=_.fq(y,"offlineabilityEntity",_.Gx(W,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else W="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return W};
_.TFg=function(y){var W=y.entities;y=VzE(y);var c=RDw(W,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.O("kevlar_modern_downloads_page")&&c)var Z=!1;else{var G,D;W=(D=(G=((Z=W.downloadsPageViewConfigurationEntity)!=null?Z:{})[bHH])==null?void 0:G.smartDownloadsOptInBannerVisibility)!=null?D:{};Z=y?!!W.visibleWithConnection:!!W.visibleWithoutConnection}return Z};
_.aED=function(y){return RDw(y.entities,"SMART_DOWNLOADS_ENABLED")};
_.xtt=function(y){return $tt(y.entities)};
iHH=function(y){return _.Kq(y.entities).every(function(W){var c;return(W==null?void 0:(c=W.transferEntity)==null?void 0:c.transferState)&&!RdO.includes(W.transferEntity.transferState)})};
_.MzH=function(y,W){return QUy(y.entities,W)};
eDO=function(y,W){if(W){var c,Z;y=(Z=(c=_.fq(y.entities,"downloadStatusEntity",_.Gx(W,"downloadStatusEntity")))==null?void 0:c.downloadState)!=null?Z:"DOWNLOAD_STATE_UNKNOWN"}else y="DOWNLOAD_STATE_UNKNOWN";return y};
JK=function(y,W){return auI(y.entities,W)};
jxE=function(y){y=_.w0O(y);var W=y.hours===void 0?0:y.hours,c=y.minutes===void 0?0:y.minutes,Z=y.seconds===void 0?0:y.seconds,G=W>0;y=[];G&&(W=_.qUf(W),y.push(W));W=G;W=W===void 0?!1:W;c=(["af","be","lt"].includes(_.Vl)||W)&&c<10?kRE().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);y.push(c);c=kRE().format(Z);y.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(_.Vl)&&(c=".");return y.join(c)};
_.w0O=function(y){var W=y.hours||0,c=y.minutes||0,Z=y.seconds||0;W=Z+c*60+W*3600+(y.days||0)*86400+(y.weeks||0)*604800+(y.months||0)*2629800+(y.years||0)*31557600;if(W<=0)return{hours:0,minutes:0,seconds:0};y=W;W=Math.floor(y/3600);y%=3600;c=Math.floor(y/60);Z=Math.floor(y%60);return{hours:W,minutes:c,seconds:Z}};
_.qUf=function(y){y=(new Intl.NumberFormat("en-u-nu-latn")).format(y);var W=["fr"],c="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(_.Vl)?y.replace(",","\u00a0"):W.includes(_.Vl)?y.replace(",","\u202f"):c.includes(_.Vl)?y.replace(",","."):y};
kRE=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
yth=function(y){try{return(new _.Cq(5)).format(y)}catch(W){}};
Ql=function(y){return{thumbnailOverlayDownloadingRenderer:{state:y}}};
WBw=function(y){if(y=yth(y))return{thumbnailOverlaySidePanelRenderer:{text:_.wK(y),icon:{iconType:"PLAYLISTS"}}}};
cty=function(){var y=_.bN("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.wK(y),icon:{iconType:"PLAY_ALL"}}}};
ZAh=function(y){y=_.AK(y,2);return _.Vl!=="ru"&&_.Vl!=="es_419"&&_.Vl!=="es-419"&&_.Vl!=="es"&&_.Vl!=="es_US"&&_.Vl!=="es-US"&&_.Vl!=="fr"&&_.Vl!=="pl"&&_.Vl!=="it"&&_.Vl!=="nl"&&_.Vl!=="uk"&&_.Vl!=="fr_CA"&&_.Vl!=="fr-CA"||y===""?y:y[0].toLocaleUpperCase()+y.substring(1)};
frI=function(y){return function(W){var c=y(),Z=_.AK(W,c.dateFormat);W=_.AK(W,c.timeFormat);var G=GII.DATETIMEFORMATS[c.joinerStyle];G=G.replace(/'(?!')/g,"");G=G.replace("{0}",W);G=G.replace("{1}",Z);return c.capitalize(G)}};
oSh=function(y){return y?typeof y.seconds==="string"&&(y.nanos===void 0||typeof y.nanos==="number"):!1};
D71=function(y){return new Date(Number(y.seconds)*1E3+(y.nanos||0)*1E-6)};
_.AK=function(y,W){if(typeof y.getTime==="function")y={date:y};else if(oSh(y))y={date:D71(y)};else if(typeof oSh(y.timestamp)&&typeof y.i18nInternalSecondsEastOfUtc==="number")y={date:D71(y.timestamp),timeZone:hK(-y.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(y));var c=y;y=c.date;c=c.timeZone;W=zZw(W).format(y,c);_.Vl==="zh-TW"&&(y=c?Number(zZw("H").format(y,c)):y.getHours(),W=y<5?W.replace("\u4e0a\u5348","\u51cc\u6668"):y<8?W.replace("\u4e0a\u5348","\u65e9\u4e0a"):y<12?
W.replace("\u4e0a\u5348","\u4e0a\u5348"):y<13?W.replace("\u4e0b\u5348","\u4e2d\u5348"):y<19?W.replace("\u4e0b\u5348","\u4e0b\u5348"):W.replace("\u4e0b\u5348","\u665a\u4e0a"));return W};
zZw=function(y){if(YoI.has(y))return YoI.get(y);var W=m7I(y);W=sxg(W);uqa!==!0&&(uqa=!0);t_h=!0;t_h=!1;W=new B$(W,GII);YoI.set(y,W);return W};
m7I=function(y){return(new B$(y,GII)).patternParts_.map(function(W){return W.type===0?"'"+W.text+"'":W.text}).join("")};
sxg=function(y){return _.Vl==="en"||_.Vl==="es_US"||_.Vl==="es-US"?y:y.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(W,c,Z){return"H".repeat(c.length)+Z})};
KBt=function(y,W){nSg||(_.H$=_.Xjf,nSg=new bAI);var c=nSg;a:if(y=rtI(y),W=rtI(W||new Date),y>W)c=y.getTime()-W.getTime()>6048E5?_.AK(y,1):FBI(y);else{for(var Z=0;U7E(y,12*(Z+1))<W;)++Z;if(Z>0)c=c.format(-Z,0);else{for(Z=0;U7E(y,Z+1)<W;)++Z;if(Z>0)c=c.format(-Z,2);else{y=W.getTime()-y.getTime();W=_.z($71);for(Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var G=Z.unit,D=Math.floor(y/Z.unitDuration);if(D>=(Z.threshold===void 0?1:Z.threshold)){c=c.format(-D,G);break a}}c=c.format(-0,7)}}}return c};
rtI=function(y){if(typeof y.getTime==="function")return y;if(oSh(y))return D71(y);throw Error("Cf`"+JSON.stringify(y));};
U7E=function(y,W){for(var c=0,Z;;++c)if(Z=new Date(y.getFullYear(),y.getMonth()+W,y.getDate()-c,y.getHours(),y.getMinutes(),y.getSeconds()),Z.getMonth()===(y.getMonth()+W)%12)return Z};
_.Lq=function(y){return{runs:[{text:y}]}};
_.v$=function(y){if(y&&y.simpleText)return y.simpleText;var W="";if(y&&y.runs)for(var c=0;c<y.runs.length;c++)y.runs[c].text&&(W+=y.runs[c].text);return W};
gSD=function(y,W,c,Z){return y.videoEntity&&!y.policyEntity&&c!=="DOWNLOAD_STATE_FAILED"?[Ql("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:nq(y.policyEntity)&&W!=="TRANSFER_STATE_FAILED"&&W!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?W==="TRANSFER_STATE_PAUSED_BY_USER"?[Ql("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Xj(W)?[Ql("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:y.videoEntity.lengthSeconds?OAw(y.videoEntity.lengthSeconds,Z):[]:
[Ql("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
OAw=function(y,W){var c=[{thumbnailOverlayTimeStatusRenderer:{text:_.wK(jxE({seconds:y})),style:"DEFAULT"}}];W&&(y=W<=0||y<=0?0:W>=y?100:Math.ceil(W*100/y),y>0&&c.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:y}}));return c};
RZh=function(y,W,c,Z,G){if(W==="TRANSFER_STATE_UNKNOWN"||!y)return{};if(_.Xj(W)||W==="TRANSFER_STATE_PRE_TRANSFER")var D=[Ql("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Y,u;if(W==="TRANSFER_STATE_COMPLETE"&&((Y=y.mainPlaylistEntity)==null?0:(u=Y.videos)==null?0:u.length)){if(_.O("web_modern_collections_v2")){var t;var b=(D=y.mainPlaylistEntity)==null?void 0:(t=D.videos)==null?void 0:t.length;D=(D=yth(b))?{thumbnailOverlayBottomPanelRenderer:{text:_.wK(D),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var r;D=WBw((b=y.mainPlaylistEntity)==null?void 0:(r=b.videos)==null?void 0:r.length)}var F;D=[cty(),Object.assign({},(F=D)!=null?F:{})]}else D=[]}F=D;a:if(W==="TRANSFER_STATE_PRE_TRANSFER")c=q2(_.bN("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE")c=q2(_.bN("WAITING_TO_DOWNLOAD"));else if(_.Xj(W))c=Math.floor(c*100).toString(),c=q2(_.bN("DOWNLOADING_PERCENT",{percent:c},"Downloading... "+c+"%"));else{if(Z&&(_.O("playlist_is_offline_selector_killswitch")&&
(G=_.U().resolve(_.CX).isNetworkAvailable()),G)){c=QYt(_.bN("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),VeD(Z));break a}c=void 0}W=W==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.bN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},F.length?{thumbnailOverlays:F}:{},c?{viewPlaylistText:c}:{viewPlaylistText:_.Lq("")},W.length?{badges:W}:{})};
lrF=function(y,W,c,Z,G,D){if(W==="TRANSFER_STATE_UNKNOWN"||!y)return{};if(Z==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Y=gSD(y,W,Z);if(y.videoEntity&&!y.policyEntity&&Z!=="DOWNLOAD_STATE_FAILED"){var u=_.bN("WAITING_TO_DOWNLOAD");if(u)return{shortViewCountText:_.Lq(u),publishedTimeText:void 0,thumbnailOverlays:Y}}if(!nq(y.policyEntity)){D=y.policyEntity&&!NRH(y.policyEntity)?_.bN("DOWNLOAD_EXPIRED",{},"Download expired"):
_.bN("TRANSFER_FAILED",{},"Download failed");var t;if((t=y.policyEntity)==null?0:t.shortMessageForDisabledAction)D=y.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:q2(D),publishedTimeText:void 0,thumbnailOverlays:Y}}if(W==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Lq(_.bN("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Y};if(W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Lq(_.bN("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Y};if(W==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(t=_.bN("WAITING_TO_DOWNLOAD"),Z==="DOWNLOAD_STATE_PAUSED"&&(t=_.bN("DOWNLOAD_PAUSED",{},"Download paused")),t))return{shortViewCountText:_.Lq(t),publishedTimeText:void 0,thumbnailOverlays:Y};if(_.Xj(W))return y=Math.floor(c*100).toString(),{shortViewCountText:_.Lq(_.bN("DOWNLOADING_PERCENT",{percent:y},"Downloading... "+y+"%")),publishedTimeText:void 0,thumbnailOverlays:Y};W=void 0;y.videoEntity.publishedTimestampMillis&&
(W=new Date,G&&(W=new Date(G)),W=q2(KBt(new Date(Number(y.videoEntity.publishedTimestampMillis)),W)));G=[];_.O("kevlar_woffle_badge_killswitch")||(G=[{metadataBadgeRenderer:{label:_.bN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var b;y=q2((b=y.videoEntity.localizedStrings)==null?void 0:b.viewCount);return Object.assign({},D?{shortViewCountText:void 0}:{shortViewCountText:y},D?{}:{publishedTimeText:W},{badges:G,thumbnailOverlays:Y})};
NUI=function(y,W){y=y===void 0?ESw:y;switch(W.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:W.payload.playlistId,inviteLinkURL:W.payload.inviteLinkUrl};default:return y}};
pjy=function(y,W){y=y===void 0?IrO:y;switch(W.type){case "SET_CURRENT_FORM_ID":return W=W.payload.formId,y.currentFormId===W?y:{currentFormId:W,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var c=W.payload;W=c.groupId;c=c.command;if(y.currentFormId){var Z=Object.assign({},y.commandsMap);Z[W]=c;y=Object.assign({},y,{commandsMap:Z})}return y;case "RESET_COMMAND_MAP":return Object.assign({},y,{commandsMap:{}});default:return y}};
Jtw=function(y,W){y=y===void 0?P$I:y;switch(W.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},y,{guideIsExpanded:W.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},y,{scrollAtTop:W.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},y,{guideIsVisibleButNotPersistent:W.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},y,{miniplayerIsActive:W.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},y,{singleOptionSurveyIsActive:W.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},y,{slimlineSurveyRatingSelectedIndex:W.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},y,{richGridMiniMode:W.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},y,{richGridItemsPerRow:W.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},y,{richGridSlimItemsPerRow:W.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},y,{richGridContainerWidth:W.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},y,{richGridStyle:W.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},y,{currentPageType:W.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},y,{inlinePreviewIsActive:W.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},y,{inlinePreviewIsEnabled:W.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},y,{darkModeIsEnabled:W.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
y,{miniplayerPlaybackState:W.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},y,{tabGesturesIsActive:W.payload});case "SET_ONLINE_STATUS":return Object.assign({},y,{isOnline:W.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},y,{chipBarIsSticky:W.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},y,{frostedGlassMode:W.payload});default:return y}};
C$D=function(y,W){y=y===void 0?V_F:y;switch(W.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},y,{transcription:W.payload});case "SET_OVERLAY_STATE":return Object.assign({},y,{overlay:W.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return y}};
TUI=function(){return zr(Object.assign({},{continuation:Qxt,entities:quw,download:Att,reportChannelAbuse:hZg,share:BUg,talkToRecs:HAa,ui:Jtw,voiceSearch:C$D,watch:LBI,ypc:vSa,shorts:d7f,radioButtonGroup:pjy,collabInviteLink:NUI},SoE))};
iAD=function(){return _.O("web_player_entities_middleware")?new du(TUI(),[arf,x7a]):new du(TUI(),[arf])};
_.Sv=function(){M_D||(M_D=iAD());return M_D};
eZa=function(y,W,c){if(y.length)return{titleText:_.wK(W!=null?W:_.bN("DOWNLOADS",void 0,"Downloads")),contents:y.map(function(Z){var G=Z.videoEntity;Z={videoId:G.videoId,title:q2(G.title),shortBylineText:q2(Z.channelEntity.title),thumbnail:G.thumbnail};var D=G.videoId?JK(_.Sv().getState(),G.videoId):0;G.videoId&&c?Z.navigationEndpoint=_.eG(G.videoId,c,void 0,void 0,D):G.videoId&&(Z.navigationEndpoint=JkI(G.videoId,D,G.lengthSeconds));G.lengthSeconds&&(Z.thumbnailOverlays=OAw(G.lengthSeconds,D));return{playlistPanelVideoRenderer:Z}}),
totalVideos:y.length}};
wjt=function(y){return(y=(0,_.Eb.getValueByKeys)(y,"playlistId"))?{playlistId:y}:null};
qoF=function(){return{}};
kIa=function(y,W){return new _.fD(function(c,Z){y.then(function(G){if(G){if(G=W(G))return c(G);Z()}},Z)})};
jZw=function(y){var W,c,Z,G=(W=y.contents)==null?void 0:(c=W.twoColumnWatchNextResults)==null?void 0:(Z=c.autoplay)==null?void 0:Z.autoplay,D,Y,u;W=(D=y.contents)==null?void 0:(Y=D.twoColumnWatchNextResults)==null?void 0:(u=Y.playlist)==null?void 0:u.playlist;return G&&W&&W.playlistId?{rawResponse:y,autoplayRenderer:G,playlistPanelRenderer:W,playlistId:W.playlistId}:null};
WWg=function(y){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(y.length===1)return y[0];var c=yyf[W];if(c){c=new RegExp(c);for(var Z=_.z(y),G=Z.next();!G.done;G=Z.next())if(G=G.value,c.exec(G))return G}var D=[];Object.entries(yyf).forEach(function(Y){var u=_.z(Y);Y=u.next().value;u=u.next().value;W!==Y&&D.push(u)});
c=new RegExp(D.join("|"));y.sort(function(Y,u){return Y.length-u.length});
Z=_.z(y);for(G=Z.next();!G.done;G=Z.next())if(G=G.value,!c.exec(G))return G;return y[0]};
_.Tx=function(y){return"/youtubei/v1/"+WWg(y)};
_.av=function(y){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:y}}}}};
_.xR=function(y){return _.av(_.Lq(y))};
cyy=function(y,W){var c={mode:"NORMAL"};y&&(c.autoplayVideo=y.navigationEndpoint,c.nextButtonVideo=y.navigationEndpoint);W&&(c.previousButtonVideo=W.navigationEndpoint);return c};
f$g=function(y,W,c){if(!c||!c.sets)return{sets:[cyy(y,W)]};var Z=c.sets.find(function(Y){return Y.mode==="NORMAL"}),G=(0,_.Eb.unsafeClone)(c);
if(!Z)return G.sets.push(cyy(y,W)),G;if(!y)return c;Z=_.Eb.getValueByKeys.apply(null,[Z].concat(_.No(ZBw)));var D=_.Eb.getValueByKeys.apply(null,[y].concat(_.No(G6F)));if(Z===D)return c;G.sets=G.sets.filter(function(Y){return Y.mode!=="NORMAL"});
G.sets.push(cyy(y,W));return G};
ong=function(y){return!!y.playlistPanelVideoRenderer&&!y.playlistPanelVideoRenderer.unplayableText};
D0g=function(y){return!!y.playlistPanelVideoRenderer&&!!y.playlistPanelVideoRenderer.title};
zrh=function(y,W){if(W.contents&&!(y>=W.contents.length)&&(y=W.contents.slice(y).find(ong)))return y.playlistPanelVideoRenderer};
Yst=function(y,W){if(W.contents)return(W=W.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===y}))?W.playlistPanelVideoRenderer:void 0};
m0t=function(y,W){return W.contents?W.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===y}):-1};
sZf=function(y,W){return W.contents?W.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.playlistSetVideoId===y}):-1};
u_a=function(y,W){y.contents&&W!==-1&&y.contents.splice(W,1).length===1&&y.totalVideos!==void 0&&(--y.totalVideos,delete y.videoCountText)};
_.tcH=function(y){var W=[];if(!y||!y.contents)return W;y=_.z(y.contents);for(var c=y.next();!c.done;c=y.next())c=c.value,c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId&&W.push(c.playlistPanelVideoRenderer.videoId);return W};
_.nnH=function(y){if(y&&y.contents)return(y=y.contents.find(function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.selected})||y.contents[y.currentIndex])?y.playlistPanelVideoRenderer:void 0};
X8F=function(y,W,c,Z,G,D,Y){G=G===void 0?!1:G;D=D===void 0?!1:D;Y=Y===void 0?!1:Y;if(y.contents&&y.contents.length!==0){Z&&(y.contents=y.contents.filter(Z));Z=y.contents.length;for(var u=0;u<Z;u++){var t=y.contents[u].playlistPanelVideoRenderer;t&&(u===W?(D&&delete t.menu,t.indexText=_.Lq("\u25b6")):G||y.isInfinite||t.indexText===void 0?delete t.indexText:t.indexText=_.Lq((u+1+c).toString()))}y.currentIndex=W+c;Y&&(delete y.videoCountText,y.totalVideos=Z)}};
bBf=function(y,W){var c=document.body;W=W===void 0?function(u){return u}:W;
var Z,G=null;y=_.z(y);for(Z=y.next();!Z.done;Z=y.next()){var D=Z.value;Z=document.createElement("div");G||(G=Z);var Y=D[0];D=D[1];Y&&(Z.id=W(Y));if(D)for(Y=_.z(D),D=Y.next();!D.done;D=Y.next())Z.classList.add(W(D.value));c.appendChild(Z);c=Z}return[G,c]};
ryI=function(y,W){for(var c="",Z=0;Z<W;Z++)c+=y.charAt(Math.floor(Math.random()*y.length));return c};
io=function(y){return ryI("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",y)};
MW=function(y){return ryI("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",y)};
ev=function(y){return ryI("0123456789",y)};
wu=function(){var y=performance.now(),W=new Date;var c="2."+W.getFullYear()+String(W.getMonth()+1).padStart(2,"0")+String(W.getDate()).padStart(2,"0");for(var Z,G=Math.floor(Math.random()*11)+15,D=[],Y=0;Y<G;Y++)D.push(Math.floor(Math.random()*26476865)+24547720);Z=D.join(",");var u=io(10),t=io(100),b=io(102),r=io(106),F=io(108),K=io(11),l=io(1140),N=io(123),P=io(14),V=io(16),Q=io(1900),S=io(23),cy=io(26),M=io(34),fa=io(397),jI=io(44),sD=io(5),ED=io(72),N1=io(74),bf=io(75),Py=io(88),WJ=io(91),t5=
"rr2---sn-q4fl6ns6 rr3---sn-q4flrnsl rr5---sn-aigl6nzl rr2---sn-aigl6nze rr1---sn-q4flrnes rr1---sn-q4fl6nd7 rr2---sn-q4flrnld rr4---sn-t0a7ln7d rr3---sn-hgn7yn7e rr1---sn-q4fl6nss rr4---sn-q4fl6n6s rr5---sn-q4flrne7 rr1---sn-q4flrnle rr4---sn-q4flrnsl rr4---sn-ntq7yns7 rr4---sn-hgn7rnls rr3---sn-q4fl6nde rr5---sn-q4fl6nd7 rr2---sn-q4flrnss rr2---sn-5hne6n6e".split(" ");var xF=t5[Math.floor(Math.random()*t5.length)];var M3=(new Date("2010-01-01")).getTime();var wS=(new Date(M3+Math.random()*((new Date).getTime()-
M3))).toISOString().split("T")[0];for(var f8,eV=[],N3=0;N3<4;N3++)eV.push(Math.floor(Math.random()*100));f8=eV.join(".");var K8=Number(ev(5)),PJ=Number(ev(6)),cX=Number(ev(7)),a$=Number(ev(9)),oI=ev(1),Zg=ev(10),xW=ev(16),dS=ev(19),bE=ev(2),EZ=ev(20),jV=ev(21),La=ev(3),sZ=ev(4),w2=ev(5),Z3=ev(6),J5=ev(7),B3=ev(8),E3=ev(9);var T7=ryI("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",27352);var YX=[MW(5),MW(5),MW(5)].join("%2C"),JS=[ev(3),ev(5),ev(5)].join("%2C"),iM=MW(0),lG=MW(1),
a8=MW(10),OE=MW(108),$X=MW(11),WQ=MW(12),MR=MW(13),gj=MW(14),v7=MW(15),XF=MW(16),dX=MW(17),rg=MW(18),JH=MW(19),hH=MW(2),Xm=MW(20),Gf=MW(22),Gi=MW(23),zi=MW(24),Ti=MW(266),$W=MW(3),Kf=MW(30),qg=MW(34),lE=MW(35),oN=MW(36),eb=MW(4),q9=MW(40),Z_=MW(43),bz=MW(47),I3=MW(5),vy=MW(6),nQ=MW(7),FM=MW(75),SD=MW(8),Ga=MW(80),fP=MW(9),R$="https://www."+MW(12)+".com",we={},qv={},M6={},mgh={},ei={},FV={},UK={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:Z}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:c},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+MW(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",
value:c},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Z}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:jV+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+MW(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:q9,ypcGetOfflineUpsellEndpoint:{params:Ga}},trackingParams:lE+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},contextParams:"Q0FFU0FnZ0M="},
streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&cnr="+bE+"&ratebypass=yes&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&c=WEB&txp="+J5+"&n="+V+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:PJ,width:640,height:360,lastModified:xW,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:J5,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+JS+"&mn="+
YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&cnr="+bE+"&ratebypass=yes&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&c=WEB&txp="+J5+"&n="+V+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+OE+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:PJ,width:1280,
height:720,lastModified:xW,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:J5,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+JS+"&mn="+YX+"&ms="+
YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+E3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:cX,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:E3,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cX,approxDurationMs:J5},{itag:248,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+JS+"&mn="+YX+"&ms="+YX+"&mv="+
lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+E3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:cX,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:E3,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:399,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+E3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:cX,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:E3,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:cX,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:136,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+E3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:cX,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:E3,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:PJ,approxDurationMs:J5},{itag:247,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+JS+"&mn="+
YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+E3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:cX,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:E3,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:398,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+E3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:cX,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:E3,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:135,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:PJ,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:PJ,approxDurationMs:J5},{itag:244,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+JS+"&mn="+
YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+OE+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:PJ,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:397,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:PJ,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:134,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:PJ,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:PJ,highReplication:!0,approxDurationMs:J5},{itag:243,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:PJ,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:396,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:PJ,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:133,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:PJ,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:PJ,approxDurationMs:J5},{itag:242,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+JS+"&mn="+
YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:PJ,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:395,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:PJ,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:PJ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:160,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:PJ,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:K8,approxDurationMs:J5},{itag:278,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+JS+"&mn="+
YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+F+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/webm; codecs="vp9"',bitrate:PJ,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:K8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:394,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&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="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=video%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:K8,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:K8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:J5},{itag:140,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=audio%2Fmp4&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:PJ,
initRange:{start:"0",end:"631"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:PJ,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:J5,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+
bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=audio%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+J5+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/webm; codecs="opus"',bitrate:K8,initRange:{start:"0",end:"265"},indexRange:{start:La,
end:sZ},lastModified:xW,contentLength:J5,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:K8,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:J5,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=audio%2Fwebm&ns="+
zi+"&gir="+$W+"&clen="+J5+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/webm; codecs="opus"',bitrate:K8,initRange:{start:"0",end:"265"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:J5,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:K8,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:J5,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+xF+".googlevideo.com/videoplayback?expire="+Zg+"&ei="+S+"&ip="+f8+"&id=o-AF"+Z_+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+JS+"&mn="+YX+"&ms="+YX+"&mv="+lG+"&mvi="+oI+"&pl="+bE+"&initcwndbps="+J5+"&siu="+oI+"&spc="+jI+"&vprv="+oI+"&svpuc="+oI+"&mime=audio%2Fwebm&ns="+zi+"&gir="+$W+"&clen="+B3+"&dur="+B3+"&lmt="+xW+"&mt="+Zg+"&fvip=3&keepalive="+$W+"&c=WEB&txp="+
J5+"&n="+XF+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+F,mimeType:'audio/webm; codecs="opus"',bitrate:PJ,initRange:{start:"0",end:"265"},indexRange:{start:La,end:sZ},lastModified:xW,contentLength:B3,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:PJ,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:J5,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="+E3+"&docid="+K+"&ei="+S+"&feature="+u+"&fexp="+iM+"&ns="+hH+"&plid="+V+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+lG+"&el="+a8+"&len="+sZ+"&of="+Gf+
"&uga="+bE+"&vm="+Ti},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+E3+"&docid="+K+"&ei="+S+"&feature="+u+"&fexp="+iM+"&ns="+hH+"&plid="+V+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+lG+"&el="+a8+"&len="+sZ+"&of="+Gf+"&uga="+bE+"&vm="+Ti},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+E3+"&docid="+K+"&ei="+S+"&feature="+u+"&fexp="+iM+"&ns="+hH+"&plid="+V+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
lG+"&el="+a8+"&len="+sZ+"&of="+Gf+"&uga="+bE+"&vm="+Ti},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+S+"&m="+Py+"&oid="+Gf+"&plid="+V+"&pltype="+nQ+"&ptchn="+Gf+"&ptk="+P+"&video_id="+K},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+E3+"&docid="+K+"&ei="+S+"&event="+gj+"&feature="+u+"&fexp="+iM+"&ns="+hH+"&plid="+V+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+lG},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+K+"&ei="+S+"&feature="+
u+"&len="+sZ+"&ns="+hH+"&plid="+V+"&ver="+oI,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+K+"&caps="+$W+"&opi="+E3+"&xoaf="+oI+"&hl="+hH+"&ip="+f8+"&ipbits="+oI+"&expire="+Zg+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+f8+"&key="+$W+"&lang="+sD,name:{simpleText:gj},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+K+"&caps="+$W+"&opi="+E3+"&xoaf="+oI+"&hl="+hH+"&ip="+f8+"&ipbits="+oI+"&expire="+Zg+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+f8+"&key="+$W+"&kind="+$W+"&lang="+hH,name:{simpleText:$X},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:$X,title:$X,lengthSeconds:"1155",keywords:[SD,eb,vy,vy],
channelId:zi,isOwnerViewing:!1,shortDescription:XF,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+qg,width:168,height:94},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+qg,width:196,height:110},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
K+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:J5,author:MR,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:J5,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Gf+"/featured_channel.jpg?v="+SD,width:40,height:40}]},trackingParams:lE+"=",navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"/channel/"+zi,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:zi}},channelName:MR,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:vy}]},subscribed:!1,enabled:!0,type:"FREE",channelId:zi,showPreferences:!1,subscribedButtonText:{runs:[{text:fP}]},unsubscribedButtonText:{runs:[{text:dX}]},trackingParams:lE+"=",unsubscribeButtonText:{runs:[{text:JH}]},serviceEndpoints:[{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[zi],params:SD}},{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:q9,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lE+"=",dialogMessages:[{runs:[{text:$X},{text:eb},{text:MR}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dX}]},serviceEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[zi],params:SD}},accessibility:{label:Xm},trackingParams:lE+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:JH}]},accessibility:{label:eb},trackingParams:lE+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:dX}},unsubscribeAccessibility:{accessibilityData:{label:SD}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:B3},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[zi],params:SD}},unsubscribeCommand:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[zi],params:SD}},addToWatchLaterCommand:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:$X,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:$X}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+K+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+oN+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
K+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+$X,width:1280,height:720},title:{simpleText:gj},description:{simpleText:$X},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+fP,externalChannelId:zi,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:J5,category:"Travel & Events",publishDate:wS,ownerChannelName:MR,uploadDate:wS}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:v7},trackingParams:lE+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:q9,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:lE+"="}}],headerText:{simpleText:eb},icon:{infoCardIconRenderer:{trackingParams:lE+"="}},closeButton:{infoCardIconRenderer:{trackingParams:lE+"="}},trackingParams:lE+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:lE+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+$X+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:T7,interpreterSafeUrl:(we.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Kf+".js",we),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:gj},{text:a8,bold:!0}]},endpoint:{clickTrackingParams:q9,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:lE+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:rg}]},actionButton:{buttonRenderer:{text:{runs:[{text:vy}]},navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+K,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
K,target:"TARGET_NEW_WINDOW"}},trackingParams:lE+"="}},trackingParams:lE+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+ED+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+ED+"=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:J5,endMs:J5,title:{accessibility:{accessibilityData:{label:gj}},simpleText:gj},metadata:{simpleText:SD},callToAction:{simpleText:eb},dismiss:{simpleText:I3},endpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"/channel/"+zi,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:zi}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:$X}]},subscribed:!1,enabled:!0,type:"FREE",channelId:zi,showPreferences:!1,
subscribedButtonText:{runs:[{text:rg}]},unsubscribedButtonText:{runs:[{text:dX}]},trackingParams:lE+"=",unsubscribeButtonText:{runs:[{text:$X}]},serviceEndpoints:[{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[zi],params:SD}},{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:q9,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:lE+
"=",dialogMessages:[{runs:[{text:vy},{text:a8},{text:SD}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:SD}]},serviceEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[zi],params:SD}},accessibility:{label:SD},trackingParams:lE+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:gj}]},
accessibility:{label:WQ},trackingParams:lE+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:SD}},unsubscribeAccessibility:{accessibilityData:{label:XF}}}},trackingParams:lE+"=",isSubscribe:!0,id:EZ}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+M,width:168,height:94},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+qg,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+K+"/hqdefault.jpg?sqp=-oaymwE"+oN+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+K+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:J5,endMs:J5,title:{accessibility:{accessibilityData:{label:vy}},simpleText:JH},metadata:{simpleText:$X},endpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
$X,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:$X,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+xF+".googlevideo.com/videoplayback?source=youtube&oeis="+oI+"&c=WEB&oad="+sZ+"&ovd="+sZ+"&oaad="+w2+"&oavd="+w2+"&ocs="+La+"&oewis="+oI+"&oputc="+oI+"&ofpcc="+oI+"&siu="+oI+"&msp="+oI+"&odepv="+oI+
"&id=o-AF"+Z_+"&ip="+f8+"&initcwndbps="+J5+"&mt="+Zg+"&oweuc="+iM}}}}},trackingParams:lE+"=",id:EZ,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:I3}},simpleText:XF},style:"DEFAULT"}}]}}],startMs:J5,trackingParams:lE+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:oI,offsetEndMilliseconds:w2},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";ord="+Zg+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+La+";dc_sk="+oI+";dc_ctype="+bE+";dc_ref=http://www.youtube.com/video/"+$X+";dc_pubid="+oI+";dc_btype=23?gclid="+WJ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+oI+"&ns="+oI+"&event="+oI+"&device="+oI+"&content_v="+K+"&el="+a8+"&ei="+S+"&devicever="+c+"&bti="+J5+"&format="+Z3+"&break_type="+oI+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+oI+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+f8+"&slot_pos="+oI+"&slot_len="+oI+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+JS+"&ad_len="+w2+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
$X+"&aqi="+S+"&ad_rmp="+oI+"&sli="+oI}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+
oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+J5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&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"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&ctype="+La+"&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"+
l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_engaged_view&ctype="+La+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+";dc_rui="+oI+";dc_exteid="+dS+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Gi+"&ad_cpn=[AD_CPN]&id="+vy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vy+"&dc_pubid="+oI+"&dc_exteid="+EZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Gi+"&ad_cpn=[AD_CPN]&id="+vy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+oI},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vy+"&avm="+oI+"&dc_pubid="+oI+"&dc_exteid="+
EZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&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="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
b+"&sig="+Gi+"&ad_cpn=[AD_CPN]&id="+vy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+oI},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vy+"&dc_pubid="+oI+"&dc_exteid="+EZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:q9,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+
La+"&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/"+K+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lE+"="},trackingParams:lE+
"=",templatedCountdown:{templatedAdText:{text:gj,isTemplated:!0,trackingParams:lE+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:eb,isTemplated:!1,trackingParams:lE+"="},trackingParams:lE+"="}},trackingParams:lE+"=",skipOffsetMilliseconds:5E3}},trackingParams:lE+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:eb},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lE+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:XF,isTemplated:!1,trackingParams:lE+"="},trackingParams:lE+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:rg,isTemplated:!0,trackingParams:lE+"="}},trackingParams:lE+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:q9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+hH+"&origin=www.youtube.com&ata_theme="+eb,qv),trackingParams:lE+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:lE+"="}},hoverText:{runs:[{text:v7}]},trackingParams:lE+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bz+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lE+"="},headline:{text:vy,isTemplated:!1,trackingParams:lE+"="},description:{text:dX,
trackingParams:lE+"="},actionButton:{buttonRenderer:{text:{simpleText:MR},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lE+"="}},startMs:oI,trackingParams:lE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:JH},elementId:MR}},elementId:SD,trackingParams:lE+"=",legacyInfoCardVastExtension:fP,sodarExtensionData:{siub:Xm,bgub:nQ,scs:nQ,bgp:fP},externalVideoId:$X,adLayoutLoggingData:{serializedAdServingDataEntry:JH},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bz+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lE+"="},
headline:{text:SD,isTemplated:!1,trackingParams:lE+"="},description:{text:dX,isTemplated:!1,trackingParams:lE+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:eb},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+";dc_rui="+oI+";dc_exteid="+
EZ+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+
oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lE+"="}},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E3+";dc_trk_cid="+
E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lE+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lE+"="},abandonCommands:{commands:[{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&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="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+
oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:q9,commandExecutorCommand:{commands:[{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:a8,isTemplated:!1,trackingParams:lE+
"="},trackingParams:lE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gj},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+J5+";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="+E3+";dc_trk_cid="+E3+";ord="+Zg+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+La+";dc_sk="+oI+";dc_ctype="+bE+";dc_ref=http://www.youtube.com/video/"+$X+";dc_pubid="+oI+";dc_btype=23?gclid="+WJ+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+oI+"&ns="+oI+"&event="+oI+"&device="+oI+"&content_v="+K+"&el="+a8+"&ei="+S+"&devicever="+c+"&bti="+J5+"&format="+Z3+"&break_type="+oI+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+oI+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+f8+"&slot_pos="+oI+"&slot_len="+oI+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
JS+"&ad_len="+w2+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+$X+"&aqi="+S+"&ad_rmp="+oI+"&sli="+oI}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+
cy+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+J5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&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"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&ctype="+La+"&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"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_engaged_view&ctype="+La+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Gi+"&ad_cpn=[AD_CPN]&id="+
vy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vy+"&dc_pubid="+oI+"&dc_exteid="+EZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+
"&sig="+Gi+"&ad_cpn=[AD_CPN]&id="+vy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+oI},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vy+"&avm="+oI+"&dc_pubid="+oI+"&dc_exteid="+EZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&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="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+b+"&sig="+Gi+"&ad_cpn=[AD_CPN]&id="+vy+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+oI},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vy+"&dc_pubid="+oI+"&dc_exteid="+EZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+Z3+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+
La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&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/"+K+"/mqdefault.jpg",width:320,height:180}]},trackingParams:lE+"="},trackingParams:lE+"=",templatedCountdown:{templatedAdText:{text:Xm,isTemplated:!0,trackingParams:lE+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:rg,isTemplated:!1,trackingParams:lE+"="},trackingParams:lE+"="}},
trackingParams:lE+"=",skipOffsetMilliseconds:5E3}},trackingParams:lE+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:JH},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:v7,isTemplated:!1,trackingParams:lE+"="},trackingParams:lE+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:MR,
isTemplated:!0,trackingParams:lE+"="}},trackingParams:lE+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:q9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(M6.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+hH+"&origin=www.youtube.com&ata_theme="+eb,M6),trackingParams:lE+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:lE+"="}},hoverText:{runs:[{text:I3}]},trackingParams:lE+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+N1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lE+"="},headline:{text:dX,isTemplated:!1,trackingParams:lE+"="},description:{text:I3,trackingParams:lE+"="},actionButton:{buttonRenderer:{text:{simpleText:SD},navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lE+"="}},startMs:oI,trackingParams:lE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:a8},elementId:v7}},elementId:Xm,trackingParams:lE+"=",legacyInfoCardVastExtension:JH,sodarExtensionData:{siub:JH,bgub:rg,scs:v7,bgp:gj},externalVideoId:$X,adLayoutLoggingData:{serializedAdServingDataEntry:I3},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+N1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:lE+"="},headline:{text:nQ,
isTemplated:!1,trackingParams:lE+"="},description:{text:fP,isTemplated:!1,trackingParams:lE+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:vy},navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:lE+"="}},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+
oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:lE+"="},abandonCommands:{commands:[{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&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="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+oI+"="+oI+";etm1="+oI+";eid1="+bE+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:q9,commandExecutorCommand:{commands:[{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=video_card_endcap_impression"}],
pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:fP,isTemplated:!1,trackingParams:lE+"="},trackingParams:lE+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:WQ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+oI+";dc_exteid="+EZ+";met="+oI+";ecn"+
oI+"="+oI+";etm1="+oI+";eid1="+J5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:WQ}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$X}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:w2,offsetEndMilliseconds:Z3},hideCueRangeMarker:!0}},
renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+bE+"&token=ALHj"+fa+"&index="+oI+"&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="+c+"&m_pos_ms="+w2}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dX}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Z3,offsetEndMilliseconds:Z3},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+La+"&token=ALHj"+fa+"&index="+oI+"&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="+
c+"&m_pos_ms="+Z3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Z3,offsetEndMilliseconds:Z3},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+La+"&token=ALHj"+fa+"&index="+oI+"&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="+
c+"&m_pos_ms="+Z3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Z3,offsetEndMilliseconds:Z3},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+La+"&token=ALHj"+fa+"&index="+oI+"&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="+
c+"&m_pos_ms="+Z3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:a8}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Z3,offsetEndMilliseconds:bE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+La+"&token=ALHj"+fa+"&index="+oI+"&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="+
c+"&m_pos_ms="+Z3}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:bE,offsetEndMilliseconds:bE},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+S+"&m_pos="+bE+"&token=ALHj"+fa+"&index="+oI+"&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="+
c+"&m_pos_ms="+bE}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:gj,isTemplated:!1,trackingParams:lE+"="},description:{text:rg,isTemplated:!1,trackingParams:lE+"="},actionButton:{buttonRenderer:{text:{simpleText:nQ},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bz+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:lE+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lE+"="},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+
";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:q9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(mgh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+hH+"&origin=www.youtube.com&ata_theme="+eb,mgh),trackingParams:lE+"="}},popupType:"DIALOG"}},trackingParams:lE+"="}},hoverText:{runs:[{text:rg}]},trackingParams:lE+"="}},adVideoId:$X,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:dX},associatedCompositePlayerBytesLayoutId:XF}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:v7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:rg,isTemplated:!1,trackingParams:lE+"="},description:{text:WQ,isTemplated:!1,trackingParams:lE+"="},actionButton:{buttonRenderer:{text:{simpleText:vy},navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lE+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+N1+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lE+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+FM+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lE+"="},navigationEndpoint:{clickTrackingParams:q9,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+
oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:q9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(ei.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+hH+"&origin=www.youtube.com&ata_theme="+eb,ei),trackingParams:lE+"="}},popupType:"DIALOG"}},trackingParams:lE+"="}},
hoverText:{runs:[{text:Xm}]},trackingParams:lE+"="}},adVideoId:$X,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+$X+"&cid="+cy+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:WQ},associatedCompositePlayerBytesLayoutId:XF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:JH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:JH,
isTemplated:!1,trackingParams:lE+"="},description:{text:JH,isTemplated:!1,trackingParams:lE+"="},actionButton:{buttonRenderer:{text:{simpleText:dX},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+
bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+
M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:lE+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+bz+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:lE+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+bf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:lE+
"="},navigationEndpoint:{clickTrackingParams:q9,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+E3+";dc_trk_cid="+E3+";dc_dbm_token="+F+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+oI+";ord="+E3+";dc_rui="+oI+";dc_exteid="+EZ+";dc_av="+oI+";dc_sk="+oI+";dc_ctype="+bE+";dc_pubid="+oI+";dc_btype=3?gclid="+WJ+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+N+"AxAA&ase=2&num="+oI+"&cid="+cy+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+R$+"&label=video_click_to_advertiser_site&ctype="+La+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:lE+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:q9,openPopupAction:{popup:{aboutThisAdRenderer:{url:(FV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Q+"&hl="+hH+"&origin=www.youtube.com&ata_theme="+eb,FV),trackingParams:lE+"="}},popupType:"DIALOG"}},trackingParams:lE+
"="}},hoverText:{runs:[{text:SD}]},trackingParams:lE+"="}},adVideoId:$X,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+N+"AxAA&sigh="+K+"&cid="+cy+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:fP},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:XF}},adSlotLoggingData:{serializedSlotAdServingDataEntry:I3}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Kf,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Kf,command:{innertubeCommand:{clickTrackingParams:q9,ypcGetOfflineUpsellEndpoint:{params:Ga}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:lE+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Zg,nanos:a$}}}},DEf=JSON.stringify(UK),$U=performance.now()-y;return{objectRepresentation:UK,jsonRepresentation:DEf,generationTime:$U}};
FWy=function(y,W){if(y===W)return!0;if(!y||!W||typeof y!==typeof W)return!1;if(y instanceof Array&&W instanceof Array){if(y.length!==W.length)return!1;for(var c=0;c<y.length;c++)if(!FWy(y[c],W[c]))return!1;return!0}if(typeof y==="object"&&typeof W==="object"&&y&&W){for(c in y)if(!(c in W&&FWy(y[c],W[c])))return!1;for(var Z in W)if(!(Z in y))return!1;return!0}return!1};
_.kR=function(){if(!qW){qW=new Yr(new U0y);var y=_.ey("client_streamz_web_flush_count",-1);y!==-1&&(qW.invocationLimit=y)}return qW};
jd=function(y,W,c,Z){if(y===W)return!0;if(Array.isArray(y)&&Array.isArray(W)){if(y.length!==W.length)return!1;for(var G=0;G<y.length;G++)if(!jd(y[G],W[G],c,Z))return!1;return!0}if(y instanceof Set||W instanceof Set){if(y instanceof Set&&W instanceof Set){if(y.size!==W.size)return!1;Z=_.z(y.values());for(G=Z.next();!G.done;G=Z.next())if(!W.has(G.value))return!1;return!0}return!1}if(y instanceof Function){if(Z)return!0;y.name===""&&_.OP(Error("Gf"),"ERROR");return!1}if(y instanceof Date&&W instanceof
Date)return y.getTime()===W.getTime();if(y instanceof Object&&W instanceof Object){if($0O(y)&&$0O(W))try{return y.equals(W)}catch(Y){_.OP(Error("Hf`"+Y),"ERROR")}G=Object.getOwnPropertyNames(y).filter(function(Y){return c?y[Y]!==void 0:!0});
var D=Object.getOwnPropertyNames(W).filter(function(Y){return c?W[Y]!==void 0:!0});
if(G.length!==D.length)return!1;G=_.z(G);for(D=G.next();!D.done;D=G.next())if(D=D.value,!jd(y[D],W[D],c,Z))return!1;return!0}return!1};
$0O=function(y){y=Object.getPrototypeOf(y).equals;return y instanceof Function&&y.length===1};
gny=function(){return _.m(function(y){if(y.nextAddress==1)return KWI!==2?y.jumpTo(2):_.n(y,OBt(),3);y.nextAddress!=2&&(KWI=y.yieldResult);return y.return(KWI)})};
EnF=function(){return _.m(function(y){if(y.nextAddress==1)return _.O("ab_pl_man")?RrH!==2?y.jumpTo(2):_.n(y,l$I(),3):y.return(1);y.nextAddress!=2&&(RrH=y.yieldResult);return y.return(RrH)})};
p8D=function(){return _.m(function(y){if(y.nextAddress==1)return _.O("ab_fk_sk_cl")?N$D!==2?y.jumpTo(2):_.n(y,I$D(),3):y.return(1);y.nextAddress!=2&&(N$D=y.yieldResult);return y.return(N$D)})};
VcH=function(){return _.m(function(y){if(y.nextAddress==1)return _.O("ab_det_apb_b")?PuI!==2?y.jumpTo(2):_.n(y,Jy1(),3):y.return(1);y.nextAddress!=2&&(PuI=y.yieldResult);return y.return(PuI)})};
Ayy=function(){var y;return _.m(function(W){if(W.nextAddress==1)return _.n(W,Promise.all([gny(),VcH(),EnF(),p8D()]),2);if(W.nextAddress!=3)return CuD()?W.return(!0):_.n(W,QZh(),3);y=W.yieldResult;return W.return(y===0)})};
CuD=function(){var y=new hrF;yM(y,B$f(),"j.s_");_.O("disable_enf_isd")||yM(y,HBD(),"i.s_");yM(y,KWI,"f.i_");yM(y,PuI,"a.b_");yM(y,RrH,"p.m_");yM(y,N$D,"i.f_");_.O("ab_det_el_h")&&(LWF===2&&(LWF=vnt(bBf(d0O))),yM(y,LWF,"e.h_"));_.O("ks_det_gpbl")||yM(y,Ssy(),"p.i_");_.O("ks_get_o_pp")||yM(y,T$O(),"g.o_");_.O("ab_deg_unex_thr")||yM(y,a$1(),"a.o_");yM(y,x0I,"s.t_");_.O("ab_det_sc_inj_enf")&&yM(y,iBE(),"s.i_");yM(y,McI,"d.p_");_.O("ab_det_pp_ov")&&yM(y,erH(w8I),"o.p_");_.O("ab_det_apm")&&yM(y,qsI(),"o.a_");
return _.O("debug_sk_em_precheck")?!0:y.gze};
j6f=function(){var y=[].concat(_.No(k6D));try{var W=wu();y.push({jsonRepresentation:W.jsonRepresentation,objectRepresentation:W.objectRepresentation})}catch(c){y=[].concat(_.No(k6D))}return y};
yZh=function(){var y=["adPlacements","adSlots"];try{return y.filter(function(){return!0}).length!==y.length?0:1}catch(W){return 0}};
T$O=function(){if(yZh()===0)return 0;var y=wu(),W=y.objectRepresentation,c=(0,_.Eb.unsafeClone)(W),Z=[];if(W&&typeof W==="object")for(var G in W)Z.push(G);else return 4;y=y.objectRepresentation.adPlacements;if(!(y&&y.length>0))return 4;try{if(!FWy(Z,Object.getOwnPropertyNames(W)))return 0}catch(D){return 0}return FWy(c,W)?1:0};
erH=function(y){var W=Object.getOwnPropertyNames(Object.prototype);y=_.z(y);for(var c=y.next();!c.done;c=y.next()){c=WKD(c.value);for(var Z=_.z(W),G=Z.next();!G.done;G=Z.next())if(c===G.value)return 0}return 1};
qsI=function(){for(var y=cZE,W=0;W<y.length;W++){var c=y[W];var Z=c[1];if(c[0]!==null){c=c[0];for(var G={},D=0;D<c.length;D++){var Y=c[D];if(D===0)G[Y]=Z;else{var u={};u[Y]=G;G=u}}Z=G}c=[];c.push(Z);if(c.length===0)return 0}return 1};
B$f=function(){for(var y=_.z(j6f()),W=y.next();!W.done;W=y.next()){var c=W.value;W=c.jsonRepresentation;c=c.objectRepresentation;try{var Z=JSON.parse(W);if(!jd(Z,c,!1,!1))return 0}catch(G){return 0}}return 1};
iBE=function(){try{var y=_.qn("ab_det_sc_inj_val");y.length===1&&y[0]===""&&(y=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var W=document.querySelectorAll("script"),c=_.z(W),Z=c.next();!Z.done;Z=c.next())for(var G=Z.value,D=_.z(y),Y=D.next();!Y.done;Y=D.next()){var u=Y.value;W=void 0;if((W=G.textContent)==null?0:W.includes(u))return 0}}catch(t){return 4}return 1};
QZh=function(){var y,W,c,Z,G,D,Y;return _.m(function(u){switch(u.nextAddress){case 1:_.tm(u,2),y=_.z(k6D),W=y.next();case 4:if(W.done)return u.return(1);Z=c=W.value;G=Z.jsonRepresentation;D=Z.objectRepresentation;return _.n(u,(new Response(G,{status:200})).json(),7);case 7:Y=u.yieldResult;if(!jd(Y,D,!1,!1))return u.return(0);W=y.next();u.jumpTo(4);break;case 2:return _.rs(u),u.return(4)}})};
a$1=function(){try{btoa("abc")}catch(y){return 0}return 1};
OBt=function(){var y,W,c,Z,G,D,Y,u,t,b,r;return _.m(function(F){switch(F.nextAddress){case 1:_.tm(F,2),y=_.z(j6f()),W=y.next();case 4:if(W.done)return F.return(1);Z=c=W.value;G=Z.jsonRepresentation;D=Z.objectRepresentation;Y=btoa(G);u="data:application/json;base64,"+Y;t=new Request(u);Object.defineProperty(t,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(t,"method",{get:function(){return"POST"}});
Object.defineProperty(t,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(t,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(t,"body",{get:function(){return new ReadableStream}});
return _.n(F,fetch(t),7);case 7:return b=F.yieldResult,_.n(F,b.json(),8);case 8:r=F.yieldResult;if(!jd(r,D,!1,!1))return F.return(0);W=y.next();F.jumpTo(4);break;case 2:return _.rs(F),F.return(4)}})};
vnt=function(y){var W=_.z(y);y=W.next().value;W=W.next().value;try{var c=document.createElement("div");document.body.appendChild(c);var Z=getComputedStyle(c).display;document.body.removeChild(c);if(Z==="none")return 4;var G=getComputedStyle(W).display==="none"?0:1;document.body.removeChild(y);return G}catch(D){return 4}};
I$D=function(){var y,W,c;return _.m(function(Z){y=new _.WK;W=document.createElement("button");W.classList.add("ytp-ad-skip-button");W.style.opacity="0";W.style.height="0px";W.style.width="0px";W.style.padding="0px";W.style.border="none";c=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.onclick=function(){y.resolve(0);c()};
document.body.appendChild(W);setTimeout(function(){c();y.resolve(1)},50);
return Z.return(y.promise)})};
l$I=function(){var y,W,c,Z,G,D,Y;return _.m(function(u){y=new _.WK;W=document.createElement("ytd-player");try{document.body.prepend(W)}catch(t){return u.return(4)}c=function(){W.parentElement&&W.parentElement.removeChild(W)};
W.getElementsByTagName("div").length>0?Z=W.getElementsByTagName("div")[0]:(Z=document.createElement("div"),W.appendChild(Z));G=document.createElement("div");Z.appendChild(G);D=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"});D.src=_.N9(V7(Y));D.ontimeupdate=function(){c();y.resolve(0)};
G.appendChild(D);D.classList.add("html5-main-video");setTimeout(function(){G.classList.add("ad-interrupting")},200);
setTimeout(function(){c();y.resolve(1)},5E3);
return u.return(y.promise)})};
Z4f=function(y,W){var c,Z;return _.m(function(G){switch(G.nextAddress){case 1:c=[],Z=0;case 2:if(!(Z<3)){G.jumpTo(4);break}return _.n(G,fetch(y,{cache:"no-store",method:W}).then(function(D){c.push(D.status)}).catch(function(){c.push(-1)}),3);
case 3:Z++;G.jumpTo(2);break;case 4:return G.return(c)}})};
GpO=function(y){return y.domainLookupStart===0&&y.domainLookupEnd===0&&y.connectStart===0&&y.connectEnd===0};
ffI=function(y,W,c){c=c===void 0?"GET":c;var Z,G,D,Y,u,t,b,r,F,K;return _.m(function(l){if(l.nextAddress==1)return _.n(l,Promise.all([Z4f(y,c),Z4f(W,c)]),2);Z=l.yieldResult;G=_.z(Z);D=G.next().value;Y=G.next().value;u=D;t=Y;if(Math.min.apply(Math,_.No(t))!==Math.max.apply(Math,_.No(t))||Math.min.apply(Math,_.No(u))!==Math.max.apply(Math,_.No(u)))return l.return(2);if(Math.min.apply(Math,_.No(t))===Math.min.apply(Math,_.No(u)))return l.return(1);r=(b=performance.getEntriesByName(y))==null?void 0:b[0];
K=(F=performance.getEntriesByName(W))==null?void 0:F[0];return r&&K?GpO(K)?l.return(1):GpO(r)?l.return(0):l.return(1):l.return(2)})};
Jy1=function(){var y;return _.m(function(W){var c=[];var Z;var G,D,Y;(G=Z=(G=wu().objectRepresentation.streamingData)==null?void 0:(D=G.formats)==null?void 0:(Y=D[0])==null?void 0:Y.url)&&G&&!Z.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(G=G.replace("initcwndbps","ctier=L&initcwndbps"),Z={testUrl:G,baseUrl:Z,method:"GET"}):Z=void 0;Z&&c.push(Z);_.O("ab_net_tp_e")&&c.push({testUrl:_.DH.location.origin+"/ad_companion",baseUrl:_.DH.location.origin+"/generate_204",method:"OPTIONS"});if(_.O("ad_net_pb_ab")){var u;
b:{Z=/api\/stats\/ads/;var t,b,r,F;G=(u=wu().objectRepresentation.adPlacements)==null?void 0:(t=u[0])==null?void 0:(b=t.adPlacementRenderer)==null?void 0:(r=b.renderer)==null?void 0:(F=r.linearAdSequenceRenderer)==null?void 0:F.linearAds;if(G!=null&&G.length&&(u=_.g(G[0],osH))&&(u=u.pings,u!=null&&u.impressionPings))for(t=[].concat(_.No(u.impressionPings)),u.progressPings&&(t=[].concat(_.No(t),_.No(u.progressPings))),u=_.z(t),t=u.next();!t.done;t=u.next())if(t=t.value,t.baseUrl&&Z.test(t.baseUrl)){u=
t.baseUrl.replace("https://www.youtube.com","");break b}u=void 0}u&&c.push({testUrl:_.DH.location.origin+u,baseUrl:_.DH.location.origin+"/feed/download",method:"GET"})}if(_.O("ad_net_pb_pbp")){var K;b:{u=/api\/stats\/qoe/;if(t=wu().objectRepresentation.playbackTracking){b=[];b.push(t==null?void 0:(K=t.videostatsPlaybackUrl)==null?void 0:K.baseUrl);var l;b.push(t==null?void 0:(l=t.videostatsDelayplayUrl)==null?void 0:l.baseUrl);var N;b.push(t==null?void 0:(N=t.videostatsWatchtimeUrl)==null?void 0:
N.baseUrl);var P;b.push(t==null?void 0:(P=t.ptrackingUrl)==null?void 0:P.baseUrl);var V;b.push(t==null?void 0:(V=t.qoeUrl)==null?void 0:V.baseUrl);var Q;b.push(t==null?void 0:(Q=t.atrUrl)==null?void 0:Q.baseUrl);K=_.z(b);for(l=K.next();!l.done;l=K.next())if((l=l.value)&&u.test(l)){K=l.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}K=void 0}K&&c.push({testUrl:_.DH.location.origin+K,baseUrl:_.DH.location.origin+"/feed/download",method:"GET"})}c=c.length!==0?c[Math.floor(Math.random()*
c.length)]:void 0;return(y=c)?W.return(ffI(y.testUrl,y.baseUrl,y.method)):W.return(4)})};
HBD=function(){return _.Nn("ISDSTAT",2)};
Ssy=function(){if(_.DH.hML===void 0||_.DH.hML===null||typeof _.DH.hML!=="function")return 2;try{return _.DH.hML()===!0?0:1}catch(y){return 0}};
D6f=function(y){switch(y){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.d2(y,"unknown result type")}};
_.z5F=function(y,W){var c=Number(_.Nn("CATSTAT",0));if(W.hEE===void 0)return c;W=W.hEE;y=D6f(y);return c&~(3<<W)|y<<W};
YOf=function(y){var W,c;if((y=(W=y.auxiliaryUi)==null?void 0:(c=W.messageRenderers)==null?void 0:c.bkaEnforcementMessageViewModel)&&y.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return y};
s6F=function(){for(var y=_.z(Object.values(_.m6D)),W=y.next();!W.done;W=y.next())W=W.value,W.isAsync&&W.hEE&&_.l1("CATSTAT",_.z5F(2,W))};
_.fZ=function(y,W){y=_.cK("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",y);(W===void 0?0:W)?_.uKH(y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Zl(_.G2(),y,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
nsO=function(){if(!tiE){if(Polymer.Base){var y=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{y.apply(this,arguments)}catch(F){_.pj(F)}};
var W=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{W.apply(this,arguments)}catch(F){_.pj(F)}};
var c=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{c.apply(this,arguments)}catch(F){_.pj(F)}};
var Z=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Z.apply(this,arguments)}catch(F){_.pj(F)}};
var G=Polymer.Base._listen,D=new WeakMap;Polymer.Base._listen=function(F,K,l){var N=function(){try{l.apply(this,arguments)}catch(P){_.pj(P)}};
D.set(l,N);G.call(this,F,K,N)};
var Y=Polymer.Base._unlisten;Polymer.Base._unlisten=function(F,K,l){Y.call(this,F,K,D.get(l))}}if(Polymer.Async){var u=Polymer.Async,t=u._atEndOfMicrotask;
u._atEndOfMicrotask=function(){try{t.apply(u,arguments)}catch(F){_.pj(F)}}}if(Polymer.RenderStatus){var b=Polymer.RenderStatus,r=b.afterNextRender;
b.afterNextRender=function(F,K,l){r.call(b,F,function(){try{K.apply(this,arguments)}catch(N){_.pj(N)}},l)}}tiE=!0}};
_.b4a=function(y){var W=y?_.c7(y):"";if(W){if(W.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(W.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(W.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(W.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(W.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(W.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";W=W.toLowerCase();if(W==="/")return"home";if(W===
"/channel_memberships")return"channel-memberships-shopfront";if(W.indexOf("/feed/trending")===0)return"trending";if(W.indexOf("/feed/explore")===0)return"explore";if(W.indexOf("/live")===0)return"live";if(W.indexOf("/results")===0)return"search";if(W.indexOf("/sports")===0)return"sports";if(W.indexOf("/fashion")===0||W.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(W))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(W))return"learning";
if(W.indexOf("/channel/")===0||W.indexOf("/user/")===0||W.indexOf("/gaming")===0||W.indexOf("/post/")===0)return"channel";if(X2g(y))return"show";if(W==="/playlist"||W.indexOf("/playlist/")===0||W==="/view_play_list"||W.indexOf("/view_play_list/")===0||W.indexOf("/show/")===0)return"playlist";if(W==="/feed/history"||W.indexOf("/feed/history/")===0)return"history";if(W==="/new")return"labs";if(W==="/feed/subscriptions")return"subscriptions";if(W.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(W==="/history_controls")return"standalone";if(W.indexOf("/account")===0||W==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(W.indexOf("/paid_memberships")===0||W.indexOf("/refund")===0||W.indexOf("/purchases")===0||W.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(W.indexOf("/product")===0)return"yts-products";if(W.indexOf("/premium")===0||W.indexOf("/musicpremium")===0)return W.indexOf("/premium/offers")===0||W.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(W===
"/cart/checkout"||W==="/cart")return"ypc-checkout";if(W.indexOf("/feed/downloads")===0||W.indexOf("/redeem")===0||W.indexOf("/reporthistory")===0)return"browse";if(W.indexOf("/hashtag")===0)return"hashtag-landing-page";if(W.indexOf("/handle")===0)return"handle";if(W.indexOf("/source")===0)return"audio-pivot";if(W.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(W.indexOf("/playables")===0)return"playables";if(W.indexOf("/create/live/join")===0)return"open-in-app";if(W.indexOf("/shorts")===
0)return"shorts";if(W.indexOf("/feed/channels")===0)return"subscriptions-channels";(W=y?_.c7(y):"")&&W.indexOf("/watch")===0&&_.O("web_watch_enable_learning_journey")?(y=_.hW(y),y=!!y.list&&y.list.indexOf("LJPP")===0):y=!1;if(y)return"learning-journey-watch"}};
X2g=function(y){var W=y?_.c7(y):"";if(!W)return!1;W=W.toLowerCase();return W.indexOf("/show/")===0||W.indexOf("/playlist")===0&&(y=_.hW(y),y.list&&y.list.indexOf("EL")===0)?!0:!1};
z2=function(y){var W="unknown",c;var Z=((c=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:c.webPageType)||"";Z?(c=Z.toLowerCase(),c.startsWith("web_page_type_")&&(c=c.slice(14))):c=Z;c&&rZh[c.toUpperCase()]?W=rZh[c.toUpperCase()]:_.g(y,_.oW)||_.g(y,FKI)?W="browse":_.g(y,_.Dl)?W="search":_.g(y,_.Sb)&&(W="watch");W==="unknown"&&_.Rs(Error("Jf`"+JSON.stringify({clickTrackingParams:y==null?void 0:y.clickTrackingParams,commandMetadata:y==null?void 0:y.commandMetadata,allEndpointKeys:Object.keys(y||
[])})));return W};
_.Y$=function(y){if(!_.U6I||y)_.U6I=_.bG();return _.U6I};
_.$6h=function(y){return!!_.g(y,_.Sb)||!!_.g(y,_.mv)&&_.O("kevlar_enable_shorts_prefetch")};
_.KKa=function(y,W){y=_.g(y,_.Sb)||_.g(y,_.mv);return"v"+y.videoId+(y.playlistId?"-pl"+y.playlistId:"")+(W?"-an1":"")+(y.params?"-pr"+y.params:"")};
gsE=function(y){var W=_.ey("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;if(!_.g(y,_.mv))return W&&_.Rs(Error("Mf")),!1;var c;return _.O("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.g(y,_.mv))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:O4I(y)?!0:(W&&_.Rs(Error("Nf")),!1)};
O4I=function(y){var W=(_.g(y,_.Sb)||_.g(y,_.mv)).videoId;if(!W||!R5w.test(W))return!1;var c;return(y=(c=_.g(y.commandMetadata,_.kT))==null?void 0:c.url)&&(y.includes(W)||y.startsWith("/clip"))?!0:!1};
_.Esy=function(){var y=_.Uc();return y.getFlag(192)?y.getFlag(190):!(_.O("web_watch_cinematics_disabled_by_default")||_.O("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&lfF())};
_.st=function(y,W,c){var Z={};Z.currentUrl=W;Z.vis=y.vis!==void 0?y.vis:0;Z.splay=!1;W=_.Uc();Z.autoCaptionsDefaultOn=W.getFlag(66);W.getFlag(141)?W.getFlag(140)?Z.autonavState="STATE_OFF":Z.autonavState="STATE_ON":Z.autonavState="STATE_NONE";Z.html5Preference="HTML5_PREF_WANTS";isNaN(_.Nn("STS"))||(Z.signatureTimestamp=_.Nn("STS"));y.autonav&&(Z.autoplay=!0,Z.autonav=!0);y.mutedAutoplay&&(Z.autoplay=!0,Z.mutedAutoplay=!0);y.inlinePlayback&&(Z.autoplay=!0,Z.autonav=!1,Z.isInlineUnmutedPlayback=!!y.inlineUnmuted);
Z.referer=c;Z.lactMilliseconds=y.lact!==void 0?y.lact.toString():"-1";_.O("enable_unknown_lact_fix_on_html5")&&Z.lactMilliseconds==="-1"&&_.Rs(new _.ul("Unknown LACT is set in playbackContext.",{"lact in tempData":y.lact||"undefined",autonav:y.autonav||"undefined"}));y={};W.getFlag(194)&&(y.hasShownAmbientMode=!0);W.getFlag(192)&&(y.hasToggledOffAmbientMode=!0);_.Esy()&&(y.watchAmbientModeEnabled=!0);Z.watchAmbientModeContext=y;return Z};
NYF=function(y){var W={},c=y.pbis||0;c&&(W.playbackBeginsInSeconds=c);y.prefetch_reason&&y.prefetch_reason==="hc_pbis"&&(W.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return W};
_.IfI=function(y){var W=new u0(_.Nn("ONE_PICK_URL",""));W.urlParamMap_.set("hostId",y);(y=_.Nn("GAPI_LOCALE"))&&W.urlParamMap_.set("hl",y);(y=_.Nn("SESSION_INDEX"))&&W.urlParamMap_.set("authuser",y);(y=_.Nn("DELEGATED_SESSION_ID"))&&W.urlParamMap_.set("groupId",y);return W};
PZh=function(){var y=_.U(),W=y.resolve(_.tq);y=y.resolve(_.b0);return new p2w(W,y)};
ViO=function(y){if(window.IntersectionObserver)return new JZg(y,400);throw new TypeError("Wf");};
Q6E=function(){var y=Hammer.TouchAction,W=y.prototype.preventDefaults;y.prototype.preventDefaults=function(c){var Z=this.actions.indexOf("pan-down")>-1;if(!Z)return W.call(this,c);if(!CZh){var G=c.srcEvent;c=c.direction;var D;if((D=this.manager)==null?0:D.session.prevented)G.preventDefault();else if(Z&&c&Hammer.DIRECTION_DOWN)return this.preventSrc(G)}}};
AZy=function(y){if(!y||y.size===0)return Hammer.DIRECTION_ALL;if(y.size===2){if(y.has("up")&&y.has("down"))return Hammer.DIRECTION_VERTICAL;if(y.has("right")&&y.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(y.size===1){if(y.has("up"))return Hammer.DIRECTION_UP;if(y.has("down"))return Hammer.DIRECTION_DOWN;if(y.has("right"))return Hammer.DIRECTION_RIGHT;if(y.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.BY1=function(){return h5w?Promise.resolve(h5w):new Promise(function(y,W){var c=self.indexedDB.open("swpushnotificationsdb");c.onerror=W;c.onsuccess=function(){var Z=c.result;if(Z.objectStoreNames.contains("swpushnotificationsstore"))h5w=Z,y(h5w);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.BY1()};
c.onupgradeneeded=H4a})};
H4a=function(y){y=y.target.result;y.objectStoreNames.contains("swpushnotificationsstore")&&y.deleteObjectStore("swpushnotificationsstore");y.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
vsw=function(y){var W=LKI(),c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.tm(Z,2),_.n(Z,y.match(W,{cacheName:"yt-appshell-assets"}),4);case 4:c=Z.yieldResult;_.J6(Z,3);break;case 2:_.rs(Z);case 3:return Z.return(c)}})};
LKI=function(){var y=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?d6g.registration.scope:SOF;y.endsWith("/")&&(y=y.slice(0,-1));return y+"/app_shell_home"};
TYH=function(y){y.map(function(W){return W.source}).join("|")};
_.afa=function(y){return _.m(function(W){return W.return(vsw(y))})};
x6D=function(){var y=window.caches,W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,_.afa(y),2);W=c.yieldResult;return c.return(!!W)})};
jww=function(){_.m(function(y){if(y.nextAddress==1){if(i4I)return y.jumpTo(0);i4I=!0;if(_.O("enable_system_health_primes_monitoring"))return _.y2(Mi1,3E4),e5I(),y.return();if(!(Math.random()<_.ey("web_system_health_fraction")))return y.jumpTo(0);w2F={heightPixels:screen.height,widthPixels:screen.width};rM&&!isNaN(rM.jsHeapSizeLimit)&&(w2F.memoryTotalKbytes=String(Math.round(rM.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(w2F.devicePixelRatio=window.devicePixelRatio);return _.n(y,qO1(),4)}_.y2(Mi1,
3E4);return _.n(y,kp1(),0)})};
qO1=function(){return _.m(function(y){if(y.nextAddress==1)return Fy.intersectionObserverPresent="IntersectionObserver"in window,Fy.serviceWorkerPresent="serviceWorker"in navigator,Fy.webSharePresent="share"in navigator,Fy.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Fy.cacheStoragePresent="caches"in window,Fy.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Fy.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Fy.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Ut&&Ut.webkitTemporaryStorage&&"queryUsageAndQuota"in Ut.webkitTemporaryStorage,Fy.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.n(y,AKg(),2);Fy.indexedDbPresent=y.yieldResult;Fy.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Fy.broadcastChannelPresent="BroadcastChannel"in window;Fy.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Fy.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Fy.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.F2(y)})};
Mi1=function(){var y=9E4+Math.random()*2E3;_.MV()>y||(_.O("enable_system_health_primes_monitoring")?e5I():kp1())};
kp1=function(){var y;return _.m(function(W){if(W.nextAddress==1)return _.n(W,yLH(),2);y=W.yieldResult;_.$g("systemHealthCaptured",y);_.F2(W)})};
e5I=function(){var y={metric:{}},W=WgF();W.networkEvents.length&&(y.metric.networkEvents=cL1(W));_.$g("systemHealthCaptured",y)};
yLH=function(){var y,W,c,Z,G,D,Y,u,t,b;return _.m(function(r){switch(r.nextAddress){case 1:y={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};W=window.screen;_.O("enable_is_extended_monitoring")&&W&&"isExtended"in W&&(y.isExtended=!!W.isExtended);c={metric:{staticContext:w2F,dynamicContext:y,webMetric:Zn1,webApiSupport:Fy}};
if(Z=_.NR())c.csn=Z;rM&&(c.metric.webMetric.currentHeapKbytes=Math.round(rM.usedJSHeapSize/1E3));window.matchMedia&&(c.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,c.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,c.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Ut&&typeof Ut.getBattery==="function")){r.jumpTo(2);break}return _.n(r,Ut.getBattery(),3);case 3:if(G=
r.yieldResult)c.metric.dynamicContext.chargingStatus=G.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(c.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Fy.storageEstimatePresent)return _.n(r,navigator.storage.estimate(),8);if(!Fy.webkitTemporaryStoragePresent){r.jumpTo(5);break}return _.n(r,Ggt(),7);case 7:D=r.yieldResult;r.jumpTo(5);break;case 8:D=r.yieldResult;case 5:return c.metric.dynamicContext.deviceStorageQuotaMbytes=((Y=D)==null?0:Y.quota)?String(Math.round(D.quota/
1048576/10)*10):"-1",c.metric.dynamicContext.deviceStorageUsageMbytes=((u=D)==null?0:u.usage)?String(Math.round(D.usage/1048576/10)*10):"-1",t=c.metric.dynamicContext,_.n(r,x6D(),9);case 9:return t.hasAppShell=r.yieldResult,b=WgF(),b.networkEvents.length&&(c.metric.networkEvents=cL1(b)),r.return(c)}})};
Ggt=function(){return new Promise(function(y){var W;Fy.webkitTemporaryStoragePresent&&(W=Ut.webkitTemporaryStorage)!=null&&W.queryUsageAndQuota?Ut.webkitTemporaryStorage.queryUsageAndQuota(function(c,Z){y({usage:c,quota:Z})}):y(void 0)})};
_.$$=function(y){y&=16777215;y=[(y&16711680)>>16,(y&65280)>>8,y&255];return fZO(y[0],y[1],y[2])};
_.KZ=function(y){y=[(y&16711680)>>>16,(y&65280)>>>8,y&255,(y&4278190080)>>>24];var W=_.oZh(y,function(c){return c==(c&255)});
y[3]=(y[3]/255).toFixed(3);if(!W)throw Error("Xf`"+y.join(","));return"rgba("+y.join(",")+")"};
_.DlI=function(y){return[(y&16711680)>>>16,(y&65280)>>>8,y&255]};
_.zpH=function(y){y=y.map(function(W){W/=255;return W<=.03928?W/12.92:Math.pow((W+.05)/1.05,2.4)});
return y[0]*.2126+y[1]*.7152+y[2]*.0722};
Ot=function(y,W){y=_.DlI(y);return"rgba("+y[0]+", "+y[1]+", "+y[2]+", "+W+")"};
_.YkE=function(){try{return!!self.localStorage}catch(y){return!1}};
taI=function(){if(ml1())_.Rs(Error("Yf"));else{var y=document.createElement("iframe");y.style.display="none";var W=W===void 0?window.location.href:W;var c=_.OW(_.Nn("PERSIST_IDENTITY_IFRAME_URL"));W=c?c:(new URL(W)).host.indexOf("studio")===0?_.cu(sw1,"persist_identity"):_.cu(uiw,"persist_identity");_.a3D(y,1,W);y.id="persist_identity";var Z;(Z=document.body)==null||Z.appendChild(y)}};
ml1=function(){var y=nZh;y||(y=document.querySelector("#persist_identity"));return y};
Xbh=function(){var y=!1;try{y=!!window.sessionStorage.getItem("session_logininfo")}catch(W){y=!0}return(_.Nn("INNERTUBE_CLIENT_NAME")==="WEB"||_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&y};
bnF=function(y,W){if(!Xbh())return!1;W||(W=_.Nn("LOGIN_INFO"));return W?(y.session_logininfo=W,!0):!1};
FgO=function(y,W){y=y===void 0?!1:y;if((W===void 0||!W)&&rLD!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.I8("LOG_STICKINESS",!1)){W=_.NR();var c=_.EL(),Z={identityStickinessData:{initialState:rLD}};W&&c&&_.aP(W,c,Z)}if(W=ml1())if(c=W.src?(new URL(W.src)).origin:"*",y){var G;(G=W.contentWindow)==null||G.postMessage({action:"clear"},c)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(y=window.sessionStorage.getItem("session_logininfo"))){var D;(D=W.contentWindow)==null||D.postMessage({loginInfo:y},c)}};
_.gM=function(y){y=y===void 0?!0:y;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.l1("LOGIN_INFO",""),y&&window.sessionStorage.setItem("from_switch_account","1"),FgO(!0,y)}catch(W){}};
UlI=function(y){y&&(y.startsWith("https://accounts.google.com/AddSession")?_.gM():y.startsWith("https://accounts.google.com/ServiceLogin")?_.gM():y.startsWith("https://myaccount.google.com")&&_.ho(y).getPath().endsWith("/youtubeoptions")&&_.gM())};
RW=function(y,W){UlI(y);if(_.I8("LOGGED_IN",!0)&&Xbh()){var c=Wxh(y);c==null&&(c={});bnF(c,W)&&_.wz(y,c)}};
$lw=function(){function y(W){for(W=W.target;W&&W.nodeName!=="A";)if(W=W.parentNode,!(W&&W instanceof HTMLElement))return;if(W&&!W.hasAttribute("download")&&W.getAttribute("rel")!=="external"&&W.href)return W.href}
document.addEventListener("mousedown",function(W){W.button!==0&&(W=y(W))&&RW(W)});
document.addEventListener("click",function(W){(W=y(W))&&RW(W)})};
gZg=function(){var y=new Kgf;try{if(_.I8("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(u){y.increment(5,!1);return}if(_.Nn("LOGIN_INFO")){var W=Ona?Ona:window.location;_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&taI();var c=Wxh(W.href);c==null&&(c={});var Z=c.session_logininfo,G=Number(window.sessionStorage.getItem("stickiness_reload")),D=Z===_.Nn("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
G>=2||D)G>=2?y.increment(2,D):D?y.increment(7,D):window.sessionStorage.getItem("session_logininfo")||(y.increment(3,D),rLD="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Nn("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Nn("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))y.increment(4,D),window.sessionStorage.removeItem("stickiness_reload");
else if(G<2){window.sessionStorage.setItem("stickiness_reload",String(G+1));var Y=W.href;Y=_.qR(Y,"sttick");RW(Y,window.sessionStorage.getItem("session_logininfo"));Y=_.BI(Y,{sttick:G});y.increment(G,D);_.kef(W,Y)}}else y.increment(6,!1)}else _.gM(!1)}catch(u){}};
_.l0=function(y,W,c,Z,G){W=W===void 0?{}:W;c=c===void 0?"":c;Z=Z===void 0?window:Z;y=_.HI(y,W);RW(y);c=_.Jn(y+c,G);_.kef(Z.location,c)};
RpI=function(y){if(y.urlEndpoint){if(y=_.hW(y.urlEndpoint.url),y.adurl)return Tw(y.adurl)}else if(y.watchEndpoint)return"//www.youtube.com/watch?v="+y.watchEndpoint.videoId;return null};
lZH=function(y){if(!y||!y.reportingPings)return null;var W={};y.reportingPings.forEach(function(c){c.pingType in W?W[c.pingType].push(c.url):W[c.pingType]=[c.url]});
return{adpings:m21(W)}};
_.NO=function(y){y=y===void 0?!1:y;var W=_.Uc(),c="USER_INTERFACE_THEME_LIGHT";W.getFlag(165)?c="USER_INTERFACE_THEME_DARK":W.getFlag(174)?c="USER_INTERFACE_THEME_LIGHT":_.Et()&&(c="USER_INTERFACE_THEME_DARK");return y?c:EZw()||c};
_.NND=function(){return!_.O("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Et=function(){return _.NND()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.IW=function(){var y=_.Uc();return _.NND()&&!y.getFlag(165)&&!y.getFlag(174)};
EZw=function(){var y=y===void 0?window.location.href:y;if(_.O("kevlar_disable_theme_param"))return null;var W=_.c7(y);if(_.IZO(W))return"USER_INTERFACE_THEME_DARK";try{var c=_.hW(y).theme;return pbt.get(c)||null}catch(Z){}return null};
_.IZO=function(y){return _.O("enable_dark_theme_only_on_shorts")?!(y==null||!y.startsWith("/shorts/")):!1};
_.Vaf=function(y,W,c,Z,G){W=W===void 0?!1:W;c=c===void 0?!1:c;var D=_.Nn("INNERTUBE_CONTEXT");if(!D)return _.OP(Error("bg")),{};D=(0,_.Eb.unsafeClone)(D);_.O("web_no_tracking_params_in_shell_killswitch")||delete D.clickTracking;D.client||(D.client={});var Y=D.client;Y.clientName==="MWEB"&&Y.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Y.clientFormFactor=_.Nn("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=_.NO();if(!W){var u=_.ZqE();u&&(Y.connectionType=u);_.O("web_log_effective_connection_type")&&(u=fK1())&&(D.client.effectiveConnectionType=u)}var t;if(_.O("web_log_memory_total_kbytes")&&((t=_.DH.navigator)==null?0:t.deviceMemory)){var b;t=(b=_.DH.navigator)==null?void 0:b.deviceMemory;D.client.memoryTotalKbytes=""+t*1E6}W&&Z&&!_.O("web_it_context_set_original_url_ks")&&
(Y.originalUrl=Pcg(_.DH.location.href,Z).toString());_.O("web_gcf_hashes_innertube")&&(u=bZD())&&(b=u.coldConfigData,t=u.coldHashData,u=u.hotHashData,D.client.configInfo=D.client.configInfo||{},b&&(D.client.configInfo.coldConfigData=b),t&&(D.client.configInfo.coldHashData=t),u&&(D.client.configInfo.hotHashData=u));b=_.hW(_.DH.location.href);!_.O("web_populate_internal_geo_killswitch")&&b.internalcountrycode&&(Y.internalGeo=b.internalcountrycode);!_.O("web_populate_client_screen_killswitch")&&G&&(Y.clientScreen=
G);Y.clientName==="MWEB"||Y.clientName==="WEB"?(Y.mainAppWebInfo={graftUrl:Z||_.DH.location.href},_.O("kevlar_woffle")&&_.pZ.instance&&(Z=_.pZ.instance,Y.mainAppWebInfo.pwaInstallabilityStatus=!Z.appInstalledEventFired&&Z.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Y.mainAppWebInfo.webDisplayMode=zzH(),Y.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Y.clientName==="TVHTML5"&&(!_.O("web_lr_app_quality_killswitch")&&
(Z=_.Nn("LIVING_ROOM_APP_QUALITY"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{appQuality:Z})),Z=_.Nn("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Y.tvAppInfo=Object.assign(Y.tvAppInfo||{},{certificationScope:Z}));!_.O("web_populate_time_zone_itc_killswitch")&&(Z=WZt())&&(Y.timeZone=Z);(Z=Olt())?Y.experimentsToken=Z:delete Y.experimentsToken;Y=gA1();Z=_.JLD();Z=(0,_.Eb.getValues)(Z.tokenJars);D.request=Object.assign({},D.request,{internalExperimentFlags:Y,consistencyTokenJars:Z});!_.O("web_prequest_context_killswitch")&&
(Y=_.Nn("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(D.request.externalPrequestContext=Y);Z=_.Uc();Y=Z.getFlag(58);Z=Z.get("gsml","");D.user=Object.assign({},D.user);Y&&(D.user.enableSafetyMode=Y);Z&&(D.user.lockedSafetyMode=!0);_.O("warm_op_csn_cleanup")?c&&(W=_.NR())&&(D.clientScreenNonce=W):!W&&(W=_.NR())&&(D.clientScreenNonce=W);y&&(D.clickTracking={clickTrackingParams:y});if(y=_.JW("yt.mdx.remote.remoteClient_"))D.remoteClient=y;_.PK.getInstance().setLocationOnInnerTubeContext(D);try{var r=CNf(),
F=r.bid;delete r.bid;D.adSignalsInfo={params:[],bid:F};for(var K=_.z(Object.entries(r)),l=K.next();!l.done;l=K.next()){var N=_.z(l.value),P=N.next().value,V=N.next().value;r=P;F=V;y=void 0;(y=D.adSignalsInfo.params)==null||y.push({key:r,value:""+F})}var Q,S;if(((Q=D.client)==null?void 0:Q.clientName)==="TVHTML5"||((S=D.client)==null?void 0:S.clientName)==="TVHTML5_UNPLUGGED"){var cy=_.Nn("INNERTUBE_CONTEXT");cy.adSignalsInfo&&(D.adSignalsInfo.advertisingId=cy.adSignalsInfo.advertisingId,D.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",D.adSignalsInfo.limitAdTracking=cy.adSignalsInfo.limitAdTracking)}}catch(M){_.OP(M)}return D};
_.Jq=function(){return{isShellLoad:_.I8("IS_SHELL_LOAD",!1)}};
Qw1=function(){navigator.serviceWorker.getRegistrations().then(function(y){y.forEach(Cch)})};
Cch=function(y){y&&_.ALI(hpE,y.scope)};
_.ALI=function(y,W){W={scope:W||_.wj("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.U3(y),W)};
VM=function(y,W,c,Z){if(W&&W.serializedYpcCujLoggingParams){if(c){var G={};G.transactionErrorType=c;Z&&(G.errorMessage=Z);W.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:G}}}c={};c.ypcCujContext=W;y=_.cK("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",y,c);_.Zl(_.G2(),y,"FLOW_TYPE_YPC_ACQUISITION")}};
_.BNO=function(y,W,c,Z){var G={};G.serializedTransactionFlowLoggingParams=W;c&&(G.errorType=c);Z&&(G.errorMessage=Z);_.$g(y,G);_.KD()};
_.Hng=function(y){y&&_.BNO("transactionFlowStarted",y)};
_.LgD=function(y){y&&_.BNO("transactionFlowCancelled",y)};
_.CZ=function(y,W,c){W&&_.BNO("transactionFlowFailed",W,y,c)};
_.QM=function(){this.megabloxUrl_=null};
_.Aq=function(y){try{var W=vZt==null?void 0:vZt.composedPath(y)}catch(c){W=y.composedPath?y.composedPath():[]}return W&&W.length>0?W:y.composedPath?y.composedPath():[]};
_.hq=function(y){return _.Aq(y)[0]};
_.BK=function(y){if(!(y instanceof Element))return null;y=y.classList?Array.from(y.classList):void 0;if(!y)return null;var W=y.indexOf("style-scope");return W>-1&&W+1<y.length?y[W+1]:null};
HK=function(y){if(!(y instanceof HTMLElement))return null;var W=y&&(y.$$||y.polymerController)?y.tagName.toLowerCase():null;return W?W:_.BK(y)};
dly=function(y,W){return y.replace(/[^a-z]*[^\s]+/g,function(c){return c+".style-scope."+W})};
Ska=function(y,W){return W?y.split(",").map(function(c){return dly(c.trim(),W)}).join(", "):y};
_.LZ=function(y){var W,c,Z,G;return(G=(Z=(c=(W=y.root)!=null?W:y.shadowRoot)!=null?c:y.__shady_native_shadowRoot)!=null?Z:y.__shady_shadowRoot)!=null?G:y};
vK=function(y){return y instanceof ShadowRoot?ShadowRoot:y instanceof DocumentFragment?DocumentFragment:y instanceof Document?Document:HTMLElement};
TNI=function(y){var W,c,Z;return(Z=(c=(W=y.parentElement)!=null?W:y.__shady_native_parentElement)!=null?c:y.__shady_parentElement)!=null?Z:null};
aZf=function(y){var W,c,Z;return(Z=(c=(W=y.parentNode)!=null?W:y.__shady_native_parentNode)!=null?c:y.__shady_parentNode)!=null?Z:null};
xlt=function(y){var W,c,Z;return(Z=(c=(W=y.__shady_parentNode)!=null?W:y.__shady_native_parentNode)!=null?c:y.parentNode)!=null?Z:null};
inD=function(y){var W,c;return(c=(W=aZf(y))!=null?W:y.host)!=null?c:null};
MaD=function(y){var W,c,Z;return(Z=(c=(W=y.nextSibling)!=null?W:y.__shady_native_nextSibling)!=null?c:y.__shady_nextSibling)!=null?Z:null};
epy=function(y){var W,c,Z;return(Z=(c=(W=y.previousSibling)!=null?W:y.__shady_native_previousSibling)!=null?c:y.__shady_previousSibling)!=null?Z:null};
wbE=function(y){var W,c,Z;return(Z=(c=(W=y.nextElementSibling)!=null?W:y.__shady_native_nextElementSibling)!=null?c:y.__shady_nextElementSibling)!=null?Z:null};
qkg=function(y){var W,c,Z;return(Z=(c=(W=y.previousElementSibling)!=null?W:y.__shady_native_previousElementSibling)!=null?c:y.__shady_previousElementSibling)!=null?Z:null};
kgO=function(y){var W,c,Z;return new Set([].concat(_.No((W=y.children)!=null?W:[]),_.No((c=y.__shady_native_children)!=null?c:[]),_.No((Z=y.__shady_children)!=null?Z:[])))};
jng=function(y){var W,c,Z;return new Set([].concat(_.No((W=y.childNodes)!=null?W:[]),_.No((c=y.__shady_native_childNodes)!=null?c:[]),_.No((Z=y.__shady_childNodes)!=null?Z:[])))};
yaw=function(y){if(!y)return null;var W=_.BK(y);if(!W){var c;return(c=Node.prototype.getRootNode)==null?void 0:c.call(y)}W=W.toUpperCase();for(y=TNI(y);y&&y.tagName!==W;)y=TNI(y);return y?_.LZ(y):null};
W2D=function(y){for(;y&&!(y instanceof HTMLElement);)y=inD(y);return y};
caa=function(y){var W=W2D(y);return y===W?_.BK(y):W?HK(W):null};
ZeD=function(y){return(y=W2D(y))?HK(y):null};
GQO=function(y){if(y instanceof Comment)return!1;if(y instanceof Text){var W,c;if(((c=(W=y.textContent)==null?void 0:W.trim())!=null?c:"")==="")return!1}return!0};
dM=function(y,W,c){var Z=W(y);for(c=c===void 0?ZeD(y):c;Z&&(caa(Z)!==c||!GQO(Z));)y=Z,Z=W(y);return Z};
fca=function(y,W,c){if(!W)return null;y=ZeD(y);return caa(W)===y&&GQO(W)?W:dM(W,c,y)};
oaa=function(y){return dM(y,xlt,_.BK(y))};
DB1=function(y){return dM(y,wbE)};
zI1=function(y){return dM(y,MaD)};
YmI=function(y){return dM(y,qkg)};
mBO=function(y){return dM(y,epy)};
snI=function(y){return fca(y,y.firstChild||y.__shady_native_firstChild||y.__shady_firstChild||null,MaD)};
uft=function(y){var W,c,Z;var G=(Z=(c=(W=y.firstElementChild)!=null?W:y.__shady_native_firstElementChild)!=null?c:y.__shady_firstElementChild)!=null?Z:null;return fca(y,G,wbE)};
tAI=function(y){var W,c,Z;var G=(Z=(c=(W=y.lastChild)!=null?W:y.__shady_native_lastChild)!=null?c:y.__shady_lastChild)!=null?Z:null;return fca(y,G,epy)};
naw=function(y){var W,c,Z;var G=(Z=(c=(W=y.lastElementChild)!=null?W:y.__shady_native_lastElementChild)!=null?c:y.__shady_lastElementChild)!=null?Z:null;return fca(y,G,qkg)};
XLE=function(y){var W=ZeD(y);return Array.from(jng(y)).filter(function(c){return caa(c)===W})};
beg=function(y){var W=HK(y);return Array.from(kgO(y)).filter(function(c){return _.BK(c)===W})};
_.Sd=function(y,W,c){if(y instanceof HTMLElement&&_.BK(y)===c){var Z=Array.from(y.classList).indexOf("style-scope");if(Z===-1)y.classList.add("style-scope"),y.classList.add(W);else if(!(Z+1>=y.classList.length)){Z=y.classList[Z+1];var G,D;y==null||(G=y.classList)==null||(D=G.replace)==null||D.call(G,Z,W)}}if(y instanceof HTMLElement||y instanceof DocumentFragment)for(G=_.z(kgO(y)),D=G.next();!D.done;D=G.next())_.Sd(D.value,W,c);return y};
T2=function(y,W){if(y instanceof HTMLElement&&_.BK(y)===W){var c=Array.from(y.classList).indexOf("style-scope");c===-1||c+1>=y.classList.length||y.classList.remove("style-scope",y.classList[c+1])}if(y instanceof HTMLElement||y instanceof DocumentFragment){c=_.z(y.children);for(var Z=c.next();!Z.done;Z=c.next())T2(Z.value,W)}return y};
_.raI=function(y,W){return vK(y).prototype.appendChild.call(y,W)};
F2y=function(y,W){if(y===W)return!0;y=jng(y);return Array.from(y).some(function(c){return F2y(c,W)})};
_.p=function(y,W){if(y instanceof aW)return y;(W==null?0:W.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(y,"ownerDocument")&&Object.defineProperty(y,"ownerDocument",{get:function(){return window.document}});
return new aW(y)};
$BH=function(){var y=aW.prototype,W=[].concat(_.No(UBO?[]:["getRootNode"]),["setAttribute","removeAttribute"]);W=_.z(W);for(var c=W.next(),Z={};!c.done;Z={method$jscomp$49:void 0},c=W.next())Z.method$jscomp$49=c.value,y[Z.method$jscomp$49]=function(G){return function(){return this.host[G.method$jscomp$49].apply(this.host,arguments)}}(Z)};
Oe1=function(){var y=aW.prototype,W=[].concat(_.No(UBO?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.No(K2I?[]:["querySelector","querySelectorAll"]));W=_.z(W);for(var c=W.next(),Z={};!c.done;Z={method$jscomp$50:void 0},c=W.next())Z.method$jscomp$50=c.value,y[Z.method$jscomp$50]=function(G){return function(){return this.root[G.method$jscomp$50].apply(this.root,arguments)}}(Z)};
lcg=function(){var y=aW.prototype,W=[].concat(_.No(gaF?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.No(RIt?[]:["parentNode"]));W=_.z(W);for(var c=W.next(),Z={};!c.done;Z={prop$jscomp$62:void 0},c=W.next())Z.prop$jscomp$62=c.value,Object.defineProperty(y,Z.prop$jscomp$62,{get:function(G){return function(){return this.host[G.prop$jscomp$62]}}(Z),
configurable:!0})};
IcH=function(){var y=aW.prototype,W=["activeElement"].concat(_.No(gaF?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.No(Eaa?[]:["children"]),_.No(Nxf?[]:["lastChild"]));W=_.z(W);for(var c=W.next(),Z={};!c.done;Z={prop$jscomp$63:void 0},c=W.next())Z.prop$jscomp$63=c.value,Object.defineProperty(y,Z.prop$jscomp$63,{get:function(G){return function(){return this.root[G.prop$jscomp$63]}}(Z),
configurable:!0})};
pLw=function(){for(var y=aW.prototype,W=_.z(["innerHTML","textContent"]),c=W.next(),Z={};!c.done;Z={prop$jscomp$64:void 0},c=W.next())Z.prop$jscomp$64=c.value,Object.defineProperty(y,Z.prop$jscomp$64,{get:function(G){return function(){return this.root[G.prop$jscomp$64]}}(Z),
set:function(G){return function(D){this.root[G.prop$jscomp$64]=D}}(Z),
configurable:!0})};
PBE=function(y){var W=aW.prototype;y=_.z(Object.entries(y));for(var c=y.next(),Z={};!c.done;Z={fn$jscomp$359:void 0},c=y.next()){var G=_.z(c.value);c=G.next().value;G=G.next().value;Z.fn$jscomp$359=G;W[c]=function(D){return function(){return D.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.No(arguments)))}}(Z)}};
VAE=function(){for(var y=aW.prototype,W=_.z(Object.entries(JaH)),c=W.next(),Z={};!c.done;Z={fn$jscomp$360:void 0},c=W.next()){var G=_.z(c.value);c=G.next().value;G=G.next().value;Z.fn$jscomp$360=G;Object.defineProperty(y,c,{get:function(D){return function(){return D.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.No(arguments)))}}(Z),
configurable:!0})}};
_.x$=function(y){return y instanceof CBE||y instanceof Document?y:new CBE(y)};
Qnh=function(){for(var y=CBE.prototype,W=_.z("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),c=W.next(),Z={};!c.done;Z={method$jscomp$51:void 0},c=W.next())Z.method$jscomp$51=c.value,y[Z.method$jscomp$51]=function(G){return function(){return HTMLElement.prototype[G.method$jscomp$51].call.apply(HTMLElement.prototype[G.method$jscomp$51],[this.node].concat(_.No(arguments)))}}(Z)};
AaF=function(){for(var y=CBE.prototype,W=_.z("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),c=W.next(),Z={};!c.done;Z={prop$jscomp$65:void 0},c=W.next())Z.prop$jscomp$65=c.value,Object.defineProperty(y,Z.prop$jscomp$65,{get:function(G){return function(){var D;return(D=this.node["__shady_native_"+G.prop$jscomp$65])!=null?D:this.node[G.prop$jscomp$65]}}(Z),
configurable:!0})};
_.i0=function(y,W,c){c===void 0&&(c=!y.classList.contains(W));c?y.classList.add(W):y.classList.remove(W)};
_.MO=function(y,W,c){c===void 0&&(c=!y.hasAttribute(W));if(W==="class")throw Error("fg");c?_.x$(y).setAttribute(W,""):_.x$(y).removeAttribute(W)};
hIf=function(y){return(y.localName!=="slot"?[]:(0,_.ed)(y).assignedNodes({flatten:!0})).filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
_.BxI=function(y){return(y=_.p(y).querySelector("slot"))&&y.localName==="slot"?hIf(y):[]};
_.wM=function(y,W){window.ShadyCSS&&window.ShadyCSS.styleSubtree(y,W)};
HeI=function(y,W){var c=W.bind(y);return function(Z){c(Z,Z.detail)}};
_.qO=function(y,W){var c=L2t.get(y);c||(c=new WeakMap,L2t.set(y,c));if(c.has(W))return c.get(W);if(_.O("web_fi_listen_disable_bound_fn_helper")){var Z=W.bind(y);y=function(G){Z(G,G==null?void 0:G.detail)}}else y=HeI(y,W);
c.set(W,y);return y};
Smt=function(y,W){vaF(y);y.created[dBh].push(W)};
vaF=function(y){if(!y.created||!y.created[dBh]){var W=y.created,c=W?[W]:[];y.created=function(){for(var Z=_.z(c),G=Z.next();!G.done;G=Z.next())G.value.apply(this)};
y.created[dBh]=c}};
Txa=function(y){return function(){var W=_.Cf.apply(0,arguments);return function(c,Z,G){y.apply(null,_.No(W))(c,Z,G)}}};
acI=function(){return function(){var y=_.Cf.apply(0,arguments);return function(W,c,Z){Fef.apply(null,_.No(y))(W,c,Z)}}};
_.C=function(y){return acI()(y)};
_.A=function(){return Txa(OdH).apply(null,_.No(_.Cf.apply(0,arguments)))};
_.B=function(y){return _.O("pbcm_fi_listen_decorators")?xBh(y):Txa($LI)(y)};
xBh=function(y){return function(W,c){Smt(W,function(){var Z=this[c],G=_.O("web_fi_listen_disable_bound_fn_helper")?function(D){Z(D,D.detail)}.bind(this):HeI(this,Z);
ie1.has(y)?OQ(this.hostElement,y,G):this.hostElement.addEventListener(y,G)})}};
_.H=function(){return Txa(KeI).apply(null,_.No(_.Cf.apply(0,arguments)))};
_.L=function(y){y=y===void 0?{}:y;return Txa(ULF)(y)};
_.k$=function(y){if(y.hostElement&&y!==y.hostElement){var W=_.UL(y.hostElement);W=y.renderIdom?W:W.shadowRoot}W||(y=y.root,W=y instanceof Node?_.UL(y):null);return W};
_.jj=function(y){return MAt?eIa(y):function(W,c){Object.defineProperty(W,c,{get:function(){var Z;return(Z=_.k$(this))==null?void 0:Z.querySelector(y)},
enumerable:!0,configurable:!0})}};
eIa=function(y){return function(W,c){Object.defineProperty(W,c,{get:function(){var Z,G=(Z=_.p(this.hostElement))==null?void 0:Z.querySelector(y);if(G)return G;var D;Z=(D=this.is)!=null?D:"yt-undefined-target";wLI!=null||(wLI=Date.now());(CO(Z)+wLI)%100>_.ey("pbcm_fi_query_decorators_fallback_logging_pct")||(qmw!=null||(qmw=new kQD),jMh.has(Z)||(jMh.add(Z),qmw.increment(Z)));var Y;return(Y=_.k$(this))==null?void 0:Y.querySelector(y)},
enumerable:!0,configurable:!0})}};
_.y0=function(y){return MAt?y2O(y):function(W,c){Object.defineProperty(W,c,{get:function(){var Z;return(Z=_.k$(this))==null?void 0:Z.querySelectorAll(y)},
enumerable:!0,configurable:!0})}};
y2O=function(y){return function(W,c){Object.defineProperty(W,c,{get:function(){var Z,G=(Z=_.p(this.hostElement))==null?void 0:Z.querySelectorAll(y);if(G==null?0:G.length)return G;var D;return(D=_.k$(this))==null?void 0:D.querySelectorAll(y)},
enumerable:!0,configurable:!0})}};
WnD=function(y){return function(W){if(![_.SN,_.v].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("gg");mLF(Object.assign({},typeof y!=="string"?y:{is:y,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(W)}};
_.ZV=function(){var y=y===void 0?{}:y;return function(W){if(![aN,_.cQ].includes(Object.getPrototypeOf(W.prototype).constructor))throw Error("hg");s_F(Object.assign({},y,{disableInheritanceCheck:!0}))(W)}};
ZWE=function(y,W){c2I[y]!=null||(c2I[y]=new Set);c2I[y].add(W)};
_.Gs=function(){var y=_.H.apply(null,_.No(_.Cf.apply(0,arguments)));return function(W,c){ZWE(W.is,c);y(W,c)}};
DV=function(y,W,c){if(f6(y)&&!GV1.has(W)){W=W.replace(/^JSC\$[\d]+_/,"");W=W.replace(/\.\d+(\.|$)/g,function(D,Y){return".#"+Y});
o5[y]!=null||(o5[y]={});var Z,G;(Z=o5[y])[G=W]!=null||(Z[G]=new Set);o5[y][W].has(c)||(o5[y][W].add(c),_.$g("polymerPropertyAccessEvent",{componentName:y,propertyName:W,accessType:c}))}};
fWt=function(){return _.O("polymer_property_access_logging_debug")||_.O("polymer_enable_property_access_logging")};
f6=function(y){if(_.O("polymer_property_access_logging_debug"))return!0;if(!_.O("polymer_enable_property_access_logging"))return!1;oVF||(oVF=Date.now());return(CO(y)+oVF)%100<_.ey("polymer_property_access_logging_percent")};
DTF=function(y,W){return f6(W)&&y.hostElement.loggingStatus?new Proxy(y,{get:function(c,Z,G){if(c.hostElement.loggingStatus.bypassProxyController)return c[Z];c.hostElement.loggingStatus.isExternalGet=!0;var D=c[Z];c.hostElement.loggingStatus.isExternalGet=!1;if(D instanceof Function)return function(){var Y=_.Cf.apply(0,arguments);try{return c.hostElement.loggingStatus.currentExternalCall=Z,DV(W,Z,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),D.apply(this===G?c:this,Y)}finally{c.hostElement.loggingStatus.currentExternalCall=
void 0}};
DV(W,Z,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return D},
set:function(c,Z,G){if(c.hostElement.loggingStatus.bypassProxyController)return c[Z]=G,!0;c.hostElement.loggingStatus.isRendererStamper?DV(W,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):c.hostElement.loggingStatus.isDeclarativeExternal||DV(W,Z,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{c.hostElement.loggingStatus.currentExternalSet=Z,c[Z]=G}finally{c.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):y};
zkI=function(y,W){y&&y.loggingStatus&&!y.loggingStatus.isDeclarativeExternal&&!y.loggingStatus.isExternalGet&&y.loggingStatus.currentExternalSet!==W&&DV(y.tagName.toLowerCase(),W,"PROPERTY_ACCESS_GET_INTERNAL")};
zs=function(y,W,c){y&&(c||y.loggingStatus&&!y.loggingStatus.isInitializing&&!y.loggingStatus.isDefiningPropertyAccessor&&y.loggingStatus.currentExternalSet!==W)&&DV(y.tagName.toLowerCase(),W,"PROPERTY_ACCESS_SET_INTERNAL")};
Y71=function(){return{_definePropertyAccessor:function(y,W){var c=this,Z=c.hostElement.loggingStatus;Z&&(Z.isDefiningPropertyAccessor=!0);var G=c[y];G!==void 0&&(c.__data?c._setPendingProperty(y,G):(c.__dataProto!=null||(c.__dataProto={}),c.__dataProto[y]=G));Z&&(Z.isDefiningPropertyAccessor=!1);Object.defineProperty(this,y,{get:function(){zkI(c.hostElement,y);return this.__data[y]},
set:function(D){W||this._setPendingProperty(y,D,!0)&&this._invalidateProperties()}})},
created:function(){var y=this._setPendingProperty.bind(this);this._setPendingProperty=function(W,c,Z){zs(this.hostElement,W);return y.apply(this,[W,c,Z])}}}};
sMF=function(y){fWt()&&_.C(mTI.prototype)(y.prototype,"__templateBindingLoggingBehavior")};
uSa=function(y,W){if(W.resolvedFactories.length!==y.resolvedFactories.length)return!0;W=_.z(W.resolvedFactories.entries());for(var c=W.next();!c.done;c=W.next()){var Z=_.z(c.value);c=Z.next().value;Z=Z.next().value;if(Z.providerClass){if(Z.providerClass!==y.resolvedFactories[c].providerClass)return!0}else if(Z.providerValue){if(Z.providerValue!==y.resolvedFactories[c].providerValue)return!0}else if(Z.factory!==y.resolvedFactories[c].factory)return!0}return!1};
t7E=function(y,W){y=_.z(y);for(var c=y.next();!c.done;c=y.next())if(c=c.value,c.constructor===Array)t7E(c,W);else{var Z=W;Z.has(c)||(c.inject&&Z.add(c),c.behaviors&&t7E(c.behaviors,Z))}};
Ym=function(y,W){var c=y[W];y[W]=function(){var Z=_.Cf.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(c)return c.apply(this,Z)}};
r2f=function(){_.mD.Class=function(c,Z){c=nVg(c,Z);Ym(c.prototype,"created");return c};
Ym(s0.prototype,"_initializeProperties");Ym(_.u6.prototype,"_initializeProperties");if(XBD)Ym(bWy,"created");else{var y=function(){Ym(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))y();else{var W=customElements.define;customElements.define=function(c,Z,G){W.call(customElements,c,Z,G);c==="tp-yt-iron-list"&&(y(),customElements.define=W)}}}};
UTD=function(y,W){y.prototype.behaviors=y.prototype.behaviors||[];y.prototype.behaviors.unshift(Fny.InjectBehavior);y.prototype.provide=W};
_.n6=function(y){return function(W){if(!y.disableElementRegistration){y.noInjection||UTD(W,y.providers);var c=W.prototype;c.__templateHelpers||Fef(tx.prototype)(c,"__templateHelpers");c=y.is;$TO||($TO=Date.now());(CO(c)+$TO)%100<_.ey("polymer_log_prop_change_observer_percent")&&Fef(Kna.prototype)(W.prototype,"__propertyObserverObserver");W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(_.OWa.YtHostElementBehavior);sMF(W);WnD({is:y.is,notifyObserversOnUndefined:y.notifyObserversOnUndefined!==
!1,fastInit:y.fastInit,template:y.template,disableEnforceFastDefaultValuesCheck:!0})(W)}}};
_.d=function(y){return _.n6({is:y.is,template:y.template,disableElementRegistration:y.disableElementRegistration,cssBuildOptOut:y.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
lWa=function(y,W){if(gVh){y=new y;for(var c=_.z(Object.getOwnPropertyNames(y)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,W[Z]=y[Z];for(c=W;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){Z=_.z(Object.getOwnPropertyNames(c));for(var G=Z.next();!G.done;G=Z.next())G=G.value,y.hasOwnProperty(G)||Object.defineProperty(y,G,Rky(W,G))}}else y.apply(W)};
Rky=function(y,W){return{get:function(){var c=y[W];return c instanceof Function?c.bind(y):c},
set:function(c){y[W]=c}}};
NOF=function(y,W){for(var c=y._noAccessors,Z=_.z(Object.getOwnPropertyNames(y)),G=Z.next();!G.done;G=Z.next())if(G=G.value,!EVO.has(G))if(c)W[G]=y[G];else{var D=Object.getOwnPropertyDescriptor(y,G);D&&(D.configurable=!0,Object.defineProperty(W,G,D))}};
IWH=function(y,W,c){return function(Z){if(c){var G=c();Z.model=G}if(y[W])y[W](Z,Z.detail)}};
XX=function(y){var W=[];if(typeof y==="string")y.length>0&&W.push.apply(W,_.No(y.split(".")));else{y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=c.value,typeof c==="string"?W.push.apply(W,_.No(c.split("."))):W.push(c)}return W};
b6=function(y,W){if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){for(var c=0;c<W.length;c++){if(!y)return;y=y[W[c]]}return y}};
pBf=function(y,W){if(y.length>W.length)return!1;for(var c=0;c<y.length;c++)if(y[c]!==W[c])return!1;return!0};
J2D=function(y,W,c){if(W.type==="compute"){var Z=W.getter.bind(c);var G=W.args}else Z=function(){return c[W.method.methodName].apply(c,_.No(_.Cf.apply(0,arguments)))},G=W.method.args;
PxE(y,W.propertyKey,Z,G,W.value)};
Cxt=function(y,W){if(W.readOnly){var c=Object.getOwnPropertyDescriptor(y.model,W.propertyKey);Object.defineProperty(y.model,W.propertyKey,{get:c.get,set:function(){}});
y.model[V7E(W.propertyKey)]=c.set}};
QMI=function(y,W,c){if(c){var Z=W.propertyKey,G=W.selector;W=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.No(W.selectorArgs.map(function(D){return{type:"path",path:D}})));
PxE(y,Z,function(D){var Y=_.Cf.apply(1,arguments);return G.apply(null,[c.getState()].concat(_.No(Y)))},W)}};
hkF=function(y,W,c){var Z=_.sL(W.propertyKey)+"-changed";A2g(y,function(G){var D={value:G.value,queueProperty:!0};G.path.split(".").length>1&&(D.path=G.path);c.dispatchEvent(new CustomEvent(Z,{detail:D}))},[{type:"wildcard",
path:W.propertyKey}])};
BOg=function(y,W,c){A2g(y,function(){c[W.method.methodName].apply(c,_.No(_.Cf.apply(0,arguments)))},W.method.args)};
V7E=function(y){return"_set"+(y.charAt(0).toUpperCase()+y.slice(1))};
HWa=function(){var y,W=ON(function(c){y=c},!1);
return[y,W]};
TOD=function(y){y=y.trim().replace(Ln1,",").replace(vVF,"$1");var W=y[0];W==="-"&&(W=y[1]);if(W>="0"&&W<="9")return{type:"literal",value:Number(y)};if(W==="'"||W==='"')return{type:"literal",value:y.slice(1,-1)};if(W=y.match(dTf)){W=W[1];var c=S7w[W];if(c)return{type:c,path:y.slice(0,-(W.length+1))}}return{type:"path",path:y}};
M7a=function(y){var W=y.match(aWg);if(W)return y={methodName:W[1],args:xTg},W[2].trim()&&(W=W[2].replace(iWE,"&comma;").split(","),y.args=W.map(TOD)),y};
eka=function(y,W,c){W=_.sL(W);var Z=sQ;Z&&(c=Z(c,W,"attribute",y));rp(y,c,W)};
rp=function(y,W,c){W=wBf(W);W===void 0?y.removeAttribute(c):y.setAttribute(c,W)};
wBf=function(y){switch(typeof y){case "object":if(y instanceof Date)return y.toString();if(y){var W=window.trustedTypes?window.trustedTypes.isHTML(y)||window.trustedTypes.isScript(y)||window.trustedTypes.isScriptURL(y):void 0;if(W)return y;try{return JSON.stringify(y)}catch(c){_.Rs(Error("Dg`"+y))}}break;case "boolean":return y?"":void 0;default:return y!==null&&y!==void 0?y.toString():void 0}};
NbO=function(y){if(y===void 0)throw Error("Eg");return y};
VMf=function(y,W,c,Z){var G=IRH(Z);if(G.length){Z=c;var D="property";pzh.test(c)?D="attribute":c[c.length-1]==="$"&&(c=c.slice(0,-1),D="attribute");var Y=PWH(G);Y&&D==="attribute"&&(c==="class"&&y.hasAttribute("class")&&(Y+=" "+y.getAttribute(c)),rp(y,Y,c));D==="attribute"&&Z==="disable-upgrade$"&&y.setAttribute("disable-upgrade","");y.localName==="input"&&Z==="value"&&y.setAttribute("value","");y.removeAttribute(Z);D==="property"&&(c=_.uM(c));W=NbO(W);JTf(W,D,c,G);return!0}return c.slice(0,3)===
"on-"?(y.removeAttribute(c),(D=W).events!=null||(D.events=[]),W.events.push({name:c.slice(3),value:Z}),!0):c==="id"?(W.id=Z,!0):!1};
IRH=function(y){for(var W=[],c=0,Z;(Z=CWH.exec(y))!==null;){Z.index>c&&W.push({type:"literal",value:y.slice(c,Z.index)});var G=Z[1][0];c=!!Z[2];Z=Z[3].trim();if(G==="{")throw Error("Fg");(G=M7a(Z))?W.push({type:"method",negate:c,signature:G}):W.push({type:"path",negate:c,path:Z});c=CWH.lastIndex}c&&c<y.length&&(y=y.substring(c))&&W.push({type:"literal",value:y});return W};
PWH=function(y){for(var W="",c=0;c<y.length;c++){var Z=y[c];Z.type==="literal"&&(W+=Z.value)}return W};
JTf=function(y,W,c,Z){y.bindings!=null||(y.bindings=[]);y.bindings.push({kind:W,target:c,parts:Z})};
HuO=function(y,W,c){var Z=!1;if(y.localName==="template"){Z=c;var G=W.stripWhitespace;G=Q1D(y,G===void 0?!1:G);var D=y.content.ownerDocument.createDocumentFragment();G.content=D;D.appendChild(y.content);Z&&(Z.templateInfo=G);Z=!0}else y.localName==="slot"&&(W.hasInsertionPoint=!0);if(y.firstChild&&(G=c,y.localName!=="script"&&y.localName!=="style")){D=0;for(var Y=y.firstChild;Y;){var u=Y;if(u.localName==="template"){var t=u.getAttribute("is");if((Y=t==="dom-if")||t==="dom-repeat"){u.removeAttribute("is");
t=u.ownerDocument.createElement("ps-"+t);u.parentNode.replaceChild(t,u);t.appendChild(u);var b=Array.from(u.attributes);b=_.z(b);for(var r=b.next();!r.done;r=b.next())r=r.value,Y?ATy.has(r.name)&&rp(t,r.value,r.name):h1f.has(r.name)?rp(t,r.value,r.name):Bbh.has(r.name),u.removeAttribute(r.name);Y=t}else Y=u}if(Y.nodeType===Node.TEXT_NODE){u=void 0;t=y;for(b=Y;((u=b.nextSibling)==null?void 0:u.nodeType)===Node.TEXT_NODE;)r=void 0,(r=b).textContent!=null||(r.textContent=""),b.nextSibling.textContent&&
(b.textContent+=b.nextSibling.textContent),t.removeChild(b.nextSibling);if(W.stripWhitespace&&Y.textContent&&!Y.textContent.trim()){y.removeChild(Y);Y=Y.nextSibling;continue}}HuO(Y,W,{parentIndex:D,parentInfo:G});Y.parentNode&&D++;Y=Y.nextSibling}}var F;if((F=y.hasAttributes)==null?0:F.call(y)){F=c=NbO(c);G=!1;D=Array.from(y.attributes);D=_.z(D);for(u=D.next();!u.done;u=D.next())u=u.value,G=VMf(y,F,u.name,u.value)||G;Z=G||Z}y.nodeType===Node.TEXT_NODE&&(F=IRH(y.textContent),F.length&&(y.textContent=
PWH(F)||" ",c=NbO(c),JTf(c,"text","textContent",F),Z=!0));c&&Z&&(c.infoIndex=W.nodeInfoList.push(c)-1)};
Q1D=function(y,W){W={nodeInfoList:[],stripWhitespace:(W===void 0?!1:W)||y.hasAttribute("strip-whitespace")};HuO(y.content,W);return W};
Lmt=function(y){Object.assign(y,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
vEh=function(y,W){for(;y;){var c=y.signals[W];if(c)return c;y=y.parentScope}};
S1t=function(y,W,c,Z){W.signalCache!=null||(W.signalCache={});var G=W.signalCache[c];if(!G){var D=c.split("."),Y=vEh(Z,D[0]);if((Y==null?void 0:Y.type)==="signal")G=function(){var K=Y.type==="mutable"?Y.signal.getWithPath([]):Y.getter();return{rootWasDefined:K!==void 0,value:b6(K,D.slice(1))}};
else if((Y==null?void 0:Y.type)==="mutable"){var u=Y.signal,t=Y.signal.getPathMutationSignal(D.slice(1));G=function(){var K=R2(y.owner,function(){return u.getWithPath([])}),l,N=(l=t())==null?void 0:l.value;
return{rootWasDefined:K!==void 0,value:N}}}else{var b,r;
Z=_.O("web_polysi_immutable_root_fix_killswitch")?!((b=y.options)==null?0:(r=b.immutableProps)==null?0:r.has(D[0])):!dqa(y,D[0]);if(D.length>1&&Z){var F=y.getPathMutationSignal(D);G=function(){var K=R2(y.owner,function(){return y.getWithPath([D[0]])}),l,N=(l=F())==null?void 0:l.value;
return{rootWasDefined:K!==void 0,value:N}}}else G=function(){var K=y.getWithPath(D);
return{rootWasDefined:K!==void 0,value:K}}}W.signalCache[c]=G}return G()};
aRE=function(y,W,c,Z,G,D){W=W.parts.map(function(u,t){if(u.type==="literal"){c.partWasDefined!=null||(c.partWasDefined=[]);var b;(b=c.partWasDefined)[t]||(b[t]=u.value!==void 0);return u.value}var r;if(u.type==="method"){var F,K=(F=(r=c.partWasDefined)==null?void 0:r[t])!=null?F:!1;K||(K=u.signature.args.every(function(P){return P.type==="literal"}));
var l=!1,N=!0;r=u.signature.args.map(function(P){if(P.type==="literal")return P.value;if(P.type!=="path")throw Error("Gg`"+P.type);var V=S1t(y,c,P.path,G);P=V.value;V=V.rootWasDefined;l||(l=V);N&&(N=V);return P});
K||(K=D===1?N:l);c.partWasDefined!=null||(c.partWasDefined={});c.partWasDefined[t]=K;if(!K)return;r=(t=S1t(y,c,u.signature.methodName,G).value)&&typeof t==="function"?t.apply(Z,r):void 0}else F=S1t(y,c,u.path,G),r=F.value,c.partWasDefined!=null||(c.partWasDefined={}),(K=c.partWasDefined)[t]||(K[t]=r!==void 0||F.rootWasDefined);u.negate&&(r=!r);return r});
if(W.length===1){var Y;return((Y=c.partWasDefined)==null?0:Y[0])?W[0]:Tb1}return W.join("")};
xqH=function(y){return typeof y==="object"&&!!y&&"notifyPath"in y&&"canNotifyPath"in y};
iuO=function(y){return typeof y==="object"&&!!y&&"notifyPath"in y};
MMg=function(y){return"polymerController"in y};
e1I=function(y,W){W=""+XX(W)[0];if(xqH(y))return y.canNotifyPath(W);if(MMg(y)&&xqH(y.polymerController))return y.polymerController.canNotifyPath(W);if(iuO(y)){var c;return!((c=y.properties)==null||!c[W])}if(MMg(y)&&iuO(y.polymerController)){var Z;return!((Z=y.polymerController.properties)==null||!Z[W])}return!1};
wzg=function(y,W,c){xqH(y)||iuO(y)?y.notifyPath(W,c):MMg(y)&&(xqH(y.polymerController)||iuO(y.polymerController))&&y.polymerController.notifyPath(W,c)};
kWH=function(y,W,c){if(c!==Tb1){y.kind==="attribute"||y.target!=="textContent"&&(y.target!=="value"||W.localName!=="input"&&W.localName!=="textarea")||(c=c===void 0?"":c);var Z,G=(Z=q1I.Polymer)==null?void 0:Z.sanitizeDOMValue;G&&(c=G(c,y.target,y.kind,W));if(y.kind==="attribute"){y=y.target;if(y==="class"||y==="name"||y==="slot")W=(0,_.ed)(W);rp(W,c,y)}else if(y=y.target,c!==W[y]||typeof c==="object")W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0,DV(W.localName,y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
W[y]=c,W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)}};
jAE=function(y,W,c,Z,G){var D=W.parts[0];if(W.parts.length!==1||D.type!=="path"||!e1I(c,W.target))return!1;var Y=_.z(D.path.split(".")),u=Y.next().value,t=dL(Y);if(!_.O("web_polysi_immutable_root_fix_killswitch")&&dqa(y,u))return!1;Y=vEh(G,u);if((Y==null?void 0:Y.type)==="signal")return!1;Z.signalCache!=null||(Z.signalCache={});G=Z.signalCache[D.path];var b;G=(b=G)==null?void 0:b().value;if((G==null?void 0:G.path)!==void 0){Z=XX(G.path);var r=XX(D.path);Z=[W.target].concat(_.No(Z.slice(r.length-1)));
wzg(c,Z,D.negate?!G.value:G.value);return!0}var F;Y?F=Y.signal:F=FX(y,u);var K=F.getChangeRecordSignal(t),l=!1;G=function(){if(!l){var P=R2(y.owner,function(){return F.getWithPath([])});
l||(l=P!==void 0)}return{value:K(),rootWasDefined:l}};
Z.signalCache[D.path]=G;Z.partWasDefined!=null||(Z.partWasDefined={});u=G();(r=Z.partWasDefined)[0]||(r[0]=u.rootWasDefined);var N=R2(y.owner,function(){return F.getWithPath(t)});
Z.partWasDefined[0]&&R2(y.owner,function(){return void kWH(W,c,D.negate?!N:N)});
return!0};
yjw=function(y,W,c,Z,G,D,Y){if(!jAE(y,W,c,Z,D)){var u=aRE(y,W,Z,G,D,Y);R2(y.owner,function(){return void kWH(W,c,u)})}};
W7I=function(y,W,c,Z,G,D,Y){c=_.z(c);for(var u=c.next(),t={};!u.done;t={infoIndex:void 0},u=c.next()){u=u.value;var b=u.bindings;t.infoIndex=u.infoIndex;u=u.parentInfo;if(b){b=_.z(b);for(var r=b.next(),F={};!r.done;F={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},r=b.next()){F.b$jscomp$254=r.value;if(t.infoIndex===void 0)throw Error("Hg");F.bindingCtx$jscomp$4={};y.effect(function(K,l){return function(){G&&!G()||yjw(y,K.b$jscomp$254,W[l.infoIndex],K.bindingCtx$jscomp$4,Z,D,Y)}}(F,t))}}u&&W7I(y,
W,[u],Z,G,D,Y)}};
cjf=function(y,W){y=(W.parentInfo?cjf(y,W.parentInfo):y).firstChild;for(var c=0;y;y=y.nextSibling)if(W.parentIndex===c++)return y;throw Error("Ig");};
G0w=function(y,W,c,Z){y=document.importNode(y.content,!0);y.__noInsertionPoint=!(Z==null?0:Z.hasInsertionPoint);for(var G=Array(W.length),D={},Y=0;Y<W.length;Y++){var u=W[Y],t=cjf(y,u);G[Y]=t;u.id&&(D[u.id]=t);if(u.templateInfo){var b=t.parentElement;b&&(b.templateInfo=u.templateInfo,b.parentSignalProxy=c,b.eventListenerHost=Z.eventListenerHost,b.stampingEnabled=Z.enabledSignal,b.parentScope=Z.scope)}b=void 0;if((b=u.events)==null?0:b.length)for(b=0;b<u.events.length;b++){var r=u.events[b];Zoh(Z.eventListenerHost,
t,r.name,r.value,Z.getModel)}}W7I(c,G,W,Z.thisCtx,Z.enabledSignal,Z.scope,Z.methodInvocationRequirement);return{root:y,nodes:G,nodesById:D}};
o1w=function(y,W){y=y();var c;(c=fhy.ShadyCSS)==null||c.prepareTemplate(y,W);W=Q1D(y);return{template:y,nodeInfoList:W.nodeInfoList,hasInsertionPoint:W.hasInsertionPoint}};
Yrg=function(){DfE=!1;for(var y=U0.length,W=0;W<y;W++){var c=U0[W];if(c)try{c()}catch(Z){Promise.resolve().then(function(){throw Z;})}}U0.splice(0,y);
zMF+=y};
t3I=function(y){DfE||(DfE=!0,mfE.textContent=(sAH++).toString());U0.push(y);return uQh++};
_.O0=function(y,W,c){$m++;y=W?new n1y($m,y,W,c):new XVH($m,y);K6.set($m,y);return $m};
boh=function(y){(y=K6.get(y))&&y.cancel()};
F71=function(y,W){y=rjw.get(y);return y?(W=y.get(W))?W:null:null};
_.gp=function(y,W,c,Z){var G=F71(y,W);if(!G){G=new Ufy;var D=rjw.get(y);D||(D=new Map,rjw.set(y,D));D.set(W,G)}y=c.bind(y);G.run(y,Z,void 0)};
_.$fH=function(y,W){var c;(c=F71(y,W))==null||c.cancel()};
K71=function(y){var W;(W=F71(y,"doRender"))==null||W.flush()};
R5=function(y){var W;return(W=y.hostElement)!=null?W:y};
OoI=function(y){var W=y.indexOf(".");return W===-1?y:y.slice(0,W)};
g1H=function(y,W,c,Z,G,D){D=(G=(Z=D?OoI(W):W)?W:null)?y.get(G):y.__data[W];G&&D===void 0&&(D=c[W]);_.Z2(y.hostElement,kAg(Z)+"-changed",{value:D,queueProperty:!0,path:G!=null?G:void 0},{bubbles:!1,composed:!1})};
RMO=function(y,W){y.__isReflecting=!0;eka(y.hostElement,W,y.__data[W]);y.__isReflecting=!1};
lhg=function(y){if(y._onIronRequestResizeNotifications){var W=y._onIronRequestResizeNotifications.bind(y);y._onIronRequestResizeNotifications=function(c){_.hq(c)!==y.hostElement&&W(c)}}y._ariaActiveAttributeChanged&&(y._ariaActiveAttributeChanged=y._ariaActiveAttributeChanged.bind(y.hostElement));
y._activeChanged&&(y._activeChanged=function(c){y.toggles?rp(y.hostElement,c?"true":"false",y.ariaActiveAttribute):y.hostElement.removeAttribute(y.ariaActiveAttribute);y._changedButtonState()});
y._asyncClick&&(y._asyncClick=function(){_.O0(function(){y.hostElement.click()},1)});
!y.keyEventTarget||y.keyEventTarget instanceof EventTarget||(y.keyEventTarget=R5(y.keyEventTarget));y._disabledChanged&&(y._disabledChanged=y._disabledChanged.bind(y.hostElement));y._observeItems&&(y._observeItems=function(c){var Z=R5(c);return _.UL(Z).observeNodes(function(G){y._updateItems();y._updateSelected();_.Z2(Z,"iron-items-changed",G,{bubbles:!1,cancelable:!1})})});
y._updateItems&&y._updateItems===_.l6._updateItems&&(y._updateItems=function(){var c=_.UL(y.hostElement).queryDistributedElements(y.selectable||"*");c=Array.prototype.filter.call(c,y._bindFilterItem);y._setItems(c)});
y._computeKeyboardClass&&(y._computeKeyboardClass=function(c){_.i0(y.hostElement,"keyboard-focus",c)});
y.ensureRipple&&(y.ensureRipple=function(c){if(y.hasRipple&&!y.hasRipple()){if(!y._createRipple)return;y._ripple=y._createRipple();y._ripple.noink=y.noink;var Z=y._rippleContainer||y.hostElement;Z&&_.p(Z).appendChild(y._ripple)}var G;if(c&&((G=y._ripple)==null?0:G.uiDownAction)){Z=_.p(y._rippleContainer||y.hostElement);var D;G=(D=c.composedPath())==null?void 0:D[0];Z.contains(G)&&y._ripple.uiDownAction(c)}});
y._updateMultiselectable&&(y._updateMultiselectable=function(c){c?y.hostElement.setAttribute("aria-multiselectable","true"):y.hostElement.removeAttribute("aria-multiselectable")})};
E1w=function(y,W,c){c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next())lWa(Z.value.constructor,y);lWa(W.constructor,y)};
IhE=function(y,W){y=_.z(y);for(var c=y.next();!c.done;c=y.next())if(c=c.value,c.type==="signal"){var Z=c.propertyKey;if(W.hasOwnProperty(Z)&&W[Z]!=null&&c.attributeType===Object){a:{Z=W[Z].constructor;for(var G=_.z(NGD),D=G.next();!D.done;D=G.next())if(D=D.value,Z===D){Z=D;break a}Z=Object}c.attributeType=Z}}};
pVt=function(){};
PD1=function(y){var W;return(W=y.hostElement)!=null?W:y};
JjF=function(){throw Error("Mg");};
V3w=function(y,W){y.constructor.prototype.useSignals=!0;var c=new y.constructor;E1w(c,y,W.behaviors);IhE(W.reactiveSchemas,c);c={};for(var Z=_.z(W.reactiveSchemas),G=Z.next();!G.done;G=Z.next())G=G.value,G.type==="signal"&&(c[G.propertyKey]=G.attributeType);var D={copyPropertiesToProto:JjF,didRegister:!1,typesForSignals:c},Y=["disable-upgrade"].concat(_.No(W.observedAttributes)),u=function(t){E0.call(this,y,W,D,t)};
_.R(u,E0);_.dJ.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
D.copyPropertiesToProto=function(){for(var t=0;t<W.behaviors.length;t++)NOF(W.behaviors[t],u.prototype);NOF(y,u.prototype)};
W.legacyOptimizations||D.copyPropertiesToProto();u.prototype.is=y.is;return u};
CDg=function(y,W){if(Object.getPrototypeOf(W.prototype).constructor!==_.v)throw Error("Ng");W.prototype.is=y.is;return V3w(W.prototype,y)};
QAI=function(y){return y.type==="compute"||y.type==="computeWithMethod"};
Ajt=function(y){for(var W=y.reactiveSchemas.filter(QAI),c=new Map,Z=new Map,G=new Map,D=_.z(W),Y=D.next();!Y.done;Y=D.next())Y=Y.value,c.set(Y.propertyKey,Y),Z.set(Y.propertyKey,[]),G.set(Y.propertyKey,0);D=0;W=_.z(W);for(Y=W.next();!Y.done;Y=W.next()){Y=Y.value;for(var u=_.z(Y.type==="computeWithMethod"?Y.method.args:Y.args),t=u.next();!t.done;t=u.next())t=t.value,t.type!=="literal"&&(t=t.path.split(".")[0],Z.has(t)&&(Z.get(t).push(Y.propertyKey),G.set(Y.propertyKey,G.get(Y.propertyKey)+1),D++))}Y=
[].concat(_.No(Z.keys())).filter(function(b){return G.get(b)===0});
for(W=[];Y.length;)for(u=Y.shift(),W.push(c.get(u)),u=_.z(Z.get(u)),t=u.next();!t.done;t=u.next())t=t.value,G.set(t,G.get(t)-1),D--,G.get(t)===0&&Y.push(t);c=y.reactiveSchemas.filter(function(b){return!QAI(b)});
y.reactiveSchemas=[].concat(_.No(c),_.No(W))};
hM1=function(y,W){if(W.properties)for(var c=_.z(Object.entries(W.properties)),Z=c.next();!Z.done;Z=c.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;y.properties[Z]=typeof G==="function"?{type:G}:G}W.observers&&y.observers.push.apply(y.observers,_.No(W.observers));W.disabledPolySiReactions&&y.disabledPolySiReactions.push.apply(y.disabledPolySiReactions,_.No(W.disabledPolySiReactions))};
BGt=function(y,W){for(var c=W.length-1;c>=0;c--){var Z=W[c];Array.isArray(Z)?BGt(y,Z):y.indexOf(Z)<0&&y.unshift(Z)}};
HoE=function(y,W){y.reactiveSchemas=y.reactiveSchemas.filter(function(c){return c.type==="observe"&&W.includes(c.method.methodName)||QAI(c)&&W.includes(c.propertyKey)?!1:!0})};
v1E=function(y,W){var c=W.prototype,Z,G,D={is:y.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Fny.InjectBehavior,tx.prototype],disableElementRegistration:y.disableElementRegistration,provide:(Z=y.providers)!=null?Z:[],reactivityMode:y.reactivityMode,signalProperties:(G=c.signalProperties)!=null?G:[]};"template"in W?D.templateGetter=function(){return W.template}:y.getTemplate&&(D.templateGetter=y.getTemplate);
c.behaviors&&BGt(D.behaviors,c.behaviors);L7H(D,W);return D};
L7H=function(y,W){for(var c=W.prototype,Z={properties:{},observers:[],disabledPolySiReactions:[]},G=_.z(y.behaviors),D=G.next();!D.done;D=G.next())hM1(Z,D.value);hM1(Z,c);if(y.signalProperties)for(c=_.z(y.signalProperties),G=c.next();!G.done;G=c.next())delete Z.properties[G.value];c=_.z(Object.entries(Z.properties));for(G=c.next();!G.done;G=c.next()){D=_.z(G.value);G=D.next().value;D=D.next().value;var Y=void 0;if((Y=y.signalProperties)==null||!Y.includes(G)){Y=void 0;var u=y,t=D.type;if(!t)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{t=Reflect.getMetadata("design:type",W,G);for(var b=_.z(dfF),r=b.next();!r.done;r=b.next())if(r=r.value,t===r){t=r;break a}t=Object}else t=String;D.computed||D.selector||(u.reactiveSchemas.push({type:"signal",propertyKey:G,value:D.value,attributeType:t,readOnly:D.readOnly}),u.observedAttributes.push(_.sL(G)));D.reflectToAttribute&&u.reactiveSchemas.push({type:"reflect",propertyKey:G});if(D.computed){t=M7a(D.computed);if(!t)throw Error("Og");u.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:G,method:t,value:D.value})}D.observer&&u.reactiveSchemas.push({type:"observe",method:{methodName:D.observer,args:[{type:"path",path:G}]}});D.notify&&u.reactiveSchemas.push({type:"notify",propertyKey:G});D.selector&&u.reactiveSchemas.push({type:"redux",propertyKey:G,selector:D.selector,selectorArgs:(Y=D.selectorArgs)!=null?Y:[]})}}SrE&&Ajt(y);W=_.z(Z.observers);for(G=W.next();!G.done;G=W.next())c=y,G=G.value,(D=M7a(G))?c.reactiveSchemas.push({type:"observe",method:D}):console.log('Warning: unable to parse observe declaration: "'+
G+'"');HoE(y,Z.disabledPolySiReactions)};
TGh=function(y,W){for(var c=0;c<W.length;c++){var Z=W[c],G=void 0;(G=Z).showHideApi!=null||(G.showHideApi={});G=void 0;!!y!==!((G=Z.showHideApi)==null||!G.hideTemplateChildren)&&(Z.nodeType===Node.TEXT_NODE?y?(Z.showHideApi.polymerTextContent=Z.textContent,Z.textContent=""):(G=void 0,Z.textContent=(G=Z.showHideApi.polymerTextContent)!=null?G:null):Z instanceof Element&&Z.localName==="slot"?y?(Z.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.ed)((0,_.ed)(Z).parentNode).replaceChild(Z.showHideApi.polymerReplaced,
Z)):(G=Z.showHideApi.polymerReplaced)&&(0,_.ed)((0,_.ed)(G).parentNode).replaceChild(Z,G):Z instanceof HTMLElement&&Z.style&&(y?(Z.showHideApi.polymerDisplay=Z.style.display,Z.style.display="none"):Z.style.display=Z.showHideApi.polymerDisplay));Z.showHideApi.hideTemplateChildren=y;Z.showHideChildren&&Z.showHideChildren(y)}};
xfE=function(){if(!ahF){var y=document.createElement("style");y.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(y);ahF=!0}};
iot=function(y,W){return R2(y,function(){for(var c={},Z=W,G=new Set;Z;){for(var D=_.z(Object.entries(Z.signals)),Y=D.next();!Y.done;Y=D.next()){var u=_.z(Y.value);Y=u.next().value;u=u.next().value;G.has(Y)||(G.add(Y),c[Y]=u.type==="mutable"?u.signal.getWithPath([]):u.getter())}Z=Z.parentScope}return c})};
NM=function(){return _.O("disable_hidden_dom_if_using_stamper")||_.O("creator_disable_hidden_dom_if_using_stamper")};
M3f=function(){var y=!1,W=_.z(_.G9(!0,void 0,"UQbJQc")),c=W.next().value,Z=W.next().value;return[function(){return y?!1:c()},
function(){y=!0;Z(!1)}]};
eMg=function(y,W){var c=_.I5().getState();return W?y.apply(null,[c].concat(_.No(W))):y(c)};
k0w=function(){if(wVy)return wVy;var y=_.z(_.G9(0,void 0,"Nl6eIe")),W=y.next().value;y.next();var c=y.next().value;_.I5().subscribe(function(){qrD(c)});
return wVy=W};
qrD=function(y){_.O("delay_redux_signal_update_killswitch")?y(function(W){return W+1}):jBH||(jBH=!0,Promise.resolve().then(function(){y(function(W){return W+1});
jBH=!1}))};
_.I5=function(){return yQH.getAppStore()};
p6=function(y,W){return yQH.getSelectFn()(y,W)};
_.PQ=function(y){yQH.getDispatchFn()(y)};
WaD=function(y,W){var c={},Z;for(Z in y)c[Z]=W(y[Z],Z);return c};
_.Jx=function(y,W){return function(){var c;return(c=_.gV(y))!=null?c:W}};
_.V0=function(y,W){var c=Object.assign({},y),Z;for(Z in W)W.hasOwnProperty(Z)&&(c[Z]=_.Jx(y[Z],W[Z]));return c};
cQh=function(y,W,c){y instanceof Element&&(c.debugName||(c.debugName="<"+y.tagName.toLowerCase()+(y.tagName.includes("-")?">":"."+y.className+">")),_.O("ytwiz_enable_debug_component_props")&&(y.debugProps||(y.debugProps=WaD(W,function(Z){return function(){return Z()}}))))};
_.Ax=function(y,W){var c=function(Z){var G={stack:[],error:void 0,hasError:!1};try{var D=ZSO={};var Y=_.C6(G),u;if(((u=c)==null?0:u.idomCompat)&&Z.renderedFromIdom){Y==null||Y.attr("idomCompat",!0);var t,b=typeof c.idomCompat==="object"?(t=c)==null?void 0:t.idomCompat.callbacks:{},r=_.z(GKa(Z,b,c.debugName)),F=r.next().value;r.next();var K=r.next().value,l=fAa(y,F);D.privateValue=l;ZSO=void 0;cQh(l,F,c);Y==null||Y.attr("debugName",c.debugName);var N=vME(l),P=Array.isArray(N)?N[0]:N;P[kk]||(P[kk]=
{});P[kk].updateSignalsFromIdomProps=K;return l}var V=WaD(Z,oCF);var Q=fAa(y,V);D.privateValue=Q;ZSO=void 0;cQh(Q,V,c);Y==null||Y.attr("debugName",c.debugName);return Q}catch(S){G.error=S,G.hasError=!0}finally{_.Q0(G)}};
c.debugName=W===void 0?"":W;return c};
fAa=function(y,W){y=y(W);return WI(y)};
DmI=function(y,W){y[W]||(y=new _.ul("IDOM interop setter undefined. Key:",W),_.OP(y))};
oCF=function(y,W){return W==="children"||typeof y==="function"||y===void 0?y:function(){return _.gV(y)}};
GKa=function(y,W,c){var Z={},G={},D={},Y={},u;for(u in y){Y={key$jscomp$880:Y.key$jscomp$880};Y.key$jscomp$880=u;var t=y[Y.key$jscomp$880];if(Y.key$jscomp$880==="children")Z[Y.key$jscomp$880]=t;else if(typeof t==="function")Y.key$jscomp$880 in W||t.length>0?(D[Y.key$jscomp$880]=t,Z[Y.key$jscomp$880]=function(r){return function(){return D[r.key$jscomp$880].apply(D,_.No(_.Cf.apply(0,arguments)))}}(Y)):Z[Y.key$jscomp$880]=t;
else if(!(y[Y.key$jscomp$880]===void 0&&Y.key$jscomp$880 in W)){var b=_.z(_.G9(y[Y.key$jscomp$880],{debugName:"__cwis:"+c+":"+Y.key$jscomp$880},"lEtjrb"));t=b.next().value;b=b.next().value;Z[Y.key$jscomp$880]=t;G[Y.key$jscomp$880]=b}}return[Z,G,function(r){var F={},K;for(K in r)F={key$jscomp$881:F.key$jscomp$881,val$jscomp$116:void 0},F.key$jscomp$881=K,F.val$jscomp$116=r[F.key$jscomp$881],F.key$jscomp$881!=="children"&&(typeof F.val$jscomp$116==="function"?F.key$jscomp$881 in W?D[F.key$jscomp$881]=
F.val$jscomp$116:F.val$jscomp$116.length>0&&(D[F.key$jscomp$881]=F.val$jscomp$116,_.Rs(new _.ul("Callback detected that was not set in the idomCompat callbacks map. Key:",F.key$jscomp$881))):F.key$jscomp$881 in W&&F.val$jscomp$116===void 0||(DmI(G,F.key$jscomp$881),mT(function(l){return function(){G[l.key$jscomp$881](l.val$jscomp$116)}}(F))))}]};
mmI=function(y,W,c){var Z=o_h(y.prototype,zna,y.prototype.behaviors);Z.prototype.is=W;Z.prototype.localName=W;c&&Ygw(Z,c);return function(G){G&&(Z.prototype.hostElement=G);var D=new Z;D.root=D;D.hostElement=G;return D}};
Ygw=function(y,W){var c;Object.defineProperty(y.prototype,"_template",{get:function(){c===void 0&&(c=W());return c},
set:function(Z){c=Z},
configurable:!0,enumerable:!0})};
Xma=function(y,W,c,Z){function G(){if(!l){for(var N=new Set,P=_.z(r),V=P.next();!V.done;V=P.next()){V=V.value;for(var Q=_.z(Object.getOwnPropertyNames(V)),S=Q.next();!S.done;S=Q.next()){S=S.value;var cy=void 0,M=(cy=Object.getOwnPropertyDescriptor(V,S))==null?void 0:cy.value;M&&M instanceof Function&&!hx(S)&&N.add(S)}}P=_.z(Object.entries(Object.getOwnPropertyDescriptors(y.prototype)));for(V=P.next();!V.done;V=P.next())Q=_.z(V.value),V=Q.next().value,Q=Q.next().value,Q.value instanceof Function&&
!hx(V)&&N.add(V);l=N}return l}
sBf(y,W,Z==null?void 0:Z.providers);DLO(y.prototype,y,!0);var D=mmI(y,W,c),Y,u=(Y=y.prototype.properties)!=null?Y:{},t,b,r=(b=(t=y.prototype.behaviors)==null?void 0:t.flat(Infinity))!=null?b:[];c=_.z(r);for(Y=c.next();!Y.done;Y=c.next())u=Object.assign({},Y.value.properties,u);var F=[].concat(_.No(u4O),_.No(Object.keys(u).map(function(N){return _.sL(N)}))),K=!1,l;
return{ctor:function(N,P){var V=D(N),Q,S;N=[].concat(_.No((Q=Z==null?void 0:Z.allowedProps)!=null?Q:[]),_.No((S=Z==null?void 0:Z.allowedPropsFromBehaviors)!=null?S:[]));V.allowedProps=N.length>0?N:void 0;Q={};S=_.z(F);for(N=S.next();!N.done;N=S.next())N=N.value,Q[N]=_.uM(N);V.__dataAttributes=Q;var cy=V.ready.bind(V);V.ready=function(){P.beforeReady();cy();if(f6(W)&&!K){var M=V.__templateInfo;if(M==null?0:M.hostProps){M=_.z(Object.keys(M.hostProps));for(var fa=M.next();!fa.done;fa=M.next())DV(W,fa.value,
"PROPERTY_ACCESS_GET_INTERNAL")}K=!0}};
V._overrideLegacyUndefined=!0;return V},
props:u,observedAttributes:F,getInitialMethods:G,getPropsToForwardBeforeRegister:function(){for(var N=[],P=new Set,V=_.z(Object.keys(u)),Q=V.next();!Q.done;Q=V.next())Q=Q.value,N.push([Q,u[Q].readOnly]),P.add(Q);V=G();Q=_.z(Object.keys(Object.getOwnPropertyDescriptors(y.prototype)));for(var S=Q.next();!S.done;S=Q.next())S=S.value,!t4t(S)||V.has(S)||P.has(S)||(N.push([S,!1]),P.add(S));P=_.z(nCD);for(V=P.next();!V.done;V=P.next())N.push([V.value,!0]);return N},
getPropsToForwardBeforeReady:function(N){for(var P=[],V=_.z(Object.entries(N)),Q=V.next();!Q.done;Q=V.next()){var S=_.z(Q.value);Q=S.next().value;S=S.next().value;if(t4t(Q)&&!(S instanceof Function)&&(P.push([Q,!1]),f6(W))){var cy=S=void 0;(cy=(S=N)._createPropertyAccessor)==null||cy.call(S,Q)}}return P},
shouldForwardProp:t4t,shouldLog:f6}};
sBf=function(y,W,c){UTD(y,c);y.prototype.behaviors.unshift(bSE);if(fWt()){if(f6(W)){var Z;(Z=y.prototype).behaviors!=null||(Z.behaviors=[]);y.prototype.behaviors.unshift(Y71())}sMF(y)}_.C(tx.prototype)(y.prototype,"__templateHelpers")};
hx=function(y){return rQI.has(y)||y.startsWith("__compute__")};
t4t=function(y){return!hx(y)&&!y.startsWith("_")&&!y.endsWith("_")};
OSD=function(y,W){function c(){var K=t();K=_.z(K);for(var l=K.next();!l.done;l=K.next()){var N=_.z(l.value);l=N.next().value;N=N.next().value;Fat(F.prototype,l,N)}Z=!0}
var Z=!1,G=y.ctor,D=y.getInitialMethods,Y=y.observedAttributes,u=y.getPropsToForwardBeforeReady,t=y.getPropsToForwardBeforeRegister,b=y.shouldForwardProp,r=y.shouldLog,F=function(){var K=HTMLElement.call(this)||this;K.didForwardDynamicProps=!1;K.loggingStatus={};Z||c();K.inst=G(K,{beforeReady:function(){K.didForwardDynamicProps||(K.forwardDynamicProps(),K.didForwardDynamicProps=!0)}});
K.controllerProxy=DTF(K.inst,W);K.forwardMethods();return K};
_.R(F,HTMLElement);F.prototype.forwardMethods=function(){for(var K=this,l=_.z(this.inst.getExtraMethodsToForward()),N=l.next(),P={};!N.done;P={method$jscomp$61:void 0},N=l.next()){var V=_.z(N.value);N=V.next().value;V=V.next().value;P.method$jscomp$61=V;this[N]=function(Q){return function(){return Q.method$jscomp$61.call.apply(Q.method$jscomp$61,[K.inst].concat(_.No(_.Cf.apply(0,arguments))))}}(P)}l=_.z(D());
for(P=l.next();!P.done;P=l.next())P=P.value,b(P)&&Umf(this,P),r(W)&&!hx(P)&&$mH(this.inst,P)};
F.prototype.forwardDynamicProps=function(){var K=u(this.inst);K=_.z(K);for(var l=K.next();!l.done;l=K.next()){var N=_.z(l.value);l=N.next().value;N=N.next().value;Fat(this,l,N);r(W)&&!hx(l)&&KaF(this.inst,l)}};
F.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
F.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
F.prototype.attributeChangedCallback=function(K,l,N){this.inst.attributeChangedCallbackWrapper(K,l,N)};
_.dJ.Object.defineProperties(F.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return W}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.dJ.Object.defineProperties(F,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y}}});
customElements.define(W,F)};
Fat=function(y,W,c){y.hasOwnProperty(W)||Object.defineProperty(y,W,{get:function(){var Z,G=((Z=y.is)!=null?Z:y.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||DV(G,W,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,Z=this.polymerController[W],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,Z},
set:function(Z){if(!c){var G,D=((G=y.is)!=null?G:y.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||DV(D,W,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=W,this.loggingStatus.bypassProxyController=!0,this.polymerController[W]!==Z&&(G={},this.polymerController.setProperties((G[W]=Z,G)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Umf=function(y,W,c){var Z=y.polymerController;y[W]=function(){var G=_.Cf.apply(0,arguments);y.loggingStatus.currentExternalCall=W;y.loggingStatus.bypassProxyController=!0;var D,Y=((D=y.is)!=null?D:y.tagName).toLowerCase();DV(Y,W,"PROPERTY_ACCESS_CALL_EXTERNAL");var u;D=(u=c!=null?c:Z[W])==null?void 0:u.call.apply(u,[Z].concat(_.No(G)));y.loggingStatus.currentExternalCall=void 0;y.loggingStatus.bypassProxyController=!1;return D}};
$mH=function(y,W){var c=y.hostElement,Z=y[W];y[W]=function(){var G=_.Cf.apply(0,arguments);if(c.loggingStatus.currentExternalCall!==W){var D,Y=((D=c.is)!=null?D:c.tagName).toLowerCase();DV(Y,W,"PROPERTY_ACCESS_CALL_INTERNAL")}return Z==null?void 0:Z.apply(y,G)}};
KaF=function(y,W){var c=Object.getOwnPropertyDescriptor(y,W);c&&!c.get&&Object.defineProperty(y,W,{get:function(){zkI(y.hostElement,W);return c.value},
set:function(Z){zs(y.hostElement,W);c.value=Z}})};
gCH=function(y){return _.O("poly_si_dom_repeat_detached_fix_killswitch")||y.tagName!=="PS-DOM-REPEAT"?y.tagName==="DOM-REPEAT":!0};
lAa=function(y,W){var c=RnH(y);y instanceof Element&&c.unshift(y);y=_.z(c.filter(gCH));for(var Z=y.next();!Z.done;Z=y.next()){Z=_.z(Z.value.__instances);for(var G=Z.next();!G.done;G=Z.next())if(G=G.value,G.root){G=Array.from(G.root.children);G=_.z(G);for(var D=G.next();!D.done;D=G.next())c.push.apply(c,_.No(lAa(D.value,W)))}}return c.filter(function(Y){return Y.usePatchedLifecycles&&Y.lifecycleIsConnected===W})};
RnH=function(y){var W=null;y instanceof Element?W=Element.prototype.querySelectorAll:y instanceof DocumentFragment&&(W=DocumentFragment.prototype.querySelectorAll);return W?Array.from(W.call(y,"*")):[]};
BQ=function(y){ZS(function(){for(var W=_.z(lAa(y,!1)),c=W.next();!c.done;c=W.next()){c=c.value;c.lifecycleIsConnected=!0;try{var Z=void 0,G=void 0,D=void 0,Y=void 0;(Z=(Y=c.polymerController)!=null?Y:c)==null||(D=(G=Z).connectedCallback)==null||D.call(G)}catch(u){_.OP(u)}}})};
HQ=function(y){ZS(function(){for(var W=_.z(lAa(y,!0)),c=W.next();!c.done;c=W.next()){c=c.value;c.lifecycleIsConnected=!1;try{var Z=void 0,G=void 0,D=void 0,Y=void 0;(Z=(Y=c.polymerController)!=null?Y:c)==null||(D=(G=Z).disconnectedCallback)==null||D.call(G)}catch(u){_.OP(u)}}})};
V41=function(){if(!ECf){ECf=!0;var y=[Node];L6&&y.push(L6.Wrapper);var W=Node.prototype.insertBefore,c=Node.prototype.removeChild;y=_.z(y);for(var Z=y.next(),G={};!Z.done;G={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Z=y.next())Z=Z.value,G.nativeInsertBefore=Z.prototype.insertBefore,Z.prototype.insertBefore=function(Y){return function(u,t){if(u instanceof DocumentFragment){var b=Array.from(u.children);u=Y.nativeInsertBefore.call(this,u,t);
if(this.isConnected&&Y.nativeInsertBefore===W)for(t=_.z(b),b=t.next();!b.done;b=t.next())BQ(b.value);return u}b=u instanceof Element&&u.isConnected;t=Y.nativeInsertBefore.call(this,u,t);b&&HQ(u);this.isConnected&&BQ(u);return t}}(G),G.nativeAppendChild=Z.prototype.appendChild,Z.prototype.appendChild=function(Y){return function(u){if(u instanceof DocumentFragment){var t=Array.from(u.children);
u=Y.nativeAppendChild.call(this,u);if(this.isConnected){t=_.z(t);for(var b=t.next();!b.done;b=t.next())BQ(b.value)}return u}t=u instanceof Element&&u.isConnected;b=Y.nativeAppendChild.call(this,u);t&&HQ(u);this.isConnected&&BQ(u);return b}}(G),G.nativeRemoveChild=Z.prototype.removeChild,Z.prototype.removeChild=function(Y){return function(u){var t=u instanceof Element&&u.isConnected,b=Y.nativeRemoveChild.call(this,u);
t&&c===Y.nativeRemoveChild&&HQ(u);return b}}(G),G.nativeReplaceChild=Z.prototype.replaceChild,Z.prototype.replaceChild=function(Y){return function(u,t){if(u instanceof DocumentFragment){var b=Array.from(u.children);
u=Y.nativeReplaceChild.call(this,u,t);if(this.isConnected)for(HQ(t),t=_.z(b),b=t.next();!b.done;b=t.next())BQ(b.value);return u}b=u instanceof Element&&u.isConnected;var r=this.isConnected,F=Y.nativeReplaceChild.call(this,u,t);r&&HQ(t);b&&HQ(u);r&&BQ(u);return F}}(G);
y=[Element];L6&&y.push(L6.Wrapper);y=_.z(y);Z=y.next();for(G={};!Z.done;G={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Z=y.next())Z=Z.value,Z.prototype.before=NdE(Z.prototype.before),Z.prototype.after=NdE(Z.prototype.after),G.nativeReplaceWith=Z.prototype.replaceWith,Z.prototype.replaceWith=function(Y){return function(){var u=_.Cf.apply(0,arguments),t=_.z(IAh(u)),b=t.next().value,
r=t.next().value;t=this.isConnected;Y.nativeReplaceWith.apply(this,u);u=_.z(r);for(r=u.next();!r.done;r=u.next())HQ(r.value);if(t)for(HQ(this),b=_.z(b),t=b.next();!t.done;t=b.next())t=t.value,t instanceof Element&&BQ(t)}}(G),G.nativeRemove=Z.prototype.remove,Z.prototype.remove=function(Y){return function(){var u=this.isConnected;
Y.nativeRemove.call(this);u&&HQ(this)}}(G),G.nativeInsertAdjacentElement=Z.prototype.insertAdjacentElement,Z.prototype.insertAdjacentElement=function(Y){return function(u,t){var b=t.isConnected;
u=Y.nativeInsertAdjacentElement.call(this,u,t);b&&HQ(t);u.isConnected&&BQ(u);return u}}(G),G.nativeSetAttribute=Z.prototype.setAttribute,Z.prototype.setAttribute=function(Y){return function(u,t){var b=pmh(this);
if(!b.usePatchedLifecycles)return Y.nativeSetAttribute.call(this,u,t);var r=this.getAttribute(u);Y.nativeSetAttribute.call(this,u,t);t=this.getAttribute(u);Paf(b,u,r,t)}}(G),G.nativeRemoveAttribute=Z.prototype.removeAttribute,Z.prototype.removeAttribute=function(Y){return function(u){var t=pmh(this);
if(!t.usePatchedLifecycles)return Y.nativeRemoveAttribute.call(this,u);var b=this.getAttribute(u);Y.nativeRemoveAttribute.call(this,u);b!==null&&Paf(t,u,b,null)}}(G),G.nativeToggleAttribute=Z.prototype.toggleAttribute,Z.prototype.toggleAttribute=function(Y){return function(u,t){var b=pmh(this);
if(!this.usePatchedLifecycles)return Y.nativeToggleAttribute.call(this,u,t);var r=this.getAttribute(u),F=r!==null;t=Y.nativeToggleAttribute.call(this,u,t);t!==F&&Paf(b,u,r,t?"":null);return t}}(G);
y=[Document,DocumentFragment,Element,ShadowRoot];L6&&y.push(L6.Wrapper);y=_.z(y);for(G=y.next();!G.done;G=y.next())G=G.value,G.prototype.prepend=NdE(G.prototype.prepend),G.prototype.append=NdE(G.prototype.append);(L6==null?void 0:L6.noPatch)===!0&&JQH();document.readyState==="complete"?BQ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&BQ(document.body)});
var D=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");D&&D.get&&D.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:D.enumerable,configurable:!0,get:D.get,set:function(Y){Y||HQ(this);D.set.call(this,Y);return Y}})}};
NdE=function(y){return function(){var W=_.Cf.apply(0,arguments),c=_.z(IAh(W)),Z=c.next().value;c=c.next().value;y.apply(this,W);W=_.z(c);for(c=W.next();!c.done;c=W.next())HQ(c.value);if(this.isConnected)for(Z=_.z(Z),W=Z.next();!W.done;W=Z.next())W=W.value,W instanceof Element&&BQ(W)}};
JQH=function(){for(var y=_.z(CaI),W=y.next();!W.done;W=y.next()){W=W.value.prototype;for(var c=_.z(QBg),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var G=Object.getOwnPropertyDescriptor(W,Z);G&&Object.defineProperty(W,"__shady_native_"+Z,G)}}};
Paf=function(y,W,c,Z){var G,D;if((G=y.polymerController)==null?0:(D=G.observedAttributes)==null?0:D.includes(W))if(y=y.polymerController,y.attributeChangedCallbackWrapper)y.attributeChangedCallbackWrapper.call(y,W,c,Z);else{var Y;(Y=y.attributeChangedCallback)==null||Y.call(y,W,c,Z)}};
IAh=function(y){var W=[],c=[];y=_.z(y);for(var Z=y.next();!Z.done;Z=y.next())Z=Z.value,Z instanceof Element&&Z.isConnected&&c.push(Z),Z instanceof DocumentFragment?W.push.apply(W,_.No(Array.from(Z.children))):W.push(Z);return[W,c]};
pmh=function(y){return!(y instanceof Element)&&y.node instanceof Element?y.node:y};
AQH=function(y,W){var c=W?["children"].concat(_.No(W)):["children"];W=[];c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next()){var G=Z.value;if(y.hasOwnProperty(G)){Z=y[G];Z=typeof Z==="function"?Z():Z;Z=WI(Array.isArray(Z)?Z:[Z]).flat();if(G!=="children"){G=kAg(G);for(var D=_.z(Z),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y instanceof Element&&Y.setAttribute("slot",G)}W.push(Z)}}W.length===0?y=[]:(y=WI(_.X("div",null,W)),y=Array.from(y.childNodes));return y};
hnI=function(y,W,c){var Z={};_.UN(function(){var G={},D;for(D in W)if(W.hasOwnProperty(D)){var Y=void 0,u=void 0;if(!(((Y=c.slotProps)==null?0:Y.includes(D))||D==="children"||((u=c.callbackProps)==null?0:u.includes(D))||D==="ref")&&(Y=_.gV(W[D]),Z[D]!==Y)){Z[D]=Y;u=void 0;var t=(u=y.hostElement)!=null?u:y;if(D==="className"||D==="id")t[D]=Y;G[D]=Y}}mT(function(){if(y.setProperties)y.setProperties(G);else for(var b=_.z(Object.entries(G)),r=b.next();!r.done;r=b.next()){var F=_.z(r.value);r=F.next().value;
F=F.next().value;y[r]=F}})})};
HSI=function(y,W,c,Z){var G=AQH(c,Z.slotProps),D=_.O("web_wcw_disable_slot_host_shady_dom_wrap")?y:(0,_.ed)(y);G=_.z(G);for(var Y=G.next();!Y.done;Y=G.next())D.appendChild(Y.value);hnI(W,c,Z);Z=_.z(Z.callbackProps||[]);G=Z.next();for(D={};!G.done;D={kebabEventName:void 0,eventListener:void 0},G=Z.next())Y=G=G.value,String(G).substring(0,2)==="on"&&c[Y]?(D.kebabEventName=kAg(String(G).substring(2)),D.eventListener=c[Y],y.addEventListener(D.kebabEventName,D.eventListener),_.KL(function(r){return function(){y.removeEventListener(r.kebabEventName,
r.eventListener)}}(D))):W[Y]=c[Y];
if(c.ref){c=_.z(Bda(c.ref));var u=c.next().value,t=c.next().value,b=W.attached.bind(W);W.attached=function(){u(y);b()};
_.KL(function(){t()})}};
Bda=function(y){if(typeof y==="function"){var W;return[function(c){W=y(c)},
function(){var c;(c=W)==null||c()}]}if(!y.onRender||!y.onUnmount)throw Error("Sg");
return[y.onRender,y.onUnmount]};
SgF=function(y,W,c,Z,G){Z=Z===void 0?{}:Z;var D=Laf,Y=!1;D?(Y=!0,Laf=void 0):(vCE=W,D=document.createElement(W),vCE=void 0);var u=D;u.usePatchedLifecycles=!0;u.lifecycleIsConnected=!1;D.loggingStatus={};var t=dmh(y,W,D,Z,G);_.KL(function(){u.lifecycleIsConnected&&(u.lifecycleIsConnected=!1,t.disconnectedCallback())});
Y||HSI(D,t,c,Z);return D};
dmh=function(y,W,c,Z,G){G=G===void 0?Xma:G;Tdw[W]!=null||(Tdw[W]=G(y,W,Z==null?void 0:Z.getTemplate,Z));var D=Tdw[W],Y=D.ctor;G=D.getInitialMethods;var u=D.getPropsToForwardBeforeReady;y=D.getPropsToForwardBeforeRegister;Z=D.shouldForwardProp;var t=D.observedAttributes,b=D.shouldLog,r=Y(c,{beforeReady:function(){var F=r;F._takeAttributes?F._takeAttributes():F.setPropertiesFromInitialAttributeValues&&F.setPropertiesFromInitialAttributeValues();F=_.z(u(c.polymerController));for(var K=F.next();!K.done;K=
F.next()){var l=_.z(K.value);K=l.next().value;l=l.next().value;Fat(c,K,l);b(W)&&!hx(K)&&KaF(c.polymerController,K)}c.polymerController=DTF(r,W)}});
c.polymerController=r;c.polymerController.observedAttributes=t;D=_.z(r.getExtraMethodsToForward());for(Y=D.next();!Y.done;Y=D.next())t=_.z(Y.value),Y=t.next().value,t=t.next().value,Umf(c,Y,t);G=_.z(G());for(D=G.next();!D.done;D=G.next())D=D.value,Z(D)&&Umf(c,D),b(W)&&!hx(D)&&$mH(r,D);y=_.z(y());for(Z=y.next();!Z.done;Z=y.next())G=_.z(Z.value),Z=G.next().value,G=G.next().value,Fat(c,Z,G);return r};
xmF=function(y,W){return vQ===W?(y.isInert=!0,vQ="",!0):aAD===W?(y.isInert=!0,aAD="",!0):!1};
iSH=function(y){var W=dp;dp=y;return W};
enH=function(y){if(Sj.has(y))aAD=y;else if(Ts.has(y)&&dp&&M4E(dp)===y){var W;(W=dp)._numRenders!=null||(W._numRenders=0);dp._numRenders++;if(dp._numRenders>1)throw Error("Tg");return dp}};
wmg=function(y){Sj.has(M4E(y))?aAD=M4E(y):Ts.has(M4E(y))&&dp!==y&&(y._isInert=!0)};
M4E=function(y){var W;return(W=y==null?void 0:y.tagName.toLowerCase())!=null?W:""};
qgD=function(y,W){if(y.componentType===nL)throw Error("Ug");Ts.add(W);var c=function(){var Z=HTMLElement.call(this)||this;Z.is=W;if(vCE===W)return Z.isInert=!0,Z;Z.createElement();return Z};
_.R(c,HTMLElement);c.prototype.createElement=function(){if(!this.isInert){Laf=this;var Z=_.z(u6E(function(){return _.X(y,null)})).next().value;
Laf=void 0;Lmt(this);return Z}};
customElements.define(W,c)};
juE=function(y,W,c,Z,G){y.prototype.is=W;(Z==null?0:Z.useSink)?kKf(y,W,c,Z,G):(c=Xma(y,W,c,Z),OSD(c,W));return y};
kKf=function(y,W,c,Z,G){V41();var D=_.Ax(function(Y){return SgF(y,W,Y,Object.assign({},Z,{getTemplate:c}),G)},"a");
qgD(D,W);return D};
WRf=function(y){return!yrh.has(y)};
GnD=function(y,W,c,Z){function G(){if(!F){for(var K=new Set(crh),l=_.z(D.behaviors),N=l.next();!N.done;N=l.next()){N=N.value;for(var P=_.z(Object.getOwnPropertyNames(N)),V=P.next();!V.done;V=P.next()){V=V.value;var Q=void 0,S=(Q=Object.getOwnPropertyDescriptor(N,V))==null?void 0:Q.value;S&&S instanceof Function&&K.add(V)}}l=_.z(Object.entries(Object.getOwnPropertyDescriptors(y.prototype)));for(N=l.next();!N.done;N=l.next())P=_.z(N.value),N=P.next().value,P=P.next().value,P.value instanceof Function&&
K.add(N);F=K}return F}
var D=v1E({is:W,disableElementRegistration:!1,getTemplate:c,providers:Z==null?void 0:Z.providers,reactivityMode:Z==null?void 0:Z.reactivityMode},y);if((Z==null?0:Z.allowedProps)||(Z==null?0:Z.allowedPropsFromBehaviors)){var Y,u;D.allowedProps=[].concat(_.No((Y=Z.allowedProps)!=null?Y:[]),_.No((u=Z.allowedPropsFromBehaviors)!=null?u:[]))}var t=CDg(D,y);W=t.observedAttributes;var b={};c=_.z(D.reactiveSchemas);for(Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,Z.type==="signal")b[Z.propertyKey]={readOnly:Z.readOnly},
Z.readOnly&&(b[V7E(Z.propertyKey)]={readOnly:!0});else if(Z.type==="compute"||Z.type==="computeWithMethod"||Z.type==="redux")b[Z.propertyKey]={readOnly:!0};var r=D.reactiveSchemas.length,F;return{ctor:function(K,l){K=new t(K);K.beforeReady=l.beforeReady;return K},
props:b,observedAttributes:W,getInitialMethods:G,getPropsToForwardBeforeRegister:function(){for(var K=[],l=new Set,N=_.z(Z9E),P=N.next();!P.done;P=N.next())P=P.value,K.push([P,P!=="observers"&&P!=="properties"]),l.add(P);N=_.z(Object.keys(b));for(P=N.next();!P.done;P=N.next())P=P.value,K.push([P,b[P].readOnly]),l.add(P);N=G();P=_.z(Object.keys(Object.getOwnPropertyDescriptors(y.prototype)));for(var V=P.next();!V.done;V=P.next())V=V.value,!WRf(V)||N.has(V)||l.has(V)||(K.push([V,!1]),l.add(V));K.push(["allowedProps",
!0]);return K},
getPropsToForwardBeforeReady:function(K){var l=[];K=_.z(Object.keys(K));for(var N=K.next();!N.done;N=K.next()){N=N.value;var P=G();WRf(N)&&!P.has(N)&&l.push([N,!1])}K=_.z(D.reactiveSchemas.slice(r));for(N=K.next();!N.done;N=K.next())N=N.value,N.type!=="compute"&&N.type!=="computeWithMethod"&&N.type!=="redux"&&N.type!=="signal"||l.push([N.propertyKey,N.type==="signal"?N.readOnly:!0]);return l},
shouldForwardProp:WRf,shouldLog:f6}};
_.T=function(y,W,c,Z){var G,D,Y=(D=(G=Z)==null?void 0:G.mode)!=null?D:0;Z!=null||(Z={});var u;(u=Z).reactivityMode!=null||(u.reactivityMode=0);Y===1&&_.qn("creator_poly_si_disable_list").includes(W)&&(Y=2);return Y===1?juE(y,W,c,Object.assign({},Z,{useSink:!0}),GnD):juE(y,W,c,Object.assign({},Z,{useSink:Y===2}))};
_.a5=function(){return function(y,W,c,Z){var G,D,Y=(D=(G=Z)==null?void 0:G.mode)!=null?D:2;Z!=null||(Z={});var u;(u=Z).reactivityMode!=null||(u.reactivityMode=0);if(Y===0)throw Error("Vg`"+Y);return kKf(y,W,c,Z,Y===1?GnD:void 0)}};
_.xm=function(y){return _.O("creator_poly_si_killswitch")?!1:_.O("force_all_poly_si_batches")&&(y==="poly_si_all_on_test_check"||y==="creator_poly_si_batch_050"?0:y)||document.documentElement.hasAttribute("use-signals")?!0:!y||_.O(y+"_holdback_enabled")&&_.O("kevlar_polysi_holdback")?!1:_.O(y)};
i6=function(y){return y?y.icon?y.icon.iconType.toLowerCase():y.customThumbnail?"member":"":""};
f6h=function(y){if(!y)return"";y=_.z(y);for(var W=y.next();!W.done;W=y.next())if((W=W.value)&&W.liveChatAuthorBadgeRenderer&&(W=i6(W.liveChatAuthorBadgeRenderer))&&W!=="verified")return W;return""};
olD=function(y,W){if(!y)return null;var c;return((c=y.find(function(Z){return Z&&Z.liveChatAuthorBadgeRenderer?i6(Z.liveChatAuthorBadgeRenderer)===W:!1}))==null?void 0:c.liveChatAuthorBadgeRenderer)||null};
_.uvt=function(y){var W=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;y=DdE(y);W=DdE(W);var c=zbg(y.hex);W=zbg(W.hex);var Z=W[0]/255;var G=W[1]/255,D=W[2]/255,Y=Math.max(Z,G,D),u=Math.min(Z,G,D),t=0,b=0,r=.5*(Y+u);Y!=u&&(Y==Z?t=60*(G-D)/(Y-u):Y==G?t=60*(D-Z)/(Y-u)+120:Y==D&&(t=60*(Z-G)/(Y-u)+240),b=0<r&&r<=.5?(Y-u)/(2*r):(Y-u)/(2-2*r));Z=[Math.round(t+360)%360,b,r];c=YFI(c,W);for(y=mdD(y.hex);c<4.5;){y=Z[2]>=.5?y.darker((4.5-c)/2):y.brighter((4.5-c)/2);c=y.toString();
G=suI(c);if(!G.length)throw Error("Sd`"+c);c=G;c=YFI(c,W)}return y.hex()};
YFI=function(y,W){y=_.zpH(y);W=_.zpH(W);return(Math.max(y,W)+.05)/(Math.min(y,W)+.05)};
_.MM=function(y){return"#"+("000000"+(y&16777215).toString(16)).slice(-6)};
_.tkH=function(y){for(var W=0,c=0;c<y.length;c++)W=y.charCodeAt(c)+((W<<5)-W);y="#";for(c=0;c<3;c++)y+=("00"+(W>>c*8&255).toString(16)).slice(-2);return y};
nlH=function(y){y=(y||"").split(":");y.length===1&&y.unshift("yt-icons");y[1]=y[1].toLowerCase();return y};
$dF=function(y,W){var c=(W=W===void 0?!1:W)?XZf:b9F,Z=W?rry:FR1;y.getIconNames().forEach(function(G){G=W?G:G.substring(G.indexOf(":")+1);y.name==="yt-icons"?UdI.add(G):G.includes("-filled")?c.add(G):Z.add(G)})};
ej=function(y,W,c,Z){c=c===void 0?!1:c;Z=Z===void 0?!1:Z;var G,D,Y;return _.m(function(u){if(u.nextAddress==1)return _.n(u,KRI,2);if(Z)return u.return(UdI.has(y));G=c?XZf:b9F;D=c?rry:FR1;return W?(Y=y.includes("-filled")?y:y.concat("-filled"),u.return(G.has(Y))):u.return(D.has(y))})};
_.Rbf=function(y){if(O9w(y))return y;var W=y=y.toLowerCase();(y=glh.get(y))&&(W=y);return W};
_.wp=function(y){if(O9w(y))return y.toString();var W=l6I.get(y);if(W)return W;W=y.toLowerCase();var c="yt-icons",Z=W.replace(/_/g,"-");switch(y){case "MY_CHANNEL":W="account_circle";break;case "ADD_TO_LIBRARY":W="add";break;case "ALERT_WARN_RED":W="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":W="person_music";break;case "BLOCK_USER":W="block";break;case "CAPTIONS":W="closed_caption";break;case "CLOSED_CAPTION":c="av";W="closed-caption";break;case "COLLECTION":c="maps";W="layers";break;case "CONTACT":c=
"icons";W="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":c="ytcp-icons";W=Z.split("creator-studio-")[1];break;case "DISMISSAL":W="close";break;case "DO_NOT_DISTURB":W="block";break;case "DOGFOOD":c="icons";W="pets";break;case "DRAFT":W="paper_corner_folded";break;
case "EMPTY_LIKE":W="like_outline";break;case "EXIT_APP":W="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":W=Z;break;case "GAMES":c="ytg";W="my-games";break;case "GO_TO_PAGE":W="arrow-forward";break;case "GROUP":c="social";break;case "HIDE":W="not_interested";break;case "INPUT_COMPONENT":c="icons";W="settings-input-component";break;case "KIDS_BLOCK":W="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":c="ytg";W="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":c=
"ytg";W="membership-post-purchase";break;case "MULTIVIEW":W="screen_multi_view";break;case "MY_LOCATION":c="maps";W=Z;break;case "NOTIFICATIONS_INBOX":W="NOTIFICATIONS";break;case "NEXT":W="chevron_right";break;case "OFFLINE":W="power-settings-new";break;case "PAUSE":c="miniplayer";break;case "PAYMENT":c="icons";break;case "PHONE_DOWNLOAD":W="phone_download";break;case "PREMIUM_STANDALONE":c="yt-logos";W="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":c="yt-logos";W="premium_standalone_cairo";
break;case "QUESTION_ANSWER":W="question_answer";break;case "REDEEM":c="icons";W="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":W="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":W="library_add";break;case "SCHOOL":c="yt-sys-icons";W="creator_academy";break;case "SETTINGS_LIGHT":W="settings_applications";break;case "SETTINGS_MATERIAL":W="settings";break;case "SEARCH_HISTORY":W="watch_history";break;case "SHOPPING_BAG":W="bag";break;case "SOCIAL":case "PEOPLE":c=
"yt-icons";W="people";break;case "STAFF_PICK":c="ytg";W="spotlight";break;case "START_DVR":W="add";break;case "STOP_DVR":c="av";W="stop";break;case "TAB_LIKED":W="like";break;case "TAB_INBOX":W="mail";break;case "TERMS_OF_SERVICE":c="icons";W="description";break;case "TRENDING":W="fire";break;case "UNBLOCK_USER":W="remove";break;case "UNPLUGGED_DARK_THEME":c="image";W="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":W="live";break;case "UNPLUGGED_SPORTS":c="ytu";W="visibility-off";break;
case "VIDEOS":c="av";W="play-circle-filled";break;case "YOUTUBE":c="yt-logos";W="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":c="yt-logos-ext";W="yt-logo-red-updated";break;case "YOUTUBE_LOGO":c="yt-logos-ext";W="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":c="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":c="shorts";W=Z;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":c="yt-sys-icons";W="youtube_improve_tv";break;case "OUTLINE_BAG":c=
"yt-sys-icons";W="bag";break;case "QUEUE_PLAY_LAST":c="yt-sys-icons";W="list_queue_last";break;case "SLASH_CIRCLE_LEFT":W="slash_circle_left";break;case "SPEED_1_POINT_2X":W="1_point_2x";break;case "SPEED_1_POINT_5X":W="1_point_5x";break;case "SPEED_1_POINT_8X":W="1_point_8x";break;case "SPEED_POINT_2X":W="point_2x";break;case "SPEED_POINT_5X":W="point_5x";break;case "SPEED_POINT_8X":W="point_8x";break;case "SPEED_1X":W="1x";break;case "SPEED_2X":W="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":c="yt-sys-icons";
W="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":c="yt-sys-icons";W="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":c="yt-sys-icons",W="tic_tac_toe"}W=c+":"+W;l6I.set(y,W);return W};
O9w=function(y){var W;_.O("kevlar_use_wil_icons")?W=!!_.U().resolve(_.qM).resolveIcon({iconName:y.toString()}):W=!1;return W};
_.jl=function(y,W,c,Z){c=c===void 0?{}:c;Z=Z===void 0?!1:Z;c===null&&(c={});var G=_.qn("kevlar_command_handler_command_banlist");G=_.z(G);for(var D=G.next();!D.done;D=G.next())if(D=y?y.hasOwnProperty(D.value):void 0,D)return!1;G=_.g(y.commandMetadata,_.kT);return Z&&G!=null&&G.url?!1:!W.disableCommandHandlerOverride&&_.km.instance?(Z=_.km.instance,c.form||(c.form={element:W}),c.form.element||(c.form.element=W),!c.clickedVisualElement&&W.visualElement&&(c.clickedVisualElement=W.visualElement),Z.resolveCommand(y,
c),!0):!1};
ElH=function(y,W){y=yE(y);for(var c=_.z(y.visibilityMonitorKeys||[]),Z=c.next();!Z.done;Z=c.next())W.unobserveByKey(Z.value);y.visibilityMonitorKeys=void 0};
PbI=function(y,W){if(_.NR()){if(_.O("kevlar_vimio_use_shared_monitor"))NvH(y,W.data);else if(!NvH(y,W.data))return;var c=W.data,Z=I6y(c);if(_.O("enable_client_ve_spec_logging"))ElH(y,W.observer);else{var G=yE(y);G.trackedParams&&G.trackedParams!==Z&&ElH(y,W.observer)}G=yE(y);!c||G.data&&G.data===c||(G.data=c);pZD(y,W);G.trackedParams=Z}};
pZD=function(y,W){var c=W.observer;if(!c&&_.O("web_skip_missing_vimio_observer")){var Z,G;_.Rs(new _.ul("VisibilityObserver is not defined.",y.tagName,y.trackedParams,(Z=W.data)==null?void 0:Z.trackingParams,(G=W.data)==null?void 0:G.loggingDirectives))}else{var D=W.layer,Y=W.visibilityCallback||function(){},u=W.prescanCallback,t=yE(y);
Z=[];W.showOption&&Z.push(c.observe(y,function(){W.skipLogging&&W.skipLogging()||_.Wh().reportShown(t,void 0,D);Y(!0)},W.showOption));
W.hideOption&&Z.push(c.observe(y,function(){_.Wh().reportHidden(t,void 0,D);Y(!1)},W.hideOption));
W.prescanOption&&u&&Z.push(c.observe(y,function(){u()},W.prescanOption));
t.visibilityMonitorKeys=Z}};
NvH=function(y,W){y=yE(y);if(y.visualElement&&!W)return!0;if(!W)return!1;var c=!1;if(_.O("enable_client_ve_spec_logging")){var Z,G;c=!!((Z=W.loggingDirectives)==null?0:(G=Z.clientVeSpec)==null?0:G.uiType)}Z=I6y(W);if(!Z&&!c)return!1;_.O("mweb_component_visibility_logging")&&(y.veContainer||(y.veContainer={}),y.veContainer.trackingParams=Z);if(y.trackedParams&&y.trackedParams===Z)return!1;var D;if(_.O("enable_client_ve_spec_logging")&&((D=y.visualElement)==null?0:D.isClientVe())){var Y;D=(Y=y.visualElement)==
null?void 0:Y.getAsJspb();var u,t,b,r;if(_.jZ(D,2)===((u=W.loggingDirectives)==null?void 0:(t=u.clientVeSpec)==null?void 0:t.uiType)&&_.jZ(D,3,-1)===((b=W.loggingDirectives)==null?void 0:(r=b.clientVeSpec)==null?void 0:r.elementIndex))return!1}if(_.O("enable_client_ve_spec_logging")){var F,K;!y.visualElement&&((F=W.loggingDirectives)==null?0:(K=F.clientVeSpec)==null?0:K.uiType)&&(u=W.loggingDirectives.clientVeSpec,W=u.uiType,Y=u.elementIndex,u=u.clientYoutubeData,y.visualElement=_.ch(_.Zz(),{veType:W,
elementIndex:Y,clientYouTubeData:u}))}return!0};
I6y=function(y){if(y==null?0:y.rendererContext){var W=_.g(y.rendererContext,_.JrD);if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams}return(y==null?0:y.loggingDirectives)?y.loggingDirectives.trackingParams:y==null?void 0:y.trackingParams};
yE=function(y){var W;return(W=y.polymerController)!=null?W:y};
ArO=function(y){_.Wh();if(_.PI(GP().JSC$10308_elementShouldLogGesture).bind(GP())(y,4)){VkD(y);var W=Cba(y);Quw.set(y,W)}};
VkD=function(y){Quw.has(y)&&(Quw.get(y).cancel("untrack hover element"),Quw.delete(y))};
Cba=function(y){var W,c=[],Z=!1,G=new _.fD(function(D,Y){fN(y,"mouseenter",_.PI(function(){var u,t,b;return _.m(function(r){if(r.nextAddress==1)return W=(0,_.Tj)(),u=hbw(y),c.push(u),t=Bva(y,function(){Z=!0;Y(Error("Wg"))}),_.n(r,u,2);
if(r.nextAddress!=3)return t&&o9(t),b=H9I(y),c.push(b),_.n(r,b,3);D();_.F2(r)})}))});
G.then(function(){var D=(0,_.Tj)()-W;D=Math.round(D);if(!(500>D||6E5<=D)){var Y=y.getScreenLayer?y.getScreenLayer():void 0;Y=_.NR(Y)||"";var u=LRF(_.Wh(),y);_.TG(Y,y.visualElement?y.visualElement:_.Dz(u),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:D}})}ArO(y)},function(){zP&&(zP(),zP=null);
Z&&(VkD(y),ArO(y))});
return G};
hbw=function(y){var W;return(new _.fD(function(c,Z){zP=function(){Z(Error("Xg"))};
W=_.KX.debounce(_.PI(function(){o9(G);c()}),1,100);
var G=_.Y0(y,"mousemove",W)})).thenCatch(function(){var c=_.KX.cancelDebouncedJobMap.get(W);
c&&_.KX.cancelJob(c)})};
H9I=function(y){var W;return(new _.fD(function(c,Z){zP=function(){Z(Error("Yg"))};
W=fN(y,"mouseleave",_.PI(function(){c()}))})).thenCatch(function(){o9(W)})};
Bva=function(y,W){return fN(y,"mouseleave",_.PI(W))};
ddE=function(y){vlg&&_.mI.cancel(vlg);vlg=_.mI.run(function(){_.Z2(y,"yt-visibility-refresh");vlg=0})};
SFH=function(y){y=Number(y);return"rgba("+[y>>16&255,y>>8&255,y&255,(y>>24&255)/255].join()+")"};
a6D=function(y){if(!y)return!1;if(_.g(y,_.Tvf))return!0;var W;if(y=(W=_.g(y,_.uN))==null?void 0:W.commands)for(W=_.z(y),y=W.next();!y.done;y=W.next())if(_.g(y.value,_.Tvf))return!0;return!1};
xdh=function(y){var W=!0;W=W===void 0?!0:W;if(!y.useSignals&&!y.experimentalPropertiesChanged||_.O("experimental_templating_behavior_nopatch_killswitch")){var c=y._propertiesChanged;y._propertiesChanged=function(Z,G,D){W?y.debounceRender():y.doRender();c&&c.call(y,Z,G,D)}}};
i9f=function(y,W){if(y.useSignals||y.experimentalPropertiesChanged)if(_.O("experimental_templating_behavior_nopatch_killswitch"))y.experimentalPropertiesChanged=function(){};
else return;var c=new Set,Z=[y].concat(_.No(y.behaviors));Z=_.z(Z);for(var G=Z.next();!G.done;G=Z.next()){G=G.value;for(var D in G.properties)c.has(D)||(y._addPropertyEffect(D,"function",W),c.add(D))}};
Mkt=function(){var y=Polymer.Element,W=y._prepareTemplate;y._prepareTemplate=function(){W.call(this);var c=this.prototype;if(c.experimentalTemplatingInUse&&c.experimentalTemplatingInUse()&&c.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.OP(Error("Zg"));else{c=this.template.content.childNodes;for(var Z=c.length-1;Z>=0;Z--){var G=c[Z];G.nodeName!=="STYLE"&&G.nodeName!=="LINK"&&G.nodeName!=="SCRIPT"&&G.nodeName!=="#comment"&&G.remove()}}}};
ebg=function(y){var W=!0;W=W===void 0?!0:W;Mkt();var c=y.ready;y.ready=function(){this._template=null;c.call(this)};
i9f(y,W?y.debounceRender:y.doRender)};
qF1=function(y,W,c){if(c===null||c===void 0)return c;var Z=Wyw(y.tagName.toLowerCase(),W,function(){throw Error("Qb");});
if(Z===null)return c;Z=wZI[Z];var G;if((G=Z.isUnwrappable)==null?0:G.call(Z,c)){if(Z.unwrap)return Z.unwrap(c);throw Error("bh");}return Z.filterString?Z.filterString(y.tagName,W,String(c)):c};
kng=function(y,W,c){var Z=W[W.length-1]!=="$",G=qF1(y,W,c);if(Z)if(typeof G==="function"&&W.startsWith("reactiveon")&&W===W.toLowerCase()){var D=_.ae;sNy(y,W.slice(8),function(Y){R2(D,function(){G(Y)})})}else y[W]=G;
else c=G==null?null:String(G),m4y(y,W.slice(0,-1),c)};
sH=function(y){jKH.length===0&&requestAnimationFrame(function(){setTimeout(function(){var W=jKH.slice();jKH.length=0;W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;try{c()}catch(Z){_.hG(Z)}}})});
jKH.push(y)};
yME=function(y){if(y){var W=y.component;if(W){var c;W==null||(c=W.events)==null||c.publish("DISCONNECTED");var Z;W==null||(Z=W.onDisconnected)==null||Z.call(W)}var G,D;(G=y.__spec)==null||(D=G.didUnmount)==null||D.call(G);for(W=0;W<y.childNodes.length;W++)yME(y.childNodes[W])}};
t3=function(y,W,c){var Z=W&&W.key,G=hl;G[0]=y;G[1]=Z;G[2]=void 0;for(var D in W)W.hasOwnProperty(D)&&(y=W[D],Z=Ba,Z.push(D),Z.push(y));W=hl;a:{if(D=hl[2])for(y=0;y<D.length;y+=2)if(D[y]==="nonce"){D=D[y+1];break a}D=""}D=R2D(W[0],W[1],D);y=NP(D);Z=W[2];if(!y.staticsApplied&&(y.staticsApplied=!0,Z&&Z.length))if((G=y._attrsArr)&&G.length){for(G=0;G<Z.length;G+=2)us[Z[G]]=G+1;G=y._attrsArr||(y._attrsArr=YQw(0));for(var Y=0,u=0;u<G.length;u+=2){var t=G[u],b=G[u+1],r=us[t];r?Z[r]===b&&delete us[t]:(G[Y]=
t,G[Y+1]=b,Y+=2)}l7(G,Y);for(var F in us)bvw(D,F,Z[us[F]],T5),delete us[F]}else for(F=0;F<Z.length;F+=2)bvw(D,Z[F],Z[F+1],T5);Jsw(D,y,T5);l7(W,0);c&&c(I2);lmI()};
WNI=function(y){var W=y.toString().toLowerCase();return function(c,Z){t3(W,c,Z)}};
_.nN=function(y,W,c){c===void 0?delete y[W.name]:y[W.name]=c};
_.Xx=function(y){var W={androidIncludeFontPadding:!1},c=0,Z=[],G=[],D=[];if(y.simpleText)return W.content=y.simpleText,W;if(y.runs===void 0)return W.content="",W;y=_.z(y.runs);for(var Y=y.next();!Y.done;Y=y.next()){Y=Y.value;var u=Y.text,t=void 0,b=(t=u)==null?void 0:t.length;if(u&&b){Z.push(u);if(Y.bold||Y.italics||Y.strikethrough||Y.underline||Y.textColor!=null&&Y.textColor!==0||Y.deemphasize){u=G;t=u.push;var r={startIndex:c,length:b};Y.bold&&(r.weightLabel="FONT_WEIGHT_MEDIUM");Y.italics&&(r.italic=
!0);Y.strikethrough&&(r.strikethrough="LINE_STYLE_SINGLE");Y.underline&&(r.underline="LINE_STYLE_SINGLE");Y.textColor!=null&&Y.textColor!==0?document.documentElement.hasAttribute("dark")?r.fontColor=Y.darkModeTextColor||Y.textColor:r.fontColor=Y.textColor:Y.deemphasize&&(document.documentElement.hasAttribute("dark")?r.fontColor=parseInt("ff"+cMH("#aaa").substring(1),16):r.fontColor=parseInt("ff"+cMH("#606060").substring(1),16));t.call(u,r)}Y.navigationEndpoint&&(u=D,t=u.push,r={startIndex:c,length:b,
onTap:{innertubeCommand:Y.navigationEndpoint}},Y.loggingDirectives&&_.nN(r,Z1w,Y.loggingDirectives),t.call(u,r));c+=b}}W.content=Z.join("");W.styleRuns=G.length?G:void 0;W.commandRuns=D.length?D:void 0;return W};
fF1=function(y){if(y==null||!y.runs)return!0;y=_.z(y.runs);for(var W=y.next();!W.done;W=y.next())if(W=W.value,W.bracket||W.errorUnderline||W.deemphasize||_.g(W,bs)||_.g(W,GvI))return!1;return!0};
ova=function(y,W){return function(c){var Z=W.unit;if(Z!==c)throw Error("eh`"+y+"`"+Z+"`"+c);return W}};
rZ=function(y){if(!((y==null?0:y.value)&&(y==null?0:y.unit)))return"";switch(y.unit){case "DIMENSION_UNIT_FRACTION":var W="%";break;default:W="px"}y=y.value;W==="%"&&(y*=100);return""+y+W};
DeO=function(y){try{return y()}catch(W){_.Rs(W)}};
_.UH=function(y){var W=_.g(y,_.Fx);if(W)return W;if((W=_.g(y,zSF))&&W.commands)return Yh1(W.commands);if((W=_.g(y,meI))&&W.commands)return Yh1(W.commands);if((y=_.g(y,sKH))&&y.identifier&&y.command&&(u$g||(u$g=[]),!u$g.includes(y.identifier)))return u$g.push(y.identifier),_.g(y.command,_.Fx)};
Yh1=function(y){if(y.length!==0){var W=[];y=_.z(y);for(var c=y.next();!c.done;c=y.next())(c=_.UH(c.value))&&W.push(c);return{commandExecutorCommand:{commands:W}}}};
_.KN=function(y){var W=y.defaultTarget,c=y.elementConfig,Z=y.elementsCommand,G=y.skipOnClick,D=y.forceNewState,Y=y.additionalCommandArgs,u=y.innertubeCommand||_.UH(Z);if(u){y={};var t=tOy(u);Z=t.navigatingCommand;t=t.href;Z&&t?(y.href$=t,nvF(y,Z,t,W),_.O("web_atagconfig_pointerdown")&&X5h(y,Z),D&&(y["force-new-state$"]=!0)):(y.role$="button",y.href$="javascript:void(0);");_.g(u,b1O)&&(y["aria-haspopup$"]=!0);G||(y.onclick=function(b){if(rMH(b)){var r=Object.assign({},{form:{element:b.target,event:b}},
Y);b.preventDefault();_.$0(u,r)}});
return Object.assign({},c,y)}};
FNf=function(y){if(y.length){if(y.length===1)return y[0];var W={};_.nN(W,_.uN,{commands:y});return W}};
Uew=function(y){return y&&y.href$!=="javascript:void(0);"};
tOy=function(y){var W,c=((W=_.g(y,_.uN))==null?void 0:W.commands)||[y];y=_.z(c);for(W=y.next();!W.done;W=y.next()){W=W.value;var Z=void 0,G=void 0;c=(G=_.g((Z=W)==null?void 0:Z.commandMetadata,_.kT))==null?void 0:G.url;_.O("web_remove_web_navigation_endpoint_data")||(Z=void 0,c=c||((Z=_.g(W,$eI))==null?void 0:Z.url));if(c&&c!=="/service_ajax"){if(Z=pf(c,KNa))return y=_.N9(Z),{navigatingCommand:W,href:y};_.Rs(new _.ul("AttributedString URL could not be sanitized",c))}}return{}};
rMH=function(y){return y.button!==void 0?y.button===0&&!(y.shiftKey||y.altKey||y.metaKey||y.ctrlKey):!(y.shiftKey||y.altKey||y.metaKey||y.ctrlKey)};
nvF=function(y,W,c,Z){c=!Sy(c);var G,D,Y;if((G=_.g(W,_.oW))!=null&&G.nofollow||(D=_.g(W,_.Sb))!=null&&D.nofollow||(Y=_.g(W,_.CD))!=null&&Y.nofollow||c)y.rel$="nofollow";var u;W=((u=_.g(W,_.CD))==null?void 0:u.target)==="TARGET_NEW_WINDOW"?"_blank":Z===void 0?"":Z;y.target$=W};
X5h=function(y,W){W.clickTrackingParams&&(y.params={itct:W.clickTrackingParams});y.onpointerdown=function(c){O1H(c)};
y._data=W};
gvD=function(y){(y.loggingUrls||[]).forEach(function(W){VJ(W.baseUrl,W.attributionSrcMode)})};
RSI=function(y){y.currentTarget._data&&gvD(y.currentTarget._data)};
O1H=function(y){var W=y.currentTarget;y=DeO(function(){return W.href});
var c=W.params;y&&_.wz(y,c||{},8,!0)};
lFw=function(y,W){if(W=_.g(W,_.CD))(W==null?void 0:W.target)==="TARGET_NEW_WINDOW"&&(y.target="_blank"),W.nofollow&&(y.rel="nofollow")};
EvI=function(y){y=_.g(y==null?void 0:y.commandMetadata,_.kT);return(y==null?0:y.url)?y.url:null};
_.OH=function(y,W){(y=_.UH(y))&&_.$0(y,W)};
_.$0=function(y,W){$2H(function(c){W?c.resolveCommand(y,W):c.resolveCommand(y)})};
P3H=function(y,W){var c=["yt-core-attributed-string__link"];W!=null&&W.noLinkColor||((W==null?0:W.isOverlay)?c.push("yt-core-attributed-string__link--overlay-call-to-action-color"):c.push("yt-core-attributed-string__link--call-to-action-color"),(W==null?0:W.linkInheritColor)&&c.push("yt-core-attributed-string--link-inherit-color"));c={className:c.join(" "),tabindex$:"0"};var Z=y.onTap||y.onLongPress;if(!Z)return c;var G=Nma(y);G&&(c["aria-label$"]=G);W=_.KN({elementsCommand:Z,elementConfig:c,skipOnClick:!(W==
null||!W.skipOnClick),forceNewState:!0});y.onLongPress&&(Z=new IFD(function(){var D=_.UH(y.onLongPress);D&&_.U().resolve(_.i1).resolveCommand(D)}),W&&p5D(Z,W));
return W||c};
Nma=function(y){var W,c;return(W=y.onTapOptions)==null?void 0:(c=W.accessibilityInfo)==null?void 0:c.accessibilityLabel};
JMF=function(y){var W=y;y<=16777215&&(W+=parseInt("ff000000",16));return _.KZ(W)};
VOg=function(y){var W=y.isDarkTheme;var c=y.extension;y=y.runColor;var Z=void 0;if(c=c==null?void 0:c.colorMap){W=W?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";c=_.z(c);for(var G=c.next();!G.done;G=c.next())if(G=G.value,W===G.key){Z=G.value;break}}Z==null&&y&&(Z=y);if(Z)return JMF(Z)};
gZ=function(y){var W=y.config;var c=y.image;var Z=y.imageConfig;var G=y.imageWrapperConfig;var D=y.run;var Y=y.tag;var u=y.textLength;var t=y.startIndex===void 0?0:y.startIndex;y=y.length;t===void 0&&(t=0);D={run:D,startIndex:t,endIndex:y!==void 0?t+y:u,tag:Y};c&&(D.image=c);Z&&(D.imageConfig=Z);G&&(D.imageWrapperConfig=G);W&&(D.config=W);return D};
QKf=function(y,W){var c=[];c.push("yt-core-attributed-string");(W==null?0:W.className)&&c.push(W==null?void 0:W.className);(W==null?0:W.ellipsisTruncate)?c.push("yt-core-attributed-string--ellipsis-truncate"):(W==null?0:W.noWrap)?c.push("yt-core-attributed-string--white-space-no-wrap"):(W==null?0:W.noPreWrap)||c.push("yt-core-attributed-string--white-space-pre-wrap");(W==null?0:W.linkInheritColor)&&c.push("yt-core-attributed-string--link-inherit-color");y.alignment&&c.push(C3g(y.alignment));y.lineBreakMode&&
c.push("yt-core-attributed-string--word-wrapping");return c.join(" ")};
AMf=function(y){if(y.weight)return y.weight;switch(y.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}};
hSH=function(y){switch(y){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"}};
C3g=function(y){switch(y){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"}};
H1I=function(y,W,c){var Z=W;y.content&&c&&(c=y.content.indexOf("\n"),c!==-1&&(Z=Math.min(W,c)));if(!y.content||y.content.length<=Z)W=y;else if(y.attachmentRuns||y.commandRuns||y.decorationRuns||y.styleRuns||y.paragraphStyleRuns){W=R9(y.content,Z);c=Z;var G=y.attachmentRuns;if(G){var D=[];G=_.z(G);for(var Y=G.next();!Y.done;Y=G.next())Y=Object.assign({},Y.value),Y.startIndex===void 0||Y.startIndex>=c||(Y.length||(Y.length=0),Y.length+Y.startIndex>c&&(Y.length=c-Y.startIndex),D.push(Y));c=D}else c=
void 0;D=Bmw(Z,y.commandRuns);G=Z;var u=y.decorationRuns;if(u){Y=[];u=_.z(u);for(var t=u.next();!t.done;t=u.next()){t=t.value;var b=_.g(t.textDecorator,ls);if(b&&b.startIndex!==void 0&&!(b.startIndex>=G)){t=Object.assign({},t,{textDecorator:{highlightTextDecorator:Object.assign({},b)}});b=_.g(t.textDecorator,ls);if(!b.length||b.length+b.startIndex>G)b.length=G-b.startIndex;Y.push(t)}}G=Y}else G=void 0;Y=Bmw(Z,y.styleRuns);if(u=y.paragraphStyleRuns)for(y=[],u=_.z(u),t=u.next();!t.done;t=u.next()){var r=
t.value;t=Object.assign({},r);if(!(t.startIndex===void 0||t.startIndex>=Z)){if(!t.length||t.length+t.startIndex>Z)t.length=Z-t.startIndex;b=[];var F=void 0,K=void 0;if((F=r)==null?0:(K=F.listGroup)==null?0:K.listItems)for(r=_.z(r.listGroup.listItems),F=r.next();!F.done;F=r.next())if(F=Object.assign({},F.value),!(F.startIndex===void 0||F.startIndex>=Z)){if(!F.length||F.length+F.startIndex>Z)F.length=Z-F.startIndex;b.push(F)}b.length>0&&(t.listGroup||(t.listGroup={}),t.listGroup=Object.assign({},t.listGroup,
{listItems:b}));y.push(t)}}else y=void 0;W={content:W,attachmentRuns:c,commandRuns:D,decorationRuns:G,styleRuns:Y,paragraphStyleRuns:y}}else W=Object.assign({},y,{content:R9(y.content,Z)});return W};
Bmw=function(y,W){if(W){var c=[];W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next())if(Z=Object.assign({},Z.value),!(Z.startIndex===void 0||Z.startIndex>=y)){if(!Z.length||Z.length+Z.startIndex>y)Z.length=y-Z.startIndex;c.push(Z)}return c}};
R9=function(y,W){var c=W,Z;if(Z=c>0)Z=y.charCodeAt(c-1),Z=Z>=55296&&Z<=56319;Z&&(c=y.charCodeAt(c),Z=c>=56320&&c<=57343);Z&&--W;return y.substring(0,W)};
ShI=function(y,W,c){c=c===void 0?LNI:c;if(y){var Z=_.U().resolve(xg);Z||_.O("mweb_no_observer_killswitch")?PbI(y,{data:W,observer:Z,visibilityCallback:c,hideOption:vvH,showOption:def,layer:y.layer}):_.Rs(new _.ul("Warning: monitorVisibility called with null observer",y.tagName,W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams))}else _.Rs(new _.ul("Warning: monitorVisibility called with null element",W==null?void 0:W.loggingDirectives,W==null?void 0:W.trackingParams,W==null?void 0:
W.rendererContext))};
w5E=function(y,W){var c=[],Z=y.content.length,G,D=(G=_.U().resolve(_.xN(_.EH)))==null?void 0:G();if(y.paragraphStyleRuns){G=_.z(y.paragraphStyleRuns);for(var Y=G.next();!Y.done;Y=G.next()){var u=c.push,t=u.apply;var b=void 0;Y=Y.value;if((b=Y.listGroup)!=null&&b.listItems){b=[];b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var r="ul";break b;default:r="span"}b.push(gZ({run:Y,textLength:Z,tag:r,config:{className:"yt-core-attributed-string__list-group"},startIndex:Y.startIndex,length:Y.length}));
r=_.z(Y.listGroup.listItems);for(var F=r.next();!F.done;F=r.next()){F=F.value;b:switch(Y.listGroup.listType){case "LIST_TYPE_BULLET":var K="li";break b;default:K="span"}b.push(gZ({run:Y,textLength:Z,tag:K,startIndex:F.startIndex,length:F.length}))}Y=b}else Y=[];t.call(u,c,_.No(Y))}}if(y.styleRuns&&(W==null||!W.noStyleRuns))for(G=_.z(y.styleRuns),u=G.next();!u.done;u=G.next()){u=u.value;t=VOg({extension:_.g(u.styleRunExtensions,Tmg),isDarkTheme:D===void 0?!1:D,runColor:u.fontColor});b=[];t&&b.push("yt-core-attributed-string--link-inherit-color");
u.italic&&b.push("yt-core-attributed-string--italicized");u.underline&&u.strikethrough?b.push("yt-core-attributed-string--underline-strikethrough",hSH(u.underline)):u.underline?b.push("yt-core-attributed-string--underlined",hSH(u.underline)):u.strikethrough&&b.push("yt-core-attributed-string--strikethrough",hSH(u.strikethrough));if(u.baselineOffset){a:switch(u.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"}b.push(Y)}Y=b.join(" ");b=u;r={};if(b.weight||b.weightLabel)r.fontWeight=AMf(b).toString();t&&(r.color=t);c.push(gZ({run:u,textLength:Z,tag:"span",config:{className:Y,style:r},startIndex:u.startIndex,length:u.length}))}if(y.decorationRuns)for(G=_.z(y.decorationRuns),u=G.next();!u.done;u=G.next())u=u.value,t={},u.textDecorator&&(r=u.textDecorator,Y=D===void 0?!1:D,F=[],b=
_.g(r,ls),r=_.g(r,aFO),b?(r=F,F=r.concat,K=[],(Y=VOg({extension:_.g(b.highlightTextDecoratorExtensions,xeg),isDarkTheme:Y,runColor:b.backgroundColor}))&&K.push("background-color: "+Y+";"),b.backgroundCornerRadius!==void 0&&K.push("border-radius: "+b.backgroundCornerRadius+"px;"),b.leftPadding!==void 0&&K.push("padding-left: "+b.leftPadding+"px;"),b.rightPadding!==void 0&&K.push("padding-right: "+b.rightPadding+"px;"),b.topPadding!==void 0&&K.push("padding-top: "+b.topPadding+"px;"),b.bottomPadding!==
void 0&&K.push("padding-bottom: "+b.bottomPadding+"px;"),F=F.call(r,K)):r&&(b=F,F=b.concat,Y=Y?"#2ba640":"#107516",Y=r.color?JMF(r.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);"],F=F.call(b,Y)),Y=F.join(" "),t.style$=Y,Y=u.textDecorator,b=[],r=_.g(Y,aFO),_.g(Y,ls)?b.push("yt-core-attributed-string--highlight-text-decorator"):
r&&b.push("yt-core-attributed-string--bracket-text-decorator"),Y=b.join(" "),t.className=Y,t.dir="auto"),Y=_.g(u.textDecorator,ls),b=_.g(u.textDecorator,aFO),r=_.g(u.textDecorator,ls),F=_.g(u.textDecorator,aFO),c.push(gZ({run:u,textLength:Z,tag:"span",config:t,startIndex:(Y==null?void 0:Y.startIndex)||(b==null?void 0:b.startIndex)||0,length:(r==null?void 0:r.length)||(F==null?void 0:F.length)||0}));if(y.commandRuns&&(W==null||!W.noEndpoints))for(D=_.z(y.commandRuns),G=D.next();!G.done;G=D.next())G=
G.value,u=P3H(G,W),c.push(gZ({run:G,textLength:Z,tag:"a",config:u,startIndex:G.startIndex,length:G.length}));if(y.attachmentRuns)for(y=_.z(y.attachmentRuns),D=y.next();!D.done;D=y.next()){D=D.value;t=u=void 0;G={className:"yt-core-attributed-string--inline-block-mod"};if((t=D.element)==null?0:t.properties){t=(u=D.element)==null?void 0:u.properties;u=[];t=_.g(t,i1H);if(t==null?0:t.margin)t=t.margin,t.left&&u.push("margin-left: "+rZ(t.left)+";"),t.right&&u.push("margin-right: "+rZ(t.right)+";"),t.top&&
u.push("margin-top: "+rZ(t.top)+";"),t.bottom&&u.push("margin-bottom: "+rZ(t.bottom)+";");u=u.length!==0?u.join(" "):void 0;G.style$=u}Y=void 0;u={alt:"",preserveHeight:!0,preserveWidth:!0};t=["yt-core-attributed-string__image-element"];if(D.alignment){a:switch(D.alignment){case "ALIGNMENT_BASELINE":b="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":b="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:b=
"yt-core-attributed-string__image-element--image-alignment-bottom"}t.push(b)}if((Y=D.element)==null?0:Y.properties)Y=[],b=_.g(D.element.properties,i1H),(b==null?0:b.height)&&Y.push("height: "+rZ(b.height)+";"),(b==null?0:b.width)&&Y.push("width: "+rZ(b.width)+";"),Y=Y.length!==0?Y.join(" "):void 0,u.style$=Y,b=void 0,Y=((b=_.g(D.element.properties,MO1))==null?void 0:b.label)||"",u.alt=Y;u.className=t.join(" ");t=void 0;r=b=void 0;Y=((r=D.element)==null?0:r.type)?(b=_.g(D.element.type,eSw))==null?
void 0:b.image:void 0;c.push(gZ({run:D,textLength:Z,tag:"img",image:Y,imageConfig:u,imageWrapperConfig:G,startIndex:D.startIndex,length:(t=D.length)!=null?t:0}))}if(W==null?0:W.headerRuns)for(W=_.z(W.headerRuns),y=W.next();!y.done;y=W.next())if(y=y.value,y.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(y.headerMapping)){a:{switch(y.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":D=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":D="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":D="yt-core-attributed-string--heading-3";break a}D=void 0}c.push(gZ({run:y,textLength:Z,tag:"span",config:D?{className:D}:void 0,startIndex:y.startIndex,length:y.length}))}return c};
_.Ni=function(y){return(y==null?void 0:y.content)!==void 0};
qhE=function(y){return _.Ni(y)?y:_.Xx(y)};
kvt=function(y){return y.image!==void 0&&y.imageConfig!==void 0};
jcH=function(y,W){if(W==null?0:W.userInput)for(y=_.z(y),W=y.next();!W.done;W=y.next())if(W=W.value,W.tag!=="a"&&W.tag!=="li"){var c=void 0;(c=W).config||(c.config={});W.config.dir=W.tag==="ul"?_.U().resolve(_.I9):"auto"}};
yXt=function(y){return function(W){var c=y.run;(c.onTap!==void 0||c.onLongPress!==void 0)&&_.g(c,Z1w)&&ShI(W,{loggingDirectives:_.g(c,Z1w)})}};
Wbt=function(y){return function(W){for(var c in y)(T5[c]||T5[EN["default"]])(W,c,y[c])}};
fty=function(y,W){cXI(W);var c={data:null,start:0,end:y.length,parts:[]};W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next())Z=Z.value,ZMw(c,Z.startIndex,Z.endIndex,Z);G1E(y,c);return c};
ZMw=function(y,W,c,Z){for(var G=_.z(y.parts),D=G.next();!D.done;D=G.next()){D=D.value;if(typeof D==="string")throw Error("gh");if(D.start<=W&&c<=D.end){ZMw(D,W,c,Z);return}}y.parts.push({data:Z,parts:[],start:W,end:c})};
G1E=function(y,W){for(var c=W.parts.length;c>=0;c--){var Z=W.parts[c],G=W.parts[c-1],D=c===W.parts.length?W.end:Z.start;G=c===0?W.start:G.end;D!==G&&W.parts.splice(c,0,y.slice(G,D));Z&&G1E(y,Z)}};
cXI=function(y){y.sort(function(W,c){if(W.startIndex<c.startIndex)return-1;if(c.startIndex<W.startIndex)return 1;W=W.endIndex-W.startIndex;c=c.endIndex-c.startIndex;return W>c?-1:c>W?1:0})};
_.ozt=function(y){var W=y.thumbnails;if(W){y={sources:[]};W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z={};Z.url=c.url;Z.width=c.width;Z.height=c.height;y.sources.push(Z)}return y}};
DAH=function(y,W,c,Z){if(!W)return y.length>=1?y[y.length-1]:null;if(Z)for(var G=_.z(y),D=G.next();!D.done;D=G.next()){D=D.value;var Y=void 0,u=(Y=D.url)==null?void 0:Y.indexOf(Z);if(u!==void 0&&u>=0)return D}Z=_.z(y);for(G=Z.next();!G.done;G=Z.next())if(G=G.value,G.width&&G.height&&(c&&G.width>=W||!c&&G.height>=W))return G;for(W=y.length-1;W>=0;W--)if(c&&y[W].width||!c&&y[W].height)return y[W];return y[0]};
_.zQE=function(y){var W;return(y=(W=y.sources)==null?void 0:W[0])?y.width/y.height:0};
YaI=function(y){if(y.sources){y=_.z(y.sources);for(var W=y.next();!W.done;W=y.next()){W=W.value;var c=void 0;if((c=W.clientResource)==null?0:c.imageName)return W}}};
mAE=function(y){var W;if((W=y.clientResource)!=null&&W.imageColor)return _.KZ(y.clientResource.imageColor)};
_.udy=function(y,W,c,Z,G,D,Y){if(!W||W.length===0||W[0].clientResource)return null;if(c&&W[0].url)return W[0].url;Z===void 0&&(Z=!0);if(Z){var u;y=scw*(G||(y==null?void 0:(u=y.getBoundingClientRect())==null?void 0:u.width)||0)}else{var t;y=scw*(D||(y==null?void 0:(t=y.getBoundingClientRect())==null?void 0:t.height)||0)}W=DAH(W,y,Z,Y);return(W==null?0:W.url)?W.url:(W==null?0:W.imageData)?W.imageData:null};
tHh=function(y,W,c){c=c?[c]:[];y.opacity&&c.push("opacity: "+y.opacity+";");W&&y.placeholderColor?(y=_.KZ(y.placeholderColor),c.push("background-color: "+y+";")):c.push("background-color: transparent;");return c.join(" ")};
nzO=function(y,W,c,Z,G){var D=["yt-core-image"];W&&D.push(W);c||D.push("yt-core-image--fill-parent-height");Z||D.push("yt-core-image--fill-parent-width");switch(y.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":D.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":D.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":D.push("yt-core-image--content-mode-center");break;default:D.push("yt-core-image--content-mode-scale-to-fill")}y.flipForRtlLayout&&
D.push("yt-core-image--flip-rtl");switch(G){case "TOP_START":var Y;D.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 D.join(" ")};
bMg=function(y){var W;if(y==null?0:(W=y.clientResource)==null?0:W.imageName){var c;y=(c=y.clientResource)==null?void 0:c.imageName;a:{switch(y){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":c="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":c="yt-logos-ext:yt-logo-updated";break a}c=void 0}return c||X9I.get(y)||y}};
pN=function(y){return _.O("mweb_wiz_skip_render")?rXI(y):FbO(y)};
rXI=function(y){return function(W){var c=R2D("wink-root");Al();lmI();x8w(c,_.X(y,W))}};
FbO=function(y){var W=W===void 0?!1:W;return function(c){if(!W||!_.O("mweb_skip_keto_to_c3_if_no_data")||c.data!==void 0){var Z=xk(!1);try{var G=c.children;_.O("mweb_render_outside_patch_killswitch")||I2?G?Su(_.X(y,c,G)):Su(_.X(y,c)):_.Rs(new _.ul("ketoToC3 called outside of a patch",{tagName:y.TAG_NAME}))}finally{xk(Z)}}}};
UAh=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
KbD=function(y,W){y.onViewportEntered=W;$Aa.observe(y)};
OMw=function(){var y={rootMargin:"10%",threshold:.01};_.O("mweb_enable_set_io_root_to_null_safari")?y.root=null:_.O("mweb_enable_set_io_root_to_body_safari")&&(y.root=document.body);return new IntersectionObserver(function(W,c){W.filter(function(Z){return Z.intersectionRect.height>0}).forEach(function(Z){Z=Z.target;
if(!_.O("mweb_enable_only_update_image_when_connected")||Z.isConnected!==!1){var G;(G=Z.onViewportEntered)==null||G.call(Z);c.unobserve(Z)}})},y)};
gzt=function(y,W,c,Z,G){function D(){if(Z){var u=Z.loadedClass,t=Z.notifyOnUnloaded;u&&_.Ph(y,u);t&&y.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Y(){var u=c(W,y);u&&y.getAttribute("src")!==u&&(_.O("mweb_enable_only_update_image_when_connected")&&y.isConnected===!1||u===y.src||(y.src=u),D())}
G=G===void 0?!0:G;y.removeAttribute("src");D();W&&(G?KbD(y,Y):Y())};
RQI=function(y,W){for(var c in W)c==="className"?y.className=W[c]:(T5[c]||T5[EN.default])(y,c,W[c])};
ltO=function(y,W,c,Z){pN(_.J3)({contentMode:W.contentMode,loadedClass:W.loadedClass,isPreloaded:W.isPreloaded,notifyOnLoaded:W.notifyOnLoaded,notifyOnUnloaded:W.notifyOnUnloaded,preferredThumbnail:W.preferredThumbnail,preserveHeight:W.preserveHeight,preserveWidth:W.preserveWidth,objectPosition:W.objectPosition,targetWidth:W.targetWidth,targetHeight:W.targetHeight,shouldShowPlaceholder:W.shouldShowPlaceholder,useWidth:W.useWidth,alt:W.alt,className:W.className,onerror:W.onerror,onload:W.onload,style$:W.style$,
color:W.color,width:W.width,height:W.height,"aria-hidden$":W["aria-hidden$"],draggable:W.draggable,"data-disabled$":W["data-disabled$"],data:y,callback:c,renderLazy:Z===void 0?!0:Z,hideOn404:!1})};
NhH=function(y,W,c){c=c===void 0?!1:c;var Z=y.sources!==void 0?y:_.ozt(y);if(Z){var G=W.onload;W.onload=function(t){var b=t.target;c&&b.naturalWidth===120||_.VE(b,"yt-core-image--loaded");W.notifyOnLoaded&&b.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));G==null||G(t)};
W.targetWidth&&W.preserveWidth&&(W.width=W.targetWidth);W.targetHeight&&W.preserveHeight&&(W.height=W.targetHeight);var D=YaI(Z),Y=D&&bMg(D);if(Y)return(y=mAE(D))&&(W.color=y),{type:"icon",iconName:Y,config:Object.assign({},W,W.alt?{}:{"aria-hidden$":"true"},{"aria-label$":W.alt,role:"img"})};if(y.sources===void 0){W.alt=y.accessibility&&y.accessibility.accessibilityData&&y.accessibility.accessibilityData.label||W.alt;W.style$=tHh(y,W.shouldShowPlaceholder,W.style$);var u;W.isPreloaded=!((u=_.g(y,
EzH))==null||!u.isPreloaded)}W.contentMode&&!Z.contentMode&&(Z.contentMode=W.contentMode);W.className=nzO(Z,W.className,W.preserveHeight,W.preserveWidth,W.objectPosition);W.loadedClass="yt-core-image--loaded";return{type:"image",image:Z,config:W}}};
_.It1=function(){var y=_.Cf.apply(0,arguments);return _.LD(function(W){var c=y.map(function(Z){return Z(W)});
return function(){return void c.forEach(function(Z){return void(Z==null?void 0:Z())})}})};
p9f=function(y,W){var c=W==null?void 0:W.initial;return _.Yk(function(){_.gV(!0);return c=y(c)},{equals:W==null?void 0:W.isEqual},"rSlKsc")};
PSF=function(y,W){if(y===W)return!0;if(y===void 0||W===void 0)return!1;var c,Z,G,D,Y,u,t,b;return y.content===W.content&&((c=y.styleRuns)==null?void 0:c.length)===((Z=W.styleRuns)==null?void 0:Z.length)&&((G=y.commandRuns)==null?void 0:G.length)===((D=W.commandRuns)==null?void 0:D.length)&&((Y=y.attachmentRuns)==null?void 0:Y.length)===((u=W.attachmentRuns)==null?void 0:u.length)&&((t=y.decorationRuns)==null?void 0:t.length)===((b=W.decorationRuns)==null?void 0:b.length)};
CSw=function(y,W){if(y){var c=qhE(y);if(c!=null&&c.content)if(_.O("attr_string_reactive"))pN(JXE)({text:y,config:W});else{var Z=!(W==null||!W.ariaLabel)||!(c.commandRuns&&c.commandRuns.length!==0||c.paragraphStyleRuns&&c.paragraphStyleRuns.length!==0);y=Z?W==null?void 0:W.ariaLabel:null;Z=Z?"text":null;t3("span",{className:QKf(c,W),dir$:(W==null?0:W.userInput)?"auto":void 0,"aria-label$":y,role$:Z},function(){if(c.styleRuns||c.commandRuns||c.attachmentRuns||c.decorationRuns){var G=w5E(c,W);jcH(G,
W);G=fty(c.content,G);G=_.z(G.parts);for(var D=G.next();!D.done;D=G.next())VHf(D.value)}else dV(c.content)})}}};
VHf=function(y){typeof y==="string"?dV(y):kvt(y.data)?t3("span",y.data.imageWrapperConfig,function(){ltO(y.data.image,y.data.imageConfig)}):t3(y.data.tag,y.data.config,function(W){yXt(y.data)(W);
W=_.z(y.parts);for(var c=W.next();!c.done;c=W.next())VHf(c.value)})};
AXf=function(y){return y.parts.map(QcO)};
QcO=function(y){if(typeof y==="string")return y;y=kvt(y.data)?_.X("span",{el:_.It1(Wbt(y.data.imageWrapperConfig))},_.X(_.J3,Object.assign({},{data:y.data.image},y.data.imageConfig))):_.X(y.data.tag,{el:_.It1(yXt(y.data),Wbt(y.data.config))},y.parts.map(QcO));return WI(y)};
hQf=function(y,W){return y===W?!0:y===void 0||W===void 0?!1:y.noStyleRuns===W.noStyleRuns&&y.noLinkColor===W.noLinkColor&&y.noEndpoints===W.noEndpoints&&y.headerRuns===W.headerRuns&&y.isOverlay===W.isOverlay&&y.linkInheritColor===W.linkInheritColor&&y.userInput===W.userInput};
Bhh=function(y){return function(){var W,c,Z,G,D,Y,u,t,b,r,F,K,l,N;return{ariaLabel:(W=y.ariaLabel)==null?void 0:W.call(y),className:(c=y.className)==null?void 0:c.call(y),ellipsisTruncate:(Z=y.ellipsisTruncate)==null?void 0:Z.call(y),isOverlay:(G=y.isOverlay)==null?void 0:G.call(y),linkInheritColor:(D=y.linkInheritColor)==null?void 0:D.call(y),noEndpoints:(Y=y.noEndpoints)==null?void 0:Y.call(y),noStyleRuns:(u=y.noStyleRuns)==null?void 0:u.call(y),noLinkColor:(t=y.noLinkColor)==null?void 0:t.call(y),
noPreWrap:(b=y.noPreWrap)==null?void 0:b.call(y),noWrap:(r=y.noWrap)==null?void 0:r.call(y),skipOnClick:(F=y.skipOnClick)==null?void 0:F.call(y),stopPropagation:(K=y.stopPropagation)==null?void 0:K.call(y),userInput:(l=y.userInput)==null?void 0:l.call(y),headerRuns:(N=y.headerRuns)==null?void 0:N.call(y)}}};
HMa=function(y){return y.value===""||y.value==="true"?!0:y.value==="false"?!1:isNaN(Number(y.value))?y.value:Number(y.value)};
CN=function(y,W){y=new LbD(y,W);_.OP(y);throw y;};
vzf=function(y,W,c){var Z=iSH(y);y._numRenders=0;try{var G=u6E(function(){return _.X(W,Object.assign({},c))})}catch(Y){var D=function(u){u.args||(u.args=[]);
u.args.push("Error in web component wrapper");u.args.push(y.tagName.toLowerCase());return u};
_.gC(Y instanceof Error?D(Y):new LbD("Wiz rendering error",y.tagName.toLowerCase()));throw Y;}finally{iSH(Z)}return G};
_.A3=function(y,W,c){function Z(b){var r={};b=_.z(b);for(var F=b.next();!F.done;F=b.next()){F=F.value;var K=void 0,l=void 0,N=void 0,P=_.uM((N=(l=(K=F).getAttribute)==null?void 0:l.call(K,"slot"))!=null?N:"children");if(K=r[P])K.push(F);else if(P in D||P==="children")r[P]=[F]}if(dAh)for(b=_.z(Object.keys(r)),P=b.next(),F={};!P.done;F={content$jscomp$55:void 0},P=b.next())P=P.value,P!=="children"&&(F.content$jscomp$55=r[P],r[P]=function(V){return function(){return V.content$jscomp$55}}(F));
return r}
c=c===void 0?{}:c;y.componentType!==nL||CN("Components must be marked reactive to be used from web component wrapper.",W);Sj.has(W)&&CN("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",W);var G,D=(G=c.props)!=null?G:{};Ts.add(W);var Y=Sat();c=function(){var b=Y.apply(this,arguments)||this;b.rawProps={};b.queuingRender=!1;b.dispose=function(){};
b.isWebComponentWrapper=!0;b.isReparenting=!1;b.hasAttached=!1;return b};
_.R(c,Y);c.prototype.render=function(){this.hasAttached=!0;for(var b=_.z([].concat(_.No(this.attributes))),r=b.next();!r.done;r=b.next())r=r.value,r.name!=="slot"&&this.removeAttribute(r.name);b=Object.assign({},this.componentProps,this.slotProps);r=_.z(vzf(this,y,b));b=r.next().value;r=r.next().value;!(b[0]instanceof Element)||b.length>1?CN("Wrapped Wiz components must return a single root element.",W):(b=b[0].tagName.toLowerCase(),b!==W&&CN("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(b+" !== '"+W),W),this.dispose=r)};
c.prototype.setUpProps=function(){for(var b=this.rawProps,r=this.attributes,F=_.z(Object.keys(D)),K=F.next();!K.done;K=F.next()){K=K.value;var l=void 0;((l=this)==null?0:l[K])&&this[K]!==ThH&&b[K]===void 0&&(b[K]=this[K],(l=Object.getOwnPropertyDescriptor(this.constructor.prototype,K))&&Object.defineProperty(this,K,l))}F=_.z(r);for(K=F.next();!K.done;K=F.next()){l=K.value;K=_.uM(l.name);var N=K==="class"&&!r.getNamedItem("class-name");if(K in D||N)l=HMa(l),K!=="class"||b.className?b[K]=l:b.className=
l}r={};for(var P in D)D[P]===_.QE||dAh&&D[P]===ata||(b[P]instanceof Function&&CN("Function props must be configured as STATIC, not SIGNAL.",W),K=_.z(_.G9(b[P],void 0,"vGbZpc")),F=K.next().value,K=K.next().value,r[P]=K,b[P]=F);b=_.z([b,r]);this.componentProps=b.next().value;this.setters=b.next().value;this.slotProps=Z(this.childNodes)};
c.prototype.connectedCallback=function(){vQ===W&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in D&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
c.prototype.disconnectedCallback=function(){if(!this._isInert){var b;a:{if(_.xAH)for(b=this;b;){if(_.iMf.has(b)){b=!0;break a}b=b.parentElement}b=!1}if(b)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){b=_.z([].concat(_.No(this.attributes)));for(var r=b.next();!r.done;r=b.next())r=r.value,r.name!=="slot"&&this.removeAttribute(r.name)}this.innerText="";Lmt(this)}}};
c.prototype._setPendingPropertyOrPath=function(){};
c.prototype.notifyPath=function(){};
_.dJ.Object.defineProperties(c.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
G=_.z(Object.keys(D));for(var u=G.next(),t={};!u.done;t={prop$jscomp$103:void 0},u=G.next())t.prop$jscomp$103=u.value,Object.defineProperty(c.prototype,t.prop$jscomp$103,{set:function(b){return function(r){var F=this;this._isInert||(this.setters?mT(function(){var K,l;return void((l=(K=F.setters)[b.prop$jscomp$103])==null?void 0:l.call(K,r))}):(this.rawProps[b.prop$jscomp$103]=r,this.queuingRender&&b.prop$jscomp$103==="data"&&r!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(t),
get:MHy.has(t.prop$jscomp$103)?void 0:function(){return ThH}});
customElements.define(W,c)};
_.eQw=function(y,W){return(y=_.h3(y,W))?_.N9(_.Jn(y)):null};
_.Bh=function(y){if(y=_.h3(y,Number.MAX_VALUE,void 0,"width"))return _.Jn(y)};
_.h3=function(y,W,c,Z){Z=Z===void 0?"width":Z;if(!y||!y.length)return null;if(_.O("kevlar_tuner_should_always_use_device_pixel_ratio")){var G=window.devicePixelRatio;_.O("kevlar_tuner_should_clamp_device_pixel_ratio")?G=Math.min(G,_.ey("kevlar_tuner_clamp_device_pixel_ratio")):_.O("kevlar_tuner_should_use_thumbnail_factor")&&(G=_.ey("kevlar_tuner_thumbnail_factor"));w9w=G}else w9w||(w9w=window.devicePixelRatio);G=w9w;_.O("kevlar_tuner_should_always_use_device_pixel_ratio")?W*=G:G>1&&(W*=G);if(_.O("kevlar_tuner_min_thumbnail_quality"))return y[0].url||
null;G=y.length;if(_.O("kevlar_tuner_max_thumbnail_quality"))return y[G-1].url||null;if(c)for(var D=0;D<G;D++)if(y[D].url.indexOf(c)>=0)return y[D].url||null;for(c=0;c<G;c++)if(y[c][Z]>=W)return y[c].url||null;for(W=G-1;W>0;W--)if(y[W][Z])return y[W].url||null;return y[0].url||null};
jrF=function(){Hh.size?setTimeout(function(){LN(qaI)},0):k1H=0};
qaI=function(){var y=(0,_.Tj)(),W=null,c=!1;Hh.forEach(function(G){G.loaded=!0;G.loadTime=y;G.pendingPaint=!1;var D=y0h.get(G);D&&D.resolve(y);W=G;c||!G.ftlEligible&&G.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(c=!0)});
var Z;((Z=W)==null?0:Z.markDirty)&&W.markDirty();Hh.clear();k1H=0;c&&WYh(y)};
c0O=function(y){Hh.add(y);y.pendingPaint=!0;k1H||(k1H=_.vh(_.KX,jrF))};
Z5I=function(y){y.loaded=!1;y.loadTime=Infinity;var W=y0h.get(y);W&&(W.reject(Error("mh")),y0h.delete(y));y.pendingPaint&&(Hh.delete(y),y.pendingPaint=!1)};
_.Gzh=function(y){var W=y.indexOf(":");return W===-1?{originalName:y}:{originalName:y.substring(0,W),datasyncId:y.substring(W+1)}};
_.ota=function(){return _.m(function(y){if(fCD!==void 0)return y.return(fCD);fCD=new Promise(function(W){var c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.tm(Z,2),_.n(Z,_.dZ.open("test-only"),4);case 4:return _.n(Z,_.dZ.delete("test-only"),5);case 5:_.J6(Z,3);break;case 2:if(c=_.rs(Z),c instanceof Error&&c.name==="SecurityError")return W(!1),Z.return();case 3:W("caches"in window),_.F2(Z)}})});
return y.return(fCD)})};
YIH=function(){return _.m(function(y){if(y.nextAddress==1)return _.n(y,_.ota(),2);if(!y.yieldResult)return y.return(void 0);D_D||(D_D=new zwt);return y.return(D_D)})};
m_H=function(y){var W,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:return _.n(D,YIH(),2);case 2:W=D.yieldResult;if(!W)throw Error("oh");return _.n(D,W.open("yt-player-local-img"),3);case 3:return c=D.yieldResult,_.n(D,c.match(y),4);case 4:Z=D.yieldResult;if(!Z)throw Error("ph");return _.n(D,Z.blob(),5);case 5:return G=D.yieldResult,D.return(G)}})};
srF=function(y,W){for(var c in y)if(y.hasOwnProperty(c)&&W[c])return c;return null};
uuO=function(y){return"stamp"+y.replace("-","_")+"_"};
tJE=function(y){var W=y.match(/\[\[([\w\.]+)\]\]/);if(W&&W.length>1)return W[1];_.OP(Error("rh`"+y));return null};
ntF=function(y){return y===void 0?_.I8("REUSE_COMPONENTS",!1):y||!1};
r0F=function(y,W,c){c&&(W.is?(XYh.has(W)&&(y=XYh.get(W),c=y.listener,delete W[y.property],c.type==="element"&&W.removeEventListener(c.eventName,c.handler),XYh.delete(W)),b5a(W)):W.__proto__==HTMLElement.prototype&&(W=new _.ul("Rendererstamper removed a non custom element","Stamper: "+y+" element: "+(W&&W.nodeName)),_.Rs(W)))};
FYI=function(y,W,c,Z){var G=W.node?W.node:W;_.p(c).parentNode===G&&(W.removeChild(c),r0F(y,c,Z));if(y=Sl.get(c))Sl.delete(c),_.KX.cancelJob(y);c.hidden=!1};
U_f=function(y,W,c,Z){if(W&&W.children&&(c=W.children[c]))if(_.I8("DEFERRED_DETACH"))for(;c&&!Sl.has(c);){var G=y,D=W,Y=c,u=Z;Y.hidden=!0;G=_.Xc(_.KX,FYI.bind(null,G,D,Y,u),0);Sl.set(Y,G);c=c.nextElementSibling}else for(;(Y=W.lastElementChild)&&(W.removeChild(Y),r0F(y,Y,Z),Y!=c););};
$_t=function(y){var W=_.HO();_.rj(function(){for(var c=_.z(y.slotContent),Z=c.next();!Z.done;Z=c.next())W.value.appendChild(Z.value)});
return _.X("__slot-el",{el:W,skip:!0})};
_.TP=function(y,W,c){c=c===void 0?KYf:c;Sj.add(W);var Z;(Z=c).propNames!=null||(Z.propNames=[]);var G=new Set(c.propNames),D=Sat();Z=function(){var b=D.call(this)||this;b.props={};b.isUpdating=!1;b.hasAttached=!1;b.isInert=!1;b.updateQueued=!1;b.initialClasses=[];xmF(b,W);return b};
_.R(Z,D);Z.prototype.forwardKebabCaseProp=function(b,r){b=_.uM(b);if(G.has(b)||b==="children")this.props[b]=r};
Z.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var b=_.z(this.initialClasses),r=b.next();!r.done;r=b.next())(r=r.value)&&this.classList.add(r);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
Z.prototype.handleSlottedContent=function(){for(var b=new Map,r=_.z(this.children),F=r.next();!F.done;F=r.next()){F=F.value;var K=void 0,l=(K=F.getAttribute("slot"))!=null?K:"children";(K=b.get(l))?K.push(F):b.set(l,[F]);if(!F.getAttribute("key")){var N=void 0,P=void 0;F.setAttribute("key",l+"_"+((P=(N=K)==null?void 0:N.length)!=null?P:0))}}b=_.z(b);for(r=b.next();!r.done;r=b.next())F=_.z(r.value),r=F.next().value,F=F.next().value,this.forwardKebabCaseProp(r,_.X($_t,{slotContent:F}))};
Z.prototype.connectedCallback=function(){var b=this;if(!xmF(this,W)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var r=_.z(this.attributes),F=r.next();!F.done;F=r.next())F=F.value,this.forwardKebabCaseProp(F.name,HMa(F));this.handleSlottedContent();c.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){b.afterFirstPatch()});
this.hasAttached=!0}};
Z.prototype.attributeChangedCallback=function(b,r,F){this.isInert||this.isUpdating||this.isConnected||b!=="class"||this.initialClasses.push.apply(this.initialClasses,_.No(F.split(" ")))};
Z.prototype.disconnectedCallback=function(){Nzg(this)};
Z.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var b,r;x8w(this,_.X(y,Object.assign({},this.props,{idomKey:(r=(b=this.__incrementalDOMData)==null?void 0:b.key)!=null?r:W})),!0)}catch(K){var F=K instanceof Error?K:new _.ul("Wiz rendering error");F.args||(F.args=[]);F.args.push("Error in deprecated web component wrapper");F.args.push(W.toLowerCase());_.OP(F);throw K;}finally{this.updateQueued=this.isUpdating=!1}}};
Z.prototype.enqueueUpdate=function(){var b=this;return _.m(function(r){if(c.synchronous)return b.update(),r.return();if(b.updateQueued)return r.return();b.updateQueued=!0;return r.return(Promise.resolve().then(function(){b.update()}))})};
Z.prototype.notifyPath=function(){c.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.dJ.Object.defineProperties(Z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Y=_.z(c.propNames),u=Y.next(),t={};!u.done;t={prop$jscomp$105:void 0},u=Y.next())t.prop$jscomp$105=u.value,Object.defineProperty(Z.prototype,t.prop$jscomp$105,{set:function(b){return function(r){this.isInert||r===this.props[b.prop$jscomp$105]||(this.props[b.prop$jscomp$105]=r,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(t)});
customElements.define(W,Z)};
_.O5a=function(y,W){return _.fq(y.entities,"markersEngagementPanelSyncEntity",W)};
gtw=function(y,W){return _.fq(y.entities,"fantasyWinProbabilityEntity",W)};
Rw1=function(y,W){return _.fq(y.entities,"fantasyTeamEntity",W)};
lCI=function(y,W){return _.fq(y.entities,"fantasyPlayerEntity",W)};
Etw=function(y,W){return _.fq(y.entities,"booleanEntity",W)};
NAF=function(y,W){return _.fq(y.entities,"qrCodeEntity",W)};
ICh=function(y){return _.fq(y.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
pYy=function(){if(a9)return a9;if(window.lottie)return a9=Promise.resolve(window.lottie);var y=_.OW(_.Nn("LOTTIE_URL"));return y?a9=new Promise(function(W,c){var Z=document.createElement("script");Z.addEventListener("load",function(){W(lottie)});
Z.addEventListener("error",function(G){var D="Lottie library failed to load.";G?G.message&&(D+=" Original description: "+G.message,_.NF(G,D)):G=Error(D);_.Rs(G);c(G)});
Z.setAttribute("async","");_.eQ(Z,y);document.head.appendChild(Z)}):Promise.reject(Error("sh"))};
PJt=function(){return a9?a9:pYy()};
J0I=function(){var y=ICh(_.Sv().getState());if(y&&y.animationStyle)switch(y.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return x0.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return x0.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return x0.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
VJ1=function(y){if(y)switch(y){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.O("kevlar_use_wil_icons"))return(y=J0I())?y:x0.get("LIKE")}};
CJH=function(y){var W=VJ1(y);if(W)return W;switch(y){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return x0.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return x0.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return x0.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return x0.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return x0.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return x0.get("NOTIFICATION_BELL")}};
A0w=function(y,W){if(!y||Qrh)W=!1;else{if(y.closest){var c=!!VJ1(W);c=_.Nn("ID_TOKEN")&&c?!!y.closest("segmented-like-dislike-button-view-model"):!1}else c=!1;if(!c)if(y.closest)if(c=!_.Nn("ID_TOKEN"),y=y.closest("ytd-subscription-notification-toggle-button-renderer-next"),c||!y)c=!1;else{var Z;c=((Z=y.data)==null?void 0:Z.targetId)==="notification-bell"&&W!=="EXPAND_MORE"}else c=!1;W=c}return W};
hwD=function(y){var W,c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.tm(Z,2),_.n(Z,fetch(y),4);case 4:return W=Z.yieldResult,_.n(Z,W.json(),5);case 5:return Z.return(Z.yieldResult);case 2:c=_.rs(Z),_.Rs(c),_.F2(Z)}})};
BAI=function(y,W){var c,Z,G;return _.m(function(D){if(D.nextAddress==1)return(c=W?y.pathDarkTheme:y.path)?_.n(D,Promise.all([hwD(c),pYy()]),2):D.return();Z=D.yieldResult;G=Z[0];is.set(c,G);_.F2(D)})};
_.Mi=function(){var y=_.Cf.apply(0,arguments);return function(){for(var W="",c=_.z(y),Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,typeof Z==="function"&&(Z=Z()),Z)if(typeof Z==="string")W+=" "+Z;else for(var G in Z)if(Z.hasOwnProperty(G)){var D=Z[G];typeof D==="function"&&(D=D());D&&(W+=" "+G)}W=W.trim()||void 0;return _.gV(W)}};
_.el=function(y){var W;var c=y.data;var Z=y.className;var G=y.animationName;var D=y.animationRef;var Y=(W=y.elRefForInterop)||_.HO(),u;_.KL(function(){var r;return void((r=u)==null?void 0:r.destroy())});
var t;_.$k(function(){var r=_.gV(G);if(r!==t){t=r;var F=Object.assign({},{animationName:r,animationRef:_.gV(D)},_.gV(c));try{_.U().resolve(H5f)().then(function(N){var P;(P=u)==null||P.destroy();P=F.animationRef;var V=F.listeners;N=N.loadAnimation(Object.assign({},{container:Y.value},F.animationConfig));P&&(P.lottieEl=N);if(V)for(P=_.z(Object.entries(V)),V=P.next();!V.done;V=P.next()){var Q=_.z(V.value);V=Q.next().value;(Q=Q.next().value)&&N.addEventListener(V,Q)}u=N})}catch(N){r=N;
var K="LottieComponent error.";r.message&&(K+=" Original description: "+r.message);_.NF(r,K);_.Rs(r);var l;((l=F.listeners)==null?0:l.error)&&F.listeners.error(r)}}});
var b=_.Mi("ytLottieComponentHost",Z);return _.X(CMf,{cond:function(){return!W},
then:function(){return _.X("lottie-component",{class:b,el:Y})}})};
LYF=function(y){var W=_.HO(),c=_.z(cEg(y.data.animationConfig.name||"",y.className)),Z=c.next().value;c=c.next().value;var G=UE(function(){return y.data.animationRef});
b1(function(){y.data.animationRef&&(y.data.animationRef.lottieEl=G==null?void 0:G.lottieEl)},[y.data.animationRef]);
return _.X("lottie-component",{skip:!0,class:_.Mi(c,"ytLottieComponentHost"),el:W},_.X(_.el,{data:y.data,animationRef:G,animationName:Z,elRefForInterop:W}))};
d_t=function(y,W,c,Z,G){function D(t,b){if(W.value===b&&y!=null&&y.value){for(;y.value.firstChild;)y.value.removeChild(y.value.firstChild);y.value.classList.add("yt-spec-icon-shape");t(y.value,Z)}}
var Y;G=(Y=G)!=null?Y:_.U().resolve(_.qM);c=_.vtI(G,c);if(typeof c==="function")W.value=null,D(c,null);else{var u=new _.fD(c.then,c);W.value=u;u.then(function(t){D(t,u)})}};
TAH=function(y,W){var c=document.createElement("div"),Z=_.nj(c,function(){return _.X(_.YN,{cond:y,then:function(G){return _.X(SIy,{data:G,options:W})}})});
return[c,Z]};
_.wZ=function(){for(var y=[],W=_.z(_.Cf.apply(0,arguments)),c=W.next();!c.done;c=W.next())if(c=c.value)if(typeof c==="string")y.push(c);else{c=_.z(Object.entries(c));for(var Z=c.next();!Z.done;Z=c.next()){var G=_.z(Z.value);Z=G.next().value;(G=G.next().value)&&y.push(Z)}}return y.join(" ")};
MJ1=function(y){var W=_.HO(),c=$N(),Z=ai(y.character)||ai(y.previousCharacter);tW(function(){if(y.marginMultiplier){var G;(G=c.value)==null||G.cancel();Z?(G=y.previousCharacter?Number(y.previousCharacter)+10:y.rollUp?0:30,y.shouldAnimate||(G-=aCw(y,G))):(G=y.rollUp?0:2,y.shouldAnimate||(G-=y.rollUp?-1:1));W.value.style.marginTop="-"+G*y.marginMultiplier+"px";y.shouldAnimate?c.value=x_I(W.value,y,G,Z):W.value.style.display=y.character?"":"none"}});
return _.X("animated-rolling-character",{el:W,class:"animated-rolling-character-wiz"},_.TY(Z,function(){for(var G=[],D=1;D<30;D++)G.push(_.X("div",null,D%10));return _.X(_.a2,null,_.X("div",null,"\u00a0"),G,_.X("div",null,"\u00a0"))},function(){return i5h(y.character)}))};
i5h=function(y){return _.X(_.a2,null,_.X("div",null,"\u00a0"),_.X(_.a2,null,_.TY(!y||_.tH(y),function(){return _.X("div",null,"\u00a0")},function(){return _.X("div",null,y)})),_.X("div",null,"\u00a0"))};
x_I=function(y,W,c,Z){c=new Animation(new KeyframeEffect(y,[{transform:"translateY(0px)"},{transform:"translateY("+(Z?aCw(W,c):W.rollUp?-1:1)*W.marginMultiplier+"px)"}],ewa),document.timeline);W.character?(y.style.display="",c.onfinish=null):c.onfinish=function(){y.style.display="none"};
c.play();return c};
aCw=function(y,W){var c=Number(y.character)+10;if(y.previousCharacter)if(y.character){var Z=Number(y.character),G=Number(y.previousCharacter);y=y.rollUp?G<Z?c:c+10:G<Z?c-10:c}else y=y.rollUp?30:0;else y=y.character==="0"?c:y.rollUp?c-10:c+10;return W-y};
_.qi=function(y,W){return function(c){var Z={},G;for(G in c){var D=void 0,Y=void 0;((D=W)==null?0:(Y=D.callbacks)==null?0:Y[G])||(Z[G]=c[G])}return _.X(s0g,null,function(){for(var u in Z)c[u]=_.gV(Z[u]);c.disableReactiveLogging=!0;return _.X(y,Object.assign({},c))})}};
_.k0=function(y){var W=$N(),c=$N();b1(function(){W.value=y.numberText;c.value=y.numberValue},[y.numberText]);
var Z=y.fontSizeMultiplier?y.heightPx*y.fontSizeMultiplier:y.heightPx,G=Fl(function(){if(y.numberText){var Y=y.numberText;var u=y.forceRollUp||!c.value||!y.numberValue||c.value<y.numberValue;var t=!!y.shouldAnimate,b=W.value,r=[],F=0,K=0,l=(b?b.replace(/\D/g,"").length:0)-(Y?Y.replace(/\D/g,"").length:0);b=b?b.split(/(\d)/).filter(Boolean):[];for(Y=Y.split(/(\d)/).filter(Boolean);l<0;){var N=Y[K];r.push({character:N,rollUp:u,marginMultiplier:Z,shouldAnimate:t});K++;ai(N)&&l++}for(;F<l;)N=b[F],r.push({previousCharacter:N,
rollUp:u,marginMultiplier:Z,shouldAnimate:t}),F++,ai(N)||l++;for(;K<Y.length;)l=Y[K],N=b[F],ai(l)===ai(N)?(K++,F++):ai(l)?(F++,l=void 0):ai(N)&&(K++,N=void 0),r.push({character:l,previousCharacter:N,rollUp:u,marginMultiplier:Z,shouldAnimate:t});u=r}else u=[];return u},[y.numberText]),D=y.numberText?["height: "+Z+"px;",
"line-height: "+y.heightPx+"px;"].join(" "):"";return _.X("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:D,dir:"ltr","aria-hidden":"true"},G.map(function(Y){return _.X(MJ1,Object.assign({},Y))}))};
_.j9=function(y){return LlF(function(W){W=y==null?void 0:y(W);return typeof W==="boolean"?W:!0})};
yf=function(y){return function(){return y()?y():void 0}};
wYy=function(y){return new KeyframeEffect(y,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
qID=function(y){return new KeyframeEffect(y,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
kzH=function(y){var W=_.z(_.G9(y,void 0,"Clci1e")),c=W.next().value,Z=W.next().value;c.current=y;return[c,function(G){return void Z(c.current=G)}]};
_.WF=function(y){var W=p9f(function(){return kzH(y())},{isEqual:function(c,Z){return c[0].current===Z[0].current}});
return[function(){return W()[0]()},
function(c){return void W()[1](c)}]};
_.cF=function(y){return function(){var W="",c;for(c in y){for(var Z=y[c];typeof Z==="function";)Z=Z();Z!==void 0&&Z!==null&&(W+="; "+c+": "+Z)}return W.length>0?_.gV(W.slice(2)):_.gV()}};
jFt=function(y){switch(y){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"}};
c$a=function(y,W,c,Z,G,D){var Y=y$w(y),u=Y.disabled,t=Y.iconPosition,b=Y.style,r=Y.focused,F=function(){return!!N()&&t()==="icon-only"},K=function(){return!!N()&&t()==="icon-only-40"},l=function(){return!!N()&&t()==="icon-with-label"},N=function(){return!!W||!(Z==null||!Z())};
return{type:function(){return b()==="call-to-action-inverse"?"text":b()==="overlay-dark"&&y().type!=="filled"&&y().type!=="tonal"?"tonal":y().type},
shouldFocus:function(){return(r()||(D==null?void 0:D()))&&!u()},
hasIconLeading:function(){return!!N()&&t()==="leading"},
hasIconTrailing:function(){return!!N()&&t()==="trailing"},
hasIconLeadingTrailing:function(){return!!N()&&!!(c||G!=null&&G())&&t()==="leading-trailing"},
hasIconOnly:F,hasIconOnly40:K,hasIconWithLabel:l,iconButton:function(){return F()||K()||l()},
visiblyDisabled:function(){return(u()?"disabled":y().state)==="disabled"||u()},
overrideSmallSizeIcon:function(){return Za(y(),N())},
iconToRender:W?W:function(){return _.X(_.Gb,{icon:Z,size:function(){return W3y(y())},
active:function(){return y().toggled}})},
secondaryIconToRender:c?c:function(){return _.X(_.Gb,{icon:G,size:function(){return W3y(y())},
active:function(){return y().toggled}})}}};
y$w=function(y){return{size:function(){return y().size},
style:function(){return y().style},
focused:function(){return y().focused},
disabled:function(){return y().disabled},
onTap:function(W){var c,Z;return(Z=(c=y()).onTap)==null?void 0:Z.call(c,W)},
alignByText:function(){return y().alignByText},
aTagConfig:function(){return y().aTagConfig},
customColors:function(){return y().customColors},
segmentedPosition:function(){return y().segmentedPosition},
toggled:function(){return y().toggled},
toggleable:function(){return y().toggleable},
accessibilityLabel:function(){return y().accessibilityLabel},
onToggle:function(W){var c,Z;return(Z=(c=y()).onToggle)==null?void 0:Z.call(c,W)},
iconPosition:function(){return y().iconPosition},
oneOffCustomTextWrap:function(){return y().oneOffCustomTextWrap},
disableTextEllipsis:function(){return y().disableTextEllipsis},
tooltipText:function(){return y().tooltipText},
ariaHidden:function(){return y().ariaHidden},
tabIndex:function(){return y().tabIndex},
buttonText:function(){return y().buttonText},
formattedButtonText:function(){return y().formattedButtonText},
animatedTextProps:function(){return y().animatedTextProps}}};
ZVH=function(y){return y.style==="overlay-dark"?4:y.style==="overlay"?y.type==="filled"?4:3:y.type==="filled"||y.style==="call-to-action-inverse"||y.style==="mono-inverse"?2:1};
Za=function(y,W){W=(y.iconPosition==="icon-only"||y.iconPosition==="icon-only-40"||y.iconPosition==="icon-with-label")&&W;return!y.segmentedPosition&&W&&y.size==="S"};
GcI=function(){return!_.O("web_disable_backdrop_filter")};
W3y=function(y){switch(y.size){case "XS":return 16;case "S":return Za(y,!0)?24:16;default:return 24}};
fXF=function(y,W){if(!_.ae){var c;k5y(function(){return c=YdD(y,W)});
return c}return YdD(y,W)};
oJI=function(){var y=cvh(_.ae||void 0,oDO);return y===Why||(y==null?void 0:y.name)==="\u0275NotFound"?void 0:y};
DS1=function(y){switch(y){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"}};
ziI=function(y){switch(y){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"}};
YJO=function(y){switch(y){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"}};
mS1=function(y){if(!y)return{};var W=y.color,c=y.backgroundColor;y=y.borderColor;var Z="";W&&(Z+="color: "+W+";");c&&(Z+="background-color: "+c+";");y&&(Z+="border-color: "+y+";");return{style:Z}};
tgh=function(y){var W=y.data;var c=y.icon;var Z=y.secondaryIcon;var G=y.iconName;var D=y.secondaryIconName;oJI();var Y=W.size;y=W.style;var u=W.focused,t=W.disabled,b=W.onTap,r=W.alignByText,F=W.aTagConfig,K=W.customColors,l=W.segmentedPosition,N=W.toggled,P=W.toggleable,V=W.accessibilityLabel,Q=W.onToggle,S=W.iconPosition,cy=W.oneOffCustomTextWrap,M=W.disableTextEllipsis,fa=W.tooltipText,jI=W.ariaHidden,sD=W.tabIndex,ED=!!c||!!G,N1=c,bf=Z;if(G){var Py=W3y(W);N1=function(){return _.X(_.Gb,{icon:G,
size:Py,active:W.toggled})}}if(D){var WJ=W3y(W);
bf=function(){return _.X(_.Gb,{icon:D,size:WJ,active:W.toggled})}}var t5=W.state;
c=W.type;y==="call-to-action-inverse"&&(c="text");y==="overlay-dark"&&c!=="filled"&&c!=="tonal"&&(c="tonal");var xF=ED&&S==="leading",M3=ED&&S==="trailing",wS=ED&&(!!Z||!!D)&&S==="leading-trailing";Z=ED&&S==="icon-only";var f8=ED&&S==="icon-only-40";S=ED&&S==="icon-with-label";var eV=Z||f8||S;t&&(t5="disabled");var N3=t5==="disabled"||t;ED=Za(W,ED);t5={};var K8=_.wZ((t5["yt-spec-button-shape-next"]=!0,t5[DS1(c)]=!0,t5[ziI(y)]=!N3,t5["yt-spec-button-shape-next--disabled"]=!!N3,t5[YJO(Y)]=!0,t5["yt-spec-button-shape-next--focused"]=
!!u&&!t,t5["yt-spec-button-shape-next--icon-trailing"]=M3,t5["yt-spec-button-shape-next--icon-leading"]=xF,t5["yt-spec-button-shape-next--icon-leading-trailing"]=wS,t5["yt-spec-button-shape-next--icon-button"]=Z||S,t5["yt-spec-button-shape-next--icon-only-default"]=f8,t5["yt-spec-button-shape-next--align-by-text"]=!!r,t5["yt-spec-button-shape-next--segmented-start"]=l==="start",t5["yt-spec-button-shape-next--segmented-end"]=l==="end",t5["yt-spec-button-shape-next--override-small-size-icon"]=ED,t5["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!cy,t5["yt-spec-button-shape-next--disable-text-ellipsis"]=!!M,t5["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=GcI(),t5)),PJ=_.j9(function(cX){b==null||b(cX);P&&(Q==null||Q(cX))});
Y=function(){return F?_.X(_.oL,{aTagConfig:F,disabled:t,className:K8,style:mS1(K).style,title:fa!=null?fa:"",ariaLabel:V,ariaCurrent:P&&N},_.X(_.a2,null,sFt(W,xF,wS,M3,eV,N1,bf))):_.X("button",{"on:click":PJ,class:K8,title:fa!=null?fa:"",style:t&&F?"pointer-events:none":mS1(K).style,disabled:t,"aria-pressed":P?!!N:void 0,"aria-label":V?V:void 0,"aria-disabled":N3,"aria-hidden":jI,tabindex:sD},_.X(_.a2,null,sFt(W,xF,wS,M3,eV,N1,bf)))};
u={};y=(u["yt-spec-button-shape-with-label"]=!0,u["yt-spec-button-shape-with-label--is-overlay"]=y==="overlay"||y==="overlay-dark",u);return _.X("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},S?_.X("label",{class:_.wZ(y)},Y(),_.X("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},uNO(W))):Y())};
uNO=function(y){var W=y.formattedButtonText,c=y.animatedTextProps,Z=y.buttonText,G=y.oneOffCustomTextWrap;y=y.iconPosition;return c?_.X(_.k0,{numberText:c.numberText,numberValue:c.numberValue,heightPx:c.heightPx,fontSizeMultiplier:c.fontSizeMultiplier,shouldAnimate:c.shouldAnimate,forceRollUp:c.forceRollUp}):W?(c=y==="icon-with-label"||G,_.X(_.Da,{text:Object.assign({},W,c?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!c})):Z};
sFt=function(y,W,c,Z,G,D,Y){return _.X(_.a2,null,_.TY(D&&(W||c||G),function(){return _.X(_.a2,null,_.X("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},D==null?void 0:D()))}),_.TY((y.buttonText||y.formattedButtonText||y.animatedTextProps)&&!G,function(){return _.X(_.a2,null,_.X("div",{class:"yt-spec-button-shape-next__button-text-content"},uNO(y)))}),_.TY(Z,function(){return _.X(_.a2,null,_.X("div",{class:"yt-spec-button-shape-next__icon"},D==null?void 0:D()))}),_.TY(c,function(){return _.X(_.a2,
null,_.X("div",{class:"yt-spec-button-shape-next__secondary-icon"},Y==null?void 0:Y()))}),_.TY(!y.disabled&&!0,function(){return _.X(_.zb,{model:{color:ZVH(y)}})}))};
nJH=function(y,W){switch(y.size){case "XS":return 16;case "S":return Za(y,W)?24:16;default:return 24}};
XfE=function(y){if(y.style==="overlay-dark"&&y.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
USh=function(y,W,c){var Z=y.buttonText,G=y.formattedButtonText,D=y.formattedButtonTextLegacy,Y=y.animatedTextProps,u=y.style,t=y.size,b=y.focused,r=y.disabled,F=y.onTap,K=y.alignByText,l=y.aTagConfig,N=y.customColors,P=y.segmentedPosition,V=y.toggled,Q=y.toggleable,S=y.accessibilityLabel,cy=y.onToggle,M=y.iconPosition,fa=y.oneOffCustomTextWrap,jI=y.disableTextEllipsis,sD=y.tooltipText,ED=y.ariaHidden,N1=y.tabIndex,bf=y.state,Py=y.type;u==="call-to-action-inverse"&&(Py="text");u==="overlay-dark"&&
Py!=="filled"&&Py!=="tonal"&&(Py="tonal");var WJ=!!W&&M==="leading",t5=!!W&&M==="trailing",xF=!!W&&!!c&&M==="leading-trailing",M3=!!W&&M==="icon-only",wS=!!W&&M==="icon-only-40",f8=!!W&&M==="icon-with-label",eV=M3||wS||f8;r&&(bf="disabled");var N3=bf==="disabled"||r;bf=Za(y,!!W);var K8={},PJ=(K8["yt-spec-button-shape-next"]=!0,K8[DS1(Py)]=!0,K8[ziI(u)]=!N3,K8["yt-spec-button-shape-next--disabled"]=!!N3,K8[YJO(t)]=!0,K8["yt-spec-button-shape-next--focused"]=!!b&&!r,K8["yt-spec-button-shape-next--icon-trailing"]=
t5,K8["yt-spec-button-shape-next--icon-leading"]=WJ,K8["yt-spec-button-shape-next--icon-leading-trailing"]=xF,K8["yt-spec-button-shape-next--icon-button"]=M3||f8,K8["yt-spec-button-shape-next--icon-only-default"]=wS,K8["yt-spec-button-shape-next--align-by-text"]=!!K,K8["yt-spec-button-shape-next--segmented-start"]=P==="start",K8["yt-spec-button-shape-next--segmented-end"]=P==="end",K8["yt-spec-button-shape-next--override-small-size-icon"]=bf,K8["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!fa,K8["yt-spec-button-shape-next--disable-text-ellipsis"]=!!jI,K8["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=GcI(),K8),cX=function(){if(Y)pN(_.k0)(Y);else if(D)D(M==="icon-with-label"||fa?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(G){var bE=M==="icon-with-label"||fa;CSw(Object.assign({},G,bE?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!bE})}else Z&&dV(Z)},
a$=function(bE){F==null||F(bE);
Q&&(cy==null||cy(bE))},oI=l?bV1:r$f,Zg=l?"aria-current$":"aria-pressed$",xW=function(){W&&(WJ||xF||eV)&&function(){Yx({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){W()})}();
(Z||G||D||Y)&&!eV&&function(){Yx({className:"yt-spec-button-shape-next__button-text-content"},function(){cX()})}();
t5&&function(){Yx({className:"yt-spec-button-shape-next__icon"},function(){W()})}();
xF&&function(){Yx({className:"yt-spec-button-shape-next__secondary-icon"},function(){c()})}();
r||pN(_.zb)({model:{color:ZVH(y)}})},dS=function(){var bE={};
oI(Object.assign({},(bE.className=_.wZ(PJ),bE.onclick=l?void 0:a$,bE.disabled=r,bE["aria-disabled$"]=N3,bE.style=r&&l?"pointer-events:none":void 0,bE[Zg]=Q?!!V:void 0,bE["aria-label$"]=S,bE.title$=sD!=null?sD:"",bE["aria-hidden$"]=ED,bE.tabindex$=N1,bE),l,mS1(N)),function(){xW()})};
f8?(t={},u=(t["yt-spec-button-shape-with-label"]=!0,t["yt-spec-button-shape-with-label--is-overlay"]=u==="overlay"||u==="overlay-dark",t),F3O({className:_.wZ(u)},function(){dS();Yx({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},cX)})):dS()};
$SI=function(y,W,c){_.O("web_wiz_button_shape")?pN(tgh)({data:y,icon:W?function(){return _.X(dC,null,W)}:void 0,
secondaryIcon:c?function(){return _.X(dC,null,c)}:void 0}):USh(y,W,c)};
m$=function(y,W){_.$0(y,Object.assign({},W,{forceClickLogging:!0}))};
K3I=function(y,W,c,Z){var G=void 0;return function(D){var Y=_.UH(c?y==null?void 0:y.onDisabledTap:y==null?void 0:y.onTap);if(Y){var u;G=(u=G)!=null?u:W==null?void 0:W.value;if(Y)if(_.O("web_button_vm_click_client_ve_killswitch"))m$(Y,Object.assign({},{form:{element:G,event:D}},void 0));else{var t;u=Y==null?void 0:Y.clickTrackingParams;var b,r=y==null?void 0:(t=y.loggingDirectives)==null?void 0:(b=t.clientVeSpec)==null?void 0:b.uiType;t=r&&!u?_.se(r):void 0;m$(Y,Object.assign({},{form:{element:G,event:D}},
{clickedVisualElement:t}))}}Z&&Z(D)}};
OVf=function(y){switch(y){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"}};
gJH=function(y){switch(y){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"}};
RiI=function(y){switch(y){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"}};
lXg=function(y){switch(y){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"}};
EJt=function(y,W){return _.fq(y.entities,"engagementToolbarStateEntityPayload",W)};
IXH=function(y){(y=_.Dz(y))&&_.NkE(y)};
_.NkE=function(y){var W=_.NR();W&&_.Ll(W,y)};
pfI=function(y,W,c){_.GG(y,"yt-open-popup-action",[W,c||y])};
PQg=function(y,W){var c=_.Kj(y,"endpoint"),Z=_.Kj(y,"action");return(c=Z?Z:c)&&W&&(c=W.navigationEndpointPopupMap[c])&&(y=_.JW(c,y),(c=_.Kj(y,"renderer"))&&W.supportedPopups.hasOwnProperty(c))?{openPopupAction:{popupType:W.popupTypeMap[c],popup:y}}:null};
J$I=function(y,W,c,Z){if(Z){var G;c=c==null?void 0:(G=c.data)==null?void 0:G.contents;(G=c instanceof Array&&c.length?c[0]:c)&&(c=_.Kj(G,"renderer"))&&Z.supportedPopups.hasOwnProperty(c)&&(W.stopPropagation(),pfI(y,{openPopupAction:{popupType:Z.popupTypeMap[c],popup:G}}))}};
QFD=function(y,W,c,Z){Z=Z===void 0?!1:Z;var G=Vg1(W);if(G){G.href&&RW(G.href);var D=W.button;D=D!==void 0?D===0&&!uv(W):!uv(W);G.data&&D&&CQI(y,G,W,c,Z)}};
CQI=function(y,W,c,Z,G){G=G===void 0?!1:G;var D=_.ey("pbj_navigate_limit",-1)===0;A$1(W);_.U().resolve(_.xN(V8));var Y=W.data;if(Object.keys(Y).length!==0)if(!_.O("unplugged_web_disable_actions_for_cec_endpoint")&&_.g(Y,_.uN))_.O("endpoint_behavior_command_executor_fix_killswitch")||(c.preventDefault(),c.stopPropagation()),_.mq(y,[Y],y);else if(Z=PQg(Y,Z))Y.loggingUrls&&Y.loggingUrls.forEach(function(t){t.baseUrl&&_.Jv(t.baseUrl)}),c.preventDefault(),c.stopPropagation(),pfI(y,Z,W);
else{var u=hig(0,W.data,c);if(y=W.getForm)y=y(),u.tempData=u.tempData||{},u.tempData=Object.assign({},u.tempData,y);y=_.Aq(c);if(Z=y.find(function(t){return!!t.visualElement}))u.createScreenConfig=u.createScreenConfig||{},u.createScreenConfig.clickedVisualElement=Z.visualElement;
if(!D)if(c.preventDefault(),c.stopPropagation(),_.g(Y,_.BkD)&&!G&&_.km.instance)_.km.instance.resolveCommand(Y,u);else if(_.O("kevlar_command_handler_formatted_string")&&!G&&_.km.instance&&HVf(Y))G=y.find(function(t){return!!t.is})||c.target,c={form:Object.assign({},u,{event:c,
element:G,originatingNode:W})},_.km.instance.resolveCommand(Y,c);else{Y=_.Aq(c);c=[];for(G=0;G<Y.length;G++)(D=Y[G].is)&&c.push(D);gYy({parents:c.join(","),text:W.innerText},function(){_.Z2(W,"yt-navigate",u)})}}};
L3f=function(y){if(y=Vg1(y))A$1(y),UlI(y.href)};
Vg1=function(y){y=_.Aq(y);for(var W,c=0;c<y.length;c++)if(W=y[c],W.tagName==="A"&&W.classList.contains("yt-simple-endpoint")){if(!W.data)break;return W}return null};
uv=function(y){return y.shiftKey||y.altKey||y.metaKey||y.ctrlKey};
vJI=function(y,W){var c={itct:W.clickTrackingParams};_.O("kevlar_client_side_screens")&&(!_.g(W,_.mv)||_.O("kevlar_exclude_endpoint_killswitch"))&&(c.endpoint=JSON.stringify(W));_.O("enable_unknown_lact_fix_on_html5")&&_.U().resolve(_.xN(_.t7))&&(c.lact=_.MV());bnF(c);_.wz(y,c)};
A$1=function(y){y.href&&Object.keys(y.data).length!==0&&vJI(y.href,y.data)};
HVf=function(y){for(var W=_.z(dSa),c=W.next();!c.done;c=W.next())if(y[c.value])return!1;return!0};
_.nx=function(y,W){if(W){var c={};SJy.forEach(function(Z){Z=TkD(W,Z,"--yt-lightsource-");Object.assign(c,Z)});
aXI.forEach(function(Z){Z=TkD(W,Z,"--yt-basic-");Object.assign(c,Z)});
_.wM(y,c)}};
TkD=function(y,W,c){var Z={};Z[c+_.sL(W)]=y&&y[W]?_.KZ(y[W]):"";return Z};
_.bv=function(y,W,c){XP[y]||(XP[y]={});XP[y][W]=c};
_.rI=function(y){XP[y]||(XP[y]={});return XP[y]};
xSI=function(y){if(!y)return{};var W=y.foregroundTitleColor,c=y.backgroundColor;y=y.borderColor;var Z="text";y?Z="outline":c&&(Z="filled");return{type:Z,customColors:{color:W?_.KZ(W):void 0,backgroundColor:c?_.KZ(c):void 0,borderColor:y?_.KZ(y):void 0}}};
qJF=function(y){var W=y.renderer;var c=y.element;var Z=y.commandController;var G=y.onTapCallback;var D=y.skipCommandHandling;var Y=y.overrides;var u=y.forceIcon;var t=y.forceModernIconButton;var b=y.forceDisabled;var r=y.isSubscribe===void 0?!1:y.isSubscribe;var F=y.isPressed===void 0?!1:y.isPressed;var K=y.useButtonSize===void 0?!1:y.useButtonSize;y=iVF(W);r&&(y.style="mono",y.type="filled");u=!W.icon||!u&&W.text?W.icon?W.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:t?"icon-only":"icon-only-40";u==="icon-only-40"&&(y.type="text");var l;t=Object;r=t.assign;K=Mgt(W,K);F=!!W.isSelected||!_.O("web_propagate_is_pressed_killswitch")&&!!F;var N=W.isSelected!==void 0;b=b===void 0?W.isDisabled:b;var P=W.text?_.Xx(W.text):void 0;var V,Q,S,cy=((V=W.accessibilityData)==null?void 0:(Q=V.accessibilityData)==null?void 0:Q.label)||((S=W.accessibility)==null?void 0:S.label);V=cy?cy:_.v$(W.text);c=eia(W,c,Z,G,D);Z=wfF(W);Z!=null&&Z.length?(Z=_.KN({innertubeCommand:FNf(Z),
forceNewState:!0}),Z=Uew(Z)?Z:void 0):Z=void 0;return r.call(t,{},y,K,{iconPosition:u},Y,{focused:!1,toggled:F,toggleable:N,disabled:b,formattedButtonText:P,accessibilityLabel:V,onTap:c,aTagConfig:Z},xSI((l=W.colorData)==null?void 0:l.basicColorPaletteData),{oneOffCustomTextWrap:W.oneOffCustomTextWrap})};
eia=function(y,W,c,Z,G){return function(D){var Y=wfF(y);Z(Y,D);if(!G){Y=_.z(Y);for(var u=Y.next();!u.done;u=Y.next())m$(u.value,{form:{element:W,event:D},commandController:c})}}};
wfF=function(y){var W=[];y.command&&W.push(y.command);y.serviceEndpoint&&W.push(y.serviceEndpoint);y.navigationEndpoint&&W.push(y.navigationEndpoint);return W};
Mgt=function(y,W){if(W)switch(y.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(y.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
iVF=function(y){switch(y.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"}}};
_.FP=function(y){return _.Yk(function(){k0w()();return p6(y)},void 0,"Icv7j")};
Ue=function(y,W){return _.fq(y.entities,"likeStatusEntity",W)};
kch=function(y,W){return _.fq(y.entities,"likeCountEntity",W)};
_.jmh=function(y,W){return _.fq(y.entities,"stringEntity",W)};
ywE=function(y,W){if(!y)return!1;var c,Z=(c=_.g(y,_.nl))==null?void 0:c.signal;if(Z&&W.signalEndpointMap)return!!W.signalEndpointMap[Z];var G;if((c=(G=_.g(y,_.$x))==null?void 0:G.request)&&W.continuationEndpointMap)return!!W.continuationEndpointMap[c];for(var D in y)if(W.commandEndpointMap[D])return!0;return!1};
WUy=function(y,W){if(W.streamingEndpointMap)for(var c in y)if(W.streamingEndpointMap[c]&&(y=W.streamingEndpointMap[c]))return y()};
cwy=function(y,W){var c,Z=(c=_.g(y,_.nl))==null?void 0:c.signal;if(Z&&W.signalEndpointMap&&(c=W.signalEndpointMap[Z]))return c();var G;if((c=(G=_.g(y,_.$x))==null?void 0:G.request)&&W.continuationEndpointMap&&(G=W.continuationEndpointMap[c]))return G();for(var D in y)if(W.commandEndpointMap[D]&&(y=W.commandEndpointMap[D]))return y()};
Zmh=function(y){var W={"Content-Type":"application/json"};_.Nn("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=_.Nn("EOM_VISITOR_DATA"):_.Nn("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=_.Nn("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=_.Nn("LOGGED_IN",!1);_.Nn("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=_.Nn("DEBUG_SETTINGS_METADATA"));y!=="cors"&&((y=_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=y),(y=_.Nn("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]=
y),(y=_.Nn("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=y),(y=_.Nn("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=y),_.I8("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(y=_.Nn("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=y));return W};
GTE=function(y,W){W.watchNextResponse||W.reelItemWatchResponse?W.watchNextResponse?y.content=W.watchNextResponse:y.content=W.reelItemWatchResponse:W.playerResponse?y.player=W.playerResponse:W.reelWatchSequenceResponse&&(y.reelSequence=W.reelWatchSequenceResponse)};
Kx=function(y){return function(){return new y}};
Oe=function(y){var W=_.U();return function(){return W.resolve(y)}};
_.gI=function(y){if(!y)return null;for(var W=[],c=0;c<y.textSegments.length;c++){var Z=y.textSegments[c];Z.text?W.push(Z):Z.emojiId&&W.push({emoji_id:Z.emojiId})}return{text_segments:W}};
Y5y=function(y,W,c,Z,G,D,Y){D=D===void 0?[]:D;var u=new _.RL;u.endpoint=c;if(!c)return _.gC(new _.ul("handle undefined endpoint",W.tagName)),u;var t=V8E(c);t.length&&(_.mq(y,t,W,Z),u.actions=t);c.loggingUrls&&c.loggingUrls.forEach(function(r){r.baseUrl&&VJ(r.baseUrl,r.attributionSrcMode)});
t=!_.O("web_skip_impression_click_killswitch")&&Z&&Z.impression;if(c.clickTrackingParams&&!fBI(c)&&!ouF(W)&&!t&&(t=_.Zz(),!_.lv(t,W))){var b=W.getScreenLayer&&W.getScreenLayer();b?t.clickCommand(c,null,b):t.clickCommand(c,null)}t=!1;for(b=0;b<D.length;b++)if((0,D[b])(W,c,Z)){t=!0;break}!t&&DNH(c)&&(u.ajaxPromise=zjH(y,W,c,Z,G,Y));return u};
ouF=function(y){var W;return(y=(W=y.data)==null?void 0:W.navigationEndpoint)&&!!y.clickTrackingParams};
fBI=function(y){var W=_.g(y,_.nl);if(W&&(W=W.signal)&&mNg.indexOf(W)>=0)return!0;for(var c in y)if(smf.indexOf(c)>=0)return!0;return!1};
DNH=function(y){var W;if(((W=_.g(y,_.nl))==null?void 0:W.signal)==="CLIENT_SIGNAL")return!1;for(var c in y)if(u9I.indexOf(c)>=0)return!1;y=Object.keys(y);return y.length===1&&y[0]==="loggingUrls"?!1:!0};
$Nw=function(y,W,c,Z,G,D,Y){var u=_.Ee.instance;if(u&&_.Nu(u,Z))var t=_.IL(u,Z,G).then(function(r){return(r==null?0:r.data)?r:{data:r}});
else t=y.requestDataForServiceEndpoint(Z,G),_.g(Z,tRO)||_.g(Z,nuH)||_.g(Z,_.XwI)||_.g(Z,bmh)||_.Rs(new _.ul("No RequestBuilder for endpoint",Z));var b=_.px();b.promise.thenCatch(function(){var r=_.Kj(Z,"action")||_.Kj(Z,"command")||_.Kj(Z,"endpoint");r&&(r=Z[r],r.hasOwnProperty("onFailureAction")?_.mq(W,[r.onFailureAction],c):r.hasOwnProperty("onFailureCommand")&&_.mq(W,r.onFailureCommand,c));t.cancel("Resolver promise rejected")});
t.then(function(r){if(r){var F=r.error;if(F){if(D&&D.onServerError)D.onServerError(Z,r);b.reject(new _.ul("Response error",Z,F))}else if(r=r.data)if(F=r.error){if(D&&D.onServerError)D.onServerError(Z,r);b.reject(new _.ul("Returned error",Z,F))}else{rwI(W,c,r,Z);FUw(r);if(F=JzI(r))for(var K=_.z(F),l=K.next();!l.done;l=K.next()){l=l.value;var N=_.U().resolve(_.xN(UNh))||PF;if(!_.Ee.instance||!N.some(function(V){return!!_.g(Z,V)})||_.O("kevlar_response_processor_allowlist_killswitch")){var P=N=void 0;
((P=_.g((N=l)==null?void 0:N.commandMetadata,_.kT))==null?0:P.sendPost)?_.D2(W,[l]):_.mq(W,[l],c)}}(K=_.g(r==null?void 0:r.frameworkUpdates,J7))&&Y&&Y(K);if(D&&D.onSuccess)D.onSuccess(Z,r);b.resolve(new _.Vf(r,F))}}else b.reject(new _.ul("Invalid service endpoint provided",Z))},function(r){b.reject(r)});
return b.promise};
FUw=function(y){var W;(y=(W=_.g(y==null?void 0:y.onResponseReceivedCommand,_.KUI))==null?void 0:W.continuationItems)&&(y==null?void 0:y.length)===1&&_.g(y[0],OmF)&&_.PA("so_r",void 0,"search_overview_answer")};
zjH=function(y,W,c,Z,G,D){var Y;return(Y=W.getNetworkManager&&W.getNetworkManager()?W.getNetworkManager():_.U().resolve(_.xN(_.tq)))?$Nw(Y,y,W,c,Z,G,D):_.hG("No network manager.")};
rwI=function(y,W,c,Z){if(c=c.trackingParams||c.loggingDirectives&&c.loggingDirectives.trackingParams){var G;(_.g(Z,guI)||_.g(Z,RjI)||_.g(Z,lBg))&&Z.clickTrackingParams?G=_.Dz(Z.clickTrackingParams):_.O("web_graft_to_parent_command")&&Z.clickTrackingParams&&(G=_.Dz(Z.clickTrackingParams));var D;Z=(D=W.getScreenLayer)==null?void 0:D.call(W);W=_.Zz().graftServerVe(c,G,Z);_.fl(y,"yt-store-grafted-ve-action",[W])}};
_.Eua=function(y){var W=new Image;return new _.fD(function(c,Z){W.addEventListener("load",function(){c()});
W.addEventListener("error",function(){Z()});
W.src=y})};
NWh=function(y){return!!y};
IB1=function(y){return!!y};
pwI=function(y,W,c){var Z=y.rowIndex;Z!==void 0&&_.fl(y.hostElement,"yt-section-reactive-dismissal",[Z,W,c])};
_.Cx=function(y,W,c){y=_.z(y);for(var Z=y.next();!Z.done;Z=y.next()){Z=Z.value;if(Z===W)break;for(var G=_.z(c),D=G.next();!D.done;D=G.next())if(D=D.value,Z.tagName===D||!_.O("web_event_button_role_check_killswitch")&&Z.role==="button"&&D==="BUTTON")return!0}return!1};
_.Qf=function(y,W,c){y=_.z(y);for(var Z=y.next();!Z.done;Z=y.next()){Z=Z.value;if(Z===W)break;for(var G=_.z(c),D=G.next();!D.done;D=G.next())if(Z.id===D.value)return!0}return!1};
A7=function(y,W){if(!y&&!W)return"medium";y=Math.max(y||0,W||0);return y>=256?"large":y>=96?"medium":"small"};
P2a=function(y){switch(y){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.HF=function(){var y=_.U().resolve(_.xN(_.h7));return y?(y=y.getCurrentPage())?_.BF(y):null:null};
_.Lx=function(){var y=_.HF();if(!y){var W=_.U().resolve(_.xN(_.h7)),c=W?typeof W:"no page manager";W=W?W.getCurrentPage():null;c=new _.ul("Player is missing when requested.",c,W?W.tagName:"no page");_.OP(c)}return y};
_.BF=function(y){return y&&y.getPlayer?y.getPlayer():null};
Jw1=function(y,W){y={args:{raw_player_response:y}};W&&(y.args=Object.assign({},y.args,W));return y};
VRw=function(y){if(y.args){if(y.args.raw_player_response)return y.args.raw_player_response;if(y.args.player_response)return JSON.parse(y.args.player_response)}};
_.C2H=function(y,W){var c={url:"/watch?v="+y.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};y.playlistId&&(c.url+="&list="+y.playlistId);y.playerParams&&(c.url+="&pp="+y.playerParams);y={watchEndpoint:y,commandMetadata:{webCommandMetadata:c}};W&&(y.clickTrackingParams=W);return y};
AwI=function(){return Qmt||!!_.JW("yt.player.Application")};
BWw=function(){return hja||!!document.querySelector("link#player-css")};
LUg=function(){function y(){Qmt=!0;HmE.resolve()}
var W,c;return _.m(function(Z){HmE||(HmE=new _.WK,AwI()?y():(W=document.createElement("script"),W.addEventListener("load",y),c=_.OR(_.Nn("PLAYER_JS_URL")),_.eQ(W,c),document.head.appendChild(W)));return Z.return(HmE.promise)})};
dNh=function(){function y(){hja=!0;vut.resolve()}
if(!vut)if(vut=new _.WK,BWw())y();else{var W=document.createElement("link");W.id="player-css";W.addEventListener("load",y);var c=_.OR(_.Nn("PLAYER_CSS_URL"));_.jq(W,c,"stylesheet");document.head.appendChild(W)}return vut.promise};
S5F=function(){return AwI()&&BWw()?Promise.resolve([]):Promise.all([LUg(),dNh()])};
TWF=function(y,W,c){var Z={args:{}};y&&(Z.args.raw_player_response=y);W&&(Z.args.raw_watch_next_response=W);c&&(Z.args=Object.assign({},Z.args,c));return Z};
MRa=function(y,W,c){var Z=!1;Z=Z===void 0?!0:Z;y=typeof y==="string"?_.vF(document,y):y;var G=aBE+"_"+_.kF(y),D=xNa[G];if(D&&Z)return img(W,c)?D.api.loadVideoByPlayerVars(W.args||null):D.loadNewVideoConfig(W),D.api;D=new dI(y,G,W,c,void 0);xNa[G]=D;D.addOnDisposeCallback(function(){delete xNa[D.getId()]});
return D.api};
img=function(y,W){return W&&W.serializedExperimentFlags?W.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):y&&y.args&&y.args.fflags?y.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
ejD=function(){var y=new _.WK;y.resolved=!1;var W=y.resolve;y.resolve=function(c){y.resolved=!0;W(c)};
return y};
q5H=function(y){var W={};wwE().install((W.document_disposed={callback:y},W))};
S9=function(y,W){if(!y&&Math.random()<=_.ey("kevlar_unified_player_logging_threshold")){y=Error("uh`"+(W?W:"Unspecified error"));if(_.O("kevlar_unified_player_throw_errors"))throw y;_.Rs(y)}};
_.kTO=function(){var y=_.JW("ytDebugData.callbacks");y||(y={},_.LR("ytDebugData.callbacks",y));return y};
yOy=function(y,W){var c=_.kTO();if(_.O("web_dd_iu")||jaH.includes(y))c[y]=W};
W0H=function(){return _.m(function(y){return y.return({isLeader:_.vPw(_.Sv().getState()),c:_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Nn("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
cOD=function(){var y;_.m(function(W){if(W.nextAddress==1)return yOy("APP_STATE",W0H),_.n(W,_.U().resolve(_.Tb),2);y=W.yieldResult;yOy("PI",function(){return _.m(function(c){return c.return(y.getVideoStats())})});
_.F2(W)})};
ZCD=function(y){var W=_.xT(_.BT(_.DH.location.href));y=_.xT(_.BT(y));return _.O("kevlar_clear_non_displayable_url_params")?W==aL(y):aL(W)==aL(y)};
aL=function(y){var W=_.GXI(y);y=y.slice(0);var c=["frags"];_.O("kevlar_hide_pp_url_param")&&c.push("pp");_.O("kevlar_hide_time_continue_url_param")&&c.push("time_continue");c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next())Z=Z.value,y=_.qR(_.xT(y),Z);return _.xT(y)+(W?"#"+W:"")};
xx=function(y,W){W=Number(W)*1E3;var c=Math.round((0,_.Tj)()),Z=c.toString();y={innertubeResponse:y,serverDateTimestampMs:Z,lastModifiedTimestampMs:Z,expireTimestampMs:(c+W).toString()};if(W=_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME"))y.clientName=W;return y};
oqH=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++fMH};
_.Dsw=function(){var y=_.EL(),W=_.NR();W&&y&&_.dK(W,[y],!0)};
Yva=function(y){return y&&zRF.some(function(W){return y.includes(W)})};
Xxa=function(y){var W=_.g(y,_.CD);if(!W)return!1;var c=W.url,Z=W.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!c)return _.OP(Error("zh")),!1;if(W.target==="TARGET_NEW_WINDOW"){var G={};_.O("resolve_url_parent_tracking_params")&&(!_.vI(c)||dj(window.location.href,c))&&(G={endpoint:y,itct:y.clickTrackingParams});bnF(G);y=null;try{if(Z){a:{var D=c,Y=G;Z=Z===void 0?!1:Z;Y&&_.wz(D,Y);var u=_.Jn(D),t=_.N9(u);D!=t&&_.Va(Error("Zf`"+D));D=t;try{if(Z){t=D;t=s9I(t);RW(t);y=_.SQ(window,t,"_blank",
"attributionsrc");break a}}catch(K){_.pj(K)}RW(D);y=_.SQ(window,u,"_blank")}msy(_.U().resolve(saH),y,c);return!0}}catch(K){_.OP(K)}_.wz(c,G);G={target:"_blank",noopener:_.O("set_window_noopener_ks")&&!W.allowOpener};W=window;u=lF(c)?c:_.Jn(typeof c.href!="undefined"?c.href:String(c));y=self.crossOriginIsolated!==void 0;D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);t=G.noreferrer;if(y&&t&&D==="unsafe-url")throw Error("qe");D=t&&!y;t=G.target||c.target;Z=
[];Y=[];var b=!1;for(F in G){var r=G[F];switch(F){case "width":case "height":case "top":case "left":Z.push(F+"="+r);break;case "target":break;case "noopener":case "noreferrer":r?Y.push(F):(b=!0,Y.push(F+"=false"));break;case "attributionsrc":Z.push(F+(r?"="+r:""));break;default:Z.push(F+"="+(r?1:0))}}var F=t!==void 0&&!["_blank","_self","_top","_parent",""].includes(t);F=lf()&&F;uLF&&y&&Z.length===0&&Y.length>0&&!F&&!b?(Y.length===2&&(Y=["noreferrer"]),_.SQ(W,u,t,Y[0]),y=tng()):(F=Z.join(","),_.Vw()&&
W.navigator&&W.navigator.standalone&&t&&t!="_self"?(F=_.uC("A"),hn(F,u),F.target=t,D&&(F.rel="noreferrer"),((G=G.attributionsrc)||G==="")&&F.setAttribute("attributionsrc",G),G=document.createEvent("MouseEvent"),G.initMouseEvent("click",!0,!0,W,1),F.dispatchEvent(G),F=tng()):D?(F=_.SQ(W,"",t,F),W=_.N9(u),F&&(F.opener=null,W===""&&(W="javascript:''"),W='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+iv(W)+'">',W=Lf(W),(G=F.document)&&G.write&&(G.write(vX(W)),
G.close()))):((F=_.SQ(W,u,t,F))&&G.noopener&&(F.opener=null),F&&G.noreferrer&&(F.opener=null)),y=F);msy(_.U().resolve(saH),y,c);return!0}F=_.c7(c);F=Yva(F)||c==="https://studio.youtube.com/";W=!(!_.vI(c)||dj(window.location.href,c));G=c.indexOf("disable_polymer=1")>=0;if(W||G||F)RW(c),N2(),_.l0(c,void 0,void 0,window.top,nqt);else return _.Rs(new _.ul("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",y)),!1;return!0};
_.F0t=function(y,W){W=W===void 0?0:W;if(!(_.g(y,bC1)||_.g(y,rOh)||_.g(y,_.CD)&&_.g(y,_.CD).url))return!1;var c,Z=(c=_.g(y,_.CD))==null?void 0:c.url;c=Z?{externalLinkData:{url:Z}}:null;return _.Zz().clickCommand(y,c,W)};
_.Mu=function(y,W){return _.fq(y.entities,"subscriptionStateEntity",W)};
UsE=function(y,W){return _.fq(y.entities,"subscriptionNotificationStateEntity",W)};
$sI=function(y,W){return _.fq(y.entities,"upcomingEventReminderStateEntity",W)};
K0g=function(y,W){return _.fq(y.entities,"engagementToolbarSurfaceEntityPayload",W)};
OCt=function(y,W){return _.fq(y.entities,"triStateButtonStateEntityPayload",W)};
gqy=function(y,W){return _.fq(y.entities,"commerceCartCheckoutButtonEntity",W)};
_.RRg=function(y,W){return _.fq(y.entities,"playlistLoopStateEntity",W)};
lMI=function(y,W){return _.fq(y.entities,"commandEntity",W)};
NEg=function(y,W,c,Z,G){G=G===void 0?{}:G;return function(D){var Y,u;var t=((Y=y.loggingDirectives)==null?0:(u=Y.clientVeSpec)==null?0:u.uiType)?_.se(y.loggingDirectives.clientVeSpec.uiType):void 0;G.clickedVisualElement||(G.clickedVisualElement=t);t=Eqh(y,W);c(t,D);t=_.z(t);for(Y=t.next();!Y.done;Y=t.next()){Y=Y.value;u=Z;var b=D,r=G;r.form?r.form.event=b:r.form={element:u,event:b};m$(Y,r)}}};
Eqh=function(y,W){var c=[];W?(y.toggledCommand&&c.push(y.toggledCommand),y.toggledServiceEndpoint&&c.push(y.toggledServiceEndpoint)):(y.defaultCommand&&c.push(y.defaultCommand),y.defaultServiceEndpoint&&c.push(y.defaultServiceEndpoint),y.defaultNavigationEndpoint&&c.push(y.defaultNavigationEndpoint));return c};
IMF=function(y,W){var c=y.toggledStyle||y.style,Z;switch((Z=W?c:y.style)==null?void 0:Z.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"}}};
px1=function(y,W){W=W.uniqueId+"-border";var c,Z;var G=(Z=(c=_.U().resolve(_.xN(_.EH)))==null?void 0:c())!=null?Z:!1;return{animationRef:y,animationConfig:{name:W,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(G?"dark":"light")+"_v2.json"}}};
_.wI=function(){return _.m(function(y){return y.nextAddress==1?_.n(y,_.U().resolve(_.Tb),2):y.return(_.U().resolve(_.e9)())})};
_.qu=function(){return UE(function(){return{lottieEl:void 0}})};
Pet=function(y,W){return y.startsWith(W.uniqueId)};
JOD=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.wI(),2);W=Z.yieldResult;if((c=W)==null||!c.addEventListener)return kx(),Z.return();W.addEventListener("onCueRangeEnter",y);_.F2(Z)})};
Vn1=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.wI(),2);W=Z.yieldResult;if((c=W)==null||!c.removeEventListener)return kx(),Z.return();W.removeEventListener("onCueRangeEnter",y);_.F2(Z)})};
CeI=function(y){var W,c,Z,G,D;_.m(function(Y){if(Y.nextAddress==1)return _.n(Y,_.wI(),2);W=Y.yieldResult;if((c=W)==null||!c.addCueRange)return kx(),Y.return();Z=_.z(y.timings);for(G=Z.next();!G.done;G=Z.next())D=G.value,W.addCueRange(y.uniqueId+"-"+D,D/1E3,(D+100)/1E3);_.F2(Y)})};
Qaf=function(y){var W,c,Z,G,D;_.m(function(Y){if(Y.nextAddress==1)return _.n(Y,_.wI(),2);W=Y.yieldResult;if((c=W)==null||!c.removeCueRange)return kx(),Y.return();Z=_.z(y.timings);for(G=Z.next();!G.done;G=Z.next())D=G.value,W.removeCueRange(y.uniqueId+"-"+D);_.F2(Y)})};
AOt=function(y){return y.join("")};
hRw=function(){var y,W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.wI(),2);y=Z.yieldResult;if((W=y)==null||!W.getPlayerState)return kx(),Z.return();c=y.getPlayerState();return Z.return(c===2)})};
kx=function(){_.Rs(new _.ul("Smartimation player does not exist or is corrupted"))};
vqa=function(y){var W=BEO;HCF.push(y);L0H||(W(function(){for(var c=_.z(HCF),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z();HCF.length=0;L0H=!1}),L0H=!0)};
BEO=function(y){Promise.resolve().then(y)};
j8=function(y){y=_.z(Gqt(y));var W=y.next().value,c=y.next().value,Z=!1;_.rj(function(){return function(){Z=!0}});
return[W,function(G){vqa(function(){Z&&!_.O("cow_prevent_state_setter_after_cleanup_killswitch")||c(G)})}]};
Svy=function(y){function W(b){var r;return _.m(function(F){if(F.nextAddress==1)return(r=!Pet(b,Z)||!Z.enabled)?F.jumpTo(2):_.n(F,hRw(),3);F.nextAddress!=2&&(r=F.yieldResult);if(r)return F.return();c();setTimeout(function(){t(!1)},1500);
_.F2(F)})}
function c(){setTimeout(function(){t(!0);var b;(b=D.lottieEl)==null||b.goToAndPlay(0)},150)}
var Z=y.settings;var G=y.className;y=y.children;var D=_.qu(),Y=_.z(j8(!1)),u=Y.next().value,t=Y.next().value;Z||(Z={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.Rs(new _.ul("Smartimation Settings is undefined")));b1(function(){if(Z.experimentEnabled)return Z.enabled?JOD(W):(t(!1),Vn1(W)),function(){Vn1(W)}},[Z.enabled,
Z.experimentEnabled]);b1(function(){if(Z.experimentEnabled)return CeI(Z),function(){Qaf(Z)}},[AOt(Z.timings)]);
return _.X("yt-smartimation",{class:_.Mi(G,dsw(u,Z))},_.TY(Z.experimentEnabled,function(){return _.X("div",{class:"smartimation__border"},_.X(LYF,{className:"smartimation__border-gradient",data:px1(D,Z)}))}),_.X("div",{class:"smartimation__content"},y))};
dsw=function(y,W){var c=["smartimation"];W.experimentEnabled&&c.push("smartimation--experiment-enabled");y&&c.push("smartimation--active-border");try{var Z;var G=(Z=window.CSS)!=null&&Z.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(D){_.Rs(new _.ul("Smartimation CSS.supports threw an error")),G=!1}G&&c.push("smartimation--enable-masking");
return c.join(" ")};
TEF=function(){try{var y;return(y=window.CSS)!=null&&y.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(W){return _.Rs(new _.ul("Smartimation CSS.supports threw an error")),!1}};
qvI=function(y,W,c,Z,G){var D=y.playlistId?aMI:xsh;W=W();c=c();G=!!y.videoId&&G()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Xj(W))return iCg({data:y,actionType:D,disabled:G},c);if(y.videoId&&Z())return Mnh({data:y,actionType:D,disabled:G});switch(W){case "TRANSFER_STATE_UNKNOWN":return Mnh({data:y,actionType:D,disabled:G});case "TRANSFER_STATE_FAILED":return y.videoId?eRy({data:y,actionType:D,disabled:G}):wxy({data:y,actionType:D,disabled:G});case "TRANSFER_STATE_COMPLETE":return wxy({data:y,
actionType:D,disabled:G});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return iCg({data:y,actionType:D,disabled:G},c);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return y.videoId?eRy({data:y,actionType:D,disabled:G}):Mnh({data:y,actionType:D,disabled:G});default:return Mnh({data:y,actionType:D,disabled:G})}};
kXy=function(y,W){var c=y.onTapCommand,Z=_.UH(c);if(y.videoId&&_.g(Z,_.yL))return _.g(Z,_.yL).action=W,c;y.playlistId&&_.g(Z,_.WG)&&(_.g(Z,_.WG).action=W);return c};
Mnh=function(y){var W=y.data;var c=y.actionType;y=y.disabled;return{text:jCh,iconType:"OFFLINE_DOWNLOAD",onTap:kXy(W,c.ACTION_ADD),disabled:y}};
iCg=function(y,W){var c=y.data;var Z=y.actionType;y=y.disabled;var G="OFFLINE_DOWNLOAD";W>=0&&W<=.1?G="OFFLINE_DOWNLOADING_ZERO":W>.1&&W<=.3?G="OFFLINE_DOWNLOADING_TWENTY":W>.3&&W<=.5?G="OFFLINE_DOWNLOADING_FORTY":W>.5&&W<=.7?G="OFFLINE_DOWNLOADING_SIXTY":W>.7&&W<1?G="OFFLINE_DOWNLOADING_EIGHTY":W===1&&(G="OFFLINE_PIN");return{text:yNI,iconType:G,onTap:kXy(c,Z.ACTION_REMOVE_WITH_PROMPT),disabled:y}};
wxy=function(y){var W=y.data;var c=y.actionType;y=y.disabled;return{text:WFE,iconType:"OFFLINE_PIN",onTap:kXy(W,c.ACTION_REMOVE_WITH_PROMPT),disabled:y}};
eRy=function(y){var W=y.data;var c=y.actionType;y=y.disabled;return{text:cNO,iconType:"OFFLINE_DOWNLOAD",onTap:kXy(W,c.ACTION_RETRY),disabled:y}};
ZKy=function(){var y=_.z(j8(!1)),W=y.next().value,c=y.next().value;return function(){c(!W)}};
Gmw=function(y){return UE(function(){return{value:y}})};
f5f=function(y,W){var c=Gmw(y),Z=Gmw(W);b1(function(){c.value=y},[y]);
b1(function(){Z.value=W},W&&W.length>=1?W:[void 0]);
var G=UE(function(){return{value:void 0}});
if(y!==c.value||Z.value!==W||G.value===void 0)G.value=p6(y,W);var D=ZKy();_.rj(function(){function Y(){var t=p6(c.value,W);t!==G.value&&(G.value=t,D())}
var u=_.I5().subscribe(Y);Y();return u});
return G.value};
_.cG=function(y,W){return f5f(y,[W])};
_.Zx=function(y,W){var c=k0w();return _.Yk(function(){c();return p6(y,[_.gV(W)||""])},void 0,"HaeHEc")};
ody=function(y){var W=_.Zx(_.Iv,function(){return y().videoId}),c=_.Zx(_.pq,function(){return y().playlistId});
return function(){return y().videoId?W:y().playlistId?c:_.z(_.G9("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
DZI=function(y){var W=_.Zx(P$,function(){return y().videoId}),c=_.Zx(_.L_1,function(){return y().playlistId});
return function(){return y().videoId?W:y().playlistId?c:_.z(_.G9(0,void 0,"K4tgOc")).next().value}};
zmg=function(y){var W=_.Zx(_.MzH,function(){return y().videoId});
return function(){return y().videoId?W:_.z(_.G9(!1,void 0,"Oaxwcf")).next().value}};
Yiw=function(y){var W=_.Zx(SUI,function(){return y().videoId});
return function(){return y().videoId?W:_.z(_.G9("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
mZO=function(){return{}};
tYH=function(y){var W=y.backgroundLottieRef;var c=y.foregroundLottieRef;var Z=y.children;var G=y.wrapperClass;y=y.disableAnimation;y=(_.O("web_animated_actions")||_.O("web_animated_actions_v2"))&&!y;return _.X("yt-animated-action",{class:_.Mi("animated-action__container",G)},_.X("div",{class:"animated-action__content-with-background"},_.TY(y,function(){return _.X(sCh,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:W,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(uED()?"dark":"light")+"_v5.json"}}})}),Z),_.TY(y,function(){return _.X(sCh,{lottiePlayerProps:{animationRef:c,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(uED()?"dark":"light")+"_v4.json"}}})}))};
sCh=function(y){var W=y.wrapperClass;var c=y.lottieClass;y=y.lottiePlayerProps;return _.X("div",{class:_.wZ("animated-action__lottie",W),"aria-hidden":"true"},_.X(LYF,{className:c,data:y}))};
uED=function(){var y,W;return(W=(y=_.U().resolve(_.xN(_.EH)))==null?void 0:y())!=null?W:!1};
ndt=function(){var y,W;return(W=(y=_.U().resolve(_.xN(_.EH)))==null?void 0:y())!=null?W:!1};
bKy=function(y,W){y=y===void 0?XoO:y;switch(W.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},y,{isOpen:W.payload});default:return y}};
FF1=function(y,W){y=y===void 0?rNf:y;switch(W.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},y,{isAllowed:W.payload});default:return y}};
$Zt=function(y,W){y=y===void 0?UZI:y;switch(W.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},y,{errorMessage:W.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},y,{title:W.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},y,{privacy:W.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},y,{isDisabled:W.payload});default:return y}};
OKa=function(y,W){y=y===void 0?KFg:y;switch(W.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},y,{isOpen:W.payload});default:return y}};
Rmw=function(y,W){y=y===void 0?gda:y;switch(W.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},y,{isFullscreen:W.payload});case "SET_NAVIGATION_BUTTON":var c=W.payload.targetId,Z=Object.assign({},y.navigationButtons);Z[c]=W.payload.button;return Object.assign({},y,{navigationButtons:Z});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},y,{topPanelId:W.payload});case "SET_SECONDARY_HEADER":return c=W.payload.panelId,Z=Object.assign({},y.secondaryHeader),Z[c]=W.payload.secondaryHeader,
Object.assign({},y,{secondaryHeader:Z});default:return y}};
I5F=function(){return zr(Object.assign({},{entities:quw,voiceSearch:C$D,engagementPanel:Rmw,bottomSheet:bKy,cinematicSetting:FF1,shorts:d7f,drawerLayout:OKa,createPlaylist:$Zt,locationCollection:l5I,reportChannel:EdH,reportForm:Nct},SoE))};
po1=function(y,W){return"https://www.gstatic.com/youtube/img/lottie/"+y+"/"+W+".json"};
PYI=function(y){return{lottiePlayerProps:{animationConfig:{name:y.name,path:po1("custom_animated_like_icon",y.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:y.totalFrames,lazyLoad:!0}};
JNf=function(y,W){_.KX.addLowPriorityJob(function(){var c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:return _.tm(D,2),_.n(D,pYy(),4);case 4:return _.n(D,fetch(y),5);case 5:return c=D.yieldResult,_.n(D,c.json(),6);case 6:Z=D.yieldResult;is.set(y,Z);requestAnimationFrame(function(){W(Z)});
_.J6(D,0);break;case 2:G=_.rs(D),_.Rs(G),_.F2(D)}})})};
VYf=function(y){var W={animationConfig:{},listeners:{}},c=function(){y(!0)};
W.listeners.data_failed=c;W.listeners.error=c;W.listeners.data_ready=function(){y(!1)};
return W};
GZ=function(y){var W=y.model;var c=y.subscribed;var Z=y.isOverlay;var G=y.element;var D=y.commandController;var Y=y.notificationState;if(c){var u,t;var b=(W==null?void 0:(u=W.buttonStyle)==null?void 0:u.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:W==null?void 0:(t=W.unsubscribeButtonContent)==null?void 0:t.buttonText}else{var r;b=W==null?void 0:(r=W.subscribeButtonContent)==null?void 0:r.buttonText}a:{var F;switch(W==null?void 0:(F=W.buttonStyle)==
null?void 0:F.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":u="S";break a;default:u="M"}}a:if(Z)Z="overlay";else switch(W.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":Z="overlay";break a;default:Z="mono"}a:if(c)var K="tonal";else switch((K=W.buttonStyle)==
null?void 0:K.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":K="tonal";break a;default:K="filled"}return{style:Z,type:K,state:W.disableSubscribeButton?"disabled":"active",size:u,focused:y.focused,toggled:c,accessibilityLabel:CYH(W,c,Y),buttonText:b,iconPosition:W.disableNotificationBell?"none":"leading-trailing",onTap:QC1(W,c,G,D),disableTextEllipsis:!!y.disableTextEllipsis}};
QC1=function(y,W,c,Z){return function(G){if(W){var D;var Y=y.disableNotificationBell?_.UH(y==null?void 0:(D=y.unsubscribeButtonContent)==null?void 0:D.onTapCommand):_.UH(y==null?void 0:y.onShowSubscriptionOptions)}else{var u;Y=_.UH(y==null?void 0:(u=y.subscribeButtonContent)==null?void 0:u.onTapCommand)}Y&&m$(Y,{form:{element:c},commandController:Z});G.stopPropagation()}};
CYH=function(y,W,c){if(W){if(y==null?0:y.disableNotificationBell){var Z;return y==null?void 0:(Z=y.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}switch(c){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var G;return y==null?void 0:(G=y.bellAccessibilityData)==null?void 0:G.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var D;return y==null?void 0:(D=y.bellAccessibilityData)==null?void 0:D.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Y;return y==null?void 0:(Y=
y.bellAccessibilityData)==null?void 0:Y.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var u;return y==null?void 0:(u=y.bellAccessibilityData)==null?void 0:u.disabledLabel;default:var t;return y==null?void 0:(t=y.unsubscribeButtonContent)==null?void 0:t.accessibilityText}}else{var b;return y==null?void 0:(b=y.subscribeButtonContent)==null?void 0:b.accessibilityText}};
fp=function(y){if(!y)return null;switch(y){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":y="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":y="NOTIFICATIONS_OFF";break;default:y="NOTIFICATIONS_NONE"}return y};
ANI=function(y,W,c){c.subscribed!==W&&((c=c.key)&&_.PQ(_.o3("subscriptionStateEntity",c,{key:c,subscribed:W})),y.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:W})),W||_.GG(y,"yt-unsubscribe-action"))};
BcH=function(y){y=_.g(_.UH(y),_.Dx);var W,c,Z,G;return(G=_.g(y==null?void 0:(W=y.panelLoadingStrategy)==null?void 0:(c=W.inlineContent)==null?void 0:(Z=c.sheetViewModel)==null?void 0:Z.content,hmE))==null?void 0:G.listItems};
HKH=function(y,W){if(y.onShowSubscriptionOptions&&W&&(y=BcH(y.onShowSubscriptionOptions),y!=null&&y.length)){var c=fp(W);y.forEach(function(Z){Z=_.g(Z,_.zZ);var G,D,Y,u,t=Z==null?void 0:(G=Z.leadingImage)==null?void 0:(D=G.sources)==null?void 0:(Y=D[0])==null?void 0:(u=Y.clientResource)==null?void 0:u.imageName;Z&&t&&(Z.isSelected=t===c)})}};
LF1=function(y,W,c,Z){W&&c?y.style.width=c+"px":!W&&Z&&(y.style.width=Z+"px")};
vdO=function(y,W,c){var Z;(Z=y.lottieEl)==null||Z.goToAndPlay(0);var G;(G=W.lottieEl)==null||G.goToAndPlay(0);_.YY(_.KX,function(){var D;(D=c.lottieEl)==null||D.goToAndPlay(0)},300)};
xZw=function(y){var W=_.HO(),c=_.HO(),Z=_.HO(),G=_.qu(),D=_.qu(),Y=_.qu(),u=_.U().resolve(dZH),t,b=(t=_.cG(_.Mu,y.data.stateEntityStoreKey))!=null?t:void 0,r,F,K,l=(K=_.cG(UsE,(F=(r=y.data.notificationStateEntityStoreKeys)==null?void 0:r.subsNotificationStateKey)!=null?F:""))!=null?K:void 0;t=!!y.data.disableNotificationBell;var N=!y.data.enableSubscribeButtonPostClickAnimation;r=_.z(j8(0));var P=r.next().value,V=r.next().value;r=_.z(j8(0));var Q=r.next().value,S=r.next().value;r=_.z(j8(!1));var cy=
r.next().value,M=r.next().value;r=_.z(j8(!1));var fa=r.next().value,jI=r.next().value,sD=$N(!1),ED=$N("");r=_.z(j8(!1));var N1=r.next().value,bf=r.next().value,Py=function(){jI(!0);_.YY(_.KX,function(){jI(!1)},1500)};
b1(function(){fa&&!N&&b&&vdO(G,D,Y)},[fa]);
b1(function(){!N&&b&&(y.animateWidth&&LF1(W.value,!!b.subscribed,P,Q),b.subscribed&&b.key===ED.value&&Py(),b.key&&(ED.value=b.key))},[b==null?void 0:b.subscribed,
b==null?void 0:b.key]);var WJ=Fl(function(){var K8=y.data,PJ=!(b==null||!b.subscribed),cX=!!y.isOverlay,a$=cy?W.value:void 0,oI=l==null?void 0:l.state;HKH(K8,oI);return GZ({model:K8,subscribed:PJ,isOverlay:cX,element:a$,notificationState:oI,disableTextEllipsis:!0,focused:N1})},[y.data,
b,l,N1,y.isOverlay,cy]),t5=function(){var K8=_.U().resolve(_.xN(_.ml));K8&&bf(K8.isKeyBoardInUse())},xF=function(){bf(!1)};
_.vO(W,"yt-service-request-sent",function(K8){M3();b&&(K8.detail.endpoint.subscribeEndpoint||K8.detail.endpoint.unsubscribeEndpoint)&&ANI(W.value,!b.subscribed,b)});
_.BO("yt-player-subscribe",function(K8){b&&K8===y.data.channelId&&ANI(W.value,!0,b)});
_.BO("yt-player-unsubscribe",function(K8){b&&K8===y.data.channelId&&ANI(W.value,!1,b)});
_.BO("yt-update-subscribe-button-action",function(K8){K8=_.g(K8,Sih);b&&K8&&K8.channelId===y.data.channelId&&ANI(W.value,!!K8.subscribed,b)});
_.rj(function(){W.value&&(W.value.addEventListener("focusin",t5),W.value.addEventListener("focusout",xF));_.Xc(_.KX,function(){M3()});
M(!0);return function(){W.value&&(W.value.removeEventListener("focusin",t5),W.value.removeEventListener("focusout",xF))}});
var M3=function(){if(!N&&y.animateWidth&&(c==null?0:c.value)&&(Z==null?0:Z.value)&&!sD.value){var K8=_.z((b==null?0:b.subscribed)?[c,Z]:[Z,c]),PJ=K8.next().value;K8=K8.next().value;PJ=Math.ceil(PJ.value.getBoundingClientRect().width);K8=Math.ceil(K8.value.getBoundingClientRect().width);V(PJ);S(K8);LF1(W.value,!(b==null||!b.subscribed),PJ,K8);sD.value=!0}},wS=function(){var K8=fp(l==null?void 0:l.state);
return N||K8!=="NOTIFICATIONS_NONE"?function(){return u(K8)}:function(){pN(TcH)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Y})}};
r=function(){var K8=fp(l==null?void 0:l.state);return N||K8!=="NOTIFICATIONS_NONE"?function(){return _.X(_.Gb,{icon:K8!=null?K8:void 0})}:function(){return _.X(TcH,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:Y})}};
var f8=!(b==null||!b.subscribed)&&!t&&!(l==null||!l.state),eV=!(b==null?0:b.subscribed),N3=eV&&!t&&!(l==null||!l.state);t={};F={};return _.X("yt-subscribe-button-view-model",{class:_.wZ("yt-subscribe-button-view-model-wiz",(t["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(b==null||!b.subscribed)&&y.animateWidth&&fa,t["yt-subscribe-button-view-model-wiz--hidden"]=!(b==null?0:b.subscribed)&&y.data.hideWhenUnsubscribed,t)),el:W},_.X(a5g,{backgroundLottieRef:G,foregroundLottieRef:D,wrapperClass:_.wZ("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(F["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=y.animateWidth&&fa,F["yt-subscribe-button-view-model-wiz__static-width"]=!y.animateWidth,F)),disableAnimation:N},_.X("div",{el:c,class:_.wZ("yt-subscribe-button-view-model-wiz__container"),idomKey:y.data.channelId},_.O("web_wiz_button_shape")?_.X(tgh,{data:WJ,icon:f8?r():void 0,secondaryIcon:f8?function(){return _.X(_.Gb,{icon:"EXPAND"})}:void 0}):_.X(dC,null,function(){$SI(WJ,f8?wS():void 0,f8?function(){return u("EXPAND")}:
void 0)}))),_.X("div",{el:Z,
class:"yt-subscribe-button-view-model-wiz__invisible"},!y.animateWidth||N||sD.value?null:_.O("web_wiz_button_shape")?_.X(tgh,{data:GZ({model:y.data,subscribed:eV,isOverlay:!!y.isOverlay,element:W.value,disableTextEllipsis:!0}),icon:N3?function(){var K8;return _.X(_.Gb,{icon:(K8=fp(l==null?void 0:l.state))!=null?K8:void 0})}:void 0,
secondaryIcon:N3?function(){return _.X(_.Gb,{icon:"EXPAND"})}:void 0}):_.X(dC,null,function(){$SI(GZ({model:y.data,
subscribed:eV,isOverlay:!!y.isOverlay,element:W.value,disableTextEllipsis:!0}),N3?function(){return u(fp(l==null?void 0:l.state))}:function(){},N3?function(){return u("EXPAND")}:void 0)})))};
iKI=function(y){if(y){switch(y){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":y="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":y="NOTIFICATIONS_OFF";break;default:y="NOTIFICATIONS_NONE"}return y}};
MYt=function(y,W,c){c.subscribed!==W&&((c=c.key)&&_.PQ(_.o3("subscriptionStateEntity",c,{key:c,subscribed:W})),y.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:W})),W||_.GG(y,"yt-unsubscribe-action"))};
emE=function(y){y=_.g(_.UH(y),_.Dx);var W,c,Z,G;return(G=_.g(y==null?void 0:(W=y.panelLoadingStrategy)==null?void 0:(c=W.inlineContent)==null?void 0:(Z=c.sheetViewModel)==null?void 0:Z.content,hmE))==null?void 0:G.listItems};
wog=function(y,W){if(y.onShowSubscriptionOptions&&W&&(y=emE(y.onShowSubscriptionOptions),y!=null&&y.length)){var c=iKI(W);y.forEach(function(Z){Z=_.g(Z,_.zZ);var G,D,Y,u,t=Z==null?void 0:(G=Z.leadingImage)==null?void 0:(D=G.sources)==null?void 0:(Y=D[0])==null?void 0:(u=Y.clientResource)==null?void 0:u.imageName;Z&&t&&(Z.isSelected=t===c)})}};
qif=function(y,W,c,Z){W&&c?y.style.width=c+"px":!W&&Z&&(y.style.width=Z+"px")};
kmw=function(y,W,c){var Z;(Z=y.lottieEl)==null||Z.goToAndPlay(0);var G;(G=W.lottieEl)==null||G.goToAndPlay(0);_.YY(_.KX,function(){var D;(D=c.lottieEl)==null||D.goToAndPlay(0)},300)};
sV=function(){return _.U().resolve(_.xN(jjf))||{}};
y_g=function(y){return typeof y==="function"};
_.ug=function(y){Object.keys(y);var W=function(c,Z){var G=W.mapping||y;if(!c)return _.X(_.a2,null);if(Array.isArray(c)&&(c=Wiy(G,W,c),Array.isArray(c))){if(!c.length)return _.X(_.a2,null);if(c.length>1){for(var D=!1,Y=!1,u=[],t={},b=0;b<c.length;t={data$jscomp$1819:void 0},b++)if(t.data$jscomp$1819=c[b],t.data$jscomp$1819){var r=c_y(t.data$jscomp$1819,G),F=r.mappingEntry;r=r.rendererName;F&&r&&(F&&(!y_g(F)&&ZrE(F)&&(Y=!0),!y_g(F)&&F.asyncId||(D=!0)),u.push(GBO(t.data$jscomp$1819,F,r,W,Z)))}return Y&&
!D?_.X(_.a2,null,f7f()):_.X(_.a2,null,u)}c=c[0]}if(!c)return _.X(_.a2,null);c=Wiy(G,W,[c])[0];if(!c)return _.X(_.a2,null);D=c_y(c,G);G=D.mappingEntry;D=D.rendererName;return G&&D?_.X(_.a2,null,GBO(c,G,D,W,Z)):_.X(_.a2,null)};
W.mapping=y;return W};
_.oGD=function(y){var W=void 0,c;for(c in y)if(y.hasOwnProperty(c)){W=c;break}return W};
Wiy=function(y,W,c){var Z,G=(Z=sV().preProcessOptions)==null?void 0:Z.idomOptions;if(!G)return c;sV();return G.preProcessPropsIdom(y,c,W.triggerRerender)};
c_y=function(y,W){return(y=_.oGD(y))?{mappingEntry:W[y],rendererName:y}:{mappingEntry:void 0,rendererName:void 0}};
GBO=function(y,W,c,Z,G){if(!W)return _.X(_.a2,null);var D={};G&&G[c]&&(D=Object.assign({},G[c]));y[c]!==void 0&&(D.data=y[c]);if(y_g(W))return W.debugName||(W.debugName=c),_.X(W,D);W.asyncId&&(Z.pendingIdsMap=Z.pendingIdsMap||{},Z.pendingIdsMap[c]=W.asyncId);return W.templateFn?W.templateFn(D):ZrE(W)?f7f():_.X(_.a2,null)};
ZrE=function(y){var W;return(W=y.showPlaceholder)!=null?W:sV().defaultShowPlaceholder};
f7f=function(){var y=sV().placeholder;return y()};
DGE=function(y,W){W=W===void 0?{shouldPersist:!0}:W;return{useUpdatableData:function(c,Z){var G=[],D=_.z(_.WF(function(){var b=c();if(Z!=null&&Z.length&&G){var r=G.length>0;for(var F=!1,K=0;K<Z.length;K++){var l=Z[K]();r&&l!==G[K]&&(F=!0);G[K]=l}r=F}else r=!1;if(r)_.tz.remove(t());else if(r=_.tz.get(t()))return r;return b})),Y=D.next().value,u=D.next().value,t=_.Yk(function(){return y(c())},void 0,"VFraLb");
_.$k(function(){if(t()!=null){np.set(t(),[Y,u,!1]);var b=t();_.KL(function(){np.delete(b)})}});
return[Y,function(b){u(b);W.shouldPersist&&_.tz.set(t(),b)}]},
getData:function(c){var Z;return(Z=np.get(y(c)))==null?void 0:Z[0]()},
updateData:function(c,Z){c=y(c);var G=np.get(c);if(!G)return!1;var D=_.z(G);G=D.next().value;D=D.next().value;Z=Z(G());D(Z);W.shouldPersist&&_.tz.set(c,Z);return!0},
useUpdatableDataIdom:function(c,Z){var G=y(c),D=_.tz.get(G),Y=_.z(j8(D!=null?D:c)),u=Y.next().value,t=Y.next().value,b=$N(D!=null?D:c);b1(function(){if(G!=null)return np.set(G,[function(){return b.value},
function(r){t(r);b.value=r},
np.has(G)]),_.KX.addJob(function(){_.X5(_.KX,function(){var r=np.get(G);r&&(r[2]=!1)},0)},8),function(){var r;
((r=np.get(G))==null?0:r[2])||np.delete(G)}},[G]);
b1(function(){u!==c&&(t(c),b.value=c)},Z?[].concat(_.No(Z),[G]):[G]);
return[u,t]}}};
zaH=function(y){var W=_.z(_.G9(!0,void 0,"bKtO6d")),c=W.next().value;W.next();return function(){var Z=WI(y.children());return _.X(_.YN,{cond:c,then:function(){return Z},
else:y.fallback})}()};
_.bg=function(y){var W=Y8F(y),c=W.data,Z=W.mapping,G=W.wrapper;W=W.pendingFallback;var D=function(){return mGy(_.gV(c))},Y=function(){var u=D(),t=[];
u=_.z(u);for(var b=u.next();!b.done;b=u.next()){var r=void 0;b=b.value;var F=void 0;for(r in b)if(!(!b).hasOwnProperty(r)){F=r;break}(r=F)&&t.push(r)}return t};
return y.data?_.X(zaH,{fallback:W},function(){return _.X(_.mC,{each:Y},function(u,t){var b=G?function(F){return G(function(){return Z[u](F,t)},r,t)}:function(F){return Z[u](F,t)};
b.debugName||(b.debugName=String(u));if(!Z[String(u)])return document.createComment("");var r=sjE(D,u,t);return _.X(b,{data:r})})}):_.X(_.a2,null)};
Y8F=function(y){var W=y.targetId||uTH(y.children);if(!y.data||!W||_.O("mweb_new_replaceables_killswitch"))return Object.assign({},y,{mapping:y.children,wrapper:void 0});var c="stamper-"+t$O++,Z=function(){var u;return(u=_.gV(y.targetId))!=null?u:c};
W=_.z(nGE(function(){var u=mGy(y.data());u.targetId=Z;return u})).next().value;
var G=Object.assign({},sV().replaceableMapping,y.children);if(y.replacementWrapper){var D=G.notificationTextRenderer,Y=G.notificationMultiActionRenderer;D&&(G.notificationTextRenderer=function(u,t){return y.replacementWrapper(D({data:u.data},t))});
Y&&(G.notificationMultiActionRenderer=function(u,t){return y.replacementWrapper(Y({data:u.data},t))})}return Object.assign({},y,{data:W,
mapping:G,wrapper:function(u,t,b){return fXF({targetId:Z,stamperIndex:b},u)}})};
sjE=function(y,W,c){var Z;return _.Yk(function(){var G=y()[c()];if(G)Z=G[W];else return _.Rs(new _.ul("Stamper failed to find "+String(W)+" at index "+c()+" of data array of length "+(y().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Z;return G[W]},void 0,"DHuMIe")};
uTH=function(y){y=_.z(Object.keys(y));for(var W=y.next();!W.done;W=y.next())if(W=W.value,X6t.includes(W)||brt.includes(W)||r_w.includes(W))return!0;return!1};
mGy=function(y){return y?Array.isArray(y)?y:[y]:[]};
Fiw=function(y){y=_.g(y,_.ri);return(y==null?void 0:y.iconName)&&!(y==null?0:y.title)};
Kiw=function(y,W,c){var Z;return _.X(_.a2,null,y==null?void 0:(Z=y.actions)==null?void 0:Z.map(function(G){return _.X("div",{class:function(){var D={"yt-flexible-actions-view-model-wiz__action":!0};D["yt-flexible-actions-view-model-wiz__action--row-action"]=W;D["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(Fiw(G))var Y=!0;else if(Y=_.g(G,_.F5),(Y==null?0:Y.isToggled)&&Fiw(Y==null?void 0:Y.toggledButtonViewModel)||(Y==null||!Y.isToggled)&&Fiw(Y==null?void 0:Y.defaultButtonViewModel))Y=
!0;else{var u;Y=((u=_.g(G,UGI))==null?0:u.playlistId)?!0:!1}D=(D["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Y,D["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=c,D);return _.wZ(D)}},$GH([G],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!W}}))}))};
Orf=function(y){var W=y.layout===1,c,Z=((c=y.data)==null?void 0:c.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";c={};Z=(c["yt-flexible-actions-view-model-wiz"]=!0,c["yt-flexible-actions-view-model-wiz--inline"]=!W,c["yt-flexible-actions-view-model-wiz--scrollable"]=Z,c);var G,D;return _.X("yt-flexible-actions-view-model",{class:_.wZ(y.className,Z)},(G=y.data)==null?void 0:(D=G.actionsRows)==null?void 0:D.map(function(Y){if(W){var u;return _.X("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Kiw(Y,W,!((u=y.data)==null||!u.respectActionIntrinsicWidth)))}return Kiw(Y,W,!1)}))};
gGg=function(y){return!(y==null||!y.iconName||(y==null?0:y.title))};
RaE=function(y){var W=_.g(y.data.toggleButtonViewModel,_.F5),c,Z=(c=y.data.dislikeEntityKey)!=null?c:"",G=_.cG(Ue,Z);W=Object.assign({},W,{isToggled:G?G.likeStatus==="DISLIKE":W.isToggled});return _.X("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.X(_.UV,{data:W,buttonShapeOverrides:y.buttonShapeOverrideables,onToggle:function(D){G&&D!==(G.likeStatus==="DISLIKE")&&G.key&&_.PQ(_.$Y("likeStatusEntity",G.key,{likeStatus:D?"DISLIKE":"INDIFFERENT",hadUserInteraction:D}))}}))};
EGI=function(y){var W=_.O("web_supports_animations_api"),c=_.g(y.data.toggleButtonViewModel,_.F5),Z,G,D,Y,u=_.z(j8({numberText:(Y=(Z=y.likeCountEntity)==null?void 0:(G=Z.likeCountIfIndifferent)==null?void 0:G.content)!=null?Y:"",numberValue:Number((D=y.likeCountEntity)==null?void 0:D.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),t=u.next().value,b=u.next().value,r,F,K,l;Z=_.z(j8({numberText:(l=(r=y.likeCountEntity)==null?void 0:(F=r.likeCountIfLiked)==null?void 0:F.content)!=null?
l:"",numberValue:Number((K=y.likeCountEntity)==null?void 0:K.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));r=Z.next().value;var N=Z.next().value;F=_.z(j8());var P=F.next().value,V=F.next().value,Q;F=(Q=y.data.likeStatusEntityKey)!=null?Q:"";var S,cy;Q=(cy=(S=y.likeCountEntity)==null?void 0:S.key)!=null?cy:"";var M=_.cG(Ue,F),fa=_.cG(kch,Q);S=Fl(function(){return(M==null?void 0:M.likeStatus)==="LIKE"},[M]);
b1(function(){var jI,sD=fa&&((jI=fa.likeCountIfIndifferent)==null?void 0:jI.content)!==t.numberText;if(!P&&sD){var ED,N1;b({numberText:(N1=fa==null?void 0:(ED=fa.likeCountIfIndifferent)==null?void 0:ED.content)!=null?N1:"",numberValue:Number(fa==null?void 0:fa.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var bf,Py;N({numberText:(Py=fa==null?void 0:(bf=fa.likeCountIfLiked)==null?void 0:bf.content)!=null?Py:"",numberValue:Number(fa==null?void 0:fa.likeCountIfLikedNumber),heightPx:36,
shouldAnimate:!0})}},[fa]);
c=Object.assign({},c,{isToggled:S});W=W&&y.likeCountEntity;return _.X("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.X(_.UV,{data:c,buttonShapeOverrides:y.buttonShapeOverrideables,animatedTextPropsDefault:W?t:void 0,animatedTextPropsToggled:W?r:void 0,onToggle:function(jI){l7g(jI,M,P,V)},
style:function(){return y.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
l7g=function(y,W,c,Z){c&&_.KX.cancelJob(c);c=_.KX.addLowPriorityJob(function(){Z(void 0)},5E3);
Z(c);W&&y!==(W.likeStatus==="LIKE")&&W.key&&_.PQ(_.o3("likeStatusEntity",W.key,{key:W.key,likeStatus:y?"LIKE":"INDIFFERENT",hadUserInteraction:y}))};
J_F=function(y){var W,c=_.g((W=y.data)==null?void 0:W.likeButtonViewModel,N0E),Z;W=_.g((Z=y.data)==null?void 0:Z.dislikeButtonViewModel,I7F);var G,D=(G=_.cG(Ue,(c==null?void 0:c.likeStatusEntityKey)||""))!=null?G:c==null?void 0:c.likeStatusEntity;Z=Fl(function(){var Y=y.data,u;Y=(Y==null?void 0:(u=Y.timedAnimationData)==null?void 0:u.animationTiming)||[];return{uniqueId:"like-dislike",timings:Y,enabled:(D==null?void 0:D.likeStatus)==="INDIFFERENT"&&Y.length>0,experimentEnabled:Y.length>0}},[y.data,
D]);return _.X("segmented-like-dislike-button-view-model",{class:_.wZ(y.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.X(_.p6t,{settings:Z},_.X("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},c?_.X(EGI,{data:c,likeCountEntity:y.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,W?_.X(P4t,{data:W,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
V$w=function(y,W){var c=xA.get(y)||{layerNode:W};c.layerNode=W;EHh(y,c);y.getScreenLayer=function(){return Kp(c.layerNode)}};
C4D=function(y){var W;y=y.parentNode;for(var c;y&&((W=xA.get(y))==null||!W.isRenderer)&&!((c=y.polymerController)!=null?c:y).isRenderer_;)y=y.parentNode||y.host;if(W=y)return xA.get(W)};
Qjy=function(y){if(y){xA.delete(y);var W=_.U().resolve(xg);ElH(y,W)}};
haD=function(y,W,c){if(c===void 0?0:c){if(c=y.getAttribute("client-ve-type"),W.data&&!W.disableReactiveLogging||c)_.UN(function(){A_g(y,_.gV(W.data))}),_.KL(function(){return void Qjy(y)})}else typeof W.data!=="function"&&A_g(y,W.data)};
A_g=function(y,W){B0w++;Hrw(y,W)&&_.KX.addJob(function(){_.X5(_.KX,function(){if(Hrw(y,W)&&y.ownerDocument.documentElement===document.documentElement&&y){var c;if(y.getAttribute("layer")){var Z=c=Number(y.getAttribute("layer")),G=xA.get(y);G?G.layerNode.layer=Z:V$w(y,new LiI(Z));(Z=C4D(y))&&(G=xA.get(y))!=null&&(G.layerNode.parent=Z.layerNode)}else if(c=xA.get(y))c=Kp(c.layerNode);else{c=Kp;Z=new LiI;if(G=C4D(y))Z.parent=G.layerNode;V$w(y,Z);c=c(Z)}c!=null||(c=0);Z=y.getAttribute("client-ve-type");
G=Number(Z);var D=!1;Z=!1;var Y=xA.get(y),u;if((u=Y)&&!(u=Y[vGI]!==W)&&(u=G)){var t;u=((t=xA.get(y))==null?void 0:t.clientVeType)===void 0}u&&(Y[vGI]=W,D=Z=Y.isRenderer=!0);xA.has(y)&&(xA.get(y).clientVeType=G);y.visualElement&&(Z=!0);(t=W==null?void 0:W.loggingDirectives)&&t.clientVeSpec&&(Y=dGa(_.Wh(),y),t=_.S81(_.Zz(),t,Y||void 0,c))&&(y.visualElement=t);!y.visualElement&&G&&D&&(y.veType=G,t=void 0,_.O("wiz_next_client_ve_parent_fix")&&(t=dGa(_.Wh(),y)),t=_.ch(_.Zz(),y,t,c),y.visualElement=t);
Z&&(t=_.U().resolve(xg),PbI(y,{data:W,observer:t,layer:c,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
Hrw=function(y,W){return(W==null?0:W.trackingParams)||(W==null?0:W.loggingDirectives)||_.g(W==null?void 0:W.rendererContext,_.JrD)||y.getAttribute("client-ve-type")?!0:!1};
a7a=function(y){return _.O("cow_logging_in_component_wrapper")?function(W){haD(W,y,!0)}:T0I};
T0I=function(){};
_.xGw=function(y,W){return _.fq(y.entities,"accountLinkStatusEntity",W)};
irI=function(y,W){return _.fq(y.entities,"hatsSurveyEntity",W)};
M$y=function(y,W){return _.fq(y.entities,"hatsSurveyStateEntity",W)};
eaI=function(y,W){return _.fq(y.entities,"quantityIncrementerEntity",W)};
ybD=function(y){var W=y.data;var c=y.className===void 0?"":y.className;var Z=y.setMinWidth;y=y.forceIconOnly;var G=_.HO(a7a({data:W}));Z=Z?"ytwAccountLinkButtonViewModelHostMinWidth":"";var D=_.Zx(_.xGw,function(){var F;return(F=_.gV(W).accountLinkStatusEntityKey)!=null?F:""}),Y=_.Zx(_.xGw,function(){var F;
return(F=_.gV(W).accountLinkStatusSecondaryEntityKey)!=null?F:""}),u=function(){if(!_.O("web_account_link_secondary_killswitch")){var F,K;
return((F=D())==null?void 0:F.linked)||((K=Y())==null?void 0:K.linked)}var l;return(l=D())==null?void 0:l.linked};
_.$k(function(){var F=D();if(F){var K=w6a(new q8I,kBh(new jgh,!!F.linked));_.wI().then(function(l){l&&(l.setAccountLinkState(_.OB(K.JSC$9915_serializeBinary(),4)),l.updateAccountLinkingConfig(!!F.linked))})}});
var t=function(){return _.g(_.gV(W).toggleButtonViewModel,_.F5)};
_.BO("yt-signal-action-show-account-link-dialog",function(){if(t()){var F=u()?t().toggledButtonViewModel:t().defaultButtonViewModel;F=_.g(F,_.ri);var K;if((K=D())==null?0:K.isWarning){K=_.g(_.gV(W).warningButtonViewModel,_.ri);if(!K){_.Va(Error("Ah"));return}F=K}var l;(K=_.UH((l=F)==null?void 0:l.onTap))&&_.tE([K],G.value)}else _.Va(Error("Bh"))});
var b=function(){var F=t();return Object.assign({},F,{isToggled:u()})},r=y?{iconPosition:"icon-only"}:{};
return _.X("account-link-button-view-model",{class:_.wZ("ytwAccountLinkButtonViewModelHost",c,Z),el:G,"button-renderer":!0},_.X("div",null,_.X(_.YN,{cond:function(){var F;if((F=D())==null?0:F.isWarning)return(F=_.g(_.gV(W).warningButtonViewModel,_.ri))||_.Va(Error("Ah")),F},
then:function(F){return _.X(_.OV,{data:F,buttonOverrides:r})},
else:function(){return _.X(_.UV,{data:b,buttonShapeOverrides:r})}})))};
Wka=function(y){switch(y){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}};
cby=function(y){switch(y){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}};
ZYI=function(y){switch(y){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"}};
_.f1E=function(y){var W=_.ey("web_generic_client_event_wait_period ",0);W||(W=3E5);var c=G4E.get(y);!_.O("enable_web_client_experiment_event_timeout_killswitch")&&c&&(0,_.Tj)()-c<W||(G4E.set(y,(0,_.Tj)()),_.$g("genericClientExperimentEvent",{eventType:y}))};
zxE=function(y){var W=y.data;var c=y.children;var Z=oBg(W),G=(W==null?0:W.thumbnailSize)?W.thumbnailSize:"medium";y=!(W==null||!W.doubleStack);var D=!(W==null||!W.experimentEnabled),Y={},u=(Y["collections-stack-wiz__collection-stack1"]=!0,Y[DIH(G)]=!0,Y);if(W==null?0:W.customClassName1stStack)u[W.customClassName1stStack]=!0;G={};var t=(G["collections-stack-wiz__collection-stack2"]=y,G["collections-stack-wiz__collection-stack2--responsive-mode"]=W==null?void 0:W.enableResponsiveMode,G);if(W==null?
0:W.customClassName2ndStack)t[W.customClassName2ndStack]=!0;return _.X("yt-collections-stack",{class:"collections-stack-wiz",hidden:!D},_.TY(W,function(){return _.X("div",null,_.TY(W.doubleStack,function(){return _.X("div",{class:_.wZ(t),style:"background-color:"+Z})}),_.X("div",{class:_.wZ(u),
style:"background-color:"+Z}),c)}))};
DIH=function(y){switch(y){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""}};
oBg=function(y){if(!y)return"";var W,c=(W=_.U().resolve(_.xN(_.EH)))==null?void 0:W(),Z;if(!c&&((Z=y.vibrantColorPalette)==null?0:Z.iconInactiveColor))return Ot(y.vibrantColorPalette.iconInactiveColor,"1");var G;return c&&((G=y.darkColorPalette)==null?0:G.iconInactiveColor)?Ot(y.darkColorPalette.iconInactiveColor,"1"):y.color?Ot(y.color,"1"):y.sampledThumbnailColor?(y=y.sampledThumbnailColor,"rgba("+y.red+","+y.green+","+y.blue+");"):""};
_.gi=function(y,W){if(!y.includes("DATE_PLACEHOLDER"))return y;var c=new Date(0);c.setUTCSeconds(W);return y.replace("DATE_PLACEHOLDER",YTI(c))};
_.R3=function(y){y=_.mIO(y);return _.O("web_watch_enable_single_column_grid_view")?y:!1};
_.mIO=function(y){return y.watch.isWatchNarrowWidth};
sgD=function(y,W,c){return function(Z){var G=y.command;G&&(m$(G,{form:{element:c}}),W([G],Z))}};
tKt=function(y,W,c,Z,G){return function(D){var Y=u0a(y,c);Y&&m$(Y,{form:{element:Z},commandController:G});W&&W.stopPropagation&&D.stopPropagation()}};
u0a=function(y,W){if(y.signInEndpoint&&!_.O("web_subscribe_sign_in_endpoint_killswitch"))return y.signInEndpoint;if(W){if(y.serviceEndpoints)return y.serviceEndpoints[1];if(y.onUnsubscribeEndpoints)return y.onUnsubscribeEndpoints[0]}else{if(y.serviceEndpoints)return y.serviceEndpoints[0];if(y.onSubscribeEndpoints)return y.onSubscribeEndpoints[0]}};
nBI=function(y,W){var c,Z,G,D;W=W&&((c=y.unsubscribeAccessibility)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label)||((G=y.subscribeAccessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label);return y.longSubscriberCountText?[W,_.v$(y.longSubscriberCountText)].filter(function(Y){return Y}).join(" "):W};
lg=function(y,W){return W||(y==null?0:y.isChannelDelegate)?"disabled":"active"};
Xew=function(y,W){var c;switch((c=y.style)==null?void 0:c.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:lg(y)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:lg(y)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:lg(y,!0)};case "OVERLAY":return W?{style:"overlay",type:"tonal",state:lg(y)}:{style:"overlay",type:"filled",state:lg(y)};default:return W?{style:"mono",type:"tonal",state:lg(y)}:{style:"mono",type:"filled",state:lg(y)}}};
bYg=function(y,W){var c=y.map(function(Z){return Z.toString()});
return _.j9(function(Z){if(c.includes(Z.key)){W&&Z.preventDefault();var G;(G=Z.currentTarget)==null||G.click()}})};
_.EV=function(){return bYg(["Enter"])};
_.rb1=function(){return bYg(["Enter"," "],!0)};
_.N8=function(y){if(y.composedPath)return y.composedPath();if(!y.__composedPath){for(var W=[],c=y.target;c;)W.push(c),c=c.parentNode;W.push(window);y.__composedPath=W}return y.__composedPath};
_.Fkw=function(y,W,c){y=_.z(y);for(var Z=y.next();!Z.done;Z=y.next()){Z=Z.value;if(Z===W)break;for(var G=_.z(c),D=G.next();!D.done;D=G.next())if(D=D.value,Z.tagName===D||Z.role==="button"&&D==="BUTTON")return!0}return!1};
$It=function(y,W){var c,Z=(c=W.observer)!=null?c:_.U().resolve(xg);if(y){c=UIy(y);var G=[];W.showOption&&G.push(Z.observe(y,function(){W.visibilityCallback(!0)},W.showOption));
W.hideOption&&G.push(Z.observe(y,function(){W.visibilityCallback(!1)},W.hideOption));
W.prescanOption&&W.prescanCallback&&G.push(Z.observe(y,function(){W.prescanCallback()},W.prescanOption));
var D;c.visibilityMonitorKeys=((D=c.visibilityMonitorKeys)!=null?D:[]).concat(G)}};
UIy=function(y){var W;return(W=y.polymerController)!=null?W:y};
_.PG=function(y){return!!_.pp(y)};
_.Jz=function(y,W){var c=oJI();b1(function(){var Z=y.value;if(Z)return KkH(Z,W),OYw(Z,W,void 0,void 0,void 0,c)},[W])};
_.VL=function(y,W,c,Z,G,D){var Y=oJI();_.$k(function(){var u=y.value;u&&(KkH(u,W(),D),u=OYw(u,W(),c,Z,G,Y),_.KL(u))})};
KkH=function(y,W,c){var Z=gBg(W),G=Rxw(W);W=Z&&l1F;var D=G&&EBI;(Z||G)&&$It(y,{visibilityCallback:function(Y){var u=_.U().resolve(_.i1);Y&&Z?u.resolveCommand(Z,{form:{element:c?y:void 0},disableClickTracking:!0}):!Y&&G&&u.resolveCommand(G,{form:{element:c?y:void 0},disableClickTracking:!0})},
showOption:W,hideOption:D})};
OYw=function(y,W,c,Z,G,D){var Y=new Map;if(W=_.pp(W)){var u;y=(Z==null?void 0:(u=Z.onTap)==null?void 0:u.value)||y;c=Nww(W,y,c==null?void 0:c.onTap,G,D);y.addEventListener("click",c);Y.set("click",c)}return function(){for(var t=_.z(Y),b=t.next();!b.done;b=t.next()){var r=_.z(b.value);b=r.next().value;r=r.next().value;y.removeEventListener(b,r)}}};
_.pp=function(y){var W;return(y=(W=_.g(y,I1H))==null?void 0:W.onTap)&&_.UH(y)};
gBg=function(y){var W;return(y=(W=_.g(y,I1H))==null?void 0:W.onVisible)&&_.UH(y)};
Rxw=function(y){var W;return(y=(W=_.g(y,I1H))==null?void 0:W.onHidden)&&_.UH(y)};
Nww=function(y,W,c,Z,G){var D=function(u){_.U().resolve(_.i1).resolveCommand(y,u)},Y=function(u){Z&&_.Fkw(_.N8(u),W,Z)||D(u.target?{form:{element:u.target,
sourceData:y,mutationContext:G}}:void 0)};
c&&(Y=function(u){c(u,D)});
return Y};
peI=function(y){var W=y.data;var c=y.className;y=y.alwaysShow;var Z=_.HO();_.Jz(Z,W.rendererContext);a:switch(W.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var G="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:G="ytThumbnailHoverOverlayViewModelStyleCover"}G=_.wZ("ytThumbnailHoverOverlayViewModelScrim",G);var D,Y=(D=_.g(W==null?void 0:W.rendererContext,_.Cp))==null?void 0:D.label,u=_.pp(W.rendererContext)!==void 0;D=u?"button":void 0;u=u?0:void 0;var t=_.rb1(),b={};return _.X("thumbnail-hover-overlay-view-model",
{el:Z,class:_.wZ("ytThumbnailHoverOverlayViewModelHost",c,(b.ytThumbnailHoverOverlayViewModelHostForceHover=y,b)),"aria-label":Y,role:D,tabindex:u,"on:keypress":t},_.X("div",{class:G},W.icon?_.X(_.J3,{data:W.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,W.text?_.X(_.Da,{text:W.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
Pdy=function(y){switch(y){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}};
Jbf=function(y){switch(y){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""}};
VKg=function(y){switch(y){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""}};
Cdw=function(y){switch(y){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}};
Qg1=function(y){return y==="medium"||y==="48"||y==="large"||y==="extra-large"||y==="extra-extra-large"||y==="giant"};
AbE=function(y){return!!((y==null?0:y.includes(3))||(y==null?0:y.includes(5)))};
BwI=function(y){return{size:hxD(y.data.avatarImageSize),onTap:y.onTap,decorations:y.decorations||[],badgeText:y.badgeText,accessibilityText:y.accessibilityText,avatarButtonCustomClassName:y.avatarButtonCustomClassName}};
hxD=function(y){switch(y){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"}};
HYf=function(y){function W(){c.endpoint&&_.OH(c.endpoint)}
var c=y.data;var Z=y.decorations;var G=y.avatarButtonCustomClassName;y=y.isOverlay;return _.X("avatar-view-model",null,c.image?_.X(QL,{data:BwI({data:c,onTap:c.endpoint?W:void 0,decorations:Z,badgeText:void 0,accessibilityText:c.accessibilityText,avatarButtonCustomClassName:G}),image:c.image,iconType:"RADAR_LIVE",overlays:function(){return _.X(Az,{data:c})},
isOverlay:y}):null)};
vBF=function(y){var W=y.data;var c=y.avatar;var Z=y.onTap;var G=y.element;y=y.commandController;Z=Z?LkI(Z,G,y):void 0;G=[];W.liveData&&G.push(0);var D;y=(D=W.liveData)==null?void 0:D.liveBadgeText;var Y;D=(Y=_.g(W.rendererContext,_.Cp))==null?void 0:Y.label;return BwI({data:c,onTap:Z,decorations:G,badgeText:y,accessibilityText:D?D:W.a11yLabel})};
LkI=function(y,W,c){return function(){m$(y,{form:{element:W},commandController:c})}};
dIf=function(y,W,c,Z){return W?vBF({data:y,avatar:W,onTap:c,element:Z}):{size:"medium"}};
STg=function(y){var W=y.data;y=y.className;var c=_.LD(),Z=_.g(W.avatar,_.hz),G=_.pp(W.rendererContext),D,Y=dIf(W,Z,G,(D=c.value)!=null?D:void 0);return _.X("yt-decorated-avatar-view-model",{class:_.wZ("yt-decorated-avatar-view-model-wiz",y),el:c},_.TY(Z==null?void 0:Z.image,function(){var u,t,b;return _.X(QL,{data:Y,image:Z.image,iconType:"RADAR_LIVE",overlays:function(){return _.X(Az,{data:Z})},
idomKey:Z==null?void 0:(u=Z.image)==null?void 0:(t=u.sources)==null?void 0:(b=t.at(0))==null?void 0:b.url})}))};
Tw1=function(y){switch(y){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}};
a1I=function(y){switch(y){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""}};
xIy=function(y){var W=0;y.avatars&&(W+=y.avatars.length);y.decoratedText&&(W+=1);return W};
MKw=function(y){var W=y.data,c=W.avatars,Z=W.text,G=W.rendererContext,D=W.decoratedText,Y=(W=_.HO())&&_.PG(G);_.Jz(W,G);var u=xIy(y.data)>1,t,b=c&&c.length>0?Tw1((t=_.g(c[0],_.hz))==null?void 0:t.avatarImageSize):0,r,F=c&&c.length>0?(r=_.g(c[0],_.hz))==null?void 0:r.avatarImageSize:"AVATAR_SIZE_UNKNOWN",K,l;t={};return _.X("yt-avatar-stack-view-model",{el:W,class:_.wZ("yt-avatar-stack-view-model-wiz",y.className,(t["yt-avatar-stack-view-model-wiz--tappable"]=Y,t["yt-avatar-stack-view-model-wiz--is-overlay"]=
y.isOverlay,t["yt-avatar-stack-view-model-wiz--medium-text"]=y.useMediumText,t)),tabindex:Y?0:void 0,role:Y?"link":void 0,"aria-label":(l=(K=_.g(G,_.Cp))==null?void 0:K.label)!=null?l:""},_.TY(c&&!y.hideAvatar,function(){return _.X("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.TY(D,function(){var N={};return _.X("div",{class:_.wZ("yt-avatar-stack-view-model-wiz__text-container",(N["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=F==="AVATAR_SIZE_XXS"||F==="AVATAR_SIZE_XS",
N["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=y.isOverlay&&(F==="AVATAR_SIZE_XXS"||F==="AVATAR_SIZE_XS"),N)),style:"width: "+b+"px; height: "+b+"px"},_.X(_.Da,{text:D,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),c.slice().reverse().map(function(N){return _.X("div",{class:a1I(F)},iYy(N,{avatarViewModel:{decorations:y.decorations?y.decorations:u?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:y.isOverlay}}))}))}),_.TY(Z,function(){return _.X(_.Da,{text:Z,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
exf=function(y){switch(y){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}};
weI=function(y){switch(y){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""}};
qTE=function(y){switch(y){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
k4F=function(y){var W=y.data;return _.X("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:y.hidden===void 0?!1:y.hidden},_.X(_.Da,{text:W.title,className:"yt-thumbnail-overlay-title-view-model__title"}),W.subtitle?_.X(_.Da,{text:W.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
jbF=function(y){switch(y){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"}};
yFy=function(y){var W=y.data;y=y.hidden===void 0?!1:y.hidden;var c={};y={class:_.wZ("yt-page-indicator-view-model",(c["yt-page-indicator-view-model__indicator--hidden"]=!W.indicatorCount,c)),hidden:y};if(W.indicatorCount){c=[];for(var Z=0;Z<W.indicatorCount;Z++){var G={};G=_.wZ("yt-page-indicator-view-model__indicator",(G["yt-page-indicator-view-model__indicator--selected"]=W.selectedIndex===Z,G));c.push(_.X("div",{class:G}))}W=_.X(_.a2,null,c)}else W=_.X(_.a2,null);return _.X("yt-page-indicator-view-model",
y,W)};
cFy=function(y){y&&(Wjy(y)?delete y.inlinePlayerData:"inlinePlaybackEndpoint"in y&&delete y.inlinePlaybackEndpoint)};
ZEH=function(y){if("accessibilityText"in y)return y.accessibilityText||"";if("title"in y){var W,c,Z;return((W=y.title)==null?void 0:(c=W.accessibility)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label)||""}if("accessibility"in y){var G,D;return((G=y.accessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)||""}return""};
Wjy=function(y){return"inlinePlayerData"in y};
BG=function(y){return new Gla(y)};
_.fIa=function(y,W,c,Z,G,D){var Y=function(b){b.preventDefault()},u=function(){var b=y.value;
if(b)return(b._data=W)?(b.addEventListener("touchstart",O1H,{passive:!0}),b.addEventListener("click",RSI),W.clickTrackingParams&&(b.params={itct:W.clickTrackingParams}),lFw(b,W),hn(b,EvI(W)||"")):b.addEventListener("click",Y),function(){W?(b.removeEventListener("touchstart",O1H,{passive:!0}),b.removeEventListener("click",RSI)):b.removeEventListener("click",Y)}},t=function(){var b=y.value;
if(b){var r=_.KN({innertubeCommand:W,elementsCommand:c,forceNewState:Z,stopPropagation:D});if(r)return b._data=r._data,r["aria-haspopup$"]&&b.setAttribute("aria-haspopup",r["aria-haspopup$"].toString()),r["force-new-state$"]&&b.setAttribute("force-new-state",r["force-new-state$"].toString()),r.href$&&hn(b,r.href$),r.rel$&&(b.rel=r.rel$),r.role$&&b.setAttribute("role",r.role$),r.target$&&(b.target=r.target$),b.params=r.params,r.onclick&&b.addEventListener("click",r.onclick),r.onpointerdown&&b.addEventListener("onpointerdown",
r.onpointerdown),function(){r.onclick&&b.removeEventListener("click",r.onclick);r.onpointerdown&&b.removeEventListener("onpointerdown",r.onpointerdown)}}};
b1(G?t:u,[W,c])};
o9w=function(y){var W=y.children;var c=y.className;var Z=y.dir;var G=y.style;var D=y.role;var Y=y.ariaSelected;var u=y.ariaLabel;var t=y.ariaHidden;var b=y.ariaLabelledby;var r=y.ariaDescribedby;var F=y.command;var K=y.elementsCommand;var l=y.forceNewState;var N=y.isPlaceholder;var P=y.tabIdentifier;var V=y.target;var Q=y.tabIndex;var S=y.useATagConfig;var cy=y.stopPropagation;y=_.HO();_.fIa(y,F,K,l,S,cy);K=_.j9(function(){return cy===!1});
return _.X("a",{el:y,"on:click":K,class:c,style:G,dir:Z,role:D?D:F?void 0:"group","aria-hidden":t?!0:void 0,"aria-label":u,"aria-labelledby":b,"aria-describedby":r,"aria-selected":Y,tabindex:Q!==void 0?Q:void 0,target:V,"tab-identifier":P,"force-new-state":l?!0:void 0,"is-placeholder":N?!0:void 0},W)};
zHH=function(y){var W=y.data;y=_.j9(function(){var G=_.g(W.onTap,_.Fx);G&&_.U().resolve(_.i1).resolveCommand(G);return!1});
var c={sources:[{url:W.thumbnailUrl,width:120,height:90}]},Z=W.rating&&W.ratingA11yLabel&&W.reviewsCount&&W.reviewsCountA11yLabel;return _.X("place-data-view-model",null,W.placeName&&W.placeCategory?_.X("div",{class:"yt-spec-place-data-view-model-shape","on:click":y},_.X(_.J3,{data:c,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+DzH}),_.X(o9w,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.g(W.onTap,_.Fx),forceNewState:!0,
useATagConfig:!0},_.X("h3",{class:"yt-spec-place-data-view-model-shape__name",title:W.placeName},W.placeName)),_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata"},Z?_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.X("span",{class:"score",title:W.ratingA11yLabel},W.rating),_.X("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.X(_.Gb,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.X("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:W.reviewsCountA11yLabel},W.reviewsCount)):_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.X("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.X("span",{class:"category",title:W.placeCategory},W.placeCategory)))):null)};
YYg=function(y){return function(W){y&&(y.thumbnailElRef=W.thumbnailElRef,y.thumbnail=W.thumbnail,y.thumbnailOverlays=W.thumbnailOverlays,y.thumbnailSize=W.thumbnailSize)}};
mzO=function(y){var W;return(W=y.sharedUi)==null?void 0:W.animatedThumbnailEnabled};
sbg=function(y){var W;return(W=y.sharedUi)==null?void 0:W.inlinePreviewEnabled};
_.ugt=function(y){var W;return(W=y.sharedUi)==null?void 0:W.currentPageSubType};
tUh=function(){return _.X("div",{class:"yt-pinking"},_.X("svg",{class:"yt-pinking__pinking-left"},_.X("defs",null,_.X("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.X("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.X("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.X("svg",{class:"yt-pinking__pinking-right"},_.X("defs",null,_.X("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.X("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.X("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
n9D=function(y){switch(y){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"}};
Uzf=function(y){var W=[],c=y.data,Z=A7(y.width,y.height),G=_.U().resolve(_.xN(XrI)),D=_.HO(function(){W.push("elRef.value set")});
_.rj(function(){W.push("onInit");return function(){W.push("onCleanup")}});
_.rj(function(){var P;(P=y.playbackRef)==null||P.call(y,{thumbnailElRef:D,thumbnail:c.image,thumbnailOverlays:c.overlays,thumbnailSize:Z})});
var Y=f5f(mzO),u,t=(u=y.aspectRatio)!=null?u:0,b=(u=(c.image?_.zQE(c.image):t)<=1&&t===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",r=function(){D.value||_.Rs(new _.ul("Thumbnail elRef.value is null",W.join("\n")));G&&D.value&&G(D.value)},F={};
a:{if(!y.disableRounding&&!y.isClip)switch(Z){case "large":var K="yt-thumbnail-view-model--large";break a;case "small":K="yt-thumbnail-view-model--small";break a;default:K="yt-thumbnail-view-model--medium";break a}K=void 0}t=_.wZ("yt-thumbnail-view-model",y.className,n9D(t),K,(F["yt-thumbnail-view-model--cinematic"]=u,F));F=void 0;var l,N;(K=u?(l=y.data)==null?void 0:(N=l.backgroundColor)==null?void 0:N.lightTheme:void 0)&&(F="background-color:"+Ot(K,"1")+";");return _.X("yt-thumbnail-view-model",
{class:t,style:F,el:D},_.TY(u,function(){return _.X("div",{class:"yt-thumbnail-view-model__blurred-image"},_.X(_.J3,{data:c.image,alt:"",contentMode:b,targetWidth:y.width,onload:r}))}),_.X("div",{class:"yt-thumbnail-view-model__image"},_.X(_.J3,{data:c.image,
alt:"",contentMode:b,targetWidth:y.width,onload:r}),null),bEH(c.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:Z,isClip:y.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:y.lockupExperiments}}),_.TY(y.hovered,function(){return rFa(c.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.TY(y.hovered&&Y,function(){return Fjw(c.overlays)}),_.TY(y.isClip,function(){return tUh()}))};
$zF=function(y){switch(y){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"}};
lIO=function(y){var W=_.z(j8(-1)),c=W.next().value,Z=W.next().value,G=UE(function(){return new Kj1(Z)});
_.rj(function(){OEg(G,y.data.thumbnails.length);return function(){g9H(G)}});
var D;return _.X("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(D=y.data.thumbnails)==null?void 0:D.map(function(Y,u){var t=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!y.data.primaryThumbnail&&u===0&&t.push("yt-collection-thumbnail-slideshow--first-slide");u<=c&&t.push("yt-collection-thumbnail-slideshow--show-slide");u=t.join(" ");return _.X("div",{class:u},RHH(Y,{thumbnailViewModel:{disableRounding:y.disableRounding}}))}))};
N6D=function(y){var W=_.z(j8(!1)),c=W.next().value,Z=W.next().value;_.rj(function(){if(y){var G=_.U().resolve(_.xN(E9O));if(G){var D={triggeringElement:y,onDwellTriggeredFn:function(){Z(!0)},
onDwellEndFn:function(){Z(!1)}};
G.registerElement(D);return function(){G.unregisterElement(D)}}}});
return c};
IIO=function(y){var W=_.z(_.G9(!1,void 0,"RIOonf")),c=W.next().value,Z=W.next().value;_.rj(function(){var G=y==null?void 0:y();if(G){var D=_.U().resolve(_.xN(E9O));if(D){var Y={triggeringElement:G,onDwellTriggeredFn:function(){Z(!0)},
onDwellEndFn:function(){Z(!1)}};
D.registerElement(Y);_.KL(function(){D.unregisterElement(Y)})}}});
return c};
JFy=function(y){var W,c=(W=_.U().resolve(_.xN(_.EH)))==null?void 0:W(),Z=N6D(y.triggeringElement),G=!!y.data.primaryThumbnail,D=function(){var u;return _.X("div",null,prI(y.data.primaryThumbnail,{thumbnailViewModel:{width:y.width,height:y.height,aspectRatio:y.aspectRatio,disableRounding:y.disableRounding,className:G?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:y.hovered,playbackRef:y.playbackRef}}),_.TY(Z&&((u=y.data.thumbnails)==null?void 0:u.length),function(){return _.X("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.X(P8D,{data:y.data,disableRounding:!G}))}))};
W=y.data.stackColor;var Y={experimentEnabled:G,thumbnailSize:A7(y.width,y.height),doubleStack:y.doubleStack,color:c?W==null?void 0:W.darkTheme:W==null?void 0:W.lightTheme,enableResponsiveMode:!1};return _.X("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.TY(G,function(){return _.X(zxE,{data:Y},D())}),_.TY(!G,D))};
VUE=function(y,W,c){c?c(W):_.OH(W,y.target?{form:{element:y.target}}:void 0)};
_.di=function(y,W,c,Z){_.$k(function(){var G=y.value;if(G){var D=new Map,Y,u=(Y=W())==null?void 0:Y.onTap;u&&(Y=function(t){a:{var b=t.composedPath();b=_.z(b);for(var r=b.next();!r.done;r=b.next()){r=r.value;if(r===G)break;if(r.className.indexOf("HostIsClickableAdComponent")>=0||r.tagName==="A".toString()||r.tagName==="BUTTON".toString()){b=!0;break a}}b=!1}b||(_.O("enable_square_image_components_ui_web_with_float_button")?_.Z2(y.value,"yt-navigate",{endpoint:_.UH(u)}):VUE(t,u,c))},(Z==null?0:Z())||
_.O("enable_web_home_top_landscape_image_layout_level_click")?(G.addEventListener("tap",Y),D.set("tap",Y)):(G.addEventListener("click",Y),D.set("click",Y)));
_.KL(function(){for(var t=_.z(D),b=t.next();!b.done;b=t.next()){var r=_.z(b.value);b=r.next().value;r=r.next().value;G.removeEventListener(b,r)}})}})};
C8O=function(y,W){var c,Z=(c=y.interaction)==null?void 0:c.onTap;if(y=_.KN({elementsCommand:Z,forceNewState:!0,skipOnClick:!0}))return y.onclick=function(G){rMH(G)&&(G.preventDefault(),Z&&VUE(G,Z,W))},Uew(y)?y:void 0};
QbD=function(y){switch(y){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
AFy=function(y){switch(y){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
hHE=function(y){switch(y){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.B6h=function(y){return _.O("rich_grid_enable_dynamic_offset")&&y?Math.max(Math.round((y-_.ey("rich_grid_dynamic_offset_anchor_width",1300))/100*_.ey("rich_grid_dynamic_offset_offset_per_100",10)),_.ey("rich_grid_dynamic_offset_lower_bound",-60)):0};
HEw=function(y,W){switch(W){case 4:return 16;case 1:return y<528?16:y<1024?32:48;case 2:return(y>=528?16:8)/2;case 3:return(y<528?16:y<1024?32:48)+(y>=528?16:8)/2;default:return 0}};
LjI=function(y){var W=y.originalContainerWidth;var c=y.sizing;var Z=y.standardUnit;if(y.isCompactList&&W<528)return 1;switch(c){case "STANDARD":return Z;case "COMPACT":return Z+1;case "EXTRA_COMPACT":return _.O("web_responsive_extra_compact_2x")?Z*2:_.O("web_responsive_current")?Z===1?2:Z%2===0?Z/2*3:Z+2:Z<4?Z*2:Math.ceil(Z*3/2);case "MINI":return Z>1?Z*2:3;default:return Z}};
dzH=function(y){var W=y.containerWidth;var c=y.peek;var Z=y.gutter;var G=y.numItems;y=y.ignoreMaxWidthLimit;W=c?Math.max((W-c-Z*G)/G,0):Math.max((W-Z*(G-1))/G,0);return y?W:Math.min(W,v9F)};
_.S8=function(y){var W=y.containerWidth;var c=y.hasPeek;var Z=y.sizing;var G=y.marginSettings;var D=y.isCompactList;var Y=y.enableFullBleedForSingleCol;var u=y.standardUnitMinWidth;Z=Z||"STANDARD";c=!!c;y=W>=528?16:8;var t=c?W>=528?48:24:0;G=HEw(W,G);var b=Math.max(W-G*2,0);u=_.O("kevlar_disable_min_width_override")?void 0:u;u=Math.min(Math.max(Math.floor((b-t+y)/((u!=null?u:SYD)+_.B6h(W)+y)),1),6);var r=(Y=!!Y&&u===1)||u===1&&Z!=="STANDARD";c=c||r?b:Math.min(b,(v9F+y)*u-y);Z=LjI({originalContainerWidth:W,
sizing:Z,standardUnit:u,isCompactList:D});return{itemWidth:dzH({containerWidth:c,peek:t,gutter:y,numItems:Z,ignoreMaxWidthLimit:r}),gutter:y,maxContainerWidth:c,numItems:Z,margin:Y?0:G,contentMargin:HEw(W,1),typographyBump:dzH({containerWidth:c,peek:t,gutter:y,numItems:u,ignoreMaxWidthLimit:r})>400&&!(D&&W<528),standardUnit:u}};
T6H=function(y){switch(y){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.aIy=function(y){if(y){var W;if((W=y.responsiveContainerConfiguration)==null?0:W.responsiveSize)return T6H(y.responsiveContainerConfiguration.responsiveSize);if(y.layoutSizing)switch(y.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"}}};
xzg=function(y){if(y.fullbleed)return 1;switch(y.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
wrE=function(y,W,c,Z,G,D,Y,u){a:switch(y){case 4:D=!!(D&&D<100);break a;default:D=!1}a:switch(y){case 3:case 4:var t=Z==="LOCKUP_CONTENT_TYPE_CHANNEL"||Z==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:t=!1}a:switch(y){case 5:var b=!0;break a;case 4:b=!1;break a;default:b=!1}a:if(y===4&&Z==="LOCKUP_CONTENT_TYPE_SOURCE")var r=1;else switch(y){case 3:r=1;break a;default:r=0}return{isOverlay:b,isCard:iEI(Z,Y),sizing:W!=null?W:"STANDARD",typographyBump:c!=null?c:!1,isTiny:D,isCentered:t,isCollection:MU1(Z),
arrangement:r,addMarginForFullbleed:y===1&&Z!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:y===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:eHh(Z,G,u),disableRounding:y===5||iEI(Z,Y)||y===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:MU1(Z)?2:0,useLegacyTypography:!(u==null||!u.useLegacyTypography),useRichGridLegacyTypography:!(u==null||!u.useRichGridLegacyTypography)}};
MU1=function(y){switch(y){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}};
iEI=function(y,W){if(W&&y==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(y){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
eHh=function(y,W,c){if(W&&(c==null||!c.alwaysRespectPodcastShowAspectRatio||y!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(y){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}};
qYE=function(y){switch(y){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"}};
y4F=function(y,W,c){a:switch(y.badgeStyle){case "BADGE_OVERLAY":var Z=!0;break a;default:Z=!1}return{type:W?16:klO(y.badgeStyle),brNzRatingBadgeType:jDF(y.badgeStyle),text:y.badgeText,icon:y.iconName,isOverlay:Z,modern:c||_.O("web_modern_badge_view_model")}};
klO=function(y){switch(y){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
jDF=function(y){switch(y){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}};
c4I=function(y){var W=y.data?y4F(y.data,!!y.workaroundShortsIsThumbnailBadge,y.modern):void 0;return _.X("yt-badge-view-model",{class:_.wZ("yt-badge-view-model-wiz",y.class)},_.TY(W==null?void 0:W.brNzRatingBadgeType,function(){return _.X(WLg,{data:W})}),_.TY(W&&!W.brNzRatingBadgeType,function(){return _.X(_.TZ,{data:W})}))};
_.a3=function(y){if(y){var W;return((W=_.U().resolve(_.xN(_.EH)))==null?0:W())?y.darkThemeImage:y.image}};
f4F=function(y,W,c,Z,G,D){if(!c)return G&&D&&W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+G+"px; height: "+D+"px;":"";G=c.size;c=c.allowFullWidth;if(W==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&c)return"width: 100%;";if(G===void 0)return"";switch(y){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+G+"px; height: "+G+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+G+"px; height: "+1/ZJ1*
G+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+G*Gdy+"px; height: "+G+"px;";default:return(Z==null?0:Z.height)&&(Z==null?0:Z.width)?Z.width/Z.height>1?"max-width: "+G*Gdy+"px;":"max-width: "+G+"px;":"max-width: "+G+"px;"}};
o5D=function(y){var W;return y&&((W=_.a3(y.themedImage))!=null?W:y.image)};
D$g=function(y){var W;return y==null?void 0:(W=y.sources)==null?void 0:W[0]};
Y6F=function(y,W){var c,Z;return!!((y==null?0:(c=y.byline)==null?0:c.hideAvatar)&&((Z=_.g(W,z3a))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
m$E=function(y,W){var c,Z;return!!((y==null?0:(c=y.byline)==null?0:c.addPadding)&&((Z=_.g(W,z3a))==null?void 0:Z.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
sDH=function(y,W,c,Z){var G={},D=(G["yt-content-metadata-view-model-wiz__delimiter"]=!0,G["yt-content-metadata-view-model-wiz__delimiter--standalone"]=Z,G);return _.TY(W-1>c,function(){return _.X("span",{class:_.wZ(D),"aria-hidden":!0},y)})};
tpO=function(y,W){return _.X(_.Da,{text:y.text,linkInheritColor:!0,className:unI(W),userInput:!0})};
XD1=function(y){var W=y.metadataPart;var c=y.isOverlay;var Z=y.useMediumText;var G=y.hideAvatar;var D=1;W.maxLines!==void 0&&(D=W.maxLines);return _.X(_.a2,null,_.TY(W.avatarStack,function(){return n5w(W.avatarStack,{avatarStackViewModel:{isOverlay:c,useMediumText:Z,hideAvatar:G}})}),_.TY(W.text,function(){var Y=D;
return _.X(_.a2,null,W.tooltip?_.X("span",{title:W.tooltip,role:"tooltip"},tpO(W,Y)):tpO(W,Y))}))};
unI=function(y){switch(y){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"}};
bJw=function(y){var W=y.metadataRow;var c=y.isInline;var Z=y.delimiter;var G=y.isOverlay;var D=y.useMediumText;var Y=y.extensions;var u=Y6F(Y==null?void 0:Y.lockupMetadata,W);y=m$E(Y==null?void 0:Y.lockupMetadata,W);Y=!!((Y==null?0:Y.lockupMetadata)&&W.badges);var t={};y=(t["yt-content-metadata-view-model-wiz__metadata-row"]=!0,t["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=c,t["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=y,t["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
Y,t);var b,r;return _.X("div",{class:_.wZ(y)},(b=W.badges)==null?void 0:b.map(function(F){return _.X("div",{class:"yt-content-metadata-view-model-wiz__badge"},n5w(F))}),(r=W.metadataParts)==null?void 0:r.map(function(F,K){return _.X(_.a2,null,XD1({metadataPart:F,
isOverlay:G,useMediumText:D,hideAvatar:u}),sDH(Z,W.metadataParts.length,K,!1))}),_.TY(W.isSpacerRow&&!c,function(){return _.X("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
r4F=function(y){var W=y.className;var c=y.data;var Z=y.layout===void 0?0:y.layout;var G=y.isOverlay===void 0?!1:y.isOverlay;var D=y.useMediumText;var Y=y.extensions;y=_.HO();var u=Z===0;Z={};Z=(Z["yt-content-metadata-view-model-wiz"]=!0,Z["yt-content-metadata-view-model-wiz--inline"]=u,Z["yt-content-metadata-view-model-wiz--tappable"]=_.PG(c.rendererContext),Z["yt-content-metadata-view-model-wiz--medium-text"]=D,Z);_.Jz(y,c.rendererContext);return _.X("yt-content-metadata-view-model",{class:_.wZ(W,
Z),el:y},_.TY(c.metadataRows,function(){return c.metadataRows.map(function(t,b){return _.X(_.a2,null,bJw({metadataRow:t,isInline:u,delimiter:c.delimiter,isOverlay:G,useMediumText:D,extensions:Y}),_.TY(u&&!t.isSpacerRow,function(){return sDH(c.delimiter,c.metadataRows.length,b,!0)}))})}))};
FLI=function(y){switch(y){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"}};
U$I=function(y){if(y==null?0:y.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(y==null?void 0:y.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
$$F=function(y){if(y==null?0:y.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(y==null?void 0:y.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"}};
KLy=function(y){var W,c,Z,G,D,Y,u={},t=_.wZ(U$I(y.lockupStyle),$$F(y.lockupStyle),(u["yt-lockup-metadata-view-model-wiz"]=!0,u["yt-lockup-metadata-view-model-wiz--overlay"]=(W=y.lockupStyle)==null?void 0:W.isOverlay,u["yt-lockup-metadata-view-model-wiz--card"]=(c=y.lockupStyle)==null?void 0:c.isCard,u["yt-lockup-metadata-view-model-wiz--centered"]=(Z=y.lockupStyle)==null?void 0:Z.isCentered,u["yt-lockup-metadata-view-model-wiz--typography-bump"]=(G=y.lockupStyle)==null?void 0:G.typographyBump,u["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(D=y.lockupStyle)==null?void 0:D.useLegacyTypography,u["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(Y=y.lockupStyle)==null?void 0:Y.useRichGridLegacyTypography,u)),b,r,F,K,l,N;return _.X("yt-lockup-metadata-view-model",{class:t},_.TY(y.data.image,function(){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},xY(y.data.image))}),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.X("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(b=y.data.title)==null?void 0:b.content},_.TY(y.data.title,function(){return _.X(_.oL,{command:y.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:y.lockupAccessibilityLabel},_.X(_.Da,{text:y.data.title}))})),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},xY(y.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((r=y.lockupStyle)==null?void 0:r.typographyBump)||((F=y.lockupStyle)==null?void 0:F.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((K=y.lockupStyle)==null?void 0:K.arrangement)===0,addPadding:((l=y.lockupStyle)==null?void 0:l.arrangement)===1}}}}})),_.TY(y.data.attribution,function(){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},xY(y.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.X("div",null,xY(y.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:y.lockupStyle}}))),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},xY(y.data.menuButton,((N=y.lockupStyle)==null?0:N.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
OJF=function(y){switch(y.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"}}};
g5h=function(y){var W=_.ugt(_.I5().getState())||"";return y?y+W:""};
R3O=function(y){switch(y){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
E5I=function(y){var W=_.z(_.G9(void 0,void 0,"BIquNb")),c=W.next().value,Z=W.next().value,G=_.z(_.G9(void 0,void 0,"eR0GH"));W=G.next().value;var D=G.next().value,Y=_.z(_.G9(void 0,void 0,"UmkP0"));G=Y.next().value;var u=Y.next().value;Y=_.j9(function(b){if(l4w(_.N8(b)))return!1;Z(b);D(void 0);u(void 0);return!0});
var t=_.j9(function(b){y==null||y(b);if(l4w(_.N8(b)))return!1;D(b);Z(void 0);u(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:c,pointerDownEvent:W,pointerLeaveEvent:G},touchFeedbackOnPointerUp:Y,touchFeedbackOnPointerDown:t,touchFeedbackOnPointerLeave:function(b){l4w(_.N8(b))||(u(b),D(void 0),Z(void 0))}}};
l4w=function(y){var W=["BUTTON".toString()];y=_.z(y);for(var c=y.next();!c.done;c=y.next()){c=c.value;for(var Z=_.z(W),G=Z.next();!G.done;G=Z.next())if(c.tagName===G.value)return!0}return!1};
N1O=function(y){switch(y){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"}};
I4E=function(y){var W;return H1I(y,((W=y.content)==null?void 0:W.length)||0,!0)};
pDw=function(y){var W=I4E(y),c,Z;return(((c=y.content)==null?void 0:c.length)||0)>(((Z=W.content)==null?void 0:Z.length)||0)};
PkI=function(y){var W=y.isTruncated;var c=y.isAbsoluteButton;var Z=y.lineHeight;var G=y.contentRef.value,D=y.placeholderTruncationTextRef.value,Y=y.truncationTextRef.value;y=y.appDirection==="rtl";if(G&&D){var u=D.offsetLeft;y&&(u=G.offsetWidth-D.offsetWidth-D.offsetLeft);if(W){W=D.offsetWidth;D=G.offsetWidth;var t=c?D-W-70:u-70;Z="linear-gradient(\n      to top, transparent 0%,\n      transparent "+Z+"px,\n      #000 "+Z+"px,\n      #000 100%), linear-gradient(\n      to "+((y?"left":"right")+",\n      #000 0px,\n      #000 "+
t+"px,\n      transparent "+(c?D-W:t+70)+"px)");G.style.setProperty("-webkit-mask-image",Z);G.style.setProperty("mask-image",Z)}else G.style.setProperty("-webkit-mask-image",""),G.style.setProperty("mask-image","");c?y?(Y.style.setProperty("left","0"),Y.style.setProperty("right","unset")):(Y.style.setProperty("left",""),Y.style.setProperty("right","0")):y?(Y.style.setProperty("left","unset"),Y.style.setProperty("right",u+"px")):(Y.style.setProperty("left",u+"px"),Y.style.setProperty("right","unset"))}};
J4g=function(y,W,c,Z,G){var D=_.HO(),Y=_.HO(),u=_.HO(),t=I4E(y),b=_.U().resolve(_.I9),r=_.z(j8(pDw(y))),F=r.next().value,K=r.next().value,l=$N(null);b1(function(){function N(){if(D.value&&Y.value&&u.value){var Q=D.value;Q.scrollHeight-Q.offsetHeight>1?(K(!0),Z||PkI({isTruncated:!0,isAbsoluteButton:!0,lineHeight:c,contentRef:D,placeholderTruncationTextRef:Y,truncationTextRef:u,appDirection:b})):(Q=pDw(y),K(Q),Z||PkI({isTruncated:Q,isAbsoluteButton:!1,lineHeight:c,contentRef:D,placeholderTruncationTextRef:Y,
truncationTextRef:u,appDirection:b}))}}
var P,V;(P=l.value)==null||(V=P.stop)==null||V.call(P);P=new _.ig(N,17);N();l.value=P},[y.content,
W,c,b,Z,G]);_.rj(function(){var N=function(){var V,Q;(V=l.value)==null||(Q=V.fire)==null||Q.call(V)};
if(window.ResizeObserver){var P=new ResizeObserver(N);P.observe(D.value);return function(){var V,Q;(V=l.value)==null||(Q=V.stop)==null||Q.call(V);P.disconnect()}}window.addEventListener("resize",N);
return function(){var V,Q;(V=l.value)==null||(Q=V.stop)==null||Q.call(V);window.removeEventListener("resize",N)}});
return{isTruncated:F,displayText:t,contentRef:D,placeholderTruncationTextRef:Y,truncationTextRef:u}};
VpI=function(y){return _.X("button",{"aria-disabled":!0,disabled:!0,class:y.className,el:y.elRef,style:"line-height: "+y.lineHeight+"px;"},_.X(_.Da,{text:y.text}))};
Ckf=function(y){var W=y.text;var c=y.alwaysShowTruncationText;var Z=y.truncationText;var G=y.onExpandClick;var D=y.lineHeight===void 0?16:y.lineHeight;var Y=y.maxLines===void 0?2:y.maxLines;var u=y.disableTextMask===void 0?!1:y.disableTextMask;var t=y.isOverlay===void 0?!1:y.isOverlay;var b=y.accessibilityLabel===void 0?"":y.accessibilityLabel;var r=y.useMediumText===void 0?!1:y.useMediumText;y=_.j9(function(){return void(G==null?void 0:G())});
var F=J4g(W,Y,D,u,r),K=F.isTruncated;W=F.displayText;var l=F.contentRef,N=F.placeholderTruncationTextRef;F=F.truncationTextRef;var P={};c=_.wZ((P["truncated-text-wiz__absolute-button"]=!u,P["truncated-text-wiz__bottom-button"]=u,P["truncated-text-wiz--hidden"]=!(c||K),P));u={};t=_.wZ((u["truncated-text-wiz"]=!0,u["truncated-text-wiz--overlay"]=t,u["truncated-text-wiz--medium-text"]=r,u));return _.X("truncated-text",{class:t,"on:click":y,style:"line-height: "+D+"px;"},_.X("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:l,style:"max-height: "+Y*D+"px;"},_.X(_.Da,{text:W}),_.X(VpI,{text:Z,lineHeight:D,elRef:N,className:"truncated-text-wiz__inline-button"})),_.X("button",{"aria-label":b,class:c,el:F,style:"line-height: "+D+"px;"},_.X(_.Da,{text:Z})))};
QDE=function(y){return{content:y!=null?y:""}};
B1F=function(y){var W=y.data;var c;y={class:y.className};a:switch(W.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var Z="yt-video-attribute-view-model--vertical";break a;default:Z="yt-video-attribute-view-model--horizontal"}a:switch(W.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var G="yt-video-attribute-view-model--image-small";break a;default:G="yt-video-attribute-view-model--image-large"}a:switch(W.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var D="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":D="yt-video-attribute-view-model--image-avatar";break a;default:D=""}a:switch(W.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Y="yt-video-attribute-view-model--metadata-header";break a;default:Y=""}a:switch(W.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var u="yt-video-attribute-view-model--container-card";break a;default:u=""}var t=_.UH(W.onTap)||_.pp(W.rendererContext)?"yt-video-attribute-view-model--clickable":"";
Z=["yt-video-attribute-view-model",Z,G,D,Y,u,t].join(" ");if(W.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var b="";else G=W.lightColorPalette,D=W.darkColorPalette,Y=((b=_.U().resolve(_.xN(_.EH)))==null?0:b())&&D?D:G,b=(b=Y==null?void 0:Y.section2Color)?_.KZ(b):"";return _.X("yt-video-attribute-view-model",y,_.X("div",{class:Z,style:_.cF({"background-color":b})},_.X(o9w,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(c=_.UH(W.onTap))!=
null?c:_.pp(W.rendererContext),role:"group",forceNewState:!0},W.heroText||W.image?_.X(A4f,{data:W}):null,_.X(h3w,{data:W,sizeSmall:W.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
HJy=function(y){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:y.overflowMenuA11yLabel,onTap:function(W){W.preventDefault();W.stopPropagation();if(y.overflowMenuOnTap){var c=_.KN({elementsCommand:y.overflowMenuOnTap,forceNewState:!0});if(c==null?0:c.onclick)c.onclick(W)}}}};
A4f=function(y){y=y.data;var W,c=((W=_.U().resolve(_.xN(_.EH)))==null?0:W())&&y.darkThemeImage?y.darkThemeImage:y.image;W=HJy(y);return _.X("div",{class:"yt-video-attribute-view-model__hero-section"},c?_.X(_.J3,{data:c,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):y.heroText?_.X("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.X("span",{class:"yt-video-attribute-view-model__hero-text"},y.heroText)):null,y.overflowMenuOnTap?
_.X("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.X(M8,{data:W,iconName:"MORE_VERT"})):null)};
h3w=function(y){var W=y.data;var c=W.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",Z={};y={class:_.wZ("yt-video-attribute-view-model__metadata",(Z["yt-video-attribute-view-model--small-font"]=y.sizeSmall,Z)),role:"link"};Z=_.X("h1",{class:"yt-video-attribute-view-model__title"},W.title);c=W.subtitle?_.X("h4",{class:"yt-video-attribute-view-model__subtitle"},c?_.X(Ckf,{text:QDE(W.subtitle),truncationText:QDE(W.subtitleTruncationText),maxLines:2}):_.X("span",null,W.subtitle)):null;if(W.secondarySubtitle){var G=
W.secondarySubtitle;if(G!=null&&G.attachmentRuns){for(var D=[],Y=_.z(G.attachmentRuns),u=Y.next();!u.done;u=Y.next())u=u.value,u.element&&D.push(Object.assign({},u,{element:Object.assign({},u.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));G=Object.assign({},G,{attachmentRuns:D})}G=_.X("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.X(_.Da,{text:G}))}else G=null;return _.X("div",y,Z,c,G,W.buttonViewModel?
LLF(W.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
d$E=function(y){var W={};W=_.wZ("video-summary-content-view-model-wiz",y.className,(W["video-summary-content-view-model-wiz--is-search"]=!!y.isSearch,W));var c=_.g(y.data.likeButtonViewModel,N0E),Z=_.g(y.data.dislikeButtonViewModel,I7F),G=Fl(function(){var D=[],Y,u=(Y=y.data)==null?void 0:Y.paragraphs;if(u==null||!u.length)return[];for(Y=0;Y<u.length;Y++){var t=_.g(u[Y],v51),b=void 0;Y>0&&(b=_.g(u[Y-1],v51));b&&!!b.marker===!!t.marker?D[D.length-1].paragraphs.push(t):D.push({isList:!!t.marker,paragraphs:[t]})}return D},
[y.data]);
return _.X("video-summary-content-view-model",{class:W},G.map(function(D){return D.isList?_.X("ul",{class:"video-summary-content-view-model-wiz__list"},D.paragraphs.map(function(Y){return _.X("li",{class:"video-summary-content-view-model-wiz__list-item"},_.X(_.Da,{text:Y.text}))})):D.paragraphs.map(function(Y){return _.X("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.X(_.Da,{text:Y.text}))})}),_.TY(!!c&&!!Z,function(){return _.X("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.X("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.X(EGI,{data:c,
disableIconAnimation:!0})),_.X(P4t,{data:Z}))}))};
_.e8=function(y,W,c,Z,G){Z=Z===void 0?{}:Z;if(!G||Math.random()<5E-4){W=W||null;c=c||null;y=y instanceof Error?y:new _.ul(y);if(y.args)for(var D=_.z(y.args),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y instanceof Object&&(Z=Object.assign({},Y,Z));Z.category="H5 Ads Control Flow";W&&(Z.slot=W?"slot:  "+W.slotType:"");c&&(Z.layout=c?"layout:  "+c.layoutType:"",Z.layoutId=c.layoutId);G&&(Z.known_error_aggressively_sampled=!0);y.args=[Z];_.Rs(y)}};
_.S6I=function(y,W){_.GG(y,"yt-open-popup-action",[_.av(W),y])};
a4w=function(y){if(!y)return"";if(T1y[y])return T1y[y];wi||(wi=_.uC("A"));wi.href!==y&&hn(wi,y);var W=wi.pathname;T1y[y]=W.startsWith("/")?W:"/"+W;return T1y[y]};
x$y=function(){var y=a4w(window.location.href);if(y==="/")return"home";if(y.startsWith("/results"))return"search";if(y.startsWith("/watch"))return"watch";if(y.startsWith("/shorts"))return"shorts";if(y.startsWith("/hashtag"))return"hashtag";if(y.startsWith("/create_channel"))return"create_channel";if(y.startsWith("/@")||y.startsWith("/user/")||y.startsWith("/channel/"))return"channel";if(y.startsWith("/experiments"))return"experiments";if(y.startsWith("/sponsor_channel"))return"sponsorship";if(y.startsWith("/select_site"))return"settings";
if(y.startsWith("/locate"))return"locate";if(y.startsWith("/redeem"))return"redeem";if(y.startsWith("/musicpremium")||y.startsWith("/premium")||y.startsWith("/red"))return"premium";if(y.startsWith("/paid_memberships"))return"paid_memberships";if(y.startsWith("/oops"))return"oops";if(y.startsWith("/clip"))return"clip";var W;return(q8==null?void 0:(W=q8.response)==null?void 0:W.page)==="404"?"404":y.startsWith("/feed/history")?"history":y.startsWith("/feed/library")?"library":y.startsWith("/feed/subscriptions")?
"subscriptions":y.startsWith("/feed/trending")?"trending":y.startsWith("/feed/news_destination")?"news":y.startsWith("/playlist")?"playlist":y.startsWith("/minor_moment")?"minor_moment":y.startsWith("/playable/")||y.match("^/playables/(?!saved).")?"mini_app":y.startsWith("/playables")?"playables":y.startsWith("/create/live/join")?"open_in_app":y.startsWith("/feed/explore")?"explore":"browse"};
_.wD1=function(){var y=q8==null?void 0:q8.response,W=y==null?void 0:y.endpoint;if(!W)return(y==null?void 0:y.page)==="watch"?"watch":x$y();var c;y=(c=_.g(W==null?void 0:W.commandMetadata,_.kT))==null?void 0:c.webPageType;c=!1;if(y&&!iJI.includes(y))switch(y){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 Z;return((Z=_.g(W==null?void 0:W.commandMetadata,_.kT))==null?0:Z.url)&&a4w(_.g(W.commandMetadata,_.kT).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var G;return(W=(G=_.g(W,_.oW))==null?void 0:G.browseId)?MpI[W]||"browse":"browse";default:c=!0}if(_.g(W,_.kY)||_.g(W,e3g))return"sponsorship";G=a4w(window.location.href);if(G.startsWith("/experiments"))return"experiments";if(G.startsWith("/create_channel"))return"create_channel";
if(_.g(W,_.CD)&&G.startsWith("/shorts"))return"shorts";if(_.g(W,_.CD)&&G.startsWith("/watch"))return"watch";c&&(W=new _.ul("Unsupported mWeb page type",{pathname:G,webPageType:y}),_.OP(W));return"browse"};
ZkO=function(y){var W=y.data;var c=y.inlineMetadata;var Z=y.aspectRatio;var G=y.scrimStyle;var D=y.useDefaultStyle;var Y=y.className;var u=$N(new q6f);y=_.O("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";y=D?y==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM";c=c||y||!1;G=G!==void 0?G:1;var t=_.HO(function(V){u.value&&(u.value.hostElement=V,P())});
_.MF(t,{visibilityCallback:function(V){V&&W.onFirstVisible&&_.OH(W.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});Y=_.wZ("shortsLockupViewModelHost",Y);var b=_.KN({elementsCommand:W.onTap}),r=_.HO();_.fIa(r,_.UH(W.onTap));var F=_.j9(function(V){if(b==null?0:b.onclick)b.onclick(V);return!1}),K=_.HO(),l=[];
l.push("shortsLockupViewModelHostThumbnailContainer");Z===1?l.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):Z===2&&l.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");y||l.push("shortsLockupViewModelHostThumbnailContainerRounded");_.O("web_shorts_2_by_3_lockups_study")||_.O("desktop_search_enable_two_by_three_shorts_aspect_ratio")||l.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var N,P=function(){if(u.value){var V;(V=N)==null||
js(V);V=u.value;var Q;V.hostElement&&((Q=V.data)==null?0:Q.inlinePlayerData)&&(N=BG({mediaRenderer:V,lockupElement:V.hostElement,thumbnailElement:K.value,videoPreviewOpts:kdI}))}};
b1(function(){u.value&&(u.value.data=W,P())},[W]);
return _.X("ytm-shorts-lockup-view-model",{el:t,class:Y},_.X("a",{el:r,"on:click":F,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!c,tabindex:c?0:-1},_.X("div",{el:K,class:l.join(" ")},_.TY(W.thumbnail,function(){return _.X(_.a2,null,_.X(_.J3,{data:W.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),c?_.X(jJy,{data:W,
scrimStyle:G,useDefaultStyle:D}):null,yuH(W.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),c&&W.menuOnTap?_.X(W1H,{data:W,inlineMetadata:c}):null,c?null:_.X(cuf,{useDefaultStyle:D,data:W}))};
jJy=function(y){var W=y.data;var c=y.scrimStyle;var Z=y.useDefaultStyle;var G=_.O("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";y=Z&&_.O("web_hide_primary_text_for_pivot_panel");var D={};Z=_.wZ("shortsLockupViewModelHostInlineMetadata",(D.shortsLockupViewModelHostMetadataRounded=!(Z?G==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM"),D.shortsLockupViewModelHostInlineMetadataShortScrim=c===3&&!_.O("enable_shorts_lockup_new_scrim"),
D.shortsLockupViewModelHostInlineMetadataShortScrimNew=c===3&&_.O("enable_shorts_lockup_new_scrim"),D.shortsLockupViewModelHostInlineMetadataMediumScrim=c===2||c===4,D.shortsLockupViewModelHostShowOverPlayer=!0,D));var Y,u;G={};return _.X("div",{class:Z+" image-overlay-text"},_.X("h3",{class:_.Mi("shortsLockupViewModelHostMetadataTitle",(G.shortsLockupViewModelHostMetadataTitleTextShadow=c===4,G)),"aria-label":W.accessibilityText},_.TY(((Y=W.overlayMetadata)==null?void 0:Y.primaryText)&&!y,function(){return _.X(_.Da,
{text:W.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((u=W.overlayMetadata)==null?0:u.secondaryText)?_.X(Gh1,{data:W,
scrimStyle:c}):null)};
cuf=function(y){var W=y.data;var c=_.O("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";y=(y.useDefaultStyle?c==="SHORTS_LOCKUP_STYLE_SLIM":W.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var Z=_.KN({elementsCommand:W.onTap});c=_.HO();_.fIa(c,_.UH(W.onTap));var G=_.j9(function(F){if(Z==null?0:Z.onclick)Z.onclick(F);return!1}),D,Y,
u,t,b,r={};
return _.X("div",{class:y+" image-overlay-text","on:click":G},_.X("h3",{class:_.Mi("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(r.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((D=W.overlayMetadata)==null?0:(Y=D.primaryText)==null?0:Y.content),r)),"aria-label":W.accessibilityText},_.X("a",{el:c,"on:click":G,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(u=W.overlayMetadata)==null?void 0:(t=u.primaryText)==
null?void 0:t.content},_.TY(W.overlayMetadata,function(){return _.X(_.Da,{text:W.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((b=W.overlayMetadata)==null?0:b.secondaryText)?_.X(Gh1,{data:W,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,W.menuOnTap?_.X(W1H,{data:W,inlineMetadata:!1}):null)};
Gh1=function(y){var W=y.data;var c=y.scrimStyle;y=y.className;var Z,G={};return _.X("div",{class:_.Mi((G.shortsLockupViewModelHostMetadataSubhead=c!==4,G.shortsLockupViewModelHostMetadataSubheadNew=_.O("enable_shorts_lockup_new_scrim"),G.shortsLockupViewModelHostMetadataSubheadTextShadow=c===4,G),y),"aria-hidden":"true"},_.X(_.Da,{text:(Z=W.overlayMetadata)==null?void 0:Z.secondaryText,noStyleRuns:!0}))};
W1H=function(y){var W={};W=_.wZ((W.shortsLockupViewModelHostInlineMetadataMenu=y.inlineMetadata,W.shortsLockupViewModelHostOutsideMetadataMenu=!y.inlineMetadata,W.shortsLockupViewModelHostShowOverPlayer=!0,W));return _.X("div",{class:W},_.X(M8,{data:{style:y.inlineMetadata?"overlay":"mono",accessibilityLabel:y.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(c){c.preventDefault();c.stopPropagation();var Z=_.KN({elementsCommand:y.data.menuOnTap,forceNewState:!0});
if(Z==null?0:Z.onclick)Z.onclick(c)}},
iconName:"MORE_VERT"}))};
yo=function(y,W,c,Z){return y&&W?y!==c||W!==Z?(_.e8(Error("Hh"),void 0,void 0,{"stored-slot":y,"stored-layout":W,"latest-slot":c,"latest-layout":Z}),!1):!0:!1};
feO=function(y,W,c){return y({targetId:W},function(Z){return c.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Z,{header:c.continuationItems?c.continuationItems[0]:void 0}):Object.assign({},Z,{contents:c.continuationItems?c.continuationItems:[]})})};
oUw=function(y,W,c,Z){if(W=W.trackingParams){var G,D=(G=c.getScreenLayer)==null?void 0:G.call(c);c=_.NR(D);G=_.EL(D);if(c&&G){var Y=_.Dz(W);_.O("combine_ve_grafts")?y.graftServerVe(W,G,D):_.HA(c,G,Y);Z==null||Z(Y)}}};
zAF=function(y){var W;return((W=DcH.get(y))==null?void 0:W.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
sJh=function(y,W){var c={type:W.slotType,controlFlowManagerLayer:YKw.get(W.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(c.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=W.slotPhysicalPosition);if(y){c.debugData={slotId:W.slotId};if(y=W.slotEntryTrigger)c.debugData.slotEntryTriggerData=mcg(y);y=W.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];y=_.z(y);for(var Z=y.next();!Z.done;Z=y.next())c.debugData.fulfillmentTriggerData.push(mcg(Z.value));
W=W.slotExpirationTriggers;c.debugData.expirationTriggerData=[];W=_.z(W);for(y=W.next();!y.done;y=W.next())c.debugData.expirationTriggerData.push(mcg(y.value))}return c};
mcg=function(y,W){var c={type:y.triggerType};W!=null&&(c.category=W);y.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=y.triggeringSlotId);y.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=y.triggeringLayoutId);return c};
uVg=function(y,W,c,Z){W={opportunityType:W};y&&(Z||c)&&(Z=_.Ng(Z||[],function(G){return sJh(y,G)}),W.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},Z.length>0?{slots:Z}:{}));
return W};
tFf=function(y){return WE(y.opportunityAdapterMap).concat(WE(y.triggerAdapterMap)).concat(WE(y.fulfillmentAdapterFactoryMap)).concat(WE(y.slotAdapterFactoryMap)).concat(WE(y.layoutRenderingAdapterFactoryMap))};
WE=function(y){var W=[];y=_.z(y.values());for(var c=y.next();!c.done;c=y.next())c=c.value,c.isAdsControlFlowEventListener&&W.push(c);return W};
Zv=function(y){var W=y.slotId,c=y.slotType,Z=y.slotPhysicalPosition;return W===void 0?new cE("Cannot construct a slot due to the missing id.",{adSlotMetadata:y}):c===void 0?new cE("Cannot construct a slot due to the missing type.",{adSlotMetadata:y}):Z===void 0?new cE("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:y}):{slotId:W,slotType:c,slotPhysicalPosition:Z,managerLayer:"external",adSlotLoggingData:y.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new nUD}};
X4y=function(y){var W=y.layoutId,c=y.layoutType;return W===void 0?new Gq("Cannot construct a layout due to the missing id.",{adLayoutMetadata:y}):c===void 0?new Gq("Cannot construct a layout due to the missing type.",{adLayoutMetadata:y}):{layoutId:W,layoutType:c,managerLayer:"external",adLayoutLoggingData:y.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new nUD,interactionLoggingAdsClientData:{}}};
bkH=function(y){if((y=y.value)&&y.querySelector("img")){var W=y.querySelector("img");W.addEventListener("error",function(){m_H(W.src).then(function(c){(c=V7(c).toString())?W.src=c:W.removeAttribute("src")}).catch(function(){W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
o0=function(y,W){if(W&&(ru1(W.viewableCommand)||ru1(W.endOfSessionCommand))){y=y.value;var c=F1D(W==null?void 0:W.viewableCommand);W=F1D(W==null?void 0:W.endOfSessionCommand);if(!fs){var Z=_.Nn("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);fs=new UcH((Z==null?void 0:Z.length)===2?Z[1]:null)}$cf(fs,y);K1I(fs,y,c,W)}};
Dv=function(y){fs&&$cf(fs,y.value)};
ru1=function(y){y=_.UH(y);return!(y==null||!y.loggingUrls)&&y.loggingUrls.length>0};
F1D=function(y){if(!y)return[];var W=[],c,Z;((Z=(c=_.UH(y))==null?void 0:c.loggingUrls)!=null?Z:[]).forEach(function(G){G.baseUrl&&W.push(G.baseUrl)});
return W};
OkI=function(y){return y.shorts.isDesktopSmallWidth};
_.gUg=function(y){return y.shorts.isWatchWhileMode};
_.zq=function(y){return y.shorts.isFullscreen};
_.YD=function(y){return y.shorts.isShortsPipActive};
leE=function(y){var W,c;if(y=(W=_.g(y.reelsAdCardButtoned,RAE))==null?void 0:(c=W.animatedRenderingConfig)==null?void 0:c.easeOutSeconds)return y+"s"};
NPF=function(y,W,c){return _.m(function(Z){return Z.return(new Promise(function(G){var D=new Image;D.onload=function(){G(new EUE(y,W,c,D.naturalWidth,D.naturalHeight))};
D.src=c.toString()}))})};
IeD=function(y,W){return Math.round(y/1E-5)===Math.round(W/1E-5)};
p4H=function(y,W){return Math.round(y/1E-5)===Math.round(W/1E-5)};
Pqh=function(y,W){return y.year===W.year&&y.month===W.month&&y.day===W.day};
Juf=function(y,W){return y.year!==W.year?y.year<W.year:y.month!==W.month?y.month<W.month:y.day<W.day};
Cqh=function(y){return y.day===VFE(y.year,y.month)?y.month===11?{year:y.year+1,month:0,day:1}:{year:y.year,month:y.month+1,day:1}:{year:y.year,month:y.month,day:y.day+1}};
QJD=function(){var y=new Date,W={year:y.getFullYear(),month:y.getMonth(),day:y.getDate()};return{start:W,end:{year:y.getFullYear()+2,month:y.getMonth(),day:y.getDate()},selectedDate:Cqh(W)}};
AuE=function(y){return(new B$(2)).format(new Date(y.year,y.month,y.day))};
hA1=function(y){return{year:y.getFullYear(),month:y.getMonth(),day:y.getDate()}};
BPE=function(y,W){y=(y+(Number(W.utcOffsetSec)+(new Date(y*1E3)).getTimezoneOffset()*60))*1E3;W=hA1(new Date(y));return{date:W,secondsSinceMidnight:Math.floor((y-(new Date(W.year,W.month,W.day)).getTime())/1E3)}};
HkI=function(y,W){W=W.months.findIndex(function(c){return c.year===y.year&&c.month===y.month});
return W>=0?W:void 0};
L1O=function(y){if(!y)return!1;try{if(y.host&&y.host.tagName==="YT-FORMATTED-STRING"&&y.host.id==="contenteditable-textarea"||y.nodeType===Node.ELEMENT_NODE&&y.tagName==="YTD-COMMENTBOX")return!0}catch(W){return!1}return L1O(y.parentNode)};
mt=function(y){return y?!(y.tagName!=="A"||!y.href||!y.classList.contains("yt-simple-endpoint")):!1};
vUH=function(y){return y?y.tagName==="IMG"&&y.classList.contains("emoji"):!1};
dca=function(y,W,c){if(!y)return null;var Z=mt(y);if(Z&&c)return W=y.pathname.substring(y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(Z&&!c)return document.createTextNode("");if(vUH(y))return c=y.alt,y=y.dataset.emojiId,!y&&W&&(W=_.sd(W,c))&&W.isCustomEmoji&&(y=W.emojiId),y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+y+">"):document.createTextNode(c);Z=y.cloneNode(!1);for(var G=0;G<y.childNodes.length;++G){var D=dca(y.childNodes[G],W,c);D&&Z.appendChild(D)}return Z};
uL=function(y){return y?mt(y)?y:uL(y.lastChild):null};
SKI=function(y){return y?mt(y)?y:SKI(y.firstChild):null};
TPI=function(y){if(!y)return null;for(var W=y.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=uL(W))?y=W:y=(y=y.parentNode)?uL(y.previousElementSibling):null;return y};
aeh=function(y){if(!y)return null;for(var W=y.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=SKI(W))?W:aeh(y.parentNode)};
xcO=function(y){var W=_.tD(),c=W.JSC$9101_getStartNode();if(!L1O(c.parentNode))return null;W=W.JSC$9101_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var Z=_.CP(c,mt);if(Z){if(y&&W===0||!y&&W===c.length)return Z}else{if(y&&W===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.ns(c.nextElementSibling,"display")==="block"?null:SKI(c.nextElementSibling);if(!y&&W===0)return c?uL(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(y){if(0<=W&&W<c.childNodes.length)return SKI(c.childNodes[W])}else if(0<
W&&W<=c.childNodes.length)return uL(c.childNodes[W-1]);return null};
iky=function(y,W,c){if(!y)return null;if(y.nodeType===Node.TEXT_NODE)if(c){var Z=TPI(y);if(Z&&!/^\s+\S/.test(y.wholeText.substr(0,W)))return Z}else if((Z=aeh(y))&&!/\S\s+/.test(y.wholeText.substr(W,y.wholeText.length)))return Z;return y.nodeType===Node.ELEMENT_NODE?c?TPI(y.childNodes[W]):aeh(y.childNodes[W]):iky(y.parentNode,W,c)};
MFf=function(y){if(y.hasChildNodes())switch(y.tagName){case "DIV":case "A":case "SPAN":var W="";for(y=y.firstChild;y;y=y.nextSibling)W+=MFf(y);return W;default:return""}else switch(y.nodeType){case 3:return y.textContent;default:return""}};
X6=function(y,W){return y.year===W.year&&y.month===W.month&&y.day===W.day};
bL=function(y,W){return y.year!==W.year?y.year<W.year:y.month!==W.month?y.month<W.month:y.day<W.day};
eAy=function(y){return{year:y.getFullYear(),month:y.getMonth(),day:y.getDate()}};
w4g=function(y){var W=ZAh;W=W===void 0?ZAh:W;W(new Date(y.year,y.month,y.day))};
re=function(y){return eAy(new Date(Number(y.seconds)*1E3))};
qKD=function(y){return y.year!==void 0&&y.month!==void 0&&y.day!==void 0};
khE=function(y){return y.start!==void 0&&y.end!==void 0};
jRy=function(y){return khE(y)?y.start:y};
yBw=function(y){return khE(y)?y.end:void 0};
cB1=function(y,W){for(var c=[],Z=new Date(y.start.year,y.start.month);Z.getFullYear()<y.end.year||Z.getFullYear()===y.end.year&&Z.getMonth()<=y.end.month;){var G=c,D=G.push,Y=Z.getFullYear(),u=Z.getMonth(),t=y,b=W,r=void 0,F=[],K=Object.freeze({extraCssClass:"invisible"}),l=new Date(Y,u),N=eAy(l);l=l.getDay();for(var P=eAy(new Date);N.month===u;){l!==Woh&&r||(r=Array.from({length:7}).fill(K),F.push(r));var V={date:{year:Y,month:u,day:N.day},extraCssClass:"",debugClass:""};V.extraCssClass=b(V.date,
N,P,t).trim();r[(l-Woh+7)%7]=V;N=N.day===VFE(N.year,N.month)?N.month===11?{year:N.year+1,month:0,day:1}:{year:N.year,month:N.month+1,day:1}:{year:N.year,month:N.month,day:N.day+1};l=(l+1)%7}D.call(G,{weeks:F,monthLabel:F6.SHORTMONTHS[u]+" "+Y,year:Y,month:u,monthLabelExtraCssClass:F[0][2]===K?"shift-down-label":""});Z.setMonth(Z.getMonth()+1)}return c};
Z3H=function(y,W){W=W.months.findIndex(function(c){return c.year===y.year&&c.month===y.month});
return W>=0?W:void 0};
f8I=function(y,W){a:{var c=c===void 0?[2,3]:c;c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next()){var G=new Date;if((new GEF(Z.value)).parse(W,G,{validate:!0})){G.setHours(0,0,0,0);W=G;break a}}W=null}if(!W)return{isValid:!1,value:void 0};W=eAy(W);c=y.end;return bL(W,y.start)||bL(c,W)?{isValid:!1,value:void 0}:{isValid:!0,value:W}};
mwg=function(y){var W=oea;W=W===void 0?DwI:W;var c=y.columnsToShow||[],Z=zvF(y.columnDimensions,y.columnsToShow,y.leftFloatingColumns,W);return c.map(function(G,D){var Y=y.columns[G];if(Y===void 0)throw Error("Nh");var u=Z?Z[D]:"";var t=y.getCustomTooltip?y.getCustomTooltip(G,Y.headerTooltipParagraphs):Y.headerTooltipParagraphs;var b=YGF(y,G);return{type:G,index:D,style:u,classes:b,headerName:Y.headerName||"",headerIcon:Y.headerIcon,headerTooltipParagraphs:t||[],headerTooltipHelpContext:Y.headerTooltipHelpContext,
sortOrders:Y.sortOrders||[],selectionState:Y.isSelectionCheckbox?y.selectionState:void 0}})};
YGF=function(y,W){var c=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Z=y.columns[W];if(Z===void 0)return"";var G=c.includes("DEFAULTS")&&Z.cssClass?[Z.cssClass]:[];if(c.includes("SORTING")){Z.sortOrders&&Z.sortOrders.length&&G.push("sortable");if(y.sorting&&y.sorting.columnType===W)a:switch(y.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var D="column-sorted";break a;default:D=""}else D="";D&&G.push(D)}c.includes("FLOATING")&&(W=y.columnsToShow.indexOf(W),y.leftFloatingColumns&&W<y.leftFloatingColumns&&
G.push("floating-column"),y.leftFloatingColumns&&W===y.leftFloatingColumns-1&&G.push("last-floating-column"));c.includes("RIGHT_ALIGN")&&Z.rightAlignHeader&&G.push("right-align");return G.filter(function(Y){return Y}).join(" ")};
zvF=function(y,W,c,Z){c=c===void 0?0:c;Z=Z===void 0?DwI:Z;if(y){var G=[],D=0;sRI(y,W,Z).forEach(function(Y,u){var t="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&&(t=[t,"max-width:"+Y.maxWidth+"px;"].join(""));D>0&&u<c&&(t=[t,"left:"+D+"px;"].join(""));G.push(t);D+=Y.minWidth+Y.paddingLeft+Y.paddingRight});
return G}};
sRI=function(y,W,c){c=c===void 0?DwI:c;return W.map(function(Z,G){Z=y&&y[Z]||{};var D=G===0?c.paddingLeftFirstColumn:c.padding;Z.paddingLeft!==void 0&&(D=Z.paddingLeft);G=G===W.length-1?c.paddingRightLastColumn:c.padding;Z.paddingRight!==void 0&&(G=Z.paddingRight);return{paddingLeft:D,paddingRight:G,minWidth:Z.minWidth!==void 0?Z.minWidth:c.minWidth,maxWidth:Z.maxWidth!==void 0?Z.maxWidth:c.maxWidth,flexGrow:Z.flexGrow!==void 0?Z.flexGrow:c.flexGrow}})};
uHt=function(y){var W=y.reduce(function(Z,G){var D=G.columnId,Y={};G.headerText&&(Y.headerName=_.v$(G.headerText));G.rightAlignHeader&&(Y.rightAlignHeader=G.rightAlignHeader);var u;if((u=G.headerIcon)==null?0:u.iconType)Y.headerIcon=_.wp(G.headerIcon.iconType);Z[D]=Y;return Z},{}),c=y.filter(function(Z){return!Z.hideColumn}).map(function(Z){return Z.columnId});
y=y.filter(function(Z){return!!Z.dimensions}).reduce(function(Z,G){Z[G.columnId]=G.dimensions;
return Z},{});
return{columns:W,columnsToShow:c,columnDimensions:y}};
_.tPI=function(y){return y?y.simpleText?y.simpleText:y.runs?y.runs.map(function(W){return W.text}).join(""):"":""};
Fof=function(y){var W=y.data;var c=y.onTap;var Z=y.isSelected;var G=y.onFocusIn;if(!W)return{};y=neE(W);Z===void 0&&(Z=W==null?void 0:W.isSelected);var D;return{text:XlD(W,y),startIcon:(D=W.icon)==null?void 0:D.iconType,state:Z?0:2,type:0,onTap:b3t(W,c),accessibilityLabel:rBg(W,y),onFocusIn:function(){return G==null?void 0:G()}}};
XlD=function(y,W){if(!W)return y.text?_.tPI(y.text):void 0};
b3t=function(y,W){return function(c){W==null||W(c,y)}};
neE=function(y){y=y.style&&y.style.styleType;return!UwO&&y==="STYLE_EXPLORE_LAUNCHER_CHIP"};
rBg=function(y,W){if(W){var c,Z,G;return(G=(c=y.accessibilityData)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label)!=null?G:XlD(y,!1)}};
Ud=function(y){return{signalAction:{signal:y}}};
O3t=function(){return _.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?$ww:_.KoI};
geh=function(y,W){y=y===void 0?"SOFT_RELOAD_PAGE":y;W=W===void 0?49504:W;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.wK(_.bN("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:W}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:y}}]}}}};
Rvy=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.wK(_.bN("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:O3t()}};
l8a=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.wK(_.bN("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:O3t()}};
EeH=function(y,W){var c=_.wK(_.bN("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Z=_.wK(_.bN("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),G={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.wK(_.bN("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};G.serviceEndpoint=y?y:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ud("SOFT_RELOAD_PAGE")]}};return{title:c,bodyText:Z,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:G},
style:{value:W!=null?W:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
I8w=function(y){y=y===void 0?{}:y;return{title:_.wK(y.localizedZeroStateTitleText===void 0?"":y.localizedZeroStateTitleText),bodyText:_.wK(y.localizedZeroStateMessage===void 0?"":y.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wK(y.localizedZeroStateButtonText===void 0?"":y.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[N9I]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.JBa=function(y,W,c,Z,G,D,Y,u){Z=Z===void 0?!1:Z;G=G===void 0?!1:G;D=D===void 0?0:D;Y=Y===void 0?-Infinity:Y;u=u===void 0?!1:u;var t=[],b=_.wK(_.bN("SMART_DOWNLOADS",void 0,"Smart downloads"));Y=_.wK(pl1(D,Y,y.length));D=void 0;Z?(y.length>0?c=PKF(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.O("kevlar_manual_downloads_above"),b,Y):u?(D={content:c.localizedOptInBannerTitleText===void 0?"":c.localizedOptInBannerTitleText},c={content:c.localizedPromptMessage===void 0?"":c.localizedPromptMessage},
G={buttonViewModel:{title:_.bN("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.bN("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:_.Utt}]}}}}},
c={alertBannerViewModel:{heading:D,body:c,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:G,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):c={backgroundPromoRenderer:{bodyText:_.wK(_.bN("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}},D=c):G&&(D={content:c.localizedOptInBannerTitleText===
void 0?"":c.localizedOptInBannerTitleText},c={content:c.localizedOptInMessage===void 0?"":c.localizedOptInMessage},G={buttonViewModel:{title:_.bN("TURN_ON",void 0,"Turn on"),accessibilityText:_.bN("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}}}}},D={alertBannerViewModel:{heading:D,body:c,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:G,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});c=_.wK(_.bN("YOUR_DOWNLOADS",void 0,"Your downloads"));G=void 0;W.length>0?(G=void 0,_.O("kevlar_display_downloads_numbers")&&(G=_.wK(_.rK("VIDEO_COUNT",W.length))),G=PKF(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,c,G)):Z||y.length||(G={backgroundPromoRenderer:{bodyText:_.wK(_.bN("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}}}});D&&!_.O("kevlar_manual_downloads_above")&&t.push({richSectionRenderer:{content:D,loggingDirectives:{clientVeSpec:{uiType:139572}}}});G&&t.push({richSectionRenderer:{content:G,loggingDirectives:{clientVeSpec:{uiType:51721}}}});D&&_.O("kevlar_manual_downloads_above")&&
t.push({richSectionRenderer:{content:D,loggingDirectives:{clientVeSpec:{uiType:139572}}}});if(W.length>0||Z&&y.length>0)y=t.push,W={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.wK(_.bN("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}}}}}},y.call(t,W);return{contents:t}};
_.CKI=function(y){return VPI(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.QRt=function(y){return VPI(y,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
VPI=function(y,W){var c=[];y=PKF(y,W,!0);c.push({richSectionRenderer:{content:y}});return{contents:c}};
PKF=function(y,W,c,Z,G){c=c===void 0?!1:c;y={isExpanded:c,contents:$D(y),entitySelectorType:W};Z&&(y.title=Z);G&&(y.subtitle=G);c||(_.O("kevlar_smart_downloads_show_more_button")?(c={buttonRenderer:{accessibility:{label:_.bN("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.wK(_.bN("SHOW_MORE",void 0,"Show more"))}},y.showMoreButton=c,c={buttonRenderer:{accessibility:{label:_.bN("SHOW_LESS",void 0,
"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.wK(_.bN("SHOW_LESS",void 0,"Show less"))}},y.showLessButton=c):(c={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.bN("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}}}},y.previousButton=c,c=
{buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.bN("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}}}},y.nextButton=c,c={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.bN("VIEW_ALL",void 0,"View all"),accessibilityText:_.bN("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:M2("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},y.menu=c));return{richShelfRenderer:y}};
$D=function(y){var W=[];y=_.z(y);for(var c=y.next();!c.done;c=y.next())if(c=c.value,W_I(c)){var Z=W,G=Z.push;var D=void 0;if(c==null?0:(D=c.videoEntity)==null?0:D.videoId){D=JK(_.Sv().getState(),c.videoEntity.videoId);var Y=_.Sv().getState();var u=_.Gx(c.videoEntity.videoId,"mainVideoEntity");Y=!!_.$R(Y.entities)[u];Y={videoId:c.videoEntity.videoId,title:q2(c.videoEntity.title),shortBylineText:q2(c.channelEntity.title),thumbnail:c.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Y&&_.O("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:JkI(c.videoEntity.videoId,D,c.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.bN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};c.videoEntity.lengthSeconds&&(Y.thumbnailOverlays=OAw(c.videoEntity.lengthSeconds,D));Y.isWatched=D>0;_.O("kevlar_modern_downloads_page")&&(Y.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:c.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.bN("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Y.badges=void 0);c=Y}else c={};G.call(Z,{richItemRenderer:{content:{videoRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(yIg(c)){Z=W;G=Z.push;var t=u=D=void 0,b=void 0,r=void 0,F=void 0,K=void 0,l=void 0,N=void 0,P=void 0,V=void 0,Q=void 0;Y=c.mainPlaylistEntity.playlistId;var S=c==null?void 0:(Q=c.mainPlaylistEntity)==null?void 0:(V=Q.thumbnailStyleData)==null?void 0:(P=V[0])==null?void 0:(N=P.value)==null?void 0:(l=N.collageThumbnail)==
null?void 0:l.coverThumbnail;if(Y&&S){l=VeD(Y);!_.O("enable_offline_playlist_page")&&(c==null?0:(K=c.mainPlaylistEntity)==null?0:K.videos)&&(K=c==null?void 0:(F=c.mainPlaylistEntity)==null?void 0:(r=F.videos)==null?void 0:r[0],r=_.W$(K).entityId,r=JSON.parse(r).videoId,r!==void 0&&(F=JK(_.Sv().getState(),r),l=_.eG(r,Y,void 0,void 0,F)));r=[];if(c==null?0:(b=c.mainPlaylistEntity)==null?0:(t=b.videos)==null?0:t.length)r=[cty(),Object.assign({},(u=WBw(c==null?void 0:c.mainPlaylistEntity.videos.length))!=
null?u:{})];c={playlistId:Y,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:S}},navigationEndpoint:l,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:r,title:q2(c.mainPlaylistEntity.title),shortBylineText:q2(c==null?void 0:(D=c.channelEntity)==null?void 0:D.title),badges:[{metadataBadgeRenderer:{label:_.bN("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.O("kevlar_modern_downloads_page")&&(c.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:ABO,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.bN("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},c.badges=void 0)}else c=void 0;G.call(Z,{richItemRenderer:{content:{playlistRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return W};
pl1=function(y,W,c){y=y?hvg(y):"";W!==void 0&&isFinite(W)?W===0?W=_.bN("UPDATING",void 0,"Updating..."):(W=KBt(new Date(W),new Date),W=_.bN("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var Z="";y&&W&&(Z=" \u2022 ");if(c&&_.O("kevlar_display_downloads_numbers")){c=_.rK("VIDEO_COUNT",c);if(y||W)Z=" \u2022 ";return c+Z+y+Z+W}return y+Z+W};
B9O=function(y){return xYO(y.entities).length};
_.H3I=function(y,W){var c=T6H(y.responsiveSize),Z;y=!((Z=y.responsiveMap)==null||!Z.some(function(G){return G.containerSize==="CONTAINER_SIZE_NARROW"&&G.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:W,sizing:c,enableFullBleedForSingleCol:!1,isCompactList:c==="COMPACT"&&y}};
LoE=function(y,W){return _.fq(y.entities,"votingEntity",W)};
ve1=function(y){if(y){var W;return((W=_.U().resolve(_.xN(_.EH)))==null?0:W())?y.darkTheme:y.lightTheme}};
dwa=function(y,W,c){return _.X(_.a2,null,kjt(c,[[0,function(){return _.X("h2",{class:W},y)}],
[1,function(){return _.X("h3",{class:W},y)}],
[2,function(){return _.X("h4",{class:W},y)}]],function(){return _.X("h2",{class:W},y)}))};
SGH=function(y){var W=["shelf-header-layout-wiz"];y.disableHorizontalPadding&&W.push("shelf-header-layout-wiz--disable-horizontal-padding");y.disableVerticalPadding&&W.push("shelf-header-layout-wiz--disable-vertical-padding");y.useResponsiveLayout&&(W.push("shelf-header-layout-wiz--responsive"),y.forceSmallLayout&&W.push("shelf-header-layout-wiz--narrow"));y.isOverlay&&W.push("shelf-header-layout-wiz--is-overlay");y.onClick&&W.push("shelf-header-layout-wiz--tappable");var c=["shelf-header-layout-wiz__title"];
y.forceSmallLayout&&c.push("shelf-header-layout-wiz__title--small-title");var Z=["shelf-header-layout-wiz__leading-image"];y.circularImage&&Z.push("shelf-header-layout-wiz__leading-image--circular-image");var G=_.j9(function(D){var Y;(Y=y.onClick)==null||Y.call(y,D)});
return _.X("yt-shelf-header-layout",{class:W.join(" "),"on:click":G,tabindex:y.onClick?0:void 0},y.leadingIcon?_.X("div",{class:"shelf-header-layout-wiz__leading-icon"},_.X(_.Gb,{icon:y.leadingIcon})):y.leadingImage?_.X("div",{class:Z.join(" ")},y.leadingImage()):_.X(_.a2,null),_.X("div",{class:"shelf-header-layout-wiz__label-container"},y.superlabel?_.X("div",{class:"shelf-header-layout-wiz__superlabel"},y.superlabel()):_.X(_.a2,null),_.X("div",{class:"shelf-header-layout-wiz__title-row"},dwa(y.title(),
c.join(" "),y.tagLevel),_.TY(y.detail,function(){return _.X("div",{class:"shelf-header-layout-wiz__detail"},y.detail())})),y.sublabel?_.X("div",{class:"shelf-header-layout-wiz__sublabel"},y.sublabel()):_.X(_.a2,null)),y.trailingActions?_.X("div",{class:"shelf-header-layout-wiz__trailing-actions"},y.trailingActions()):_.X(_.a2,null))};
T9D=function(y){var W=_.g(y==null?void 0:y.avatar,_.hz),c,Z=(c=y==null?void 0:y.image)!=null?c:_.a3(y==null?void 0:y.themedImage);return _.X(_.a2,null,_.TY(Z,function(){return _.X(_.J3,{data:Z,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.TY(W,function(){return _.X(_.Ks,{data:W})}))};
i3y=function(y){var W=_.g(y.bottomBadge,a8F),c=W&&y.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.X(_.a2,null,_.TY(W,function(){return W&&_.X(xwF,{data:W,class:c})}),_.TY(y.sublabel,function(){return _.X(_.Da,{text:y.sublabel})}))};
MPD=function(y){var W=_.g(y.topBadge,a8F),c=W&&y.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.X(_.a2,null,_.TY(W,function(){return W&&_.X(xwF,{data:W,class:c})}),_.TY(y.superlabel,function(){return _.X(_.Da,{text:y.superlabel})}))};
wlt=function(y){var W=y.data;var c=y.disableHorizontalPadding;var Z=y.disableVerticalPadding;var G=y.forceSmallLayout;var D=y.useResponsiveLayout;y=y.isOverlay;var Y=W.sublabel||W.bottomBadge,u=W.superlabel||W.topBadge,t=_.PG(W.rendererContext);c={title:function(){return _.X(_.Da,{text:W.headline})},
sublabel:Y&&function(){return i3y(W)},
superlabel:u&&function(){return MPD(W)},
leadingImage:W.leadingAccessory&&function(){return T9D(W.leadingAccessory)},
trailingActions:W.trailingActions&&function(){return _.X(_.a2,null,eva(W.trailingActions))},
disableHorizontalPadding:c,disableVerticalPadding:Z,forceSmallLayout:G,useResponsiveLayout:D,isOverlay:y,onClick:t?function(b){var r=_.pp(W.rendererContext);r&&_.$0(r,{form:{element:b.target,event:b}})}:void 0};
Z=(Z=ve1(W==null?void 0:W.backgroundColor))?"background-color: "+_.KZ(Z)+";":void 0;return _.X("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:Z},_.X(SGH,Object.assign({},c)))};
qGI=function(y,W){if(y.simpleText)return Object.assign({},y,{simpleText:R9(y.simpleText,W)});if(!y.runs)return y;for(var c=Object.assign({},y,{runs:[]}),Z=0,G=_.z(y.runs),D=G.next();!D.done;D=G.next())if(D=D.value,D.text)if(Z+D.text.length<=W)c.runs.push(D),Z+=D.text.length;else return c.runs.push(Object.assign({},D,{text:R9(D.text,W-Z)})),c;return y};
kEH=function(y,W){return _.fq(y.entities,"chipBarStateEntity",W)};
jht=function(y,W){return _.fq(y.entities,"chipEntity",W)};
Wcg=function(y,W,c,Z){return function(){var G=yVa.has(y.displayType)&&y.selected,D=G&&y.deselectCommand?y.deselectCommand:y.tapCommand;!D||G&&Z||_.OH(D,{form:{element:W==null?void 0:W.value}});c==null||c()}};
cVg=function(y,W){return{triggeringElement:y,onDwellTriggeredFn:function(){var c={triggeringElement:y,loadVideoPreviewEventData:W},Z=document.querySelector(".video-preview");Z&&Z.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:c}))},
onDwellEndFn:function(){var c=document.querySelector(".video-preview");c&&c.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
ZTI=function(y,W){var c=_.U().resolve(_.xN(E9O)),Z=function(){var G=W();return c&&G?cVg(y.value,G):null};
_.$k(function(){var G=Z();c&&G&&Promise.resolve().then(function(){c.registerElement(G)});
_.KL(function(){c&&G&&Promise.resolve().then(function(){c.unregisterElement(G)})})})};
fjh=function(y){var W=y.dataset.resizeObserverId;if(W)return W;W=""+G3I++;return y.dataset.resizeObserverId=W};
ohO=function(y,W){var c=fjh(y);Od.has(c)||Od.set(c,new Set);Od.get(c).add(W);ge.has(c)&&W(Object.assign({},{target:y},ge.get(c)))};
DUH=function(y){y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var c=fjh(W.target),Z=Object.assign({},{target:W.target},ge.get(c));if(Z!=null&&Z.contentRect?Z.contentRect.width!==W.contentRect.width||Z.contentRect.height!==W.contentRect.height:1)for(ge.set(c,{borderBoxSize:W.borderBoxSize,contentBoxSize:W.contentBoxSize,contentRect:W.contentRect,devicePixelContentBoxSize:W.devicePixelContentBoxSize}),c=_.z(Od.get(c)||[]),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z(W)}};
Yy1=function(){return R0?R0:R0=new zCD(DUH)};
mUD=function(y,W){var c=fjh(y);Od.has(c)&&(Od.get(c).delete(W),Od.get(c).size===0&&(Od.delete(c),ge.delete(c),R0.unobserve(y),delete y.dataset.resizeObserverId));Od.size===0&&R0&&(R0.disconnect(),R0=void 0)};
utF=function(y,W){var c=_.U().resolve(xg);return shy.map(function(Z){return c.observe(y,W,Z)})};
tBg=function(y){var W=_.U().resolve(xg);y.forEach(function(c){W.unobserveByKey(c)})};
bTD=function(y){var W=Object.assign({},nhI,{canHaveZeroSize:!1}),c=_.z(ggH()),Z=c.next().value,G=c.next().value,D=function(Y){var u=Y.contentRect.height;if((Y=Y.contentRect.width)||u||W.canHaveZeroSize)Z.width()===Y&&Z.height()===u||G(Z,{height:u,width:Y})};
_.rj(function(){var Y=y instanceof HTMLElement?y:y.value,u=XSh(D,W.throttleMs),t=[];W.useVisibilityObserver&&(t=utF(Y,function(b,r){requestAnimationFrame(function(){r==="visible"?(ohO(Y,u),Yy1().observe(Y)):mUD(Y,u)})}));
t.length||(ohO(Y,u),Yy1().observe(Y));_.KL(function(){t.length&&(tBg(t),t.length=0);mUD(Y,u)})});
return Z};
FcO=function(y){var W=y.data;var c=y.callback;var Z=y.enableSingleChipSelection;var G=y.disableChipsScrollAnimation;var D=_.HO();y={};y=_.z(j8(W.autoselectedChipIndex!=null?(y[W.autoselectedChipIndex]=!0,y):{}));var Y=y.next().value,u=y.next().value,t=W.isHorizontallyScrollable,b=function(l){D.value!=null&&(_.Nn("HTML_DIR")==="rtl"&&(l=-l),D.value.scrollBy({left:l,behavior:G?"instant":"smooth"}))},r=function(){b(-320)},F=function(){b(320)};
y={};var K={};return _.X("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(W==null?void 0:W.title)&&_.X("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},W.title),_.X("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.TY(W.previousButton!=null,function(){return _.X("div",{class:"ytChipsShelfViewModelLeftArrowContainer"},rVD(W.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:r}}))}),_.X("div",{el:D,
class:_.Mi("ytChipsShelfViewModelChipsScrollContainer",(y.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=function(){return!!t},y))},_.X("div",{class:_.Mi("ytChipsShelfViewModelChipsContainer",(K.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=function(){return!!t},K.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=function(){return!!t&&!1},K))},(W.contents||[]).map(function(l,N){return _.X("div",{class:"ytChipsShelfViewModelChipWrapper"},rVD(l,
{chipViewModel:{callback:function(P,V){if(Z){var Q={};
u((Q[N]=V,Q))}else Q={},u(Object.assign({},Y,(Q[N]=V,Q)));c==null||c(P,V,N)},
disableDeselection:Z,selected:!!Y[N]}}))}))),_.TY(W.nextButton!=null,function(){return _.X("div",{class:"ytChipsShelfViewModelRightArrowContainer"},rVD(W.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",
onClick:F}}))})))};
$Ut=function(y,W,c,Z,G){y=W?y.switchOffCommand:y.switchOnCommand;if(Z&&G)UUO(y,c,G);else{var D,Y;(D=_.KN({elementsCommand:y}))==null||(Y=D.onclick)==null||Y.call(D,c)}};
UUO=function(y,W,c){y=_.KN({elementsCommand:y,additionalCommandArgs:{commandController:{onSuccess:function(){c(!1)},
onServerError:function(){c(!1)}}}});
if(y==null?0:y.onclick)y.onclick(W),c(!0)};
OTO=function(y){if(y)return _.g(y,Kch)};
ghy=function(y){y=y.selectElementClass;var W={};y=_.wZ("checkbox-shape-wiz__checkbox",y,(W["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!y,W));return _.X("div",{class:y,"aria-hidden":"true"},_.X(_.Gb,{icon:"BOX_EMPTY"}),_.X(_.Gb,{icon:"BOX_CHECK",active:!0}))};
RCI=function(y){var W=y.name;var c=y.onChange;var Z=y.onClick;var G=y.checked===void 0?!1:y.checked;var D=y.labelRenderable;var Y=y.hasLeadingLabel;var u=y.labelClass;var t=y.isCompact;var b=y.selectElementClass;var r=y.disableHorizontalPadding;y="checkbox"+_.lL(_.Ed);var F=_.HO(),K=_.j9(function(P){Z==null||Z(P);return!1}),l=_.j9(function(P){F.value.checked=G;
c==null||c(P);return!1}),N={};
u=_.wZ("checkbox-shape-wiz",u,(N["checkbox-shape-wiz--compact"]=!!t,N["checkbox-shape-wiz--disable-horizontal-padding"]=!!r,N));return _.X("checkbox-shape",null,_.X("label",{class:u},_.X("input",{el:F,class:"checkbox-shape-wiz__input",id:y,checked:G,name:W,type:"checkbox","on:change":l,"on:click":K}),_.TY(!Y,function(){return ghy({isLeading:!0,selectElementClass:b})}),_.TY(D,function(){return _.X("div",{class:"checkbox-shape-wiz__label"},D==null?void 0:D())}),_.TY(Y,function(){return ghy({isLeading:!1,
selectElementClass:b})})))};
ljh=function(y){var W=y.useCheckIcon===void 0?!1:y.useCheckIcon;var c=y.selectElementClass;y=W?"CHECK":"CIRCLE";var Z="",G=_.O("radio_shape_filled_icon_manual_setting_killswitch");G&&(Z=W?"CHECK":"CIRCLE_FILLED");var D={};c=_.wZ("radio-shape-wiz__radio",c,(D["radio-shape-wiz__radio--check-icon"]=!!W,D["radio-shape-wiz__radio--radio-default-style"]=!c,D));return G?_.X("div",{class:c,"aria-hidden":"true"},_.X(_.Gb,{icon:y}),_.X(_.Gb,{icon:Z,active:!W})):_.X("div",{class:c,"aria-hidden":"true"},_.X(_.Gb,
{icon:y}),_.X(_.Gb,{icon:y,active:!W}))};
Eht=function(y){function W(){var M;((M=_.U().resolve(_.xN(_.ml)))==null?0:M.isKeyBoardInUse())&&V.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function c(){V.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var Z=y.name;var G=y.onChange;var D=y.onClick;var Y=y.checked===void 0?!1:y.checked;var u=y.labelRenderable;var t=y.useCheckIcon;var b=y.hasLeadingLabel;var r=y.labelClass;var F=y.isCompact;var K=y.selectElementClass;var l=y.ariaLabel;var N=y.className;y=UE(function(){return"radio"+_.lL(_.Ed)});
var P=_.HO(),V=_.HO(),Q=_.j9(function(M){P.value.checked=Y;G==null||G(M);return!1}),S=_.j9(function(M){D==null||D(M);
return!1}),cy=["radio-shape-wiz"];
N&&cy.push(N);N={};r=_.wZ("radio-shape-wiz__label-container",r,(N["radio-shape-wiz--compact"]=!!F,N));tW(function(){document.activeElement===P.value&&W()});
_.rj(function(){var M=P.value;M.addEventListener("focusin",W);M.addEventListener("focusout",c);return function(){M.removeEventListener("focusin",W);M.removeEventListener("focusout",c)}});
return _.X("radio-shape",{class:cy.join(" ")},_.X("input",{el:P,class:"radio-shape-wiz__input",id:y,"prop:checked":Y,name:Z,type:"radio","on:change":Q,"on:click":S,"aria-label":l}),_.X("label",{class:r,for:y,el:V},_.TY(!b,function(){return ljh({checked:Y,useCheckIcon:t,isLeading:!0,selectElementClass:K})}),_.TY(u,function(){return _.X("div",{class:"radio-shape-wiz__label",
"aria-hidden":l?"true":"false"},u==null?void 0:u())}),_.TY(b,function(){return ljh({checked:Y,
useCheckIcon:t,isLeading:!1,selectElementClass:K})})))};
IjH=function(y){var W=y.data;var c=y.isLeading;var Z=y.hideSelectionTextChevron;if(c&&(W.leadingImage||W.leadingAccessory)||!c&&(W.trailingImage||W.trailingButton||W.trailingButtons||W.selectionText)){var G=_.wZ("yt-list-item-view-model-wiz__button-container");y={};var D=_.wZ("yt-list-item-view-model-wiz__image-container",(y["yt-list-item-view-model-wiz__leading"]=c,y["yt-list-item-view-model-wiz__trailing"]=!c,y)),Y=c?W.leadingImage:W.trailingImage,u=_.wZ("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");y={};var t=_.wZ("yt-list-item-view-model-wiz__accessory",(y["yt-list-item-view-model-wiz__leading"]=c,y["yt-list-item-view-model-wiz__trailing"]=!c,y)),b=!!W.selectionText;a:switch(W.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":y="expand_more";break a;default:y="chevron_right"}var r=y;return function(){var F;return _.X(_.a2,null,_.TY(Y,function(){return _.X("div",{class:D,"aria-hidden":"true"},_.X(_.J3,{data:Y,alt:"",
preserveWidth:!0,preserveHeight:!0,className:u}))}),_.TY(c&&W.leadingAccessory,function(){return _.X("div",{class:D},N4h(W.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:u}}))}),_.TY(!c&&W.trailingButton,function(){return _.X("div",{class:G},N4h(W.trailingButton,{buttonViewModel:{className:t}}))}),_.TY(!c&&((F=W.trailingButtons)==null?void 0:F.buttons),function(){var K;
return _.X("div",{class:G},N4h((K=W.trailingButtons)==null?void 0:K.buttons,{buttonViewModel:{className:t},accountLinkButtonViewModel:{className:t},switchButtonViewModel:{className:t},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:t}}))}),_.TY(!c&&b,function(){return _.X(_.a2,null,_.X(_.Da,{text:W.selectionText,
className:_.wZ("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.TY(!Z,function(){return _.X(_.Gb,{icon:r,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
pSE=function(y){return y.title||y.subtitle?function(){return _.X("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.X("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.TY(y.title,function(){return _.X(_.Da,{text:y.title,className:"yt-list-item-view-model-wiz__title"})})),_.TY(y.subtitle,function(){return _.X(_.Da,{text:y.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.X(_.a2,null)}};
Phw=function(y){function W(){var Py;((Py=_.U().resolve(_.xN(_.ml)))==null?0:Py.isKeyBoardInUse())&&fa.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function c(){fa.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var Z=y.data;var G=y.isMenuItem;var D=y.isCompact;var Y=y.onTap;var u=y.trailingAccessory;var t=y.hideSelectionTextChevron;var b=y.disabled;var r=y.inPopup;var F=y.disableHorizontalPadding;var K=y.isOverlay;y=f5f(function(Py){a:if((Z==null?0:Z.entitySelectorType)&&(Z==null?0:Z.entityKey))switch(Z.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Py=_.jmh(Py,Z.entityKey);Py=Py==null?void 0:Py.value;var WJ=!1;Py==="CAPTIONS_UNAVAILABLE"&&(WJ=!0,Py=
"");Py=Object.assign({},!!Py&&{selectionText:{content:Py}},{isSelected:!!Py},!!Py&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:WJ});break a;default:Py={}}else Py={};return Py});
var l=_.O("enable_web_shorts_captions_language_command")?Object.assign({},Z,y):Z;y=!(l.isSelected===void 0||!l.selectionStyle||l.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var N=(_.PG(l.rendererContext)||Y)&&!y,P=_.PG(l.rendererContext)||y;b=!!l.isDisabled||!!b;var V={};K=_.wZ("yt-list-item-view-model-wiz",(V["yt-list-item-view-model-wiz--is-overlay"]=!!K,V));V={};var Q=_.wZ("yt-list-item-view-model-wiz__label",(V["yt-list-item-view-model-wiz__container"]=!y,V["yt-list-item-view-model-wiz__container--disabled"]=
b,V["yt-list-item-view-model-wiz__container--has-subtitle"]=!!l.subtitle,V["yt-list-item-view-model-wiz__container--compact"]=!!D,V["yt-list-item-view-model-wiz__container--tappable"]=N,V["yt-list-item-view-model-wiz__container--in-popup"]=!!r,V));b={};b=_.wZ("yt-list-item-view-model-wiz__container",(b["yt-list-item-view-model-wiz__container--tappable"]=P,b["yt-list-item-view-model-wiz__container--compact"]=!!D,b["yt-list-item-view-model-wiz__container--in-popup"]=!!r,b["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!F,b));V=l.leadingImage||l.leadingAccessory;var S=_.wZ("yt-list-item-view-model-wiz__image-container",V?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),cy=_.O("apply_button_role_to_list_item");r=_.HO();var M=_.HO(),fa=cy?M:r,jI=function(){var Py,WJ,t5;return _.X(_.a2,null,(Py=IjH({data:l,isLeading:!0,hideSelectionTextChevron:!!t}))==null?void 0:Py(),(WJ=pSE(l))==null?void 0:WJ(),u?_.X("div",{class:"yt-list-item-view-model-wiz__trailing"},u):(t5=IjH({data:l,isLeading:!1,
hideSelectionTextChevron:!!t}))==null?void 0:t5())},sD=function(){return cy?_.X("div",{class:Q,
el:M,role:P||N?"button":void 0,tabindex:Y||N?0:void 0,"on:keydown":bf,"on:click":N1},jI()):_.X("div",{class:Q,el:M},jI())},ED={labelRenderable:sD,
isCompact:D,checked:l.isSelected,hasLeadingLabel:!!V,labelClass:b,selectElementClass:S,disableHorizontalPadding:!!F};_.Jz(r,l.rendererContext);var N1=_.j9(function(Py){return void(Y==null?void 0:Y(Py))}),bf=_.EV();
_.rj(function(){N&&(fa.value.addEventListener("focusin",W),fa.value.addEventListener("focusout",c));return function(){fa.value&&N&&(fa.value.removeEventListener("focusin",W),fa.value.removeEventListener("focusout",c))}});
D=_.j9(function(){return!1});
return _.X("yt-list-item-view-model",{el:r,class:K,role:G?"menuitem":"listitem",tabindex:cy?void 0:Y||N?0:void 0,"on:keydown":cy?D:bf,"on:click":cy?D:N1},_.TY(y,function(){return kjt(l.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.X(RCI,Object.assign({},ED))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.X(Eht,Object.assign({},ED))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.X(Eht,Object.assign({},ED,{useCheckIcon:!0}))}]],function(){return sD()})},function(){return sD()}))};
AVO=function(y,W,c){if(W)return[JVD];switch(y){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Nv];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return c?[Nv]:[VBw,Nv];case "TRANSFER_STATE_PAUSED_BY_USER":return[ChH,Nv];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[QhD,Nv];default:return[JVD]}};
hCf=function(y,W,c,Z){return AVO(y,W,Z).map(function(G){var D=G.text,Y=G.iconType,u=G.videoAction;G=G.playlistAction;D=D?{content:D}:void 0;Y=Y&&{sources:[{clientResource:{imageName:Y}}]};var t=(0,_.Eb.unsafeClone)(c);if(t){var b=_.g(t,_.yL),r=_.g(t,_.WG);b&&u?b.action=u:r&&G&&(r.action=G)}return{title:D,leadingImage:Y,rendererContext:t&&{commandContext:{onTap:{innertubeCommand:t}}}}})};
B4I=function(y){y=_.pp(y.rendererContext);var W;return(W=_.g(y,_.WG))==null?void 0:W.playlistId};
HTy=function(y){var W;return(W=y.listItems)==null?void 0:W.some(function(c){var Z;return _.PG((Z=_.g(c,_.zZ))==null?void 0:Z.rendererContext)})};
vhO=function(y){var W=y.data;var c=y.isCompact;var Z=y.hideSelectionTextChevron;var G=y.inPopup;y=y.isOverlay;var D=HTy(W)&&G,Y={};return _.X("yt-list-view-model",{class:_.wZ("yt-list-view-model-wiz",(Y["yt-list-view-model-wiz--kaios-spat-nav"]=UwO&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",Y)),role:D?"menu":"list"},Lca(W.listItems,{listItemViewModel:{isMenuItem:D,isCompact:c,hideSelectionTextChevron:Z,inPopup:G,isOverlay:y},
downloadListItemViewModel:{isMenuItem:D,isCompact:c,inPopup:G}}))};
I0=function(y){var W=_.U().resolve(_.xN(_.EH));return W!=null&&W()?y.darkThemeColorPalette:y.lightThemeColorPalette};
PE=function(y){return{primaryTextColor:ps(y,0),secondaryTextColor:ps(y,1),optionColor:ps(y,2),backgroundColor:ps(y,3),videoBackgroundColor:ps(y,4)}};
ps=function(y,W){if(y){switch(W){case 0:y=y.primaryTitleColor;break;case 1:y=y.secondaryTitleColor;break;case 2:y=y.surgeColor;break;case 3:y=y.section2Color;break;case 4:y=y.section3Color;break;default:return}if(y)return _.$$(y)}};
dUg=function(y){return y?_.KZ(y):""};
Syg=function(y){return(y==null?void 0:y.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
T4F=function(y,W){var c;return"linear-gradient(to bottom, "+((c=W==null?void 0:W.map(function(Z){var G=y?Z.darkThemeColor:Z.lightThemeColor;return G?_.KZ(G)+" "+((Z==null?void 0:Z.startLocation)||0)*100+"%":"transparent"}))==null?void 0:c.join(", "))+")"};
ajt=function(y){var W=y.className;var c=y.data;var Z=y.isOverlay;var G=y.maxLinesOverride;var D=y.useMediumText;y=_.HO();var Y=c.description,u=c.alwaysShowTruncationText,t=c.truncationText,b=c.maxLines,r,F=!((r=_.g(c.rendererContext,I1H))==null||!r.onTap),K,l,N=(l=(K=_.g(c.rendererContext,_.Cp))==null?void 0:K.label)!=null?l:"";r=_.z(j8(!1));var P=r.next().value,V=r.next().value;_.Jz(y,c.rendererContext);r=_.j9(function(){c.expandOnTap&&V(!P);return!1});
K={};return _.X("yt-description-preview-view-model",{el:y,class:_.wZ("yt-description-preview-view-model-wiz",W,(K["yt-description-preview-view-model-wiz--clickable"]=F,K["yt-description-preview-view-model-wiz--is-overlay"]=Z,K)),"on:click":r},_.TY(Y,function(){var Q={};return P?_.X("div",{class:_.wZ("yt-description-preview-view-model-wiz__description",(Q["yt-description-preview-view-model-wiz__description--medium-text"]=D,Q))},_.X(_.Da,{text:Y})):_.X(Ckf,{text:Y,alwaysShowTruncationText:u,truncationText:t,
maxLines:G!=null?G:b,isOverlay:Z,accessibilityLabel:N,useMediumText:D})}))};
MBD=function(y,W,c,Z,G){var D=!y.metadata;var Y=W?_.g(y.heroImage,xUw):_.g(y.animatedImage||y.image,xUw);if(!Y)return{size:0};y=Y.style;var u=Y.layoutMode;Y=D$g(o5D(Y));if(W)W=iTf(c,y,u,Y,G);else a:if(D)W=c===1?{size:48}:{size:72};else switch(c){case 1:W={size:72};break a;case 2:W={size:120};break a;default:W=Z<4?{size:120}:{size:160}}return W};
iTf=function(y,W,c,Z,G){if(!((Z==null?0:Z.height)&&(Z==null?0:Z.width)))return{size:0};var D=Z.width;Z=Z.height;if(G)return W==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&D>Z?{size:312/Gdy}:W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(c!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||y!==1&&y!==2||W!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&W!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&W!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(W==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||W==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||Z===D)switch(y){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(W==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Z>D)switch(y){case 1:case 3:return{size:240*ZJ1};default:return{size:360*ZJ1}}switch(y){case 1:case 2:return{size:1/Gdy*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.eCI=function(y){if(!("matchMedia"in window))return _.Va(Error("Oh")),function(){return!1};
var W=window.matchMedia(y);y=_.z(_.G9(W.matches,void 0,"jLJc8e"));var c=y.next().value,Z=y.next().value,G=function(D){Z(D.matches)};
W.addEventListener?(W.addEventListener("change",G),_.KL(function(){W.removeEventListener("change",G)})):W.addListener&&(W.addListener(G),_.KL(function(){W.removeListener(G)}));
return c};
wSI=function(y){return y==="IMAGE_BANNER_STYLE_INSET"||y==="IMAGE_BANNER_STYLE_UNKNOWN"};
qyw=function(){if(!("matchMedia"in window))return _.Va(Error("Oh")),0;var y=UE(function(){return window.matchMedia("(max-width: 527.9px)")}),W=UE(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),c=UE(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),Z=UE(function(){return window.matchMedia("(min-width: 1024px)")}),G=_.z(j8(y.matches)),D=G.next().value,Y=G.next().value,u=_.z(j8(W.matches));
G=u.next().value;var t=u.next().value,b=_.z(j8(c.matches));u=b.next().value;var r=b.next().value;b=_.z(j8(Z.matches));var F=b.next().value,K=b.next().value,l=UE(function(){return function(Q){Y(Q.matches)}}),N=UE(function(){return function(Q){t(Q.matches)}}),P=UE(function(){return function(Q){r(Q.matches)}}),V=UE(function(){return function(Q){K(Q.matches)}});
_.rj(function(){y.addEventListener?(y.addEventListener("change",l),W.addEventListener("change",N),c.addEventListener("change",P),Z.addEventListener("change",V)):y.addListener&&(y.addListener(l),W.addListener(N),c.addListener(P),Z.addListener(V));return function(){y.removeEventListener?(y.removeEventListener("change",l),W.removeEventListener("change",N),c.removeEventListener("change",P),Z.removeEventListener("change",V)):y.removeListener&&(y.removeListener(l),W.removeListener(N),c.removeListener(P),
Z.removeListener(V))}});
return D?1:G?2:u?3:F?4:0};
k3g=function(y){var W=0;y=_.z([y.title,y.metadata,y.actions,y.description,y.attribution]);for(var c=y.next();!c.done;c=y.next())c.value&&W++;return W};
ypO=function(y,W,c){var Z;if(y=_.g((Z=_.g(y.image,jkh))==null?void 0:Z.avatar,_.hz))switch(W){case 1:y.avatarImageSize="AVATAR_SIZE_XL";break;case 2:y.avatarImageSize="AVATAR_SIZE_XXL";break;default:c<4?y.avatarImageSize="AVATAR_SIZE_XXL":y.avatarImageSize="AVATAR_SIZE_XXXL"}};
WJE=function(y,W){return y?_.X("div",{class:"page-header-view-model-wiz__scroll-container"},W()):W()};
_.Zbh=function(y){var W=y.data;var c=y.noPadding;var Z=y.enableBanner;var G=y.cinematicContainerTopbarOffset;var D=y.allowCinematicContainerOverflow;var Y=y.displayAsSidebar;var u=y.displayAsPanel;y=k3g(W);var t=!!W.heroImage,b=!!W.image||!!W.animatedImage,r=!!W.background,F=Y||u?1:qyw(),K=F===1,l=F===2,N=K||l,P=F===4,V=MBD(W,t,F,y,Y),Q={};c=_.wZ((Q["page-header-view-model-wiz"]=!0,Q["page-header-view-model-wiz--no-padding"]=!!c,Q["page-header-view-model-wiz--small-top-padding"]=K&&!W.actions||l&&
!(b||t),Q["page-header-view-model-wiz--small-bottom-padding"]=N&&!W.actions,Q["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!D,Q["page-header-view-model-wiz--display-as-sidebar"]=Y,Q["page-header-view-model-wiz--display-as-panel"]=u,Q));D={};var S=_.wZ((D["page-header-view-model-wiz__page-header-headline"]=!0,D["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=V.allowFullWidth,D)),cy=N&&!V.allowFullWidth;u=(D=K&&(t||b)&&y>0)&&u;l={};u=
(l["page-header-view-model-wiz__page-header-title"]=!0,l["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!D,l["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=D&&!u,l["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=u,l["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=r,l);D={};D=(D["page-header-view-model-wiz__page-header-headline-image"]=!0,D["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
t&&N,D);var M;l={};var fa=(l["page-header-view-model-wiz__page-header-banner-container"]=Z,l["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=Z&&((M=_.g(W.banner,_.cpa))==null?void 0:M.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",l);M={};M=(M["page-header-view-model-wiz__page-header-content-metadata"]=!0,M["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=r,M);l={};l=(l["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
l["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!W.metadata||N,l["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!N,l);Q={};Q=(Q["page-header-view-model-wiz__page-header-attribution"]=!0,Q["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=r,Q);var jI={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:r,
maxLinesOverride:K?void 0:1,useMediumText:P},dynamicTextViewModel:{className:_.wZ(u)},contentPreviewImageViewModel:{className:_.wZ(D),imageSizeConfig:V},contentMetadataViewModel:{layout:K?1:0,className:_.wZ(M),isOverlay:r,useMediumText:P},flexibleActionsViewModel:{layout:F===1||F===2?1:0,className:_.wZ(l)},attributionViewModel:{className:_.wZ(Q),useMediumText:P},decoratedAvatarViewModel:{className:_.wZ(D)},cinematicContainerViewModel:{topbarOffset:G},flexibleContainer:{isOverlay:r}};b&&ypO(W,F,y);
return _.X("yt-page-header-view-model",{class:c},_.TY(r,function(){return _.X("div",{class:"page-header-view-model-wiz__page-header-background"},JD(W.background,jI))}),WJE(!!Y,function(){return _.X("div",{class:"page-header-view-model-wiz__page-header-content"},_.TY(Z&&(W==null?void 0:W.banner),function(){return _.X("div",{class:_.wZ(fa)},JD(W==null?void 0:W.banner,jI))}),_.X("div",{class:S},_.TY(b,function(){return JD((W==null?void 0:W.animatedImage)||(W==null?void 0:W.image),jI)}),_.TY(t&&!cy,function(){return JD(W==
null?void 0:W.heroImage,jI)}),_.X("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.TY(t&&cy,function(){return _.X("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},JD(W==null?void 0:W.heroImage,jI))}),_.TY(W==null?void 0:W.title,function(){return JD(W==null?void 0:W.title,jI)}),_.TY(W.metadata,function(){return JD(W.metadata,jI)}),_.TY(W.description&&!K,function(){return JD(W.description,jI)}),_.TY(W.attribution&&!N,function(){return JD(W.attribution,
jI)}),_.TY(W.actions&&!N,function(){return JD(W.actions,jI)}))),_.X("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.TY(W.description&&K,function(){return JD(W.description,jI)}),_.TY(W.attribution&&N,function(){return JD(W.attribution,jI)}),_.TY(W.actions&&N,function(){return JD(W.actions,jI)})),_.X("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.TY(W.bottomMetadataFlexibleContainer,function(){return JD(W.bottomMetadataFlexibleContainer,jI)})))}))};
fkD=function(y){var W,c=((W=_.U().resolve(_.xN(_.EH)))==null?0:W())&&y.data.darkThemeImage?y.data.darkThemeImage:y.data.image;W=_.X("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.X("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},c?_.X(_.J3,{data:c,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),GJ1(y.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));c=_.X(_.Da,{text:y.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var Z=y.data;if(Z.bodyText){var G=[];Z=_.z(Z.bodyText);for(var D=Z.next();!D.done;D=Z.next())G.push(_.X(_.Da,{text:D.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else G=_.X(_.a2,null);return _.X("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},W,c,G,GJ1(y.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.X(_.Da,{text:y.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.X(_.Da,{text:y.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
Dbw=function(y){y=(new ocI).parse(y);return(new oi).render(y).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(W){var c=W.split(":").map(Number),Z=0,G=0;if(c.length===3)c=_.z(c),Z=c.next().value,G=c.next().value,c=c.next().value;else if(c.length===2)c=_.z(c),G=c.next().value,c=c.next().value;else if(c.length===1)c=_.z(c).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Z*3600+G*60+c)+'" role="button">'+W+"</span>"})};
zct=function(y){y=_.z(y.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var W=y.next(),c={};!W.done;c={clickHandler$jscomp$4:void 0},W=y.next()){W=W.value;c.clickHandler$jscomp$4=function(G){G=Number(G.target.getAttribute("data-time"));if(isNaN(G))throw Error("Qh");var D=document.querySelector("video");D&&(D.currentTime=G)};
var Z=function(G){return function(D){D.key!=="Enter"&&D.key!=="Space"||(0,G.clickHandler$jscomp$4)(D)}}(c);
W.setAttribute("tabindex","0");W.removeEventListener("click",c.clickHandler$jscomp$4);W.removeEventListener("keydown",Z);W.addEventListener("click",c.clickHandler$jscomp$4);W.addEventListener("keydown",Z)}};
YlD=function(){return _.X("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.X(Vo,{percentWidth:100}),_.X(Vo,{animationDelay:200}),_.X(Vo,{animationDelay:400}),_.X(Vo,{animationDelay:600}),_.X(Vo,{animationDelay:800,percentWidth:60}),_.X("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.X(Vo,{percentWidth:100}),_.X(Vo,{animationDelay:200}),_.X(Vo,{animationDelay:400}),_.X(Vo,{animationDelay:600,percentWidth:50}))};
Vo=function(y){return _.X("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(y.percentWidth===void 0?100:y.percentWidth)+"%"},_.X("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(y.animationDelay===void 0?0:y.animationDelay)+"ms"}))};
mbt=function(){var y=_.z(_.G9(function(){return""},void 0,"v2wS5e")),W=y.next().value;
return[function(){return W()()},
y.next().value]};
uaI=function(y){y=y===void 0?{}:y;return{title:_.wK(y.localizedOptInBannerTitleText===void 0?"":y.localizedOptInBannerTitleText),titleLength:19,subtitle:_.wK(y.localizedOptInMessage===void 0?"":y.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wK(_.bN("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:_.wK(_.bN("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:[skD]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
tWD=function(y,W){y=y?hvg(y):"";W!==void 0&&isFinite(W)?W===0?W=_.bN("UPDATING",void 0,"Updating..."):(W=KBt(new Date(W),new Date),W=_.bN("UPDATED_TIME",{relative_time:W},"Updated "+W)):W="";var c="";y&&W&&(c=" \u2022 ");return _.wK(y+c+W)};
bby=function(y,W,c,Z,G,D){W=W===void 0?0:W;var Y=ncw[W],u=Y.title,t=Y.iconType,b=Y.topButtonRenderer,r=Y.sectionClientVE;Y=Y.videoClientVE;var F;if(W!==1||y.length){c=[];y=_.z(y);for(Z=y.next();!Z.done;Z=y.next()){var K=Z.value;if(W_I(K))c.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:K.videoEntity.videoId,title:q2(K.videoEntity.title),shortBylineText:q2(K.channelEntity.title),thumbnail:K.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:K.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.bN("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}}}});else if(yIg(K)){Z=c;var l=Z.push;var N=void 0,P=void 0,V=void 0,Q=void 0,S=void 0,cy=void 0,M=void 0,fa=void 0,jI=K.mainPlaylistEntity.playlistId,sD=K==null?void 0:(fa=K.mainPlaylistEntity)==null?void 0:(M=fa.thumbnailStyleData)==null?void 0:(cy=M[0])==null?void 0:(S=cy.value)==null?void 0:(Q=S.collageThumbnail)==null?void 0:Q.coverThumbnail;Q=VeD(jI);if(!_.O("enable_offline_playlist_page")&&
(K==null?0:(V=K.mainPlaylistEntity)==null?0:V.videos)){b:{V=K==null?void 0:(P=K.mainPlaylistEntity)==null?void 0:P.videos;P=_.Sv().getState().entities;if(V!=null&&V.length&&P)for(V=_.z(V),S=V.next();!S.done;S=V.next())if(S=_.W$(S.value).entityId,(S=JSON.parse(S).videoId)&&TRa(P,S)==="TRANSFER_STATE_COMPLETE"){P=S;break b}P=""}P!==void 0&&(Q=JK(_.Sv().getState(),P),Q=_.eG(P,jI,void 0,void 0,Q))}P=QYt(_.bN("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),VeD(jI));K=jI&&sD&&P?{playlistId:jI,navigationEndpoint:Q,
viewPlaylistText:P,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:sD}},title:q2(K.mainPlaylistEntity.title),shortBylineText:q2(K==null?void 0:(N=K.channelEntity)==null?void 0:N.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:XHD,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:jI,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.bN("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Y}}}:
void 0;l.call(Z,{gridPlaylistRenderer:K})}}Y={gridRenderer:{items:c}};W===1&&(F=tWD(G,D))}else if(Z){var ED=_.wK((l=c==null?void 0:c.localizedPromptMessage)!=null?l:"");Y={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wK(_.bN("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Utt}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wK(_.bN("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};F=tWD(G,D)}else ED=_.wK(_.bN("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Y={};return{contents:[{shelfRenderer:{title:u,titleAnnotation:F,icon:{iconType:t},subtitle:ED,content:Y,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:b}]}}}}],loggingDirectives:{clientVeSpec:{uiType:r}}}};
rpa=function(y,W,c,Z,G,D,Y,u){c=c===void 0?{}:c;Z=Z===void 0?!1:Z;G=G===void 0?!1:G;D=D===void 0?!1:D;Y=Y===void 0?0:Y;u=u===void 0?-Infinity:u;if(!W.length&&!y.length&&!Z)return G?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:I8w(c)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.wK(_.bN("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 t=[];y.length&&t.push(bby(y,0));Z?t.push(bby(W,1,c,D,Y,u)):G&&t.push({contents:[{statementBannerRenderer:uaI(c)}]});(Z&&W.length||y.length)&&t.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.wK(_.bN("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 t.map(function(b){return{itemSectionRenderer:b}})};
Cs=function(y,W){if(typeof y!=="object")return null;y=_.z(Object.entries(y));for(var c=y.next();!c.done;c=y.next()){var Z=_.z(c.value);c=Z.next().value;Z=Z.next().value;if(c===W)return c;if(Z=Cs(Z,W))return c+"."+Z}return null};
Qo=function(y){var W=y.content;return(y=y.styleRuns)&&W?{runs:y.map(function(c){var Z={text:W.slice(c.startIndex,c.startIndex+c.length)};c.fontColor&&(Z.textColor=c.fontColor);return Z})}:{simpleText:W}};
$by=function(y,W,c,Z){var G=FJD;Z&&(y.quantity=Z);if(!y.quantity||!y.maxQuantity)return{};Z=y.minusButton;var D=y.plusButton,Y,u,t,b;return{value:y.quantity,maxValue:y.maxQuantity,onChangeCallback:function(r){G(y,r)},
minusLabel:(Y=_.g(Z,UbE))==null?void 0:Y.label,minimumReachedLabel:(u=_.g(Z,UbE))==null?void 0:u.limitReachedLabel,plusLabel:(t=_.g(D,UbE))==null?void 0:t.label,maximumReachedLabel:(b=_.g(D,UbE))==null?void 0:b.limitReachedLabel,disabled:W,onRemoveCommand:c}};
FJD=function(y,W){var c=y.quantityIncrementerEntityKey;if(c){var Z={};Z.quantity=W;_.PQ(_.$Y("quantityIncrementerEntity",c,Z));y.onChangeCommand&&_.OH(y.onChangeCommand)}};
KJf=function(y){return _.O("kevlar_comments_clone_data_killswitch")?y:_.Eb.unsafeClone(y)};
RcH=function(y,W){(y=ObH(y))&&(W?gca.push({command:y,sourceData:{},commandContext:void 0}):_.U().resolve(_.i1).resolveCommand(y))};
ObH=function(y){return _.g(y,_.Fx)};
lkF=function(){var y=window.performance.timeOrigin+window.performance.now(),W=(new _.AD).setSeconds(y/1E9);return _.LQ(W,2,_.jD(y%1E9),0)};
hD=function(y,W){var c=_.g(_.g(y,_.Fx),Ect);c&&(W&&(c.serializedAdditionalMetadata=_.OB(W)),RcH(y,!0))};
NyH=function(y){switch(y){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"}};
IkF=function(){return!!_.Nn("ID_TOKEN")};
JpI=function(y){return y instanceof Error&&y.cause instanceof pHg&&y.cause.rpcErrorCode!==void 0?!PyI.includes(y.cause.rpcErrorCode):!0};
Cyy=function(){return _.HI(VWf,{authuser:""+(_.Nn("SESSION_INDEX")||0)})};
BE=function(y,W,c,Z){c=c===void 0?"MINI_APP_SDK_API_UNSPECIFIED":c;Z=Z===void 0?"":Z;var G=new _.ul;c={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Z,sdkApi:c};y instanceof Error&&(G.message=y.message,G.name=y.name,y.cause instanceof pHg&&y.cause.rpcErrorCode!==void 0&&(c.rpcErrorCode=y.cause.rpcErrorCode));var D;(D=W.onError)==null||D.call(W,{loggingError:G,metadata:c})};
Apw=function(y,W,c,Z){switch(y){case "MINI_APP_SOURCE_GAMESNACKS":return new HE(W,c,Z);default:return new QkO(W,c,Z)}};
hcO=function(y){switch(y){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"}};
ByH=function(y){switch(y){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"}};
HbE=function(y){switch(y){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"}};
LJt=function(){return Math.floor(Math.random()*4)+1};
vcE=function(y,W,c,Z){y=_.z(Object.entries(y));for(var G=y.next(),D={};!G.done;D={message$jscomp$956:void 0},G=y.next()){var Y=_.z(G.value);G=Y.next().value;Y=Y.next().value;D.message$jscomp$956=Y;W.push(setTimeout(function(u){return function(){Z(!1);c(u.message$jscomp$956.text)}}(D),D.message$jscomp$956.delayMs));
Number(G)>0&&W.push(setTimeout(function(){Z(!0)},D.message$jscomp$956.delayMs-400))}};
dbE=function(y,W){var c=c===void 0?LNI:c;_.O("mweb_fix_monitor_visibility_after_render")?y&&sH(function(){ShI(y,W,c)}):sH(function(){ShI(y,W,c)})};
xbw=function(y){Slt||(Slt=TyD(new _.Cq(1,void 0,void 0,akg),0));var W=Slt.format(Math.floor(y));W=_.Vl==="be"||_.Vl==="bg"||_.Vl==="es"||_.Vl==="et"||_.Vl==="hu"||_.Vl==="ka"||_.Vl==="lv"||_.Vl==="pl"||_.Vl==="pt-PT"||_.Vl==="sq"?W.replace(new RegExp("^(\\d)"+akg.GROUP_SEP.replace(".","\\.")+"(\\d+("+akg.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):W;return y>=1E3&&y<=9999&&W[1]==="."&&(_.Vl==="sl"||_.Vl==="it")?W.replace(".",""):W};
ibI=function(y,W){t3("ytd-button-renderer",{data:y,className:W?W.className:"",overrides:W==null?void 0:W.buttonOverrides},Al)};
wHI=function(y,W,c,Z){if(y)return Z=Z||y.likeStatus,W?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="LIKE",isDisabled:!y.likesAllowed,defaultIcon:{iconType:c},defaultText:Z==="LIKE"?y.likeCountWithUnlikeText:y.likeCountText,toggledText:Z==="LIKE"?y.likeCountText:y.likeCountWithLikeText,defaultNavigationEndpoint:MWD(y,"LIKE"),defaultServiceEndpoint:ecw(y,"LIKE"),toggledServiceEndpoint:ecw(y,"INDIFFERENT"),defaultTooltip:_.v$(y.likeCountTooltipText),toggledTooltip:_.v$(y.likeCountTooltipText),
targetId:y.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="DISLIKE",isDisabled:!y.likesAllowed,defaultIcon:{iconType:c},defaultText:Z==="DISLIKE"?y.dislikeCountWithUndislikeText:y.dislikeCountText,toggledText:Z==="DISLIKE"?y.dislikeCountText:y.dislikeCountWithDislikeText,defaultNavigationEndpoint:MWD(y,"DISLIKE"),defaultServiceEndpoint:ecw(y,"DISLIKE"),toggledServiceEndpoint:ecw(y,"INDIFFERENT"),defaultTooltip:_.v$(y.dislikeCountTooltipText),
toggledTooltip:_.v$(y.dislikeCountTooltipText)}};
MWD=function(y,W){if(W==="LIKE")return y.likeCommand;if(W==="DISLIKE")return y.dislikeNavigationEndpoint};
ecw=function(y,W){var c;return(c=y.serviceEndpoints)==null?void 0:c.find(function(Z){var G;return((G=_.g(Z,_.Ls))==null?void 0:G.status)===W})};
qlh=function(y,W){W=W===void 0?{}:W;if(y){var c=!!W.activeState,Z=W.iconSize,G=W.className,D=W["aria-hidden$"],Y=W["aria-label$"],u=W.role;W=W.style$+";width: "+((W.width||Z)+"px;height: ")+((W.height||Z)+"px;color: ")+(W.color+";");y={icon:y};c!==void 0&&(y.active=c);Z!==void 0&&(y.size=Z);W!==void 0&&(y.style=W);G!==void 0&&(y.className=G);D!==void 0&&(y.ariaHidden=D);Y!==void 0&&(y.ariaLabel=Y);u!==void 0&&(y.role=u);t3("yt-icon",y,Al)}};
_.ygD=function(y,W,c){return window.spf&&!_.O("web_disable_spfjs_client")?kJ1(y,W,c):jzy(y,W)};
kJ1=function(y,W,c){var Z=null,G=(new _.fD(function(D,Y){var u={};if(W){u.method=W.method;var t=W.postParams||{};hoO(y,W)&&(t[_.Nn("XSRF_FIELD_NAME")]=_.Nn("XSRF_TOKEN"));u.postData=_.Gj(t);W.type&&(u.type=W.type);t=W.headers}u.headers=PNI(y,t);_.O("debug_forward_web_query_parameters")&&(y=_.QPE(y,window.location.search));u.experimental_headers=u.headers;u.onError=function(b){b.err&&b.xhr&&(b.err.params={url:b.xhr.responseURL,response:b.xhr.responseText.substr(0,64)});Y(b.err)};
u.onPartDone=function(b){c&&c.call(null,b.part)};
u.onDone=function(b){var r=WGH(b.response,"xsrf_token");dj(window.location.href,y)&&r&&_.l1("XSRF_TOKEN",r);if(r=WGH(b.response,"service_worker_killswitch"))_.l1("SERVICE_WORKER_KILLSWITCH",r),Qw1();D(b.response)};
Z=spf.request(y,u)})).then(cgh);
G.thenCatch(function(D){var Y=D instanceof _.AG,u=D&&D.hasOwnProperty("params")&&D.params.response?D.params.response:"";D instanceof Error&&(u?Y?Op1(D):u===')]}\'\n{"reload":"now"}'?Op1(D):(Z0D(D,y,u),GUH(D,u)?_.Rs(D):_.OP(D)):Op1(D));Z&&Z.abort()});
return G};
cgh=function(y){if(y.type==="multipart"){var W=y.timing;y=y.parts.reduce(function(c,Z){Object.assign(c,Z);return c},{});
y.timing=y.timing||{};Object.assign(y.timing,W);y.type="reduced"}return y};
jzy=function(y,W){W=W===void 0?{}:W;var c=null,Z=new _.fD(function(G,D){W.onFinish=function(Y){if(Y.readyState===XMLHttpRequest.DONE)if(Y.status===200){if(Y.responseType!=="json"){var u=Y.response;u.substring(0,5)===")]}'\n"&&(u=u.substring(5));try{var t=JSON.parse(u)}catch(b){t=b}}else t=Y.response;t instanceof Error?D(t):(u=WGH(t,"xsrf_token"),dj(window.location.href,y)&&u&&_.l1("XSRF_TOKEN",u),Y=Y.responseURL,window.performance&&window.performance.getEntriesByName?(u=window.performance.getEntriesByName(Y).pop())?
Y={responseStart:(0,_.Tj)()-(u.responseEnd-u.responseStart)}:(Math.random()<.01&&(u=Error("bi"),u.params=Y,_.Rs(u)),Y={responseStart:-1}):Y={responseStart:0},t.timing=t.timing||{},Object.assign(t.timing,Y),G(t))}else D(Error("ai`"+Y.status))};
(c=_.ZP(y,W))||D(Error("ai`"+c.status))});
Z.thenCatch(function(G){G instanceof Error&&(Z0D(G,y),GUH(G)&&(G.level="WARNING"))});
_.O("cancel_pending_navs")&&Z.thenCatch(function(){c.abort()});
return Z};
WGH=function(y,W){var c=y[W],Z=y.parts;y.type==="multipart"&&Z&&(c=(y=Z.find(function(G){return W in G}))&&y[W]);
return c};
Z0D=function(y,W,c){var Z=y.message||"";W={original:Z,url:W};if(c)if(Z=Z.match(/position:?\s*(\d+)/)){Z=Z&&Number(Z[1])?Number(Z[1]):0;var G=Math.max(Z-25,0);W.position=Z;W.response=c.substring(G,Z+25)}else W.response=c.substring(0,50);_.NF(y,W);try{y.message="JSON parse error"}catch(D){}};
GUH=function(y,W){y=y.message||"";y=!!(y.indexOf("<")>=0||y.indexOf("end of ")>=0||y.indexOf("Unterminated string")>=0||y.indexOf("Unexpected EOF"));if(!y&&W)for(var c=W.length,Z=!1,G=0;G<c;G++)if(Z&&W[G]==="\\")G++;else if(W[G]==='"')Z=!Z;else if(W[G]==="<"&&!Z){y=!0;break}return y};
foH=function(){return document.documentElement.hasAttribute("dark")};
_.oOf=function(y,W){if(y!=="GFEEDBACK"&&y!=="GUIDED_HELP")_.pj(Error("ci`"+y));else{var c=_.U().resolve(_.xN(_.h7));if(c&&(c=c.getCurrentPage())&&c.getServiceTrackingParams&&(c=c.getServiceTrackingParams()))for(var Z=0,G;G=c[Z++];)if(G.service===y){if(y=G.params)for(c=0;Z=y[c++];)W[Z.key]=Z.value;break}}};
_.DpO=function(y){var W=_.HF();W&&(W=W.getPlayer())&&(W.pauseVideo(),y.playback_id=W.getVideoData().cpn,y.eid=W.getVideoData().eventId,Object.assign(y,W.getFeedbackProductData()))};
zuf=function(){var y={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Nn("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(y.enableAnonymousFeedback=!0);_.Nn("SESSION_INDEX")&&(y.authuser=String(_.Nn("SESSION_INDEX")));_.O("enable_pageid_for_feedback")&&_.Nn("DELEGATED_SESSION_ID")&&(y.pageId=String(_.Nn("DELEGATED_SESSION_ID")));return y};
_.vE=function(y){_.O("enable_ypc_spinners")&&_.GG(y,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},y])};
_.de=function(y){_.O("enable_ypc_spinners")&&_.GG(y,"yt-close-popup-action",["yt-loading-renderer"])};
Ynt=function(y){return new Promise(function(W,c){_.$0({verifyCommand:{recaptchaToken:y.recaptchaResponse}},{commandController:{onSuccess:function(Z,G){G||c("ChallengeService did not return a response.");var D;W({challengeCompleted:(D=G.verified)!=null?D:!1})},
onServerError:function(Z,G){c(G)}}})})};
mpw=function(y,W,c,Z){W({recaptchaResponse:Z}).then(function(G){G.challengeCompleted?_.Y7()?(c(3),_.U().resolve(_.i1).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:y}})):c(2):c(4)},function(){c(4)})};
szE=function(y,W,c){_.Vn("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Nn("HL"),function(){var Z;(Z=window.grecaptcha)==null||Z.ready(function(){var G=window.grecaptcha;G?(c(G.render(y,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:mpw.bind(null,y,Ynt,W)})),W(1)):W(4)})})};
uU1=function(y,W){return function(){switch(W()){case 0:return y().captchaLoadingMessage;case 1:return y().challengeReason;case 3:return y().captchaSuccessfulMessage;case 2:return y().captchaCookieSetFailureMessage;case 4:return y().captchaFailedMessage;default:return y().challengeReason}}()};
_.Ss=function(){if(!trI){var y=document.querySelector("#player.skeleton");y&&(_.to(y),trI=!0)}};
_.XWw=function(){return nOt=CuD()};
FGf=function(){return _.m(function(y){return b0f!==void 0?y.return():_.n(y,rgI(),0)})};
rgI=function(){return _.m(function(y){if(y.nextAddress==1)return _.n(y,Ayy(),2);nOt=y.yieldResult;b0f=_.KX.addLowPriorityJob(rgI,5E3);_.F2(y)})};
Rua=function(y){var W=W===void 0?Upy:W;var c,Z,G=(c=y.responseContext)==null?void 0:(Z=c.mainAppWebResponseContext)==null?void 0:Z.trackingParam;if(!G){W.increment("MISSING");var D,Y,u,t,b,r;_.Rs(new _.ul("282054944_a",{hoI:!!((D=y.responseContext)==null?0:(Y=D.mainAppWebResponseContext)==null?0:Y.loggedOut),xfT:((u=y.responseContext)==null?void 0:u.mainAppWebResponseContext)===void 0,w0I:y.responseContext===void 0,gjm:(t=y.playabilityStatus)==null?void 0:t.contextParams,b4G:(((b=y.streamingData)==
null?void 0:b.formats)||[]).length>0,jHX:(((r=y.streamingData)==null?void 0:r.adaptiveFormats)||[]).length>0,os:!!y.offlineState,cotn:y.cotn}));return 2}c="";try{c=$pf(G)}catch(l){return W.increment("C_ERROR"),_.OP(l),2}try{var F=_.KGa(c);var K=O0H(F)}catch(l){return W.increment("P_ERROR"),_.OP(l),2}K=_.wQ(K,gOI,1,_.ky());G=[];K=_.z(K);for(F=K.next();!F.done;F=K.next())Z=F.value,F=Z.getPath(),c=(0,_.Eb.getValueByKeys)(y,F.split(".")),c=String(c===void 0||c===null?"":c),Z=Z.getValue()||"",D=/[+\-\/_]/g,
c.replace(D,"")!==Z.replace(D,"")&&(W.increment("MISMATCH"),_.O("ab_mis_log_err")&&(c=new _.ul("282054944_p",{yeX:F,g:String(c),e:String(Z)}),_.OP(c)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(F)||(F.match(/enforcementMessageViewModel/i)?G.push(3):G.push(2)));if(G.length>0)return Math.max.apply(Math,_.No(G));W.increment("SUCCESS");return 1};
NoI=function(y){var W=new Tq;if(y.interpreterJavascript){var c=_.uXO(y.interpreterJavascript);c=x9w(c).toString();var Z=new low;_.Ub(Z,6,c);_.uF(W,1,Z,IV)}else y.interpreterUrl&&(c=_.OW(y.interpreterUrl),c=_.U3(c).toString(),Z=new _.EOh,_.Ub(Z,4,c),_.uF(W,2,Z,IV));y.interpreterHash&&_.a0(W,3,y.interpreterHash,IV);y.program&&_.a0(W,4,y.program,IV);y.globalName&&_.a0(W,5,y.globalName,IV);y.clientExperimentsStateBlob&&_.a0(W,7,y.clientExperimentsStateBlob,IV);return W};
xD=function(y){var W={};y=_.z(y.split("&"));for(var c=y.next();!c.done;c=y.next())c=c.value.split("="),c.length===2&&(W[c[0]]=c[1]);return W};
IoO=function(y){return Number(y.t)||7200};
rWE=function(){if(_.O("bg_st_hr"))return"havuokmhhs-0";var y,W=((y=performance)==null?void 0:y.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)};
pWt=function(){return new Promise(function(y){var W=window.top;W.ntpevasrs!==void 0?y(new iL(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(c){y(new iL(c))}))})};
PrH=function(y){var W=y.t90.bind(y);_.LR("yt.aba.att",W);y=y.xd4.bind(y);_.LR("yt.aba.att2",y)};
VrE=function(y){switch(_.c7(y.input)){case _.Tx(JgD):var W={};return W.encryptedVideoId=y.innerTubeRequest.externalVideoId,W}return{}};
QzH=function(y){switch(_.c7(y.input)){case _.Tx(JgD):if(_.O("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Tx(Mv):if(_.O("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&y.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Tx(CrO):var W,c;if(_.O("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((c=_.g((W=y.config)==null?void 0:W.command,
guI))==null?0:c.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.huD=function(y){var W;if(y.playlistVideoRenderer&&((W=y.playlistVideoRenderer)==null?0:W.engagementBar))return AgI(y.playlistVideoRenderer.engagementBar);if(_.g(y,es)){var c;if(y=(c=_.g(y,es))==null?void 0:c.engagementBar)return AgI(y)}return""};
AgI=function(y){if(!y)return"";y=_.g(y,_.Boa);if(y==null||!y.actions)return"";y=_.z(y.actions);for(y=y.next();!y.done;y=y.next()){y=_.g(y.value,_.H0H);var W=void 0;if((W=y)==null||!W.itemId)break;return y.itemId}return""};
_.LGH=function(y){var W;if(y.playlistVideoRenderer&&((W=y.playlistVideoRenderer)==null?0:W.videoId))return y.playlistVideoRenderer.videoId;if(_.g(y,es)){var c,Z;if(y=(c=_.g(y,es))==null?void 0:(Z=c.playlistItemData)==null?void 0:Z.videoId)return y}return""};
_.vOF=function(y){var W;if(y.playlistVideoRenderer&&((W=y.playlistVideoRenderer)==null?0:W.voteCount))return y.playlistVideoRenderer.voteCount;if(_.g(y,es)){var c,Z;if(y=(c=_.g(y,es))==null?void 0:(Z=c.playlistItemData)==null?void 0:Z.voteCount)return y}return 0};
_.kD=function(y,W){return _.fq(y.entities,"flowStateEntity",W)};
Snw=function(y,W,c,Z){var G=void 0;y=_.z(y[W.iconName]||[]);for(var D=y.next();!D.done;D=y.next()){D=D.value;var Y=W.iconSize;var u=W.iconStyle;Y=!Y||Y===D[2];var t=dpw[D[0]];Z&&Z!==D[1]||!Y||u&&u!==t?u=!1:G?(u=dpw[D[0]],u=!!W.iconStyle||u==="youtube_outline",Y=G.version<=D[1],u=(!!W.iconSize||D[2]===24)&&u&&Y):u=!0;u&&(G={name:W.iconName,style:dpw[D[0]],size:D[2],version:D[1],allowMirroring:!!D[3],url:c(W.iconName,D)})}return G};
ToH=function(y,W,c,Z){return y+(""+dpw[c[0]]+((Z===void 0?0:Z)?"_experimental":"")+"/"+W+"/v"+c[1]+"/")+(c[2]+"px.svg")};
jo=function(y){return _.O("web_bookmark_playlist_save_icon")?"bookmark":y};
aoI=function(y,W){return ToH("https://fonts.gstatic.com/s/i/",y,W)};
xpD=function(y,W){return ToH("https://fonts.gstatic.com/s/i/",y,W,!0)};
i0O=function(y,W){return ToH("https://www.gstatic.com/youtube/img/icons/web/",y,W)};
Mr1=function(y){var W=y.enabled;var c=y.itemPlaybackModel;var Z=y.thumbnailElRef;var G=y.containerElRef;var D=y.options;var Y;_.$k(function(){var u=G==null?void 0:G.value;var t,b=(t=Z())==null?void 0:t.value;t=c();var r=D();if(W&&t&&u&&b&&(r==null?0:r.thumbnail)){var F,K;u={mediaRenderer:{data:t,hostElement:u},lockupElement:u,thumbnailElement:b,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.UH((F=t.inlinePlayerData)==null?void 0:F.onVisible),navigationEndpoint:_.UH((K=t.inlinePlayerData)==
null?void 0:K.onSelect),thumbnail:r.thumbnail,thumbnailOverlays:r.thumbnailOverlays||[],accessibilityText:r.accessibilityText||""},thumbnailSize:r.thumbnailSize,enableRounding:r.enableRounding}}}else u=void 0;if(F=u){var l;(l=Y)==null||js(l);Y=BG(F)}});
_.KL(function(){var u;(u=Y)==null||js(u)})};
euF=function(y){y=atob(y);for(var W=[],c=0;c<y.length;c++)W.push(y.charCodeAt(c));return new Blob([new Uint8Array(W)],{type:"image/png"})};
qnH=function(y,W,c,Z){Z=Z===void 0?"INSERTION_POSITION_UNSPECIFIED":Z;return y({targetId:W},function(G){var D,Y=(D=G.contents)!=null?D:[];D=c!=null?c:[];var u=wWw(Y);switch(Z){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},G,{contents:[].concat(_.No(Y.slice(0,u)),_.No(D),_.No(Y.slice(u+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},G,{contents:[].concat(_.No(D),_.No(Y))});case "INSERTION_POSITION_LAST":return Object.assign({},G,{contents:[].concat(_.No(Y),_.No(D))});
default:return G}})};
jqy=function(y,W,c,Z,G){G=G===void 0?"RELATIVE_INSERTION_POSITION_AFTER":G;return y({targetId:W},function(D){var Y,u=(Y=D.contents)!=null?Y:[];Y=kUH(u,c);if(Y<0)return D;Y=G==="RELATIVE_INSERTION_POSITION_BEFORE"?Y:Y+1;return Object.assign({},D,{contents:[].concat(_.No(u.slice(0,Y)),_.No(Z),_.No(u.slice(Y)))})})};
wWw=function(y){var W=y.findIndex(function(c){return _.g(c,_.yQ)});
return W>=0?W:y.length};
kUH=function(y,W){return y.map(function(c){return _.g(c,_.yCh)}).findIndex(function(c){return(c==null?void 0:c.targetId)===W})};
cCE=function(y,W,c){return y({targetId:W},function(Z){var G,D=(G=Z.contents)!=null?G:[];return Object.assign({},Z,{contents:WPI(D,c)})})};
WPI=function(y,W){return y.filter(function(c){var Z=W.includes;a:{c=_.z(Object.values(c));for(var G=c.next();!G.done;G=c.next())if((G=G.value)&&G.targetId){c=G.targetId;break a}c=""}return!Z.call(W,c||"")})};
_.ZwO=function(y,W){return{engagementPanelSectionListRenderer:{panelIdentifier:y,identifier:W,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
GNh=function(y){return y.getOption("captions","tracklist",{includeAsr:!0})};
fOF=function(y){var W=GNh(y);if(W==null?0:W.length)return W;y.loadModule("captions");return GNh(y)};
oof=function(y,W,c){if(y.getVideoData){var Z,G=(Z=fOF(y))==null?void 0:Z.find(function(D){return D.languageCode===c});
Z=_.Gx("/youtube/app/player_caption_language_entity_key","stringEntity",2);W.dispatch(_.o3("stringEntity",Z,{key:Z,value:(G==null?void 0:G.displayName)||""}));G?y.setOption("captions","track",G):(y.setOption("captions","stickyLoading",{}),y.setOption("captions","track",{}))}};
DyH=function(y){return y.getOption("captions","tracklist",{includeAsr:!0})};
zLy=function(y){return y.getOption("captions","tracklist",{includeAsr:!0})};
Y_g=function(y){var W=zLy(y);if(W==null?0:W.length)return W;y.loadModule("captions");return zLy(y)};
myt=function(y){var W=y.getOption("captions","track");if(W)return W;y.loadModule("captions");return y.getOption("captions","track")};
sqI=function(y){var W=Y_g(y);if(W!=null&&W.length){var c=myt(y);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.y8({listItemViewModel:{title:{content:_.bN("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(c==null?0:c.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.No(W.map(function(Z){return{listItemViewModel:{title:{content:Z.displayName},
isSelected:Z.languageCode===(c==null?void 0:c.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Z.languageCode}}]}}}}}}}})))}}}}}}}}};
XtI=function(y){return new Promise(function(W,c){if(y===void 0)_.OP(Error("Di"),"ERROR"),c(Error("Di"));else{c=new _.uIh;var Z=_.t1I();c=c.init();var G=_.nog(_.Nn("YPC_MB_URL"),!0);Promise.all([c,G]).then(function(){var D=payments.business.integration.ClientTokenFactory.createClientToken(y,Z);W(D)})}})};
FPy=function(y,W,c,Z,G,D,Y){var u=_.px();c=c.replace(/-/g,"+").replace(/_/g,"/");var t=_.Uc().get("hl"),b=_.WU(_.QM),r=W==null?void 0:W.element;r&&_.vE(r);bwI(W,!0);_.rCE(b,c,u.resolve,function(){r&&_.de(r)},function(F){r&&_.de(r);
u.reject(F)},t,Z?function(F){Z&&_.IL(y,Z,{backend_analytics:F})}:void 0,u.resolve,G,D,Y);
return u.promise};
bwI=function(y,W){!(y=y==null?void 0:y.element)||y.tagName!=="YT-BUTTON-RENDERER"&&y.tagName!=="YTD-BUTTON-RENDERER"||(y.disabled=W)};
UyO=function(){var y=_.bN("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.wK(y),actionButton:{buttonRenderer:l8a()}}},popupType:"TOAST"}};
$yE=function(){var y=_.bN("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.wK(y),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
KPD=function(y){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:y}]}}};
cU=function(y,W,c,Z){var G;return _.m(function(D){if(D.nextAddress==1)return _.tm(D,2),_.n(D,y,4);if(D.nextAddress!=2)return(G=_.ru(W.getState().entities).length>0)?D.return({title:_.wK(_.bN("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.wK(_.bN("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Rvy()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
D.return(EeH(c,Z));_.rs(D);return D.return(EeH(c,Z))})};
Owg=function(y,W){return W?W==="PPSV"||iFI(y,W):!1};
goh=function(y){y.responseContext||(y.responseContext={});y.responseContext.maxAgeSeconds=0;return y};
Gy=function(y){var W;return _.m(function(c){return c.nextAddress==1?_.n(c,RLa(y,"service:topbar:fallback"),2):(W=c.yieldResult)&&_.Zs(W)?c.return(goh(_.Zs(W))):c.return()})};
lOt=function(y){var W;return _.m(function(c){return c.nextAddress==1?_.n(c,RLa(y,"service:downloads_settings:fallback"),2):(W=c.yieldResult)&&_.Zs(W)?c.return(W):c.return()})};
RLa=function(y,W){var c;return _.m(function(Z){if(Z.nextAddress==1)return y?_.n(Z,y.get(W),2):Z.return();c=Z.yieldResult;return!c||!_.Zs(c)||!isNaN(Number(c.data.expireTimestampMs))&&c.isExpired()?Z.return():Z.return(c)})};
Eo1=function(y){var W=_.U().resolve(fy).getState().entities;return y.playlistId?Owg(W,y.playlistId):!1};
N3I=function(y,W){var c;if(W==null?0:(c=W.requestTemplate)==null?0:c.panelId)y.panelId=W.requestTemplate.panelId;var Z;if(W==null?0:(Z=W.requestTemplate)==null?0:Z.params)y.params=W.requestTemplate.params};
ptF=function(){if(IOD)return IOD();var y=!_.O("idb_response_store_auth_killswitch"),W={};IOD=S5("yt-it-response-store",{objectStores:(W.ResponseStore={addedAtVersion:1},W),shared:!y,upgrade:function(c,Z){Z(1)&&(c=Il(c,"ResponseStore",{keyPath:["key","clientName"]}),pX(c,"byExpiration","expireTimestampMs"),pX(c,"byInterface","clientName"))},
version:1});return IOD()};
PjI=function(y){return _.CR(ptF(),y)};
V1I=function(y,W){var c;return _.m(function(Z){return Z.nextAddress==1?_.n(Z,_.dr(),2):(c=Z.yieldResult)?Z.return(new JCh(y,W,c)):Z.return()})};
CjF=function(y){var W=Object.keys(y)[0];if(W)return y.screenExit&&(W=W+";"+y.screenExit.screen),W};
Qqt=function(y){var W=new Map;y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=c.value,c!=null&&(W.has(c.taskType)||W.set(c.taskType,[]),W.get(c.taskType).push(c));return W};
ACI=function(y){return!isNaN(y)&&y>0};
hLy=function(y){y=[].concat(_.No(y)).sort(function(c,Z){return c-Z});
var W=Math.floor(y.length/2);return y.length%2?y[W]:(y[W-1]+y[W])/2};
HwO=function(){B3f||(Object.assign(wL,{handleError:function(y,W){var c={errorSeverity:W.errorSeverity.toString(),wizFeatureFlags:Object.entries(W.featureFlags).join("\n")};GZf(W,c);W=W.errorSeverity;W===3?_.OP(y,"ERROR",void 0,void 0,void 0,c):W===2&&_.OP(y,"WARNING",void 0,void 0,void 0,c);_.O("cow_if_errors_in_popup")&&W===3&&y.message.indexOf("<If>")!==-1&&window.alert(y.message)},
enableComponentStacksInErrorMessages:!1}),B3f=!0)};
dy1=function(y,W){_.LR("yt.logging.errors.log",_.OP);fxh();LPy(u5a(),W);window.onerror=y;_.O("wiz_next_error_handler_killswitch")||HwO();vow=oYt;window.addEventListener("unhandledrejection",function(c){if(c.reason instanceof Error){var Z=c.reason;_.NF(Z,{source:"unhandledrejection"});Z.name==="AbortError"&&(Z.level="WARNING")}oYt(c.reason);c.preventDefault()})};
_.S_y=function(y){return y.a11y.ephemeralAction||null};
_.T3h=function(y){var W,c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI,sD,ED,N1,bf,Py,WJ,t5,xF,M3,wS,f8,eV,N3,K8,PJ,cX,a$,oI;return _.m(function(Zg){if(Zg.nextAddress==1)return _.n(Zg,_.sq(y,{mode:"readonly",enableRetries:!0},function(xW){return tK(xW,"playbackData").then(function(dS){var bE=dS.map(function(sZ){return sZ.transfer}).filter(function(sZ){return!!sZ}),EZ=dS.map(function(sZ){return sZ.offlineVideoPolicy}).filter(function(sZ){return!!sZ}),jV=dS.filter(function(sZ){return!!sZ.key}).map(function(sZ){return _.Gx(_.W$(sZ.key).entityId,
"downloadStatusEntity")});
bE=tK(xW,"transfer",bE);EZ=tK(xW,"offlineVideoPolicy",EZ);jV=tK(xW,"downloadStatusEntity",jV);var La=bE.then(function(sZ){sZ=sZ.reduce(function(w2,Z3){(Z3==null?0:Z3.offlineVideoStreams)&&w2.push.apply(w2,_.No(Z3.offlineVideoStreams));return w2},[]).filter(function(w2){return!!w2});
return tK(xW,"offlineVideoStreams",sZ)});
return NC.all([bE,EZ,La,jV]).then(function(sZ){var w2=_.z(sZ);sZ=w2.next().value;var Z3=w2.next().value;var J5=w2.next().value;w2=w2.next().value;return[dS,sZ,Z3,J5,w2]})})}),2);
if(Zg.nextAddress!=3)return W=Zg.yieldResult,_.n(Zg,_.sq(y,{mode:"readonly",enableRetries:!0},function(xW){return tK(xW,"mainDownloadsListEntity").then(function(dS){var bE,EZ;return(EZ=(bE=dS[0])==null?void 0:bE.downloads)!=null?EZ:[]})}),3);
c=Zg.yieldResult;Z=_.z(W);G=Z.next().value;D=Z.next().value;Y=Z.next().value;u=Z.next().value;t=Z.next().value;b=G;r=D;F=Y;K=u;l=t;N={};P={};V={};Q={};S={};cy=[];M=_.z(r);for(fa=M.next();!fa.done;fa=M.next())(jI=fa.value)&&(N[jI.key]=jI);sD=_.z(F);for(ED=sD.next();!ED.done;ED=sD.next())(N1=ED.value)&&(P[N1.key]=N1);bf=_.z(l);for(Py=bf.next();!Py.done;Py=bf.next())(WJ=Py.value)&&(V[WJ.key]=WJ);t5=_.z(K);for(xF=t5.next();!xF.done;xF=t5.next())(M3=xF.value)&&(Q[M3.key]=M3);wS=_.z(c);for(f8=wS.next();!f8.done;f8=
wS.next())eV=f8.value,N3=void 0,S[(N3=eV.videoItem)!=null?N3:""]=!0,eV.videoItem&&(PJ=K8=void 0,cX=(PJ=(K8=_.W$(eV.videoItem))==null?void 0:K8.entityId)!=null?PJ:"",cy.push({externalVideoId:cX}));a$=b.filter(function(xW){if(!xW||!xW.key||!xW.offlineVideoPolicy)return!1;xW=_.W$(xW.key).entityId;xW=_.Gx(xW,"downloadStatusEntity");var dS;return!(xW&&((dS=V[xW])==null?void 0:dS.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
oI=a$.map(function(xW){var dS=N[xW.transfer],bE=[];if(dS==null?0:dS.offlineVideoStreams)for(var EZ=_.z(dS.offlineVideoStreams),jV=EZ.next();!jV.done;jV=EZ.next())(jV=Q[jV.value])&&bE.push(jV);EZ=P[xW.offlineVideoPolicy];jV=S;var La=xW==null?void 0:xW.playerResponseTimestamp,sZ=_.W$(EZ.key).entityId;xW=_.Gx(sZ,"mainVideoEntity");if(EZ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var w2="OFFLINE_VIDEO_STATE_DISABLED";EZ.expirationTimestamp&&Number(EZ.expirationTimestamp)<Date.now()/1E3&&(w2="OFFLINE_VIDEO_STATE_EXPIRED")}else if(EZ.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")w2="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(dS==null?void 0:dS.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":w2="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":w2="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":w2="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":w2="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":w2="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":w2="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:w2="OFFLINE_VIDEO_STATE_UNKNOWN"}if(w2==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(dS==null?void 0:dS.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":w2="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":w2="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":w2=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}sZ={id:sZ,videoState:w2};if(dS==null?0:dS.cotn)sZ.cotn=dS.cotn;if(dS==null?0:dS.maximumDownloadQuality)sZ.selectedVideoQuality=dS==null?void 0:dS.maximumDownloadQuality;if(dS==null?0:dS.lastProgressTimeMs)sZ.lastProgressTimeMs=dS.lastProgressTimeMs;La&&(sZ.playerResponseSavedTimeMs=String(Number(La)*1E3));dS=String;La=0;bE=_.z(bE);for(w2=bE.next();!w2.done;w2=bE.next())if(w2=w2.value,w2.streamsProgress){w2=_.z(w2.streamsProgress);for(var Z3=w2.next();!Z3.done;Z3=
w2.next()){var J5=void 0;La+=Number((J5=Z3.value.numBytesDownloaded)!=null?J5:0)}}sZ.downloadedBytes=dS(La);sZ.selectedOfflineMode=jV[xW]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";EZ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(sZ.offlinePlaybackDisabledReason=EZ.offlinePlaybackDisabledReason);return sZ});
return Zg.return({offlineVideos:oI,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:cy}}})})};
aOH=function(){var y;return _.m(function(W){return W.nextAddress==1?_.n(W,_.zx(),2):(y=W.yieldResult)?W.return(_.T3h(y)):W.return({state:"PES Unavailable"})})};
M1O=function(){var y,W,c,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,_.zx(),2);if(G.nextAddress!=3)return(y=G.yieldResult)?_.n(G,xyI(y),3):G.return({state:"PES Unavailable"});W=G.yieldResult;c={};Z=W.reduce(function(D,Y){D[Y.key]=Y;return D},c);
return G.return(iwE(Z))})};
iwE=function(y){for(var W={},c=[],Z=_.z(Object.keys(y)),G=Z.next();!G.done;G=Z.next()){var D=G.value;G=y[D];var Y=void 0;if(((Y=G)==null?void 0:Y.entityType)==="mainVideoEntity"){delete y[D];var u=G.data;G={};if(u){var t=void 0;Y=(t=u.videoId)!=null?t:"vid-"+D;D=y;G.video=u;delete G.video.formattedDescription;delete G.video.thumbnail;u.owner&&(t=D[u.owner],t==null?0:t.data)&&(delete D[t.key],G.video.owner=t.data,delete G.video.owner.avatar);if(u=u.downloadState)if(t=D[u],t==null?0:t.data)if(delete D[u],
u=t.data.playbackData)if(t=D[u],t!=null&&t.data){delete D[u];u=t.data;delete u.playerResponseJson;G.playbackData=u;if(u.transfer&&(t=D[u.transfer],t==null?0:t.data)){delete D[t.key];var b=t.data;G.transfer=b;t=[];b=_.z(b.offlineVideoStreams||[]);for(var r=b.next();!r.done;r=b.next())if(r=D[r.value])delete D[r.key],t.push(r.data);t&&(G.streams=t)}(u=u.offlineVideoPolicy)&&(u=D[u])&&u.data&&(delete D[u.key],G.offlineVideoPolicy=u.data)}W[Y]=G}}else G&&G.entityType==="offlineOrchestrationActionWrapperEntity"&&
G.data&&(delete y[G.key],Y=G.data,D=void 0,c.push({id:Y.rootActionId,type:((D=Y.actionProto)==null?void 0:D.actionType)||"",entity:G}))}W.wrapperEntities=c;Object.keys(y).length>0&&(W.unknownKeys=y);return W};
eLh=function(){var y,W,c,Z,G,D,Y,u,t;return _.m(function(b){if(b.nextAddress==1)return y=!!(new _.EW("")).expiringStorage_,Z=!!((W=_.DH.crypto)==null?0:(c=W.subtle)==null?0:c.importKey),G=!!_.DH.BroadcastChannel,D=!!_.DH.navigator.locks,_.n(b,AKg(),2);Y=b.yieldResult;u=y&&Z&&G&&D&&Y;t={isSupported:u};if(u)return b.return(t);t.missingBrowserFeatures=[];Y||t.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");y||t.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Z||t.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");G||t.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");D||t.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return b.return(t)})};
wtO=function(){var y;return!((y=oT?oT:null)==null||!y.window)};
_.kNw=function(y){if(_.II()&&_.uhh("Chromium")>=120){var W=_.q_F().mediaSession;try{W.setActionHandler("enterpictureinpicture",function(){y()})}catch(c){}}};
jGy=function(y){for(var W=[],c=_.z(document.styleSheets),Z=c.next(),G={};!Z.done;G={node$jscomp$720:void 0},Z=c.next())G.node$jscomp$720=Z.value.ownerNode,G.node$jscomp$720&&(G.node$jscomp$720 instanceof HTMLStyleElement||G.node$jscomp$720 instanceof HTMLLinkElement)&&W.push(new Promise(function(D){return function(Y){var u=D.node$jscomp$720.cloneNode(!0);u.onload=function(){Y()};
u.onerror=function(){_.Rs(Error("fj"));Y()};
y.document.head.appendChild(u)}}(G)));
return Promise.all(W)};
Yz1=function(y){var W=[_.yx(yRH),_.yx(Wrh),_.yx(cRO)];Zha(window.document.documentElement,y.document.documentElement,[_.yx(G8h),_.yx(fQh),_.yx(ofE),_.yx(D5I),_.yx(zOD)]);Zha(window.document.body,y.document.body,W)};
Zha=function(y,W,c){y=_.z(y.attributes);for(var Z=y.next();!Z.done;Z=y.next())if(Z=Z.value)try{_.kX(c,W,Z.name,Z.value)}catch(G){}};
sGH=function(y,W){y=new _.Ds(y.document.documentElement);y.start(m5w,W);return y};
uRg=function(y){var W=y.document.documentElement;W.addEventListener("click",function(c){QFD(W,c)});
W.addEventListener("touchstart",function(c){L3f(c)});
W.addEventListener("mousedown",function(c){L3f(c)})};
nff=function(y,W,c,Z){Z=Z===void 0?!1:Z;W=new tf1(W||y,c||y);return{x:y.x+((Z===void 0?0:Z)?W.lengthX*-1:W.lengthX)*.2,y:y.y+((Z===void 0?0:Z)?W.lengthY*-1:W.lengthY)*.2}};
Xct=function(y){if(!y)return!1;var W=y.status==="OK"||y.status==="LIVE_STREAM_OFFLINE",c,Z,G,D=(G=(c=y.errorScreen)==null?void 0:c.playerLegacyDesktopYpcTrailerRenderer)!=null?G:(Z=y.errorScreen)==null?void 0:Z.ypcTrailerRenderer;return!!W||!!D};
_.bhH=function(y,W){if(!y)return!1;var c,Z=(c=y.errorScreen)==null?void 0:c.playerLegacyDesktopYpcOfferRenderer,G;W=!!(W==null?0:(G=W.playerOverlayRenderer)==null?0:G.gatedActionsOverlayRenderer);return!!Xct(y)||!!Z||!!W};
rRH=function(y){return y.includes("gclid")||y.includes("gad_source")};
Frt=function(y){return new Promise(function(W){window.setTimeout(W,y)})};
U5y=function(y){var W={bicf:function(D){y.rnN=D},
blc:function(){return y.getLatestChallengeResponse()},
bcr:function(D){y.ykv.push(D)}},c=window.top;
c.ntpevasrs=W;if(c.ntpqfbel!==void 0)for(var Z=_.z(c.ntpqfbel),G=Z.next();!G.done;G=Z.next())G=G.value,G(W);c.ntpqfbel=void 0};
$5g=function(y){return _.m(function(W){if(W.nextAddress==1)return _.tm(W,2),_.n(W,y.yJE(),4);if(W.nextAddress!=2)return _.J6(W,0);_.rs(W);_.F2(W)})};
KrO=function(y){var W,c;(W=y.ytcsi)==null||(c=W.tick)==null||c.call(W,"pot_ist")};
Ohg=function(y){if(y instanceof Error){var W=_.JW("yt.logging.errors.log");W&&W(y,"WARNING")}};
gfy=function(y){try{var W=JSON.parse(y);if(W.bgChallenge)return W}catch(c){}};
lQh=function(){var y=window,W={networkStatusManagerPromise:_.U().resolve(new U21(_.CX)),initialChallengeSli:_.O("wpo_att_sli")?new _.OUh("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};y=y===void 0?window:y;var c=y.ytAtR,Z;W==null||(Z=W.initialChallengeSli)==null||_.zy(Z);if(c){if(c=gfy(c)){var G;W==null||(G=W.initialChallengeSli)==null||_.Y3(G,"SUCCESS");ROH(c,W)}y.ytAtR=void 0}else y.ytAtRC=function(D){if(D=gfy(D)){var Y;W==null||(Y=W.initialChallengeSli)==null||_.Y3(Y,
"SUCCESS");ROH(D,W);y.ytAtRC=void 0}}};
IQH=function(){if(EfD)return EfD;try{var y=_.uC("IFRAME");_.df(y,_.cu(NnH));y.sandbox.add("allow-same-origin");y.style.display="none";document.body.appendChild(y);return EfD=y}catch(W){y=new _.ul("Failed to create sandbox iframe"),_.OP(y)}};
pcg=function(y){var W,c;return(c=y==null?void 0:(W=y.contentWindow)==null?void 0:W.fetch)!=null?c:window.fetch};
PPH=function(y){var W,c;return(c=y==null?void 0:(W=y.contentWindow)==null?void 0:W.JSON.parse)!=null?c:JSON.parse};
JRH=function(y){var W,c;return(c=y==null?void 0:(W=y.contentWindow)==null?void 0:W.Request)!=null?c:window.Request};
QGy=function(){if(NZH()==="hidden")var y="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else NZH()==="visible"&&(y="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",VfH=null);y&&CPD(y)};
CPD=function(y){if(y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||y==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(ARt===y)return;ARt=y}var W=9E4+Math.random()*2E3;if(y!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.MV()>W)&&NZH()==="visible"){W=-1;VfH&&(W=Math.round((0,_.Tj)()-VfH));var c=String;var Z=_.JW("_fact",window);Z=Z==null||Z==-1?-1:Math.max(Date.now()-Z,0);_.$g("foregroundHeartbeat",{firstActivityMs:c(Z),clientDocumentNonce:cJy,index:String(hOa),lastEventDeltaMs:String(W),trigger:y});
_.LR("_fact",-1,window);hOa++;VfH=(0,_.Tj)()}};
_.BnF=function(){try{return!!self.sessionStorage}catch(y){return!1}};
HhD=function(){var y=navigator;return new Promise(function(W,c){var Z;(Z=y.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?y.webkitTemporaryStorage.queryUsageAndQuota(function(G,D){W({usage:G,quota:D})},function(G){c(G)}):c(Error("nj"))})};
LrH=function(y,W,c){y.componentType!==nL&&c instanceof HTMLElement&&W&&!_.O("cow_logging_in_component_wrapper")&&haD(c,W,!0)};
vfa=function(y,W,c){W=W===void 0?{}:W;var Z,G=(Z=_.g(y.commandMetadata,_.kT))==null?void 0:Z.url;Z=W.form||{};!c||Z.element||Z.skipDefaultElement||(W.form=W.form||{},W.form.element=c);if(G&&G!=="/service_ajax")return{type:0,command:y,form:W.form};if(_.O("kevlar_service_command_check")){if(_.Nu(_.U().resolve(_.b0),y))return Object.assign({},{type:1,command:y},W)}else{var D;if((D=_.g(y.commandMetadata,_.kT))==null?0:D.apiUrl)return Object.assign({},{type:1,command:y},W)}return{type:2,command:y,form:W.form}};
d5D=function(y){if(y.form){var W=y.form,c=Object.assign({},W);W=W.element;c=(delete c.element,c);if(W)return[_.D2(W,[y.command,c,y.commandController])]}return[]};
Szt=function(y){if(y.form){var W=y.form,c=Object.assign({},W);W=W.element;c=(delete c.element,c);W&&_.mq(W,[y.command],W,c)}};
aQE=function(y,W,c){var Z=new Tn1(y,W),G=new mH(y,W,c);y={"/youtubei/v1/browse":new s9(y,W,c),"/youtubei/v1/player":Z,"/youtubei/v1/navigation/resolve_url":new uT,"/youtubei/v1/next":G,"/youtubei/v1/guide":new td(c),"/youtubei/v1/search":new ny(y,W,c),"/youtubei/v1/reel/reel_item_watch":new XG(y,W,c),"/youtubei/v1/get_watch":new rl(Z,G)};y["/youtubei/v1/account/account_menu"]=new FG;y["/youtubei/v1/notification/get_notification_menu"]=new U9;return y};
Ky=function(){var y=_.U().resolve($3);return Promise.resolve(x5g(y,_.DH.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
ihI=function(y){return y&&(y=_.O9(_.GXI(y)))?(new URLSearchParams(y)).get("service"):null};
lT=function(y,W){_.vh(_.gl(),function(){_.PA("adl")});
_.U().resolve(Mf1)(W);y=y.root;y.loadData&&y.loadData(W);(W==null?0:W.response)?_.Y3(lYh(),"SUCCESS"):_.Rs(new _.ul("Lifecycle: No response in data",_.I8("IS_SHELL_LOAD"),W?W.page:"NO_PAGE",W?W.endpoint:"NO_ENDPOINT"));y.polymerController.$["page-manager"].lazyPrepareCriticalPages((W==null?void 0:W.page)||"",W.endpoint);var c,Z;((Z=_.g(W==null?void 0:(c=W.endpoint)==null?void 0:c.commandMetadata,_.kT))==null?0:Z.webPageType)&&_.Sv().dispatch(_.RT(_.g(W.endpoint.commandMetadata,_.kT).webPageType))};
eOg=function(){var y,W;return _.m(function(c){switch(c.nextAddress){case 1:y=window;if(!y.getDataPromise){c.jumpTo(2);break}_.tm(c,3);return _.n(c,y.getDataPromise(),5);case 5:return c.return(c.yieldResult);case 3:return _.rs(c),_.n(c,Ky(),6);case 6:return c.return(c.yieldResult);case 2:if(y.getInitialData)return W=y.getInitialData(),y.getInitialData=void 0,c.return(W);throw Error("pj`"+_.DH.location.href);}})};
qzh=function(){_.l1("CSI_SERVICE_NAME","youtube");_.IP({loadType:"cold"});_.O("kevlar_log_lcp")&&wcI(function(y){_.PA("lcp",y.value)})};
k81=function(){var y=_.Q4(document.location.href,"enable");y&&y.indexOf("scraper")>-1&&_.l1("ADD_SCRAPER_ATTRIBUTES",!0)};
Zz1=function(y){var W=y.root;y=[jpH,y8D,_.E9];_.O("web_feedback_endpoint_autolog_allowlist_killswitch")&&y.push(_.Na,W5H);c8E(function(c,Z){return vfa(c,Z,W)},function(c){if(!c.command)return[];
var Z;((Z=c.form)==null?0:Z.element)?c.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},c.form,{endpoint:c.command})})):W.handleNavigate(c);return[]},y);
_.U().addProvider({provide:_.i1,useValue:_.km.instance})};
fww=function(){var y={},W={},c;for(c in G_g){var Z=_.z(_.G9(G_g[c],void 0,"UAX5pb"));y[c]=Z.next().value;W[c]=Z.next().value}return[y,function(G){for(var D in G){var Y=void 0;(Y=W[D])==null||Y(G[D])}}]};
_.zBa=function(y,W){var c=_.Eb.getValueByKeys(y,"contents","twoColumnWatchNextResults","results","results","contents"),Z=_.Eb.getValueByKeys(y,"contents","twoColumnWatchNextResults","playlist","playlist")||null,G=null,D=null;if(Z)G=_.Eb.getValueByKeys(Z,"titleText"),D=_.Eb.unsafeClone(_.Eb.getValueByKeys(Z,"longBylineText")),c="",D&&(c=_.v$(D)),D=_.Lq(c);else if(c){c=_.z(c);for(var Y=c.next();!Y.done;Y=c.next())Y=Y.value,Y.videoPrimaryInfoRenderer&&(G=_.Eb.getValueByKeys.apply(_.Eb,[Y].concat(_.No(o8f)))),
Y.videoSecondaryInfoRenderer&&(D=_.Eb.getValueByKeys.apply(_.Eb,[Y].concat(_.No(DXF))))}else _.Va(Error("uj"));var u;y.currentVideoEndpoint?u=y.currentVideoEndpoint:_.Va(Error("vj"));var t;W&&(t=_.Eb.getValueByKeys(W,"playabilityStatus","miniplayer","miniplayerRenderer"));y={miniplayerTitle:G,miniplayerSubtitle:D,watchEndpoint:u,playlistData:Z};t&&(y.miniplayerRenderer=t);return y};
Yw1=function(y){if(y)return _.Xx(y)};
_.mXO=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");}}};
spI=function(y){return y.videoDuration?y.numTaps>1&&y.tapDirection!==0?_.IT(y.draggedTime/y.videoDuration,0,1):_.IT((y.playedTime||0)/y.videoDuration,0,1):0};
u7a=function(y){return y.videoDuration?y.isDragging||y.numTaps>1&&y.tapDirection!==0?_.IT(y.draggedTime/y.videoDuration,0,1):_.IT((y.playedTime||0)/y.videoDuration,0,1):0};
n8F=function(y){var W,c,Z;return _.g(y==null?void 0:(W=y.markersMap)==null?void 0:(c=W.find(function(G){return G.key==="HEATSEEKER"}))==null?void 0:(Z=c.value)==null?void 0:Z.heatmap,tCh)};
XdF=function(y){var W,c;return(c=(W=n8F(y))==null?void 0:W.heatMarkersDecorations)!=null?c:[]};
bza=function(y){if(_.O("mweb_supported_chapters_killswitch"))return!0;var W;return!!(y==null?0:(W=y.markersMap)==null?0:W.find(function(c){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(c.key)}))};
_.r8a=function(y){var W=Object,c=W.assign,Z;y={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Z=y==null?void 0:y.getPlayerState())!=null?Z:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return c.call(W,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},y,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
F5H=function(y){return function(W){var c=y(),Z,G=(Z=c.playerApi)==null?void 0:Z.getPlayerState();W&&W!==c.playerState&&(W===1||W===2)&&c.setState({playerState:G})}};
$XH=function(y){return function(W){var c=y(),Z=c.playerApi;Z&&(W==null?void 0:W.type)==="newdata"&&(UXy&&(clearTimeout(UXy),UXy=void 0),_.O("web_shorts_use_progress_state_for_gapless")?(W=Z==null?void 0:Z.getProgressState(W==null?void 0:W.playertype),W=W.seekableEnd-W.seekableStart):W=Z==null?void 0:Z.getDuration(W==null?void 0:W.playertype),c.setState({playedTime:0,videoDuration:W}))}};
K5I=function(y){return function(W){var c=y(),Z=c.playerApi;if(Z){var G=Z.getPresentingPlayerType();_.O("web_shorts_use_progress_state_for_gapless")?(Z=Z.getProgressState(G),Z=Z.seekableEnd-Z.seekableStart):Z=Z.getDuration(G);c.setState({playedTime:W,videoDuration:Z})}}};
RBO=function(y){var W=y.element;var c=y.veType;var Z=y.storedVisualElement===void 0?null:y.storedVisualElement;var G=y.elementIndex===void 0?0:y.elementIndex;y=y.clientYouTubeData;var D=_.NR();D!==OzH&&(g8I.clear(),OzH=D);if(W.visualElement&&g8I.has(W.visualElement))return null;if(Z&&g8I.has(Z))return W.visualElement=Z,null;c=_.ch(_.Zz(),{veType:c,elementIndex:G,clientYouTubeData:y});if(!c)return null;W.visualElement=c;g8I.add(c);return c};
_.py=function(y,W,c,Z){c=c===void 0?null:c;Z=Z===void 0?LNI:Z;var G=G===void 0?null:G;sH(function(){if(W){c instanceof Function&&(c=c());var D=RBO({element:W,veType:y,storedVisualElement:c,clientYouTubeData:void 0});D&&(ShI(W,G),Z(D))}})};
E8O=function(y){_.py(112394,y,function(){return lwy},function(W){lwy=W})};
pdD=function(y,W){if(!y)return[];var c,Z,G;y=((c=y.markersMap)==null?void 0:(Z=c.find(function(D){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(D.key)}))==null?void 0:(G=Z.value)==null?void 0:G.chapters)||[];
!NBh(y)||(W==null?0:W.ignoreStub)||(y=[Iwf()].concat(_.No(y)));return y};
Iwf=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
NBh=function(y){if(y.length===0)return!1;var W;return((W=_.g(y[0],PU))==null?void 0:W.timeRangeStartMillis)!==0};
Jd=function(y){return y?y.timeRangeStartMillis||0:0};
J8w=function(y,W){if(y.isDragging&&W)return y=PHw(y,W),y===-1?Iwf():pdD(W)[y]};
PHw=function(y,W){return y.isDragging&&W?pdD(W,{ignoreStub:!0}).findIndex(function(c,Z,G){c=VCF(y);return CHh(c,G,Z).scrubberHovering}):-1};
VCF=function(y){return Object.assign({},y,{videoDuration:y.videoDuration*1E3,playedTime:y.playedTime*1E3,draggedTime:y.draggedTime*1E3})};
CHh=function(y,W,c){var Z=Jd(_.g(W[c],PU));W=Jd(_.g(W[c+1],PU))||y.videoDuration;c=y.isDragging;var G;if(G=y.isDragging)G=y.draggedTime,G=G!==null&&G>=Z&&G<W;var D=y.playedTime;return D!==null&&D>=Z&&D<W?{videoPosition:"active",isScrubbing:c,scrubberHovering:G}:y.playedTime<Z?{videoPosition:"pending",isScrubbing:c,scrubberHovering:G}:{videoPosition:"seen",isScrubbing:c,scrubberHovering:G}};
QpI=function(y,W){return y.videoPosition==="seen"||(W===void 0?0:W)>0};
A8I=function(y,W,c){W=y/W.storyboardInterval;var Z=pdD(c);if(!Z.length)return-W*72;c=0;Z=_.z(Z);for(var G=Z.next();!G.done;G=Z.next())if(Jd(_.g(G.value,PU))/1E3<y)c++;else break;return-(W*72)-c*56};
hBE=function(y){return y?y.width/y.columns:0};
BBa=function(y){return y.isHovering?y.hoveredTime:y.draggedTime};
HzH=function(y,W){y=y.draggedTime*1E3;return y>=W.visibleTimeRangeStartMillis&&y<=W.visibleTimeRangeEndMillis};
_.L5E=function(y){if(y===void 0||Number.isNaN(y))return"--:--";var W=Math.abs(Math.floor(y)),c=Math.floor(W/86400),Z=Math.floor(W%86400/3600),G=Math.floor(W%3600/60);W=Math.floor(W%60);var D="";c>0&&(D+=c+":",Z<10&&(D+="0"));if(c>0||Z>0)D+=Z+":",G<10&&(D+="0");D+=G+":";W<10&&(D+="0");D+=W;return y>=0?D:"-"+D};
v8y=function(y,W){return function(){var c=BBa(y());var Z=W();var G=y().playerApi;if(G&&G.getNumberOfStoryboardLevels()!==0){var D=G.getStoryboardFrameIndex(c,1);D!==-1?Z=G.getStoryboardFrame(D,1):(c=G.getStoryboardFrameIndex(c,0),G=G.getStoryboardFrame(c,0),Z&&G&&(G.height*=3,G.width*=3),Z=G)}else Z=null;if(!Z)return null;W()&&(Z.width=90*Z.columns,Z.height=160*Z.rows);return Z}};
_.VQ=function(y){if(!y||y.getVideoData)return y};
dXt=function(){var y;return{playerApi:(y=_.U().resolve(_.e9)())!=null?y:void 0}};
_.izE=function(y){function W(Q){Q!==0||r?Q>50&&(r||!K)?(F(!1),l(!0)):Q<=50&&(r||K)&&(F(!1),l(!1)):F(!0)}
function c(){var Q;return _.m(function(S){if(S.nextAddress==1)return _.n(S,_.wI(),2);(Q=S.yieldResult)&&(Q.isMuted()?F(!0):F(!1));_.F2(S)})}
var Z=y.noSlider;y=_.HO();var G=_.HO(),D=_.LD(),Y=_.z(j8(!1)),u=Y.next().value,t=Y.next().value,b=_.z(j8(!1));Y=b.next().value;b=b.next().value;var r=Y,F=b;b=_.z(j8(!0));Y=b.next().value;b=b.next().value;var K=Y,l=b;_.rj(function(){function Q(){t(!0)}
function S(){t(!1)}
Z?(c(),W(r?0:100)):D&&D.value&&(D.value.addEventListener("focus",Q),D.value.addEventListener("focusout",S),Swh(D.value).then(function(){W(Number(TBf(D.value)))}));
G&&G.value&&(G.value.addEventListener("focus",Q),G.value.addEventListener("focusout",S));return function(){var cy;D==null||(cy=D.value)==null||cy.removeEventListener("focus",Q);var M;D==null||(M=D.value)==null||M.removeEventListener("focusout",S);G.value.removeEventListener("focus",Q);G.value.removeEventListener("focusout",S)}});
var N=_.j9(function(){if(D&&D.value){var Q=Number(TBf(D.value));awE(Q);D.value.style.setProperty("--gradient-percent",Q+"%");W(Q)}return!1});
Y={};var P=(Y.ytdDesktopShortsVolumeControlsSliderContainer=!0,Y.ytdDesktopShortsVolumeControlsSliderContainerExpanded=u,Y);Y={};u=(Y.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,Y.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=Z?!1:u,Y);_.vO(G,"pointerenter",function(){t(!0)});
_.vO(y,"pointerleave",function(){t(!1)});
Y=_.j9(function(){if(D&&D.value||Z)xXI(D.value,r,Z),F(!r);return!1});
b=_.O("web_shorts_keyboard_enable_mute_shortcut")?r?_.bN("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.bN("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):r?_.bN("UNMUTE_VOLUME",void 0,"Unmute"):_.bN("MUTE_VOLUME",void 0,"Mute");var V={sources:[{clientResource:{imageName:r?"VOLUME_OFF_FILLED":K?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.X("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:y},_.X("div",{class:_.wZ(u)}),_.X("button",{"aria-label":b,title:b,el:G,"on:click":Y,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},V?_.X(_.J3,{data:V,alt:b,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.TY(!Z,function(){return _.X("div",{class:_.wZ(P)},_.X("input",{"aria-label":_.bN("VOLUME"),title:_.bN("VOLUME"),el:D,"on:input":N,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
Swh=function(y){var W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.wI(),2);W=Z.yieldResult;c=50;W&&(c=W.getVolume(),W.isMuted()?MCO(y,0):MCO(y,c));_.F2(Z)})};
awE=function(y){var W;_.m(function(c){if(c.nextAddress==1)return _.n(c,_.wI(),2);if(W=c.yieldResult)W.unMute(!0),W.setVolume(y,!0);_.F2(c)})};
MCO=function(y,W){y&&(y.value=""+W,y.style.setProperty("--gradient-percent",W+"%"))};
TBf=function(y){var W;return(W=y==null?void 0:y.value)!=null?W:0};
xXI=function(y,W,c){var Z;_.m(function(G){if(G.nextAddress==1)return _.n(G,_.wI(),2);Z=G.yieldResult;W&&Z?(Z.unMute(!0),!c&&y&&MCO(y,Z.getVolume())):Z&&(Z.mute(!0),!c&&y&&MCO(y,0));_.F2(G)})};
eBa=function(){var y;_.m(function(W){if(W.nextAddress==1)return _.n(W,_.wI(),2);y=W.yieldResult;if(!y)return W.return();y.isMuted()?y.unMute(!0):y.mute(!0);_.F2(W)})};
wdH=function(y){var W=_.U().resolve(_.Cy).getPlayerElement();W&&y&&(y===1?W.pause():W.play())};
qwa=function(y){_.fl(y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
k_H=function(y){_.fl(y,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
yia=function(y){return _.nj(y.document.body,function(){return _.X(jyO,null)})};
WwH=function(){var y=window.performance.getEntriesByType("navigation");return y?y.map(function(W){return W.type}).includes("reload"):!1};
YCD=function(){QQ(QQ(QQ(QQ(QQ(QQ(QQ(_.U().resolve(_.Ad),_.ciI),_.ZIy),_.Got),_.fDD),_.oww),_.DxE),_.z7I)};
mxw=function(y,W){W=W===void 0?!1:W;var c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return W||!_.O("kevlar_shorts_seedless_retry_initial_load")||(c=window,Z=!(!c.getDataPromise&&!c.getInitialData),Z)?_.n(Y,eOg(),2):(setTimeout(mxw.bind(window,y,!0),1E3),Y.return());if(Y.nextAddress!=3)return G=Y.yieldResult,_.n(Y,syg(G),3);D=Y.yieldResult;lT(y,D);_.F2(Y)})};
syg=function(y){var W;if((W=y.response)==null||!W.replacementEndpoint)return _.sc(y);W=_.U().resolve($3);y=y.response;_.g(y.replacementEndpoint,_.mv)&&y.sequenceContinuation&&(_.g(y.replacementEndpoint,_.mv).sequenceParams=y.sequenceContinuation);return hd(W,y.replacementEndpoint,{},_.DH.location.href,"shorts",function(){},function(){return!1})};
uJg=function(y){var W=_.Sv(),c,Z=_.g((c=y.response)==null?void 0:c.frameworkUpdates,J7),G;c=_.g((G=y.playerResponse)==null?void 0:G.frameworkUpdates,J7);var D;y=_.g((D=y.reelWatchSequenceResponse)==null?void 0:D.frameworkUpdates,J7);Z&&_.mZ(Z,W);c&&_.mZ(c,W);y&&_.mZ(y,W)};
tht=function(y){var W;_.O("enable_redirect_linking_for_desktop_web_client")&&((W=window.location.hash)==null?0:W.includes("redirect_state"))&&y.url&&(y.url=y.url.toString()+window.location.hash)};
bII=function(y){var W=_.U(),c=W.resolve($3);W=W.resolve(_.nwg);y.endpoint&&(c=XCE(c,y.endpoint),c.content&&y.response&&_.BU(W,y.response,c.content),c.player&&y.playerResponse&&_.BU(W,y.playerResponse,c.player),c.reelSequence&&y.reelWatchSequenceResponse&&_.BU(W,y.reelWatchSequenceResponse,c.reelSequence))};
HU=function(y,W){uJg(W);var c;(W==null?0:W.url)&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&(tht(W),(c=ihI(W.url))&&_.GG(y.root,"yt-initialize-third-party",[c,W]));bII(W);c=_.U();var Z=c.resolve(riO);W.playerResponse&&c.resolve(FwI).handleResponse(W.playerResponse);if(W.playerResponse){c=void 0;if(_.O("ab_v_vid_sig")&&W.endpoint){var G,D=(G=_.g(W.endpoint,_.Sb))!=null?G:_.g(W.endpoint,_.mv);D&&(c=D.videoId)}Uxw(Z,W.playerResponse,c)}W.playerResponse&&YOf(W.playerResponse)&&_.O("web_enable_ab_rsp_cl")?
FGf().then(function(){$xh(Z,W.playerResponse);lT(y,W)}):lT(y,W)};
OIw=function(y){if(y=y.root.data){var W=_.U().resolve(KwD);y.endpoint&&(y.response&&W.handleResponse(y.response,void 0,document.querySelector("ytd-app")),y.playerResponse&&W.handleResponse(y.playerResponse),y.reelWatchSequenceResponse&&W.handleResponse(y.reelWatchSequenceResponse))}};
gwI=function(y){var W,c,Z,G,D,Y;return _.m(function(u){switch(u.nextAddress){case 1:W=window;if(!W.getDataPromise){u.jumpTo(2);break}_.tm(u,3);return _.n(u,W.getDataPromise(),5);case 5:c=u.yieldResult;HU(y,c);_.J6(u,4);break;case 3:return _.rs(u),_.n(u,Ky(),6);case 6:Z=u.yieldResult,lT(y,Z);case 4:return u.return();case 2:if(!_.O("sw_nav_preload_pbj")){u.jumpTo(7);break}W.fetchInitialData=function(){var t;return _.m(function(b){if(b.nextAddress==1)return _.n(b,Ky(),2);t=b.yieldResult;lT(y,t);_.F2(b)})};
if(W.getInitialData){W.loadInitialData=function(t){HU(y,t)};
G=W.getInitialData();W.getInitialData=void 0;HU(y,G);u.jumpTo(8);break}W.fetchInitialData=void 0;return _.n(u,Ky(),9);case 9:D=u.yieldResult,lT(y,D);case 8:return u.return();case 7:W.getInitialData?(Y=W.getInitialData(),W.getInitialData=void 0,HU(y,Y)):W.loadInitialData=function(t){HU(y,t)},_.F2(u)}})};
R7I=function(y){var W=0;return function(){return W<y.length?{done:!1,value:y[W++]}:{done:!0}}};
lDf=typeof Object.defineProperties=="function"?Object.defineProperty:function(y,W,c){if(y==Array.prototype||y==Object.prototype)return y;y[W]=c.value;return y};
EwO=function(y){y=["object"==typeof globalThis&&globalThis,y,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var W=0;W<y.length;++W){var c=y[W];if(c&&c.Math==Math)return c}throw Error("a");};
_.dJ=EwO(this);Ly=function(y,W){if(W)a:{var c=_.dJ;y=y.split(".");for(var Z=0;Z<y.length-1;Z++){var G=y[Z];if(!(G in c))break a;c=c[G]}y=y[y.length-1];Z=c[y];W=W(Z);W!=Z&&W!=null&&lDf(c,y,{configurable:!0,writable:!0,value:W})}};
Ly("Symbol",function(y){if(y)return y;var W=function(D,Y){this.$jscomp$symbol$id_=D;lDf(this,"description",{configurable:!0,writable:!0,value:Y})};
W.prototype.toString=function(){return this.$jscomp$symbol$id_};
var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Z=0,G=function(D){if(this instanceof G)throw new TypeError("b");return new W(c+(D||"")+"_"+Z++,D)};
return G});
Ly("Symbol.iterator",function(y){if(y)return y;y=Symbol("c");for(var W="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<W.length;c++){var Z=_.dJ[W[c]];typeof Z==="function"&&typeof Z.prototype[y]!="function"&&lDf(Z.prototype,y,{configurable:!0,writable:!0,value:function(){return NDE(R7I(this))}})}return y});
Ly("Symbol.asyncIterator",function(y){return y?y:Symbol("d")});
var NDE=function(y){y={next:y};y[Symbol.iterator]=function(){return this};
return y},IDh=typeof Object.create=="function"?Object.create:function(y){var W=function(){};
W.prototype=y;return new W},pCO=function(){function y(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if(typeof Reflect!="undefined"&&Reflect.construct){if(y())return Reflect.construct;var W=Reflect.construct;return function(c,Z,G){c=W(c,Z);G&&Reflect.setPrototypeOf(c,G.prototype);return c}}return function(c,Z,G){G===void 0&&(G=c);
G=IDh(G.prototype||Object.prototype);return Function.prototype.apply.call(c,G,Z)||G}}(),Pwf;
if(typeof Object.setPrototypeOf=="function")Pwf=Object.setPrototypeOf;else{var Jiy;a:{var VhI={a:!0},CwI={};try{CwI.__proto__=VhI;Jiy=CwI.a;break a}catch(y){}Jiy=!1}Pwf=Jiy?function(y,W){y.__proto__=W;if(y.__proto__!==W)throw new TypeError("e`"+y);return y}:null}_.vU=Pwf;
_.R=function(y,W){y.prototype=IDh(W.prototype);y.prototype.constructor=y;if(_.vU)(0,_.vU)(y,W);else for(var c in W)if(c!="prototype")if(Object.defineProperties){var Z=Object.getOwnPropertyDescriptor(W,c);Z&&Object.defineProperty(y,c,Z)}else y[c]=W[c];y.superClass_=W.prototype};
_.z=function(y){var W=typeof Symbol!="undefined"&&Symbol.iterator&&y[Symbol.iterator];if(W)return W.call(y);if(typeof y.length=="number")return{next:R7I(y)};throw Error("f`"+String(y));};
dL=function(y){for(var W,c=[];!(W=y.next()).done;)c.push(W.value);return c};
_.No=function(y){return y instanceof Array?y:dL(_.z(y))};
_.dl=function(y){return QyI(y,y)};
QyI=function(y,W){y.raw=W;Object.freeze&&(Object.freeze(y),Object.freeze(W));return y};
So=function(y,W){return Object.prototype.hasOwnProperty.call(y,W)};
Aig=typeof Object.assign=="function"?Object.assign:function(y,W){for(var c=1;c<arguments.length;c++){var Z=arguments[c];if(Z)for(var G in Z)So(Z,G)&&(y[G]=Z[G])}return y};
Ly("Object.assign",function(y){return y||Aig});
var h7F=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},BDw=function(y){if(y.isRunning_)throw new TypeError("h");
y.isRunning_=!0};
h7F.prototype.JSC$6601_next_=function(y){this.yieldResult=y};
var HIE=function(y,W){y.abruptCompletion_={exception:W,isException:!0};y.nextAddress=y.catchAddress_||y.finallyAddress_};
h7F.prototype.return=function(y){this.abruptCompletion_={return:y};this.nextAddress=this.finallyAddress_};
_.n=function(y,W,c){y.nextAddress=c;return{value:W}};
h7F.prototype.jumpTo=function(y){this.nextAddress=y};
_.F2=function(y){y.nextAddress=0};
_.tm=function(y,W,c){y.catchAddress_=W;c!=void 0&&(y.finallyAddress_=c)};
_.X2=function(y,W){y.catchAddress_=0;y.finallyAddress_=W||0};
_.J6=function(y,W,c){y.nextAddress=W;y.catchAddress_=c||0};
_.rs=function(y,W){y.catchAddress_=W||0;W=y.abruptCompletion_.exception;y.abruptCompletion_=null;return W};
_.nc=function(y,W,c,Z){Z?y.finallyContexts_[Z]=y.abruptCompletion_:y.finallyContexts_=[y.abruptCompletion_];y.catchAddress_=W||0;y.finallyAddress_=c||0};
_.bR=function(y,W,c){c=y.finallyContexts_.splice(c||0)[0];(c=y.abruptCompletion_=y.abruptCompletion_||c)?c.isException?y.nextAddress=y.catchAddress_||y.finallyAddress_:c.jumpTo!=void 0&&y.finallyAddress_<c.jumpTo?(y.nextAddress=c.jumpTo,y.abruptCompletion_=null):y.nextAddress=y.finallyAddress_:y.nextAddress=W};
_.Lwy=function(y){this.JSC$6606_context_=new h7F;this.program_=y};
dx1=function(y,W){BDw(y.JSC$6606_context_);var c=y.JSC$6606_context_.yieldAllIterator_;if(c)return vwt(y,"return"in c?c["return"]:function(Z){return{value:Z,done:!0}},W,y.JSC$6606_context_.return);
y.JSC$6606_context_.return(W);return Ty(y)};
vwt=function(y,W,c,Z){try{var G=W.call(y.JSC$6606_context_.yieldAllIterator_,c);if(!(G instanceof Object))throw new TypeError("g`"+G);if(!G.done)return y.JSC$6606_context_.isRunning_=!1,G;var D=G.value}catch(Y){return y.JSC$6606_context_.yieldAllIterator_=null,HIE(y.JSC$6606_context_,Y),Ty(y)}y.JSC$6606_context_.yieldAllIterator_=null;Z.call(y.JSC$6606_context_,D);return Ty(y)};
Ty=function(y){for(;y.JSC$6606_context_.nextAddress;)try{var W=y.program_(y.JSC$6606_context_);if(W)return y.JSC$6606_context_.isRunning_=!1,{value:W.value,done:!1}}catch(c){y.JSC$6606_context_.yieldResult=void 0,HIE(y.JSC$6606_context_,c)}y.JSC$6606_context_.isRunning_=!1;if(y.JSC$6606_context_.abruptCompletion_){W=y.JSC$6606_context_.abruptCompletion_;y.JSC$6606_context_.abruptCompletion_=null;if(W.isException)throw W.exception;return{value:W.return,done:!0}}return{value:void 0,done:!0}};
_.SCI=function(y){this.next=function(W){BDw(y.JSC$6606_context_);y.JSC$6606_context_.yieldAllIterator_?W=vwt(y,y.JSC$6606_context_.yieldAllIterator_.next,W,y.JSC$6606_context_.JSC$6601_next_):(y.JSC$6606_context_.JSC$6601_next_(W),W=Ty(y));return W};
this.throw=function(W){BDw(y.JSC$6606_context_);y.JSC$6606_context_.yieldAllIterator_?W=vwt(y,y.JSC$6606_context_.yieldAllIterator_["throw"],W,y.JSC$6606_context_.JSC$6601_next_):(HIE(y.JSC$6606_context_,W),W=Ty(y));return W};
this.return=function(W){return dx1(y,W)};
this[Symbol.iterator]=function(){return this}};
TDH=function(y){function W(Z){return y.next(Z)}
function c(Z){return y.throw(Z)}
return new Promise(function(Z,G){function D(Y){Y.done?Z(Y.value):Promise.resolve(Y.value).then(W,c).then(D,G)}
D(y.next())})};
_.m=function(y){return TDH(new _.SCI(new _.Lwy(y)))};
$oa=function(y){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return y};
this.next=function(W){return Promise.resolve(y.next(W))};
this["throw"]=function(W){return new Promise(function(c,Z){var G=y["throw"];G!==void 0?c(G.call(y,W)):(c=y["return"],c!==void 0&&c.call(y),Z(new TypeError("i")))})};
y["return"]!==void 0&&(this["return"]=function(W){return Promise.resolve(y["return"](W))})};
_.Cf=function(){for(var y=Number(this),W=[],c=y;c<arguments.length;c++)W[c-y]=arguments[c];return W};
Ly("globalThis",function(y){return y||_.dJ});
Ly("Reflect",function(y){return y?y:{}});
Ly("Reflect.construct",function(){return pCO});
Ly("Reflect.setPrototypeOf",function(y){return y?y:_.vU?function(W,c){try{return(0,_.vU)(W,c),!0}catch(Z){return!1}}:null});
Ly("Promise",function(y){function W(){this.batch_=null}
function c(Y){return Y instanceof G?Y:new G(function(u){u(Y)})}
if(y&&(typeof _.dJ.PromiseRejectionEvent!=="undefined"||!_.dJ.Promise||_.dJ.Promise.toString().indexOf("[native code]")===-1))return y;W.prototype.asyncExecute=function(Y){if(this.batch_==null){this.batch_=[];var u=this;this.asyncExecuteFunction(function(){u.executeBatch_()})}this.batch_.push(Y)};
var Z=_.dJ.setTimeout;W.prototype.asyncExecuteFunction=function(Y){Z(Y,0)};
W.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Y=this.batch_;this.batch_=[];for(var u=0;u<Y.length;++u){var t=Y[u];Y[u]=null;try{t()}catch(b){this.asyncThrow_(b)}}}this.batch_=null};
W.prototype.asyncThrow_=function(Y){this.asyncExecuteFunction(function(){throw Y;})};
var G=function(Y){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var u=this.createResolveAndReject_();try{Y(u.resolve,u.reject)}catch(t){u.reject(t)}};
G.prototype.createResolveAndReject_=function(){function Y(b){return function(r){t||(t=!0,b.call(u,r))}}
var u=this,t=!1;return{resolve:Y(this.resolveTo_),reject:Y(this.JSC$6622_reject_)}};
G.prototype.resolveTo_=function(Y){if(Y===this)this.JSC$6622_reject_(new TypeError("j"));else if(Y instanceof G)this.settleSameAsPromise_(Y);else{a:switch(typeof Y){case "object":var u=Y!=null;break a;case "function":u=!0;break a;default:u=!1}u?this.resolveToNonPromiseObj_(Y):this.fulfill_(Y)}};
G.prototype.resolveToNonPromiseObj_=function(Y){var u=void 0;try{u=Y.then}catch(t){this.JSC$6622_reject_(t);return}typeof u=="function"?this.settleSameAsThenable_(u,Y):this.fulfill_(Y)};
G.prototype.JSC$6622_reject_=function(Y){this.settle_(2,Y)};
G.prototype.fulfill_=function(Y){this.settle_(1,Y)};
G.prototype.settle_=function(Y,u){if(this.state_!=0)throw Error("k`"+Y+"`"+u+"`"+this.state_);this.state_=Y;this.result_=u;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
G.prototype.scheduleUnhandledRejectionCheck_=function(){var Y=this;Z(function(){if(Y.notifyUnhandledRejection_()){var u=_.dJ.console;typeof u!=="undefined"&&u.error(Y.result_)}},1)};
G.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Y=_.dJ.CustomEvent,u=_.dJ.Event,t=_.dJ.dispatchEvent;if(typeof t==="undefined")return!0;typeof Y==="function"?Y=new Y("unhandledrejection",{cancelable:!0}):typeof u==="function"?Y=new u("unhandledrejection",{cancelable:!0}):(Y=_.dJ.document.createEvent("CustomEvent"),Y.initCustomEvent("unhandledrejection",!1,!0,Y));Y.promise=this;Y.reason=this.result_;return t(Y)};
G.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Y=0;Y<this.onSettledCallbacks_.length;++Y)D.asyncExecute(this.onSettledCallbacks_[Y]);this.onSettledCallbacks_=null}};
var D=new W;G.prototype.settleSameAsPromise_=function(Y){var u=this.createResolveAndReject_();Y.callWhenSettled_(u.resolve,u.reject)};
G.prototype.settleSameAsThenable_=function(Y,u){var t=this.createResolveAndReject_();try{Y.call(u,t.resolve,t.reject)}catch(b){t.reject(b)}};
G.prototype.then=function(Y,u){function t(K,l){return typeof K=="function"?function(N){try{b(K(N))}catch(P){r(P)}}:l}
var b,r,F=new G(function(K,l){b=K;r=l});
this.callWhenSettled_(t(Y,b),t(u,r));return F};
G.prototype.catch=function(Y){return this.then(void 0,Y)};
G.prototype.callWhenSettled_=function(Y,u){function t(){switch(b.state_){case 1:Y(b.result_);break;case 2:u(b.result_);break;default:throw Error("l`"+b.state_);}}
var b=this;this.onSettledCallbacks_==null?D.asyncExecute(t):this.onSettledCallbacks_.push(t);this.isRejectionHandled_=!0};
G.resolve=c;G.reject=function(Y){return new G(function(u,t){t(Y)})};
G.race=function(Y){return new G(function(u,t){for(var b=_.z(Y),r=b.next();!r.done;r=b.next())c(r.value).callWhenSettled_(u,t)})};
G.all=function(Y){var u=_.z(Y),t=u.next();return t.done?c([]):new G(function(b,r){function F(N){return function(P){K[N]=P;l--;l==0&&b(K)}}
var K=[],l=0;do K.push(void 0),l++,c(t.value).callWhenSettled_(F(K.length-1),r),t=u.next();while(!t.done)})};
return G});
var aT=function(y,W,c){if(y==null)throw new TypeError("m`"+c);if(W instanceof RegExp)throw new TypeError("n`"+c);return y+""};
Ly("String.prototype.startsWith",function(y){return y?y:function(W,c){var Z=aT(this,W,"startsWith"),G=Z.length,D=W.length;c=Math.max(0,Math.min(c|0,Z.length));for(var Y=0;Y<D&&c<G;)if(Z[c++]!=W[Y++])return!1;return Y>=D}});
Ly("Object.setPrototypeOf",function(y){return y||_.vU});
Ly("Symbol.dispose",function(y){return y?y:Symbol("o")});
Ly("SuppressedError",function(y){function W(c,Z,G){if(!(this instanceof W))return new W(c,Z,G);G=Error(G);"stack"in G&&(this.stack=G.stack);this.message=G.message;this.error=c;this.suppressed=Z}
if(y)return y;_.R(W,Error);W.prototype.name="SuppressedError";return W});
var aDI=function(y,W,c){y instanceof String&&(y=String(y));for(var Z=y.length,G=0;G<Z;G++){var D=y[G];if(W.call(c,D,G,y))return{i:G,v:D}}return{i:-1,v:void 0}};
Ly("Array.prototype.find",function(y){return y?y:function(W,c){return aDI(this,W,c).v}});
Ly("WeakMap",function(y){function W(){}
function c(t){var b=typeof t;return b==="object"&&t!==null||b==="function"}
function Z(t){if(!So(t,D)){var b=new W;lDf(t,D,{value:b})}}
function G(t){var b=Object[t];b&&(Object[t]=function(r){if(r instanceof W)return r;Object.isExtensible(r)&&Z(r);return b(r)})}
if(function(){if(!y||!Object.seal)return!1;try{var t=Object.seal({}),b=Object.seal({}),r=new y([[t,2],[b,3]]);if(r.get(t)!=2||r.get(b)!=3)return!1;r.delete(t);r.set(b,4);return!r.has(t)&&r.get(b)==4}catch(F){return!1}}())return y;
var D="$jscomp_hidden_"+Math.random();G("freeze");G("preventExtensions");G("seal");var Y=0,u=function(t){this.JSC$6629_id_=(Y+=Math.random()+1).toString();if(t){t=_.z(t);for(var b;!(b=t.next()).done;)b=b.value,this.set(b[0],b[1])}};
u.prototype.set=function(t,b){if(!c(t))throw Error("p");Z(t);if(!So(t,D))throw Error("q`"+t);t[D][this.JSC$6629_id_]=b;return this};
u.prototype.get=function(t){return c(t)&&So(t,D)?t[D][this.JSC$6629_id_]:void 0};
u.prototype.has=function(t){return c(t)&&So(t,D)&&So(t[D],this.JSC$6629_id_)};
u.prototype.delete=function(t){return c(t)&&So(t,D)&&So(t[D],this.JSC$6629_id_)?delete t[D][this.JSC$6629_id_]:!1};
return u});
Ly("Map",function(y){if(function(){if(!y||typeof y!="function"||!y.prototype.entries||typeof Object.seal!="function")return!1;try{var u=Object.seal({x:4}),t=new y(_.z([[u,"s"]]));if(t.get(u)!="s"||t.size!=1||t.get({x:4})||t.set({x:4},"t")!=t||t.size!=2)return!1;var b=t.entries(),r=b.next();if(r.done||r.value[0]!=u||r.value[1]!="s")return!1;r=b.next();return r.done||r.value[0].x!=4||r.value[1]!="t"||!b.next().done?!1:!0}catch(F){return!1}}())return y;
var W=new WeakMap,c=function(u){this[0]={};this[1]=D();this.size=0;if(u){u=_.z(u);for(var t;!(t=u.next()).done;)t=t.value,this.set(t[0],t[1])}};
c.prototype.set=function(u,t){u=u===0?0:u;var b=Z(this,u);b.list||(b.list=this[0][b.id]=[]);b.entry?b.entry.value=t:(b.entry={next:this[1],previous:this[1].previous,head:this[1],key:u,value:t},b.list.push(b.entry),this[1].previous.next=b.entry,this[1].previous=b.entry,this.size++);return this};
c.prototype.delete=function(u){u=Z(this,u);return u.entry&&u.list?(u.list.splice(u.index,1),u.list.length||delete this[0][u.id],u.entry.previous.next=u.entry.next,u.entry.next.previous=u.entry.previous,u.entry.head=null,this.size--,!0):!1};
c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=D();this.size=0};
c.prototype.has=function(u){return!!Z(this,u).entry};
c.prototype.get=function(u){return(u=Z(this,u).entry)&&u.value};
c.prototype.entries=function(){return G(this,function(u){return[u.key,u.value]})};
c.prototype.keys=function(){return G(this,function(u){return u.key})};
c.prototype.values=function(){return G(this,function(u){return u.value})};
c.prototype.forEach=function(u,t){for(var b=this.entries(),r;!(r=b.next()).done;)r=r.value,u.call(t,r[1],r[0],this)};
c.prototype[Symbol.iterator]=c.prototype.entries;var Z=function(u,t){var b=t&&typeof t;b=="object"||b=="function"?W.has(t)?b=W.get(t):(b=""+ ++Y,W.set(t,b)):b="p_"+t;var r=u[0][b];if(r&&So(u[0],b))for(u=0;u<r.length;u++){var F=r[u];if(t!==t&&F.key!==F.key||t===F.key)return{id:b,list:r,index:u,entry:F}}return{id:b,list:r,index:-1,entry:void 0}},G=function(u,t){var b=u[1];
return NDE(function(){if(b){for(;b.head!=u[1];)b=b.previous;for(;b.next!=b.head;)return b=b.next,{done:!1,value:t(b)};b=null}return{done:!0,value:void 0}})},D=function(){var u={};
return u.previous=u.next=u.head=u},Y=0;
return c});
Ly("Set",function(y){if(function(){if(!y||typeof y!="function"||!y.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),Z=new y(_.z([c]));if(!Z.has(c)||Z.size!=1||Z.add(c)!=Z||Z.size!=1||Z.add({x:4})!=Z||Z.size!=2)return!1;var G=Z.entries(),D=G.next();if(D.done||D.value[0]!=c||D.value[1]!=c)return!1;D=G.next();return D.done||D.value[0]==c||D.value[0].x!=4||D.value[1]!=D.value[0]?!1:G.next().done}catch(Y){return!1}}())return y;
var W=function(c){this.JSC$6643_map_=new Map;if(c){c=_.z(c);for(var Z;!(Z=c.next()).done;)this.add(Z.value)}this.size=this.JSC$6643_map_.size};
W.prototype.add=function(c){c=c===0?0:c;this.JSC$6643_map_.set(c,c);this.size=this.JSC$6643_map_.size;return this};
W.prototype.delete=function(c){c=this.JSC$6643_map_.delete(c);this.size=this.JSC$6643_map_.size;return c};
W.prototype.clear=function(){this.JSC$6643_map_.clear();this.size=0};
W.prototype.has=function(c){return this.JSC$6643_map_.has(c)};
W.prototype.entries=function(){return this.JSC$6643_map_.entries()};
W.prototype.values=function(){return this.JSC$6643_map_.values()};
W.prototype.keys=W.prototype.values;W.prototype[Symbol.iterator]=W.prototype.values;W.prototype.forEach=function(c,Z){var G=this;this.JSC$6643_map_.forEach(function(D){return c.call(Z,D,D,G)})};
return W});
Ly("Math.log2",function(y){return y?y:function(W){return Math.log(W)/Math.LN2}});
Ly("Object.values",function(y){return y?y:function(W){var c=[],Z;for(Z in W)So(W,Z)&&c.push(W[Z]);return c}});
Ly("Object.is",function(y){return y?y:function(W,c){return W===c?W!==0||1/W===1/c:W!==W&&c!==c}});
Ly("Array.prototype.includes",function(y){return y?y:function(W,c){var Z=this;Z instanceof String&&(Z=String(Z));var G=Z.length;c=c||0;for(c<0&&(c=Math.max(c+G,0));c<G;c++){var D=Z[c];if(D===W||Object.is(D,W))return!0}return!1}});
Ly("String.prototype.includes",function(y){return y?y:function(W,c){return aT(this,W,"includes").indexOf(W,c||0)!==-1}});
Ly("Array.from",function(y){return y?y:function(W,c,Z){c=c!=null?c:function(u){return u};
var G=[],D=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(typeof D=="function"){W=D.call(W);for(var Y=0;!(D=W.next()).done;)G.push(c.call(Z,D.value,Y++))}else for(D=W.length,Y=0;Y<D;Y++)G.push(c.call(Z,W[Y],Y));return G}});
Ly("Object.entries",function(y){return y?y:function(W){var c=[],Z;for(Z in W)So(W,Z)&&c.push([Z,W[Z]]);return c}});
Ly("Number.isFinite",function(y){return y?y:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}});
Ly("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Ly("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Ly("Number.isInteger",function(y){return y?y:function(W){return Number.isFinite(W)?W===Math.floor(W):!1}});
Ly("Number.isSafeInteger",function(y){return y?y:function(W){return Number.isInteger(W)&&Math.abs(W)<=Number.MAX_SAFE_INTEGER}});
Ly("String.prototype.endsWith",function(y){return y?y:function(W,c){var Z=aT(this,W,"endsWith");c===void 0&&(c=Z.length);c=Math.max(0,Math.min(c|0,Z.length));for(var G=W.length;G>0&&c>0;)if(Z[--c]!=W[--G])return!1;return G<=0}});
var xxw=function(y,W){y instanceof String&&(y+="");var c=0,Z=!1,G={next:function(){if(!Z&&c<y.length){var D=c++;return{value:W(D,y[D]),done:!1}}Z=!0;return{done:!0,value:void 0}}};
G[Symbol.iterator]=function(){return G};
return G};
Ly("Array.prototype.entries",function(y){return y?y:function(){return xxw(this,function(W,c){return[W,c]})}});
Ly("Math.imul",function(y){return y?y:function(W,c){W=Number(W);c=Number(c);var Z=W&65535,G=c&65535;return Z*G+((W>>>16&65535)*G+Z*(c>>>16&65535)<<16>>>0)|0}});
Ly("Math.trunc",function(y){return y?y:function(W){W=Number(W);if(isNaN(W)||W===Infinity||W===-Infinity||W===0)return W;var c=Math.floor(Math.abs(W));return W<0?-c:c}});
Ly("Number.isNaN",function(y){return y?y:function(W){return typeof W==="number"&&isNaN(W)}});
Ly("Array.prototype.keys",function(y){return y?y:function(){return xxw(this,function(W){return W})}});
Ly("Array.prototype.values",function(y){return y?y:function(){return xxw(this,function(W,c){return c})}});
Ly("Array.prototype.fill",function(y){return y?y:function(W,c,Z){var G=this.length||0;c<0&&(c=Math.max(0,G+c));if(Z==null||Z>G)Z=G;Z=Number(Z);Z<0&&(Z=Math.max(0,G+Z));for(c=Number(c||0);c<Z;c++)this[c]=W;return this}});
var x3=function(y){return y?y:Array.prototype.fill};
Ly("Int8Array.prototype.fill",x3);Ly("Uint8Array.prototype.fill",x3);Ly("Uint8ClampedArray.prototype.fill",x3);Ly("Int16Array.prototype.fill",x3);Ly("Uint16Array.prototype.fill",x3);Ly("Int32Array.prototype.fill",x3);Ly("Uint32Array.prototype.fill",x3);Ly("Float32Array.prototype.fill",x3);Ly("Float64Array.prototype.fill",x3);
Ly("Object.fromEntries",function(y){return y?y:function(W){var c={};if(!(Symbol.iterator in W))throw new TypeError("r`"+W);W=W[Symbol.iterator].call(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;if(Object(Z)!==Z)throw new TypeError("s");c[Z[0]]=Z[1]}return c}});
Ly("String.prototype.replaceAll",function(y){return y?y:function(W,c){if(W instanceof RegExp&&!W.global)throw new TypeError("t");return W instanceof RegExp?this.replace(W,c):this.replace(new RegExp(String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
Ly("Object.getOwnPropertySymbols",function(y){return y?y:function(){return[]}});
Ly("String.prototype.repeat",function(y){return y?y:function(W){var c=aT(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("u");W|=0;for(var Z="";W;)if(W&1&&(Z+=c),W>>>=1)c+=c;return Z}});
Ly("Array.prototype.findIndex",function(y){return y?y:function(W,c){return aDI(this,W,c).i}});
Ly("Array.prototype.flatMap",function(y){return y?y:function(W,c){var Z=[];Array.prototype.forEach.call(this,function(G,D){G=W.call(c,G,D,this);Array.isArray(G)?Z.push.apply(Z,G):Z.push(G)});
return Z}});
Ly("String.prototype.codePointAt",function(y){return y?y:function(W){var c=aT(this,null,"codePointAt"),Z=c.length;W=Number(W)||0;if(W>=0&&W<Z){W|=0;var G=c.charCodeAt(W);if(G<55296||G>56319||W+1===Z)return G;W=c.charCodeAt(W+1);return W<56320||W>57343?G:(G-55296)*1024+W+9216}}});
Ly("String.fromCodePoint",function(y){return y?y:function(W){for(var c="",Z=0;Z<arguments.length;Z++){var G=Number(arguments[Z]);if(G<0||G>1114111||G!==Math.floor(G))throw new RangeError("v`"+G);G<=65535?c+=String.fromCharCode(G):(G-=65536,c+=String.fromCharCode(G>>>10&1023|55296),c+=String.fromCharCode(G&1023|56320))}return c}});
Ly("String.prototype.padStart",function(y){return y?y:function(W,c){var Z=aT(this,null,"padStart");W-=Z.length;c=c!==void 0?String(c):" ";return(W>0&&c?c.repeat(Math.ceil(W/c.length)).substring(0,W):"")+Z}});
Ly("Promise.prototype.finally",function(y){return y?y:function(W){return this.then(function(c){return Promise.resolve(W()).then(function(){return c})},function(c){return Promise.resolve(W()).then(function(){throw c;
})})}});
Ly("Object.hasOwn",function(y){return y?y:function(W,c){return Object.prototype.hasOwnProperty.call(W,c)}});
var iIa=function(y){y=Math.trunc(y)||0;y<0&&(y+=this.length);if(!(y<0||y>=this.length))return this[y]};
Ly("Array.prototype.at",function(y){return y?y:iIa});
var iT=function(y){return y?y:iIa};
Ly("Int8Array.prototype.at",iT);Ly("Uint8Array.prototype.at",iT);Ly("Uint8ClampedArray.prototype.at",iT);Ly("Int16Array.prototype.at",iT);Ly("Uint16Array.prototype.at",iT);Ly("Int32Array.prototype.at",iT);Ly("Uint32Array.prototype.at",iT);Ly("Float32Array.prototype.at",iT);Ly("Float64Array.prototype.at",iT);Ly("String.prototype.at",function(y){return y?y:iIa});
Ly("Math.sign",function(y){return y?y:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}});
Ly("Array.prototype.flat",function(y){return y?y:function(W){W=W===void 0?1:W;var c=[];Array.prototype.forEach.call(this,function(Z){Array.isArray(Z)&&W>0?(Z=Array.prototype.flat.call(Z,W-1),c.push.apply(c,Z)):c.push(Z)});
return c}});
Ly("String.raw",function(y){return y?y:function(W,c){if(W==null)throw new TypeError("w");for(var Z=W.raw,G=Z.length,D="",Y=0;Y<G;++Y)D+=Z[Y],Y+1<G&&Y+1<arguments.length&&(D+=String(arguments[Y+1]));return D}});
Ly("Reflect.ownKeys",function(y){return y?y:function(W){var c=[],Z=Object.getOwnPropertyNames(W);W=Object.getOwnPropertySymbols(W);for(var G=0;G<Z.length;G++)(Z[G].substring(0,14)=="jscomp_symbol_"?W:c).push(Z[G]);return c.concat(W)}});
Ly("Object.getOwnPropertyDescriptors",function(y){return y?y:function(W){for(var c={},Z=Reflect.ownKeys(W),G=0;G<Z.length;G++)c[Z[G]]=Object.getOwnPropertyDescriptor(W,Z[G]);return c}});
Ly("WeakSet",function(y){if(function(){if(!y||!Object.seal)return!1;try{var c=Object.seal({}),Z=Object.seal({}),G=new y([c]);if(!G.has(c)||G.has(Z))return!1;G.delete(c);G.add(Z);return!G.has(c)&&G.has(Z)}catch(D){return!1}}())return y;
var W=function(c){this.JSC$6649_map_=new WeakMap;if(c){c=_.z(c);for(var Z;!(Z=c.next()).done;)this.add(Z.value)}};
W.prototype.add=function(c){this.JSC$6649_map_.set(c,!0);return this};
W.prototype.has=function(c){return this.JSC$6649_map_.has(c)};
W.prototype.delete=function(c){return this.JSC$6649_map_.delete(c)};
return W});
Ly("Promise.allSettled",function(y){function W(Z){return{status:"fulfilled",value:Z}}
function c(Z){return{status:"rejected",reason:Z}}
return y?y:function(Z){var G=this;Z=Array.from(Z,function(D){return G.resolve(D).then(W,c)});
return G.all(Z)}});
Ly("Number.parseInt",function(y){return y||parseInt});
_._DumpException=window._DumpException||function(y){throw y;};
window._DumpException=_._DumpException;var MhI,Ma,eo,wl,e7O,wCH,qCg,kog,UB,joH;MhI=MhI||{};_.DH=this||self;_.LR=function(y,W,c){y=y.split(".");c=c||_.DH;for(var Z;y.length&&(Z=y.shift());)y.length||W===void 0?c[Z]&&c[Z]!==Object.prototype[Z]?c=c[Z]:c=c[Z]={}:c[Z]=W};
Ma=function(y){var W=_.JW("WIZ_global_data.oxN3nb");y=W&&W[y];return y!=null?y:!1};
eo=_.DH._F_toggles||[];wl=function(){};
wl.get=function(){return null};
_.JW=function(y,W){y=y.split(".");W=W||_.DH;for(var c=0;c<y.length;c++)if(W=W[y[c]],W==null)return null;return W};
_.qa=function(y){y.instance_=void 0;y.getInstance=function(){return y.instance_?y.instance_:y.instance_=new y}};
_.zEO=function(y){var W=typeof y;return W!="object"?W:y?Array.isArray(y)?"array":W:"null"};
_.TO=function(y){var W=_.zEO(y);return W=="array"||W=="object"&&typeof y.length=="number"};
_.q1=function(y){var W=typeof y;return W=="object"&&y!=null||W=="function"};
_.kF=function(y){return Object.prototype.hasOwnProperty.call(y,e7O)&&y[e7O]||(y[e7O]=++wCH)};
e7O="closure_uid_"+(Math.random()*1E9>>>0);wCH=0;qCg=function(y,W,c){return y.call.apply(y.bind,arguments)};
kog=function(y,W,c){if(!y)throw Error();if(arguments.length>2){var Z=Array.prototype.slice.call(arguments,2);return function(){var G=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(G,Z);return y.apply(W,G)}}return function(){return y.apply(W,arguments)}};
_.$r=function(y,W,c){_.$r=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?qCg:kog;return _.$r.apply(null,arguments)};
_.Fr=function(y,W){var c=Array.prototype.slice.call(arguments,1);return function(){var Z=c.slice();Z.push.apply(Z,arguments);return y.apply(this,Z)}};
_.k3=function(){return Date.now()};
UB=function(y){return y};
_.j6=function(y,W){function c(){}
c.prototype=W.prototype;y.superClass_=W.prototype;y.prototype=new c;y.prototype.constructor=y;y.base=function(Z,G,D){for(var Y=Array(arguments.length-2),u=2;u<arguments.length;u++)Y[u-2]=arguments[u];return W.prototype[G].apply(Z,Y)}};
joH=function(y){return y};_.x=function(y,W,c,Z){var G=arguments.length,D=G<3?W:Z===null?Z=Object.getOwnPropertyDescriptor(W,c):Z,Y;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")D=Reflect.decorate(y,W,c,Z);else for(var u=y.length-1;u>=0;u--)if(Y=y[u])D=(G<3?Y(D):G>3?Y(W,c,D):Y(W,c))||D;return G>3&&D&&Object.defineProperty(W,c,D),D};
_.e=function(y,W){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(y,W)};
_.C6=function(y,W){if(W!==null&&W!==void 0){if(typeof W!=="object"&&typeof W!=="function")throw new TypeError("x");if(c===void 0){if(!Symbol.dispose)throw new TypeError("z");var c=W[Symbol.dispose]}if(typeof c!=="function")throw new TypeError("A");y.stack.push({value:W,dispose:c,async:!1})}return W};
_.Q0=function(y){function W(D){y.error=y.hasError?new SuppressedError(D,y.error,"An error was suppressed during disposal."):D;y.hasError=!0}
function c(){for(;Z=y.stack.pop();)try{if(!Z.async&&G===1)return G=0,y.stack.push(Z),Promise.resolve().then(c);if(Z.dispose){var D=Z.dispose.call(Z.value);if(Z.async)return G|=2,Promise.resolve(D).then(c,function(Y){W(Y);return c()})}else G|=1}catch(Y){W(Y)}if(G===1)return y.hasError?Promise.reject(y.error):Promise.resolve();
if(y.hasError)throw y.error;}
var Z,G=0;c()};_.j6(_.yw,Error);_.yw.prototype.name="CustomError";var yYH;var WOt=void 0,cY1,Zty=typeof TextDecoder!=="undefined",cHw,WE1=typeof String.prototype.isWellFormed==="function",yHg=typeof TextEncoder!=="undefined";var GLa;_.Fe=function(y){for(var W=[],c=0,Z=0;Z<y.length;Z++){var G=y.charCodeAt(Z);G<128?W[c++]=G:(G<2048?W[c++]=G>>6|192:((G&64512)==55296&&Z+1<y.length&&(y.charCodeAt(Z+1)&64512)==56320?(G=65536+((G&1023)<<10)+(y.charCodeAt(++Z)&1023),W[c++]=G>>18|240,W[c++]=G>>12&63|128):W[c++]=G>>12|224,W[c++]=G>>6&63|128),W[c++]=G&63|128)}return W};
GLa=function(y){for(var W=[],c=0,Z=0;c<y.length;){var G=y[c++];if(G<128)W[Z++]=String.fromCharCode(G);else if(G>191&&G<224){var D=y[c++];W[Z++]=String.fromCharCode((G&31)<<6|D&63)}else if(G>239&&G<365){D=y[c++];var Y=y[c++],u=y[c++];G=((G&7)<<18|(D&63)<<12|(Y&63)<<6|u&63)-65536;W[Z++]=String.fromCharCode(55296+(G>>10));W[Z++]=String.fromCharCode(56320+(G&1023))}else D=y[c++],Y=y[c++],W[Z++]=String.fromCharCode((G&15)<<12|(D&63)<<6|Y&63)}return W.join("")};var fbD,oLI,DjF,zfH,Y4I,mja,soO;_.yb=String.prototype.trim?function(y){return y.trim()}:function(y){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(y)[1]};
fbD=/&/g;oLI=/</g;DjF=/>/g;zfH=/"/g;Y4I=/'/g;mja=/\x00/g;soO=/[\x00&<>"']/;var WN=!!(eo[0]&4096),uCE=!!(eo[0]&8192),tEf=!!(eo[0]&2),nLH=!!(eo[0]&4),XqF=!!(eo[0]&16),btE=!!(eo[0]>>14&1);var $F=WN?uCE:Ma(610401301),rYg=WN?tEf:Ma(513659523),FOa=WN?nLH:Ma(568333945),uLF=WN?XqF:Ma(1331761403),UjD=WN?btE:Ma(1981196515);var Ka,$jy=_.DH.navigator;Ka=$jy?$jy.userAgentData||null:null;var Av;_.By=function(y,W){return Array.prototype.indexOf.call(y,W,void 0)};
_.Qa=function(y,W,c){Array.prototype.forEach.call(y,W,c)};
_.cN=function(y,W,c){return Array.prototype.filter.call(y,W,c)};
_.Ng=function(y,W,c){return Array.prototype.map.call(y,W,c)};
Av=function(y,W,c){return Array.prototype.some.call(y,W,c)};
_.oZh=function(y,W,c){return Array.prototype.every.call(y,W,c)};var Zq=function(y){Zq[" "](y);return y},eKt;
Zq[" "]=function(){};
eKt=function(y,W){try{return Zq(y[W]),!0}catch(c){}return!1};
_.w7g=function(y,W,c,Z){Z=Z?Z(W):W;return Object.prototype.hasOwnProperty.call(y,Z)?y[Z]:y[Z]=c(W)};var KOy,Ot1,gLy,lbE,ELh,xDy,N7E,Iba,pqa,UwO,JYO,VEF,B7O;_.q_F=function(){return _.DH.navigator||null};
KOy=fHO();_.G$=oFy();_.B7=gg("Edge");Ot1=_.B7||_.G$;_.fi=gg("Gecko")&&!(_.Fh(_.UD(),"WebKit")&&!gg("Edge"))&&!(gg("Trident")||gg("MSIE"))&&!gg("Edge");_.oE=_.Fh(_.UD(),"WebKit")&&!gg("Edge");gLy=_.oE&&gg("Mobile");_.RfI=_.XyI();lbE=_.baE();ELh=(pa()?Ka.platform==="Linux":gg("Linux"))||_.rHH();xDy=_.tIa();N7E=nFE();Iba=gg("iPad");pqa=gg("iPod");_.PVD=_.Vw();UwO=_.Fh(_.UD(),"KaiOS");JYO=function(){var y=_.DH.document;return y?y.documentMode:void 0};
a:{var CVy="",Qot=function(){var y=_.UD();if(_.fi)return/rv:([^\);]+)(\)|;)/.exec(y);if(_.B7)return/Edge\/([\d\.]+)/.exec(y);if(_.G$)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(y);if(_.oE)return/WebKit\/(\S+)/.exec(y);if(KOy)return/(?:Version)[ \/]?(\S+)/.exec(y)}();
Qot&&(CVy=Qot?Qot[1]:"");if(_.G$){var AYf=JYO();if(AYf!=null&&AYf>parseFloat(CVy)){VEF=String(AYf);break a}}VEF=CVy}_.hfI=VEF;if(_.DH.document&&_.G$){var HtI=JYO();B7O=HtI?HtI:parseInt(_.hfI,10)||void 0}else B7O=void 0;_.LOI=B7O;var tvH,nRa,vLE;_.Dq=lf();tvH=nFE()||gg("iPod");nRa=gg("iPad");vLE=_.YDy();_.z$=_.II();_.ll=_.ztf()&&!_.Vw();var djg,Y6,S4I,NQH,T7O,WKD,xjw,abE;djg={};Y6=null;S4I=_.fi||_.oE;NQH=S4I||typeof _.DH.btoa=="function";T7O=S4I||!_.ll&&typeof _.DH.atob=="function";_.OB=function(y,W){W===void 0&&(W=0);abE();W=djg[W];for(var c=Array(Math.floor(y.length/3)),Z=W[64]||"",G=0,D=0;G<y.length-2;G+=3){var Y=y[G],u=y[G+1],t=y[G+2],b=W[Y>>2];Y=W[(Y&3)<<4|u>>4];u=W[(u&15)<<2|t>>6];t=W[t&63];c[D++]=b+Y+u+t}b=0;t=Z;switch(y.length-G){case 2:b=y[G+1],t=W[(b&15)<<2]||Z;case 1:y=y[G],c[D]=W[y>>2]+W[(y&3)<<4|b>>4]+t+Z}return c.join("")};
WKD=function(y,W){if(T7O&&!W)return _.DH.atob(y);var c="";xjw(y,function(Z){c+=String.fromCharCode(Z)});
return c};
_.KGa=function(y){var W=[];xjw(y,function(c){W.push(c)});
return W};
_.cJ=function(y){var W=y.length,c=W*3/4;c%3?c=Math.floor(c):_.Xh("=.",y[W-1])&&(c=_.Xh("=.",y[W-2])?c-2:c-1);var Z=new Uint8Array(c),G=0;xjw(y,function(D){Z[G++]=D});
return G!==c?Z.subarray(0,G):Z};
xjw=function(y,W){function c(t){for(;Z<y.length;){var b=y.charAt(Z++),r=Y6[b];if(r!=null)return r;if(!_.tH(b))throw Error("E`"+b);}return t}
abE();for(var Z=0;;){var G=c(-1),D=c(0),Y=c(64),u=c(64);if(u===64&&G===-1)break;W(G<<2|D>>4);Y!=64&&(W(D<<4&240|Y>>2),u!=64&&W(Y<<6&192|u))}};
abE=function(){if(!Y6){Y6={};for(var y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var Z=y.concat(W[c].split(""));djg[c]=Z;for(var G=0;G<Z.length;G++){var D=Z[G];Y6[D]===void 0&&(Y6[D]=G)}}}};var TgH=typeof Uint8Array!=="undefined",JHg=!_.G$&&typeof btoa==="function",VIw=/[-_.]/g,pya={"-":"+",_:"/",".":"="},OZ={};var UZ,MED;UZ=function(y,W){if(W!==OZ)throw Error("G");this.JSC$6680_value_=y;if(y!=null&&y.length===0)throw Error("F");};
_.g2=function(){return itf||(itf=new UZ(null,OZ))};
MED=function(y){return new Uint8Array(EQt(y)||0)};
UZ.prototype.isEmpty=function(){return this.JSC$6680_value_==null};
UZ.prototype.sizeBytes=function(){var y=EQt(this);return y?y.length:0};
var EQt=function(y){if(OZ!==OZ)throw Error("G");var W=y.JSC$6680_value_;W=W==null||TgH&&W!=null&&W instanceof Uint8Array?W:typeof W==="string"?CfH(W):null;return W==null?W:y.JSC$6680_value_=W},itf;var AHE=void 0;var YW=typeof Symbol==="function"&&typeof Symbol()==="symbol",efH=D0("jas",void 0,!0),J5O=D0(void 0,"0di"),v3=D0(void 0,"1oa"),$Q=D0(void 0,Symbol()),T2g=D0(void 0,"0ub"),z6D=D0(void 0,"0actk"),b9=D0("m_m","messagePrototypeMarker",!0),c9t=D0(void 0,"vps"),x3O=D0();var Haf,Bgg,Vd,wqf;Haf={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Bgg=Object.defineProperties;_.mQ=YW?efH:"internalArrayState";wqf=[];uE(wqf,7);Vd=Object.freeze(wqf);var rS={},SDE={},q4g=function(y,W,c){this.iterable=y;this.mapper=W;this.thisArg=c};
q4g.prototype.next=function(){var y=this.iterable.next();y.done||(y.value=this.mapper.call(this.thisArg,y.value));return y};
q4g.prototype[Symbol.iterator]=function(){return this};
var kLI=Object.freeze({}),IV={};_.jdf=C8(function(y){return y!==null&&y!==void 0});var wyh=C8(function(y){return typeof y==="number"}),etF=C8(function(y){return typeof y==="string"}),kO1=C8(function(y){return typeof y==="boolean"}),y1h=C8(function(y){return y!=null&&typeof y==="object"&&typeof y.then==="function"}),g7f=C8(function(y){return typeof y==="function"}),NXh=C8(function(y){return!!y&&(typeof y==="object"||typeof y==="function")});var qDE=typeof _.DH.BigInt==="function"&&typeof _.DH.BigInt(0)==="bigint";var Z_I,WdH,GDO,c1I;_.KQ=C8(function(y){return qDE?y>=WdH&&y<=c1I:y[0]==="-"?jVH(y,Z_I):jVH(y,GDO)});
Z_I=Number.MIN_SAFE_INTEGER.toString();WdH=qDE?BigInt(Number.MIN_SAFE_INTEGER):void 0;GDO=Number.MAX_SAFE_INTEGER.toString();c1I=qDE?BigInt(Number.MAX_SAFE_INTEGER):void 0;var fpH=typeof Uint8Array.prototype.slice==="function",A5=0,h5=0,z01;var c3,Dg,aV,zf,sVy;c3=typeof BigInt==="function"?BigInt.asIntN:void 0;_.YQ=typeof BigInt==="function"?BigInt.asUintN:void 0;Dg=Number.isSafeInteger;aV=Number.isFinite;zf=Math.trunc;sVy=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var ZQa={};var vWH={},o4E=function(){try{var y=function(){return pCO(Map,[],this.constructor)};
_.R(y,Map);Zq(new y);return!1}catch(W){return!0}}(),m8=function(){this.JSC$6708_map_=new Map};
_.f=m8.prototype;_.f.get=function(y){return this.JSC$6708_map_.get(y)};
_.f.set=function(y,W){this.JSC$6708_map_.set(y,W);this.size=this.JSC$6708_map_.size;return this};
_.f.delete=function(y){y=this.JSC$6708_map_.delete(y);this.size=this.JSC$6708_map_.size;return y};
_.f.clear=function(){this.JSC$6708_map_.clear();this.size=this.JSC$6708_map_.size};
_.f.has=function(y){return this.JSC$6708_map_.has(y)};
_.f.entries=function(){return this.JSC$6708_map_.entries()};
_.f.keys=function(){return this.JSC$6708_map_.keys()};
_.f.values=function(){return this.JSC$6708_map_.values()};
_.f.forEach=function(y,W){return this.JSC$6708_map_.forEach(y,W)};
m8.prototype[Symbol.iterator]=function(){return this.entries()};
var gS=function(){if(o4E)return Object.setPrototypeOf(m8.prototype,Map.prototype),Object.defineProperties(m8.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),m8;var y=function(){return pCO(Map,[],this.constructor)};
_.R(y,Map);return y}(),FZ=function(y,W,c,Z){c=c===void 0?A5f:c;
Z=Z===void 0?A5f:Z;var G=gS.call(this)||this;G.arrayState=y[_.mQ]|0;G.valueCtor=W;G.keyToApi=c;G.valueToApi=G.valueCtor?B2w:Z;for(var D=0;D<y.length;D++){var Y=y[D],u=c(Y[0],!1,!0),t=Y[1];W?t===void 0&&(t=null):t=Z(Y[1],!1,!0,void 0,void 0,G.arrayState);gS.prototype.set.call(G,u,t)}return G};
_.R(FZ,gS);var Dky=function(y){if(y.arrayState&2)throw Error("K");};
_.f=FZ.prototype;_.f.clear=function(){Dky(this);gS.prototype.clear.call(this)};
_.f.delete=function(y){Dky(this);return gS.prototype.delete.call(this,this.keyToApi(y,!0,!1))};
_.f.entries=function(){if(this.valueCtor){var y=gS.prototype.keys.call(this);y=new q4g(y,H8g,this)}else y=gS.prototype.entries.call(this);return y};
_.f.values=function(){if(this.valueCtor){var y=gS.prototype.keys.call(this);y=new q4g(y,FZ.prototype.get,this)}else y=gS.prototype.values.call(this);return y};
_.f.forEach=function(y,W){this.valueCtor?gS.prototype.forEach.call(this,function(c,Z,G){y.call(W,G.get(Z),Z,G)}):gS.prototype.forEach.call(this,y,W)};
_.f.set=function(y,W){Dky(this);y=this.keyToApi(y,!0,!1);return y==null?this:W==null?(gS.prototype.delete.call(this,y),this):gS.prototype.set.call(this,y,this.valueToApi(W,!0,!0,this.valueCtor,!1,this.arrayState))};
_.f.has=function(y){return gS.prototype.has.call(this,this.keyToApi(y,!1,!1))};
_.f.get=function(y){y=this.keyToApi(y,!1,!1);var W=gS.prototype.get.call(this,y);if(W!==void 0){var c=this.valueCtor;return c?(c=this.valueToApi(W,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==W&&gS.prototype.set.call(this,y,c),c):W}};
FZ.prototype[Symbol.iterator]=function(){return this.entries()};
FZ.prototype.toJSON=void 0;var LQF;var wJf=function(){},kfD=function(y,W){for(var c in y)!isNaN(c)&&W(y,+c,y[c])},qZa=function(y){var W=new wJf;
kfD(y,function(c,Z,G){W[Z]=L8(G)});
W.reviveUnknownFields=y.reviveUnknownFields;return W},i8I={reviveIntoImmutable:!0};var eE1;var GfI,fgy;var zqD,h9,os,sP,Yjy,FY,Yg,mkh,sdH,O2,ukh,g5,E2,Nr;zqD=_.QT(0);_.s2={};_.um=function(y,W,c,Z,G){W=h9(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W,c,G);if(W!==null||Z&&y.noLegacyNull!==SDE)return W};
h9=function(y,W,c,Z){if(W===-1)return null;var G=W+(c?0:-1),D=y.length-1;if(!(D<1+(c?0:-1))){if(G>=D){var Y=y[D];if(Y!=null&&typeof Y==="object"&&Y.constructor===Object){c=Y[W];var u=!0}else if(G===D)c=Y;else return}else c=y[G];if(Z&&c!=null){Z=Z(c);if(Z==null)return Z;if(!Object.is(Z,c))return u?Y[W]=Z:y[G]=Z,Z}return c}};
_.e5=function(y,W,c,Z){P3(y);var G=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;J9(G,G[_.mQ]|0,W,c,Z);return y};
_.tf=function(y,W,c){y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return K6h(y,y[_.mQ]|0,W,c)!==void 0};
_.ni=function(y,W,c,Z){var G=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return K6h(G,G[_.mQ]|0,W,sP(y,Z,c))!==void 0};
_.ky=function(y){return y===kLI?2:4};
_.XY=function(y,W){y=_.um(y,W,void 0,void 0,X3E);return y==null?_.g2():y};
os=function(y,W,c,Z){P3(y);var G=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=G[_.mQ]|0;if(Z==null){var Y=F6h(G);if(UHt(Y,G,D,c)===W)Y.set(c,0);else return y}else D=$Ha(G,D,c,W);J9(G,D,W,Z);return y};
_.bm=function(y,W,c,Z){var G=y[_.mQ]|0,D=p8(G);G=$Ha(y,G,c,W,D);J9(y,G,W,Z,D)};
sP=function(y,W,c){return _.r5(y,W)===c?c:-1};
_.r5=function(y,W){y=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return UHt(F6h(y),y,void 0,W,void 0)};
Yjy=function(y,W,c){var Z=y[_.mQ]|0,G=p8(Z),D=h9(y,c,G);if(D!=null&&D[b9]===rS){if(!Fm(D))return pQ(D),D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}var Y;if(Array.isArray(D)){var u=D[_.mQ]|0;u&2?Y=NH(IH(D,u,!0),W,!0):u&2048?Y=D:Y=NH(D,W,!0)}else Y=NH(void 0,W,!0);Y!==D&&J9(y,Z,c,Y,G);return Y};
_.il=function(y,W,c,Z){var G=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=G[_.mQ]|0;W=K6h(G,D,W,c,Z);if(W==null)return W;D=G[_.mQ]|0;if(!Fm(y,D)){var Y=hEE(W);Y!==W&&(pQ(y)&&(G=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D=G[_.mQ]|0),W=Y,J9(G,D,c,W,Z))}return W};
_.wQ=function(y,W,c,Z){var G=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return OQI(y,G,G[_.mQ]|0,W,c,Z,!1,!0)};
_.uF=function(y,W,c,Z){c=gQD(c);_.e5(y,W,c,Z);return y};
_.tn=function(y,W,c,Z){Z=gQD(Z);os(y,W,c,Z);return y};
FY=function(y,W,c){P3(y);var Z=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=Z[_.mQ]|0;if(c==null)return J9(Z,G,W),y;for(var D=c===Vd?7:c[_.mQ]|0,Y=D,u=A9(D),t=u||Object.isFrozen(c),b=!0,r=!0,F=0;F<c.length;F++){var K=c[F];u||(K=Fm(K),b&&(b=!K),r&&(r=K))}u||(D=b?13:5,D=r?D&-8193:D|8192);t&&D===Y||(c=L8(c),Y=0,D=CQ(D,G));D!==Y&&uE(c,D);J9(Z,G,W,c);return y};
Yg=function(y,W,c,Z){lgO(y,W,c,Z);return y};
mkh=function(y,W,c){lgO(y,W,U2,void 0,c,1,!0);return y};
_.$6=function(y,W,c){y=_.um(y,W,void 0,c);y!=null&&(typeof y==="bigint"?(0,_.KQ)(y)?y=Number(y):(y=c3(64,y),y=(0,_.KQ)(y)?Number(y):String(y)):y=_.iE(y)?typeof y==="number"?fQ(y):W3(y):void 0);return y};
_.Ki=function(y,W){var c=c===void 0?!1:c;var Z;return(Z=_.m3D(_.um(y,W)))!=null?Z:c};
_.jZ=function(y,W,c){c=c===void 0?0:c;var Z;return(Z=_.yd(_.um(y,W)))!=null?Z:c};
sdH=function(y,W){var c=c===void 0?0:c;y=_.tVt(_.um(y,W));return y!=null?y:c};
O2=function(y,W,c){c=c===void 0?zqD:c;y=_.um(y,W);W=typeof y;y=y==null?y:W==="bigint"?_.QT(c3(64,y)):_.iE(y)?W==="string"?XJH(y):b8O(y):void 0;return y!=null?y:c};
ukh=function(y){var W=W===void 0?zqD:W;y=_.um(y,23);var c=typeof y;y=y==null?y:c==="bigint"?_.QT((0,_.YQ)(64,y)):_.iE(y)?c==="string"?_.N2E(y):_.l0h(y):void 0;return y!=null?y:W};
g5=function(y,W){var c=c===void 0?0:c;var Z;return(Z=_.um(y,W,void 0,void 0,_.D3H))!=null?Z:c};
_.RE=function(y,W,c,Z){c=c===void 0?"":c;var G;return(G=_.t9(_.um(y,W,Z)))!=null?G:c};
_.lm=function(y,W){var c=c===void 0?0:c;var Z;return(Z=_.kW(_.um(y,W)))!=null?Z:c};
E2=function(y,W){var c=c===void 0?"0":c;y=I0I(_.um(y,W),!0);return y!=null?y:c};
Nr=function(y,W,c){return _.RE(y,sP(y,c,W))};
_.IE=function(y,W,c,Z){return _.il(y,W,sP(y,Z,c),void 0)};
_.sR=function(y,W){return _.t9(_.um(y,W,void 0,_.s2))};
_.GY=function(y,W,c){return _.e5(y,W,YZH(c))};
_.gz=function(y,W,c){return _.LQ(y,W,YZH(c),!1)};
_.pi=function(y,W,c){return _.e5(y,W,_.jD(c))};
_.tc=function(y,W,c){return _.e5(y,W,oH(c))};
_.Ub=function(y,W,c){return _.e5(y,W,u9(c))};
_.a0=function(y,W,c,Z){return _.LQ(y,W,u9(c),"",Z)};
_.MC=function(y,W,c){return _.e5(y,W,c==null?c:_.q3(c))};
_.PN=function(y,W,c){return _.LQ(y,W,c==null?c:_.q3(c),0)};var Tf=function(y,W,c){this.buffer=y;if(c&&!W)throw Error();this.JSC$6720_isImmutable=W};var tTD=function(y,W,c,Z){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6723_start_=0;this.init(y,W,c,Z)},Jf,X11,b_I,Fdy,MDw;
_.f=tTD.prototype;_.f.init=function(y,W,c,Z){var G=Z===void 0?{}:Z;Z=G.aliasBytesFields===void 0?!1:G.aliasBytesFields;G=G.treatNewDataAsImmutable===void 0?!1:G.treatNewDataAsImmutable;this.aliasBytesFields=Z;this.treatNewDataAsImmutable=G;y&&(y=NSt(y,this.treatNewDataAsImmutable),this.bytes_=y.buffer,this.bytesAreImmutable_=y.JSC$6720_isImmutable,this.JSC$6723_start_=W||0,this.end_=c!==void 0?this.JSC$6723_start_+c:this.bytes_.length,this.cursor_=this.JSC$6723_start_)};
_.f.free=function(){this.clear();n4a.length<100&&n4a.push(this)};
_.f.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6723_start_=0;this.aliasBytesFields=!1};
_.f.reset=function(){this.cursor_=this.JSC$6723_start_};
_.f.atEnd=function(){return this.cursor_==this.end_};
_.Vb=function(y,W){var c=0,Z=0,G=0,D=y.bytes_,Y=y.cursor_;do{var u=D[Y++];c|=(u&127)<<G;G+=7}while(G<32&&u&128);G>32&&(Z|=(u&127)>>4);for(G=3;G<32&&u&128;G+=7)u=D[Y++],Z|=(u&127)<<G;Jf(y,Y);if(u<128)return W(c>>>0,Z>>>0);throw Error("X");};
Jf=function(y,W){y.cursor_=W;if(W>y.end_)throw Error("Y`"+W+"`"+y.end_);};
_.Ci=function(y){var W=y.bytes_,c=y.cursor_,Z=W[c++],G=Z&127;if(Z&128&&(Z=W[c++],G|=(Z&127)<<7,Z&128&&(Z=W[c++],G|=(Z&127)<<14,Z&128&&(Z=W[c++],G|=(Z&127)<<21,Z&128&&(Z=W[c++],G|=Z<<28,Z&128&&W[c++]&128&&W[c++]&128&&W[c++]&128&&W[c++]&128&&W[c++]&128)))))throw Error("X");Jf(y,c);return G};
_.Qb=function(y){var W=y.bytes_,c=y.cursor_,Z=W[c],G=W[c+1],D=W[c+2];W=W[c+3];Jf(y,y.cursor_+4);return(Z<<0|G<<8|D<<16|W<<24)>>>0};
X11=function(y){var W=_.Qb(y);y=_.Qb(y);return c5y(W,y)};
b_I=function(y){var W=_.Qb(y),c=_.Qb(y);y=(c>>31)*2+1;var Z=c>>>20&2047;W=4294967296*(c&1048575)+W;return Z==2047?W?NaN:y*Infinity:Z==0?y*4.9E-324*W:y*Math.pow(2,Z-1075)*(W+4503599627370496)};
_.r1g=function(y){for(var W=0,c=y.cursor_,Z=c+10,G=y.bytes_;c<Z;){var D=G[c++];W|=D;if((D&128)===0)return Jf(y,c),!!(W&127)}throw Error("X");};
Fdy=function(y,W){if(W<0)throw Error("Z`"+W);var c=y.cursor_,Z=c+W;if(Z>y.end_)throw Error("Y`"+(y.end_-c)+"`"+W);y.cursor_=Z;return c};
MDw=function(y,W){if(W==0)return _.g2();var c=Fdy(y,W);y.aliasBytesFields&&y.bytesAreImmutable_?c=y.bytes_.subarray(c,c+W):(y=y.bytes_,W=c+W,c=c===W?new Uint8Array(0):fpH?y.slice(c,W):new Uint8Array(y.subarray(c,W)));return c.length==0?_.g2():new UZ(c,OZ)};
tTD.prototype.getDataView=function(){var y=this.dataView_;y||(y=this.bytes_,y=this.dataView_=new DataView(y.buffer,y.byteOffset,y.byteLength));return y};
var n4a=[];var $kO=function(y,W,c,Z){if(n4a.length){var G=n4a.pop();G.init(y,W,c,Z);y=G}else y=new tTD(y,W,c,Z);this.decoder_=y;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Ukg(this,Z)},Ukg=function(y,W){W=W===void 0?{}:W;
y.discardUnknownFields=W.discardUnknownFields===void 0?!1:W.discardUnknownFields},qBH=function(y,W,c,Z){if(KdF.length){var G=KdF.pop();
Ukg(G,Z);G.decoder_.init(y,W,c,Z);return G}return new $kO(y,W,c,Z)},agF,iQF,O_g,KdF;
$kO.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;KdF.length<100&&KdF.push(this)};
$kO.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
agF=function(y){if(y.decoder_.atEnd())return!1;y.fieldCursor_=y.decoder_.cursor_;var W=_.Ci(y.decoder_)>>>0,c=W>>>3;W&=7;if(!(W>=0&&W<=5))throw Error("T`"+W+"`"+y.fieldCursor_);if(c<1)throw Error("U`"+c+"`"+y.fieldCursor_);y.nextField_=c;y.nextWireType_=W;return!0};
iQF=function(y){switch(y.nextWireType_){case 0:y.nextWireType_!=0?iQF(y):_.r1g(y.decoder_);break;case 1:y=y.decoder_;Jf(y,y.cursor_+8);break;case 2:if(y.nextWireType_!=2)iQF(y);else{var W=_.Ci(y.decoder_)>>>0;y=y.decoder_;Jf(y,y.cursor_+W)}break;case 5:y=y.decoder_;Jf(y,y.cursor_+4);break;case 3:W=y.nextField_;do{if(!agF(y))throw Error("V");if(y.nextWireType_==4){if(y.nextField_!=W)throw Error("W");break}iQF(y)}while(1);break;default:throw Error("T`"+y.nextWireType_+"`"+y.fieldCursor_);}};
O_g=function(y,W,c){var Z=y.decoder_.end_,G=_.Ci(y.decoder_)>>>0,D=y.decoder_.cursor_+G,Y=D-Z;Y<=0&&(y.decoder_.end_=D,c(W,y,void 0,void 0,void 0),Y=D-y.decoder_.cursor_);if(Y)throw Error("S`"+G+"`"+(G-Y));y.decoder_.cursor_=D;y.decoder_.end_=Z};
_.g4w=function(y){var W=_.Ci(y.decoder_)>>>0;y=y.decoder_;var c=Fdy(y,W);y=y.bytes_;if(Zty){var Z=y,G;(G=cY1)||(G=cY1=new TextDecoder("utf-8",{fatal:!0}));W=c+W;Z=c===0&&W===Z.length?Z:Z.subarray(c,W);try{var D=G.decode(Z)}catch(b){if(WOt===void 0){try{G.decode(new Uint8Array([128]))}catch(r){}try{G.decode(new Uint8Array([97])),WOt=!0}catch(r){WOt=!1}}!WOt&&(cY1=void 0);throw b;}}else{D=c;W=D+W;c=[];for(var Y=null,u,t;D<W;)u=y[D++],u<128?c.push(u):u<224?D>=W?GO():(t=y[D++],u<194||ZH(t)?(D--,GO()):
c.push((u&31)<<6|t&63)):u<240?D>=W-1?GO():(t=y[D++],ZH(t)||u===224&&t<160||u===237&&t>=160||ZH(G=y[D++])?(D--,GO()):c.push((u&15)<<12|(t&63)<<6|G&63)):u<=244?D>=W-2?GO():(t=y[D++],ZH(t)||(u<<28)+(t-144)>>30!==0||ZH(G=y[D++])||ZH(Z=y[D++])?(D--,GO()):(u=(u&7)<<18|(t&63)<<12|(G&63)<<6|Z&63,u-=65536,c.push((u>>10&1023)+55296,(u&1023)+56320))):GO(),c.length>=8192&&(Y=jIw(Y,c),c.length=0);D=jIw(Y,c)}return D};
_.RqF=function(y){var W=_.Ci(y.decoder_)>>>0;return MDw(y.decoder_,W)};
_.lpF=function(y,W,c){var Z=_.Ci(y.decoder_)>>>0;for(Z=y.decoder_.cursor_+Z;y.decoder_.cursor_<Z;)c.push(W(y.decoder_))};
KdF=[];_.eD=function(y,W,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y,W,c)};
_.eD.prototype.toJSON=function(){return RH(this)};
_.eD.prototype.serialize=function(y){return JSON.stringify(RH(this,y))};
var EXh=function(y,W){if(W==null||W=="")return new y;W=JSON.parse(W);if(!Array.isArray(W))throw Error("$");return new y(d1F(W))};
_.eD.prototype.getExtension=function(y){a0D(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y.fieldIndex);MVh(this,y.fieldIndex);return y.ctor?y.isRepeated?y.getExtensionFn(this,y.ctor,y.fieldIndex,_.ky(),y.JSC$6733_hasMessageId):y.getExtensionFn(this,y.ctor,y.fieldIndex,y.JSC$6733_hasMessageId):y.isRepeated?y.getExtensionFn(this,y.fieldIndex,_.ky(),y.JSC$6733_hasMessageId):y.getExtensionFn(this,y.fieldIndex,y.defaultValue,y.JSC$6733_hasMessageId)};
_.eD.prototype.clone=function(){var y=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return new this.constructor(IH(y,y[_.mQ]|0,!0))};
_.eD.prototype[b9]=rS;_.eD.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var E4O=function(y,W){this.JSC$6735_lo=y>>>0;this.JSC$6735_hi=W>>>0},IpI=function(y){if(!y)return N8y||(N8y=new E4O(0,0));
if(!/^\d+$/.test(y))return null;oWF(y);return new E4O(A5,h5)},N8y,uMy=function(y,W){this.JSC$6737_lo=y>>>0;
this.JSC$6737_hi=W>>>0},m9f=function(y){if(!y)return p11||(p11=new uMy(0,0));
if(!/^-?\d+$/.test(y))return null;oWF(y);return new uMy(A5,h5)},p11;var PII=function(){this.JSC$6739_buffer_=[]},s$F,J1y;
PII.prototype.length=function(){return this.JSC$6739_buffer_.length};
PII.prototype.end=function(){var y=this.JSC$6739_buffer_;this.JSC$6739_buffer_=[];return y};
s$F=function(y,W,c){for(;c>0||W>127;)y.JSC$6739_buffer_.push(W&127|128),W=(W>>>7|c<<25)>>>0,c>>>=7;y.JSC$6739_buffer_.push(W)};
J1y=function(y,W){for(;W>127;)y.JSC$6739_buffer_.push(W&127|128),W>>>=7;y.JSC$6739_buffer_.push(W)};
_.tQH=function(y,W){if(W>=0)J1y(y,W);else{for(var c=0;c<9;c++)y.JSC$6739_buffer_.push(W&127|128),W>>=7;y.JSC$6739_buffer_.push(1)}};
_.WX=function(y,W){y.JSC$6739_buffer_.push(W>>>0&255);y.JSC$6739_buffer_.push(W>>>8&255);y.JSC$6739_buffer_.push(W>>>16&255);y.JSC$6739_buffer_.push(W>>>24&255)};var VTI,qH,XXh,FfI;VTI=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new PII};
qH=function(y,W){W.length!==0&&(y.blocks_.push(W),y.totalLength_+=W.length)};
_.J9O=function(y,W){_.y7(y,W,2);W=y.encoder_.end();qH(y,W);W.push(y.totalLength_);return W};
_.VDt=function(y,W){var c=W.pop();for(c=y.totalLength_+y.encoder_.length()-c;c>127;)W.push(c&127|128),c>>>=7,y.totalLength_++;W.push(c);y.totalLength_++};
_.y7=function(y,W,c){J1y(y.encoder_,W*8+c)};
XXh=function(y,W,c){if(c!=null){switch(typeof c){case "string":IpI(c)}_.y7(y,W,1);switch(typeof c){case "number":y=y.encoder_;y5a(c);_.WX(y,A5);_.WX(y,h5);break;case "bigint":c=BigInt.asUintN(64,c);c=new E4O(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));y=y.encoder_;W=c.JSC$6735_hi;_.WX(y,c.JSC$6735_lo);_.WX(y,W);break;default:c=IpI(c),y=y.encoder_,W=c.JSC$6735_hi,_.WX(y,c.JSC$6735_lo),_.WX(y,W)}}};
FfI=function(y,W,c){_.y7(y,W,2);J1y(y.encoder_,c.length);qH(y,y.encoder_.end());qH(y,c)};var IgH,A1H,B81;IgH=_.aH();_.CIy=_.aH();_.QdE=_.aH();A1H=_.aH();_.Af=_.aH();_.hqh=_.aH();B81=_.aH();_.H_I=_.aH();_.Ldf=_.aH();var xQ=function(y,W,c){this.$$binaryReaderFn=y;this.$$binaryWriterFn=W;y=UB(IgH);this.$$isMsg=!!y&&c===y||!1},h6f=p3t(function(y,W,c,Z,G){if(y.nextWireType_!==2)return!1;
O_g(y,Yjy(W,Z,c),G);return!0},C9f),BSH=p3t(function(y,W,c,Z,G){if(y.nextWireType_!==2)return!1;
O_g(y,Yjy(W,Z,c),G);return!0},C9f),yng=Symbol(),vQI=Symbol(),TSD=Symbol(),ZfD=Symbol(),e61=Symbol(),QHh,A9E;var gXI,v4f,dka,SjI,T8h,apf,xka,i_O,MTf,eqH,w1E,kD1,jIT,WE3,cHT;gXI=function(y,W){var c=new VTI;GeF(y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,MH(yng,j$f,WfE,W));qH(c,c.encoder_.end());y=new Uint8Array(c.totalLength_);W=c.blocks_;for(var Z=W.length,G=0,D=0;D<Z;D++){var Y=W[D];y.set(Y,G);G+=Y.length}c.blocks_=[y];return y};
v4f=_.kQ(function(y,W,c){if(y.nextWireType_!==1)return!1;_.jQ(W,c,b_I(y.decoder_));return!0},Y3I,B81);
dka=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==1)return!1;_.bm(W,c,Z,b_I(y.decoder_));return!0},Y3I,B81);
SjI=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==5)return!1;var G=_.Qb(y.decoder_);y=(G>>31)*2+1;var D=G>>>23&255;G&=8388607;_.bm(W,c,Z,D==255?G?NaN:y*Infinity:D==0?y*1.401298464324817E-45*G:y*Math.pow(2,D-150)*(G+8388608));return!0},function(y,W,c){W=_.D3H(W);
W!=null&&(_.y7(y,c,5),y=y.encoder_,c=z01||(z01=new DataView(new ArrayBuffer(8))),c.setFloat32(0,+W,!0),h5=0,A5=c.getUint32(0,!0),_.WX(y,A5))},_.aH());
_.hf=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;_.jQ(W,c,_.Vb(y.decoder_,Z8H));return!0},_.ff,_.Af);
T8h=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;y=_.Vb(y.decoder_,Z8H);_.jQ(W,c,y===0?void 0:y);return!0},_.ff,_.Af);
apf=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==0)return!1;_.bm(W,c,Z,_.Vb(y.decoder_,Z8H));return!0},_.ff,_.Af);
_.BN=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;_.jQ(W,c,_.Ci(y.decoder_));return!0},nXI,A1H);
xka=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;y=_.Ci(y.decoder_);_.jQ(W,c,y===0?void 0:y);return!0},nXI,A1H);
i_O=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==0)return!1;_.bm(W,c,Z,_.Ci(y.decoder_));return!0},nXI,A1H);
MTf=_.kQ(function(y,W,c){if(y.nextWireType_!==1)return!1;_.jQ(W,c,X11(y.decoder_));return!0},_.bff,_.hqh);
eqH=_.D9D(function(y,W,c){if(y.nextWireType_!==1&&y.nextWireType_!==2)return!1;W=_.r9E(W,W[_.mQ]|0,c);y.nextWireType_==2?_.lpF(y,X11,W):W.push(X11(y.decoder_));return!0},function(y,W,c){W=_.oXh(PEa,W,!1);
if(W!=null)for(var Z=0;Z<W.length;Z++)XXh(y,c,W[Z])},_.hqh);
_.HN=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;_.jQ(W,c,_.r1g(y.decoder_));return!0},_.rnD,_.CIy);
w1E=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==0)return!1;_.bm(W,c,Z,_.r1g(y.decoder_));return!0},_.rnD,_.CIy);
_.Li=_.kQ(function(y,W,c){if(y.nextWireType_!==2)return!1;_.jQ(W,c,_.g4w(y));return!0},_.U9E,_.QdE);
_.qjh=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==2)return!1;_.bm(W,c,Z,_.g4w(y));return!0},_.U9E,_.QdE);
kD1=_.D9D(function(y,W,c){if(y.nextWireType_!==2)return!1;y=_.g4w(y);_.r9E(W,W[_.mQ]|0,c).push(y);return!0},function(y,W,c){W=_.oXh(_.t9,W,!0);
if(W!=null)for(var Z=0;Z<W.length;Z++){var G=y,D=c,Y=W[Z];Y!=null&&FfI(G,D,Zag(Y))}},_.QdE);
jIT=void 0;jIT=jIT===void 0?IgH:jIT;_.vN=new xQ(function(y,W,c,Z,G){if(y.nextWireType_!==2)return!1;Z=NH(void 0,Z,!0);_.r9E(W,W[_.mQ]|0,c).push(Z);O_g(y,Z,G);return!0},function(y,W,c,Z,G){if(Array.isArray(W))for(var D=0;D<W.length;D++)$9w(y,W[D],c,Z,G)},jIT);
_.d5=p3t(function(y,W,c,Z,G,D){if(y.nextWireType_!==2)return!1;var Y=W[_.mQ]|0;$Ha(W,Y,D,c,p8(Y));W=Yjy(W,Z,c);O_g(y,W,G);return!0},$9w);
_.yH2=_.kQ(function(y,W,c){if(y.nextWireType_!==2)return!1;_.jQ(W,c,_.RqF(y));return!0},_.Kft,_.H_I);
WE3=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==2)return!1;_.bm(W,c,Z,_.RqF(y));return!0},_.Kft,_.H_I);
cHT=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==0)return!1;_.bm(W,c,Z,_.Ci(y.decoder_)>>>0);return!0},function(y,W,c){W=_.tVt(W);
W!=null&&W!=null&&(_.y7(y,c,0),J1y(y.encoder_,W))},_.aH());
_.S6=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;_.jQ(W,c,_.Ci(y.decoder_));return!0},_.Ofa,_.Ldf);var fHi=function(){var y=Za2,W=GOi;this.fieldIndex=175237375;this.ctor=W;this.isRepeated=0;this.getExtensionFn=_.il;this.defaultValue=void 0;this.JSC$6733_hasMessageId=y.messageId!=null?IV:void 0};
fHi.prototype.register=function(){Zq(this)};var oFJ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(oFJ,_.eD);var D18=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(D18,_.eD);var pXg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(pXg,_.eD);var ztE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ztE,_.eD);var YDJ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(YDJ,_.eD);var m1V=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(m1V,_.eD);var sIE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(sIE,_.eD);sIE.prototype.getData=function(){return _.XY(this,2)};var uhm=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(uhm,_.eD);var tI8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(tI8,_.eD);tI8.prototype.getStyle=function(){return _.il(this,oFJ,1)};var mf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(mf,_.eD);mf.prototype.getPayloadCase=function(){return _.r5(this,nf)};
mf.prototype.getStyle=function(){return _.IE(this,tI8,6,nf)};
var nFQ=function(){var y=new mf,W=new YDJ;return _.tn(y,7,nf,W)},XyV=function(){var y=new mf,W=new m1V;
return _.tn(y,8,nf,W)},nf=[1,
2,3,4,5,6,7,8];var baQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(baQ,_.eD);var rH5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(rH5,_.eD);var FEJ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(FEJ,_.eD);var U13=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(U13,_.eD);var $1V=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R($1V,_.eD);var KEm=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(KEm,_.eD);var Oa8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Oa8,_.eD);var gF0=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(gF0,_.eD);gF0.prototype.getData=function(){return _.XY(this,2)};var Rtm=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Rtm,_.eD);var I3g=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(I3g,_.eD);I3g.prototype.getPayloadCase=function(){return _.r5(this,T$)};
var T$=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var aE=function(y,W){y=Error.call(this,y);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.code=W===void 0?2:W};
_.R(aE,Error);var lHm=Promise;var EFi=function(y){this.channelPromise=y};
EFi.prototype.send=function(y,W,c){this.channelPromise.then(function(Z){Z.send(y,W,c)})};var NgZ=function(y,W){this.data=y;this.channel=W};
NgZ.prototype.reply=function(y,W,c){this.channel.send(y,W,c)};var IH5=function(y){this.JSC$6811_port_=y};
IH5.prototype.send=function(y,W,c){c=c===void 0?[]:c;var Z=new MessageChannel;py8(Z.port1,W);this.JSC$6811_port_.postMessage(y,[Z.port2].concat(c))};
var PfW=function(y,W){py8(y,W);return new IH5(y)},py8=function(y,W){W&&(y.onmessage=function(c){W(new NgZ(c.data,PfW(c.ports[0])))})};var JH2=function(y){this.verifier_=y},VIT=function(y){var W=Object.create(null);
(typeof y==="string"?[y]:y).forEach(function(c){if(c==="null")throw Error("ba");W[c]=!0});
return function(c){return W[c]===!0}};_.Cf0=function(){if(!_.DH.addEventListener||!Object.defineProperty)return!1;var y=!1,W=Object.defineProperty({},"passive",{get:function(){y=!0}});
try{var c=function(){};
_.DH.addEventListener("test",c,W);_.DH.removeEventListener("test",c,W)}catch(Z){}return y}();var QIQ;_.x6=function(y){var W=y.destination;var c=y.iframe;var Z=y.origin;var G=y.channelName===void 0?"ZNWN1d":y.channelName;var D=y.onMessage===void 0?void 0:y.onMessage;y=y.onEstablished===void 0?void 0:y.onEstablished;return QIQ({destination:W,getSource:function(){return c.contentWindow},
originVerifier:Z instanceof JH2?Z:typeof Z==="function"?new JH2(Z):new JH2(VIT(Z)),channelName:G,onMessage:D,onEstablished:y})};
QIQ=function(y){var W=y.destination;var c=y.getSource;var Z=y.originVerifier;var G=y.token===void 0?void 0:y.token;var D=y.channelName;var Y=y.onMessage===void 0?void 0:y.onMessage;var u=y.onEstablished===void 0?void 0:y.onEstablished;return new EFi(new lHm(function(t,b){var r=function(F){F.source&&F.source===c()&&Z.verifier_(F.origin)&&(F.data.n||F.data)===D&&(W.removeEventListener("message",r,!1),G&&F.data.t!==G?b(Error("ca`"+D+"`"+G+"`"+F.data.t)):(t(PfW(F.ports[0],Y)),u&&u(F)))};
W.addEventListener("message",r,!1)}))};var AHQ=function(y){try{y()}catch(W){YF(W)}};var Bg2=function(y){var W=this;var c=y.getMessageType;var Z=y.onUnregisteredMessage===void 0?function(){}:y.onUnregisteredMessage;
var G=y.onBeforeRegisteredMessage===void 0?function(){}:y.onBeforeRegisteredMessage;
y=y.onAfterRegisteredMessage===void 0?function(){}:y.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=c;this.onUnregisteredMessage_=Z;this.onBeforeRegisteredMessage_=G;this.onAfterRegisteredMessage_=y;this.onMessage=function(D){return ht5(W,D)}};
Bg2.prototype.register=function(y,W){this.registry_.set(y,W);return this};
var ht5=function(y,W){var c=y.getMessageType_(W.data),Z=y.registry_.get(c);Z?(AHQ(function(){return y.onBeforeRegisteredMessage_(W,c)}),AHQ(function(){return Z(W)}),AHQ(function(){return y.onAfterRegisteredMessage_(W,c)})):AHQ(function(){return y.onUnregisteredMessage_(W,c)})};var HaE=function(y){this.JSC$6828_channel_=y},vFE,d1W;
HaE.prototype.send=function(y,W,c){this.JSC$6828_channel_.send(RH(y),W,c)};
_.LE2=function(y,W){return function(c){var Z=new y(c.data);return W(new NgZ(Z,c.channel))}};
vFE=function(y){return function(W){return y(new NgZ(W.data,new HaE(W.channel)))}};
d1W=function(y,W){return vFE(_.LE2(y,W))};var SDQ=function(y,W,c,Z){this.registry=y;this.delegate=W;this.receiveMessageConstructor=c;this.createInitMessage=Z;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},NfH=function(y){var W=new Bg2({getMessageType:y.getPayloadCase});
return new SDQ(W,new HaE(_.x6({iframe:y.child,destination:window,origin:y.origin,channelName:y.channelName,onMessage:d1W(y.receiveMessageConstructor,W.onMessage)})),y.receiveMessageConstructor,y.createInitMessage)},Tg5=function(y,W){y.createInitMessage=W};
SDQ.prototype.send=function(y){if(!this.initialised)throw new aE("Attempted to send a message before initialisation.");this.delegate.send(y)};
var aHV=function(y,W){return _.m(function(c){if(!y.initialised)throw new aE("Attempted to send a message before initialisation.");return c.return(new Promise(function(Z){y.delegate.send(W,d1W(y.receiveMessageConstructor,Z))}))})};
SDQ.prototype.init=function(){var y=this;return _.m(function(W){if(y.initialised)throw new aE("Attempted to initialise twice. The SDK can only be initialised once.");if(y.createInitMessage!==void 0){var c=y.delegate,Z=c.send,G=y.createInitMessage;var D=new D18;var Y=[].concat(_.No(y.features));D=_.H3(D,1,Y,_.q3);Z.call(c,G.call(y,D))}y.initialised=!0;_.F2(W)})};
var im=function(y,W){if(y.initialised)throw new aE("Attempted to use a new API after initialisation. All APIs must be set up before initialising the SDK.");y.features.add(W);return y.registry};
_.dJ.Object.defineProperties(SDQ.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var x1V=function(y){this.channel=y;this.registered=!1};
x1V.prototype.update=function(y){if(this.channel.isInitialised){if(!this.registered)throw new aE("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var W=new mf;var c=new ztE;c=_.GY(c,1,y);W=_.tn(W,2,nf,c);this.channel.send(W)}else this.register();this.JSC$6842_audioEnabled=y};
x1V.prototype.register=function(){im(this.channel,1);this.registered=!0};
x1V.prototype.isAudioEnabled=function(){return this.JSC$6842_audioEnabled};var ia2=function(y){this.channel=y};
_.f=ia2.prototype;_.f.onFirstFrameReady=function(y){im(this.channel,2).register(11,function(W){W=_.IE(W.data,baQ,11,T$);if(!W)throw new aE("Unexpectedly nonexistent GameFirstFrameReadyEvent");y(_.RE(W,1))})};
_.f.onReady=function(y){im(this.channel,2).register(4,function(W){W=_.IE(W.data,FEJ,4,T$);if(!W)throw new aE("Unexpectedly nonexistent GameReadyEvent");y(_.RE(W,1))})};
_.f.onLevelComplete=function(y){im(this.channel,2).register(5,function(W){W=_.IE(W.data,U13,5,T$);if(!W)throw new aE("Unexpectedly nonexistent LevelCompleteEvent");y(_.RE(W,1),_.jZ(W,2))})};
_.f.onGameOver=function(y){im(this.channel,2).register(6,function(W){W=_.IE(W.data,rH5,6,T$);if(!W)throw new aE("Unexpectedly nonexistent GameOverEvent");y(_.RE(W,1))})};
_.f.pause=function(){var y=this;if(!this.channel.isInitialised)return im(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new aE("Using unregistered Game Feature: pause.");var W=nFQ();return new Promise(function(c){return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,aHV(y.channel,W),2);c();_.F2(Z)})})};
_.f.resume=function(){var y=this;if(!this.channel.isInitialised)return im(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new aE("Using unregistered Game Feature: resume.");var W=XyV();return new Promise(function(c){return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,aHV(y.channel,W),2);c();_.F2(Z)})})};var MIE=function(y){this.channel=y};
MIE.prototype.onReady=function(y){im(this.channel,5).register(8,function(W){if(!_.IE(W.data,$1V,8,T$))throw new aE("Unexpectedly nonexistent PageReadyEvent");y()})};var etW=function(y){this.channel=y};
etW.prototype.onChange=function(y){im(this.channel,3).register(7,function(W){W=_.IE(W.data,KEm,7,T$);if(!W)throw new aE("Unexpectedly nonexistent ScoreEvent");y(_.RE(W,1),_.jZ(W,2))})};var wym={load:function(){throw new aE("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new aE("Storage used, but storage.onSave() listener not set!");}},qDQ=function(y){this.channel=y;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},kO3=function(y){im(y.channel,4).register(2,wym.load).register(3,wym.save);
y.initialSetupDone=!0};
qDQ.prototype.onLoad=function(y){this.initialSetupDone||kO3(this);this.loadRegistered||(this.loadRegistered=!0,im(this.channel,4).register(2,function(W){var c,Z,G;return _.m(function(D){if(D.nextAddress==1){c=_.IE(W.data,Oa8,2,T$);if(!c)throw new aE("Unexpectedly nonexistent StorageLoad");Z=_.RE(c,1);return _.n(D,y(Z),2)}G=D.yieldResult;var Y=W.reply,u=new mf;var t=new sIE;t=_.Ub(t,1,Z);t=_.e5(t,2,_.RV(G,!1));u=_.tn(u,3,nf,t);Y.call(W,u);_.F2(D)})}))};
qDQ.prototype.onSave=function(y){this.initialSetupDone||kO3(this);this.saveRegistered||(this.saveRegistered=!0,im(this.channel,4).register(3,function(W){var c,Z,G;return _.m(function(D){if(D.nextAddress==1){c=_.IE(W.data,gF0,3,T$);if(!c)throw new aE("Unexpectedly nonexistent StorageSave");Z=_.RE(c,1);G=MED(c.getData());return _.n(D,y(Z,G),2)}var Y=W.reply,u=new mf;var t=new uhm;t=_.Ub(t,1,Z);u=_.tn(u,4,nf,t);Y.call(W,u);_.F2(D)})}))};var jV0=function(y){this.channel=y};
jV0.prototype.update=function(y){if(!this.channel.features.has(6))throw new aE("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var W=new mf,c=new tI8;y=_.uF(c,1,y);W=_.tn(W,6,nf,y);this.channel.send(W)};
jV0.prototype.register=function(){im(this.channel,6)};var y58=function(y){this.channel=y;this.userActivityLoggingIntervalMs=0};
y58.prototype.onUserActivity=function(y,W){this.userActivityLoggingIntervalMs=W;im(this.channel,7).register(9,function(c){if(!_.IE(c.data,Rtm,9,T$))throw new aE("Unexpectedly nonexistent ClickEvent");y()})};var WQ0=function(y){var W=this;this.channel=y;this.init=this.channel.init.bind(this.channel);this.page=new MIE(this.channel);this.game=new ia2(this.channel);this.audio=new x1V(this.channel);this.score=new etW(this.channel);this.storage=new qDQ(this.channel);this.style=new jV0(this.channel);this.userActivity=new y58(this.channel);Tg5(this.channel,function(c){var Z=new pXg;c=_.uF(Z,1,c);c=_.pi(c,3,W.userActivity.userActivityLoggingIntervalMs);Z=W.audio.isAudioEnabled();Z!==void 0&&_.GY(c,2,Z);Z=new mf;
return _.tn(Z,5,nf,c)})};var c5J=function(){this.timedFunctionContext=0};
c5J.prototype.timeExecution=function(y,W){var c=this;return function(){var Z=_.Cf.apply(0,arguments);c.timedFunctionContext=y;return W.apply(null,_.No(Z))}};var Z80=function(){var y={};this.priorityTasks=(y[3]=[],y[2]=[],y[1]=[],y);this.isFlushing=!1},mV=function(y,W,c){var Z=GiE(y,c);
y.priorityTasks[c].push(W);Z&&y.priorityTasks[c].length===1&&y.flush()},GiE=function(y,W){return Object.keys(y.priorityTasks).map(function(c){return Number(c)}).filter(function(c){return!isNaN(c)&&c>W}).every(function(c){return y.priorityTasks[c].length===0})};
Z80.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(y){return y.length>0});)f0E(this,3),f0E(this,2),f0E(this,1)}catch(y){throw Object.values(this.priorityTasks).forEach(function(W){return void W.splice(0,W.length)}),y;
}finally{this.isFlushing=!1}}};
var f0E=function(y,W){for(;GiE(y,W)&&y.priorityTasks[W].length>0;)y.priorityTasks[W][0](),y.priorityTasks[W].shift()};
_.dJ.Object.defineProperties(Z80.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(y){return y.length>0})}}});var h0y={};var oWW=globalThis.trustedTypes,JnE=oWW,CFy;var bF=function(y){this.privateDoNotAccessOrElseWrappedResourceUrl=y};
bF.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var D30=_.dl([""]),zEi=QyI(["\x00"],["\\0"]),YZ0=QyI(["\n"],["\\n"]),m3Z=QyI(["\x00"],["\\u0000"]);Anw(function(y){return y(D30)})||Anw(function(y){return y(zEi)})||Anw(function(y){return y(YZ0)})||Anw(function(y){return y(m3Z)});var PX;_.O3=function(y,W){this.privateDoNotAccessOrElseWrappedUrl=W};
_.O3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.sVJ=gf("about:blank");PX=gf("about:invalid#zClosurez");var BfF=function(y){this.isValid=y},um8=new BfF(function(y){return/^[^:]*([/?#]|$)/.test(y)}),tVE=I$("data"),nWW=I$("http"),XJ5=I$("https"),b8i=I$("ftp"),r5E=I$("mailto"),FQi=I$("intent"),U38=I$("vnd.youtube"),Hff=[tVE,
nWW,XJ5,r5E,b8i,um8],Lff=XM(function(){return typeof URL==="function"}),$3E=["data:",
"http:","https:","mailto:","ftp:"],d9a=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var BX=function(y){this.privateDoNotAccessOrElseWrappedHtml=y};
BX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var iRy=XM(function(){return new BX(oWW?oWW.emptyHTML:"")});var KQW={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"},TfI=function(y,W){var c=Error.call(this,y+" cannot be used with intent "+KQW[W]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=y;this.intent=W;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.R(TfI,Error);_.xX=function(y){this.privateDoNotAccessOrElseWrappedScript=y};
_.xX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var MQD=function(y){this.privateDoNotAccessOrElseWrappedAttributePrefix=y};
MQD.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var e0I="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var s3a=function(y){var W=_.JW("window.location.href");y==null&&(y='Unknown Error of type "null/undefined"');if(typeof y==="string")return{message:y,name:"Unknown error",lineNumber:"Not available",fileName:W,stack:"Not available"};var c=!1;try{var Z=y.lineNumber||y.line||"Not available"}catch(Y){Z="Not available",c=!0}try{var G=y.fileName||y.filename||y.sourceURL||_.DH.$googDebugFname||W}catch(Y){G="Not available",c=!0}W=O8E(y);if(!(!c&&y.lineNumber&&y.fileName&&y.stack&&y.message&&y.name)){c=y.message;
if(c==null){if(y.constructor&&y.constructor instanceof Function){if(y.constructor.name)c=y.constructor.name;else if(c=y.constructor,Mr[c])c=Mr[c];else{c=String(c);if(!Mr[c]){var D=/function\s+([^\(]+)/m.exec(c);Mr[c]=D?D[1]:"[Anonymous]"}c=Mr[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof y.toString==="function"&&Object.prototype.toString!==y.toString&&(c+=": "+y.toString())}return{message:c,name:y.name||"UnknownError",lineNumber:Z,fileName:G,stack:W||"Not available"}}return{message:y.message,
name:y.name,lineNumber:y.lineNumber,fileName:y.fileName,stack:W}},O8E=function(y,W){W||(W={});
W[gW8(y)]=!0;var c=y.stack||"",Z=y.cause;Z&&!W[gW8(Z)]&&(c+="\nCaused by: ",Z.stack&&Z.stack.indexOf(Z.toString())==0||(c+=typeof Z==="string"?Z:Z.message+"\n"),c+=O8E(Z,W));y=y.errors;if(Array.isArray(y)){Z=1;var G;for(G=0;G<y.length&&!(Z>4);G++)W[gW8(y[G])]||(c+="\nInner error "+Z++ +": ",y[G].stack&&y[G].stack.indexOf(y[G].toString())==0||(c+=typeof y[G]==="string"?y[G]:y[G].message+"\n"),c+=O8E(y[G],W));G<y.length&&(c+="\n... "+(y.length-G)+" more inner errors")}return c},gW8=function(y){var W=
"";
typeof y.toString==="function"&&(W=""+y);return W+y.stack},Mr={};var RE5,Tw,iv,EWJ,N2Q,l0m,Ao,CO,pJi;RE5=function(y,W){for(var c=y.split("%s"),Z="",G=Array.prototype.slice.call(arguments,1);G.length&&c.length>1;)Z+=c.shift()+G.shift();return Z+c.join("%s")};
_.Cj=function(y){return encodeURIComponent(String(y))};
Tw=function(y){return decodeURIComponent(y.replace(/\+/g," "))};
iv=function(y){soO.test(y)&&(y.indexOf("&")!=-1&&(y=y.replace(fbD,"&amp;")),y.indexOf("<")!=-1&&(y=y.replace(oLI,"&lt;")),y.indexOf(">")!=-1&&(y=y.replace(DjF,"&gt;")),y.indexOf('"')!=-1&&(y=y.replace(zfH,"&quot;")),y.indexOf("'")!=-1&&(y=y.replace(Y4I,"&#39;")),y.indexOf("\x00")!=-1&&(y=y.replace(mja,"&#0;")));return y};
EWJ=function(y){var W={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=_.DH.document.createElement("div");return y.replace(l0m,function(Z,G){var D=W[Z];if(D)return D;G.charAt(0)=="#"&&(G=Number("0"+G.slice(1)),isNaN(G)||(D=String.fromCharCode(G)));D||(_.wf(c,Lf(Z+" ")),D=c.firstChild.nodeValue.slice(0,-1));return W[Z]=D})};
N2Q=function(y){return y.replace(/&([^;]+);/g,function(W,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?W:String.fromCharCode(c)}})};
l0m=/&([^;\s<&]+);?/g;_.JUt=function(y){return String(y).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.I0V=String.prototype.repeat?function(y,W){return y.repeat(W)}:function(y,W){return Array(W+1).join(y)};
_.e6=function(y,W){if(!Number.isFinite(y))return String(y);y=String(y);var c=y.indexOf(".");c===-1&&(c=y.length);var Z=y[0]==="-"?"-":"";Z&&(y=y.substring(1));return Z+(0,_.I0V)("0",Math.max(0,W-c))+y};
Ao=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.k3()).toString(36)};
CO=function(y){for(var W=0,c=0;c<y.length;++c)W=31*W+y.charCodeAt(c)>>>0;return W};
_.uM=function(y){return String(y).replace(/\-([a-z])/g,function(W,c){return c.toUpperCase()})};
_.sL=function(y){return String(y).replace(/([A-Z])/g,"-$1").toLowerCase()};
pJi=function(y){return y.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,c,Z){return c+Z.toUpperCase()})};var PE8=function(){this.names=new Map};
PE8.prototype.getName=function(y){var W=this.names.get(y);if(W)return W;var c;W=(c=y.description)!=null?c:Ao();this.names.set(y,W);return W};var J5i=function(y){var W=Error.call(this,y?y.length+" errors occurred during unsubscription:\n"+y.map(function(c,Z){return Z+1+") "+c.toString()}).join("\n  "):"");
this.message=W.message;"stack"in W&&(this.stack=W.stack);this.errors=y;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.R(J5i,Error);var ZG=function(y){this.initialTeardown=y;this.closed=!1;this._teardowns=this._parentage=null};
_.f=ZG.prototype;
_.f.unsubscribe=function(){if(!this.closed){this.closed=!0;var y=this._parentage;if(Array.isArray(y))for(var W=_.z(y),c=W.next();!c.done;c=W.next())c.value.remove(this);else y==null||y.remove(this);W=this.initialTeardown;if(cp(W))try{W()}catch(D){var Z=D instanceof J5i?D.errors:[D]}var G=this._teardowns;if(G)for(this._teardowns=null,W=_.z(G),c=W.next();!c.done;c=W.next()){c=c.value;try{cp(c)?c():c.unsubscribe()}catch(D){c=void 0,Z=(c=Z)!=null?c:[],D instanceof J5i?Z=[].concat(_.No(Z),_.No(D.errors)):
Z.push(D)}}if(Z)throw new J5i(Z);}};
_.f.add=function(y){if(y&&y!==this)if(this.closed)cp(y)?y():y.unsubscribe();else{if(y instanceof ZG){if(y.closed||y._hasParent(this))return;y._addParent(this)}var W;(this._teardowns=(W=this._teardowns)!=null?W:[]).push(y)}};
_.f._hasParent=function(y){var W=this._parentage;return W===y||Array.isArray(W)&&W.includes(y)};
_.f._addParent=function(y){var W=this._parentage;this._parentage=Array.isArray(W)?(W.push(y),W):W?[W,y]:y};
_.f._removeParent=function(y){var W=this._parentage;W===y?this._parentage=null:Array.isArray(W)&&jQO(W,y)};
_.f.remove=function(y){var W=this._teardowns;W&&jQO(W,y);y instanceof ZG&&y._removeParent(this)};
var VVm=new ZG;VVm.closed=!0;ZG.JSC$6938_EMPTY=VVm;var Wpf=function(){setTimeout.apply(null,_.No(_.Cf.apply(0,arguments)))};var w5=function(y){ZG.call(this);this.JSC$6943_isStopped=!1;this.destination=y instanceof w5?y:new qr(!y||cp(y)?{next:y!=null?y:void 0}:y);ym1(y)&&y.add(this)};
_.R(w5,ZG);w5.JSC$6938_EMPTY=ZG.JSC$6938_EMPTY;w5.create=function(y,W,c){return new k6(y,W,c)};
_.f=w5.prototype;_.f.next=function(y){this.JSC$6943_isStopped||this._next(y)};
_.f.error=function(y){this.JSC$6943_isStopped||(this.JSC$6943_isStopped=!0,this._error(y))};
_.f.complete=function(){this.JSC$6943_isStopped||(this.JSC$6943_isStopped=!0,this._complete())};
_.f.unsubscribe=function(){this.closed||(this.JSC$6943_isStopped=!0,ZG.prototype.unsubscribe.call(this))};
_.f._next=function(y){this.destination.next(y)};
_.f._error=function(y){this.destination.error(y);this.unsubscribe()};
_.f._complete=function(){this.destination.complete();this.unsubscribe()};
var qr=function(y){this.partialObserver=y};
qr.prototype.next=function(y){var W=this.partialObserver;if(W.next)try{W.next(y)}catch(c){fc(c)}};
qr.prototype.error=function(y){var W=this.partialObserver;if(W.error)try{W.error(y)}catch(c){fc(c)}else fc(y)};
qr.prototype.complete=function(){var y=this.partialObserver;if(y.complete)try{y.complete()}catch(W){fc(W)}};
var k6=function(y,W,c){w5.call(this);var Z;cp(y)||!y?Z={next:y!=null?y:void 0,error:W!=null?W:void 0,complete:c!=null?c:void 0}:Z=y;this.destination=new qr(Z)};
_.R(k6,w5);k6.JSC$6938_EMPTY=w5.JSC$6938_EMPTY;k6.create=w5.create;var Yi=typeof Symbol==="function"&&Symbol.observable||"@@observable";var zt=function(y){y&&(this._subscribe=y)};
_.f=zt.prototype;_.f.lift=function(y){var W=new zt;W.source=this;W.operator=y;return W};
_.f.subscribe=function(y,W,c){y=y&&y instanceof w5||y&&cp(y.next)&&cp(y.error)&&cp(y.complete)&&ym1(y)?y:new k6(y,W,c);W=this.operator;c=this.source;y.add(W?W.call(y,c):c?this._subscribe(y):this._trySubscribe(y));return y};
_.f._trySubscribe=function(y){try{return this._subscribe(y)}catch(W){y.error(W)}};
_.f.forEach=function(y,W){var c=this;W=Zcg(W);return new W(function(Z,G){var D=c.subscribe(function(Y){try{y(Y)}catch(u){G(u),D==null||D.unsubscribe()}},G,Z)})};
_.f._subscribe=function(y){var W;return(W=this.source)==null?void 0:W.subscribe(y)};
zt.prototype[Yi]=function(){return this};
zt.prototype.pipe=function(){var y=_.Cf.apply(0,arguments);return y.length?cmO(y)(this):this};
zt.create=function(y){return new zt(y)};var CEE=function(){var y=Error.call(this,"object unsubscribed");this.message=y.message;"stack"in y&&(this.stack=y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.R(CEE,Error);var D_=function(){this.observers=[];this.hasError=this.JSC$6959_isStopped=this.closed=!1;this.thrownError=null};
_.R(D_,zt);_.f=D_.prototype;_.f.lift=function(y){var W=new j2(this,this);W.operator=y;return W};
_.f._throwIfClosed=function(){if(this.closed)throw new CEE;};
_.f.next=function(y){this._throwIfClosed();if(!this.JSC$6959_isStopped){var W=this.observers.slice();W=_.z(W);for(var c=W.next();!c.done;c=W.next())c.value.next(y)}};
_.f.error=function(y){this._throwIfClosed();if(!this.JSC$6959_isStopped){this.hasError=this.JSC$6959_isStopped=!0;this.thrownError=y;for(var W=this.observers;W.length;)W.shift().error(y)}};
_.f.complete=function(){this._throwIfClosed();if(!this.JSC$6959_isStopped){this.JSC$6959_isStopped=!0;for(var y=this.observers;y.length;)y.shift().complete()}};
_.f.unsubscribe=function(){this.JSC$6959_isStopped=this.closed=!0;this.observers=null};
_.f._trySubscribe=function(y){this._throwIfClosed();return zt.prototype._trySubscribe.call(this,y)};
_.f._subscribe=function(y){this._throwIfClosed();this._checkFinalizedStatuses(y);return this._innerSubscribe(y)};
_.f._innerSubscribe=function(y){var W=this,c=this.JSC$6959_isStopped,Z=this.observers;return this.hasError||c?ZG.JSC$6938_EMPTY:(Z.push(y),new ZG(function(){return jQO(W.observers,y)}))};
_.f._checkFinalizedStatuses=function(y){var W=this.thrownError,c=this.JSC$6959_isStopped;this.hasError?y.error(W):c&&y.complete()};
D_.create=function(y,W){return new j2(y,W)};
var j2=function(y,W){D_.call(this);this.destination=y;this.source=W};
_.R(j2,D_);j2.create=D_.create;j2.prototype.next=function(y){var W,c;(W=this.destination)==null||(c=W.next)==null||c.call(W,y)};
j2.prototype.error=function(y){var W,c;(W=this.destination)==null||(c=W.error)==null||c.call(W,y)};
j2.prototype.complete=function(){var y,W;(y=this.destination)==null||(W=y.complete)==null||W.call(y)};
j2.prototype._subscribe=function(y){var W,c;return(c=(W=this.source)==null?void 0:W.subscribe(y))!=null?c:ZG.JSC$6938_EMPTY};var Bu=function(y){D_.call(this);this._value=y};
_.R(Bu,D_);Bu.create=D_.create;Bu.prototype._subscribe=function(y){var W=D_.prototype._subscribe.call(this,y);!W.closed&&y.next(this._value);return W};
Bu.prototype.getValue=function(){var y=this.thrownError,W=this._value;if(this.hasError)throw y;this._throwIfClosed();return W};
Bu.prototype.next=function(y){D_.prototype.next.call(this,this._value=y)};
_.dJ.Object.defineProperties(Bu.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Vt=new zt(function(y){return y.complete()});var DoF=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var u2y=function(y){return y&&typeof y.length==="number"&&typeof y!=="function"};var QVm={now:function(){return(QVm.delegate||Date).now()},
delegate:void 0};var iR=function(y,W,c){y=y===void 0?Infinity:y;W=W===void 0?Infinity:W;c=c===void 0?QVm:c;D_.call(this);this.JSC$6981_bufferSize=y;this.windowTime=W;this.timestampProvider=c;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=W===Infinity;this.JSC$6981_bufferSize=Math.max(1,y);this.windowTime=Math.max(1,W)};
_.R(iR,D_);iR.create=D_.create;iR.prototype.next=function(y){var W=this.buffer,c=this.infiniteTimeWindow,Z=this.timestampProvider,G=this.windowTime;this.JSC$6959_isStopped||(W.push(y),!c&&W.push(Z.now()+G));A5E(this);D_.prototype.next.call(this,y)};
iR.prototype._subscribe=function(y){this._throwIfClosed();A5E(this);for(var W=this._innerSubscribe(y),c=this.infiniteTimeWindow,Z=this.buffer.slice(),G=0;G<Z.length&&!y.closed;G+=c?1:2)y.next(Z[G]);this._checkFinalizedStatuses(y);return W};
var A5E=function(y){var W=y.JSC$6981_bufferSize,c=y.timestampProvider,Z=y.buffer;y=y.infiniteTimeWindow;var G=(y?1:2)*W;W<Infinity&&G<Z.length&&Z.splice(0,Z.length-G);if(!y){W=c.now();c=0;for(y=1;y<Z.length&&Z[y]<=W;y+=2)c=y;c&&Z.splice(0,c+1)}};var B2T=function(y,W){W=W===void 0?hEQ:W;this.schedulerActionCtor=y;this.now=W};
B2T.prototype.schedule=function(y,W,c){W=W===void 0?0:W;return(new this.schedulerActionCtor(this,y)).schedule(c,W)};
var hEQ=QVm.now;var f_f=function(){var y=Error.call(this,"no elements in sequence");this.message=y.message;"stack"in y&&(this.stack=y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.R(f_f,Error);var gs=function(y,W,c,Z,G){w5.call(this,y);this.onUnsubscribe=G;W&&(this._next=function(D){try{W(D)}catch(Y){this.destination.error(Y)}});
c&&(this._error=function(D){try{c(D)}catch(Y){this.destination.error(Y)}this.unsubscribe()});
Z&&(this._complete=function(){try{Z()}catch(D){this.destination.error(D)}this.unsubscribe()})};
_.R(gs,w5);gs.JSC$6938_EMPTY=w5.JSC$6938_EMPTY;gs.create=w5.create;gs.prototype.unsubscribe=function(){var y;this.closed||(y=this.onUnsubscribe)!=null&&y.call(this);w5.prototype.unsubscribe.call(this)};var aQ=function(y,W){this.source=y;this.subjectFactory=W;this._subject=null;this._refCount=0;this._connection=null};
_.R(aQ,zt);aQ.create=zt.create;aQ.prototype._subscribe=function(y){return H82(this).subscribe(y)};
var H82=function(y){var W=y._subject;if(!W||W.JSC$6959_isStopped)y._subject=y.subjectFactory();return y._subject};
aQ.prototype._teardown=function(){this._refCount=0;var y=this._connection;this._subject=this._connection=null;y==null||y.unsubscribe()};
aQ.prototype.connect=function(){var y=this,W=this._connection;if(!W){W=this._connection=new ZG;var c=H82(this);W.add(this.source.subscribe(new gs(c,void 0,function(Z){y._teardown();c.error(Z)},function(){y._teardown();
c.complete()},function(){return y._teardown()})));
W.closed&&(this._connection=null,W=ZG.JSC$6938_EMPTY)}return W};var lGD=Array.isArray;var NsO=Array.isArray,LQW=Object,IGD=LQW.getPrototypeOf,ppE=LQW.prototype,PRO=LQW.keys;var pc=function(y,W,c){w5.call(this,y);this._next=W;this.shouldComplete=c};
_.R(pc,w5);pc.JSC$6938_EMPTY=w5.JSC$6938_EMPTY;pc.create=w5.create;pc.prototype._complete=function(){this.shouldComplete()?w5.prototype._complete.call(this):this.unsubscribe()};var Lpw=["addListener","removeListener"],Hca=["addEventListener","removeEventListener"],doO=["on","off"];var yy=function(){ZG.call(this)};
_.R(yy,ZG);yy.JSC$6938_EMPTY=ZG.JSC$6938_EMPTY;yy.prototype.schedule=function(){return this};var vW0=function(y,W){return setInterval.apply(null,[y,W].concat(_.No(_.Cf.apply(2,arguments))))};var WM=function(y,W){ZG.call(this);this.scheduler=y;this.work=W;this.pending=!1};
_.R(WM,yy);WM.JSC$6938_EMPTY=yy.JSC$6938_EMPTY;WM.prototype.schedule=function(y,W){W=W===void 0?0:W;if(this.closed)return this;this.state=y;y=this.id;var c=this.scheduler;y!=null&&(this.id=d3T(this,y,W));this.pending=!0;this.delay=W;this.id=this.id||this.requestAsyncId(c,this.id,W);return this};
WM.prototype.requestAsyncId=function(y,W,c){c=c===void 0?0:c;return vW0(y.flush.bind(y,this),c)};
var d3T=function(y,W,c){c=c===void 0?0:c;if(c!=null&&y.delay===c&&y.pending===!1)return W;clearInterval(W)};
WM.prototype.execute=function(y,W){if(this.closed)return Error("la");this.pending=!1;if(y=this._execute(y,W))return y;this.pending===!1&&this.id!=null&&(this.id=d3T(this,this.id,null))};
WM.prototype._execute=function(y){var W=!1;try{this.work(y)}catch(Z){W=!0;var c=!!Z&&Z||Error(Z)}if(W)return this.unsubscribe(),c};
WM.prototype.unsubscribe=function(){if(!this.closed){var y=this.id,W=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;jQO(W,this);y!=null&&(this.id=d3T(this,y,null));this.delay=null;yy.prototype.unsubscribe.call(this)}};var SZZ=function(y,W){W=W===void 0?hEQ:W;B2T.call(this,y,W);this.actions=[];this.active=!1;this.scheduled=void 0};
_.R(SZZ,B2T);SZZ.prototype.flush=function(y){var W=this.actions;if(this.active)W.push(y);else{var c;this.active=!0;do if(c=y.execute(y.state,y.delay))break;while(y=W.shift());this.active=!1;if(c){for(;y=W.shift();)y.unsubscribe();throw c;}}};var Ob=new zt(Gt);var S$h=Array.isArray;var cM=function(y,W){WM.call(this,y,W);this.scheduler=y;this.work=W};
_.R(cM,WM);cM.JSC$6938_EMPTY=WM.JSC$6938_EMPTY;cM.prototype.schedule=function(y,W){W=W===void 0?0:W;if(W>0)return WM.prototype.schedule.call(this,y,W);this.delay=W;this.state=y;this.scheduler.flush(this);return this};
cM.prototype.execute=function(y,W){return W>0||this.closed?WM.prototype.execute.call(this,y,W):this._execute(y,W)};
cM.prototype.requestAsyncId=function(y,W,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?WM.prototype.requestAsyncId.call(this,y,W,c):y.flush(this)};var T22=function(){SZZ.apply(this,arguments)};
_.R(T22,SZZ);var gia=new T22(cM);var a0Z=function(){this.performanceMonitor=new c5J;this.queue=new Z80;this.internalSymbol=Symbol();this.debugNames=new PE8};
a0Z.prototype.getOnBackgrounded=function(){return Ob};
_.dJ.Object.defineProperties(a0Z.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Zi=function(y,W){W=Error.call(this,W?y+": "+W:String(y));this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=y;this.__proto__=Zi.prototype;this.name=String(y)};
_.R(Zi,Error);var gQ=function(y){Zi.call(this,1E3,'sfr:"'+y+'"');this.measurementStrategyFailureReason=y;this.__proto__=gQ.prototype};
_.R(gQ,Zi);var Rf=function(){Zi.call(this,1003);this.__proto__=Rf.prototype};
_.R(Rf,Zi);var Gu=function(){Zi.call(this,1009);this.__proto__=Gu.prototype};
_.R(Gu,Zi);var x3i=function(){Zi.call(this,1011);this.__proto__=x3i.prototype};
_.R(x3i,Zi);var i8V=function(){Zi.call(this,1007);this.__proto__=Rf.prototype};
_.R(i8V,Zi);var $y=function(y){Zi.call(this,1004,String(y));this.inputObservableIndex=y;this.__proto__=$y.prototype};
_.R($y,Zi);var FMD=function(y){Zi.call(this,1010,y);this.__proto__=UQ1.prototype};
_.R(FMD,Zi);var UQ1=function(y){Zi.call(this,1005,y);this.__proto__=UQ1.prototype};
_.R(UQ1,Zi);var MVm=function(y){var W=_.Cf.apply(1,arguments),c=this;this.orderedFactories=[];this.orderedFactories.push(y);W.forEach(function(Z){c.orderedFactories.push(Z)})};
MVm.prototype.isSupported=function(y){return this.orderedFactories.some(function(W){return W.isSupported(y)})};
MVm.prototype.makeBeacon=function(y,W){for(var c=0;c<this.orderedFactories.length;c++)if(this.orderedFactories[c].isSupported(W))return this.orderedFactories[c].makeBeacon(y,W);throw new Gu;};var zyH=Symbol("ma"),eE3=Symbol("na"),hm=function(y,W){this.value=y;this.timeline=W},Am=function(y,W){if(W.timeline!==y.timeline)throw new i8V;
return y.value-W.value};
_.f=hm.prototype;_.f.equals=function(y){return Am(this,y)===0};
_.f.maximum=function(y){if(y.timeline!==this.timeline)throw new i8V;return this.value>=y.value?this:y};
_.f.round=function(){return new hm(Math.round(this.value),this.timeline)};
_.f.add=function(y){return new hm(this.value+y,this.timeline)};
_.f.toString=function(){return String(this.value)};var fd=function(y,W){this.context=y;this.JSC$7065_pinger=W};
fd.prototype.isSupported=function(y){return this.JSC$7065_pinger.isSupported(y)};
fd.prototype.makeBeacon=function(y,W){if(!this.isSupported(W))throw new Gu;return new o_(this.context,this.JSC$7065_pinger,W!=null?W:void 0,y)};
var o_=function(y,W,c,Z){var G=this;this.JSC$7071_pinger=W;this.properties=c;this.url=Z;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var D;this.method=(D=c==null?void 0:c.beaconMethod)!=null?D:"GET";this.backgroundedSubscription=y.getOnBackgrounded().subscribe(function(){G.sendNow()})};
o_.prototype.deactivate=function(){this.internalIsPending=!1};
o_.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7071_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var y,W;this.JSC$7071_pinger.pingWithHeadersAndBody((y=this.properties)!=null?y:{},this.customHeaders,(W=this.body)!=null?W:"",this.url)}else this.JSC$7071_pinger.ping(this.url);this.internalIsPending=!1}catch(c){}else this.internalIsPending=!1};
o_.prototype.setHeader=function(y){this.customHeaders.set(y,void 0)};
_.dJ.Object.defineProperties(o_.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var qZ8=function(){for(var y=_.z(_.Cf.apply(0,arguments)),W=y.next();!W.done;W=y.next())if(W=W.value,W.available()){this.timeProvider=W;return}this.timeProvider=new wJE};
_.f=qZ8.prototype;_.f.available=function(){return this.timeProvider.available()};
_.f.now=function(){return this.timeProvider.now()};
_.f.setTimeout=function(y,W){return this.timeProvider.setTimeout(y,W)};
_.f.clearTimeout=function(y){this.timeProvider.clearTimeout(y)};
_.f.interval=function(y,W){var c=this.intervalObservable(y).subscribe(W);return function(){return void c.unsubscribe()}};
_.f.intervalObservable=function(y){return this.timeProvider.intervalObservable(y)};
_.dJ.Object.defineProperties(qZ8.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var wJE=function(){this.timeline=Symbol()};
_.f=wJE.prototype;_.f.available=function(){return!1};
_.f.now=function(){return new hm(0,this.timeline)};
_.f.setTimeout=function(){return 0};
_.f.clearTimeout=function(){};
_.f.interval=function(){return function(){}};
_.f.intervalObservable=function(){return Ob};var Di=function(y,W){this.intrinsicFunctionNamespace=y;this.performanceMonitor=W};
_.f=Di.prototype;_.f.setTimeout=function(y,W){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,y),W)};
_.f.clearTimeout=function(y){this.intrinsicFunctionNamespace.clearTimeout(y)};
_.f.interval=function(y,W){var c=this.intervalObservable(y).subscribe(W);return function(){return void c.unsubscribe()}};
_.f.intervalObservable=function(y){var W=this;return new zt(function(c){var Z=0,G=W.intrinsicFunctionNamespace.setInterval(function(){c.next(Z++)},y);
return function(){W.intrinsicFunctionNamespace.clearInterval(G)}})};
_.f.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var kiZ=function(y,W){Di.call(this,y,W);this.timeline=eE3};
_.R(kiZ,Di);kiZ.prototype.now=function(){return new hm(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
kiZ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Di.prototype.available.call(this)};var jH5=function(y,W){Di.call(this,y,W);this.timeline=zyH};
_.R(jH5,Di);jH5.prototype.now=function(){return new hm(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
jH5.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Di.prototype.available.call(this)};var W68=function(y){this.context=y;if(y98===void 0)a:{var W,c,Z=(W=y.global)==null?void 0:(c=W.document)==null?void 0:c.createElement("meta");if(Z)try{Z.httpEquiv="origin-trial";Z.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";y.global.document.head.append(Z);y98=Z;break a}catch(G){}y98=void 0}},
y98;
W68.prototype.isSupported=function(y){return jfD(this.context)!==void 0&&!(y==null||!y.endOfSession)&&!zu(this.context)&&!(y==null?0:y.attributionEnabled)&&!(y==null?0:y.customHeaders)&&!(y==null?0:y.customBody)};
W68.prototype.makeBeacon=function(y,W){if(!this.isSupported(W))throw new Gu;return new Y_(this.context,y,W)};
var Y_=function(y,W,c){this.context=y;this.properties=c;this.JSC$7098_urlWithoutToken=W;var Z;this.beaconMethod=(Z=c==null?void 0:c.beaconMethod)!=null?Z:"GET";y=jfD(this.context);if(y===void 0)throw Error();this.fetchLater=y;c9E(this,ZQ8(this))},c9E=function(y,W){y.beaconResult&&y.beaconResult.activated||(y.beaconAbort=new AbortController,y.beaconResult=y.fetchLater(W,{method:y.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:y.beaconAbort.signal,activateAfter:96E4}))},ZQ8=function(y){y=y.JSC$7098_urlWithoutToken;
return(y.slice(-1)[0]==="&"?y:y+"&")+"flapi=1"};
Y_.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Y_.prototype.sendNow=function(){};
Y_.prototype.setHeader=function(){};
_.dJ.Object.defineProperties(Y_.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7098_urlWithoutToken},
set:function(y){this.JSC$7098_urlWithoutToken=y;y=ZQ8(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);c9E(this,y)}},
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 GfV=function(y){this.context=y};
GfV.prototype.isSupported=function(){return!zu(this.context)&&!!this.context.global.fetch};
GfV.prototype.ping=function(){var y=this;return Cc.apply(null,_.No(_.Cf.apply(0,arguments).map(function(W){return s$(y.context.global.fetch(W,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(E$(function(c){return c.status===200}))}))).pipe(oyh(function(W){return W}),z9h())};
GfV.prototype.pingWithHeadersAndBody=function(y,W,c){for(var Z=_.Cf.apply(3,arguments),G=this,D=new Headers,Y=_.z(W.entries()),u=Y.next();!u.done;u=Y.next()){var t=_.z(u.value);u=t.next().value;t=t.next().value;D.set(u,t)}var b,r=(b=y.keepAlive)!=null?b:!1;Cc.apply(null,_.No(Z.map(function(F){return s$(G.context.global.fetch(F,Object.assign({},{method:String(y.beaconMethod),cache:"no-cache"},r?{keepalive:!0}:{},{mode:"no-cors",headers:D,body:c}))).pipe(E$(function(K){return K.status===200}))}))).pipe(oyh(function(F){return F}),
z9h())};var fgJ,XSh;_.me=function(){};
_.AH=function(y){return y};
fgJ=function(y){var W=W||0;return function(){return y.apply(this,Array.prototype.slice.call(arguments,0,W))}};
_.sf=function(y){var W=!1,c;return function(){W||(c=y(),W=!0);return c}};
_.u5=function(y,W){var c=0;return function(Z){_.DH.clearTimeout(c);var G=arguments;c=_.DH.setTimeout(function(){y.apply(void 0,G)},W)}};
XSh=function(y,W){var c=0,Z=!1,G=[],D=function(){c=0;Z&&(Z=!1,Y())},Y=function(){c=_.DH.setTimeout(D,W);
var u=G;G=[];y.apply(void 0,u)};
return function(u){G=arguments;c?Z=!0:Y()}};var DH8=function(){return $F&&Ka?Ka.mobile:!oQW()&&(gg("iPod")||gg("iPhone")||gg("Android")||gg("IEMobile"))},oQW=function(){return $F&&Ka?!Ka.mobile&&(gg("iPad")||gg("Android")||gg("Silk")):gg("iPad")||gg("Android")&&!gg("Mobile")||gg("Silk")};var z6Z;_.Eb={};z6Z="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Eb.add=function(y,W,c){if(y!==null&&W in y)throw Error("pa`"+W);y[W]=c};
_.Eb.clear=function(y){for(var W in y)delete y[W]};
_.Eb.clone=function(y){var W={},c;for(c in y)W[c]=y[c];return W};
_.Eb.contains=function(y,W){return tLf(y,W)};
_.Eb.containsKey=function(y,W){return y!==null&&W in y};
_.Eb.containsValue=tLf;_.Eb.create=bPE;_.Eb.createImmutableView=function(y){var W=y;Object.isFrozen&&!Object.isFrozen(y)&&(W=Object.create(y),Object.freeze(W));return W};
_.Eb.createSet=rSh;_.Eb.equals=function(y,W){for(var c in y)if(!(c in W)||y[c]!==W[c])return!1;for(var Z in W)if(!(Z in y))return!1;return!0};
_.Eb.every=function(y,W,c){for(var Z in y)if(!W.call(c,y[Z],Z,y))return!1;return!0};
_.Eb.extend=function(y,W){for(var c,Z,G=1;G<arguments.length;G++){Z=arguments[G];for(c in Z)y[c]=Z[c];for(var D=0;D<z6Z.length;D++)c=z6Z[D],Object.prototype.hasOwnProperty.call(Z,c)&&(y[c]=Z[c])}};
_.Eb.filter=function(y,W,c){var Z={},G;for(G in y)W.call(c,y[G],G,y)&&(Z[G]=y[G]);return Z};
_.Eb.findKey=nyD;_.Eb.findValue=function(y,W,c){return(W=nyD(y,W,c))&&y[W]};
_.Eb.forEach=function(y,W,c){for(var Z in y)W.call(c,y[Z],Z,y)};
_.Eb.get=function(y,W,c){return y!==null&&W in y?y[W]:c};
_.Eb.getAllPropertyNames=function(y,W,c){if(!y)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return uFF(y);for(var Z={};y&&(y!==Object.prototype||W)&&(y!==Function.prototype||c);){for(var G=Object.getOwnPropertyNames(y),D=0;D<G.length;D++)Z[G[D]]=!0;y=Object.getPrototypeOf(y)}return uFF(Z)};
_.Eb.getAnyKey=function(y){for(var W in y)return W};
_.Eb.getAnyValue=function(y){for(var W in y)return y[W]};
_.Eb.getCount=function(y){var W=0,c;for(c in y)W++;return W};
_.Eb.getKeys=uFF;_.Eb.getSuperClass=function(y){return(y=Object.getPrototypeOf(y.prototype))&&y.constructor};
_.Eb.getValueByKeys=function(y,W){var c=_.TO(W),Z=c?W:arguments;for(c=c?0:1;c<Z.length;c++){if(y==null)return;y=y[Z[c]]}return y};
_.Eb.getValues=function(y){var W=[],c=0,Z;for(Z in y)W[c++]=y[Z];return W};
_.Eb.isEmpty=function(y){for(var W in y)return!1;return!0};
_.Eb.isImmutableView=function(y){return!!Object.isFrozen&&Object.isFrozen(y)};
_.Eb.map=function(y,W,c){var Z={},G;for(G in y)Z[G]=W.call(c,y[G],G,y);return Z};
_.Eb.remove=function(y,W){var c;(c=W in y)&&delete y[W];return c};
_.Eb.set=function(y,W,c){y[W]=c};
_.Eb.setIfUndefined=function(y,W,c){return W in y?y[W]:y[W]=c};
_.Eb.setWithReturnValueIfNotSet=function(y,W,c){if(W in y)return y[W];c=c();return y[W]=c};
_.Eb.some=function(y,W,c){for(var Z in y)if(W.call(c,y[Z],Z,y))return!0;return!1};
_.Eb.transpose=function(y){var W={},c;for(c in y)W[y[c]]=c;return W};
_.Eb.unsafeClone=Xuw;var YB3,mH0,sHm,uZi,dj,nQZ,UHE,$H8,K6m;YB3=function(y,W,c,Z,G,D,Y){var u="";y&&(u+=y+":");c&&(u+="//",W&&(u+=W+"@"),u+=c,Z&&(u+=":"+Z));G&&(u+=G);D&&(u+="?"+D);Y&&(u+="#"+Y);return u};
mH0=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Lj=function(y){return y.match(mH0)};
_.O9=function(y,W){return y?W?decodeURI(y):decodeURIComponent(y):y};
sHm=function(y){y=_.Lj(y)[1]||null;!y&&_.DH.self&&_.DH.self.location&&(y=_.DH.self.location.protocol.slice(0,-1));return y?y.toLowerCase():""};
_.vI=function(y){return _.O9(_.Lj(y)[3]||null,!0)};
_.c7=function(y){return _.O9(_.Lj(y)[5]||null,!0)};
_.GXI=function(y){var W=y.indexOf("#");return W<0?null:y.slice(W+1)};
uZi=function(y){y=_.Lj(y);return YB3(y[1],y[2],y[3],y[4])};
_.tDE=function(y){y=_.Lj(y);return YB3(y[1],null,y[3],y[4])};
_.BT=function(y){y=_.Lj(y);return YB3(null,null,null,null,y[5],y[6],y[7])};
_.xT=function(y){var W=y.indexOf("#");return W<0?y:y.slice(0,W)};
dj=function(y,W){y=_.Lj(y);W=_.Lj(W);return y[3]==W[3]&&y[1]==W[1]&&y[4]==W[4]};
nQZ=function(y,W){if(y){y=y.split("&");for(var c=0;c<y.length;c++){var Z=y[c].indexOf("="),G=null;if(Z>=0){var D=y[c].substring(0,Z);G=y[c].substring(Z+1)}else D=y[c];W(D,G?Tw(G):"")}}};
_.X3Q=function(y){var W=y.indexOf("#");W<0&&(W=y.length);var c=y.indexOf("?");if(c<0||c>W){c=W;var Z=""}else Z=y.substring(c+1,W);return[y.slice(0,c),Z,y.slice(W)]};
_.bQ3=function(y,W){return W?y?y+"&"+W:W:y};
_.r9Q=function(y,W){if(!W)return y;y=_.X3Q(y);y[1]=_.bQ3(y[1],W);return y[0]+(y[1]?"?"+y[1]:"")+y[2]};
_.F6m=function(y,W,c){if(Array.isArray(W))for(var Z=0;Z<W.length;Z++)_.F6m(y,String(W[Z]),c);else W!=null&&c.push(y+(W===""?"":"="+_.Cj(W)))};
_.Gj=function(y){var W=[],c;for(c in y)_.F6m(c,y[c],W);return W.join("&")};
_.HI=function(y,W){W=_.Gj(W);return _.r9Q(y,W)};
_.tP=function(y,W,c){c=c!=null?"="+_.Cj(c):"";return _.r9Q(y,W+c)};
UHE=function(y,W,c,Z){for(var G=c.length;(W=y.indexOf(c,W))>=0&&W<Z;){var D=y.charCodeAt(W-1);if(D==38||D==63)if(D=y.charCodeAt(W+G),!D||D==61||D==38||D==35)return W;W+=G+1}return-1};
$H8=/#|$/;_.Q4=function(y,W){var c=y.search($H8),Z=UHE(y,0,W,c);if(Z<0)return null;var G=y.indexOf("&",Z);if(G<0||G>c)G=c;Z+=W.length+1;return Tw(y.slice(Z,G!==-1?G:0))};
K6m=/[?&]($|#)/;_.qR=function(y,W){for(var c=y.search($H8),Z=0,G,D=[];(G=UHE(y,Z,W,c))>=0;)D.push(y.substring(Z,G)),Z=Math.min(y.indexOf("&",G)+1||c,c);D.push(y.slice(Z));return D.join("").replace(K6m,"$1")};
_.pD=function(y,W,c){return _.tP(_.qR(y,W),W,c)};var nd=function(y,W,c,Z,G){this.allowedElements=y;this.elementPolicies=W;this.allowedGlobalAttributes=c;this.globalAttributePolicies=Z;this.globallyAllowedAttributePrefixes=G},OQV=function(y,W,c){c=y.elementPolicies.get(c);
return(c==null?0:c.has(W))?c.get(W):y.allowedGlobalAttributes.has(W)?{policyAction:1}:(c=y.globalAttributePolicies.get(W))?c:y.globallyAllowedAttributePrefixes&&[].concat(_.No(y.globallyAllowedAttributePrefixes)).some(function(Z){return W.indexOf(Z)===0})?{policyAction:1}:{policyAction:0}};var gQZ="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(" "),
R6E=[["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}]])]],lgi="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 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(" "),
EQE=[["dir",{policyAction:3,conditions:XM(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:XM(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:XM(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:XM(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],NSE=new nd(new Set(gQZ),new Map(R6E),new Set(lgi),new Map(EQE)),Ig0=new nd(new Set(gQZ.concat(["BUTTON",
"INPUT"])),new Map(R6E),new Set(XM(function(){return lgi.concat(["class","id","name"])})),new Map(XM(function(){return EQE.concat([["style",
{policyAction:1}]])})));var p3E,P9V,VDE;p3E=function(y,W,c,Z){this.JSC$7158_sanitizerTable=y;this.styleElementSanitizer=W;this.styleAttributeSanitizer=c;this.JSC$7158_resourceUrlPolicy=Z;this.changes=[]};
_.J9i=function(y,W){var c=document.implementation.createHTMLDocument("");y=P9V(y,W,c);c=c.body;c.appendChild(y);c=(new XMLSerializer).serializeToString(c);c=c.slice(c.indexOf(">")+1,c.lastIndexOf("</"));return Lf(c)};
P9V=function(y,W,c){W=UgF(W,c);W=document.createTreeWalker(W,5,function(u){if(u.nodeType===3)u=1;else if(KVw(u))if(u=$gI(u),u===null)u=2;else{var t=y.JSC$7158_sanitizerTable;u=u!=="FORM"&&(t.allowedElements.has(u)||t.elementPolicies.has(u))?1:2}else u=2;return u});
for(var Z=W.nextNode(),G=c.createDocumentFragment(),D=G;Z!==null;){var Y=void 0;if(Z.nodeType===3)y.styleElementSanitizer&&D.nodeName==="STYLE"?(Z=y.styleElementSanitizer(Z.data),Y=y.createTextNode(Z)):Y=y.createTextNode(Z.data);else if(KVw(Z))Y=VDE(y,Z,c);else throw Error("da");D.appendChild(Y);if(Z=W.firstChild())D=Y;else for(;!(Z=W.nextSibling())&&(Z=W.parentNode());)D=D.parentNode}return G};
p3E.prototype.createTextNode=function(y){return document.createTextNode(y)};
VDE=function(y,W,c){var Z,G=$gI(W);c=c.createElement(G);W=W.attributes;for(var D=_.z(W),Y=D.next();!Y.done;Y=D.next()){var u=Y.value;Y=u.name;u=u.value;var t=OQV(y.JSC$7158_sanitizerTable,Y,G);a:{if(Z=t.conditions){Z=_.z(Z);for(var b=Z.next();!b.done;b=Z.next()){var r=_.z(b.value);b=r.next().value;r=r.next().value;var F=void 0;if((b=(F=W.getNamedItem(b))==null?void 0:F.value)&&!r.has(b)){Z=!1;break a}}}Z=!0}if(Z)switch(t.policyAction){case 1:Wu(c,Y,u);break;case 2:t=_.vXw(u);u=t!==void 0&&$3E.indexOf(t.toLowerCase())!==
-1?u:"about:invalid#zClosurez";Wu(c,Y,u);break;case 3:Wu(c,Y,u.toLowerCase());break;case 4:y.styleAttributeSanitizer?(u=y.styleAttributeSanitizer(u),Wu(c,Y,u)):Wu(c,Y,u);break;case 5:y.JSC$7158_resourceUrlPolicy?(t={type:2,attributeName:Y,elementName:G},u=FVI(u),(u=y.JSC$7158_resourceUrlPolicy(u,t))&&Wu(c,Y,u.toString())):Wu(c,Y,u);break;case 6:if(y.JSC$7158_resourceUrlPolicy){t={type:2,attributeName:Y,elementName:G};Z=[];u=_.z(u.split(","));for(b=u.next();!b.done;b=u.next())r=_.z(b.value.trim().split(/\s+/,
2)),b=r.next().value,r=r.next().value,Z.push({url:b,descriptor:r});u={parts:[]};Z=_.z(Z);for(b=Z.next();!b.done;b=Z.next())b=b.value,r=FVI(b.url),(r=y.JSC$7158_resourceUrlPolicy(r,t))&&u.parts.push({url:r.toString(),descriptor:b.descriptor});Wu(c,Y,OPF(u))}else Wu(c,Y,u)}}return c};
_.C9E=XM(function(){return new p3E(NSE)});
_.QHm=XM(function(){return new p3E(Ig0)});var A9Q=function(){this.calledBuild=!1;this.JSC$7170_sanitizerTable=NSE},h6E=function(){A9Q.apply(this,arguments)};
_.R(h6E,A9Q);h6E.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new p3E(this.JSC$7170_sanitizerTable,void 0,void 0,this.JSC$7170_resourceUrlPolicy)};var BS0=/[^#]*/;var SNf=function(y){try{return!!y&&y.location.href!=null&&eKt(y,"foo")}catch(W){return!1}},L6E=function(y){var W=HQZ;
if(W)for(var c in W)Object.prototype.hasOwnProperty.call(W,c)&&y(W[c],c,W)},vQV=function(){var y=[];
L6E(function(W){y.push(W)});
return y},HQZ={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"},dHT=_.sf(function(){return vQV()}),TSZ=function(){var y=SBW("IFRAME"),
W={};
_.Qa(dHT(),function(c){y.sandbox&&y.sandbox.supports&&y.sandbox.supports(c)&&(W[c]=!0)});
return W},SBW=function(y,W){W=W===void 0?document:W;
return W.createElement(String(y).toLowerCase())};var Xw=function(y){this.context=y};
Xw.prototype.isSupported=function(y){return(y==null?0:y.attributionEnabled)||(y==null?void 0:y.beaconMethod)==="POST"||(y==null?0:y.customHeaders)||(y==null?0:y.customBody)||(y==null?0:y.keepAlive)?!1:!zu(this.context)};
Xw.prototype.ping=function(){var y=this;return $i(_.Cf.apply(0,arguments).map(function(W){try{var c=y.context.global,Z=!1;Z=Z===void 0?!1:Z;c.google_image_requests||(c.google_image_requests=[]);var G=SBW("IMG",c.document);Z&&(G.attributionSrc="");G.src=W;c.google_image_requests.push(G);return!0}catch(D){return!1}}).every(function(W){return W}))};
Xw.prototype.pingWithHeadersAndBody=function(y,W,c){this.ping.apply(this,_.No(_.Cf.apply(3,arguments)))};var agW=function(y){this.context=y};
agW.prototype.isSupported=function(y){return xHE&&!zu(this.context)&&R9a(this.context)!==void 0&&!(y==null?0:y.attributionEnabled)&&(y==null?void 0:y.beaconMethod)!=="POST"&&!(y==null?0:y.customHeaders)&&!(y==null?0:y.customBody)};
agW.prototype.makeBeacon=function(y,W){if(!this.isSupported(W))throw new Gu;return new b5(this.context,y)};
var xHE=!1,b5=function(y,W){this.context=y;this.JSC$7192_urlWithoutToken=W;y=R9a(this.context);if(y===void 0)throw Error();this.wrappedBeacon=new y(iQW(this),{})},iQW=function(y){y=y.JSC$7192_urlWithoutToken;
return(y.slice(-1)[0]==="&"?y:y+"&")+"pbapi=1"};
b5.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
b5.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
b5.prototype.setHeader=function(){};
_.dJ.Object.defineProperties(b5.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7192_urlWithoutToken},
set:function(y){this.JSC$7192_urlWithoutToken=y;this.wrappedBeacon.setURL(iQW(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(y){if(y!=="GET")throw new Gu;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var MDT=function(y){this.context=y};
MDT.prototype.isSupported=function(y){if((y==null?0:y.attributionEnabled)||(y==null?void 0:y.beaconMethod)==="GET"||(y==null?0:y.customHeaders)||(y==null?0:y.customBody)||(y==null?0:y.keepAlive))return!1;var W;return!zu(this.context)&&((W=this.context.global.navigator)==null?void 0:W.sendBeacon)!==void 0};
MDT.prototype.ping=function(){var y=this;return $i(_.Cf.apply(0,arguments).map(function(W){var c;return(c=y.context.global.navigator)==null?void 0:c.sendBeacon(W)}).every(function(W){return W}))};
MDT.prototype.pingWithHeadersAndBody=function(y,W,c){this.ping.apply(this,_.No(_.Cf.apply(3,arguments)))};var sb=function(y){this.value=y},Ta=function(y,W){return $i(y.value).pipe(Yy(W))},xy=new sb(!1),zTw=new sb(!0);var Qx=function(y){this.value=y;this.releasedSubject=new D_};
Qx.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.dJ.Object.defineProperties(Qx.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7205_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var BQD=["FRAME","IMG","IFRAME"],JSg=/^[01](px)?$/,h9F=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},ASf=function(){var y=new h9F;
y.crossDomainLoadedDefault=!0;y.pendingImagesBlockLoad=!0;return y};var e63=function(y,W){var c=a_w(y);if(c)if(c.onCreativeLoad)c.onCreativeLoad(W);else{var Z=W?[W]:[],G=function(D){for(var Y=0;Y<Z.length;++Y)try{Z[Y](1,D)}catch(u){}Z={push:function(u){u(1,D)}}};
c.onCreativeLoad=function(D){Z.push(D)};
c.setAttribute("data-creative-load-listener","");c.addEventListener("creativeLoad",function(D){G(D.detail)});
_.DH.addEventListener("message",function(D){TQt(c,G,D)})}};var rT=function(y,W){var c=this;this.global=y;this.parentContext=W;this.JSC$7216_onVisibilityChange=this.document?Cc($i(!0),Jm(this.document,"visibilitychange")).pipe(Bp(this.parentContext.performanceMonitor,748),E$(function(){return c.getVisibilityState()}),Sq()):$i("visible");
this.document?Jm(this.document,"DOMContentLoaded").pipe(Bp(this.parentContext.performanceMonitor,739),ds(1)):$i(puw("DOMContentLoaded"))},Dnt=function(y){return y.document!==null&&y.document.visibilityState!==void 0};
rT.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
rT.prototype.querySelector=function(y){return this.document?this.document.querySelector(y):null};
rT.prototype.querySelectorAll=function(y){return this.document?_.SI(this.document.querySelectorAll(y)):[]};
rT.prototype.elementFromPoint=function(y,W){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;y=this.document.elementFromPoint(y,W);return y===null?null:new Qx(y)};
var waE=function(y,W,c){c=c===void 0?!1:c;if(W.ref===void 0||!y.document)return $i(W).pipe(Bp(y.parentContext.performanceMonitor,749));var Z=new iR(1),G=function(){Z.next(W)};
c||e63(W.ref,G);HPO(W.ref,G);return Z.pipe(Bp(y.parentContext.performanceMonitor,749),ds(1))};
_.dJ.Object.defineProperties(rT.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return eKt(this.global,"document")?this.global.document||null:null}}});var xgy=_.dl(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),iPE=_.dl(["./reach_worklet.js"]),MLO=_.dl(["./reach_worklet.js"]),w33=_.dl(["./reach_worklet.html"]),qB5=_.dl(["./reach_worklet.js"]),kfZ=_.dl(["./reach_worklet.js"]);_.cu(w33);_.cu(qB5);_.cu(kfZ);var Hu={left:0,top:0,width:0,height:0};var Fw;_.IT=function(y,W,c){return Math.min(Math.max(y,W),c)};
Fw=function(y,W,c){return y+c*(W-y)};_.If=function(y,W){this.x=y!==void 0?y:0;this.y=W!==void 0?W:0};
_.f=_.If.prototype;_.f.clone=function(){return new _.If(this.x,this.y)};
_.f.equals=function(y){return y instanceof _.If&&(this==y?!0:this&&y?this.x==y.x&&this.y==y.y:!1)};
_.f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.f.translate=function(y,W){y instanceof _.If?(this.x+=y.x,this.y+=y.y):(this.x+=Number(y),typeof W==="number"&&(this.y+=W));return this};
_.f.scale=function(y,W){this.x*=y;this.y*=typeof W==="number"?W:y;return this};_.nP=function(y,W){this.width=y;this.height=W};
_.f=_.nP.prototype;_.f.clone=function(){return new _.nP(this.width,this.height)};
_.f.area=function(){return this.width*this.height};
_.f.aspectRatio=function(){return this.width/this.height};
_.f.isEmpty=function(){return!this.area()};
_.f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.f.scale=function(y,W){this.width*=y;this.height*=typeof W==="number"?W:y;return this};var Is=function(y,W){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=y===nYI&&W||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=j$E};
Is.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var yn2=function(y){return y instanceof Is&&y.constructor===Is&&y.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===j$E?y.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},j$E={},nYI={};
new Is(nYI,"");var FF,Xe,$_,WfQ,GeW,ZfZ,pP,oXm,z03,D9Z,R_,Y3V,bfE,XXm,nXV,rnZ,FfV,U9Q,$9T,Pst,KfE,gXV,R03,Of8,Uf,EXm;FF=function(y){return y?new Uf(_.Pu(y)):yYH||(yYH=new Uf)};
_.vF=function(y,W){return typeof W==="string"?y.getElementById(W):W};
Xe=function(y,W){return(W||document).getElementsByTagName(String(y))};
_.cnW=function(y){return WfQ("yt-formatted-string","paper-input-input",y)};
$_=function(y,W,c,Z){y=Z||y;return(W=W&&W!="*"?String(W).toUpperCase():"")||c?y.querySelectorAll(W+(c?"."+c:"")):y.getElementsByTagName("*")};
WfQ=function(y,W,c){var Z=document,G=y&&y!="*"?String(y).toUpperCase():"";return G||W?(c||Z).querySelector(G+(W?"."+W:"")):$_(Z,y,W,c)[0]||null};
GeW=function(y,W){_.Eb.forEach(W,function(c,Z){Z=="style"?y.style.cssText=c:Z=="class"?y.className=c:Z=="for"?y.htmlFor=c:ZfZ.hasOwnProperty(Z)?y.setAttribute(ZfZ[Z],c):_.mE(Z,"aria-")||_.mE(Z,"data-")?y.setAttribute(Z,c):y[Z]=c})};
ZfZ={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"};_.bG=function(y){y=(y||window).document;y=y.compatMode=="CSS1Compat"?y.documentElement:y.body;return new _.nP(y.clientWidth,y.clientHeight)};
_.f3Z=function(y){var W=_.Kd(y);y=y.defaultView;return new _.If(y.pageXOffset||W.scrollLeft,y.pageYOffset||W.scrollTop)};
_.Kd=function(y){return y.scrollingElement?y.scrollingElement:_.oE||y.compatMode!="CSS1Compat"?y.body||y.documentElement:y.documentElement};
pP=function(y){return y?y.defaultView:window};
_.Of=function(y,W,c){return oXm(document,arguments)};
oXm=function(y,W){var c=W[1],Z=D9Z(y,String(W[0]));c&&(typeof c==="string"?Z.className=c:Array.isArray(c)?Z.className=c.join(" "):GeW(Z,c));W.length>2&&z03(y,Z,W,2);return Z};
z03=function(y,W,c,Z){function G(u){u&&W.appendChild(typeof u==="string"?y.createTextNode(u):u)}
for(;Z<c.length;Z++){var D=c[Z];if(!_.TO(D)||_.q1(D)&&D.nodeType>0)G(D);else{a:{if(D&&typeof D.length=="number"){if(_.q1(D)){var Y=typeof D.item=="function"||typeof D.item=="string";break a}if(typeof D==="function"){Y=typeof D.item=="function";break a}}Y=!1}_.Qa(Y?_.SI(D):D,G)}}};
_.uC=function(y){return D9Z(document,y)};
D9Z=function(y,W){W=String(W);y.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return y.createElement(W)};
_.gT=function(){return document.createTextNode("\n")};
R_=function(y){if(y.nodeType!=1)return!1;switch(y.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};
Y3V=function(y,W){z03(_.Pu(y),y,arguments,1)};
_.l5=function(y){for(var W;W=y.firstChild;)y.removeChild(W)};
_.NL=function(y,W){W.parentNode&&W.parentNode.insertBefore(y,W)};
_.I_=function(y,W){W.parentNode&&W.parentNode.insertBefore(y,W.nextSibling)};
_.to=function(y){return y&&y.parentNode?y.parentNode.removeChild(y):null};
_.m9E=function(y,W){var c=W.parentNode;c&&c.replaceChild(y,W)};
_.s$W=function(y){var W,c=y.parentNode;if(c&&c.nodeType!=11)if(y.removeNode)y.removeNode(!1);else{for(;W=y.firstChild;)c.insertBefore(W,y);_.to(y)}};
_.pd=function(y){return y.children!=void 0?y.children:Array.prototype.filter.call(y.childNodes,function(W){return W.nodeType==1})};
_.tQ5=function(y){return y.nextElementSibling!==void 0?y.nextElementSibling:_.uMJ(y.nextSibling,!0)};
_.uMJ=function(y,W){for(;y&&y.nodeType!=1;)y=W?y.nextSibling:y.previousSibling;return y};
_.Hn=function(y){return _.q1(y)&&y.nodeType==1};
_.Cg=function(y,W){if(!y||!W)return!1;if(y.contains&&W.nodeType==1)return y==W||y.contains(W);if(typeof y.compareDocumentPosition!="undefined")return y==W||!!(y.compareDocumentPosition(W)&16);for(;W&&y!=W;)W=W.parentNode;return W==y};
bfE=function(y,W){if(y==W)return 0;if(y.compareDocumentPosition)return y.compareDocumentPosition(W)&2?1:-1;if("sourceIndex"in y||y.parentNode&&"sourceIndex"in y.parentNode){var c=y.nodeType==1,Z=W.nodeType==1;if(c&&Z)return y.sourceIndex-W.sourceIndex;var G=y.parentNode,D=W.parentNode;return G==D?nXV(y,W):!c&&_.Cg(G,W)?-1*XXm(y,W):!Z&&_.Cg(D,y)?XXm(W,y):(c?y.sourceIndex:G.sourceIndex)-(Z?W.sourceIndex:D.sourceIndex)}Z=_.Pu(y);c=Z.createRange();c.selectNode(y);c.collapse(!0);y=Z.createRange();y.selectNode(W);
y.collapse(!0);return c.compareBoundaryPoints(_.DH.Range.START_TO_END,y)};
XXm=function(y,W){var c=y.parentNode;if(c==W)return-1;for(;W.parentNode!=c;)W=W.parentNode;return nXV(W,y)};
nXV=function(y,W){for(;W=W.previousSibling;)if(W==y)return-1;return 1};
rnZ=function(y){var W,c=arguments.length;if(!c)return null;if(c==1)return arguments[0];var Z=[],G=Infinity;for(W=0;W<c;W++){for(var D=[],Y=arguments[W];Y;)D.unshift(Y),Y=Y.parentNode;Z.push(D);G=Math.min(G,D.length)}D=null;for(W=0;W<G;W++){Y=Z[0][W];for(var u=1;u<c;u++)if(Y!=Z[u][W])return D;D=Y}return D};
_.Pu=function(y){return y.nodeType==9?y:y.ownerDocument||y.document};
FfV=function(y){return y.contentDocument||y.contentWindow.document};
_.PM=function(y,W){if("textContent"in y)y.textContent=W;else if(y.nodeType==3)y.data=String(W);else if(y.firstChild&&y.firstChild.nodeType==3){for(;y.lastChild!=y.firstChild;)y.removeChild(y.lastChild);y.firstChild.data=String(W)}else _.l5(y),y.appendChild(_.Pu(y).createTextNode(String(W)))};
U9Q={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};$9T={IMG:" ",BR:"\n"};Pst=function(y){var W;y.tagName=="A"&&y.hasAttribute("href")||y.tagName=="INPUT"||y.tagName=="TEXTAREA"||y.tagName=="SELECT"||y.tagName=="BUTTON"?W=!y.disabled&&(!y.hasAttribute("tabindex")||KfE(y)):W=y.hasAttribute("tabindex")&&KfE(y);return W};
KfE=function(y){y=y.tabIndex;return typeof y==="number"&&y>=0&&y<32768};
gXV=function(y){var W=[];Of8(y,W,!0);y=W.join("");y=y.replace(/ \xAD /g," ").replace(/\xAD/g,"");y=y.replace(/\u200B/g,"");y=y.replace(/ +/g," ");y!=" "&&(y=y.replace(/^\s*/,""));return y};
R03=function(y){var W=[];Of8(y,W,!1);return W.join("")};
Of8=function(y,W,c){if(!(y.nodeName in U9Q))if(y.nodeType==3)c?W.push(String(y.nodeValue).replace(/(\r\n|\r|\n)/g,"")):W.push(y.nodeValue);else if(y.nodeName in $9T)W.push($9T[y.nodeName]);else for(y=y.firstChild;y;)Of8(y,W,c),y=y.nextSibling};
_.l3W=function(y,W,c){if(!W&&!c)return null;var Z=W?String(W).toUpperCase():null;return _.CP(y,function(G){return(!Z||G.nodeName==Z)&&(!c||typeof G.className==="string"&&_.Hy(G.className.split(/\s+/),c))},!0)};
_.CP=function(y,W,c){y&&!c&&(y=y.parentNode);for(c=0;y;){if(W(y))return y;y=y.parentNode;c++}return null};
Uf=function(y){this.JSC$7234_document_=y||_.DH.document||document};
EXm=function(y){return y.JSC$7234_document_};
_.f=Uf.prototype;_.f.getElement=function(y){return _.vF(this.JSC$7234_document_,y)};
_.f.$=Uf.prototype.getElement;_.f.getElementsByTagName=function(y,W){return(W||this.JSC$7234_document_).getElementsByTagName(String(y))};
_.f.getElementsByTagNameAndClass=function(y,W,c){return $_(this.JSC$7234_document_,y,W,c)};
_.f.$$=Uf.prototype.getElementsByTagNameAndClass;_.f.setProperties=GeW;_.f.JSC$7236_createDom=function(y,W,c){return oXm(this.JSC$7234_document_,arguments)};
_.f.createElement=function(y){return D9Z(this.JSC$7234_document_,y)};
_.f.createTextNode=function(y){return this.JSC$7234_document_.createTextNode(String(y))};
_.f.getWindow=function(){return this.JSC$7234_document_.defaultView};
var rQ=function(y){return _.f3Z(y.JSC$7234_document_)};
_.f=Uf.prototype;_.f.appendChild=function(y,W){y.appendChild(W)};
_.f.append=Y3V;_.f.canHaveChildren=R_;_.f.removeNode=_.to;_.f.getChildren=_.pd;_.f.contains=_.Cg;_.f=tS.prototype;_.f.getWidth=function(){return this.right-this.left};
_.f.getHeight=function(){return this.bottom-this.top};
_.f.clone=function(){return new tS(this.top,this.right,this.bottom,this.left)};
_.f.contains=function(y){return this&&y?y instanceof tS?y.left>=this.left&&y.right<=this.right&&y.top>=this.top&&y.bottom<=this.bottom:y.x>=this.left&&y.x<=this.right&&y.y>=this.top&&y.y<=this.bottom:!1};
_.f.expand=function(y,W,c,Z){_.q1(y)?(this.top-=y.top,this.right+=y.right,this.bottom+=y.bottom,this.left-=y.left):(this.top-=y,this.right+=Number(W),this.bottom+=Number(c),this.left-=Number(Z));return this};
_.f.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};
_.f.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};
_.f.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};
_.f.translate=function(y,W){y instanceof _.If?(this.left+=y.x,this.right+=y.x,this.top+=y.y,this.bottom+=y.y):(this.left+=y,this.right+=y,typeof W==="number"&&(this.top+=W,this.bottom+=W));return this};
_.f.scale=function(y,W){W=typeof W==="number"?W:y;this.left*=y;this.right*=y;this.top*=W;this.bottom*=W;return this};var nrI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(nrI,_.eD);nrI.prototype.getVersion=function(){return _.RE(this,2)};var tZt=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(tZt,_.eD);var DQt=function(y,W){return _.Ub(y,2,W)},ueI=function(y,W){return _.Ub(y,3,W)};
tZt.prototype.getModel=function(){return _.RE(this,4)};
var YRD=function(y,W){return _.Ub(y,4,W)},org=function(y,W){return _.Ub(y,5,W)},seH=function(y,W){return _.Ub(y,9,W)},fdO=function(y,W){return FY(y,10,W)},GYH=function(y,W){return _.GY(y,11,W)},zKO=function(y,W){return _.Ub(y,1,W)},mQE=function(y,W){return _.GY(y,7,W)};var coy="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var af=function(y,W,c,Z){y=y===void 0?window:y;W=W===void 0?null:W;c=c===void 0?new c5J:c;Z=Z===void 0?e9a():Z;a0Z.call(this);var G=this;this.global=y;this.debugChannel=W;this.performanceMonitor=c;this.onPageHide=Bsa(function(){return Jm(G.global,"pagehide")}).pipe(Bp(this.performanceMonitor,941));
this.onLoad=Bsa(function(){return Jm(G.global,"load")}).pipe(Bp(this.performanceMonitor,738),ds(1));
this.onResize=Bsa(function(){return Jm(G.global,"resize")}).pipe(Bp(this.performanceMonitor,741));
this.onMessage=Bsa(function(){return Jm(G.global,"message")}).pipe(Bp(this.performanceMonitor,740));
this.document=new rT(this.global,this);this.timeProvider=new qZ8(new jH5(this.intrinsicFunctionNamespace,this.performanceMonitor),new kiZ(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new MVm(new W68(this),new agW(this),new fd(this,new GfV(this)),new fd(this,new MDT(this)),new fd(this,new Xw(this)))};
_.R(af,a0Z);var zu=function(y){var W=y.global;return!!y.global.HTMLFencedFrameElement&&!!W.fence&&typeof W.fence.reportEvent==="function"};
_.f=af.prototype;_.f.reportFencedFrameEvent=function(y){zu(this)&&this.global.fence.reportEvent(y)};
_.f.getOnBackgrounded=function(){return this.onPageHide.pipe(Bp(this.performanceMonitor,942),Yy(this.queue),E$(function(){}))};
_.f.postMessage=function(y,W,c){c=c===void 0?[]:c;this.global.postMessage(y,W,c)};
_.f.getWidth=function(){return SNf(this.global)?this.global.width:0};
_.f.getHeight=function(){return SNf(this.global)?this.global.height:0};
_.f.isMobile=function(){return oQW()||DH8()};
var AS=function(y,W){try{var c=jef(W,y.global,y.isMobile());return{left:c.left,top:c.top,width:c.getWidth(),height:c.getHeight()}}catch(Z){return Hu}};
af.prototype.validate=function(){var y=this.beaconFactory.isSupported()||zu(this);return this.global&&this.timeProvider.available()&&y};
var EyF=function(y){return(y=bg1(y.global))?s$(y):null};
_.dJ.Object.defineProperties(af.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(y){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!SNf(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}}});_.Nf5=!_.G$&&!_.ztf();var YEw=function(y){return y};var s8g=function(y){return y.pipe(Qt(function(W){var c=W.endOfSessionReason;var Z;return((Z=W.viewable)==null?void 0:Z.extrapolateToNow().value)||c!=void 0}),ds(1),Lc())};var grI=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},RKD=function(y){var W=y.sequenceNumber.toString(10).padStart(2,"0");
W=""+y.startTime+W;y.sequenceNumber<99&&y.sequenceNumber++;return W};var oN1=DG(jL(function(y){return y.endOfSessionReason===void 0}),E$(function(y){return Object.assign({},y,{timestamps:KP(y)})}),Qt(function(y){var W=y.viewable;
y=y.timestamps;var c;return(c=W==null?void 0:W.extrapolateUsingTimestampMap(y).value)!=null?c:!1}),E$(function(y){var W=y.beaconFactory;
var c=y.timestampedExposureHistory;var Z=y.timeOnScreen;var G=y.binaryContext;y=y.timestamps;if(W===void 0||c===void 0||Z===void 0||G===void 0)return!1;if(Z.extrapolateUsingTimestampMap(y).value.every(function(D){return D>=0}))return!0;
c=c.map(function(D){return D.timestamp+":"+D.value}).join(",");
Z=ldO({bin:G,tos:Z},y);W.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Z+("&eh="+c)).sendNow();return!0}),jL(function(y){return!y}),Lc());var NLa=function(y){return{id:y.pingId,mcvt:y.maxConsecutiveViewTime,p:y.creativePosition,asp:y.adSpeedPosition,tm:y.totalMeasurementTime,tu:y.totalUnviewedTime,mtos:y.maxTimeOnScreen,tos:y.timeOnScreen,v:y.binaryVersion,bin:y.binaryContext,avms:y.measurementStrategy,bs:y.browserSize,mc:y.maximumExposure,"if":y.crossDomainIframeState,vu:y.delayedImpressionJsState,app:y.inApp,mse:y.mraidError,mtop:y.mraidSituation,itpl:y.injectedTemplateId,adk:y.adKey,exk:y.awbidKey,rs:y.requestSource,la:y.isLargeAd,
cr:y.isContentRecommendationAd,uach:y.userAgentClientHints,vs:y.viewState,r:y.reasonCode,pay:y.hasCpmavUrl,co:y.clientPingOrderCounter,rst:y.adRenderStartTime,rpt:y.adRenderPeriodTime,isd:y.initialScrollDepth,lsd:y.loadedScrollDepth,context:y.errorContext,msg:y.errorMessage,stack:y.errorStack,name:y.errorName,ec:y.hasElementChanged,sfr:y.strategyFailureReasons,met:y.creativeSearchResult,wmsd:y.webMeasurementStartDiagnostic,pv:y.pageVisible,epv:y.eosPageVisible,pbe:y.inStatefulBeaconExperiment,fle:y.inFetchLaterBeaconExperiment,
vae:y.inViewableAttributionExperiment,spb:y.supportsPendingBeacon,sfl:y.supportsFetchLater,ffslot:y.isFencedFrameSlotTurtlex,reach:y.sharedStorageReachMode,io2:y.v2VisibilityBitVector,rxdbg:y.rxDebugger,omida:y.omidAppId,omidp:y.omidPartner,omidpv:y.omidPartnerVersion,omidor:y.omidOcclusionReasons,omidv:y.omidVersion,omids:y.omidSessionType,omidam:y.omidAccessMode,omidct:y.omidCreativeType,omidia:y.omidInApp,omiddc:y.omidDeviceCategory,omidlat:y.omidLastActivity,omiddit:y.omidDeviceIdleTime,qid:y.errorEscapedQueryId}};var mnh=function(y){var W=[];return y.pipe(E$(function(c){var Z=c.beaconFactory,G=c.fetchBeaconFactory,D=c.timeOnScreen,Y=c.timeOnScreenUrlPrefixes,u=c.payloadMapper,t=c.timeOnScreenPingId,b=c.timeOnScreenReason,r=c.urlSerializer,F=c.viewable,K=c.hasImpressionFired,l=c.inStatefulBeaconExperiment,N=c.supportsPendingBeacon,P=c.supportsFetchLater,V=c.turtlexReportEventData;if(!c.geometryMeasurable||!K||c.maxTimeOnScreen===void 0||D===void 0||Y===void 0||u===void 0||t===void 0||r===void 0||Z===void 0)return!1;
if(c.isTurtlex){if(b===void 0)return!1;Y=c.reportFencedFrameEvent;if(!Y)return!1;Y({eventType:"active-view-time-on-screen",eventData:V!=null?V:"",destination:["buyer"]});return!0}if(!(l||P||b))return!1;V=KP(c);var Q;F=(Q=F==null?void 0:F.extrapolateUsingTimestampMap(V).value)!=null?Q:!1;Q=r(Object.assign({},c,{pingId:t,viewState:F?4:3,reasonCode:b!=null?b:"u",payloadMapper:u,urlPrefixes:Y}),V);if(l){for(;W.length>Y.length;)c=void 0,(c=W.shift())==null||c.deactivate();Q.forEach(function(cy,M){M>=W.length?
W.push(Z.makeBeacon(cy)):W[M].url=cy});
return N&&G&&b!==void 0?(Q.forEach(function(cy){G.makeBeacon(cy).sendNow()}),!0):b!==void 0}if(N&&G&&b!==void 0)return Q.forEach(function(cy){G.makeBeacon(cy).sendNow()}),!0;
if(P&&G){for(;W.length>Y.length;)N=void 0,(N=W.shift())==null||N.deactivate();var S=r(Object.assign({},c,{pingId:t,viewState:F?4:3,reasonCode:b!=null?b:"u",payloadMapper:u,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),V)[0];Q.forEach(function(cy,M){M>=W.length?W.push(Z.makeBeacon(S,{endOfSession:!0})):W[M].url=S});
return b!==void 0?(Q.forEach(function(cy){G.makeBeacon(cy).sendNow()}),!0):b!==void 0}return b!==void 0?(Q.forEach(function(cy){Z.makeBeacon(cy).sendNow()}),!0):!1}),jL(function(c){return!c}),Lc())};var ulI=DG(Qt(function(y){return y.immediateUrlPrefixes!==void 0&&y.payloadMapper!==void 0&&y.urlSerializer!==void 0&&y.inferredPingId!==void 0&&y.beaconFactory!==void 0}),Qt(function(y){return Aoa(y)!==null}),CCt(function(y){return y.activeViewUnmeasurableEvent},function(y){return y.emit}),E$(function(y){if(y.isTurtlex){var W=y.reportFencedFrameEvent;
if(W){var c;W({eventType:"active-view-unmeasurable",eventData:(c=y.turtlexReportEventData)!=null?c:"",destination:["buyer"]})}}else{c=void 0;var Z=Aoa(y);if(Z==="x"){var G,D=(G=y.geometricMeasurementErrors)!=null?G:y.contextValidationErrors;D&&(W=D.stack,c=D.message)}y.urlSerializer(Object.assign({},y,{urlPrefixes:y.immediateUrlPrefixes,payloadMapper:y.payloadMapper,pingId:y.inferredPingId,viewState:2,reasonCode:Z,errorMessage:c,errorStack:W}),KP(y)).forEach(function(Y){y.beaconFactory.makeBeacon(Y).sendNow()})}}),
ds(1),Lc());var hKg=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var fLt=DG(Qt(function(y){return y.payloadMapper!==void 0&&y.immediateUrlPrefixes!==void 0&&y.urlSerializer!==void 0&&y.inferredPingId!==void 0&&y.beaconFactory!==void 0}),E$(function(y){return Object.assign({},y,{timestamps:KP(y)})}),Qt(function(y){var W=y.viewable;
var c=y.hasImpressionFired;y=y.timestamps;var Z;return!!c&&((Z=W==null?void 0:W.extrapolateUsingTimestampMap(y).value)!=null?Z:!1)}),CCt(function(y){return y.activeViewViewableEvent},function(y){return y.emit}),E$(function(y){var W=y.beaconFactory,c=y.turtlexReportEventData;
if(y.isTurtlex){var Z=y.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-viewable",eventData:c!=null?c:"",destination:["buyer"]});return!0}c=y.urlSerializer(Object.assign({},y,{urlPrefixes:y.immediateUrlPrefixes,payloadMapper:y.payloadMapper,pingId:y.inferredPingId,viewState:4,reasonCode:"v"}),y.timestamps);(Z=y.cpmavUrls)&&Z.length>0&&y.viewUrlSerializer&&y.viewUrlSerializer(Z,y).forEach(function(G){W.makeBeacon(G).sendNow()});
(Z=y.viewableRelayUrls)&&Z.length>0&&y.viewUrlSerializer&&y.viewUrlSerializer(Z,y).forEach(function(G){W.makeBeacon(G).sendNow()});
c.forEach(function(G){W.makeBeacon(G,{attributionEnabled:y.isViewableAttributionEnabled}).sendNow()});
return!0}),jL(function(y){return!y}),Lc());var NVH=E$(function(y){return[y.value.topWindowViewportExternalGeometry.width,y.value.topWindowViewportExternalGeometry.height]});var hS=function(y,W){this.callback=y;this.options=W;this.intersectionObserverV2=this.intersectionObserverV1=null},mPF=function(y,W){W?y.intersectionObserverV2||(W=Object.assign({},y.options,{delay:100,
trackVisibility:!0}),y.intersectionObserverV2=new IntersectionObserver(y.callback,W)):y.intersectionObserverV1||(y.intersectionObserverV1=new IntersectionObserver(y.callback,y.options))},I32=function(y,W){y=W?y.intersectionObserverV2:y.intersectionObserverV1;
if(!y)throw new x3i;return y};
hS.prototype.observe=function(y,W){I32(this,y).observe(W)};
hS.prototype.unobserve=function(y,W){I32(this,y).unobserve(W)};
hS.prototype.disconnect=function(y){I32(this,y).disconnect()};
hS.prototype.takeRecords=function(y){return I32(this,y).takeRecords()};var kYw={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Hu,topWindowViewportExternalGeometry:Hu,measurementRequests:new D_,elementGeometrySourceName:"ns",elementGeometry:Hu,intersectionGeometry:Hu,viewportLocalAppOffset:{x:0,y:0}};var JP=function(y,W,c,Z){this.left=y;this.top=W;this.width=c;this.height=Z};
_.f=JP.prototype;_.f.clone=function(){return new JP(this.left,this.top,this.width,this.height)};
_.f.boundingRect=function(y){var W=Math.max(this.left+this.width,y.left+y.width),c=Math.max(this.top+this.height,y.top+y.height);this.left=Math.min(this.left,y.left);this.top=Math.min(this.top,y.top);this.width=W-this.left;this.height=c-this.top};
_.f.contains=function(y){return y instanceof _.If?y.x>=this.left&&y.x<=this.left+this.width&&y.y>=this.top&&y.y<=this.top+this.height:this.left<=y.left&&this.left+this.width>=y.left+y.width&&this.top<=y.top&&this.top+this.height>=y.top+y.height};
_.f.distance=function(y){var W=y.x<this.left?this.left-y.x:Math.max(y.x-(this.left+this.width),0);y=y.y<this.top?this.top-y.y:Math.max(y.y-(this.top+this.height),0);return Math.sqrt(W*W+y*y)};
_.f.getSize=function(){return new _.nP(this.width,this.height)};
_.f.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};
_.f.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};
_.f.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};
_.f.translate=function(y,W){y instanceof _.If?(this.left+=y.x,this.top+=y.y):(this.left+=y,typeof W==="number"&&(this.top+=W));return this};
_.f.scale=function(y,W){W=typeof W==="number"?W:y;this.left*=y;this.width*=y;this.top*=W;this.height*=W;return this};var PFm,Qy,wka,Cd,Q$W,CFJ,AnT,g_h,h0J,HfE;_.Vy=function(y,W,c){if(typeof W==="string")(W=_.pX2(y,W))&&(y.style[W]=c);else for(var Z in W){c=y;var G=W[Z],D=_.pX2(c,Z);D&&(c.style[D]=G)}};
PFm={};_.pX2=function(y,W){var c=PFm[W];if(!c){var Z=_.uM(W);c=Z;y.style[Z]===void 0&&(Z=(_.oE?"Webkit":_.fi?"Moz":null)+pJi(Z),y.style[Z]!==void 0&&(c=Z));PFm[W]=c}return c};
_.ns=function(y,W){var c=_.Pu(y);return c.defaultView&&c.defaultView.getComputedStyle&&(y=c.defaultView.getComputedStyle(y,null))?y[W]||y.getPropertyValue(W)||"":""};
_.V4=function(y,W){return _.ns(y,W)||(y.currentStyle?y.currentStyle[W]:null)||y.style&&y.style[W]};
_.JnQ=function(y){return _.V4(y,"position")};
Qy=function(y,W,c){if(W instanceof _.If){var Z=W.x;W=W.y}else Z=W,W=c;y.style.left=Cd(Z,!1);y.style.top=Cd(W,!1)};
wka=function(y){try{return y.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}};
_.Vx=function(y){var W=_.Pu(y),c=new _.If(0,0);if(y==(W?_.Pu(W):document).documentElement)return c;y=wka(y);W=rQ(FF(W));c.x=y.left+W.x;c.y=y.top+W.y;return c};
_.VQJ=function(y,W,c){if(W instanceof _.nP)c=W.height,W=W.width;else if(c==void 0)throw Error("sa");y.style.width=Cd(W,!0);y.style.height=Cd(c,!0)};
Cd=function(y,W){typeof y=="number"&&(y=(W?Math.round(y):y)+"px");return y};
Q$W=function(y){return CFJ(y)};
CFJ=function(y){var W=AnT;if(_.V4(y,"display")!="none")return W(y);var c=y.style,Z=c.display,G=c.visibility,D=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";y=W(y);c.display=Z;c.position=D;c.visibility=G;return y};
AnT=function(y){var W=y.offsetWidth,c=y.offsetHeight,Z=_.oE&&!W&&!c;return(W===void 0||Z)&&y.getBoundingClientRect?(y=wka(y),new _.nP(y.right-y.left,y.bottom-y.top)):new _.nP(W,c)};
g_h=function(y){var W=_.Vx(y);y=CFJ(y);return new JP(W.x,W.y,y.width,y.height)};
h0J=function(y,W){y=y.style;"opacity"in y?y.opacity=W:"MozOpacity"in y?y.MozOpacity=W:"filter"in y&&(y.filter=W===""?"":"alpha(opacity="+Number(W)*100+")")};
_.Lg=function(y,W){y.style.display=W?"":"none"};
_.BfW=function(y){return"rtl"==_.V4(y,"direction")};
HfE=function(y){var W=_.ns(y,"marginLeft"),c=_.ns(y,"marginRight"),Z=_.ns(y,"marginTop");y=_.ns(y,"marginBottom");return new tS(parseFloat(Z),parseFloat(c),parseFloat(y),parseFloat(W))};
_.LfE=function(y){var W=_.ns(y,"borderLeftWidth"),c=_.ns(y,"borderRightWidth"),Z=_.ns(y,"borderTopWidth");y=_.ns(y,"borderBottomWidth");return new tS(parseFloat(Z),parseFloat(c),parseFloat(y),parseFloat(W))};var vXT=function(y){return y.intersectionGeometry.width*y.intersectionGeometry.height/(y.elementGeometry.width*y.elementGeometry.height)},bLE=LP(DG(E$(function(y){var W;
return(W=y.exposureOverride)!=null?W:vXT(y)}),E$(function(y){return isFinite(y)?y:0}))),gkt=LP(DG(E$(function(y){var W;
return(W=y.exposureOverride)!=null?W:vXT(y)}),E$(function(y){return isFinite(y)?y:-1})));var AP=function(y,W){this.a=y;this.b=W;if(y.clock.timeline!==W.clock.timeline)throw Error();};
AP.prototype.equivalentTo=function(y){return y instanceof AP?this.a.equivalentTo(y.a)&&this.b.equivalentTo(y.b):!1};
AP.prototype.extrapolateToTime=function(y){var W=this.a.extrapolateToTime(y).value,c=this.b.extrapolateToTime(y).value;return{timestamp:y,value:[W,c]}};
_.dJ.Object.defineProperties(AP.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 y=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),W=this.a.lastMeasurement.timestamp.equals(y)?this.a.lastMeasurement.value:this.a.extrapolateToTime(y).value,c=this.b.lastMeasurement.timestamp.equals(y)?this.b.lastMeasurement.value:this.b.extrapolateToTime(y).value;return{timestamp:y,value:[W,c]}}}});var hP=function(y,W){this.input=y;this.mapFunction=W;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
hP.prototype.equivalentTo=function(y){return y instanceof hP?this.input.equivalentTo(y.input)&&this.mapFunction===y.mapFunction:!1};
hP.prototype.extrapolateToTime=function(y){y=this.input.extrapolateToTime(y);return{timestamp:y.timestamp,value:this.mapFunction(y.value)}};
_.dJ.Object.defineProperties(hP.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var BM=function(){};
BM.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
BM.prototype.extrapolateUsingTimestampMap=function(y){var W=this.clock.timeline,c,Z=(c=y.get(W))!=null?c:this.clock.now();y.set(W,Z);return this.extrapolateToTime(Z)};
BM.prototype.map=function(y){return new d98(this,y)};
BM.prototype.joinWith=function(y){return new S30(this,y)};
var S30=function(){AP.apply(this,arguments);this.map=BM.prototype.map;this.joinWith=BM.prototype.joinWith;this.extrapolateToNow=BM.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=BM.prototype.extrapolateUsingTimestampMap};
_.R(S30,AP);var d98=function(){hP.apply(this,arguments);this.map=BM.prototype.map;this.joinWith=BM.prototype.joinWith;this.extrapolateToNow=BM.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=BM.prototype.extrapolateUsingTimestampMap};
_.R(d98,hP);var dQ=function(y,W){this.lastMeasurement=W;this.extrapolateToNow=BM.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=BM.prototype.extrapolateUsingTimestampMap;this.map=BM.prototype.map;this.joinWith=BM.prototype.joinWith;this.clock=y};
dQ.prototype.equivalentTo=function(y){return y.active};
dQ.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.dJ.Object.defineProperties(dQ.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var Eka=E$(function(y){if(y.value.viewportGeometrySourceName==="omid"){if(y.value.elementGeometrySourceName==="nio")return"omio";if(y.value.elementGeometrySourceName==="geo")return"omgeo"}return y.value.elementGeometrySourceName==="geo"||y.value.elementGeometrySourceName==="nio"?y.value.viewportGeometrySourceName:y.value.elementGeometrySourceName});var ttD=DG(Qt(function(y){return!isNaN(y)}),ws(function(y,W){return isNaN(y)?W:Math.min(y,W)},NaN),Sq());var rlF=LP(DG(E$(function(y){return y.intersectionGeometry.width*y.intersectionGeometry.height/(y.exposedViewportLocalGeometry.width*y.exposedViewportLocalGeometry.height)}),E$(function(y){return isFinite(y)?Math.min(1,y):0})));var lSH=DG(LP(E$(function(y){y=y.exposureOverride?y.elementGeometry.width*y.elementGeometry.height*y.exposureOverride/(y.topWindowViewportExternalGeometry.width*y.topWindowViewportExternalGeometry.height):y.intersectionGeometry.width*y.intersectionGeometry.height/(y.topWindowViewportExternalGeometry.width*y.topWindowViewportExternalGeometry.height);return isFinite(y)?y:0})));var P7D=function(y,W){var c=this;this.timeProvider=y;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=W.pipe(Sq()).subscribe(function(Z){Vt1(c);c.measurementRequestObserver=Z})},C7t=function(y,W){Vt1(y);
y.lastMeasurementRequest=y.timeProvider.setTimeout(function(){var c;return void((c=y.measurementRequestObserver)==null?void 0:c.next())},W)},Vt1=function(y){y.lastMeasurementRequest!==null&&y.timeProvider.clearTimeout(y.lastMeasurementRequest);
y.lastMeasurementRequest=null};
P7D.prototype.dispose=function(){Vt1(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var TfV=function(){};var cWw=function(y,W){this.context=y;this.strategies=W};
_.R(cWw,TfV);cWw.prototype.buildGeometrySource=function(y,W){var c=this.strategies.map(function(D){return D.buildGeometrySource(y,W)}),Z=HLD(c.map(function(D){return D.geometrySource})),G=Z.capturedErrors.pipe(a3Z());
return{geometrySource:Z.chain.pipe(Yy(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:G,strategyErrors:Z.capturedErrors}].concat(_.No(c.map(function(D){return D.additionalOutputs}))))}};
var a3Z=function(){return ws(function(y,W){W instanceof gQ?y.push(W.measurementStrategyFailureReason):y.push(-1);return y},[])};var GwI=function(y,W){this.context=y;this.poller=W};
_.R(GwI,TfV);GwI.prototype.buildGeometrySource=function(y,W){var c=LTO(dPf(this.context,this.poller),j2y(this.context,W.requestSource));return{geometrySource:BVI(y.measurableCreative.pipe(c),W.inApp),additionalOutputs:{}}};var Zjh=function(y,W,c){c=c===void 0?fSH(y,W):c;this.context=y;this.intersectionObserverStrategy=c};
_.R(Zjh,TfV);Zjh.prototype.buildGeometrySource=function(y,W){var c=this.intersectionObserverStrategy(W.useV2);return{geometrySource:BVI(y.measurableCreative.pipe(c,okF(this.context)),W.inApp),additionalOutputs:{}}};var x9T=function(y,W,c){var Z=Z===void 0?Symbol():Z;this.element=y;this.immediateUrls=W;this.timeOnScreenUrls=c;this.symbol=Z};var pat=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),MtH=Object.freeze([1,.75,pat.exposureThreshold,pat.largeAdExposureThreshold,0]);var UcH=function(y){var W=W===void 0?36E5:W;var c=c===void 0?!0:c;this.creatives=new D_;this.elementsToUnregister=new D_;this.elementMap=new Map;var Z=new af(window,null);Z.beaconFactory=new fd(Z,new Xw(Z));WCH(Z,this.creatives,this.elementsToUnregister,y,W,c).subscribe()},K1I=function(y,W,c,Z){if(!y.elementMap.has(W)){var G=new Qx(W);
y.elementMap.set(W,G);y.creatives.next(new x9T(G,c,Z))}},$cf=function(y,W){y.elementsToUnregister.next(W);
var c=y.elementMap.get(W);c!==void 0&&(c.release(),y.elementMap.delete(W))};var o0H=function(y){var W=y.url;y=y.uaDataValues;this.JSC$7345_url_=W;this.uaDataValues_=y;this.suid_=(new Date).getTime()-17040672E5},Dif=function(y){y=y.uaDataValues_;
if(!y)return"";var W=iG("uap",y.platform)+iG("uapv",y.platformVersion)+iG("uafv",y.uaFullVersion)+iG("uaa",y.architecture)+iG("uam",y.model)+iG("uab",y.bitness);y.fullVersionList&&(W+="&uafvl="+encodeURIComponent(y.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+";"+encodeURIComponent(c.version)}).join("|")));
y.wow64!=null&&(W+="&uaw="+Number(y.wow64));return W.slice(1)};var ifV=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ifV,_.eD);ifV.prototype.getId=function(){return _.RE(this,1)};var HM=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(HM,_.eD);HM.prototype.getSeconds=function(){return O2(this,1)};
HM.prototype.setSeconds=function(y){return _.LQ(this,1,oH(y),"0")};_.AD=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(_.AD,_.eD);_.AD.prototype.getSeconds=function(){return O2(this,1)};
_.AD.prototype.setSeconds=function(y){return _.LQ(this,1,oH(y),"0")};
_.MQZ=function(y){var W=Number(E2(y,1));y=_.jZ(y,2);return new Date(W*1E3+y/1E6)};var Ld=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Ld,_.eD);Ld.prototype.getUrl=function(){return _.RE(this,1)};
Ld.prototype.setUrl=function(y){return _.a0(this,1,y)};
Ld.prototype.getHeight=function(){return _.jZ(this,2)};
Ld.prototype.getWidth=function(){return _.jZ(this,3)};var vM=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(vM,_.eD);vM.prototype.getAspectRatio=function(){return g5(this,1)};
vM.prototype.setAspectRatio=function(y){return _.LQ(this,1,_.SV(y),0)};
vM.prototype.getDuration=function(){return _.il(this,HM,2)};var e0V=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(e0V,_.eD);var wXE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(wXE,_.eD);var q3J=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(q3J,_.eD);var keE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(keE,_.eD);var jQi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(jQi,_.eD);var ym3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ym3,_.eD);var WpE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(WpE,_.eD);var cmi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(cmi,_.eD);var Zc2=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Zc2,_.eD);var dT=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(dT,_.eD);var S2=[2,4,5,6,7];var Gt3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Gt3,_.eD);var U2=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(U2,_.eD);_.f=U2.prototype;_.f.getId=function(){return _.il(this,ifV,1)};
_.f.getName=function(){return _.RE(this,2)};
_.f.setDescription=function(y){return _.a0(this,3,y)};
_.f.getUrl=function(){return _.RE(this,8)};
_.f.setUrl=function(y){return _.a0(this,8,y)};
var Tu=function(y){return _.wQ(y,Ld,10,_.ky())};
U2.prototype.getOwner=function(y){var W=_.Qd(this,40,_.t9,3,!0);aHI(W,y);return W[y]};
U2.prototype.getVersion=function(){return O2(this,45)};
var a_=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(a_,_.eD);_.fGQ=[0,T8h,xka];_.oiE=[0,T8h,xka];var DoW=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(DoW,_.eD);var x_=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(x_,_.eD);x_.prototype.getStatus=function(){return _.lm(this,1)};
x_.prototype.removeItem=function(y){return mkh(this,2,y)};var zl2=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(zl2,_.eD);zl2.prototype.getName=function(){return _.RE(this,8)};var i5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(i5,_.eD);i5.prototype.getCommand=function(){return _.lm(this,1)};
i5.prototype.getSource=function(){return _.il(this,zl2,2)};
i5.prototype.setVisible=function(y){return _.gz(this,5,y)};
i5.prototype.removeItem=function(y){return mkh(this,7,y)};var Y$V=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Y$V,_.eD);Y$V.prototype.getCommand=function(){return _.lm(this,1)};
Y$V.prototype.removeItem=function(y){return mkh(this,4,y)};
var moV=_.ze(Y$V);var ML=function(y,W,c){c=c===void 0?Error():c;var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=y;W+=":";c instanceof Error?(this.message=W+c.message,this.stack=c.stack||""):(this.message=W+String(c),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(ML,Error);_.UR=function(){this.JSC$7403_disposed_=this.JSC$7403_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.UR.prototype.JSC$7403_disposed_=!1;_.UR.prototype.isDisposed=function(){return this.JSC$7403_disposed_};
_.UR.prototype.dispose=function(){this.JSC$7403_disposed_||(this.JSC$7403_disposed_=!0,this.disposeInternal())};
_.UR.prototype[Symbol.dispose]=function(){this.dispose()};
_.zY=function(y,W){y.addOnDisposeCallback(_.Fr(_.Mg,W))};
_.UR.prototype.addOnDisposeCallback=function(y,W){this.JSC$7403_disposed_?W!==void 0?y.call(W):y():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),W&&(y=y.bind(W)),this.onDisposeCallbacks_.push(y))};
_.UR.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var e2=function(y){_.UR.call(this);this.wpc=y};
_.R(e2,_.UR);e2.prototype.yJE=function(){return this.wpc.f()};
e2.prototype.hiv=function(y){return this.wpc.c(y)};
e2.prototype.sD=function(y){return this.wpc.m(Unh(y))};
e2.prototype.w3=function(y){return this.wpc.mws(Unh(y))};
var eL=function(y){_.UR.call(this);var W=this;this.pk=y;this.qih="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.cCq=void 0;this.ke4=this.pk.p;this.wNX=this.d0U.bind(this);this.addOnDisposeCallback(function(){return void sQE(W)})};
_.R(eL,_.UR);var u2J=function(y){var W;return _.m(function(c){if(c.nextAddress==1){if(!y.pk.wpc)throw new ML(30,"NWA");return y.sB4?c.return(y.sB4):_.n(c,y.pk.wpc(),2)}W=c.yieldResult;y.sB4=new e2(W);return c.return(y.sB4)})};
eL.prototype.snapshot=function(y){return this.pk.s(Object.assign({},y.mK&&{c:y.mK},y.aE3&&{s:y.aE3},y.rDJ!==void 0&&{p:y.rDJ}))};
eL.prototype.d0U=function(y){this.pk.e(y)};
eL.prototype.wen=function(y,W){return this.pk.c(y,W,!1)};
var sQE=function(y){y.cCq!==void 0&&(y.qih.forEach(function(W){var c;(c=y.cCq)==null||c.removeEventListener(W,y.wNX)}),y.cCq=void 0)};
eL.prototype.o63=function(){return this.pk.l()};var tq8,wT=function(){_.UR.apply(this,arguments);this.w5q=1;this[tq8]=this.dispose};
_.R(wT,_.UR);wT.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.w5q++;return this};
wT.prototype.dispose=function(){--this.w5q||_.UR.prototype.dispose.call(this)};
tq8=Symbol.dispose;var dnE=function(y){this.jnR=y;y.addNewEventMetric("/client_streamz/bg/frs",_.Zd("mk"))};
dnE.prototype.record=function(y,W){this.jnR.record("/client_streamz/bg/frs",y,W)};
var xnw=function(y){this.bXk=y;y.addNewEventMetric("/client_streamz/bg/wrl",_.Zd("mn"),ck("ac"),ck("sc"),_.Zd("rk"),_.Zd("mk"))};
xnw.prototype.record=function(y,W,c,Z,G,D){this.bXk.record("/client_streamz/bg/wrl",y,W,c,Z,G,D)};
var TjI=function(y){this.ff6=y;y.addNewCounter("/client_streamz/bg/ec",_.Zd("en"),_.Zd("mk"))};
TjI.prototype.increment=function(y,W){this.ff6.JSC$7652_incrementCounter("/client_streamz/bg/ec",y,W)};
var aLE=function(y){this.eF6=y;y.addNewEventMetric("/client_streamz/bg/el",_.Zd("en"),_.Zd("mk"))};
aLE.prototype.record=function(y,W,c){this.eF6.record("/client_streamz/bg/el",y,W,c)};
var SED=function(y){this.lfX=y;y.addNewCounter("/client_streamz/bg/cec",ck("ec"),_.Zd("mk"))};
SED.prototype.increment=function(y,W){this.lfX.JSC$7652_incrementCounter("/client_streamz/bg/cec",y,W)};
var ijI=function(y){this.oDp=y;y.addNewCounter("/client_streamz/bg/po/csc",ck("cs"),_.Zd("mk"))};
ijI.prototype.increment=function(y,W){this.oDp.JSC$7652_incrementCounter("/client_streamz/bg/po/csc",y,W)};
var Myf=function(y){this.sn3=y;y.addNewCounter("/client_streamz/bg/po/ctav",_.Zd("av"),_.Zd("mk"))};
Myf.prototype.increment=function(y,W){this.sn3.JSC$7652_incrementCounter("/client_streamz/bg/po/ctav",y,W)};
var eTh=function(y){this.kmp=y;y.addNewCounter("/client_streamz/bg/po/cwsc",_.Zd("su"),_.Zd("mk"))};
eTh.prototype.increment=function(y,W){this.kmp.JSC$7652_incrementCounter("/client_streamz/bg/po/cwsc",y,W)};var ZRf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ZRf,_.eD);var c6y=function(y,W){return _.H3(y,3,W,uma)};var ni8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ni8,_.eD);var Xpm=[1,2,3];var bcQ=[0,Xpm,_.qjh,i_O,w1E];var rmE=[0,_.vN,[0,v4f,_.hf]];var Fpm=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Fpm,_.eD);var Uo3=[1,2,3];var $o8=[0,Uo3,apf,dka,_.d5,rmE];var Kp5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Kp5,_.eD);var Oci=[0,_.vN,bcQ,$o8];var gi8=[0,[1,2,3],_.d5,[0,_.Li,-1,_.HN],_.d5,[0,_.Li,-1,_.BN,_.HN],_.d5,[0,_.Li]];var Rl5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Rl5,_.eD);Rl5.prototype.JSC$7472_serializeBinary=R01([0,_.Li,gi8,kD1,_.vN,Oci,MTf,eqH]);var lGZ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(lGZ,_.eD);var IGZ=function(y){var W=new Rl5;W=_.Ub(W,1,y.JSC$7588_metricName);var c=EiJ(y);W=_.H3(W,3,c,_.sB);c=[];for(var Z=[],G=_.z(y.cellMap.keys()),D=G.next();!D.done;D=G.next())Z.push(D.value.split(","));for(G=0;G<Z.length;G++){D=Z[G];for(var Y=y.cellType,u=y.getCells(D)||[],t=[],b=0;b<u.length;b++){var r=u[b],F=r&&r.cellValue;r=new Fpm;switch(Y){case 3:F=Number(F);Number.isFinite(F)&&os(r,1,Uo3,oH(F));break;case 2:os(r,2,Uo3,_.SV(Number(F)))}t.push(r)}Y=t;for(u=0;u<Y.length;u++){t=Y[u];b=new Kp5;t=_.uF(b,
2,t);b=[];r=Nsi(y);for(F=0;F<r.length;F++){var K=r[F],l=D[F],N=new ni8;switch(K){case 3:os(N,1,Xpm,u9(String(l)));break;case 2:K=Number(l);Number.isFinite(K)&&os(N,2,Xpm,_.jD(K));break;case 1:os(N,3,Xpm,YZH(l==="true"))}b.push(N)}FY(t,1,b);c.push(t)}}FY(W,4,c);return W};var ppQ=function(y){if(!y)return"";if(/^about:(?:blank|srcdoc)$/.test(y))return window.origin||"";y.indexOf("blob:")===0&&(y=y.substring(5));y=y.split("#")[0].split("?")[0];y=y.toLowerCase();y.indexOf("//")==0&&(y=window.location.protocol+y);/^[\w\-]*:\/\//.test(y)||(y=window.location.href);var W=y.substring(y.indexOf("://")+3),c=W.indexOf("/");c!=-1&&(W=W.substring(0,c));c=y.substring(0,y.indexOf("://"));if(!c)throw Error("ua`"+y);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&&c!=="moz-extension"&&
c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("va`"+c);y="";var Z=W.indexOf(":");if(Z!=-1){var G=W.substring(Z+1);W=W.substring(0,Z);if(c==="http"&&G!=="80"||c==="https"&&G!=="443")y=":"+G}return c+"://"+W+y};var JmE=function(y,W,c){var Z=String(_.DH.location.href);return Z&&y&&W?[W,PRi(ppQ(Z),y,c||null)].join(" "):null},PRi=function(y,W,c){var Z=[],G=[];
if((Array.isArray(c)?2:1)==1)return G=[W,y],_.Qa(Z,function(u){G.push(u)}),VqE(G.join(" "));
var D=[],Y=[];_.Qa(c,function(u){Y.push(u.key);D.push(u.value)});
c=Math.floor((new Date).getTime()/1E3);G=D.length==0?[c,W,y]:[D.join(":"),c,W,y];_.Qa(Z,function(u){G.push(u)});
y=VqE(G.join(" "));y=[c,y];Y.length==0||y.push(Y.join(""));return y.join("_")},VqE=function(y){var W=Nja();
W.update(y);return W.digestString().toLowerCase()};var qL=function(y){this.JSC$7483_document_=y||{cookie:""}},CR5;
_.f=qL.prototype;_.f.isEnabled=function(){if(!_.DH.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};
_.f.set=function(y,W,c){var Z=!1;if(typeof c==="object"){var G=c.sameSite;Z=c.secure||!1;var D=c.domain||void 0;var Y=c.path||void 0;var u=c.maxAge}if(/[;=\s]/.test(y))throw Error("wa`"+y);if(/[;\r\n]/.test(W))throw Error("xa`"+W);u===void 0&&(u=-1);c=D?";domain="+D:"";Y=Y?";path="+Y:"";Z=Z?";secure":"";u=u<0?"":u==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+u*1E3)).toUTCString();this.JSC$7483_document_.cookie=y+"="+W+c+Y+u+Z+(G!=null?";samesite="+G:"")};
_.f.get=function(y,W){for(var c=y+"=",Z=(this.JSC$7483_document_.cookie||"").split(";"),G=0,D;G<Z.length;G++){D=_.yb(Z[G]);if(D.lastIndexOf(c,0)==0)return D.slice(c.length);if(D==y)return""}return W};
_.f.remove=function(y,W,c){var Z=this.containsKey(y);this.set(y,"",{maxAge:0,path:W,domain:c});return Z};
_.f.getKeys=function(){return CR5(this).keys};
_.f.getValues=function(){return CR5(this).values};
_.f.isEmpty=function(){return!this.JSC$7483_document_.cookie};
_.f.getCount=function(){return this.JSC$7483_document_.cookie?(this.JSC$7483_document_.cookie||"").split(";").length:0};
_.f.containsKey=function(y){return this.get(y)!==void 0};
_.f.containsValue=function(y){for(var W=CR5(this).values,c=0;c<W.length;c++)if(W[c]==y)return!0;return!1};
_.f.clear=function(){for(var y=CR5(this).keys,W=y.length-1;W>=0;W--)this.remove(y[W])};
CR5=function(y){y=(y.JSC$7483_document_.cookie||"").split(";");for(var W=[],c=[],Z,G,D=0;D<y.length;D++)G=_.yb(y[D]),Z=G.indexOf("="),Z==-1?(W.push(""),c.push(G)):(W.push(G.substring(0,Z)),c.push(G.substring(Z+1)));return{keys:W,values:c}};
_.DP=new qL(typeof document=="undefined"?null:document);var aYf=function(){var y=_.DH.__SAPISID||_.DH.__APISID||_.DH.__3PSAPISID||_.DH.__1PSAPISID||_.DH.__OVERRIDE_SID;if(y)return!0;typeof document!=="undefined"&&(y=new qL(document),y=y.get("SAPISID")||y.get("APISID")||y.get("__Secure-3PAPISID")||y.get("__Secure-1PAPISID"));return!!y},QQ5=function(y,W,c,Z){(y=_.DH[y])||typeof document==="undefined"||(y=(new qL(document)).get(W));
return y?JmE(y,c,Z):null},AxI=function(y){var W=ppQ(String(_.DH.location.href)),c=[];
if(aYf()){W=W.indexOf("https:")==0||W.indexOf("chrome-extension:")==0||W.indexOf("chrome-untrusted://new-tab-page")==0||W.indexOf("moz-extension:")==0;var Z=W?_.DH.__SAPISID:_.DH.__APISID;Z||typeof document==="undefined"||(Z=new qL(document),Z=Z.get(W?"SAPISID":"APISID")||Z.get("__Secure-3PAPISID"));(Z=Z?JmE(Z,W?"SAPISIDHASH":"APISIDHASH",y):null)&&c.push(Z);W&&((W=QQ5("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",y))&&c.push(W),(y=QQ5("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",y))&&c.push(y))}return c.length==
0?null:c.join(" ")};var Am8=function(){this.minSize=1024};
Am8.prototype.compress=function(y){var W,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:return W=new CompressionStream("gzip"),c=(new Response(W.readable)).arrayBuffer(),Z=W.writable.getWriter(),_.n(D,Z.write((new TextEncoder).encode(y)),2);case 2:return _.n(D,Z.close(),3);case 3:return G=Uint8Array,_.n(D,c,4);case 4:return D.return(new G(D.yieldResult))}})};
Am8.prototype.isSupported=function(y){return y<this.minSize?!1:typeof CompressionStream!=="undefined"};var hl5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(hl5,_.eD);var k_=function(y,W){this.intervalMs=y;this.callback=W;this.enabled=!1;this.nowFn=function(){return _.k3()};
this.lastTimeMs=this.nowFn()};
k_.prototype.setInterval=function(y){this.intervalMs=y;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
k_.prototype.start=function(){var y=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){y.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
k_.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
k_.prototype.tick=function(){var y=this;if(this.enabled){var W=Math.max(this.nowFn()-this.lastTimeMs,0);W<this.intervalMs*.8?this.timer=setTimeout(function(){y.tick()},this.intervalMs-W):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Bs8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Bs8,_.eD);var Hc8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Hc8,_.eD);var LpT=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(LpT,_.eD);LpT.prototype.getTransmissionType=function(){return _.lm(this,1)};var JW1=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(JW1,_.eD);JW1.prototype.getVersion=function(){return _.RE(this,2)};var jw=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(jw,_.eD);var P1f=function(y){FY(VyI,1,y)};
jw.prototype.getModel=function(){return _.RE(this,6)};
var vi2=_.ze(jw);var doi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(doi,_.eD);var IL1=["platform","platformVersion","architecture","model","uaFullVersion"],VyI=new jw,pIF=null;var S$m=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(S$m,_.eD);var Ts8=function(y){return _.MC(y,1,1)};var aG0=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y,4)};
_.R(aG0,_.eD);_.yh=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y,36)};
_.R(_.yh,_.eD);_.yh.prototype.getExperimentIds=function(){return _.il(this,hl5,16)};var xoQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y,19)};
_.R(xoQ,_.eD);xoQ.prototype.setLogSource=function(y){return _.MC(this,2,y)};
xoQ.prototype.setScheduler=function(y){return _.MC(this,10,y)};var MqE=function(y,W){this.isServiceWorkerScope=W=W===void 0?!1:W;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new xoQ;Number.isInteger(y)&&this.logRequest.setLogSource(y);W||(this.locale=document.documentElement.getAttribute("lang"));ic2(this,new S$m)};
MqE.prototype.setLogSource=function(y){this.logRequest.setLogSource(y);return this};
var ic2=function(y,W){_.uF(y.logRequest,1,W);_.lm(W,1)||Ts8(W);y.isServiceWorkerScope||(W=WP(y),_.RE(W,5)||_.Ub(W,5,y.locale));y.uach&&(W=WP(y),_.il(W,jw,9)||_.uF(W,9,y.uach))},elT=function(y,W){y.transmissionType=W},wp0=function(y){var W=W===void 0?IL1:W;
var c=y.isServiceWorkerScope?void 0:pP();c?C1y(c,W).then(function(Z){y.uach=vi2(Z!=null?Z:"[]");Z=WP(y);_.uF(Z,9,y.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},WP=function(y){y=_.il(y.logRequest,S$m,1);
var W=_.il(y,doi,11);W||(W=new doi,_.uF(y,11,W));return W};
MqE.prototype.build=function(y,W,c,Z,G,D){W=W===void 0?0:W;c=c===void 0?0:c;Z=Z===void 0?null:Z;G=G===void 0?0:G;D=D===void 0?0:D;if(!this.isServiceWorkerScope){var Y=WP(this);var u=new LpT;u=_.MC(u,1,this.transmissionType);u=_.GY(u,2,this.isFinal);c=_.pi(u,3,c>0?c:void 0);c=_.pi(c,4,G>0?G:void 0);c=_.pi(c,5,D>0?D:void 0);G=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=G[_.mQ]|0;c=Fm(c,D)?c:new c.constructor(IH(G,D));_.uF(Y,10,c)}Y=this.logRequest.clone();c=Date.now().toString();Y=_.e5(Y,
4,oH(c));y=y.slice();y=FY(Y,3,y);Z&&(Y=new Bs8,Z=_.pi(Y,13,Z),Y=new Hc8,Z=_.uF(Y,2,Z),Y=new aG0,Z=_.uF(Y,1,Z),Z=_.MC(Z,2,9),_.uF(y,18,Z));W&&_.tc(y,14,W);return y};fg.prototype.currBackoffCount_=0;fg.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
fg.prototype.getValue=function(){return this.currValue_};
var q$W=function(y){y.currBaseValue_=Math.min(y.maxValue_,y.currBaseValue_*y.backoffFactor_);y.currValue_=Math.min(y.maxValue_,y.currBaseValue_+(y.randomFactor_?Math.round(y.randomFactor_*(Math.random()-.5)*2*y.currBaseValue_):0));y.currBackoffCount_++};var Za2=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y,8)};
_.R(Za2,_.eD);var ktV=_.ze(Za2);var GOi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(GOi,_.eD);var cP;cP=new fHi;var Z9=function(y){_.UR.call(this);var W=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7561_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$7561_sendBeaconApiEnabled=!1;this.logSource=y.logSource;this.getAuthHeaderValue=
y.getAuthHeaderValue||function(){};
this.logRequestBuilder=new MqE(y.logSource,y.isServiceWorkerScope);this.network=y.network||null;this.productID=y.productID||null;this.clearcutUrl=y.urlOverride||null;this.sessionIndex=y.sessionIndex||null;this.disableAutomaticFlush=y.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!y.disableWithCredentials;this.isServiceWorkerScope=y.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!pP()&&!!pP().navigator&&pP().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(jfZ())).searchParams&&!!(new URL(jfZ())).searchParams.set;var c=Ts8(new S$m);ic2(this.logRequestBuilder,c);this.flushBackoff=new fg(1E4,3E5,.1);y=ySm(this,y.backgroundJobDeferrer);this.JSC$7561_flushTimer=new k_(this.flushBackoff.getValue(),y);this.backupTimer=new k_(6E5,y);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){WV2(W);
var Z;(Z=W.metalogService)==null||Z.flush()}}),document.addEventListener("pagehide",function(){WV2(W);
var Z;(Z=W.metalogService)==null||Z.flush()}))};
_.R(Z9,_.UR);var ySm=function(y,W){return y.isBrowserSupported?W?function(){W().then(function(){y.flush()})}:function(){y.flush()}:function(){}};
Z9.prototype.disposeInternal=function(){WV2(this);this.JSC$7561_flushTimer.stop();this.backupTimer.stop();_.UR.prototype.disposeInternal.call(this)};
var cSW=function(y){y.clearcutUrl||(y.clearcutUrl=jfZ());try{return(new URL(y.clearcutUrl)).toString()}catch(W){return(new URL(y.clearcutUrl,pP().location.origin)).toString()}};
Z9.prototype.dispatch=function(y){if(y instanceof _.yh)this.log(y);else try{var W=new _.yh,c=y.serialize();var Z=_.Ub(W,8,c);this.log(Z)}catch(G){GF(this,4,1)}};
var GF=function(y,W,c){y.metalogService&&y.metalogService.increment(W,c)};
Z9.prototype.log=function(y){GF(this,2,1);if(this.isBrowserSupported){y=y.clone();var W=this.sequencePosition++;y=_.tc(y,21,W);this.componentId&&_.Ub(y,26,this.componentId);W=y;if(I0I(_.um(W,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";_.e5(W,1,oH(c))}_.$6(W,15)!=null||_.tc(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(c=this.experimentIds.clone(),_.uF(W,16,c));GF(this,1,1);W=this.pendingEvents.length-1E3+1;W>0&&(this.pendingEvents.splice(0,W),this.numLogsDroppedSinceLastFlush+=
W,GF(this,3,W));this.pendingEvents.push(y);this.disableAutomaticFlush||this.JSC$7561_flushTimer.enabled||this.JSC$7561_flushTimer.start()}};
Z9.prototype.flush=function(y,W){var c=this;if(this.pendingEvents.length===0)y&&y();else if(this.JSC$7561_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,ZPT(this);else{var Z=Date.now();if(this.noFlushUntilMs>Z&&this.startWaitingMs<Z)W&&W("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?elT(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var G=this.pendingEvents.length,
D=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Y=this.getAuthHeaderValue();if(Y&&this.lastFailedAuth===Y)W&&W("stale-auth-token");else{this.pendingEvents=[];this.JSC$7561_flushTimer.enabled&&this.JSC$7561_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Z=D.serialize();var u;this.JSC$7561_compressor&&this.JSC$7561_compressor.isSupported(Z.length)&&
(u=this.JSC$7561_compressor.compress(Z));var t=GaV(this,Z,Y),b=function(K){c.flushBackoff.reset();c.JSC$7561_flushTimer.setInterval(c.flushBackoff.getValue());if(K){var l=null;try{var N=JSON.stringify(JSON.parse(K.replace(")]}'\n","")));l=ktV(N)}catch(P){}l&&(K=Number(O2(l,1,_.QT("-1"))),K>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+K),a0D(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,cP.fieldIndex),MVh(l,cP.fieldIndex),l=cP.ctor?cP.getExtensionFn(l,cP.ctor,cP.fieldIndex,
cP.JSC$6733_hasMessageId):cP.getExtensionFn(l,cP.fieldIndex,null,cP.JSC$6733_hasMessageId),l=l===null?void 0:l)&&(l=_.jZ(l,1,-1),l!==-1&&(c.flushBackoff=new fg(l<1?1:l,3E5,.1),c.JSC$7561_flushTimer.setInterval(c.flushBackoff.getValue())))}y&&y();c.numRetriesSinceLastSuccessfulFlush=0},r=function(K,l){var N=_.wQ(D,_.yh,3,_.ky());
var P=Number(O2(D,14));q$W(c.flushBackoff);c.JSC$7561_flushTimer.setInterval(c.flushBackoff.getValue());K===401&&Y&&(c.lastFailedAuth=Y);P&&(c.numLogsDroppedSinceLastFlush+=P);l===void 0&&(l=c.isRetryable(K));l&&(c.pendingEvents=N.concat(c.pendingEvents),c.disableAutomaticFlush||c.JSC$7561_flushTimer.enabled||c.JSC$7561_flushTimer.start());GF(c,7,1);W&&W("net-send-failed",K);++c.numRetriesSinceLastSuccessfulFlush},F=function(){c.network&&c.network.send(t,b,r)};
u?u.then(function(K){GF(c,5,G);t.requestHeaders["Content-Encoding"]="gzip";t.requestHeaders["Content-Type"]="application/binary";t.body=K;t.bodyType=2;F()},function(){GF(c,6,G);
F()}):F()}}}};
var GaV=function(y,W,c){c=c===void 0?null:c;var Z=Z===void 0?y.withCredentials:Z;var G={},D=new URL(cSW(y));c&&(G.Authorization=c);y.sessionIndex&&(G["X-Goog-AuthUser"]=y.sessionIndex,D.searchParams.set("authuser",y.sessionIndex));y.pageId&&(Object.defineProperty(G,"X-Goog-PageId",{value:y.pageId}),D.searchParams.set("pageId",y.pageId));return{url:D.toString(),body:W,bodyType:1,requestHeaders:G,requestType:"POST",withCredentials:Z,timeoutMillis:y.timeoutMillis}},WV2=function(y){y.logRequestBuilder.isFinal=
!0;
y.flush();y.logRequestBuilder.isFinal=!1},ZPT=function(y){f_E(y,function(W,c){W=new URL(W);
W.searchParams.set("format","json");var Z=!1;try{Z=pP().navigator.sendBeacon(W.toString(),c.serialize())}catch(G){}Z||(y.isSendBeaconSupported=!1);return Z})},f_E=function(y,W){if(y.pendingEvents.length!==0){var c=new URL(cSW(y));
c.searchParams.delete("format");var Z=y.getAuthHeaderValue();Z&&c.searchParams.set("auth",Z);c.searchParams.set("authuser",y.sessionIndex||"0");for(Z=0;Z<10&&y.pendingEvents.length;++Z){var G=y.pendingEvents.slice(0,32),D=y.logRequestBuilder.build(G,y.numLogsDroppedSinceLastFlush,y.numRetriesSinceLastSuccessfulFlush,y.productID,y.persistedLogRecoveredCount,y.persistedLogExpiredCount);if(!W(c.toString(),D)){++y.numRetriesSinceLastSuccessfulFlush;break}y.numLogsDroppedSinceLastFlush=0;y.numRetriesSinceLastSuccessfulFlush=
0;y.persistedLogRecoveredCount=0;y.persistedLogExpiredCount=0;y.pendingEvents=y.pendingEvents.slice(G.length)}y.JSC$7561_flushTimer.enabled&&y.JSC$7561_flushTimer.stop()}};
Z9.prototype.isRetryable=function(y){return 500<=y&&y<600||y===401||y===0};
var jfZ=function(){return"https://play.google.com/log?format=json&hasfast=true"};var oym=function(){this.abortSupported=typeof AbortController!=="undefined"};
oym.prototype.send=function(y,W,c){var Z=this,G,D,Y,u,t,b,r,F,K,l;return _.m(function(N){switch(N.nextAddress){case 1:return D=(G=Z.abortSupported?new AbortController:void 0)?setTimeout(function(){G.abort()},y.timeoutMillis):void 0,_.tm(N,2,3),Y=Object.assign({},{method:y.requestType,
headers:Object.assign({},y.requestHeaders)},y.body&&{body:y.body},y.withCredentials&&{credentials:"include"},{signal:y.timeoutMillis&&G?G.signal:null}),_.n(N,fetch(y.url,Y),5);case 5:u=N.yieldResult;if(u.status!==200){(t=c)==null||t(u.status);N.jumpTo(3);break}if((b=W)==null){N.jumpTo(7);break}return _.n(N,u.text(),8);case 8:b(N.yieldResult);case 7:case 3:_.nc(N);clearTimeout(D);_.bR(N,0);break;case 2:r=_.rs(N);switch((F=r)==null?void 0:F.name){case "AbortError":(K=c)==null||K(408);break;default:(l=
c)==null||l(400)}N.jumpTo(3)}})};
oym.prototype.getTransmissionType=function(){return 4};_.Dd=function(y,W){W=W===void 0?"0":W;_.UR.call(this);this.logSource=y;this.sessionIndex=W;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7579_clearExperimentIds=this.productID=null;this.JSC$7579_sendBeaconApiEnabled=!1;this.pageId=null};
_.R(_.Dd,_.UR);var jSy=function(y,W){y.buildLabel=W;return y},kwD=function(y,W){y.network=W;
return y},W9y=function(y,W){y.JSC$7579_clearExperimentIds=W},qEf=function(y){y.JSC$7579_sendBeaconApiEnabled=!0;
return y};
_.Dd.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Dd.prototype.build=function(){this.network||(this.network=new oym);var y=new Z9({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:AxI,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.zY(this,y);if(this.buildLabel){var W=this.buildLabel,c=WP(y.logRequestBuilder);
_.Ub(c,7,W)}y.JSC$7561_compressor=new Am8;this.componentId&&(y.componentId=this.componentId);this.productID&&(y.productID=this.productID);this.pageId&&(y.pageId=this.pageId);this.JSC$7579_clearExperimentIds&&((c=this.JSC$7579_clearExperimentIds)?(y.experimentIds||(y.experimentIds=new hl5),W=y.experimentIds,c=c.serialize(),_.Ub(W,4,c)):y.experimentIds&&_.e5(y.experimentIds,4));this.JSC$7579_sendBeaconApiEnabled&&(y.JSC$7561_sendBeaconApiEnabled=y.isSendBeaconSupported);wp0(y.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(y);return y};var GjH=function(y,W,c,Z,G,D,Y){y=y===void 0?-1:y;W=W===void 0?"":W;c=c===void 0?"":c;Z=Z===void 0?!1:Z;G=G===void 0?"":G;_.UR.call(this);this.logSource=y;this.componentId=W;D?W=D:(y=new _.Dd(y,"0"),y.componentId=W,_.zY(this,y),c!==""&&(y.destinationUrl=c),Z&&(y.serviceWorkerScopeEnabled=!0),G&&jSy(y,G),Y&&kwD(y,Y),W=y.build());this.JSC$7583_transport=W};
_.R(GjH,_.UR);GjH.prototype.flush=function(y){y=y||[];if(y.length){for(var W=new lGZ,c=[],Z=0;Z<y.length;Z++){var G=y[Z],D=IGZ(G);c.push(D);G.clear()}FY(W,1,c);this.JSC$7583_transport.dispatch(W);this.JSC$7583_transport.flush()}};var DgV=function(y){this.cellValue=y};var f$=function(y,W,c){this.JSC$7588_metricName=y;this.cellType=W;this.fields=c||[];this.cellMap=new Map},Nsi=function(y){return y.fields.map(function(W){return W.fieldType})},EiJ=function(y){return y.fields.map(function(W){return W.fieldName})};
_.f=f$.prototype;_.f.addCell=function(y){var W=_.Cf.apply(1,arguments),c=this.getCells(W);c?c.push(new DgV(y)):this.JSC$7588_setCell(y,W)};
_.f.JSC$7588_setCell=function(y){var W=this.JSC$7588_getKey(_.Cf.apply(1,arguments));this.cellMap.set(W,[new DgV(y)])};
_.f.getCells=function(){var y=this.JSC$7588_getKey(_.Cf.apply(0,arguments));return this.cellMap.has(y)?this.cellMap.get(y):void 0};
_.f.getCell=function(){var y=this.getCells(_.Cf.apply(0,arguments));return y&&y.length?y[0]:void 0};
_.f.clear=function(){this.cellMap.clear()};
_.f.JSC$7588_getKey=function(){var y=_.Cf.apply(0,arguments);return y?y.join(","):"key"};var z9m=function(y,W){f$.call(this,y,3,W)};
_.R(z9m,f$);z9m.prototype.JSC$7591_incrementCounterBy=function(y){var W=_.Cf.apply(1,arguments),c=0,Z=this.getCell(W);Z&&(c=Z.cellValue);this.JSC$7588_setCell(c+y,W)};var YbW=function(y,W){f$.call(this,y,2,W)};
_.R(YbW,f$);YbW.prototype.record=function(y){this.addCell(y,_.Cf.apply(1,arguments))};_.o4=function(y){this.id=y};
_.o4.prototype.toString=function(){return this.id};_.D9=function(y,W){this.type=y instanceof _.o4?String(y):y;this.currentTarget=this.target=W;this.defaultPrevented=this.propagationStopped_=!1};
_.D9.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.D9.prototype.preventDefault=function(){this.defaultPrevented=!0};_.zF=function(y,W){_.D9.call(this,y?y.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;y&&this.init(y,W)};
_.j6(_.zF,_.D9);
_.zF.prototype.init=function(y,W){var c=this.type=y.type,Z=y.changedTouches&&y.changedTouches.length?y.changedTouches[0]:null;this.target=y.target||y.srcElement;this.currentTarget=W;W=y.relatedTarget;W||(c=="mouseover"?W=y.fromElement:c=="mouseout"&&(W=y.toElement));this.relatedTarget=W;Z?(this.clientX=Z.clientX!==void 0?Z.clientX:Z.pageX,this.clientY=Z.clientY!==void 0?Z.clientY:Z.pageY,this.screenX=Z.screenX||0,this.screenY=Z.screenY||0):(this.offsetX=_.oE||y.offsetX!==void 0?y.offsetX:y.layerX,
this.offsetY=_.oE||y.offsetY!==void 0?y.offsetY:y.layerY,this.clientX=y.clientX!==void 0?y.clientX:y.pageX,this.clientY=y.clientY!==void 0?y.clientY:y.pageY,this.screenX=y.screenX||0,this.screenY=y.screenY||0);this.button=y.button;this.keyCode=y.keyCode||0;this.key=y.key||"";this.charCode=y.charCode||(c=="keypress"?y.keyCode:0);this.ctrlKey=y.ctrlKey;this.altKey=y.altKey;this.shiftKey=y.shiftKey;this.metaKey=y.metaKey;this.pointerId=y.pointerId||0;this.pointerType=y.pointerType;this.state=y.state;
this.timeStamp=y.timeStamp;this.event_=y;y.defaultPrevented&&_.zF.superClass_.preventDefault.call(this)};
_.zF.prototype.stopPropagation=function(){_.zF.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.zF.prototype.preventDefault=function(){_.zF.superClass_.preventDefault.call(this);var y=this.event_;y.preventDefault?y.preventDefault():y.returnValue=!1};var mgm="closure_listenable_"+(Math.random()*1E6|0),Yp=function(y){return!(!y||!y[mgm])};var sfW=0;var uFW=function(y,W,c,Z,G){this.listener=y;this.proxy=null;this.src=W;this.type=c;this.capture=!!Z;this.handler=G;this.key=++sfW;this.removed=this.callOnce=!1},tLE=function(y){y.removed=!0;
y.listener=null;y.proxy=null;y.src=null;y.handler=null};oe.prototype.add=function(y,W,c,Z,G){var D=y.toString();y=this.listeners[D];y||(y=this.listeners[D]=[],this.typeCount_++);var Y=nyZ(y,W,Z,G);Y>-1?(W=y[Y],c||(W.callOnce=!1)):(W=new uFW(W,this.src,D,!!Z,G),W.callOnce=c,y.push(W));return W};
oe.prototype.remove=function(y,W,c,Z){y=y.toString();if(!(y in this.listeners))return!1;var G=this.listeners[y];W=nyZ(G,W,c,Z);return W>-1?(tLE(G[W]),_.KEh(G,W),G.length==0&&(delete this.listeners[y],this.typeCount_--),!0):!1};
var XuT=function(y,W){var c=W.type;if(!(c in y.listeners))return!1;var Z=_.dg(y.listeners[c],W);Z&&(tLE(W),y.listeners[c].length==0&&(delete y.listeners[c],y.typeCount_--));return Z};
oe.prototype.removeAll=function(y){y=y&&y.toString();var W=0,c;for(c in this.listeners)if(!y||c==y){for(var Z=this.listeners[c],G=0;G<Z.length;G++)++W,tLE(Z[G]);delete this.listeners[c];this.typeCount_--}return W};
oe.prototype.getListener=function(y,W,c,Z){y=this.listeners[y.toString()];var G=-1;y&&(G=nyZ(y,W,c,Z));return G>-1?y[G]:null};
oe.prototype.hasListener=function(y,W){var c=y!==void 0,Z=c?y.toString():"",G=W!==void 0;return _.Eb.some(this.listeners,function(D){for(var Y=0;Y<D.length;++Y)if(!(c&&D[Y].type!=Z||G&&D[Y].capture!=W))return!0;return!1})};
var nyZ=function(y,W,c,Z){for(var G=0;G<y.length;++G){var D=y[G];if(!D.removed&&D.listener==W&&D.capture==!!c&&D.handler==Z)return G}return-1};var bPQ,rSm,FVV,$gV,KVT,fN,o9,R98,OPW,gy0,mS,l_J,UgW;bPQ="closure_lm_"+(Math.random()*1E6|0);rSm={};FVV=0;_.Y0=function(y,W,c,Z,G){if(Z&&Z.once)return fN(y,W,c,Z,G);if(Array.isArray(W)){for(var D=0;D<W.length;D++)_.Y0(y,W[D],c,Z,G);return null}c=UgW(c);return Yp(y)?y.listen(W,c,_.q1(Z)?!!Z.capture:!!Z,G):$gV(y,W,c,!1,Z,G)};
$gV=function(y,W,c,Z,G,D){if(!W)throw Error("za");var Y=_.q1(G)?!!G.capture:!!G,u=mS(y);u||(y[bPQ]=u=new oe(y));c=u.add(W,c,Z,Y,D);if(c.proxy)return c;Z=KVT();c.proxy=Z;Z.src=y;Z.listener=c;if(y.addEventListener)_.Cf0||(G=Y),G===void 0&&(G=!1),y.addEventListener(W.toString(),Z,G);else if(y.attachEvent)y.attachEvent(OPW(W.toString()),Z);else if(y.addListener&&y.removeListener)y.addListener(Z);else throw Error("Aa");FVV++;return c};
KVT=function(){var y=gy0,W=function(c){return y.call(W.src,W.listener,c)};
return W};
fN=function(y,W,c,Z,G){if(Array.isArray(W)){for(var D=0;D<W.length;D++)fN(y,W[D],c,Z,G);return null}c=UgW(c);return Yp(y)?y.listenOnce(W,c,_.q1(Z)?!!Z.capture:!!Z,G):$gV(y,W,c,!0,Z,G)};
_.sp=function(y,W,c,Z,G){if(Array.isArray(W))for(var D=0;D<W.length;D++)_.sp(y,W[D],c,Z,G);else Z=_.q1(Z)?!!Z.capture:!!Z,c=UgW(c),Yp(y)?y.unlisten(W,c,Z,G):y&&(y=mS(y))&&(W=y.getListener(W,c,Z,G))&&o9(W)};
o9=function(y){if(typeof y==="number"||!y||y.removed)return!1;var W=y.src;if(Yp(W))return XuT(W.eventTargetListeners_,y);var c=y.type,Z=y.proxy;W.removeEventListener?W.removeEventListener(c,Z,y.capture):W.detachEvent?W.detachEvent(OPW(c),Z):W.addListener&&W.removeListener&&W.removeListener(Z);FVV--;(c=mS(W))?(XuT(c,y),c.typeCount_==0&&(c.src=null,W[bPQ]=null)):tLE(y);return!0};
R98=function(y,W,c,Z,G){c=UgW(c);Z=!!Z;return Yp(y)?y.getListener(W,c,Z,G):y?(y=mS(y))?y.getListener(W,c,Z,G):null:null};
OPW=function(y){return y in rSm?rSm[y]:rSm[y]="on"+y};
gy0=function(y,W){if(y.removed)y=!0;else{W=new _.zF(W,this);var c=y.listener,Z=y.handler||y.src;y.callOnce&&o9(y);y=c.call(Z,W)}return y};
mS=function(y){y=y[bPQ];return y instanceof oe?y:null};
l_J="__closure_events_fn_"+(Math.random()*1E9>>>0);UgW=function(y){if(typeof y==="function")return y;y[l_J]||(y[l_J]=function(W){return y.handleEvent(W)});
return y[l_J]};_.uU=function(){_.UR.call(this);this.eventTargetListeners_=new oe(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.j6(_.uU,_.UR);_.uU.prototype[mgm]=!0;_.f=_.uU.prototype;_.f.setParentEventTarget=function(y){this.parentEventTarget_=y};
_.f.addEventListener=function(y,W,c,Z){_.Y0(this,y,W,c,Z)};
_.f.removeEventListener=function(y,W,c,Z){_.sp(this,y,W,c,Z)};
_.f.dispatchEvent=function(y){var W,c=this.parentEventTarget_;if(c)for(W=[];c;c=c.parentEventTarget_)W.push(c);c=this.actualEventTarget_;var Z=y.type||y;if(typeof y==="string")y=new _.D9(y,c);else if(y instanceof _.D9)y.target=y.target||c;else{var G=y;y=new _.D9(Z,c);_.Eb.extend(y,G)}G=!0;var D;if(W)for(D=W.length-1;!y.propagationStopped_&&D>=0;D--){var Y=y.currentTarget=W[D];G=EyW(Y,Z,!0,y)&&G}y.propagationStopped_||(Y=y.currentTarget=c,G=EyW(Y,Z,!0,y)&&G,y.propagationStopped_||(G=EyW(Y,Z,!1,y)&&
G));if(W)for(D=0;!y.propagationStopped_&&D<W.length;D++)Y=y.currentTarget=W[D],G=EyW(Y,Z,!1,y)&&G;return G};
_.f.disposeInternal=function(){_.uU.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.f.listen=function(y,W,c,Z){return this.eventTargetListeners_.add(String(y),W,!1,c,Z)};
_.f.listenOnce=function(y,W,c,Z){return this.eventTargetListeners_.add(String(y),W,!0,c,Z)};
_.f.unlisten=function(y,W,c,Z){return this.eventTargetListeners_.remove(String(y),W,c,Z)};
_.f.removeAllListeners=function(y){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(y):0};
var EyW=function(y,W,c,Z){W=y.eventTargetListeners_.listeners[String(W)];if(!W)return!0;W=W.concat();for(var G=!0,D=0;D<W.length;++D){var Y=W[D];if(Y&&!Y.removed&&Y.capture==c){var u=Y.listener,t=Y.handler||Y.src;Y.callOnce&&XuT(y.eventTargetListeners_,Y);G=u.call(t,Z)!==!1&&G}}return G&&!Z.defaultPrevented};
_.uU.prototype.getListener=function(y,W,c,Z){return this.eventTargetListeners_.getListener(String(y),W,c,Z)};
_.uU.prototype.hasListener=function(y,W){return this.eventTargetListeners_.hasListener(y!==void 0?String(y):void 0,W)};var tU=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(y){return y&&AsyncContext.Snapshot.wrap(y)}:function(y){return y};var NQ5=function(y,W){this.create_=y;this.reset_=W;this.occupants_=0;this.JSC$7623_head_=null};
NQ5.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var y=this.JSC$7623_head_;this.JSC$7623_head_=y.next;y.next=null}else y=this.create_();return y};
NQ5.prototype.put=function(y){this.reset_(y);this.occupants_<100&&(this.occupants_++,y.next=this.JSC$7623_head_,this.JSC$7623_head_=y)};var I_Z=function(){this.workTail_=this.workHead_=null};
I_Z.prototype.add=function(y,W){var c=AWh.get();c.set(y,W);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};
I_Z.prototype.remove=function(){var y=null;this.workHead_&&(y=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),y.next=null);return y};
var AWh=new NQ5(function(){return new puT},function(y){return y.reset()}),puT=function(){this.next=this.scope=this.fn=null};
puT.prototype.set=function(y,W){this.fn=y;this.scope=W;this.next=null};
puT.prototype.reset=function(){this.next=this.scope=this.fn=null};var PGE,hTE,Q8f,JS2;hTE=!1;Q8f=new I_Z;_.n$=function(y,W){PGE||JS2();hTE||(PGE(),hTE=!0);Q8f.add(y,W)};
JS2=function(){var y=Promise.resolve(void 0);PGE=function(){y.then(BjI)}};var VLE=function(y){y.prototype.$goog_Thenable=!0},CGi=function(y){if(!y)return!1;
try{return!!y.$goog_Thenable}catch(W){return!1}};var Qf0,ASE,h9W,HPi,LVm,vyE,a_T,MLi,ka5,wuE,vow;_.fD=function(y,W){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(y!=_.me)try{var c=this;y.call(W,function(Z){c.resolve_(2,Z)},function(Z){c.resolve_(3,Z)})}catch(Z){this.resolve_(3,Z)}};
Qf0=function(){this.next=this.context=this.JSC$7634_onRejected=this.JSC$7634_onFulfilled=this.child=null;this.always=!1};
Qf0.prototype.reset=function(){this.context=this.JSC$7634_onRejected=this.JSC$7634_onFulfilled=this.child=null;this.always=!1};
ASE=new NQ5(function(){return new Qf0},function(y){y.reset()});
h9W=function(y,W,c){var Z=ASE.get();Z.JSC$7634_onFulfilled=y;Z.JSC$7634_onRejected=W;Z.context=c;return Z};
_.sc=function(y){if(y instanceof _.fD)return y;var W=new _.fD(_.me);W.resolve_(2,y);return W};
_.hG=function(y){return new _.fD(function(W,c){c(y)})};
HPi=function(y,W,c){BQZ(y,W,c,null)||_.n$(_.Fr(W,y))};
_.X1=function(y){return new _.fD(function(W,c){var Z=y.length,G=[];if(Z)for(var D=function(b,r){Z--;G[b]=r;Z==0&&W(G)},Y=function(b){c(b)},u,t=0;t<y.length;t++)u=y[t],HPi(u,_.Fr(D,t),Y);
else W(G)})};
LVm=function(y){return new _.fD(function(W){var c=y.length,Z=[];if(c)for(var G=function(u,t,b){c--;Z[u]=t?{fulfilled:!0,value:b}:{fulfilled:!1,reason:b};c==0&&W(Z)},D,Y=0;Y<y.length;Y++)D=y[Y],HPi(D,_.Fr(G,Y,!0),_.Fr(G,Y,!1));
else W(Z)})};
vyE=function(y){return new _.fD(function(W,c){var Z=y.length,G=[];if(Z)for(var D=function(b){W(b)},Y=function(b,r){Z--;
G[b]=r;Z==0&&c(G)},u,t=0;t<y.length;t++)u=y[t],HPi(u,D,_.Fr(Y,t));
else W(void 0)})};
_.px=function(){var y,W,c=new _.fD(function(Z,G){y=Z;W=G});
return new dgZ(c,y,W)};
_.fD.prototype.then=function(y,W,c){return Sb0(this,tU(typeof y==="function"?y:null),tU(typeof W==="function"?W:null),c)};
VLE(_.fD);a_T=function(y,W,c,Z){TQE(y,h9W(W||_.me,c||null,Z))};
_.bU=function(y,W){W=tU(W);W=h9W(W,W);W.always=!0;TQE(y,W);return y};
_.fD.prototype.finally=function(y){var W=this;y=tU(y);return new Promise(function(c,Z){a_T(W,function(G){y();c(G)},function(G){y();
Z(G)})})};
_.fD.prototype.thenCatch=function(y,W){return Sb0(this,null,tU(y),W)};
_.fD.prototype.catch=_.fD.prototype.thenCatch;_.fD.prototype.cancel=function(y){if(this.state_==0){var W=new _.AG(y);_.n$(function(){xgJ(this,W)},this)}};
var xgJ=function(y,W){if(y.state_==0)if(y.parent_){var c=y.parent_;if(c.callbackEntries_){for(var Z=0,G=null,D=null,Y=c.callbackEntries_;Y&&(Y.always||(Z++,Y.child==y&&(G=Y),!(G&&Z>1)));Y=Y.next)G||(D=Y);G&&(c.state_==0&&Z==1?xgJ(c,W):(D?(Z=D,Z.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=Z),Z.next=Z.next.next):iPQ(c),MLi(c,G,3,W)))}y.parent_=null}else y.resolve_(3,W)},TQE=function(y,W){y.callbackEntries_||y.state_!=2&&y.state_!=3||e98(y);
y.callbackEntriesTail_?y.callbackEntriesTail_.next=W:y.callbackEntries_=W;y.callbackEntriesTail_=W},Sb0=function(y,W,c,Z){var G=h9W(null,null,null);
G.child=new _.fD(function(D,Y){G.JSC$7634_onFulfilled=W?function(u){try{var t=W.call(Z,u);D(t)}catch(b){Y(b)}}:D;
G.JSC$7634_onRejected=c?function(u){try{var t=c.call(Z,u);t===void 0&&u instanceof _.AG?Y(u):D(t)}catch(b){Y(b)}}:Y});
G.child.parent_=y;TQE(y,G);return G.child};
_.fD.prototype.unblockAndFulfill_=function(y){this.state_=0;this.resolve_(2,y)};
_.fD.prototype.unblockAndReject_=function(y){this.state_=0;this.resolve_(3,y)};
_.fD.prototype.resolve_=function(y,W){this.state_==0&&(this===W&&(y=3,W=new TypeError("Ba")),this.state_=1,BQZ(W,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=W,this.state_=y,this.parent_=null,e98(this),y!=3||W instanceof _.AG||wuE(this,W)))};
var BQZ=function(y,W,c,Z){if(y instanceof _.fD)return a_T(y,W,c,Z),!0;if(CGi(y))return y.then(W,c,Z),!0;if(_.q1(y))try{var G=y.then;if(typeof G==="function")return qbV(y,G,W,c,Z),!0}catch(D){return c.call(Z,D),!0}return!1},qbV=function(y,W,c,Z,G){var D=!1,Y=function(t){D||(D=!0,c.call(G,t))},u=function(t){D||(D=!0,Z.call(G,t))};
try{W.call(y,Y,u)}catch(t){u(t)}},e98=function(y){y.executing_||(y.executing_=!0,_.n$(y.executeCallbacks_,y))},iPQ=function(y){var W=null;
y.callbackEntries_&&(W=y.callbackEntries_,y.callbackEntries_=W.next,W.next=null);y.callbackEntries_||(y.callbackEntriesTail_=null);return W};
_.fD.prototype.executeCallbacks_=function(){for(var y;y=iPQ(this);)MLi(this,y,this.state_,this.result_);this.executing_=!1};
MLi=function(y,W,c,Z){if(c==3&&W.JSC$7634_onRejected&&!W.always)for(;y&&y.hadUnhandledRejection_;y=y.parent_)y.hadUnhandledRejection_=!1;if(W.child)W.child.parent_=null,ka5(W,c,Z);else try{W.always?W.JSC$7634_onFulfilled.call(W.context):ka5(W,c,Z)}catch(G){vow.call(null,G)}ASE.put(W)};
ka5=function(y,W,c){W==2?y.JSC$7634_onFulfilled.call(y.context,c):y.JSC$7634_onRejected&&y.JSC$7634_onRejected.call(y.context,c)};
wuE=function(y,W){y.hadUnhandledRejection_=!0;_.n$(function(){y.hadUnhandledRejection_&&vow.call(null,W)})};
vow=YF;_.AG=function(y){_.yw.call(this,y)};
_.j6(_.AG,_.yw);_.AG.prototype.name="cancel";var dgZ=function(y,W,c){this.promise=y;this.resolve=W;this.reject=c};var ra;_.wJ=function(y,W){_.uU.call(this);this.JSC$7646_interval_=y||1;this.timerObject_=W||_.DH;this.boundTick_=(0,_.$r)(this.tick_,this);this.last_=_.k3()};
_.j6(_.wJ,_.uU);_.f=_.wJ.prototype;_.f.enabled=!1;_.f.JSC$7648_timer_=null;_.f.setInterval=function(y){this.JSC$7646_interval_=y;this.JSC$7648_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7648_timer_&&this.stop()};
_.f.tick_=function(){if(this.enabled){var y=_.k3()-this.last_;y>0&&y<this.JSC$7646_interval_*.8?this.JSC$7648_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7646_interval_-y):(this.JSC$7648_timer_&&(this.timerObject_.clearTimeout(this.JSC$7648_timer_),this.JSC$7648_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.f.start=function(){this.enabled=!0;this.JSC$7648_timer_||(this.JSC$7648_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7646_interval_),this.last_=_.k3())};
_.f.stop=function(){this.enabled=!1;this.JSC$7648_timer_&&(this.timerObject_.clearTimeout(this.JSC$7648_timer_),this.JSC$7648_timer_=null)};
_.f.disposeInternal=function(){_.wJ.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
ra=function(y,W,c){if(typeof y==="function")c&&(y=(0,_.$r)(y,c));else if(y&&typeof y.handleEvent=="function")y=(0,_.$r)(y.handleEvent,y);else throw Error("Ca");return Number(W)>2147483647?-1:_.DH.setTimeout(y,W||0)};
_.jeE=function(y){var W=null;return(new _.fD(function(c,Z){W=ra(function(){c(void 0)},y);
W==-1&&Z(Error("Da"))})).thenCatch(function(c){_.DH.clearTimeout(W);
throw c;})};var Yr=function(y){_.UR.call(this);this.streamzLogger=y;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7652_flushTimer=new _.wJ(this.flushInterval);this.JSC$7652_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.zY(this,this.JSC$7652_flushTimer)};
_.R(Yr,_.UR);Yr.prototype.sendIsolatedPayload=function(y){this.shouldSendIsolatedPayload=y;this.invocationLimit=1};
var yo8=function(y){y.JSC$7652_flushTimer.enabled||y.JSC$7652_flushTimer.start();y.invocationCount++;y.invocationCount>=y.invocationLimit&&y.snapshotAndFlush()};
Yr.prototype.snapshotAndFlush=function(){var y=this.metricMap.values();y=[].concat(_.No(y)).filter(function(W){return W.cellMap.size});
y.length&&this.streamzLogger.flush(y,this.shouldSendIsolatedPayload);WMJ(y);this.invocationCount=0;this.JSC$7652_flushTimer.enabled&&this.JSC$7652_flushTimer.stop()};
Yr.prototype.addNewCounter=function(y){var W=_.Cf.apply(1,arguments);this.metricMap.has(y)||this.metricMap.set(y,new z9m(y,W))};
Yr.prototype.addNewEventMetric=function(y){var W=_.Cf.apply(1,arguments);this.metricMap.has(y)||this.metricMap.set(y,new YbW(y,W))};
var coJ=function(y,W){return y.disabledMetrics.has(W)?void 0:y.metricMap.get(W)};
Yr.prototype.JSC$7652_incrementCounter=function(y){this.JSC$7652_incrementCounterBy(y,1,_.Cf.apply(1,arguments))};
Yr.prototype.JSC$7652_incrementCounterBy=function(y,W){var c=_.Cf.apply(2,arguments),Z=coJ(this,y);Z&&Z instanceof z9m&&(Z.JSC$7591_incrementCounterBy(W,c),yo8(this))};
Yr.prototype.record=function(y,W){var c=_.Cf.apply(2,arguments),Z=coJ(this,y);Z&&Z instanceof YbW&&(Z.record(W,c),yo8(this))};
var WMJ=function(y){for(var W=0;W<y.length;W++)y[W].clear()};_.F1=function(y,W,c){c=c===void 0?{}:c;W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=y;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.F1,Error);_.F1.prototype.toString=function(){var y="RpcError("+(LCD(this.code)||String(this.code))+")";this.message&&(y+=": "+this.message);return y};_.ZgE=_.DH.JSON.parse;_.Up=_.DH.JSON.stringify;_.OL=_.DH.JSON.parse;_.GY0=function(y){switch(y){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 fdi=function(y){switch(y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var or2,DQE=function(){};
_.j6(DQE,_.vNa);DQE.prototype.createInstance=function(){return new XMLHttpRequest};
or2=new DQE;_.$p=function(y){_.uU.call(this);this.headers=new Map;this.JSC$7661_xmlHttpFactory_=y||null;this.JSC$7661_active_=!1;this.JSC$7661_xhr_=null;this.JSC$7661_lastUri_="";this.JSC$7661_lastErrorCode_=0;this.JSC$7661_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7661_timeoutId_=null;this.responseType_="";this.JSC$7661_withCredentials_=!1};
_.j6(_.$p,_.uU);var zKi=/^https?$/i,YRZ=["POST","PUT"],mQQ=[],ayy=function(y,W,c,Z,G,D,Y){var u=new _.$p;mQQ.push(u);W&&u.listen("complete",W);u.listenOnce("ready",u.cleanupSend_);D&&(u.timeoutInterval_=Math.max(0,D));Y&&(u.JSC$7661_withCredentials_=Y);u.send(y,c,Z,G)};
_.$p.prototype.cleanupSend_=function(){this.dispose();_.dg(mQQ,this)};
_.$p.prototype.send=function(y,W,c,Z){if(this.JSC$7661_xhr_)throw Error("Ea`"+this.JSC$7661_lastUri_+"`"+y);W=W?W.toUpperCase():"GET";this.JSC$7661_lastUri_=y;this.JSC$7661_lastError_="";this.JSC$7661_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7661_active_=!0;this.JSC$7661_xhr_=this.createXhr();this.JSC$7661_xhr_.onreadystatechange=tU((0,_.$r)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7661_xhr_.open(W,String(y),!0),this.inOpen_=!1}catch(Y){se0(this,Y);return}y=c||"";c=new Map(this.headers);
if(Z)if(Object.getPrototypeOf(Z)===Object.prototype)for(var G in Z)c.set(G,Z[G]);else if(typeof Z.keys==="function"&&typeof Z.get==="function"){G=_.z(Z.keys());for(var D=G.next();!D.done;D=G.next())D=D.value,c.set(D,Z.get(D))}else throw Error("Fa`"+String(Z));Z=Array.from(c.keys()).find(function(Y){return"content-type"==Y.toLowerCase()});
G=_.DH.FormData&&y instanceof _.DH.FormData;!_.Hy(YRZ,W)||Z||G||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");W=_.z(c);for(Z=W.next();!Z.done;Z=W.next())c=_.z(Z.value),Z=c.next().value,c=c.next().value,this.JSC$7661_xhr_.setRequestHeader(Z,c);this.responseType_&&(this.JSC$7661_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7661_xhr_&&this.JSC$7661_xhr_.withCredentials!==this.JSC$7661_withCredentials_&&(this.JSC$7661_xhr_.withCredentials=this.JSC$7661_withCredentials_);
try{this.JSC$7661_timeoutId_&&(clearTimeout(this.JSC$7661_timeoutId_),this.JSC$7661_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7661_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7661_xhr_.send(y),this.inSend_=!1}catch(Y){se0(this,Y)}};
_.$p.prototype.createXhr=function(){return this.JSC$7661_xmlHttpFactory_?this.JSC$7661_xmlHttpFactory_.createInstance():or2.createInstance()};
_.$p.prototype.timeout_=function(){typeof MhI!="undefined"&&this.JSC$7661_xhr_&&(this.JSC$7661_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7661_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var se0=function(y,W){y.JSC$7661_active_=!1;y.JSC$7661_xhr_&&(y.inAbort_=!0,y.JSC$7661_xhr_.abort(),y.inAbort_=!1);y.JSC$7661_lastError_=W;y.JSC$7661_lastErrorCode_=5;ueV(y);tZE(y)},ueV=function(y){y.errorDispatched_||(y.errorDispatched_=!0,y.dispatchEvent("complete"),y.dispatchEvent("error"))};
_.$p.prototype.abort=function(y){this.JSC$7661_xhr_&&this.JSC$7661_active_&&(this.JSC$7661_active_=!1,this.inAbort_=!0,this.JSC$7661_xhr_.abort(),this.inAbort_=!1,this.JSC$7661_lastErrorCode_=y||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),tZE(this))};
_.$p.prototype.disposeInternal=function(){this.JSC$7661_xhr_&&(this.JSC$7661_active_&&(this.JSC$7661_active_=!1,this.inAbort_=!0,this.JSC$7661_xhr_.abort(),this.inAbort_=!1),tZE(this,!0));_.$p.superClass_.disposeInternal.call(this)};
_.$p.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)nrV(this);else this.onReadyStateChangeEntryPoint_()};
_.$p.prototype.onReadyStateChangeEntryPoint_=function(){nrV(this)};
var nrV=function(y){if(y.JSC$7661_active_&&typeof MhI!="undefined")if(y.inSend_&&_.K$(y)==4)setTimeout(y.onReadyStateChange_.bind(y),0);else if(y.dispatchEvent("readystatechange"),y.isComplete()){y.JSC$7661_active_=!1;try{if(y.isSuccess())y.dispatchEvent("complete"),y.dispatchEvent("success");else{y.JSC$7661_lastErrorCode_=6;try{var W=_.K$(y)>2?y.JSC$7661_xhr_.statusText:""}catch(c){W=""}y.JSC$7661_lastError_=W+" ["+y.getStatus()+"]";ueV(y)}}finally{tZE(y)}}},tZE=function(y,W){if(y.JSC$7661_xhr_){y.JSC$7661_timeoutId_&&
(clearTimeout(y.JSC$7661_timeoutId_),y.JSC$7661_timeoutId_=null);
var c=y.JSC$7661_xhr_;y.JSC$7661_xhr_=null;W||y.dispatchEvent("ready");try{c.onreadystatechange=null}catch(Z){}}};
_.$p.prototype.isActive=function(){return!!this.JSC$7661_xhr_};
_.$p.prototype.isComplete=function(){return _.K$(this)==4};
_.$p.prototype.isSuccess=function(){var y=this.getStatus(),W;if(!(W=fdi(y))){if(y=y===0)y=sHm(String(this.JSC$7661_lastUri_)),y=!zKi.test(y);W=y}return W};
_.K$=function(y){return y.JSC$7661_xhr_?y.JSC$7661_xhr_.readyState:0};
_.f=_.$p.prototype;_.f.getStatus=function(){try{return _.K$(this)>2?this.JSC$7661_xhr_.status:-1}catch(y){return-1}};
_.f.getResponseText=function(){try{return this.JSC$7661_xhr_?this.JSC$7661_xhr_.responseText:""}catch(y){return""}};
_.f.getResponse=function(){try{if(!this.JSC$7661_xhr_)return null;if("response"in this.JSC$7661_xhr_)return this.JSC$7661_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7661_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7661_xhr_)return this.JSC$7661_xhr_.mozResponseArrayBuffer}return null}catch(y){return null}};
_.f.getAllResponseHeaders=function(){return this.JSC$7661_xhr_&&_.K$(this)>=2?this.JSC$7661_xhr_.getAllResponseHeaders()||"":""};
_.f.getLastError=function(){return typeof this.JSC$7661_lastError_==="string"?this.JSC$7661_lastError_:String(this.JSC$7661_lastError_)};var y6y=function(){};
y6y.prototype.send=function(y,W,c){W=W===void 0?function(){}:W;
c=c===void 0?function(){}:c;
ayy(y.url,function(Z){Z=Z.target;Z.isSuccess()?W(Z.getResponseText()):c(Z.getStatus())},y.requestType,y.body,y.requestHeaders,y.timeoutMillis,y.withCredentials)};
y6y.prototype.getTransmissionType=function(){return 1};var Xki=function(y,W){this.logger=y;this.event=W;this.startTime=mM()};
Xki.prototype.done=function(){this.logger.hI(this.event,mM()-this.startTime)};
var Op=function(){wT.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.R(Op,wT);var R4=function(y,W,c){var Z=mM();W=W();y.hI(c,mM()-Z);return W},o7h=function(){Op.apply(this,arguments)};
_.R(o7h,Op);_.f=o7h.prototype;_.f.yAd=function(){};
_.f.cT=function(){};
_.f.hI=function(){};
_.f.logError=function(){};
_.f.vG=function(){};
_.f.izE=function(){};
_.f.yj9=function(){};
_.f.qHd=function(){};
_.f.wQS=function(){};
var bg3=function(y){Op.call(this);var W=this;this.logger=y;this.TEST_ONLY={eNG:function(){return W.logger},
getExperimentIds:function(){return W.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void W.logger.dispose()})};
_.R(bg3,Op);_.f=bg3.prototype;_.f.update=function(y){this.logger.dispose();this.logger=y};
_.f.cT=function(y){this.logger.cT(y)};
_.f.hI=function(y,W){this.logger.hI(y,W)};
_.f.logError=function(y){this.logger.logError(y)};
_.f.vG=function(){this.logger.vG()};
_.f.izE=function(y){this.logger.izE(y)};
_.f.yj9=function(y){this.logger.yj9(y)};
_.f.qHd=function(y){this.logger.qHd(y)};
_.f.wQS=function(y){this.logger.wQS(y)};
_.f.yAd=function(y){this.logger.yAd(y)};
var ro2=function(y,W){_.UR.call(this);var c=this;this.callback=y;this.zZp=W;this.aps=-W;this.addOnDisposeCallback(function(){return void clearTimeout(c.timer)})};
_.R(ro2,_.UR);var FMZ=function(y){if(y.timer===void 0){var W=Math.max(0,y.aps+y.zZp-mM());y.timer=setTimeout(function(){try{y.callback()}finally{y.aps=mM(),y.timer=void 0}},W)}},UQ3=function(y,W){Op.call(this);
this.metrics=y;this.wX=W};
_.R(UQ3,Op);_.f=UQ3.prototype;_.f.yAd=function(y){this.metrics.lmH.record(y,this.wX)};
_.f.cT=function(y){this.metrics.eventCount.increment(y,this.wX)};
_.f.hI=function(y,W){this.metrics.dx3.record(W,y,this.wX)};
_.f.logError=function(y){this.metrics.errorCount.increment(y,this.wX)};
_.f.izE=function(y){this.metrics.tSk.increment(y,this.wX)};
_.f.yj9=function(y){this.metrics.pe6.increment(y,this.wX)};
_.f.qHd=function(y){this.metrics.npk.increment(y,this.wX)};
var DCh=function(y,W){W=W===void 0?[]:W;var c={wX:y.wX||"_",zxE:y.zxE||[],vWd:y.vWd|0,destinationUrl:y.destinationUrl,uOl:y.uOl||function(){},
qNz:y.qNz||function(D,Y){return fPt(D,Y,c.uOl,c.destinationUrl)}},Z=c.qNz("49",c.zxE.concat(W));
UQ3.call(this,wIH(Z),c.wX);var G=this;this.hZv=W;this.TEST_ONLY={getExperimentIds:function(){return G.options.zxE.concat(G.hZv).sort(function(D,Y){return D-Y})}};
this.options=c;this.service=Z;this.mYN=!y.qNz;this.flushDebouncer=new ro2(function(){return void G.service.snapshotAndFlush()},c.vWd);
this.addOnDisposeCallback(function(){G.flushDebouncer.dispose();G.mYN&&G.service.dispose()})};
_.R(DCh,UQ3);DCh.prototype.wQS=function(y){var W=this;this.flushDebouncer.dispose();this.mYN&&this.service.dispose();this.service=this.options.qNz("49",this.options.zxE.concat(y));this.flushDebouncer=new ro2(function(){return void W.service.snapshotAndFlush()},this.options.vWd);
this.metrics=wIH(this.service);this.hZv=y};
DCh.prototype.vG=function(){FMZ(this.flushDebouncer)};var low=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(low,_.eD);_.EOh=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(_.EOh,_.eD);var Tq=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y,0,Tq.messageId)};
_.R(Tq,_.eD);var $QE=_.l3F(Tq);Tq.messageId="bfkj";var gNg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(gNg,_.eD);var KMZ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(KMZ,_.eD);var OgW=_.ze(KMZ);_.WK=function(){var y=this;this.promise=new Promise(function(W,c){y.resolve=W;y.reject=c})};_.lU=function(y){_.UR.call(this);var W=this;this.fq3=Math.floor(Math.random()*200);this.xi3=new KMZ;if("challenge"in y&&$QE(y.challenge)){var c=_.RE(y.challenge,4,void 0,IV);var Z=_.RE(y.challenge,5,void 0,IV);_.RE(y.challenge,7,void 0,IV)&&(this.xi3=OgW(_.RE(y.challenge,7,void 0,IV)))}else c=y.program,Z=y.globalName;this.addOnDisposeCallback(function(){var N,P,V;return _.m(function(Q){if(Q.nextAddress==1)return _.n(Q,W.kY9,2);N=Q.yieldResult;P=N.ahk;(V=P)==null||V();_.F2(Q)})});
this.logger=zef(y.g3||{},this.xi3,y.tX2);_.zY(this,this.logger);var G=new _.WK;this.kY9=G.promise;this.logger.cT("t");var D=this.logger.share(),Y=new Xki(D,"t"),u=function(N,P,V,Q){if(!W.logger.isDisposed()){var S="k";P?S="h":V&&(S="u");S!=="k"?Q!==0&&(W.logger.cT(S),W.logger.hI(S,N)):W.fq3<=0?(W.logger.cT(S),W.logger.hI(S,N),W.fq3=Math.floor(Math.random()*200)):W.fq3--}},t=function(N,P,V,Q){Promise.resolve().then(function(){Y.done();
D.vG();D.dispose();G.resolve({fk6:N,ahk:P,dA4:V,tqk:Q})})};
if(!_.DH[Z])throw this.logger.logError(25),Error("Ga");if(!_.DH[Z].a)throw this.logger.logError(26),Error("Ha");try{var b=_.DH[Z].a;Z=[];for(var r=[],F=RTh(this.xi3),K=0;K<F.length;K++)Z.push(F[K]),r.push(1);var l=lLh(this.xi3);for(F=0;F<l.length;F++)Z.push(l[F]),r.push(2);this.n7P=_.z(b(c,t,!0,y.xJp,u,[Z,r],_.RE(this.xi3,5))).next().value;this.ke4=G.promise.then(function(){})}catch(N){throw this.logger.logError(28),N;
}};
_.R(_.lU,_.UR);_.lU.prototype.snapshot=function(y){if(this.isDisposed())throw Error("Ia");this.logger.cT("n");var W=this.logger.share();return this.kY9.then(function(c){var Z=c.fk6;return new Promise(function(G){var D=new Xki(W,"n");Z(function(Y){D.done();W.yAd(Y.length);W.vG();W.dispose();G(Y)},[y.mK,
y.aE3,y.bw3,y.rDJ])})})};
_.grV=function(y,W){if(y.isDisposed())throw Error("Ia");y.logger.cT("n");var c=R4(y.logger,function(){return y.n7P([W.mK,W.aE3,W.bw3,W.rDJ])},"n");
y.logger.yAd(c.length);y.logger.vG();return c};
_.lU.prototype.d0U=function(y){this.kY9.then(function(W){var c;(c=W.dA4)==null||c(y)})};
_.lU.prototype.wen=function(y,W){return this.kY9.then(function(c){var Z;return(Z=c.tqk)==null?void 0:Z(y,W,!1)})};
_.lU.prototype.o63=function(){return this.logger.share()};var RKZ=function(){this.c6J={};this.ahB=null},ldi=function(){RKZ.instance||(RKZ.instance=new RKZ);
return RKZ.instance},NL8=function(y,W){return Er5(y,_.il(W,low,1,IV),_.il(W,_.EOh,2,IV),_.RE(W,3,void 0,IV))},Er5=function(y,W,c,Z){if(!W&&!c)return Promise.resolve();
if(!Z)return uWg(W,c);var G;(G=y.c6J)[Z]||(G[Z]=new Promise(function(D,Y){uWg(W,c).then(function(){y.ahB=Z;D()},function(u){delete y.c6J[Z];
Y(u)})}));
return y.c6J[Z]};var IdW=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(IdW,_.eD);var pkm=function(y,W){return _.a0(y,1,W)},PCW=function(y,W){return _.a0(y,2,W)};var Ep=function(y){_.UR.call(this);var W=this;this.options=y;this.wg3=new _.WK;this.ke4=this.wg3.promise;this.iT4=new _.WK;this.o1L=1;this.tPn=new _.WK;this.xyu=[];this.lv3=y.lv3||function(){};
this.logger=new bg3(zef(y.g3||{}));Jo0(this,y.zl,y.eKD,y.uSG,y.ypI,Object.assign({},VZ5,y.xE3||{}));this.addOnDisposeCallback(function(){return void CCE(W)})};
_.R(Ep,_.UR);Ep.prototype.snapshot=function(y){var W=this;return _.m(function(c){switch(c.nextAddress){case 1:if(W.isDisposed())throw Error("Ia");if(W.i9||W.iUo){c.jumpTo(2);break}return _.n(c,W.iT4.promise,2);case 2:if(!W.i9){c.jumpTo(4);break}return _.n(c,W.i9.snapshot(y),5);case 5:return c.return(c.yieldResult);case 4:throw W.iUo;}})};
var Qe3=function(y){var W;return _.m(function(c){if(y.isDisposed())throw Error("Ia");(W=y.rF)!=null&&(W.endTimeMs=0,W.resolver(1));return _.n(c,y.tPn.promise,0)})},CCE=function(y){y.iUo=Error("Ka");
y.iT4.resolve();ENf(y.wg3.promise);y.wg3.reject(Error("Ka"));y.logger.dispose();Promise.all(y.xyu).then(function(){var c;return _.m(function(Z){(c=y.i9)==null||c.dispose();y.i9=void 0;_.F2(Z)})});
y.xyu=[];var W;(W=y.rF)!=null&&(W.endTimeMs=0,W.resolver(1));ENf(y.tPn.promise);y.tPn.reject(Error("Ka"))};
Ep.prototype.d0U=function(y){var W,c;(W=this.i9)==null||(c=W.d0U)==null||c.call(W,y)};
Ep.prototype.wen=function(y,W){var c,Z,G;return(G=(c=this.i9)==null?void 0:(Z=c.wen)==null?void 0:Z.call(c,y,W))!=null?G:Promise.resolve()};
var Ao8=function(y,W){var c=y.lv3;y.lv3=function(){c();W()}},hK2=function(y,W){y.isDisposed()||(y.i9=W,y.logger.update(W.o63()),y.iT4.resolve(),y.wg3.resolve(void 0),y.lv3())};
Ep.prototype.handleError=function(y){if(!this.isDisposed()){this.iUo=y;this.iT4.resolve();var W,c;(c=(W=this.options).ntX)==null||c.call(W,y)}};
var BLJ=function(y,W){W&&(Promise.all(y.xyu).then(function(){return void W.dispose()}),y.xyu=[])},NK=function(y,W){y.o1L=W;
var c,Z;(Z=(c=y.options).qQA)==null||Z.call(c,W)},HgJ=function(y){y.isDisposed()||(y.tPn.resolve(),y.tPn=new _.WK)},Jo0=function(y,W,c,Z,G,D){Z=Z===void 0?ldi():Z;
G=G===void 0?Promise.resolve(void 0):G;var Y,u,t,b,r,F,K,l,N,P,V,Q;_.m(function(S){switch(S.nextAddress){case 1:return _.n(S,0,3);case 3:u=null;if(!Y){S.jumpTo(6);break}NK(y,7);_.tm(S,7);return _.n(S,bC(Y.snapshot({}),D.rrx,function(){return Promise.resolve("E:CTO")}),9);
case 9:u=S.yieldResult;_.J6(S,6);break;case 7:_.rs(S),u="E:UCE";case 6:t=void 0,b=Y?D.ky6:D.rlX,r=new fg(b,D.xxp,D.zV3,D.sY6),F=1;case 10:if(!(F<=D.maxAttempts)){S.jumpTo(12);break}if(F===1){S.jumpTo(13);break}NK(y,0);y.rF=new LMZ(r.getValue(),D.eL4,D.wdX);return _.n(S,y.rF.promise,14);case 14:K=S.yieldResult,y.rF=void 0,K===1?(F=1,r.reset()):q$W(r);case 13:_.tm(S,15);l=void 0;if(c){l=c;S.jumpTo(17);break}NK(y,5);N=Z.ahB;return _.n(S,bC(vrQ(W,N,u),D.xgx,function(){return Promise.reject(Error("La"))}),
18);
case 18:l=S.yieldResult;case 17:return NK(y,3),_.n(S,bC(NL8(Z,l),D.kL3,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return NK(y,8),_.n(S,G,20);case 20:return P=new _.lU({challenge:l,g3:y.options.g3,xJp:y.options.xJp}),_.n(S,bC(P.ke4,D.yWB,function(){return Promise.reject(Error("Na"))}),21);
case 21:t=P;S.jumpTo(12);break;case 15:V=_.rs(S),y.handleError(V),HgJ(y);case 11:F++;S.jumpTo(10);break;case 12:if(y.isDisposed()){S.jumpTo(5);break}t&&(c=void 0,BLJ(y,Y),Y=t,hK2(y,t),HgJ(y));NK(y,2);y.rF=new LMZ(D.cds,D.eL4,D.wdX);return _.n(S,y.rF.promise,22);case 22:y.rF=void 0;if(y.isDisposed()){S.jumpTo(5);break}S.jumpTo(3);break;case 5:(Q=Y)==null||Q.dispose(),_.F2(S)}})};
Ep.prototype.o63=function(){return this.logger.share()};
var VZ5={cds:432E5,eL4:3E5,wdX:10,rrx:1E4,xgx:3E4,kL3:3E4,yWB:6E4,rlX:1E3,ky6:6E4,xxp:6E5,zV3:.25,sY6:2,maxAttempts:10},LMZ=function(y,W,c){var Z=this;this.endTimeMs=Date.now()+y;this.promise=new Promise(function(D){Z.resolver=D});
var G=function(){var D=Z.endTimeMs-Date.now();D<=c?Z.resolver(0):setTimeout(G,Math.min(D,W))};
G()};var dQJ,X7E=(dQJ=Math.imul)!=null?dQJ:function(y,W){return y*W|0},rL=[196,
200,224,18],I4=function(y,W,c){c=c===void 0?[]:c;this.maxItems=y;this.yb=W===void 0?0:W;this.qp=c},SR8=function(y){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!W)return new I4(y);var c=W.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new I4(y);W=c.slice(1);W.length===1&&W[0]===""&&(W=[]);c=Number(c[0]);return isNaN(c)||c<0||c>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new I4(y)):new I4(y,c,W)};
I4.prototype.serialize=function(){return String(this.yb)+","+this.qp.join()};
I4.prototype.insert=function(y,W){var c=void 0;if(this.qp[this.yb]!==y){var Z=this.qp.indexOf(y);Z!==-1?(this.qp.splice(Z,1),Z<this.yb&&this.yb--,this.qp.splice(this.yb,0,y)):(c=this.qp[this.yb],this.qp[this.yb]=y)}this.yb=(this.yb+1)%this.maxItems;y=t51("iU5q-!O9@$",this.serialize());c&&y&&W(c);return y};
var TLZ=function(y,W){this.logger=W;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Z){c=!1}c&&(this.index=SR8(y))},ad0=function(y,W,c,Z,G){var D=y.index?R4(y.logger,function(){return UCa(y.index,r6D(W),c,Z,G)},"W"):"u";
y.logger.qHd(D)},xQZ=function(y,W,c){var Z=_.z(y.index?R4(y.logger,function(){return $CH(r6D(W),c)},"R"):["u"]),G=Z.next().value;
Z=Z.next().value;y.logger.yj9(G);return Z};var ig8={toString:function(y){var W=[],c=0;y-=-2147483648;W[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(y%52);for(y=Math.floor(y/52);y>0;)W[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(y%62),y=Math.floor(y/62);return W.join("")}};var wk8=function(y){y=MZ0(y);for(var W=2654435769,c=2654435769,Z=314159265,G=y.length,D=G,Y=0,u=function(){W-=c;W-=Z;W^=Z>>>13;c-=Z;c-=W;c^=W<<8;Z-=W;Z-=c;Z^=c>>>13;W-=c;W-=Z;W^=Z>>>12;c-=Z;c-=W;c^=W<<16;Z-=W;Z-=c;Z^=c>>>5;W-=c;W-=Z;W^=Z>>>3;c-=Z;c-=W;c^=W<<10;Z-=W;Z-=c;Z^=c>>>15};D>=12;D-=12,Y+=12)W+=eKE(y,Y),c+=eKE(y,Y+4),Z+=eKE(y,Y+8),u();
Z+=G;switch(D){case 11:Z+=y[Y+10]<<24;case 10:Z+=y[Y+9]<<16;case 9:Z+=y[Y+8]<<8;case 8:c+=y[Y+7]<<24;case 7:c+=y[Y+6]<<16;case 6:c+=y[Y+5]<<8;case 5:c+=y[Y+4];case 4:W+=y[Y+3]<<24;case 3:W+=y[Y+2]<<16;case 2:W+=y[Y+1]<<8;case 1:W+=y[Y]}u();return ig8.toString(Z)},MZ0=function(y){for(var W=[],c=0;c<y.length;c++)W.push(y.charCodeAt(c));
return W},eKE=function(y,W){return y[W]+(y[W+1]<<8)+(y[W+2]<<16)+(y[W+3]<<24)};var qR2,p$=function(y){_.UR.call(this);this.logger=y;this.nSv=new _.WK;this[qR2]=this.dispose};
_.R(p$,_.UR);var kYT=function(y,W){var c=setTimeout(function(){y.nSv.resolve()},W);
y.addOnDisposeCallback(function(){return void clearTimeout(c)})};
p$.prototype.w3=function(y,W){var c=this.sD(y);W==null||W(c);return R4(this.logger,function(){return _.OB(c,2)},this.b7a)};
var j2J=function(y,W,c,Z){return R4(y.logger,function(){return c?y.w3(W,Z):y.sD(W,Z)},y.c5)};
qR2=Symbol.dispose;var yl5=function(y,W,c,Z){p$.call(this,y);this.c46=W;this.nzp=c;this.c5="m";this.b7a="x";this.dWD=0;kYT(this,Z)};
_.R(yl5,p$);yl5.prototype.sD=function(y,W){var c=this;this.logger.cT(this.c5);++this.dWD>=this.nzp&&this.nSv.resolve();var Z=y();y=R4(this.logger,function(){return c.c46(Z)},"C");
if(y===void 0)throw new ML(17,"YNJ:Undefined");if(!(y instanceof Uint8Array))throw new ML(18,"ODM:Invalid");W==null||W(y);return y};
var WTm=function(y,W,c){p$.call(this,y);this.smh=W;this.c5="f";this.b7a="z";kYT(this,c)};
_.R(WTm,p$);WTm.prototype.sD=function(){return this.smh};
var clT=function(y,W,c){p$.call(this,y);this.fr3=W;this.c5="w";this.b7a="z";kYT(this,c)};
_.R(clT,p$);clT.prototype.sD=function(){var y=this;return R4(this.logger,function(){return _.cJ(y.fr3)},"d")};
clT.prototype.w3=function(){return this.fr3};
var ZL2=function(y,W){p$.call(this,y);this.error=W;this.c5="e";this.b7a="y"};
_.R(ZL2,p$);var G9Z=function(y,W){var c=(W(y.error.message)+":"+W(y.error.stack)).substring(0,2048);W=c.length+1;c=K9g(c);var Z=new Uint8Array(4+c.length);Z.set([42,W&127|128,W>>7,y.error.code]);Z.set(c,4);return Z};
ZL2.prototype.sD=function(){if(this.quL)return this.quL;this.quL=G9Z(this,function(y){return"_"+wk8(y)});
return G9Z(this,function(y){return y})};
var fS0=function(y,W,c){p$.call(this,y);this.rip=W;this.clientState=c;this.c5="S";this.b7a="q"};
_.R(fS0,p$);fS0.prototype.sD=function(){var y=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],c=W.concat([this.rip&255,this.clientState],[y>>24&255,y>>16&255,y>>8&255,y&255]);y=new Uint8Array(2+c.length);y[0]=34;y[1]=c.length;y.set(c,2);c=y.subarray(2);for(var Z=W=W.length;Z<c.length;++Z)c[Z]^=c[Z%W];this.logger.izE(this.clientState);return y};var okW={gE6:3E4,ocH:2E4},PP=function(y){_.UR.call(this);var W=this;this.chh=new _.WK;this.uv3=0;this.gx=void 0;this.state=2;this.pk=y.pk;this.zl=y.zl;this.xE3=Object.assign({},okW,y.xE3||{});this.logger=y.pk.o63();var c;this.onError=(c=y.onError)!=null?c:function(){};
this.uQ3=y.uQ3||!1;if(DP0(y)){var Z=this.pk;this.cZq=function(){return Qe3(Z).catch(function(Y){Y=W.reportError(new ML(W.oj?20:32,"TRG:Disposed",Y));W.gx=Y;var u;(u=W.oj)==null||u.dispose();W.oj=void 0;W.chh.reject(Y)})};
Ao8(Z,function(){return void zy0(W)});
Z.o1L===2&&zy0(this)}else this.cZq=y.nVl,zy0(this);var G=this.logger.share();G.cT("o");var D=new Xki(G,"o");this.chh.promise.then(function(){D.done();G.vG();G.dispose()},function(){return void G.dispose()});
this.addOnDisposeCallback(function(){W.oj?(W.oj.dispose(),W.oj=void 0):W.gx?W.logger.vG():(W.gx=W.reportError(new ML(32,"TNP:Disposed")),W.logger.vG(),W.chh.reject(W.gx))});
_.zY(this,this.logger)};
_.R(PP,_.UR);PP.prototype.yJE=function(){return this.chh.promise};
var YNJ=function(y,W){if(!(W instanceof ML))if(W instanceof _.F1){var c=Error(W.toString());c.stack=W.stack;W=new ML(11,"EBH:Error",c)}else W=new ML(12,"BSO:Unknown",W);return y.reportError(W)},zy0=function(y){var W,c,Z,G,D,Y,u,t,b,r,F,K,l,N,P;
return _.m(function(V){switch(V.nextAddress){case 1:W=void 0;y.uv3++;c=new _.WK;y.pk instanceof Ep&&y.pk.xyu.push(c.promise);if(!y.uQ3){V.jumpTo(2);break}Z=new _.WK;setTimeout(function(){return void Z.resolve()});
return _.n(V,Z.promise,2);case 2:return G=y.logger.share(),_.tm(V,4,5),y.state=5,D={},Y=[],_.n(V,bC(y.pk.snapshot({mK:D,bw3:Y}),y.xE3.ocH,function(){return Promise.reject(new ML(15,"MDA:Timeout"))}),7);
case 7:u=V.yieldResult;if(y.isDisposed())throw new ML(y.oj?20:32,"MDA:Disposed");t=Y[0];y.state=6;return _.n(V,bC(mPW(y.zl,u),y.xE3.gE6,function(){return Promise.reject(new ML(10,"BWB:Timeout"))}),8);
case 8:b=V.yieldResult;if(y.isDisposed())throw new ML(y.oj?20:32,"BWB:Disposed");y.state=7;W=R4(G,function(){var S=s2Z(y,b,c,t);S.nSv.promise.then(function(){return void y.cZq()});
return S},"i");
case 5:_.nc(V);G.dispose();_.bR(V,6);break;case 4:r=_.rs(V);(F=W)==null||F.dispose();if(!y.gx){K=YNJ(y,r);c.resolve();var Q;if(Q=y.pk instanceof Ep&&y.uv3<2)a:if(r instanceof ML)Q=r.code!==32&&r.code!==20&&r.code!==10;else{if(r instanceof _.F1)switch(r.code){case 2:case 13:case 14:case 4:break;default:Q=!1;break a}Q=!0}if(Q)return l=(1+Math.random()*.25)*(y.oj?6E4:1E3),N=setTimeout(function(){return void y.cZq()},l),y.addOnDisposeCallback(function(){return void clearTimeout(N)}),V.return();
y.gx=K}G.logError(y.oj?13:14);y.chh.reject(y.gx);return V.return();case 6:y.state=8,y.uv3=0,(P=y.oj)==null||P.dispose(),y.oj=W,y.chh.resolve(),_.F2(V)}})},s2Z=function(y,W,c,Z){var G=sdH(W,2)*1E3;
if(G<=0)throw new ML(31,"TTM:Invalid");if(_.RE(W,4))return new clT(y.logger,_.RE(W,4),G);if(!sdH(W,3))return new WTm(y.logger,MED(_.XY(W,1)),G);if(!Z)throw new ML(4,"PMD:Undefined");Z=Z(MED(_.XY(W,1)));if(!(Z instanceof Function))throw new ML(16,"APF:Failed");y.ipR=Math.floor((Date.now()+G)/1E3);y=new yl5(y.logger,Z,sdH(W,3),G);y.addOnDisposeCallback(function(){return void c.resolve()});
return y};
PP.prototype.sD=function(y){return u8i(this,Object.assign({},y),!1)};
PP.prototype.w3=function(y){return u8i(this,Object.assign({},y),!0)};
PP.prototype.hiv=function(y){if(y>150)return!1;try{return this.cache=new TLZ(y,this.logger),!0}catch(W){return this.reportError(new ML(22,"GBJ:init",W)),!1}};
PP.prototype.reportError=function(y){this.logger.logError(y.code);this.onError(y);return y};
var ttZ=function(y,W){W=W instanceof ML?W:new ML(5,"TVD:error",W);return y.reportError(W)},u8i=function(y,W,c){try{if(y.isDisposed())throw new ML(21,"BNT:disposed");
if(!y.oj&&y.gx)throw y.gx;var Z,G;return(G=(Z=nk2(y,W,c))!=null?Z:XaQ(y,W,c))!=null?G:bLQ(y,W,c)}catch(D){if(!W.b3e)throw ttZ(y,D);return rlW(y,c,D)}},nk2=function(y,W,c){var Z;
return(Z=y.oj)==null?void 0:j2J(Z,function(){return FT8(y,W)},c,function(G){var D;
if(y.oj instanceof yl5&&((D=W.oc)==null?0:D.aX3))try{var Y;(Y=y.cache)==null||ad0(Y,FT8(y,W),G,W.oc.cTl,y.ipR-120)}catch(u){y.reportError(new ML(24,"ELX:write",u))}})},XaQ=function(y,W,c){var Z;
if((Z=W.oc)!=null&&Z.nbs)try{var G,D=(G=y.cache)==null?void 0:xQZ(G,FT8(y,W),W.oc.cTl);return D?c?R4(y.logger,function(){return _.OB(D,2)},"a"):D:void 0}catch(Y){y.reportError(new ML(23,"RXO:read",Y))}},bLQ=function(y,W,c){var Z={stack:[],
error:void 0,hasError:!1};try{if(!W.jUk)throw new ML(29,"SDF:notready");return j2J(_.C6(Z,new fS0(y.logger,0,y.state)),function(){return FT8(y,W)},c)}catch(G){Z.error=G,Z.hasError=!0}finally{_.Q0(Z)}},rlW=function(y,W,c){var Z={stack:[],
error:void 0,hasError:!1};try{var G=ttZ(y,c);return j2J(_.C6(Z,new ZL2(y.logger,G)),function(){return[]},W)}catch(D){Z.error=D,Z.hasError=!0}finally{_.Q0(Z)}},FT8=function(y,W){return W.sxS?W.sxS:W.mK?R4(y.logger,function(){return W.sxS=K9g(W.mK)},"c"):[]},DP0=function(y){return C8(function(W){if(!NXh(W))return!1;
for(var c=_.z(Object.entries(y)),Z=c.next();!Z.done;Z=c.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;if(!(Z in W)){if(G.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!G(W[Z]))return!1}return!0})}({pk:function(y){return C8(function(W){return W instanceof y})}(Ep)},"");var Kgf=function(){var y=_.kR();this.JSC$7800_streamzService=y;y.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",ck("tick"),_.Wk("from_st_cookie"))};
Kgf.prototype.increment=function(y,W){this.JSC$7800_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",y,W)};
var UPJ=function(){var y=_.kR();this.JSC$7806_streamzService=y;y.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Zd("status"))};
UPJ.prototype.increment=function(y){this.JSC$7806_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",y)};
var $P2=function(){var y=_.kR();this.JSC$7809_streamzService=y;y.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Zd("stage"),_.Wk("is_using_ytd_player"),_.Wk("has_expandable_tiles"))};
$P2.prototype.increment=function(y,W,c){this.JSC$7809_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",y,W,c)};
var KT3=function(){var y=_.kR();this.JSC$7812_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/response_signature",_.Zd("check_status"))};
KT3.prototype.increment=function(y){this.JSC$7812_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/web/response_signature",y)};
var OL8=function(){var y=_.kR();this.JSC$7815_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Zd("sig"),ck("de"))};
OL8.prototype.increment=function(y,W){this.JSC$7815_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/web/e_sig_log",y,W)};
var gkE=function(){var y=_.kR();this.JSC$7818_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Zd("sig"),ck("de"))};
gkE.prototype.increment=function(y,W){this.JSC$7818_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/web/e_sig_en",y,W)};
_.Ry5=function(){var y=_.kR();this.JSC$7821_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Zd("action"))};
_.Ry5.prototype.increment=function(y){this.JSC$7821_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/web/enforcement_intent",y)};var kQD=function(){var y=_.kR();this.JSC$7824_streamzService=y;y.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.Zd("tagname"))};
kQD.prototype.increment=function(y){this.JSC$7824_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",y)};var JU=window;var lS5=(new Date).getTime();var Ek8=function(y){this.servicePromise_=y;y.then((0,_.$r)(function(){},this),function(){},this)},NV0=function(y,W,c){y.servicePromise_.then(function(Z){var G=Z[W];
if(!G)throw Error("Oa`"+W);return G.apply(Z,c)})},P7Z=function(y,W,c){for(var Z=Array(arguments.length-2),G=2;G<arguments.length;G++)Z[G-2]=arguments[G];
G=ISW(y,W).then(function(D){return D.apply(null,Z)},function(D){D=Error("Pa`"+W+"`"+y,{cause:D});
delete paE[W];return _.hG(D)});
return new Ek8(G)},paE={},ISW=function(y,W){var c=paE[W];
if(c)return c;c=(c=_.JW(W))?_.sc(c):(new _.fD(function(Z,G){var D=(new Uf(document)).createElement("SCRIPT");D.async=!0;_.eQ(D,_.rf(yn2(y)));D.onload=D.onreadystatechange=function(){D.readyState&&D.readyState!="loaded"&&D.readyState!="complete"||Z()};
D.onerror=function(Y){G(Error("Qa`"+W+"`"+y,{cause:Y}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(D)})).then(function(){var Z=_.JW(W);
if(!Z)throw Error("Ra`"+W+"`"+y);return Z});
return paE[W]=c};var JlV={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},C7E=function(){var y=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=ORI(function(){return _.m(function(W){if(W.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?W.return(Promise.resolve()):_.n(W,Vt3(y),2);y.rsaForList.length>
0&&document.addEventListener("click",y.requestAccessForHelpPanel);_.F2(W)})});
this.requestAccessForHelpPanel=function(){if(!(y.rsaForPromises.length>0)){for(var W=_.z(y.rsaForList),c=W.next();!c.done;c=W.next()){c=c.value;try{y.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(Z){}}Promise.all(y.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){y.reset()})}}};
C7E.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Vt3=function(y){var W,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:W=_.z(Object.values(JlV)),c=W.next();case 2:if(c.done){D.jumpTo(0);break}Z=c.value;_.tm(D,5);return _.n(D,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Z}),7);case 7:G=D.yieldResult;G.state!=="granted"&&y.rsaForList.push(Z);_.J6(D,3);break;case 5:_.rs(D);D.jumpTo(0);break;case 3:c=W.next(),D.jumpTo(2)}})};(new C7E).initialize();var Q25=function(y){this.JSC$7838_loader_=y};
Q25.prototype.startHelp=function(y){NV0(this.JSC$7838_loader_,"startHelp",arguments)};
Q25.prototype.JSC$7840_loadChatSupport=function(y){NV0(this.JSC$7838_loader_,"loadChatSupport",arguments)};
var hy5=function(y,W){W=W||{};y=P7Z(AlJ,"help.service.Lazy.create",y,{apiKey:W.apiKey||W.apiKey,asxUiUri:W.asxUiUri||W.asxUiUri,environment:W.environment||W.environment,flow:W.flow||W.flow,frdProductData:W.frdProductData||W.frdProductData,frdProductDataSerializedJspb:W.frdProductDataSerializedJspb||W.frdProductDataSerializedJspb,helpCenterPath:W.helpCenterPath||W.helpCenterPath,locale:W.locale||W.locale||"en-US".replace(/-/g,"_"),nonce:W.nonce||W.nonce,productData:W.productData||W.productData,receiverUri:W.receiverUri||
W.receiverUri,renderApiUri:W.renderApiUri||W.renderApiUri,theme:W.theme||W.theme,window:W.window||W.window});return new Q25(y)},AlJ=new Is(nYI,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var BVV=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(BVV,_.eD);var HLZ=_.ze(BVV);new Uint8Array([]);_.LTi=new function(y,W,c,Z){this.configType=y;this.flagName=c;this.defaultValue=Z;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 dPE=function(){this.retriever=_.U().resolve(vkZ)};Reh(Node);Reh(Element);var SNE=Reh(HTMLElement);Reh(SVGElement);var TVm,aSE,Qh,xPW;TVm=function(y){return typeof y.className=="string"?y.className:y.getAttribute&&y.getAttribute("class")||""};
aSE=function(y){return y.classList?y.classList:TVm(y).match(/\S+/g)||[]};
_.Vh=function(y,W){typeof y.className=="string"?y.className=W:y.setAttribute&&y.setAttribute("class",W)};
_.C$=function(y,W){return y.classList?y.classList.contains(W):_.Hy(aSE(y),W)};
_.VE=function(y,W){if(y.classList)y.classList.add(W);else if(!_.C$(y,W)){var c=TVm(y);_.Vh(y,c+(c.length>0?" "+W:W))}};
Qh=function(y,W){if(y.classList)Array.prototype.forEach.call(W,function(G){_.VE(y,G)});
else{var c={};Array.prototype.forEach.call(aSE(y),function(G){c[G]=!0});
Array.prototype.forEach.call(W,function(G){c[G]=!0});
W="";for(var Z in c)W+=W.length>0?" "+Z:Z;_.Vh(y,W)}};
_.Ph=function(y,W){y.classList?y.classList.remove(W):_.C$(y,W)&&_.Vh(y,Array.prototype.filter.call(aSE(y),function(c){return c!=W}).join(" "))};
xPW=function(y,W){y.classList?Array.prototype.forEach.call(W,function(c){_.Ph(y,c)}):_.Vh(y,Array.prototype.filter.call(aSE(y),function(c){return!_.Hy(W,c)}).join(" "))};var iLE=function(y){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=y.document},waQ=function(y,W){Mt0(y);
var c=document.createElement("div"),Z;(Z=W.parentNode)==null||Z.insertBefore(c,W);c.tabIndex=0;c.id="fc-focus-trap-pre-div";c=document.createElement("div");var G;(G=W.parentNode)==null||G.insertBefore(c,W.nextSibling);c.tabIndex=0;c.id="fc-focus-trap-post-div";var D=eyT(y,W),Y=eyT(y,W,!0);D&&Y&&(y.focusChangeHandler=function(){var u=y.document.activeElement;if(u)if(_.Cg(W,u))y.previouslyFocusedElement=u;else if(u===y.document.activeElement)switch(y.previouslyFocusedElement){case D:Y.focus();y.previouslyFocusedElement=
Y;break;default:D.focus(),y.previouslyFocusedElement=D}},y.document.addEventListener("focus",y.focusChangeHandler,!0),y.document.addEventListener("focusin",y.focusChangeHandler))},Mt0=function(y){y.focusChangeHandler&&(document.removeEventListener("focus",y.focusChangeHandler,!0),document.removeEventListener("focusin",y.focusChangeHandler),y.focusChangeHandler=null);
var W;(W=document.getElementById("fc-focus-trap-pre-div"))==null||W.remove();var c;(c=document.getElementById("fc-focus-trap-post-div"))==null||c.remove()},qNJ=function(y,W,c,Z,G){c=c===void 0?!0:c;
var D;G=(D=G===void 0?null:G)!=null?D:eyT(y,W,Z===void 0?!1:Z);G!==null&&(G.focus(),c&&waQ(y,W))};
iLE.prototype.disableButton=function(y,W){W=W===void 0?null:W;y.disabled=!0;W&&_.VE(y,W)};
var eyT=function(y,W,c){c=c===void 0?!1:c;if(Pst(W)&&!c)return W;var Z=c?[].slice.call(W.children,0).reverse():W.children;Z=_.z(Z);for(var G=Z.next();!G.done;G=Z.next())if(G=G.value,SNE(G)&&(G=eyT(y,G,c)))return G;return Pst(W)&&c?W:null};var k95=function(y){this.originalBodyOverflow="";this.JSC$7866_domHelper=FF(y)};_.j6(_.Kg,_.UR);_.f=_.Kg.prototype;_.f.JSC$7869_id_=0;_.f.disposeInternal=function(){_.Kg.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7867_listener_;delete this.handler_};
_.f.start=function(y){this.stop();this.JSC$7869_id_=ra(this.callback_,y!==void 0?y:this.JSC$7867_interval_)};
_.f.stop=function(){this.isActive()&&_.DH.clearTimeout(this.JSC$7869_id_);this.JSC$7869_id_=0};
_.f.fire=function(){this.stop();this.JSC$7869_doAction_()};
_.f.isActive=function(){return this.JSC$7869_id_!=0};
_.f.JSC$7869_doAction_=function(){this.JSC$7869_id_=0;this.JSC$7867_listener_&&this.JSC$7867_listener_.call(this.handler_)};_.q4=function(y){_.UR.call(this);this.handler_=y;this.JSC$7870_keys_={}};
_.j6(_.q4,_.UR);var j8W=[];_.q4.prototype.listen=function(y,W,c,Z){Array.isArray(W)||(W&&(j8W[0]=W.toString()),W=j8W);for(var G=0;G<W.length;G++){var D=_.Y0(y,W[G],c||this.handleEvent,Z||!1,this.handler_||this);if(!D)break;this.JSC$7870_keys_[D.key]=D}return this};
_.q4.prototype.listenOnce=function(y,W,c,Z){return yWE(this,y,W,c,Z)};
var yWE=function(y,W,c,Z,G,D){if(Array.isArray(c))for(var Y=0;Y<c.length;Y++)yWE(y,W,c[Y],Z,G,D);else{W=fN(W,c,Z||y.handleEvent,G,D||y.handler_||y);if(!W)return y;y.JSC$7870_keys_[W.key]=W}return y};
_.q4.prototype.unlisten=function(y,W,c,Z,G){if(Array.isArray(W))for(var D=0;D<W.length;D++)this.unlisten(y,W[D],c,Z,G);else if(y=R98(y,W,c||this.handleEvent,_.q1(Z)?!!Z.capture:!!Z,G||this.handler_||this))o9(y),delete this.JSC$7870_keys_[y.key];return this};
_.q4.prototype.removeAll=function(){_.Eb.forEach(this.JSC$7870_keys_,function(y,W){this.JSC$7870_keys_.hasOwnProperty(W)&&o9(y)},this);
this.JSC$7870_keys_={}};
_.q4.prototype.disposeInternal=function(){_.q4.superClass_.disposeInternal.call(this);this.removeAll()};
_.q4.prototype.handleEvent=function(){throw Error("Sa");};var AU=function(){_.UR.call(this);this.services_={}};
_.j6(AU,_.UR);_.f=AU.prototype;_.f.logger=null;_.f.connect=function(y){y&&y()};
_.f.isConnected=function(){return!0};
_.f.registerService=function(y,W,c){this.services_[y]={callback:W,objectPayload:!!c}};
_.f.getService=function(y,W){var c=this.services_[y];return c?c:this.defaultService_?{callback:_.Fr(this.defaultService_,y),objectPayload:_.q1(W)}:null};
var WC0=function(y,W){if(W&&typeof y==="string")try{return JSON.parse(y)}catch(c){return null}else if(!W&&typeof y!=="string")return(0,_.Up)(y);return y};
AU.prototype.disposeInternal=function(){AU.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 hU=function(y,W){this.sequence_=[];this.onCancelFunction_=y;this.defaultScope_=W||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
hU.prototype.cancel=function(y){if(this.fired_)this.result_ instanceof hU&&this.result_.cancel();else{if(this.parent_){var W=this.parent_;delete this.parent_;y?W.cancel(y):(W.branches_--,W.branches_<=0&&W.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new BP(this))}};
hU.prototype.continue_=function(y,W){this.blocked_=!1;cWT(this,y,W)};
var cWT=function(y,W,c){y.fired_=!0;y.result_=c;y.hadError_=!W;Zjm(y)},fLE=function(y){if(y.fired_){if(!y.silentlyCanceled_)throw new GwV(y);
y.silentlyCanceled_=!1}};
hU.prototype.callback=function(y){fLE(this);cWT(this,!0,y)};
hU.prototype.errback=function(y){fLE(this);cWT(this,!1,y)};
var oN3=function(y,W,c){HP(y,W,null,c)};
hU.prototype.finally=function(y){var W=this;return new Promise(function(c,Z){HP(W,function(G){y();c(G)},function(G){y();
Z(G)})})};
var HP=function(y,W,c,Z){var G=y.fired_;G||(W===c?W=c=tU(W):(W=tU(W),c=tU(c)));y.sequence_.push([W,c,Z]);G&&Zjm(y)};
hU.prototype.then=function(y,W,c){var Z,G,D=new _.fD(function(Y,u){G=Y;Z=u});
HP(this,G,function(Y){Y instanceof BP?D.cancel():Z(Y);return DnE},this);
return D.then(y,W,c)};
VLE(hU);var zTT=function(y,W){W instanceof hU?oN3(y,(0,_.$r)(W.branch,W)):oN3(y,function(){return W})};
hU.prototype.branch=function(y){var W=new hU;HP(this,W.callback,W.errback,W);y&&(W.parent_=this,this.branches_++);return W};
hU.prototype.isError=function(y){return y instanceof Error};
var YET=function(y){return Av(y.sequence_,function(W){return typeof W[1]==="function"})},DnE={},Zjm=function(y){if(y.unhandledErrorId_&&y.fired_&&YET(y)){var W=y.unhandledErrorId_,c=mnm[W];
c&&(_.DH.clearTimeout(c.JSC$7887_id_),delete mnm[W]);y.unhandledErrorId_=0}y.parent_&&(y.parent_.branches_--,delete y.parent_);W=y.result_;for(var Z=c=!1;y.sequence_.length&&!y.blocked_;){var G=y.sequence_.shift(),D=G[0],Y=G[1];G=G[2];if(D=y.hadError_?Y:D)try{var u=D.call(G||y.defaultScope_,W);u===DnE&&(u=void 0);u!==void 0&&(y.hadError_=y.hadError_&&(u==W||y.isError(u)),y.result_=W=u);if(CGi(W)||typeof _.DH.Promise==="function"&&W instanceof _.DH.Promise)Z=!0,y.blocked_=!0}catch(t){W=t,y.hadError_=
!0,YET(y)||(c=!0)}}y.result_=W;Z&&(u=(0,_.$r)(y.continue_,y,!0),Z=(0,_.$r)(y.continue_,y,!1),W instanceof hU?(HP(W,u,Z),W.blocking_=!0):W.then(u,Z));c&&(W=new s82(W),mnm[W.JSC$7887_id_]=W,y.unhandledErrorId_=W.JSC$7887_id_)},GwV=function(){_.yw.call(this)};
_.j6(GwV,_.yw);GwV.prototype.message="Deferred has already fired";GwV.prototype.name="AlreadyCalledError";var BP=function(){_.yw.call(this)};
_.j6(BP,_.yw);BP.prototype.message="Deferred was canceled";BP.prototype.name="CanceledError";var s82=function(y){this.JSC$7887_id_=_.DH.setTimeout((0,_.$r)(this.throwError,this),0);this.JSC$7887_error_=y};
s82.prototype.throwError=function(){delete mnm[this.JSC$7887_id_];throw this.JSC$7887_error_;};
var mnm={};var ulV={1:"NativeMessagingTransport"},tyW=["pu","lru","pru","lpu","ppu"],XIJ=function(){for(var y=10,W=nNW,c=W.length,Z="";y-- >0;)Z+=W.charAt(Math.floor(Math.random()*c));return Z},nNW="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var L$=function(y){_.UR.call(this);this.JSC$7890_domHelper_=y||FF()};
_.j6(L$,_.UR);L$.prototype.transportType=0;L$.prototype.getWindow=function(){return this.JSC$7890_domHelper_.getWindow()};
L$.prototype.getName=function(){return ulV[String(this.transportType)]||""};var vP=function(y,W,c,Z,G){L$.call(this,c);this.JSC$7893_channel_=y;this.protocolVersion_=G||2;this.peerHostname_=W||"*";this.JSC$7893_eventHandler_=new _.q4(this);this.maybeAttemptToConnectTimer_=new _.wJ(100,this.getWindow());this.oneSidedHandshake_=!!Z;this.setupAckReceived_=new hU;this.setupAckSent_=new hU;this.JSC$7893_connected_=new hU;this.endpointId_=XIJ();this.peerEndpointId_=null;this.oneSidedHandshake_?bj2(this.JSC$7893_channel_)==1?zTT(this.JSC$7893_connected_,this.setupAckReceived_):
zTT(this.JSC$7893_connected_,this.setupAckSent_):(zTT(this.JSC$7893_connected_,this.setupAckReceived_),this.protocolVersion_==2&&zTT(this.JSC$7893_connected_,this.setupAckSent_));oN3(this.JSC$7893_connected_,this.notifyConnected_,this);this.JSC$7893_connected_.callback(!0);this.JSC$7893_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.j6(vP,L$);vP.prototype.peerProtocolVersion_=null;vP.prototype.initialized_=!1;vP.prototype.transportType=1;var rWQ={};vP.prototype.sendTimerId_=0;
var $ni=function(y){var W=y.event_.data;if(typeof W!=="string")return!1;var c=W.indexOf("|"),Z=W.indexOf(":");if(c==-1||Z==-1)return!1;var G=W.substring(0,c);c=W.substring(c+1,Z);W=W.substring(Z+1);if(Z=da[G])return Z.xpcDeliver(c,W,y.event_.origin),!0;Z=FC3(W)[0];for(var D in da){var Y=da[D];if(bj2(Y)==1&&!Y.isConnected()&&c=="tp"&&(Z=="SETUP"||Z=="SETUP_NTPV2")&&Unm(Y,y.event_.origin))return delete da[Y.name],Y.name=G,da[G]=Y,Y.xpcDeliver(c,W),!0}return!1},KC0=function(y){y.protocolVersion_!=2||
y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=2||y.send("tp","SETUP_NTPV2,"+y.endpointId_);
y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=1||y.send("tp","SETUP")},Oj5=function(y,W){if(y.protocolVersion_!=2||y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=2||W!=2){if(y.peerProtocolVersion_!=null&&y.peerProtocolVersion_!=1||W!=1)return;
y.send("tp","SETUP_ACK")}else y.send("tp","SETUP_ACK_NTPV2");y.setupAckSent_.fired_||y.setupAckSent_.callback(!0)},gN2=function(y,W){W>y.peerProtocolVersion_&&(y.peerProtocolVersion_=W);
y.peerProtocolVersion_==1&&(y.setupAckSent_.fired_||y.oneSidedHandshake_||y.setupAckSent_.callback(!0),y.peerEndpointId_=null)};
_.f=vP.prototype;_.f.connect=function(){var y=this.getWindow(),W=_.kF(y),c=rWQ[W];typeof c!=="number"&&(c=0);c==0&&_.Y0(y.postMessage?y:y.document,"message",$ni,!1,vP);rWQ[W]=c+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.f.maybeAttemptToConnect_=function(){var y=bj2(this.JSC$7893_channel_)==0;this.oneSidedHandshake_&&y||this.JSC$7893_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),KC0(this))};
_.f.send=function(y,W){var c=this.JSC$7893_channel_.peerWindowObject_;c&&(this.send=function(Z,G){var D=this,Y=this.JSC$7893_channel_.name;this.sendTimerId_=ra(function(){D.sendTimerId_=0;try{var u=c.postMessage?c:c.document;u.postMessage&&u.postMessage(Y+"|"+Z+":"+G,D.peerHostname_)}catch(t){}},0)},this.send(y,W))};
_.f.notifyConnected_=function(){var y=this.JSC$7893_channel_,W=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;y.isConnected()||y.connectionDelay_&&y.connectionDelay_.isActive()||(y.state_=2,_.Mg(y.connectionDelay_),W!==void 0?(y.connectionDelay_=new _.Kg(y.connectCb_,W),y.connectionDelay_.start()):(y.connectionDelay_=null,y.connectCb_()))};
_.f.disposeInternal=function(){if(this.initialized_){var y=this.getWindow(),W=_.kF(y),c=rWQ[W];rWQ[W]=c-1;c==1&&_.sp(y.postMessage?y:y.document,"message",$ni,!1,vP)}this.sendTimerId_&&(_.DH.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Mg(this.JSC$7893_eventHandler_);delete this.JSC$7893_eventHandler_;_.Mg(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7893_connected_.cancel();delete this.JSC$7893_connected_;delete this.send;vP.superClass_.disposeInternal.call(this)};
var FC3=function(y){y=y.split(",");y[1]=y[1]||null;return y};_.Sw=function(y){if(y.getValues&&typeof y.getValues=="function")return y.getValues();if(typeof Map!=="undefined"&&y instanceof Map||typeof Set!=="undefined"&&y instanceof Set)return Array.from(y.values());if(typeof y==="string")return y.split("");if(_.TO(y)){for(var W=[],c=y.length,Z=0;Z<c;Z++)W.push(y[Z]);return W}return _.Eb.getValues(y)};
_.RTm=function(y){if(y.getKeys&&typeof y.getKeys=="function")return y.getKeys();if(!y.getValues||typeof y.getValues!="function"){if(typeof Map!=="undefined"&&y instanceof Map)return Array.from(y.keys());if(!(typeof Set!=="undefined"&&y instanceof Set)){if(_.TO(y)||typeof y==="string"){var W=[];y=y.length;for(var c=0;c<y;c++)W.push(c);return W}return _.Eb.getKeys(y)}}};
_.lLm=function(y,W,c){if(y.forEach&&typeof y.forEach=="function")y.forEach(W,c);else if(_.TO(y)||typeof y==="string")Array.prototype.forEach.call(y,W,c);else for(var Z=_.RTm(y),G=_.Sw(y),D=G.length,Y=0;Y<D;Y++)W.call(c,G[Y],Z&&Z[Y],y)};var Pcg,wa,kp,C1J,Nj8,ENE,pIW,IL3,VyV,P1E;
_.Tr=function(y,W){this.JSC$7898_domain_=this.userInfo_=this.scheme_="";this.JSC$7898_port_=null;this.fragment_=this.JSC$7898_path_="";this.JSC$7898_ignoreCase_=!1;var c;y instanceof _.Tr?(this.JSC$7898_ignoreCase_=W!==void 0?W:y.JSC$7898_ignoreCase_,_.TF(this,y.scheme_),this.userInfo_=y.userInfo_,_.a4(this,y.JSC$7898_domain_),_.xp(this,y.JSC$7898_port_),_.iU(this,y.getPath()),_.MK(this,y.JSC$7898_queryData_.clone()),_.ew(this,y.fragment_)):y&&(c=_.Lj(String(y)))?(this.JSC$7898_ignoreCase_=!!W,_.TF(this,
c[1]||"",!0),this.userInfo_=wa(c[2]||""),_.a4(this,c[3]||"",!0),_.xp(this,c[4]),_.iU(this,c[5]||"",!0),_.MK(this,c[6]||"",!0),_.ew(this,c[7]||"",!0)):(this.JSC$7898_ignoreCase_=!!W,this.JSC$7898_queryData_=new _.qK(null,this.JSC$7898_ignoreCase_))};
_.Tr.prototype.toString=function(){var y=[],W=this.scheme_;W&&y.push(kp(W,ENE,!0),":");var c=this.JSC$7898_domain_;if(c||W=="file")y.push("//"),(W=this.userInfo_)&&y.push(kp(W,ENE,!0),"@"),y.push(Nj8(_.Cj(c))),c=this.JSC$7898_port_,c!=null&&y.push(":",String(c));if(c=this.getPath())this.JSC$7898_domain_&&c.charAt(0)!="/"&&y.push("/"),y.push(kp(c,c.charAt(0)=="/"?IL3:pIW,!0));(c=this.JSC$7898_queryData_.toString())&&y.push("?",c);(c=this.fragment_)&&y.push("#",kp(c,P1E));return y.join("")};
_.Tr.prototype.resolve=function(y){var W=this.clone(),c=!!y.scheme_;c?_.TF(W,y.scheme_):c=!!y.userInfo_;c?W.userInfo_=y.userInfo_:c=!!y.JSC$7898_domain_;c?_.a4(W,y.JSC$7898_domain_):c=y.JSC$7898_port_!=null;var Z=y.getPath();if(c)_.xp(W,y.JSC$7898_port_);else if(c=!!y.JSC$7898_path_){if(Z.charAt(0)!="/")if(this.JSC$7898_domain_&&!this.JSC$7898_path_)Z="/"+Z;else{var G=W.getPath().lastIndexOf("/");G!=-1&&(Z=W.getPath().slice(0,G+1)+Z)}G=Z;if(G==".."||G==".")Z="";else if(_.Xh(G,"./")||_.Xh(G,"/.")){Z=
_.mE(G,"/");G=G.split("/");for(var D=[],Y=0;Y<G.length;){var u=G[Y++];u=="."?Z&&Y==G.length&&D.push(""):u==".."?((D.length>1||D.length==1&&D[0]!="")&&D.pop(),Z&&Y==G.length&&D.push("")):(D.push(u),Z=!0)}Z=D.join("/")}else Z=G}c?_.iU(W,Z):c=y.JSC$7898_queryData_.toString()!=="";c?_.MK(W,y.JSC$7898_queryData_.clone()):c=!!y.fragment_;c&&_.ew(W,y.fragment_);return W};
_.Tr.prototype.clone=function(){return new _.Tr(this)};
_.TF=function(y,W,c){y.scheme_=c?wa(W,!0):W;y.scheme_&&(y.scheme_=y.scheme_.replace(/:$/,""));return y};
_.a4=function(y,W,c){y.JSC$7898_domain_=c?wa(W,!0):W;return y};
_.xp=function(y,W){if(W){W=Number(W);if(isNaN(W)||W<0)throw Error("Ta`"+W);y.JSC$7898_port_=W}else y.JSC$7898_port_=null;return y};
_.Tr.prototype.getPath=function(){return this.JSC$7898_path_};
_.iU=function(y,W,c){y.JSC$7898_path_=c?wa(W,!0):W;return y};
_.MK=function(y,W,c){W instanceof _.qK?(y.JSC$7898_queryData_=W,JW3(y.JSC$7898_queryData_,y.JSC$7898_ignoreCase_)):(c||(W=kp(W,VyV)),y.JSC$7898_queryData_=new _.qK(W,y.JSC$7898_ignoreCase_));return y};
_.Hk=function(y,W,c){y.JSC$7898_queryData_.set(W,c);return y};
_.Bk=function(y,W){return y.JSC$7898_queryData_.get(W)};
_.ew=function(y,W,c){y.fragment_=c?wa(W):W;return y};
_.jm=function(y){_.Hk(y,"zx",Ao());return y};
_.ho=function(y,W){return y instanceof _.Tr?y.clone():new _.Tr(y,W)};
Pcg=function(y,W){y instanceof _.Tr||(y=_.ho(y));W instanceof _.Tr||(W=_.ho(W));return y.resolve(W)};
wa=function(y,W){return y?W?decodeURI(y.replace(/%25/g,"%2525")):decodeURIComponent(y):""};
kp=function(y,W,c){return typeof y==="string"?(y=encodeURI(y).replace(W,C1J),c&&(y=Nj8(y)),y):null};
C1J=function(y){y=y.charCodeAt(0);return"%"+(y>>4&15).toString(16)+(y&15).toString(16)};
Nj8=function(y){return y.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
ENE=/[#\/\?@]/g;pIW=/[#\?:]/g;IL3=/[#\?]/g;VyV=/[#\?@]/g;P1E=/#/g;_.qK=function(y,W){this.count_=this.keyMap_=null;this.encodedQuery_=y||null;this.JSC$7899_ignoreCase_=!!W};
_.yp=function(y){y.keyMap_||(y.keyMap_=new Map,y.count_=0,y.encodedQuery_&&nQZ(y.encodedQuery_,function(W,c){y.add(Tw(W),c)}))};
_.f=_.qK.prototype;_.f.getCount=function(){_.yp(this);return this.count_};
_.f.add=function(y,W){_.yp(this);this.encodedQuery_=null;y=Wg(this,y);var c=this.keyMap_.get(y);c||this.keyMap_.set(y,c=[]);c.push(W);this.count_+=1;return this};
_.f.remove=function(y){_.yp(this);y=Wg(this,y);return this.keyMap_.has(y)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(y).length,this.keyMap_.delete(y)):!1};
_.f.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.f.isEmpty=function(){_.yp(this);return this.count_==0};
_.f.containsKey=function(y){_.yp(this);y=Wg(this,y);return this.keyMap_.has(y)};
_.f.containsValue=function(y){var W=this.getValues();return _.Hy(W,y)};
_.f.forEach=function(y,W){_.yp(this);this.keyMap_.forEach(function(c,Z){c.forEach(function(G){y.call(W,G,Z,this)},this)},this)};
_.f.getKeys=function(){_.yp(this);for(var y=Array.from(this.keyMap_.values()),W=Array.from(this.keyMap_.keys()),c=[],Z=0;Z<W.length;Z++)for(var G=y[Z],D=0;D<G.length;D++)c.push(W[Z]);return c};
_.f.getValues=function(y){_.yp(this);var W=[];if(typeof y==="string")this.containsKey(y)&&(W=W.concat(this.keyMap_.get(Wg(this,y))));else{y=Array.from(this.keyMap_.values());for(var c=0;c<y.length;c++)W=W.concat(y[c])}return W};
_.f.set=function(y,W){_.yp(this);this.encodedQuery_=null;y=Wg(this,y);this.containsKey(y)&&(this.count_-=this.keyMap_.get(y).length);this.keyMap_.set(y,[W]);this.count_+=1;return this};
_.f.get=function(y,W){if(!y)return W;y=this.getValues(y);return y.length>0?String(y[0]):W};
_.Q8E=function(y,W,c){y.remove(W);c.length>0&&(y.encodedQuery_=null,y.keyMap_.set(Wg(y,W),_.SI(c)),y.count_+=c.length)};
_.qK.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var y=[],W=Array.from(this.keyMap_.keys()),c=0;c<W.length;c++){var Z=W[c],G=_.Cj(Z);Z=this.getValues(Z);for(var D=0;D<Z.length;D++){var Y=G;Z[D]!==""&&(Y+="="+_.Cj(Z[D]));y.push(Y)}}return this.encodedQuery_=y.join("&")};
_.qK.prototype.clone=function(){var y=new _.qK;y.encodedQuery_=this.encodedQuery_;this.keyMap_&&(y.keyMap_=new Map(this.keyMap_),y.count_=this.count_);return y};
var Wg=function(y,W){W=String(W);y.JSC$7899_ignoreCase_&&(W=W.toLowerCase());return W},JW3=function(y,W){W&&!y.JSC$7899_ignoreCase_&&(_.yp(y),y.encodedQuery_=null,y.keyMap_.forEach(function(c,Z){var G=Z.toLowerCase();
Z!=G&&(this.remove(Z),_.Q8E(this,G,c))},y));
y.JSC$7899_ignoreCase_=W};
_.qK.prototype.extend=function(y){for(var W=0;W<arguments.length;W++)_.lLm(arguments[W],function(c,Z){this.add(Z,c)},this)};var cg=function(y,W){AU.call(this);for(var c=0,Z;Z=tyW[c];c++)if(Z in y&&!/^https?:\/\//.test(y[Z]))throw Error("Va`"+y[Z]+"`"+Z);this.cfg_=y;this.name=this.cfg_.cn||XIJ();this.JSC$7894_domHelper_=W||FF();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.q4(this);y.lpu=y.lpu||uZi(this.JSC$7894_domHelper_.getWindow().location.href)+"/robots.txt";y.ppu=y.ppu||uZi(y.pu||"")+"/robots.txt";da[this.name]=this;R98(window,"unload",AWm)||fN(window,"unload",AWm)};
_.j6(cg,AU);var hTQ=RegExp("^%*tp$"),BjV=RegExp("^%+tp$");_.f=cg.prototype;_.f.connectionDelay_=null;_.f.peerWindowDeferred_=null;_.f.transport_=null;_.f.state_=1;_.f.isConnected=function(){return this.state_==2};
_.f.peerWindowObject_=null;_.f.iframeElement_=null;_.f.connect=function(y){this.connectCb_=y||_.me;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?oN3(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.f.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7894_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var y=this.iframeElement_.contentWindow;y||(y=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=y}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$7894_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new vP(this,this.cfg_.ph,this.JSC$7894_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()()};
_.f.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Mg(this.transport_);this.connectCb_=this.transport_=null;_.Mg(this.connectionDelay_);this.connectionDelay_=null};
_.f.send=function(y,W){if(this.isConnected()){try{var c=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(G){c=!1}if(c){_.q1(W)&&(W=(0,_.Up)(W));c=this.transport_;var Z=c.send;hTQ.test(y)&&(y="%"+y);y=y.replace(/[%:|]/g,encodeURIComponent);Z.call(c,y,W)}else this.close()}};
_.f.xpcDeliver=function(y,W,c){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.$r)(this.xpcDeliver,this,y,W,c));else if(Unm(this,c)&&!this.isDisposed()&&this.state_!=3)if(y&&y!="tp")this.isConnected()&&(y=y.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),y=BjV.test(y)?y.substring(1):y,y=this.getService(y,W))&&(W=WC0(W,y.objectPayload),W!=null&&y.callback(W));else switch(y=this.transport_,c=FC3(W),W=c[1],c[0]){case "SETUP_ACK":gN2(y,1);y.setupAckReceived_.fired_||y.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":y.protocolVersion_==2&&(gN2(y,2),y.setupAckReceived_.fired_||y.setupAckReceived_.callback(!0));break;case "SETUP":gN2(y,1);Oj5(y,1);break;case "SETUP_NTPV2":y.protocolVersion_==2&&(c=y.peerProtocolVersion_,gN2(y,2),Oj5(y,2),c!=1&&y.peerEndpointId_==null||y.peerEndpointId_==W||KC0(y),y.peerEndpointId_=W)}};
var bj2=function(y){var W=y.cfg_.role;return typeof W==="number"?W:window.parent==y.peerWindowObject_?1:0},Unm=function(y,W){var c=y.cfg_.ph;
return _.tH(W==null?"":String(W))||_.tH(c==null?"":String(c))||W==y.cfg_.ph};
cg.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete da[this.name];_.Mg(this.peerLoadHandler_);delete this.peerLoadHandler_;cg.superClass_.disposeInternal.call(this)};
var AWm=function(){for(var y in da)_.Mg(da[y])},da={};var LCZ=function(y,W){this.JSC$7908_win=y;this.allowAdsHttpEndpoint=W;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7908_domHelper=FF(y);this.scrollManager=new k95(y);this.accessibilityManager=new iLE(y);Hj5(this)},Hj5=function(y){var W=function(){y.allowAdsPopup&&y.allowAdsPopup.style.setProperty("display","none","important");
y.wallElement.style.setProperty("display","","important");Mt0(y.accessibilityManager);qNJ(y.accessibilityManager,y.wallElement.querySelector(".fc-dialog-container"),!1,!1,y.wallElement.querySelector(".fc-button-whitelist"));var G=y.scrollManager;G.JSC$7866_domHelper.JSC$7234_document_.body.style.overflow=G.originalBodyOverflow};
y.allowAdsPopup=y.JSC$7908_domHelper.JSC$7236_createDom("DIV",{"class":"fc-whitelist-root"});y.allowAdsPopup.style.setProperty("display","none","important");y.JSC$7908_domHelper.appendChild(y.JSC$7908_domHelper.JSC$7234_document_.body,y.allowAdsPopup);var c=y.JSC$7908_domHelper.JSC$7236_createDom("DIV",{"class":"fc-dialog-overlay"});y.JSC$7908_domHelper.appendChild(y.allowAdsPopup,c);var Z=y.JSC$7908_domHelper.JSC$7236_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:W});y.JSC$7908_domHelper.appendChild(y.allowAdsPopup,
Z);c=y.JSC$7908_domHelper.JSC$7236_createDom("IFRAME");c.className="fc-whitelist-dialog";c.frameBorder="0";c.id="fc-whitelist-iframe";c.tabIndex="0";_.df(c,y.allowAdsHttpEndpoint);y.JSC$7908_domHelper.appendChild(Z,c);Z={};Z.pu=_.U3(y.allowAdsHttpEndpoint).toString();Z.tp=1;Z.cn="fc-whitelist-channel";Z.ifrid=c.id;Z.osh=!0;y.allowAdsCrossPageChannel=new cg(Z);y.allowAdsCrossPageChannel.registerService("close",W);y.allowAdsCrossPageChannel.registerService("refresh",function(){y.JSC$7908_win.location.reload()});
y.allowAdsCrossPageChannel.registerService("resize",function(G){if(G){var D=y.allowAdsPopup.querySelector(".fc-whitelist-dialog");G.width&&D.style.setProperty("width",G.width,"important");G.height&&D.style.setProperty("height",G.height,"important")}},!0);
y.allowAdsCrossPageChannel.connect()};
LCZ.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7908_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Zy=window,GH=document,vN8=Zy.location,dnQ=function(){},SEZ=/\[native code\]/,f2=function(y,W,c){return y[W]=y[W]||c},TjV=function(y){y=y.sort();
for(var W=[],c=void 0,Z=0;Z<y.length;Z++){var G=y[Z];G!=c&&W.push(G);c=G}return W},o7=function(){var y;
if((y=Object.create)&&SEZ.test(y))y=y(null);else{y={};for(var W in y)y[W]=void 0}return y},Dy=f2(Zy,"gapi",{});var zH={};zH=f2(Zy,"___jsl",o7());f2(zH,"I",0);f2(zH,"hel",10);var aLQ=function(){var y=vN8.href;if(zH.dpo)var W=zH.h;else{W=zH.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Z=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(y=y&&(c.exec(y)||Z.exec(y)))try{W=decodeURIComponent(y[2])}catch(G){}}return W},xnT=function(y){var W=f2(zH,"PQ",[]);
zH.PQ=[];var c=W.length;if(c===0)y();else for(var Z=0,G=function(){++Z===c&&y()},D=0;D<c;D++)W[D](G)},ijV=function(y){return f2(f2(zH,"H",o7()),y,o7())};var Yb=function(y){this.JSC$7910_obj_=y};
Yb.prototype.value=function(){return this.JSC$7910_obj_};
Yb.prototype.getWidth=function(){return this.JSC$7910_obj_.width};
Yb.prototype.getHeight=function(){return this.JSC$7910_obj_.height};
Yb.prototype.getStyle=function(){return this.JSC$7910_obj_.style};var MyE=function(y){this.JSC$7913_obj_=y||{}};
_.f=MyE.prototype;_.f.value=function(){return this.JSC$7913_obj_};
_.f.setUrl=function(y){this.JSC$7913_obj_.url=y;return this};
_.f.getUrl=function(){return this.JSC$7913_obj_.url};
_.f.getStyle=function(){return this.JSC$7913_obj_.style};
_.f.getId=function(){return this.JSC$7913_obj_.id};
_.f.getContext=function(){return this.JSC$7913_obj_.context};
var eTm=function(y){y.JSC$7913_obj_.attributes=y.JSC$7913_obj_.attributes||{};return new Yb(y.JSC$7913_obj_.attributes)};var wI0=function(){MyE.apply(this,arguments)};
_.R(wI0,MyE);var qEE=f2(zH,"perf",o7());f2(qEE,"g",o7());var kwZ=f2(qEE,"i",o7());f2(qEE,"r",[]);o7();o7();var y6J=function(y,W,c){W&&W.length>0&&(W=jSJ(W),c&&c.length>0&&(W+="___"+jSJ(c)),W.length>28&&(W=W.substr(0,28)+(W.length-28)),c=W,W=f2(kwZ,"_p",o7()),f2(W,c,o7())[y]=(new Date).getTime(),W=qEE.r,typeof W==="function"?W(y,"_p",c):W.push([y,"_p",c]))},jSJ=function(y){return y.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var W9J=o7(),c6J=[],mz=function(y){throw Error("Ya`"+y);};
c6J.push(["jsl",function(y){for(var W in y)if(Object.prototype.hasOwnProperty.call(y,W)){var c=y[W];typeof c=="object"?zH[W]=f2(zH,W,[]).concat(c):f2(zH,W,c)}if(W=y.u)y=f2(zH,"us",[]),y.push(W),(W=/^https:(.*)$/.exec(W))&&y.push("http:"+W[1])}]);
var ZRE=/^(\/[a-zA-Z0-9_\-]+)+$/,Gj0=[/\/amp\//,/\/amp$/,/^\/amp$/],fPE=/^[a-zA-Z0-9\-_\.,!]+$/,o7m=/^gapi\.loaded_[0-9]+$/,DCm=/^[a-zA-Z0-9,._-]+$/,sSZ=function(y,W,c,Z,G){var D=y.split(";"),Y=D.shift(),u=W9J[Y],t=null;u?t=u(D,W,c,Z):mz("no hint processor for: "+Y);t||mz("failed to generate load url");W=t;c=W.match(zeE);(Z=W.match(YA0))&&Z.length===1&&mC3.test(W)&&c&&c.length===1||mz("failed sanity: "+y);try{y="?";if(G&&G.length>0){Rth(G);var b=G.join(",");t=t+"?le="+b;y="&"}if(zH.rol){var r=zH.ol;
r&&r.length&&(t=""+t+y+"ol="+r.length)}}catch(F){}return t},n7Q=function(y,W,c,Z){y=uW2(y);
o7m.test(c)||mz("invalid_callback");W=t53(W);Z=Z&&Z.length?t53(Z):null;var G=function(D){return encodeURIComponent(D).replace(/%2C/g,",")};
return[encodeURIComponent(y.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",G(y.version),"/m=",G(W),Z?"/exm="+G(Z):"","/rt=j/sv=1/d=1/ed=1",y.activeMods?"/am="+G(y.activeMods):"",y.resourceSig?"/rs="+G(y.resourceSig):"",y.zcms?"/t="+G(y.zcms):"","/cb=",G(c)].join("")},uW2=function(y){y.charAt(0)!=="/"&&mz("relative path");
for(var W=y.substring(1).split("/"),c=[];W.length;){y=W.shift();if(!y.length||y.indexOf(".")==0)mz("empty/relative directory");else if(y.indexOf("=")>0){W.unshift(y);break}c.push(y)}y={};for(var Z=0,G=W.length;Z<G;++Z){var D=W[Z].split("="),Y=decodeURIComponent(D[0]),u=decodeURIComponent(D[1]);D.length==2&&Y&&u&&(y[Y]=y[Y]||u)}W="/"+c.join("/");ZRE.test(W)||mz("invalid_prefix");c=0;for(Z=Gj0.length;c<Z;++c)Gj0[c].test(W)&&mz("invalid_prefix");c=X7Q(y,"k",!0);Z=X7Q(y,"am");G=X7Q(y,"rs");y=X7Q(y,"t");
return{pathPrefix:W,version:c,activeMods:Z,resourceSig:G,zcms:y}},t53=function(y){for(var W=[],c=0,Z=y.length;c<Z;++c){var G=y[c].replace(/\./g,"_").replace(/-/g,"_");
DCm.test(G)&&W.push(G)}return W.join(",")},X7Q=function(y,W,c){y=y[W];
!y&&c&&mz("missing: "+W);if(y){if(fPE.test(y))return y;mz("invalid: "+W)}return null},mC3=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,YA0=/\/cb=/g,zeE=/\/\//g;
W9J.m=function(y,W,c,Z){(y=y[0])||mz("missing_hint");return"https://apis.google.com"+n7Q(y,W,c,Z)};
var bRZ=decodeURI("%73cript"),r6Z=/^[-+_0-9\/A-Za-z]+={0,2}$/,F9V=function(y,W){for(var c=[],Z=0;Z<y.length;++Z){var G=y[Z],D;if(D=G){a:{for(D=0;D<W.length;D++)if(W[D]===G)break a;D=-1}D=D<0}D&&c.push(G)}return c},UC8=function(){var y=zH.nonce;
return y!==void 0?y&&y===String(y)&&y.match(r6Z)?y:zH.nonce=null:GH.querySelector?(y=GH.querySelector("script[nonce]"))?(y=y.nonce||y.getAttribute("nonce")||"",y&&y===String(y)&&y.match(r6Z)?zH.nonce=y:zH.nonce=null):null:null},ORV=function(y){if(GH.readyState!="loading")$C5(y);
else{var W=UC8(),c="";W!==null&&(c=' nonce="'+W+'"');y="<"+bRZ+' src="'+encodeURI(y)+'"'+c+"></"+bRZ+">";GH.write(K92?K92.createHTML(y):y)}},$C5=function(y){var W=GH.createElement(bRZ);
W.setAttribute("src",K92?K92.createScriptURL(y):y);y=UC8();y!==null&&W.setAttribute("nonce",y);W.async="true";(y=GH.getElementsByTagName(bRZ)[0])?y.parentNode.insertBefore(W,y):(GH.head||GH.body||GH.documentElement).appendChild(W)},Rem=function(y,W,c){g7E(function(){var Z=W===aLQ()?f2(Dy,"_",o7()):o7();
Z=f2(ijV(W),"_",Z);y(Z)},c)},zgF=function(y,W){var c=W||{};
typeof W=="function"&&(c={},c.callback=W);var Z=(W=c)&&W._c;if(Z)for(var G=0;G<c6J.length;G++){var D=c6J[G][0],Y=c6J[G][1];Y&&Object.prototype.hasOwnProperty.call(Z,D)&&Y(Z[D],y,W)}W=[];y?W=y.split(":"):c.features&&(W=c.features);if(!(y=c.h)&&(y=aLQ(),!y))throw Error("Za");lPV(W||[],c,y)},lPV=function(y,W,c){y=TjV(y)||[];
var Z=W.callback,G=W.config,D=W.timeout,Y=W.ontimeout,u=W.onerror,t=void 0;typeof u=="function"&&(t=u);var b=null,r=!1;if(D&&!Y||!D&&Y)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";u=f2(ijV(c),"r",[]).sort();var F=f2(ijV(c),"L",[]).sort(),K=zH.le||[],l=[].concat(u),N=function(cy,M){if(r)return 0;Zy.clearTimeout(b);F.push.apply(F,P);var fa=((Dy||{}).config||{}).update;fa?fa(G):G&&f2(zH,"cu",[]).push(G);if(M){y6J("me0",cy,l);try{Rem(M,c,t)}finally{y6J("me1",cy,
l)}}return 1};
D>0&&(b=Zy.setTimeout(function(){r=!0;Y()},D));
var P=F9V(y,F);if(P.length){P=F9V(y,u);var V=f2(zH,"CP",[]),Q=V.length;V[Q]=function(cy){if(!cy)return 0;y6J("ml1",P,l);var M=function(jI){V[Q]=null;N(P,cy)&&xnT(function(){Z&&Z();jI()})},fa=function(){var jI=V[Q+1];
jI&&jI()};
Q>0&&V[Q-1]?V[Q]=function(){M(fa)}:M(fa)};
if(P.length){var S="loaded_"+zH.I++;Dy[S]=function(cy){V[Q](cy);Dy[S]=null};
y=sSZ(c,P,"gapi."+S,u,K);u.push.apply(u,P);y6J("ml0",P,l);W.sync||Zy.___gapisync?ORV(y):$C5(y)}else V[Q](dnQ)}else N(P)&&Z&&Z()},E7V;
var Nrm=null,IPW=_.DH.trustedTypes;if(IPW&&IPW.createPolicy){try{Nrm=IPW.createPolicy("goog#gapi",{createHTML:joH,createScript:joH,createScriptURL:joH})}catch(y){_.DH.console&&_.DH.console.error(y.message)}E7V=Nrm}else E7V=Nrm;var K92=E7V,g7E=function(y,W){if(zH.hee&&zH.hel>0)try{return y()}catch(c){W&&W(c),zH.hel--,zgF("debug_error",function(){try{window.___jsl.hefn(c)}catch(Z){throw c;}})}else try{return y()}catch(c){throw W&&W(c),c;
}},p7W=Dy.load;
p7W&&f2(zH,"ol",[]).push(p7W);Dy.load=function(y,W){return g7E(function(){return zgF(y,W)})};var p7F;var Pli=function(y,W){this.serviceId_=y;this.moduleId_=W||null};
Pli.prototype.toString=function(){return this.serviceId_};
Pli.prototype.getModuleId=function(){return this.moduleId_};var MbI=new Pli("MpJwZc","MpJwZc");var wTf=new _.o4("a"),eh1=function(y,W,c){_.D9.call(this,y,W);this.node=W;this.kind=c};
_.R(eh1,_.D9);var J62=function(){this.JSC$7926_keys_={};this.urlPrefix_="";this.JSC$7926_queryData_={}};
J62.prototype.toString=function(){var y=this.urlPrefix_+V5m(this),W=_.Gj(this.JSC$7926_queryData_),c="";W!=""&&(c="?"+W);return y+c};
var Cl0=function(y){y=sX(y,"md");return!!y&&y!=="0"},V5m=function(y){var W=[],c=(0,_.$r)(function(Z){this.JSC$7926_keys_[Z]!==void 0&&W.push(Z+"="+this.JSC$7926_keys_[Z])},y);
Cl0(y)?(c("md"),c("k"),c("ck"),c("am"),c("rs"),c("gssmodulesetproto"),c("slk"),c("dti")):(c("sdch"),c("k"),c("ck"),c("am"),c("rt"),"d"in y.JSC$7926_keys_||ui(y,"d","0"),c("d"),c("exm"),c("excm"),(y.JSC$7926_keys_.excm||y.JSC$7926_keys_.exm)&&W.push("ed=1"),c("im"),c("dg"),c("sm"),sX(y,"br")!="1"&&sX(y,"br")!="0"||c("br"),c("br-d"),sX(y,"rb")=="1"&&c("rb"),sX(y,"zs")!=="0"&&c("zs"),QSE(y)!==""&&c("wt"),c("gssmodulesetproto"),c("ujg"),c("sp"),c("rs"),c("cb"),c("ee"),c("slk"),c("dti"),c("m"));return W.join("/")},
sX=function(y,W){return y.JSC$7926_keys_[W]?y.JSC$7926_keys_[W]:null},ui=function(y,W,c){c?y.JSC$7926_keys_[W]=c:delete y.JSC$7926_keys_[W]},A6T=function(y,W){y.urlPrefix_=W},heV=function(y,W){W&&W.length>0?(W.sort(),ui(y,"exm",W.join(","))):ui(y,"exm",null)},Brm=function(y,W){W&&W.length>0?(W.sort(),ui(y,"excm",W.join(","))):ui(y,"excm",null)},HR2=function(y){return(y=sX(y,"m"))?y.split(","):[]},QSE=function(y){switch(sX(y,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},L9E=function(y,W){var c=Object.keys(W).filter(function(Z){return!!Object.keys(W[Z]).length}).map(function(Z){var G=Object.keys(W[Z]);
G.length>1&&G.sort();return Z+":"+G.join(",")});
c.sort();ui(y,"ee",c.join(";"))},Fh1=function(y){var W=sX(y,"ee");
if(!W)return{};y={};W=_.z(W.split(";"));for(var c=W.next();!c.done;c=W.next()){var Z=_.z(c.value.split(":"));c=Z.next().value;Z=Z.next().value;y[c]={};Z=_.z(Z.split(","));for(var G=Z.next();!G.done;G=Z.next())y[c][G.value]=!0}return y},v7V=function(y){delete y.JSC$7926_keys_.m;
delete y.JSC$7926_keys_.exm;delete y.JSC$7926_keys_.ed};
J62.prototype.clone=function(){return eZ(this.toString())};
var eZ=function(y,W){W=W===void 0?!0:W;var c=dCV(y),Z=new J62,G=_.Lj(c)[5];_.Eb.forEach(SA0,function(Y){var u=G.match("/"+Y+"=([^/]+)");u&&ui(Z,Y,u[1])});
var D="";D=y.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";A6T(Z,y.substr(0,y.indexOf(D)+D.length));if(!W)return Z;(y=_.Lj(c)[6]||null)&&nQZ(y,function(Y,u){Z.JSC$7926_queryData_[Y]=u});
return Z},XnI=function(y){y=_.c7(dCV(y));
return y===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(y)?/\/k=/.test(y):!1},dCV=function(y){return y.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?y.substr(65):y},SA0={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"},TrZ=RegExp("^loaded_(g|h)?[_\\d]+$");_.th=function(y){this.JSC$7938_id_=y;this.opts={}};
_.th.prototype.JSC$7940_setLabel=function(y){this.label_=y||void 0;return this};
_.th.prototype.addUploadMetadata=function(y,W){var c=this.opts.data||{};c[y]=W;this.opts.data=c;return this};
var aP5=function(y){var W=_.Eb.filter(y.opts,function(c){return c!==null});
W=_.Eb.isEmpty(W)?null:W;y=[y.JSC$7938_id_,y.label_,W];W=U11(y);return y=y.slice(0,W+1)};
_.th.prototype.toString=function(){var y=aP5(this);return"("+_.Ng(y,function(W){return JSON.stringify(W)}).join(",")+")"};
_.th.prototype.getId=function(){return this.JSC$7938_id_};
_.th.prototype.getOptions=function(){return _.Eb.clone(this.opts)};var n2=function(){_.th.call(this,"image-search")};
_.R(n2,_.th);n2.prototype.setSize=function(y){this.opts.imgsz=y;return this};
n2.prototype.JSC$7940_setLabel=function(y){_.th.prototype.JSC$7940_setLabel.call(this,y);return this};
n2.prototype.addUploadMetadata=function(y,W){_.th.prototype.addUploadMetadata.call(this,y,W);return this};var XO=function(){_.th.call(this,"maps")};
_.R(XO,_.th);XO.prototype.setZoom=function(y){this.opts.zoom=y;return this};
XO.prototype.JSC$7940_setLabel=function(y){_.th.prototype.JSC$7940_setLabel.call(this,y);return this};
XO.prototype.addUploadMetadata=function(y,W){_.th.prototype.addUploadMetadata.call(this,y,W);return this};_.bi=function(){_.th.call(this,"photos")};
_.R(_.bi,_.th);_.bi.prototype.JSC$7940_setLabel=function(y){_.th.prototype.JSC$7940_setLabel.call(this,y);return this};
_.bi.prototype.addUploadMetadata=function(y,W){_.th.prototype.addUploadMetadata.call(this,y,W);return this};var rq=function(){_.th.call(this,"url")};
_.R(rq,_.th);var xCE=function(){var y=new rq;y.opts.type="video";y.opts.site="youtube.com";return y};
rq.prototype.JSC$7940_setLabel=function(y){_.th.prototype.JSC$7940_setLabel.call(this,y);return this};
rq.prototype.addUploadMetadata=function(y,W){_.th.prototype.addUploadMetadata.call(this,y,W);return this};var FO=function(){_.th.call(this,"video-search")};
_.R(FO,_.th);var iRJ=function(){var y=new FO;y.opts.site="youtube.com";return y};
FO.prototype.JSC$7940_setLabel=function(y){_.th.prototype.JSC$7940_setLabel.call(this,y);return this};
FO.prototype.addUploadMetadata=function(y,W){_.th.prototype.addUploadMetadata.call(this,y,W);return this};var M53=function(){_.th.call(this,"web")};
_.R(M53,_.th);M53.prototype.JSC$7940_setLabel=function(y){_.th.prototype.JSC$7940_setLabel.call(this,y);return this};
M53.prototype.addUploadMetadata=function(y,W){_.th.prototype.addUploadMetadata.call(this,y,W);return this};var UX=function(){this.items_=[];this.opts={}},eeV=function(y){switch(y){case "image-search":return new n2;
case "maps":return new XO;case "photos":return new _.bi;case "url":return new rq;case "video-search":return new FO;case "web":return new M53}return new _.th(y)};
UX.prototype.addView=function(y){this.items_.push(typeof y==="string"?eeV(y):y);return this};
var w72=function(y){return"("+_.Ng(y.items_,function(W){return W.toString()}).join(",")+")"};
UX.prototype.toString=function(){return w72(this)};
UX.prototype.getViews=function(y,W){W=W===void 0?[]:W;for(var c=this.items_,Z=0;Z<c.length;Z++){var G=c[Z];G instanceof UX?G.getViews(y,W):G.getId()==y&&W.push(G)}return W};
UX.prototype.getOptions=function(){return _.Eb.clone(this.opts)};var Pk=function(y){this.basePickerUrl_=y||"https://docs.google.com/picker";this.nav_=new UX};
Pk.prototype.nav_=null;Pk.prototype.addView=function(y){this.nav_.addView(y);return this};
Pk.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Pk.prototype.getViews=function(y){return this.nav_.getViews(y)};
_.qA8=function(y,W){y.callback_=W;return y};var kjE=new Map;kjE.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");kjE.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");kjE.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var jl8=new Set;jl8.add("application/vnd.google-apps.kix");jl8.add("application/vnd.google-apps.ritz");jl8.add("application/vnd.google-apps.punch");var slW=function(y,W,c){var Z=c&&_.RE(c,1);c=yvQ(c);var G=y[0].getId();switch(_.lm(G,2)){case 13:return WhJ(y,W,Z,c);case 3:return cvm(y,W,Z,c);case 10:return ZXm(y,W,Z,c);case 27:return ZXm(y,W,Z,c);case 12:return GM8(y,W);case 2:return fnT(y,W,Z,c);case 5:return o2T(y,W,Z,c);case 9:return DV3(y,W,Z,c);case 6:return z$Q(y,W,Z,c);case 25:return YWV(y,W,Z,c);case 1:return _.tf(y[0],e0V,26)?mVQ(y,W,Z,c):ZXm(y,W,Z,c);default:return{}}},z$Q=function(y,W,c,Z){y=y.map(function(G){return{id:G.getId().getId(),
serviceId:"youtube",name:G.getName(),description:_.RE(G,3),type:$b(G),lastEditedUtc:_.MQZ(_.il(G,_.AD,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:G.getUrl(),embedUrl:_.RE(G,13),thumbnails:K2(Tu(G))}});
return{action:W,docs:y,viewToken:Z,view:c||"youtube",v2Translated:!0}},fnT=function(y,W,c,Z){var G=y.map(function(D){var Y=D.getId().getId(),u=_.RE(D,7),t=D.getName(),b=$b(D),r=_.MQZ(_.il(D,_.AD,12)).getTime(),F=D.getUrl(),K=Number(ukh(D)),l=_.RE(D,3),N=_.RE(D,11),P=K2(Tu(D));
var V=_.il(D,a_,21);V=_.Ki(V,1);var Q=_.il(D,a_,21);Q=_.RE(Q,10);var S=_.RE(D,13);var cy=_.il(D,a_,21);cy=_.Ki(cy,9);var M=_.il(D,a_,21);M=_.RE(M,11);Y={id:Y,serviceId:"docs",mimeType:u,name:t,type:b,lastEditedUtc:r,url:F,sizeBytes:K,description:l,iconUrl:N,thumbnails:P,isShared:V,downloadUrl:Q,embedUrl:S,copyable:cy,resourceKey:M};u=_.il(D,a_,21);_.Ki(u,12)&&(Y.uploadState="success",Y.isNew=!0);u=_.il(D,a_,21);_.tf(u,vM,3)&&(D=_.il(D,a_,21),D=_.il(D,vM,3),_.tf(D,HM,2)&&(u=Ie(D.getDuration().getSeconds()),
t=D.getDuration(),t=_.jZ(t,2),Y.duration=u+t/1E9),Y.aspectRatio=D.getAspectRatio());return Y});
return{action:W,docs:G,viewToken:Z,view:c||"all",extraUserInputs:uDE(y),v2Translated:!0}},o2T=function(y,W,c,Z){y=y.map(function(G){var D=_.il(G,Gt3,15);
D=_.il(D,Ld,1);Yg(G,10,Ld,D);return{id:G.getId().getId(),serviceId:"web",mimeType:_.RE(G,7),name:G.getName(),type:$b(G),url:G.getUrl(),description:_.RE(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:K2(Tu(G))}});
return{action:W,docs:y,viewToken:Z,view:c||"image-search",v2Translated:!0}},DV3=function(y,W,c,Z){y=y.map(function(G){return{serviceId:"url",
name:Tu(G)[0].getUrl().split("/").pop(),type:$b(G),mimeType:_.RE(G,7),url:G.getUrl(),description:_.RE(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:K2(Tu(G))}});
return{action:W,docs:y,viewToken:Z,view:c||"url",v2Translated:!0}},mVQ=function(y,W,c,Z){y=y.map(function(G){return{id:G.getId().getId(),
serviceId:"picasa",name:G.getName(),type:$b(G),description:_.RE(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:K2(Tu(G))}});
return{action:W,docs:y,viewToken:Z,view:c||"webcam",v2Translated:!0}},ZXm=function(y,W,c,Z){return{action:W,
docs:y.map(tSW),viewToken:Z,view:n2Z(c||"upload",y),extraUserInputs:uDE(y),v2Translated:!0}},n2Z=function(y,W){return W.some(function(c){var Z;
return((Z=_.il(c,dT,30))==null?void 0:_.lm(Z,3))===9})?y+"/gmailphotos":y},cvm=function(y,W,c,Z){var G=y.map(function(D){var Y={id:D.getId().getId(),
serviceId:"picasa",mimeType:_.RE(D,7),name:D.getName(),type:$b(D),lastEditedUtc:_.MQZ(_.il(D,_.AD,12)).getTime(),url:D.getUrl(),sizeBytes:Number(ukh(D)),description:_.RE(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:K2(Tu(D)),mediaKey:D.getId().getId(),parentId:_.RE(D,4)},u,t=(u=_.il(D,keE,18))==null?void 0:_.il(u,q3J,3);t&&(Y.latitude=g5(t,1),Y.longitude=g5(t,2));var b;D=(b=_.il(D,keE,18))==null?void 0:O2(b,6);b=D!=null?Ie(D):void 0;b&&(Y.version=
b);return Y});
return{action:W,docs:G,viewToken:Z,view:c||"photos",extraUserInputs:uDE(y),v2Translated:!0}},WhJ=function(y,W,c,Z){y=y.map(function(G){return{id:G.getId().getId(),
serviceId:"et",name:Tu(G)[0].getUrl().split("/").pop(),description:_.RE(G,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:K2(Tu(G),"etjpg")}});
return{action:W,docs:y,viewToken:Z,view:c||"et",v2Translated:!0}},YWV=function(y,W,c,Z){y=y.map(function(G){var D=G.getId().getId(),Y=Z["2"];
return{id:D,serviceId:Y.type!=="gmail_themes"&&Y.parent==="6226252643674576769"?"picasa":"static_themes",name:G.getName(),mimeType:_.RE(G,7),type:$b(G),description:_.RE(G,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:G.getUrl(),embedUrl:G.getUrl(),thumbnails:K2(Tu(G))}});
return{action:W,docs:y,viewToken:Z,view:c||"photos",v2Translated:!0}},GM8=function(y,W){y=y.map(function(c){var Z=_.il(c,wXE,27);
Z=_.Qd(Z,1,_.t9,_.ky())[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:_.RE(c,7),name:c.getName(),description:_.RE(c,3),url:"mailto:"+Z,thumbnail:[{url:_.RE(c,11)}],email:Z}});
return{action:W,docs:y,view:"contacts",v2Translated:!0}},yvQ=function(y){if(!y)return{};
var W=_.RE(y,3);W=W&&JSON.parse(W)||{};return{0:_.RE(y,1),1:_.RE(y,2),2:W}},K2=function(y,W){W=W===void 0?"":W;
if(!y.length)return null;W=="etjpg"&&(y=y.filter(function(c){return c.getUrl().includes("w1200-h300")}));
return y.map(function(c){return{url:c.getUrl(),height:c.getHeight(),width:c.getWidth(),type:W}})},uDE=function(y){return{isAttachment:y.some(function(W){return _.Ki(W,31)})}},tSW=function(y){var W,c={id:(W=y.getId())==null?void 0:W.getId(),
serviceId:XnV(y),mimeType:_.RE(y,7),name:y.getName(),type:$b(y),sizeBytes:Number(ukh(y)),description:_.RE(y,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:K2(Tu(y)),isNew:!0};if(W=_.il(y,dT,30)){c.dataUrl=_.RE(W,1)||null;a:{var Z=_.il(y,dT,30);switch(_.lm(Z,3)){case 9:Z=_.IE(Z,cmi,2,S2);Z={remoteRefs:Z&&_.RE(Z,1)};break a;case 10:case 15:Z=_.IE(Z,WpE,4,S2);var G=Tu(y);Z={photo_id:Z&&_.RE(Z,1),media_key:y.getId().getId(),media_type:_.lm(y,6)===1?1:2,image_url:G&&
G[0].getUrl(),width:G&&String(G[0].getWidth()),height:G&&String(G[0].getHeight())};break a}Z=null}c.uploadMetadata=Z;c.uploadId=_.RE(W,9)||null;c.uploadState=bX8(W)||null}(Z=W&&_.IE(W,WpE,4,S2))&&(c.id=_.RE(Z,1));(Z=W&&_.IE(W,Zc2,5,S2))&&(c.contentId=_.RE(Z,1));(Z=W&&_.IE(W,jQi,7,S2))&&(c.contentId=_.RE(Z,1));(Z=W&&_.IE(W,ym3,6,S2))&&(c.contentId=_.RE(Z,1));(W==null?void 0:_.lm(W,3))===1&&(c.mediaKey=y.getId().getId());return c},XnV=function(y){var W;
switch(((W=_.il(y,dT,30))==null?void 0:_.lm(W,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},$b=function(y){switch(_.lm(y,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 _.RE(y,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},bX8=function(y){switch(y==null?void 0:_.lm(y,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 $VE,rvm,Fh3,UVV;_.OX=function(y,W){var c=W||{};W=c.document||document;var Z=_.U3(y).toString(),G=(new Uf(W)).createElement("SCRIPT"),D={script_:G,timeout_:void 0},Y=new hU(rvm,D),u=null,t=c.timeout!=null?c.timeout:5E3;t>0&&(u=window.setTimeout(function(){Fh3(G,!0);Y.errback(new UVV(1,"Timeout reached for loading script "+Z))},t),D.timeout_=u);
G.onload=G.onreadystatechange=function(){G.readyState&&G.readyState!="loaded"&&G.readyState!="complete"||(Fh3(G,c.cleanupWhenDone||!1,u),Y.callback(null))};
G.onerror=function(){Fh3(G,!0,u);Y.errback(new UVV(0,"Error while loading script "+Z))};
D=c.attributes||{};_.Eb.extend(D,{type:"text/javascript",charset:"UTF-8"});GeW(G,D);_.eQ(G,y);$VE(W).appendChild(G);return Y};
$VE=function(y){var W=Xe("HEAD",y);return W&&W.length!==0?W[0]:y.documentElement};
rvm=function(){if(this&&this.script_){var y=this.script_;y&&y.tagName=="SCRIPT"&&Fh3(y,!0,this.timeout_)}};
Fh3=function(y,W,c){c!=null&&_.DH.clearTimeout(c);y.onload=function(){};
y.onerror=function(){};
y.onreadystatechange=function(){};
W&&window.setTimeout(function(){_.to(y)},0)};
UVV=function(y,W){var c="Jsloader error (code #"+y+")";W&&(c+=": "+W);_.yw.call(this,c);this.code=y};
_.j6(UVV,_.yw);var KhW=_.dl(["https://apis.google.com/js/api.js"]),OXW=_.cu(KhW),E2V=function(y,W){var c=!1,Z=g2T(y,W).then(function(D){c=!0;return D}),G=_.jeE(5E3).then(function(){return c?g2T(y,W):R$V(W).then(function(D){return ln8(D,y)})});
return vyE([Z,G])},g2T=function(y,W){return NXm(W).then(function(c){return ln8(c,y)})},ln8=function(y,W){var c=_.mE(W,"gapi.")?W.slice(5):W;
return y[c]?_.sc(y[c]):new _.fD(function(Z,G){var D=ra(function(){G(Error("bb"))},3E4);
y.load(W,{callback:function(){_.DH.clearTimeout(D);Z(y[c])},
onerror:function(Y){_.DH.clearTimeout(D);G(Y)}})})},NXm=function(y){return y.gapi&&y.gapi.load?_.sc(y.gapi):R$V(y)},R$V=function(y){return _.OX(OXW,{document:y.document}).then(function(){return y.gapi})},InV=function(){};
InV.prototype.load=function(y,W){W=W===void 0?window:W;var c=Date.now();return E2V(y,W).then(function(Z){var G=Date.now();return{library:Z,loadStartMs:c,loadEndMs:G}},function(Z){throw Z instanceof Error?Z:Error(String(Z));
})};var SAH=function(){_.UR.call(this);this.gapiLoader_=new InV;this.origin_=null;this.gapiPickerIframeResolver_=_.px();this.gapiIframesResolver_=_.px();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.R(SAH,_.UR);var pnE=function(y,W){var c=_.JW("gapi.iframes",W);return c?(y=Date.now(),_.sc({library:c,loadStartMs:y,loadEndMs:y})):y.gapiLoader_.load("gapi.iframes",W)},PzQ=function(y,W,c,Z,G,D){var Y=!0;
Y=Y===void 0?!1:Y;pnE(y,pP(W.ownerDocument)).then(function(u){var t=u.library;y.gapiIframesResolver_.resolve(t);u=y.gapiPickerIframeResolver_;var b=u.resolve,r=Y;r=r===void 0?!1:r;var F={};F["host-message-handler"]=c;y.hostMessageHandlerInternal_=F;var K=_.ho(Z);K=_.ho(K);K=_.xp(_.a4(_.TF(new _.Tr,K.scheme_),K.JSC$7898_domain_),K.JSC$7898_port_).toString();y.origin_=K;K=(new wI0).setUrl(Z);K.JSC$7913_obj_.where=W;K.JSC$7913_obj_.allowPost=r;K.JSC$7913_obj_.messageHandlers=F;r=_.JW("makeWhiteListIframesFilter",
t)([y.origin_]);K.JSC$7913_obj_.messageHandlersFilter=r;G!=null&&(K.JSC$7913_obj_.id=G);D!=null&&(K.JSC$7913_obj_.rpctoken=D);r=eTm(K);r.JSC$7910_obj_.style={display:"block","min-width":"100%",width:"1px"};r.JSC$7910_obj_.height="100%";eTm(K).value().allow="camera 'src' "+y.origin_;t=t.getContext().openChild(K.value());b.call(u,t)},function(u){y.gapiIframesResolver_.reject(u);
y.gapiPickerIframeResolver_.reject(u)});
return y.gapiPickerIframeResolver_.promise},JvJ=function(y,W){return _.X1([y.gapiIframesResolver_.promise,
y.gapiPickerIframeResolver_.promise]).then(function(c){var Z=_.z(c);c=Z.next().value;return(Z=Z.next().value)?Z.send("picker-message-handler",W,void 0,_.JW("makeWhiteListIframesFilter",c)([y.origin_])):_.hG(Error("cb"))})};
SAH.prototype.disposeInternal=function(){VSm(this);_.UR.prototype.disposeInternal.call(this)};
var VSm=function(y){y.gapiPickerIframeResolver_.promise.then(function(W){W&&(W.unregister("host-message-handler"),delete y.hostMessageHandlerInternal_["host-message-handler"])})};var CzJ=function(){this.nextId=0};var AvT=function(y,W){switch(y.action){case "select-contacts":y=QlZ(y.contacts);break;case "visibility":y=y.visible;var c=new i5;y=_.PN(c,1,7).setVisible(y);c={};c["iframe-command"]=y.serialize();y=c;break;default:y=null}return y?JvJ(W,y):_.sc()},QlZ=function(y){if(!y||y.length==0)return null;
var W=new i5;_.PN(W,1,11);var c=new CzJ;y.forEach(function(Z){if(Z.email){var G=new U2;G=_.a0(G,2,Z.name?Z.name:Z.email);var D=new wXE;Z=_.R6f(D,1,_.sB,Z.email,_.t9);Z=_.uF(G,27,Z);G=new ifV;D=":"+(c.nextId++).toString(36);G=_.a0(G,1,D);G=_.PN(G,2,12);Z=_.uF(Z,1,G)}else Z=null;Z&&Yg(W,7,U2,Z)});
y={};y["iframe-command"]=W.serialize();return y};_.h$Q=function(){if(lbE){var y=/Windows NT ([0-9.]+)/;return(y=y.exec(_.UD()))?y[1]:"0"}return _.RfI?(y=/1[0|1][_.][0-9_.]+/,(y=y.exec(_.UD()))?y[0].replace(/_/g,"."):"10"):xDy?(y=/Android\s+([^\);]+)(\)|;)/,(y=y.exec(_.UD()))?y[1]:""):N7E||Iba||pqa?(y=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(y=y.exec(_.UD()))?y[1].replace(/_/g,"."):""):""}();var gq;gq=function(y){return(y=y.exec(_.UD()))?y[1]:""};
_.BX8=function(){if(_.Dq)return gq(/Firefox\/([0-9.]+)/);if(_.G$||_.B7||KOy)return _.hfI;if(_.z$){if(_.Vw()||_.XyI()){var y=gq(/CriOS\/([0-9.]+)/);if(y)return y}return gq(/Chrome\/([0-9.]+)/)}if(_.ll&&!_.Vw())return gq(/Version\/([0-9.]+)/);if(tvH||nRa){if(y=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.UD()))return y[1]+"."+y[2]}else if(vLE)return(y=gq(/Android\s+([0-9.]+)/))?y:gq(/Version\/([0-9.]+)/);return""}();var HXW=function(){};
_.qa(HXW);HXW.prototype.nextId_=0;_.lL=function(y){return":"+(y.nextId_++).toString(36)};var R7=function(y){_.uU.call(this);this.JSC$8008_dom_=y||FF();this.JSC$8008_id_=null;this.inDocument_=!1;this.JSC$8008_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.j6(R7,_.uU);R7.prototype.idGenerator_=HXW.getInstance();R7.prototype.getId=function(){return this.JSC$8008_id_||(this.JSC$8008_id_=_.lL(this.idGenerator_))};
R7.prototype.getElement=function(){return this.JSC$8008_element_};
var li=function(y){y.googUiComponentHandler_||(y.googUiComponentHandler_=new _.q4(y));return y.googUiComponentHandler_},Lh8=function(y,W){if(y==W)throw Error("db");
var c;if(c=W&&y.parent_&&y.JSC$8008_id_){c=y.parent_;var Z=y.JSC$8008_id_;c=c.childIndex_&&Z?_.Eb.get(c.childIndex_,Z)||null:null}if(c&&y.parent_!=W)throw Error("db");y.parent_=W;R7.superClass_.setParentEventTarget.call(y,W)};
R7.prototype.setParentEventTarget=function(y){if(this.parent_&&this.parent_!=y)throw Error("eb");R7.superClass_.setParentEventTarget.call(this,y)};
R7.prototype.JSC$8010_createDom=function(){this.JSC$8008_element_=this.JSC$8008_dom_.createElement("DIV")};
R7.prototype.render=function(y){v2V(this,y)};
var v2V=function(y,W,c){if(y.inDocument_)throw Error("fb");y.JSC$8008_element_||y.JSC$8010_createDom();W?W.insertBefore(y.JSC$8008_element_,c||null):y.JSC$8008_dom_.JSC$7234_document_.body.appendChild(y.JSC$8008_element_);y.parent_&&!y.parent_.inDocument_||y.enterDocument()};
_.f=R7.prototype;_.f.decorate=function(y){if(this.inDocument_)throw Error("fb");if(y&&this.canDecorate(y)){this.wasDecorated_=!0;var W=_.Pu(y);this.JSC$8008_dom_&&this.JSC$8008_dom_.JSC$7234_document_==W||(this.JSC$8008_dom_=FF(y));this.decorateInternal(y);this.enterDocument()}else throw Error("gb");};
_.f.canDecorate=function(){return!0};
_.f.decorateInternal=function(y){this.JSC$8008_element_=y};
_.f.enterDocument=function(){this.inDocument_=!0;dVQ(this,function(y){!y.inDocument_&&y.getElement()&&y.enterDocument()})};
_.f.exitDocument=function(){dVQ(this,function(y){y.inDocument_&&y.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.f.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);dVQ(this,function(y){y.dispose()});
!this.wasDecorated_&&this.JSC$8008_element_&&_.to(this.JSC$8008_element_);this.parent_=this.model_=this.JSC$8008_element_=this.childIndex_=this.children_=null;R7.superClass_.disposeInternal.call(this)};
_.f.getModel=function(){return this.model_};
_.f.addChild=function(y,W){var c=this.children_?this.children_.length:0;if(y.inDocument_&&(W||!this.inDocument_))throw Error("fb");if(c<0||c>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);y.parent_==this?(_.Eb.set(this.childIndex_,y.getId(),y),_.dg(this.children_,y)):_.Eb.add(this.childIndex_,y.getId(),y);Lh8(y,this);_.gFH(this.children_,c,0,y);y.inDocument_&&this.inDocument_&&y.parent_==this?(W=this.getContentElement(),
(W.childNodes[c]||null)!=y.getElement()&&(y.getElement().parentElement==W&&W.removeChild(y.getElement()),c=W.childNodes[c]||null,W.insertBefore(y.getElement(),c))):W?(this.JSC$8008_element_||this.JSC$8010_createDom(),c=this.children_?this.children_[c+1]||null:null,v2V(y,this.getContentElement(),c?c.JSC$8008_element_:null)):this.inDocument_&&!y.inDocument_&&y.JSC$8008_element_&&y.JSC$8008_element_.parentNode&&y.JSC$8008_element_.parentNode.nodeType==1&&y.enterDocument()};
_.f.getContentElement=function(){return this.JSC$8008_element_};
var dVQ=function(y,W){y.children_&&y.children_.forEach(W,void 0)};
R7.prototype.removeChild=function(y,W){if(y){var c=typeof y==="string"?y:y.getId();y=this.childIndex_&&c?_.Eb.get(this.childIndex_,c)||null:null;c&&y&&(_.Eb.remove(this.childIndex_,c),_.dg(this.children_,y),W&&(y.exitDocument(),y.JSC$8008_element_&&_.to(y.JSC$8008_element_)),Lh8(y,null))}if(!y)throw Error("ib");return y};_.j6(ClH,V5h);_.j6(QSf,V5h);var SWm;var TXE=function(y,W){W?y.setAttribute("role",W):y.removeAttribute("role")},EX=function(y,W,c){Array.isArray(c)&&(c=c.join(" "));
var Z="aria-"+W;c===""||c==void 0?(SWm||(c={},SWm=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort="none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=SWm,W in c?y.setAttribute(Z,c[W]):y.removeAttribute(Z)):y.setAttribute(Z,c)};var an3;_.NJ=function(y,W,c){_.uU.call(this);this.target=y;this.handle=W||y;this.limits=c||new JP(NaN,NaN,NaN,NaN);this.JSC$8013_document_=_.Pu(y);this.JSC$8013_eventHandler_=new _.q4(this);_.zY(this,this.JSC$8013_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;_.Y0(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=an3};
_.j6(_.NJ,_.uU);an3=_.DH.document&&_.DH.document.documentElement&&!!_.DH.document.documentElement.setCapture&&!!_.DH.document.releaseCapture;_.xV5=function(y,W){y.hysteresisDistanceSquared_=Math.pow(W,2)};
_.f=_.NJ.prototype;_.f.getEnabled=function(){return this.enabled_};
_.f.setEnabled=function(y){this.enabled_=y};
_.f.disposeInternal=function(){_.NJ.superClass_.disposeInternal.call(this);_.sp(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8013_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8013_document_.releaseCapture();this.handle=this.target=null};
_.f.startDrag=function(y){var W=y.type=="mousedown";if(!this.enabled_||this.dragging_||W&&(y.event_.button!=0||_.RfI&&y.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new I7("start",this,y.clientX,y.clientY,y)))this.dragging_=!0,W&&y.preventDefault();else return;else W&&y.preventDefault();W=this.JSC$8013_document_;var c=W.documentElement,Z=!this.useSetCapture_;this.JSC$8013_eventHandler_.listen(W,["touchmove","mousemove"],this.handleMove_,
{capture:Z,passive:!1});this.JSC$8013_eventHandler_.listen(W,["touchend","mouseup"],this.endDrag,Z);this.useSetCapture_?(c.setCapture(!1),this.JSC$8013_eventHandler_.listen(c,"losecapture",this.endDrag)):this.JSC$8013_eventHandler_.listen(pP(W),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8013_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Z);this.clientX=this.startX=y.clientX;this.clientY=this.startY=y.clientY;this.screenX=y.screenX;this.screenY=y.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=rQ(FF(this.JSC$8013_document_))}};
_.f.endDrag=function(y,W){this.JSC$8013_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8013_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new I7("end",this,y.clientX,y.clientY,y,iXQ(this,this.deltaX),MSE(this,this.deltaY),W||y.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.f.handleMove_=function(y){if(this.enabled_){var W=y.clientX-this.clientX,c=y.clientY-this.clientY;this.clientX=y.clientX;this.clientY=y.clientY;this.screenX=y.screenX;this.screenY=y.screenY;if(!this.dragging_){var Z=this.startX-this.clientX,G=this.startY-this.clientY;if(Z*Z+G*G>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new I7("start",this,y.clientX,y.clientY,y)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(y);return}}c=e$E(this,W,c);W=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new I7("beforedrag",
this,y.clientX,y.clientY,y,W,c))&&(wnW(this,y,W,c),y.preventDefault())}};
var e$E=function(y,W,c){var Z=rQ(FF(y.JSC$8013_document_));W+=Z.x-y.pageScroll.x;c+=Z.y-y.pageScroll.y;y.pageScroll=Z;y.deltaX+=W;y.deltaY+=c;return new _.If(iXQ(y,y.deltaX),MSE(y,y.deltaY))};
_.NJ.prototype.onScroll_=function(y){var W=e$E(this,0,0);y.clientX=this.clientX;y.clientY=this.clientY;wnW(this,y,W.x,W.y)};
var wnW=function(y,W,c,Z){y.target.style.left=c+"px";y.target.style.top=Z+"px";y.dispatchEvent(new I7("drag",y,W.clientX,W.clientY,W,c,Z))},iXQ=function(y,W){var c=y.limits;
y=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(y!=null?y+c:Infinity,Math.max(y!=null?y:-Infinity,W))},MSE=function(y,W){var c=y.limits;
y=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(y!=null?y+c:Infinity,Math.max(y!=null?y:-Infinity,W))};
_.NJ.prototype.isDragging=function(){return this.dragging_};
var I7=function(y,W,c,Z,G,D,Y){_.D9.call(this,y);this.clientX=c;this.clientY=Z;this.browserEvent=G;this.left=D!==void 0?D:W.deltaX;this.top=Y!==void 0?Y:W.deltaY};
_.j6(I7,_.D9);var p2=function(y){this.JSC$8020_map_=new Map;var W=arguments.length;if(W>1){if(W%2)throw Error("oa");for(var c=0;c<W;c+=2)this.set(arguments[c],arguments[c+1])}else y&&this.addAll(y)};
_.f=p2.prototype;_.f.getCount=function(){return this.JSC$8020_map_.size};
_.f.getValues=function(){return Array.from(this.JSC$8020_map_.values())};
_.f.getKeys=function(){return Array.from(this.JSC$8020_map_.keys())};
_.f.containsKey=function(y){return this.JSC$8020_map_.has(y)};
_.f.containsValue=function(y){return this.getValues().some(function(W){return W==y})};
_.f.equals=function(y,W){var c=this;W=W===void 0?function(Z,G){return Z===G}:W;
return this===y?!0:this.JSC$8020_map_.size!=y.getCount()?!1:this.getKeys().every(function(Z){return W(c.JSC$8020_map_.get(Z),y.get(Z))})};
_.f.isEmpty=function(){return this.JSC$8020_map_.size==0};
_.f.clear=function(){this.JSC$8020_map_.clear()};
_.f.remove=function(y){return this.JSC$8020_map_.delete(y)};
_.f.get=function(y,W){return this.JSC$8020_map_.has(y)?this.JSC$8020_map_.get(y):W};
_.f.set=function(y,W){this.JSC$8020_map_.set(y,W);return this};
_.f.addAll=function(y){if(y instanceof p2){y=_.z(y.JSC$8020_map_);for(var W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;c=c.next().value;this.JSC$8020_map_.set(W,c)}}else if(y)for(y=_.z(Object.entries(y)),W=y.next();!W.done;W=y.next())c=_.z(W.value),W=c.next().value,c=c.next().value,this.JSC$8020_map_.set(W,c)};
_.f.forEach=function(y,W){var c=this;W=W===void 0?this:W;this.JSC$8020_map_.forEach(function(Z,G){return y.call(W,Z,G,c)})};
_.f.clone=function(){return new p2(this)};(function(){for(var y=["ms","moz","webkit","o"],W,c=0;W=y[c]&&!_.DH.requestAnimationFrame;++c)_.DH.requestAnimationFrame=_.DH[W+"RequestAnimationFrame"],_.DH.cancelAnimationFrame=_.DH[W+"CancelAnimationFrame"]||_.DH[W+"CancelRequestAnimationFrame"];if(!_.DH.requestAnimationFrame){var Z=0;_.DH.requestAnimationFrame=function(G){var D=(new Date).getTime(),Y=Math.max(0,16-(D-Z));Z=D+Y;return _.DH.setTimeout(function(){G(D+Y)},Y)};
_.DH.cancelAnimationFrame||(_.DH.cancelAnimationFrame=function(G){clearTimeout(G)})}})();
var qWV=[[],[]],kME=0,jsJ=!1,ycW=0,ccJ=function(y,W){var c=ycW++,Z={measureTask:{id:c,fn:y.measure,context:W},mutateTask:{id:c,fn:y.mutate,context:W},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(Z.args||(Z.args=[]),Z.args.length=0,Z.args.push.apply(Z.args,arguments),Z.args.push(Z.state)):Z.args&&Z.args.length!=0?(Z.args[0]=Z.state,Z.args.length=1):Z.args=[Z.state];Z.isScheduled||(Z.isScheduled=!0,qWV[kME].push(Z));jsJ||(jsJ=!0,window.requestAnimationFrame(WsQ))}},WsQ=
function(){jsJ=!1;
var y=qWV[kME],W=y.length;kME=(kME+1)%2;for(var c,Z=0;Z<W;++Z){c=y[Z];var G=c.measureTask;c.isScheduled=!1;G.fn&&G.fn.apply(G.context,c.args)}for(Z=0;Z<W;++Z)c=y[Z],G=c.mutateTask,c.isScheduled=!1,G.fn&&G.fn.apply(G.context,c.args),c.state={};y.length=0};var ZDE=_.dl(["about:blank"]),G5m=_.dl(["javascript:undefined"]),fJV=_.cu(ZDE);_.U3(fJV);var ogW=_.cu(G5m);_.U3(ogW);var Pg=function(y){_.uU.call(this);this.JSC$8026_element_=y;this.listenKeyIn_=_.Y0(this.JSC$8026_element_,"focus",this,!0);this.listenKeyOut_=_.Y0(this.JSC$8026_element_,"blur",this,!0)};
_.j6(Pg,_.uU);Pg.prototype.handleEvent=function(y){var W=new _.zF(y.event_);W.type=y.type=="focusin"||y.type=="focus"?"focusin":"focusout";this.dispatchEvent(W)};
Pg.prototype.disposeInternal=function(){Pg.superClass_.disposeInternal.call(this);o9(this.listenKeyIn_);o9(this.listenKeyOut_);delete this.JSC$8026_element_};var DFE=function(y,W){this.JSC$8029_element_=y;this.JSC$8029_dom_=W};var Jh=function(y,W){R7.call(this,W);this.useIframeMask_=!!y;this.lastFocus_=null;this.resizeBackgroundTask_=ccJ({mutate:this.resizeBackground_},this);ccJ({mutate:this.updateModalAndBackground_},this)};
_.j6(Jh,R7);_.f=Jh.prototype;_.f.focusHandler_=null;_.f.visible_=!1;_.f.bgEl_=null;_.f.bgIframeEl_=null;_.f.tabCatcherElement_=null;_.f.backwardTabWrapInProgress_=!1;_.f.getCssClass=function(){return"goog-modalpopup"};
_.f.getBackgroundElement=function(){return this.bgEl_};
_.f.JSC$8010_createDom=function(){Jh.superClass_.JSC$8010_createDom.call(this);var y=this.getElement(),W=_.yb(this.getCssClass()).split(" ");Qh(y,W);y.tabIndex=0;_.Lg(y,!1);zXm(this);YPE(this)};
var zXm=function(y){if(y.useIframeMask_&&!y.bgIframeEl_){var W=y.JSC$8008_dom_.JSC$7236_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.df(W,fJV);y.bgIframeEl_=W;y.bgIframeEl_.className=y.getCssClass()+"-bg";_.Lg(y.bgIframeEl_,!1);h0J(y.bgIframeEl_,0)}y.bgEl_||(y.bgEl_=y.JSC$8008_dom_.JSC$7236_createDom("DIV",y.getCssClass()+"-bg"),_.Lg(y.bgEl_,!1))},YPE=function(y){y.tabCatcherElement_||(y.tabCatcherElement_=y.JSC$8008_dom_.createElement("SPAN"),_.Lg(y.tabCatcherElement_,
!1),y.tabCatcherElement_.tabIndex=0,y.tabCatcherElement_.style.position="absolute")};
_.f=Jh.prototype;_.f.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.f.canDecorate=function(y){return!!y&&y.tagName=="DIV"};
_.f.decorateInternal=function(y){Jh.superClass_.decorateInternal.call(this,y);y=_.yb(this.getCssClass()).split(" ");Qh(this.getElement(),y);zXm(this);YPE(this);this.getElement().tabIndex=0;_.Lg(this.getElement(),!1)};
_.f.enterDocument=function(){this.bgIframeEl_&&_.NL(this.bgIframeEl_,this.getElement());_.NL(this.bgEl_,this.getElement());Jh.superClass_.enterDocument.call(this);_.I_(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Pg(this.JSC$8008_dom_.JSC$7234_document_);li(this).listen(this.focusHandler_,"focusin",this.onFocus);mF2(this,!1)};
_.f.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Mg(this.focusHandler_);Jh.superClass_.exitDocument.call(this);_.to(this.bgIframeEl_);_.to(this.bgEl_);_.to(this.tabCatcherElement_)};
_.f.setVisible=function(y){if(y!=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_&&mF2(this,y),y){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8008_dom_.JSC$7234_document_.activeElement}catch(G){}this.updateModalAndBackground_();li(this).listen(this.JSC$8008_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8008_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);ssV(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)fN(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){li(this).unlisten(this.JSC$8008_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8008_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)fN(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var W=this.JSC$8008_dom_,c=W.JSC$7234_document_.body,Z=W.JSC$7234_document_.activeElement||c;if(!this.lastFocus_||this.lastFocus_==c){this.lastFocus_=null;break a}(Z==c||W.contains(this.getElement(),Z))&&this.lastFocus_.focus()}catch(G){}this.lastFocus_=
null}}};
var mF2=function(y,W){y.modalAriaVisibilityHelper_||(y.modalAriaVisibilityHelper_=new DFE(y.JSC$8008_element_,y.JSC$8008_dom_));y=y.modalAriaVisibilityHelper_;if(W){y.hiddenElements_||(y.hiddenElements_=[]);W=y.JSC$8029_dom_.getChildren(y.JSC$8029_dom_.JSC$7234_document_.body);for(var c=0;c<W.length;c++){var Z=W[c],G;if(G=Z!=y.JSC$8029_element_)G=Z.getAttribute("aria-hidden"),G=!(G==null||G==void 0?0:String(G));G&&(EX(Z,"hidden",!0),y.hiddenElements_.push(Z))}}else if(y.hiddenElements_){for(W=0;W<
y.hiddenElements_.length;W++)y.hiddenElements_[W].removeAttribute("aria-hidden");y.hiddenElements_=null}};
Jh.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var ssV=function(y,W){y.bgIframeEl_&&_.Lg(y.bgIframeEl_,W);y.bgEl_&&_.Lg(y.bgEl_,W);_.Lg(y.getElement(),W);_.Lg(y.tabCatcherElement_,W)};
_.f=Jh.prototype;_.f.onShow=function(){this.dispatchEvent("show")};
_.f.onHide=function(){ssV(this,!1);this.dispatchEvent("hide")};
_.f.isVisible=function(){return this.visible_};
_.f.focus=function(){this.focusElement_()};
_.f.resizeBackground_=function(){this.bgIframeEl_&&_.Lg(this.bgIframeEl_,!1);this.bgEl_&&_.Lg(this.bgEl_,!1);var y=this.JSC$8008_dom_.JSC$7234_document_;var W=_.bG(pP(this.JSC$8008_dom_.JSC$7234_document_)||window);var c=Math.max(W.width,Math.max(y.body.scrollWidth,y.documentElement.scrollWidth));y=Math.max(W.height,Math.max(y.body.scrollHeight,y.documentElement.scrollHeight));this.bgIframeEl_&&(_.Lg(this.bgIframeEl_,!0),_.VQJ(this.bgIframeEl_,c,y));this.bgEl_&&(_.Lg(this.bgEl_,!0),_.VQJ(this.bgEl_,
c,y))};
_.f.reposition=function(){var y;if(_.JnQ(this.getElement())=="fixed")var W=y=0;else W=rQ(this.JSC$8008_dom_),y=W.x,W=W.y;var c=Q$W(this.getElement());var Z=_.bG(pP(this.JSC$8008_dom_.JSC$7234_document_)||window);y=Math.max(y+Z.width/2-c.width/2,0);W=Math.max(W+Z.height/2-c.height/2,0);Qy(this.getElement(),y,W);Qy(this.tabCatcherElement_,y,W)};
_.f.onFocus=function(y){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():y.target==this.tabCatcherElement_&&ra(this.focusElement_,0,this)};
_.f.focusElement_=function(){try{this.getElement().focus()}catch(y){}};
_.f.disposeInternal=function(){_.Mg(this.popupShowTransition_);this.popupShowTransition_=null;_.Mg(this.popupHideTransition_);this.popupHideTransition_=null;_.Mg(this.bgShowTransition_);this.bgShowTransition_=null;_.Mg(this.bgHideTransition_);this.bgHideTransition_=null;Jh.superClass_.disposeInternal.call(this)};var pg=function(y,W,c){Jh.call(this,W,c);this.JSC$8039_class_=y||"modal-dialog";this.buttons_=(new Vp).addButton(ucV,!0).addButton(tu0,!1,!0)};
_.j6(pg,Jh);_.f=pg.prototype;_.f.escapeToCancel_=!0;_.f.hasTitleCloseButton_=!0;_.f.modal_=!0;_.f.draggable_=!0;_.f.backgroundElementOpacity_=.5;_.f.title_="";_.f.JSC$8041_dragger_=null;_.f.JSC$8041_disposeOnHide_=!1;_.f.titleEl_=null;_.f.titleTextEl_=null;_.f.titleTextId_=null;_.f.titleCloseEl_=null;_.f.contentEl_=null;_.f.buttonEl_=null;_.f.getCssClass=function(){return this.JSC$8039_class_};
_.f.setTitle=function(y){this.title_=y;this.titleTextEl_&&_.PM(this.titleTextEl_,y)};
_.f.getTitle=function(){return this.title_};
_.f.getContent=function(){return""};
_.f.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var ngm=function(y){y.getElement()||y.render();return y.getElement()};
pg.prototype.getBackgroundElement=function(){this.getElement()||this.render();return pg.superClass_.getBackgroundElement.call(this)};
var XOi=function(y,W){y.backgroundElementOpacity_=W;y.getElement()&&(W=y.getBackgroundElement())&&h0J(W,y.backgroundElementOpacity_)};
pg.prototype.setDraggable=function(y){this.draggable_=y;bDV(this,y&&this.inDocument_)};
pg.prototype.JSC$8041_handleDrag=function(){};
var bDV=function(y,W){var c=_.yb(y.JSC$8039_class_+"-title-draggable").split(" ");y.getElement()&&(W?Qh(y.titleEl_,c):xPW(y.titleEl_,c));W&&!y.JSC$8041_dragger_?(W=new _.NJ(y.getElement(),y.titleEl_),y.JSC$8041_dragger_=W,Qh(y.titleEl_,c),_.Y0(y.JSC$8041_dragger_,"start",y.setDraggerLimits_,!1,y),_.Y0(y.JSC$8041_dragger_,"drag",y.JSC$8041_handleDrag,!1,y)):!W&&y.JSC$8041_dragger_&&(y.JSC$8041_dragger_.dispose(),y.JSC$8041_dragger_=null)};
_.f=pg.prototype;
_.f.JSC$8010_createDom=function(){pg.superClass_.JSC$8010_createDom.call(this);var y=this.getElement(),W=this.JSC$8008_dom_;this.titleTextId_=this.getId();var c=this.getId()+".contentEl";this.titleEl_=W.JSC$7236_createDom("DIV",this.JSC$8039_class_+"-title",this.titleTextEl_=W.JSC$7236_createDom("SPAN",{className:this.JSC$8039_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=W.JSC$7236_createDom("SPAN",this.JSC$8039_class_+"-title-close"));Y3V(y,this.titleEl_,this.contentEl_=
W.JSC$7236_createDom("DIV",{className:this.JSC$8039_class_+"-content",id:c}),this.buttonEl_=W.JSC$7236_createDom("DIV",this.JSC$8039_class_+"-buttons"));TXE(this.titleTextEl_,"heading");TXE(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;EX(this.titleCloseEl_,"label","Close");TXE(y,"dialog");EX(y,"labelledby",this.titleTextId_||"");_.Lg(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(y=this.buttons_,y.JSC$8042_element_=this.buttonEl_,y.render());_.Lg(this.buttonEl_,!!this.buttons_);
XOi(this,this.backgroundElementOpacity_)};
_.f.decorateInternal=function(y){pg.superClass_.decorateInternal.call(this,y);y=this.getElement();var W=this.JSC$8039_class_+"-content";this.contentEl_=$_(document,null,W,y)[0];this.contentEl_||(this.contentEl_=this.JSC$8008_dom_.JSC$7236_createDom("DIV",W),y.appendChild(this.contentEl_));W=this.JSC$8039_class_+"-title";var c=this.JSC$8039_class_+"-title-text",Z=this.JSC$8039_class_+"-title-close";(this.titleEl_=$_(document,null,W,y)[0])?(this.titleTextEl_=$_(document,null,c,this.titleEl_)[0],this.titleCloseEl_=
$_(document,null,Z,this.titleEl_)[0]):(this.titleEl_=this.JSC$8008_dom_.JSC$7236_createDom("DIV",W),y.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=gXV(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Of("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;EX(y,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8008_dom_.JSC$7236_createDom("SPAN",
Z),this.titleEl_.appendChild(this.titleCloseEl_));_.Lg(this.titleCloseEl_,this.hasTitleCloseButton_);W=this.JSC$8039_class_+"-buttons";(this.buttonEl_=$_(document,null,W,y)[0])?(this.buttons_=new Vp(this.JSC$8008_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8008_dom_.JSC$7236_createDom("DIV",W),y.appendChild(this.buttonEl_),this.buttons_&&(y=this.buttons_,y.JSC$8042_element_=this.buttonEl_,y.render()),_.Lg(this.buttonEl_,!!this.buttons_));XOi(this,this.backgroundElementOpacity_)};
_.f.enterDocument=function(){pg.superClass_.enterDocument.call(this);li(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);li(this).listen(this.buttonEl_,"click",this.onButtonClick_);bDV(this,this.draggable_);li(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var y=this.getElement();TXE(y,"dialog");this.titleTextEl_.id!==""&&EX(y,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){y=this.JSC$8008_dom_;
var W=this.getBackgroundElement();y.removeNode(this.bgIframeEl_);y.removeNode(W)}this.isVisible()&&mF2(this,!1)}};
_.f.exitDocument=function(){this.isVisible()&&this.setVisible(!1);bDV(this,!1);pg.superClass_.exitDocument.call(this)};
_.f.setVisible=function(y){y!=this.isVisible()&&(this.inDocument_||this.render(),pg.superClass_.setVisible.call(this,y))};
_.f.onShow=function(){pg.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.f.onHide=function(){pg.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8041_disposeOnHide_&&this.dispose()};
_.f.setDraggerLimits_=function(){var y=this.JSC$8008_dom_.JSC$7234_document_,W=_.bG(pP(y)||window),c=Math.max(y.body.scrollWidth,W.width);y=Math.max(y.body.scrollHeight,W.height);var Z=Q$W(this.getElement());_.JnQ(this.getElement())=="fixed"?this.JSC$8041_dragger_.limits=new JP(0,0,Math.max(0,W.width-Z.width),Math.max(0,W.height-Z.height)):this.JSC$8041_dragger_.limits=new JP(0,0,c-Z.width,y-Z.height)};
_.f.onTitleCloseClick_=function(){rcW(this)};
var rcW=function(y){if(y.hasTitleCloseButton_){var W=y.buttons_,c=W&&W.cancelButton_;c?(W=W.get(c),y.dispatchEvent(new C2(c,W))&&y.setVisible(!1)):y.setVisible(!1)}},Fsm=function(y){y.hasTitleCloseButton_=!1;
y.titleCloseEl_&&_.Lg(y.titleCloseEl_,y.hasTitleCloseButton_)};
pg.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;pg.superClass_.disposeInternal.call(this)};
pg.prototype.onButtonClick_=function(y){a:{for(y=y.target;y!=null&&y!=this.buttonEl_;){if(y.tagName=="BUTTON")break a;y=y.parentNode}y=null}if(y&&!y.disabled){y=y.name;var W=this.buttons_.get(y);this.dispatchEvent(new C2(y,W))&&this.setVisible(!1)}};
pg.prototype.onKey_=function(y){var W=!1,c=!1,Z=this.buttons_,G=y.target;if(y.type=="keydown")if(this.escapeToCancel_&&y.keyCode==27){var D=Z&&Z.cancelButton_;G=G.tagName=="SELECT"&&!G.disabled;D&&!G?(c=!0,W=Z.get(D),W=this.dispatchEvent(new C2(D,W))):G||(W=!0)}else{if(y.keyCode==9&&y.shiftKey&&G==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(r){}ra(this.resetBackwardTabWrap_,0,this)}}else if(y.keyCode==13){if(G.tagName=="BUTTON"&&!G.disabled)D=G.name;
else if(G==this.titleCloseEl_)rcW(this);else if(Z){var Y=Z.defaultButton_,u;if(u=Y)a:{u=Xe("BUTTON",Z.JSC$8042_element_);for(var t,b=0;t=u[b];b++)if(t.name==Y||t.id==Y){u=t;break a}u=null}G=(G.tagName=="TEXTAREA"||G.tagName=="SELECT"||G.tagName=="A")&&!G.disabled;!u||u.disabled||G||(D=Y)}D&&Z&&(c=!0,W=this.dispatchEvent(new C2(D,String(Z.get(D)))))}else G!=this.titleCloseEl_||y.keyCode!=32&&y.key!=" "||rcW(this);if(W||c)y.stopPropagation(),y.preventDefault();W&&this.setVisible(!1)};
var C2=function(y,W){this.type="dialogselect";this.key=y;this.caption=W};
_.j6(C2,_.D9);var Vp=function(y){p2.call(this);y||FF();this.cancelButton_=this.JSC$8042_element_=this.defaultButton_=null};
_.j6(Vp,p2);_.f=Vp.prototype;_.f.clear=function(){p2.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.f.set=function(y,W,c,Z){p2.prototype.set.call(this,y,W);c&&(this.defaultButton_=y);Z&&(this.cancelButton_=y);return this};
_.f.addButton=function(y,W,c){return this.set(y.key,y.caption,W,c)};
_.f.render=function(){if(this.JSC$8042_element_){_.wf(this.JSC$8042_element_,iRy);var y=FF(this.JSC$8042_element_);this.forEach(function(W,c){W=y.JSC$7236_createDom("BUTTON",{name:c},W);c==this.defaultButton_&&(W.className="goog-buttonset-default");this.JSC$8042_element_.appendChild(W)},this)}};
_.f.decorate=function(y){if(y&&y.nodeType==1){this.JSC$8042_element_=y;y=Xe("BUTTON",this.JSC$8042_element_);for(var W,c,Z,G=0;W=y[G];G++)if(c=W.name||W.id,Z=gXV(W)||W.value,c){var D=G==0;this.set(c,Z,D,W.name=="cancel");D&&_.VE(W,"goog-buttonset-default")}}};
_.f.getElement=function(){return this.JSC$8042_element_};
var ucV={key:"ok",caption:"OK"},tu0={key:"cancel",caption:"Cancel"},UFm={key:"yes",caption:"Yes"},$FW={key:"no",caption:"No"},Ksi={key:"save",caption:"Save"},ODE={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Vp).addButton(ucV,!0,!0),(new Vp).addButton(ucV,!0).addButton(tu0,!1,!0),(new Vp).addButton(UFm,!0).addButton($FW,!1,!0),(new Vp).addButton(UFm).addButton($FW,!0).addButton(tu0,!1,!0),(new Vp).addButton(ODE).addButton(Ksi).addButton(tu0,!0,!0));_.j6(A6w,pg);_.j6(heI,Pk);var gg0=_.dl(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),RX2=_.dl(["//apis.google.com/js/rpc.js"]),xCf=_.cu(gg0),aPH=_.cu(RX2),HRg=null;var Jo=function(y,W){_.uU.call(this);this.JSC$8051_element_=y;y=_.Hn(this.JSC$8051_element_)?this.JSC$8051_element_:this.JSC$8051_element_?this.JSC$8051_element_.body:null;this.isRtl_=!!y&&_.BfW(y);this.listenKey_=_.Y0(this.JSC$8051_element_,_.fi?"DOMMouseScroll":"mousewheel",this,W)};
_.j6(Jo,_.uU);Jo.prototype.handleEvent=function(y){var W=0,c=0,Z=y.event_;Z.type=="mousewheel"?(y=lJW(-Z.wheelDelta),Z.wheelDeltaX!==void 0?(W=lJW(-Z.wheelDeltaX),c=lJW(-Z.wheelDeltaY)):c=y):(y=Z.detail,y>100?y=3:y<-100&&(y=-3),Z.axis!==void 0&&Z.axis===Z.HORIZONTAL_AXIS?W=y:c=y);typeof this.maxDeltaX_==="number"&&(W=_.IT(W,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(c=_.IT(c,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(W=-W);W=new Egi(y,Z,W,c);this.dispatchEvent(W)};
var lJW=function(y){return _.oE&&(_.RfI||ELh)&&y%40!=0?y:y/40};
Jo.prototype.disposeInternal=function(){Jo.superClass_.disposeInternal.call(this);o9(this.listenKey_);this.listenKey_=null};
var Egi=function(y,W,c,Z){_.zF.call(this,W);this.type="mousewheel";this.detail=y;this.deltaX=c;this.deltaY=Z};
_.j6(Egi,_.zF);_.WU=function(y){var W="instance_";if(y.instance_&&y.hasOwnProperty(W))return y.instance_;W=new y;return y.instance_=W};var TrD;var NC8=_.dl(["https://about:blank"]),IJV=_.dl(['javascript:""']),pO3=_.dl(["about:blank"]);_.j6(vk,A6w);_.f=vk.prototype;_.f.JSC$8059_url_="";_.f.JSC$8059_iframe_=null;_.f.iframeLoaded_=!1;_.f.loadedFired_=!1;_.f.callback_=function(){};
_.f.enterDocument=function(){vk.superClass_.enterDocument.call(this);dCI(this.getBackgroundElement(),li(this))};
_.f.render=function(y){var W=this;vk.superClass_.render.call(this,y);this.useGapi_?pnE(this.iframeManager_,window).then(function(){return PtQ(W)}).then(null,function(){W.callback_({action:"error"})}):Jci(this)};
var PtQ=function(y){var W=y.JSC$8008_dom_.JSC$7236_createDom("div",["picker-dialog-content","picker-frame"]);_.Lg(W,!1);y.getContentElement().appendChild(W);return PzQ(y.iframeManager_,W,function(c){var Z=moV(c["iframe-command"]);switch(Z.getCommand()){case 1:c=y.callback_;Z=_.il(Z,x_,2);var G="";switch(Z.getStatus()){case 2:G="cancel";break;case 1:G="picked";break;case 3:G="error"}var D=_.wQ(Z,U2,2,_.ky(kLI));Z=D.length===0?{action:G}:slW(D,G,_.il(Z,DoW,7));c.call(y,Z);y.setVisible(!1);break;case 4:Fsm(y);
y.callback_({action:"loaded"});break;case 7:case 8:c=y.callback_;a:{G=Z.getCommand();D=_.il(Z,x_,2);switch(G){case 7:G="uploadScheduled";break;case 8:G="uploadStateChange";break;default:Z={};break a}Z=_.wQ(D,U2,2,_.ky(kLI));if(Z.length===0)Z={action:G};else{var Y=_.il(D,DoW,7);D=Y&&_.RE(Y,1);Y=yvQ(Y);Z=ZXm(Z,G,D,Y)}}c.call(y,Z)}},y.JSC$8059_url_,y.targetId_,y.rpcToken_).then(function(c){y.JSC$8059_iframe_=c.getIframeEl();
Vui(y);_.Lg(y.JSC$8059_iframe_.parentElement,!0);_.VE(y.getElement(),"picker-dialog");CtT(y);return c})},Jci=function(y){y.JSC$8059_iframe_=y.JSC$8008_dom_.JSC$7236_createDom("IFRAME",{id:y.targetId_,
name:y.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.df(y.JSC$8059_iframe_,QsQ(y));_.VE(y.getElement(),"picker-dialog");y.getContentElement().appendChild(y.JSC$8059_iframe_);li(y).listen(y.JSC$8059_iframe_,"load",function(){return void Vui(y)});
y.JSC$8059_iframe_.src=y.JSC$8059_url_;CtT(y)},hXZ=function(y){AcJ(y,(0,_.$r)(function(W){W.setAuthToken(this.targetId_,this.rpcToken_)},y))},CtT=function(y){var W=_.Bk(_.ho(y.JSC$8059_url_),"title");
W&&y.setTitle(W)},QsQ=function(y){return _.uhh("Internet Explorer")>=7&&_.mE(y.JSC$8059_url_,"https")?_.cu(NC8):_.G$?_.cu(IJV):_.cu(pO3)},Vui=function(y){hXZ(y);
y.iframeLoaded_=!0;y.JSC$8059_iframe_.tabIndex=0;y.isVisible()&&y.focus()};
vk.prototype.handleKeydown_=function(y){y.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),y.stopPropagation(),y.preventDefault())};
var AcJ=function(y,W){var c=y.JSC$8057_gadgetsDomHelper_;L9f(function(){W(c.getWindow().gadgets.rpc)},c)};
vk.prototype.setUrl=function(y){y=_.Hk(new _.Tr(y),"rpcService",this.targetId_);_.Hk(y,"rpctoken",this.rpcToken_);_.ew(y,"rpctoken="+this.rpcToken_);_.TF(y,"https");this.JSC$8059_url_=y.toString();this.JSC$8059_iframe_&&(this.JSC$8059_iframe_.src=this.JSC$8059_url_)};
var BC0=function(y,W){y.callback_=W;AcJ(y,(0,_.$r)(function(c){c.register(this.targetId_,(0,_.$r)(this.handlePickerAction_,this))},y))};
vk.prototype.handlePickerAction_=function(y){var W=y.action;W=="loaded"&&(this.loadedFired_=!0,HDm(this,new QSf(this.isVisible())),Lsm(this),Fsm(this),li(this).unlisten(this.JSC$8008_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8059_iframe_.tabIndex=0);W!="picked"&&W!="cancel"||this.setVisible(!1);this.callback_(y)};
var Lsm=function(y){y.JSC$8059_appId_&&HDm(y,new ClH(y.JSC$8059_appId_,window.location.protocol+"//"+window.location.host))};
vk.prototype.setRelayUrl=function(y){AcJ(this,(0,_.$r)(function(W){W.setRelayUrl(this.targetId_,y)},this))};
var HDm=function(y,W){y.useGapi_&&AvT(W,y.iframeManager_).then(null,function(){y.callback_({action:"error"})});
AcJ(y,(0,_.$r)(function(c){c.call(this.targetId_,"picker",null,W)},y))};
vk.prototype.resizePicker_=function(){var y=pP(this.JSC$8008_dom_.JSC$7234_document_)||window;if(_.Bk(_.ho(this.JSC$8059_url_),"ignoreLimits")=="true")y=new _.nP(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Bk(_.ho(this.JSC$8059_url_),"shadeDialog")=="true"){var W=ngm(this);W=HfE(W);var c=_.bG(y);y=c.width-80;c=c.height-40;W&&(y-=W.left?W.left:0,y-=W.right?W.right:0,c-=W.top?W.top:0,c-=W.bottom?W.bottom:0);y=new _.nP(y>0?y:0,c>0?c:0)}else(W=this.preferredDialogWidth_)?(W=Math.max(320,
Math.min(1051,W)),(c=this.preferredDialogHeight_)||(c=_.bG(y).height*.85),c=Math.max(480,Math.min(650,c))):(W=_.bG(y),c=W.width*.618,c=c<W.height?Math.round(Math.max(480,Math.min(650,c*.85))):Math.round(Math.max(480,Math.min(650,W.height*.85))),W=Math.round(c/.618)),y=_.bG(y),W=Math.min(W,Math.max(y.width,320)),c=Math.min(c,Math.max(y.height,480)),y=new _.nP(W,c);_.VQJ(this.getContentElement(),y);this.reposition()};
vk.prototype.reposition=function(){if(_.Bk(_.ho(this.JSC$8059_url_),"shadeDialog")=="true"){var y=Q$W(this.getElement()),W=_.bG(this.JSC$8008_dom_.getWindow());y=Math.floor(W.width/2-y.width/2);W=ngm(this);if(W=HfE(W)){var c=W.left?W.left:0;c+=W.right?W.right:0;y=Math.floor(y-c/2)}y=y>0?y:0;W=rQ(this.JSC$8008_dom_).y;Qy(this.getElement(),y,W)}else vk.superClass_.reposition.call(this)};
vk.prototype.setVisible=function(y){if(y!=this.isVisible()&&this.autoSizeDialog_){var W=this.JSC$8008_dom_.getWindow();y?(this.resizePicker_(),li(this).listen(W,"resize",this.resizePicker_),this.iframeLoaded_||li(this).listen(W,"keydown",this.handleKeydown_)):(li(this).unlisten(W,"resize",this.resizePicker_),this.iframeLoaded_||li(this).unlisten(W,"keydown",this.handleKeydown_))}vk.superClass_.setVisible.call(this,y);HDm(this,new QSf(y))};
vk.prototype.focus=function(){vk.superClass_.focus.call(this);if(this.JSC$8059_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8059_iframe_.focus()}catch(y){}};var u0=function(y,W){W=W===void 0?vk:W;Pk.call(this,y);this.pickerConstructor=W;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(y=window.location.origin)||(y=window.location.protocol+"//"+window.location.host);y&&this.urlParamMap_.set("origin",y);this.postProcessors_=[]};
_.R(u0,heI);u0.prototype.JSC$8064_disposeOnHide_=!1;
u0.prototype.build=function(){this.JSC$7965_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7965_appId_);this.getRelayUrl()||this.setRelayUrl(_.iU(_.ew(_.MK(_.ho(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var y=new this.pickerConstructor(vgZ(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);y.JSC$8041_disposeOnHide_=this.JSC$8064_disposeOnHide_;
y.JSC$8059_appId_=this.JSC$7965_appId_;y.loadedFired_&&Lsm(y);BC0(y,this.callback_);return y};
var dFT=function(y){y.urlParamMap_.set("multiselectEnabled","true");return y};
u0.prototype.getHeight=function(){return this.dialogHeight_};
u0.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
u0.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
u0.prototype.getWidth=function(){return this.dialogWidth_};
var SPE=function(y){y.JSC$8064_disposeOnHide_=void 0;return y};
u0.prototype.setRelayUrl=function(y){this.urlParamMap_.set("parent",y);return this};
var TC2=function(y,W){y.urlParamMap_.set("selectButtonLabel",W);return y};
u0.prototype.setSize=function(y,W){this.dialogWidth_=y;this.dialogHeight_=W;return this};
u0.prototype.setTitle=function(y){this.urlParamMap_.set("title",y);return this};
var vgZ=function(y){y.postProcessors_.length&&y.urlParamMap_.set("pp",JSON.stringify(y.postProcessors_));y.urlParamMap_.set("nav",w72(y.nav_));var W=new _.Tr(y.getBaseUrl());y.urlParamMap_.forEach(function(c,Z){_.Hk(W,Z,c)});
return W};var iDQ=function(y,W){y.name!==void 0?(this.name=y.name,this.code=aJZ[y.name]):(this.code=y=y.code,this.name=xFE(y));_.yw.call(this,RE5("%s %s",this.name,W))};
_.j6(iDQ,_.yw);var xFE=function(y){var W=_.Eb.findKey(aJZ,function(c){return y==c});
if(W===void 0)throw Error("lb`"+y);return W},Qp={},aJZ=(Qp.AbortError=3,Qp.EncodingError=5,Qp.InvalidModificationError=9,Qp.InvalidStateError=7,Qp.NotFoundError=1,Qp.NotReadableError=4,Qp.NoModificationAllowedError=6,Qp.PathExistsError=12,Qp.QuotaExceededError=10,Qp.SecurityError=2,Qp.SyntaxError=8,Qp.TypeMismatchError=11,Qp);var MuV=function(y,W){_.D9.call(this,y.type,W);this.event_=y};
_.j6(MuV,_.D9);var eXJ=function(y,W,c){c===void 0&&(c=y.size);return y.slice?y.slice(W,c):null};var eeI=new WeakMap,M51=function(y,W){y=[y];for(var c=W.length-1;c>=0;--c)y.push(typeof W[c],W[c]);return y.join("\v")};_.qAa(function(){if(!_.DH.Blob)return!1;var y=new Uint8Array(100);try{var W=new Blob([y])}catch(c){return!1}return W.size!=100?!1:!0});
var wOJ=_.qAa(function(){if(!_.DH.Blob)return!1;var y=new Uint8Array(100);try{var W=new Blob([y])}catch(c){return!1}return eXJ(W,0,1)===null?!1:!0});_.DH.U3bHHf!=null||(_.DH.U3bHHf=0);_.DH.U3bHHf++;var jla={};_.ae=void 0;var Why=Symbol("ub");var uDf=iC("WizInjectionContext_Dispatcher");var DV1=iC("WizInjectionContext_RootElement");var YWI=iC("WizInjectionContext_AppContext"),z$E=iC("WizInjectionContext_ModelRootElement"),mVE=iC("WizInjectionContext_RendererData"),slF=iC("WizInjectionContext_InjectingConstructor"),tSF={};var rvh=!1;var qP3=Symbol("xb"),IJI=Symbol("yb"),PtE=Symbol("zb"),BCH=C8(function(y){return NXh(y)&&qP3 in y});var KhF={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:rYg,enableLazyTsx:FOa,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var wL=Object.assign({},{attributes:{},handleError:function(y){throw y;}},KhF);var InI=Symbol("Ab"),Ah={},lna=(Ah[InI]=!0,Ah.debugName="[component]",Ah.getComponentStack=function(){for(var y=[],W=this;W;)pnf(W)&&y.push(W.debugName),W=W.parent;return y.reverse()},Ah.registerSignal=function(){},Ah.registerEffect=function(){},Ah);var qQ=null,jt=!1,jsy=1,ca=Symbol("Bb"),z9={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 hh=Symbol("Cb"),Bg=Symbol("Db"),Wa=Symbol("Eb"),DFf=Object.assign({},z9,{value:hh,dirty:!0,error:null,equal:PzE,kind:"computed",producerMustRecompute:function(y){return y.value===hh||y.value===Bg},
producerRecomputeValue:function(y){if(y.value===Bg)throw Error("da");var W=y.value;y.value=Bg;var c=G5h(y),Z=!1;try{var G=y.computation();kr(null);Z=W!==hh&&W!==Wa&&G!==Wa&&y.equal(W,G)}catch(D){G=Wa,y.error=D}finally{fJI(y,c)}Z?y.value=W:(y.value=G,y.version++)}});var ucI=function(){throw Error();};var ngh=null,YPt=Object.assign({},z9,{equal:PzE,value:void 0,kind:"signal"});Object.assign({},z9,{value:hh,dirty:!0,error:null,equal:PzE,kind:"linkedSignal",producerMustRecompute:function(y){return y.value===hh||y.value===Bg},
producerRecomputeValue:function(y){if(y.value===Bg)throw Error("da");var W=y.value;y.value=Bg;var c=G5h(y);try{var Z=y.source();var G=y.computation(Z,W===hh||W===Wa?void 0:{source:y.sourceValue,value:W});y.sourceValue=Z}catch(D){G=Wa,y.error=D}finally{fJI(y,c)}W!==hh&&G!==Wa&&y.equal(W,G)?y.value=W:(y.value=G,y.version++)}});Object.assign({},z9,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(y){y.schedule!==null&&y.schedule(y.ref)},
hasRun:!1,cleanupFn:function(){}});var bDI=Symbol("Fb"),fL=Symbol("Gb");var o2=Array.isArray;var lJF;var k5J={},NCa=RXg(Object.assign({},{consumerAllowSignalWrites:!0},k5J)),cI=RXg(Object.assign({},{consumerAllowSignalWrites:!0},k5J));var vgD=[];var Lsh=0,Hg=function(){this.queue=new Set};
Hg.prototype.remove=function(y){this.queue.delete(y)};
var jNT=function(){Hg.apply(this,arguments)};
_.R(jNT,Hg);jNT.prototype.schedule=function(y){y.hasRun?this.queue.add(y):y.run()};
jNT.prototype.flush=function(){if(this.queue.size){var y=this.queue;this.queue=new Set;HDh(y)}};
var pO1=new jNT,ysE=function(){Hg.apply(this,arguments)};
_.R(ysE,Hg);ysE.prototype.schedule=function(y){var W=this;return _.m(function(c){if(c.nextAddress==1)return y.hasRun?c.jumpTo(2):_.n(c,Promise.resolve(),3);if(c.nextAddress!=2)return y.run(),c.return();W.queue.add(y);_.F2(c)})};
ysE.prototype.flush=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1){if(!y.queue.size)return c.return();W=y.queue;y.queue=new Set;return _.n(c,Promise.resolve(),2)}HDh(W);_.F2(c)})};
var JcO=new ysE,hXD=[pO1,JcO],QsE=[];ngh=function(){VuO();for(var y=_.z(QsE),W=y.next();!W.done;W=y.next())W=W.value,W()};var nL=Symbol("Mb");var tl=[],aJD,xFf,iDE;var L2={},WyT=Object.assign({},z9,(L2[qP3]=!0,L2.effectType=IJI,L2.isResettableContext=!0,L2.producerNode=void 0,L2.hasRun=!1,L2.effectFn=null,L2.consumerIsAlwaysLive=!0,L2.consumerAllowSignalWrites=!0,L2.consumerMarkedDirty=Ctw,L2.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(jt)throw Error("Nb");this.dirty=!1;if(!this.hasRun||ycF(this)){this.hasRun=!0;o2w(this);var y=xr(this),W=G5h(this);g2w("effectRun",this.debugName);try{rV(this.effectFn,{stack:this.componentStack})}finally{R$I("effectRun",
this.debugName),fJI(this,W),xr(y)}}}},L2.componentStack=void 0,L2.debugName="[effect]",L2[Symbol.dispose]=function(){Jvy(this);
if(yR(this))for(var y=0;y<this.producerNode.length;y++)VSh(this.producerNode[y],this.producerIndexOfThis[y]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);y=_.z(hXD);for(var W=y.next();!W.done;W=y.next())W.value.remove(this);fnw(this)},L2));var eXy=Object.assign({},WyT,{effectType:IJI});var wOy=Object.assign({},WyT,{effectType:PtE});var qP1=Symbol("Ob");var VNy=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 T9=Symbol("Pb");var ya=function(){},zw=function(y){this.props=y;
this.__unmounted=!1};
zw.prototype.didPatch=function(){};
zw.prototype.didMount=function(){};
zw.prototype.didUnmount=function(){};
zw.prototype.didUpdate=function(){};var ysf={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,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},jNw={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}]}},gpD={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},Zvh=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],csg={"*":{async:1,dir:0,loading:2,target:3}};var cs2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,vg={},fmf=(vg[1]=null,vg[2]=function(y,W){return W instanceof BX?vX(W):PX.toString()},vg[3]=function(y,W){return lF(W)?_.N9(W):cs2.test(String(W))?String(W):PX.toString()},vg[4]=function(y,W){return W instanceof bF?_.U3(W):PX.toString()},vg[5]=function(y,W){return String(W)},vg[7]=null,vg[8]=null,vg[10]=null,vg);var eNa=Symbol("Sb");var hvg=function(y){var W=Zvm,c=y,Z="",G="",D=1;y<0&&(y=-y);if(y===Infinity)y=(Infinity*Math.sign(c)).toString();else{for(var Y=0;Y<G7V.length;Y++){var u=G7V[Y];D=W[u];if(y>=D||D<=1&&y>.1*D){Z=u;break}}Z?(Z+="B",G=" "):D=1;y=Math.round(c/D*10)/10+G+Z}return y},G7V="Y Z E P T G M K  m u n".split(" "),Zvm={"":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};_.fmE=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 wV={};RegExp.prototype.hasOwnProperty("sticky");var AsI=function(y){y=String(y);for(var W=function(Z,G,D){for(var Y=Math.min(G.length-D,Z.length),u=0;u<Y;u++){var t=G[D+u];if(Z[u]!==("A"<=t&&t<="Z"?t.toLowerCase():t))return!1}return!0},c=0;(c=y.indexOf("<",c))!=-1;){if(W("\x3c/script",y,c)||W("\x3c!--",y,c))return"zSoyz";
c+=1}return y};var EN={default:"__default"};var uoy=Object.prototype.hasOwnProperty;z2t.prototype=Object.create(null);var T5=XRE();var Ha=null;var EMt=function(y){this.created=[];this.deleted=[];this.node=y};var NJH=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var y=this,W=y;y;)W=y,y=y.parentNode;return W};var rsD=function(y,W){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=y;this.key=W;this.text=void 0};var Pa=null,VR=null,I2=null,QR=null,Ovw=[],Kyg=U4f,hl=[],Ba=[],M8D=function(y){return Im1(function(W,c,Z){I2=VR=W;VR=null;c(Z);$41(null);VR=I2;I2=I2.parentNode;return W},y)}(),ipg=function(y){return Im1(function(W,c,Z){var G={nextSibling:W};
VR=G;c(Z);I2&&$41(W.nextSibling);return G===VR?null:VR},y)}();var LL=[],PnH=0;var va=new z2t;var us=new z2t;var oMm=XRE(),QNI=oMm[EN.default],h2E=oMm.style,Cn1=["focusin","focusout"];var $RH=function(){},YLw=function(){},lUg=function(){},OOa=function(){};var St=Symbol("Zb");var TJO,SQt=d4h;var kk=Symbol("$b");var ZOH={};var Rht=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(" ")),
gTI=new Set(["a","font","script","style","title"]);var ZL={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Gw=null,DL=function(y,W){zw.call(this,y);var c=this;this.functionComponent=W;this.hooks=[];this.hookCounter=0;this.disposeEffects=ON(function(Z){c.effectContext=Z;_.KL(function(){tby(c,c.el)})},wL.alwaysTrackContexts||!!_.ae)};
_.R(DL,zw);DL.prototype.render=function(y){var W=Gw;Gw=this;this.hookCounter=0;var c=kr(cI),Z=xr(this.effectContext);try{return g2w("render",this.componentName),this.functionComponent(y)}finally{R$I("render",this.componentName),xr(Z),kr(c),Gw=W}};
_.dJ.Object.defineProperties(DL.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.functionComponent.debugName)!=null?y:this.functionComponent.name)!=null?W:"[component]"}}});var ETw=Symbol("nc"),F4O=function(y,W,c){this.kind=y;this.props=W;this.children=c};
_.R(F4O,ya);F4O.prototype.render=function(){return rGF(this.kind,this.props,this.children)};
F4O.prototype.getChildren=function(){return this.children};var IUD=[];ucI=function(y){throw Error("sb`"+y.debugName);};
(function(){var y=Ha;Ha=function(W){y==null||y(W);pTh(W)}})();var D45=void 0,z2E={},YQT=new WeakMap,PMw={getComponent:function(y){if(y.hasAttribute("ng-version"))return z2E;if(!y.__wizComponent)return null;y=y.__wizComponent;YQT.set(y.propsAndState,y);return y.propsAndState},
getDirectiveMetadata:function(y){if(y===z2E)return{framework:"wiz",name:"<Root>",props:{}};y=YQT.get(y);if(!y)throw Error("oc");return{framework:"wiz",name:y.name,props:Object.fromEntries(Object.keys(y.props).map(function(W){return[W,W]}))}},
"\u0275setProfiler":function(y){var W;(W=D45)==null||W();D45=Acy(function(){y(2)})},
isSignal:function(y){return typeof y==="function"&&y[ca]!==void 0}};var Vbh={nonNullableCondIsNull:function(){return Error("sc")}};_.X.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.X.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.X.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var HOg=function(){this.map=new Map};
HOg.prototype.push=function(y,W){var c=this.map;c.has(y)&&(this.multi||(this.multi=new Map),this.multi.set(W,c.get(y)));c.set(y,W)};
HOg.prototype.pop=function(y){var W=this.map,c=W.get(y),Z;c!==void 0&&((Z=this.multi)==null?0:Z.has(c))?(W.set(y,this.multi.get(c)),this.multi.delete(c)):W.delete(y);return c};var aUt={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(y){return Error("uc`"+y)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(y,W){return Error("yc`"+y+"`"+W)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(y){return Error("zc`"+y)},
USE_ELEMENT_NOT_ASSIGNED:function(y){return Error("Ac`"+String(y))}};TJO=URy;var kry=Symbol("Bc");sig({beforeRender:function(y){var W=xr(y.effectContext);try{var c;((c=y.__syncEffects)==null?0:c.length)&&yEF(y.__syncEffects)}finally{xr(W)}},
didPatch:function(y){var W=xr(y.effectContext);try{var c;((c=y.__syncEffects)==null?0:c.length)&&yEF(y.__syncEffects)}finally{xr(W)}},
didUnmount:function(y){var W;((W=y.hooks)==null?0:W.length)&&y.hooks.forEach(jPI)}});var m4J,sNJ,uoJ;m4J=_.DH.window;_.R8=(m4J==null?void 0:(sNJ=m4J.yt)==null?void 0:sNJ.config_)||(m4J==null?void 0:(uoJ=m4J.ytcfg)==null?void 0:uoJ.data_)||{};_.LR("yt.config_",_.R8);var tNT={},GGf=[];_.ul=function(y){var W=_.Cf.apply(1,arguments);var c=Error.call(this,y);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(_.No(W));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.ul,Error);var Dhf=function(y,W,c){this.actionName=y;this.optionalAction=W===void 0?!1:W;this.args=c===void 0?null:c;this.returnValue=[]};_.w=function(y){this.name=y};_.Jc=new _.w("signalAction");var XAt=/^[\w.]*$/,YcH={q:!0,search_query:!0},zoI=String(D2y);var dq;dq=Symbol("Cc");_.Sm=function(y){this.name=y};
_.Sm.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var bly=function(y){this.key=y},U21=function(y){this.deferredKey=y},Fqt=function(){var y=this;
this.providers=new Map;this.JSC$8268_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(y.providers)}}};
Fqt.prototype.addProvider=function(y){this.providers.set(y.provide,y);var W=this.JSC$8268_deferred.get(y.provide);if(W)try{W.resolver(this.resolve(y.provide))}catch(c){W.rejector(c)}};
Fqt.prototype.resolve=function(y){return y instanceof U21?nMZ(this,y):y instanceof bly?XRQ(this,y.key,[],!0):XRQ(this,y,[])};
var nMZ=function(y,W){W=W.deferredKey;if(y.JSC$8268_deferred.has(W))return y.JSC$8268_deferred.get(W).promise;var c={};c.promise=new Promise(function(Z,G){c.resolver=Z;c.rejector=G});
y.JSC$8268_deferred.set(W,c);return c.promise},XRQ=function(y,W,c,Z){Z=Z===void 0?!1:Z;
if(c.indexOf(W)>-1)throw Error("Dc`"+W);if(y.cachedValues.has(W))return y.cachedValues.get(W);if(!y.providers.has(W)){if(Z)return;throw Error("Ec`"+W);}Z=y.providers.get(W);c.push(W);if(Z.useValue!==void 0)var G=Z.useValue;else if(Z.useFactory)G=Z[dq]?bvT(y,Z[dq],c):[],G=Z.useFactory.apply(Z,_.No(G));else if(Z.useClass){G=Z.useClass;var D=G[dq]?bvT(y,G[dq],c):[];G=new (Function.prototype.bind.apply(G,[null].concat(_.No(D))))}else throw Error("Fc`"+W);c.pop();Z.skipCache||y.cachedValues.set(W,G);return G},
bvT=function(y,W,c){return W?W.map(function(Z){return Z instanceof bly?XRQ(y,Z.key,c,!0):XRQ(y,Z,c)}):[]};var rEE;var V8=new _.Sm("ENDPOINT_HANDLER_TOKEN");_.CD=new _.w("urlEndpoint");var rsZ=function(){this.data=[];this.cachedPackedInt52=-1};
rsZ.prototype.set=function(y,W){W=W===void 0?!0:W;0<=y&&y<52&&Number.isInteger(y)&&this.data[y]!==W&&(this.data[y]=W,this.cachedPackedInt52=-1)};
rsZ.prototype.get=function(y){return!!this.data[y]};
var Fym=function(y){y.cachedPackedInt52===-1&&(y.cachedPackedInt52=y.data.reduce(function(W,c,Z){return W+(c?Math.pow(2,Z):0)},0));
return y.cachedPackedInt52};var CNf=function(y){var W=U4E;y=y===void 0?_.JW("yt.ads.biscotti.lastId_")||"":y;var c=Object,Z=c.assign,G={};G.dt=lS5;G.flash="0";a:{try{var D=W.JSC$8274_win_.top.location.href}catch(ED){D=2;break a}D=D?D===W.doc_.location.href?0:1:2}G=(G.frm=D,G);try{G.u_tz=-(new Date).getTimezoneOffset();var Y=Y===void 0?JU:Y;try{var u=Y.history.length}catch(ED){u=0}G.u_his=u;var t;G.u_h=(t=JU.screen)==null?void 0:t.height;var b;G.u_w=(b=JU.screen)==null?void 0:b.width;var r;G.u_ah=(r=JU.screen)==null?void 0:r.availHeight;
var F;G.u_aw=(F=JU.screen)==null?void 0:F.availWidth;var K;G.u_cd=(K=JU.screen)==null?void 0:K.colorDepth}catch(ED){}u=W.JSC$8274_win_;try{var l=u.screenX;var N=u.screenY}catch(ED){}try{var P=u.outerWidth;var V=u.outerHeight}catch(ED){}try{var Q=u.innerWidth;var S=u.innerHeight}catch(ED){}try{var cy=u.screenLeft;var M=u.screenTop}catch(ED){}try{Q=u.innerWidth,S=u.innerHeight}catch(ED){}try{var fa=u.screen.availWidth;var jI=u.screen.availTop}catch(ED){}l=[cy,M,l,N,fa,jI,P,V,Q,S];N=kaH(!1,W.JSC$8274_win_.top);
P={};var sD=sD===void 0?_.DH:sD;V=new rsZ;"SVGElement"in sD&&"createElementNS"in sD.document&&V.set(0);Q=TSZ();Q["allow-top-navigation-by-user-activation"]&&V.set(1);Q["allow-popups-to-escape-sandbox"]&&V.set(2);sD.crypto&&sD.crypto.subtle&&V.set(3);"TextDecoder"in sD&&"TextEncoder"in sD&&V.set(4);sD=Fym(V);W=(P.bc=sD,P.bih=N.height,P.biw=N.width,P.brdim=l.join(),P.vis=TVh(W.doc_),P.wgl=!!JU.WebGLRenderingContext,P);c=Z.call(c,G,W);c.ca_type="image";y&&(c.bid=y);return c},U4E=new function(){var y=
window.document;
this.JSC$8274_win_=window;this.doc_=y};
_.LR("yt.ads_.signals_.getAdSignalsString",function(y){return m21(CNf(y))});_.k3();navigator.userAgent.indexOf(" (CrKey ");var RoE="XMLHttpRequest"in _.DH?function(){return new XMLHttpRequest}:null;var $43="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Ky2=[].concat(_.No($43),["client_dev_set_cookie"]);var VGh={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"},NKf="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(_.No($43)),Sca=!1,pAa=_.QPE,LqI=JEO;var t8h=[{messageFn:function(y){return"Cannot read property '"+y.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(y){return"Cannot call '"+y.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(y){return y.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var OvT={messageWeights:[],callbackWeights:[{callback:ilH,weight:500}]};var gME=function(){this.callbackWeights=[];this.messageWeights=[]},R2Z,u5a=function(){if(!R2Z){var y=R2Z=new gME;
y.messageWeights.length=0;y.callbackWeights.length=0;LPy(y,OvT)}return R2Z},LPy=function(y,W){W.messageWeights&&y.messageWeights.push.apply(y.messageWeights,W.messageWeights);
W.callbackWeights&&y.callbackWeights.push.apply(y.callbackWeights,W.callbackWeights)};_.j6(_.fR,_.UR);_.fR.prototype.subscribe=function(y,W,c){var Z=this.topics_[y];Z||(Z=this.topics_[y]=[]);var G=this.JSC$8298_key_;this.subscriptions_[G]=y;this.subscriptions_[G+1]=W;this.subscriptions_[G+2]=c;this.JSC$8298_key_=G+3;Z.push(G);return G};
var lmV=function(y){var W=rzD,c=!1,Z=W.subscribe("handleError",function(G){c||(c=!0,this.unsubscribeByKey(Z),y.apply(void 0,arguments))},W)};
_.fR.prototype.unsubscribe=function(y,W,c){if(y=this.topics_[y]){var Z=this.subscriptions_;if(y=y.find(function(G){return Z[G+1]==W&&Z[G+2]==c}))return this.unsubscribeByKey(y)}return!1};
_.fR.prototype.unsubscribeByKey=function(y){var W=this.subscriptions_[y];if(W){var c=this.topics_[W];this.publishDepth_!=0?(this.pendingKeys_.push(y),this.subscriptions_[y+1]=function(){}):(c&&_.dg(c,y),delete this.subscriptions_[y],delete this.subscriptions_[y+1],delete this.subscriptions_[y+2])}return!!W};
_.fR.prototype.publish=function(y,W){var c=this.topics_[y];if(c){var Z=Array(arguments.length-1),G=arguments.length,D;for(D=1;D<G;D++)Z[D-1]=arguments[D];if(this.async_)for(D=0;D<c.length;D++)G=c[D],EME(this.subscriptions_[G+1],this.subscriptions_[G+2],Z);else{this.publishDepth_++;try{for(D=0,G=c.length;D<G&&!this.isDisposed();D++){var Y=c[D];this.subscriptions_[Y+1].apply(this.subscriptions_[Y+2],Z)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;c=this.pendingKeys_.pop();)this.unsubscribeByKey(c)}}return D!=
0}return!1};
var EME=function(y,W,c){_.n$(function(){y.apply(W,c)})};
_.fR.prototype.clear=function(y){if(y){var W=this.topics_[y];W&&(W.forEach(this.unsubscribeByKey,this),delete this.topics_[y])}else this.subscriptions_.length=0,this.topics_={}};
_.fR.prototype.getCount=function(y){if(y){var W=this.topics_[y];return W?W.length:0}y=0;for(W in this.topics_)y+=this.getCount(W);return y};
_.fR.prototype.disposeInternal=function(){_.fR.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var rzD=new _.fR;var wr=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(wr,_.eD);wr.prototype.getColdHashData=function(){return _.RE(this,3)};
wr.prototype.getHotHashData=function(){return _.RE(this,5)};
wr.prototype.setHotHashData=function(y){return _.Ub(this,5,y)};var DO1=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(DO1,_.eD);var A7f=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(A7f,_.eD);_.f=A7f.prototype;_.f.getDeviceId=function(){return _.RE(this,6)};
_.f.getExperimentIds=function(y){var W=_.Qd(this,9,_.yd,3,!0);aHI(W,y);return W[y]};
_.f.getPlayerType=function(){return _.lm(this,36)};
_.f.setHomeGroupInfo=function(y){return _.uF(this,81,y)};
_.f.clearLocationPlayabilityToken=function(){return _.e5(this,89)};var z5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(z5,_.eD);z5.prototype.setKey=function(y){return _.Ub(this,1,y)};
z5.prototype.getValue=function(){return Nr(this,2,BIw)};
var BIw=[2,3,4,5,6];var NJ5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(NJ5,_.eD);NJ5.prototype.setTrackingParams=function(y){return _.e5(this,1,_.RV(y,!1))};var hU1=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(hU1,_.eD);var mOa=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(mOa,_.eD);mOa.prototype.getExperimentIds=function(y){var W=_.Qd(this,5,_.tVt,3,!0);aHI(W,y);return W[y]};var ut=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ut,_.eD);ut.prototype.getToken=function(){return _.sR(this,2)};
ut.prototype.setToken=function(y){return _.Ub(this,2,y)};var ms=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ms,_.eD);ms.prototype.setSafetyMode=function(y){return _.MC(this,5,y)};var DJ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(DJ,_.eD);DJ.prototype.setClient=function(y){return _.uF(this,1,y)};var Ytg={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 zzH;_.pZ=function(){var y=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.DH.addEventListener("beforeinstallprompt",function(W){W.preventDefault();y.deferredInstallPrompt=W});
_.DH.addEventListener("appinstalled",function(){y.appInstalledEventFired=!0},{once:!0})};
zzH=function(){if(!_.DH.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.DH.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.DH.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.DH.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.DH.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(y){return"WEB_DISPLAY_MODE_UNKNOWN"}};var tdw=function(){this.syncHeaders=!0},n$t=function(y){var W={},c=[];
"USER_SESSION_ID"in _.R8&&c.push({key:"u",value:_.Nn("USER_SESSION_ID")});if(c=AxI(c))W.Authorization=c,c=y=y==null?void 0:y.sessionIndex,c===void 0&&(c=Number(_.Nn("SESSION_INDEX",0)),c=isNaN(c)?0:c),_.O("voice_search_auth_header_removal")||(W["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in _.R8||(W["X-Origin"]=window.location.origin),y===void 0&&"DELEGATED_SESSION_ID"in _.R8&&(W["X-Goog-PageId"]=_.Nn("DELEGATED_SESSION_ID"));return W};var Im3={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var TH=_.JW("ytglobal.prefsUserPrefsPrefs_")||{},pR8;_.LR("ytglobal.prefsUserPrefsPrefs_",TH);_.a7=function(){this.cookieName=_.Nn("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Nn("ALT_PREF_COOKIE_DOMAIN","youtube.com");var y=_.DP.get(this.cookieName,void 0);y&&this.parse(y)};
_.Uc=function(){pR8||(pR8=new _.a7);return pR8};
_.a7.prototype.get=function(y,W){Pn0(y);JsT(y);y=TH[y]!==void 0?TH[y].toString():null;return y!=null?y:W?W:""};
_.a7.prototype.set=function(y,W){Pn0(y);JsT(y);if(W==null)throw Error("Ic");TH[y]=W.toString()};
_.a7.prototype.getFlag=function(y){return!!((VNJ("f"+(Math.floor(y/31)+1))||0)&1<<y%31)};
_.$A=function(y,W,c){y="f"+(Math.floor(W/31)+1);W=1<<W%31;var Z=VNJ(y)||0;Z=c?Z|W:Z&~W;Z===0?delete TH[y]:(c=Z.toString(16),TH[y]=c.toString())};
_.a7.prototype.remove=function(y){Pn0(y);JsT(y);delete TH[y]};
_.a7.prototype.save=function(){var y=!0;_.O("web_secure_pref_cookie_killswitch")&&(y=!1);_.zj(this.cookieName,this.dump(),63072E3,this.cookieDomain,y)};
_.a7.prototype.clear=function(){_.Eb.clear(TH)};
_.a7.prototype.dump=function(){var y=[],W;for(W in TH)TH.hasOwnProperty(W)&&y.push(W+"="+encodeURIComponent(String(TH[W])));return y.join("&")};
var JsT=function(y){if(/^f([1-9][0-9]*)$/.test(y))throw Error("Jc`"+y);},Pn0=function(y){if(!/^\w+$/.test(y))throw Error("Kc`"+y);
},VNJ=function(y){y=TH[y]!==void 0?TH[y].toString():null;
return y!=null&&/^[A-Fa-f0-9]+$/.test(y)?parseInt(y,16):null};
_.a7.prototype.parse=function(y){y=decodeURIComponent(y).split("&");for(var W=0;W<y.length;W++){var c=y[W].split("="),Z=c[0];(c=c[1])&&(TH[Z]=c.toString())}};var cKt={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"},sWO={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},uy1={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},Gxa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var LN;_.xb=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Xc=function(y,W,c){return y.addJob(W,0,c)};
_.xb.prototype.addLowPriorityJob=function(y,W){return this.addJob(y,1,W)};
_.YY=function(y,W,c){return y.addJob(W,2,c)};
_.X5=function(y,W,c){return y.addJob(W,3,c)};
_.vh=function(y,W,c){return y.addJob(W,4,c)};
LN=function(y){var W=_.JW("yt.scheduler.instance.addImmediateJob");W?W(y):y()};
_.xb.prototype.debounce=function(y,W,c){var Z=this,G=0,D=function(){G&&Z.cancelJob(G);G=Z.addJob(y,W,c);Z.cancelDebouncedJobMap.set(D,G)};
return D};
_.xb.prototype.cancelThrottle=function(y){(y=this.cancelThrottledJobMap.get(y))&&y()};var ii=function(){_.xb.apply(this,arguments)};
_.R(ii,_.xb);_.gl=function(){ii.instance||(ii.instance=new ii);return ii.instance};
ii.prototype.addJob=function(y,W,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var Z=_.JW("yt.scheduler.instance.addJob");return Z?Z(y,W,c):c===void 0?(y(),NaN):_.j5(y,c||0)};
ii.prototype.cancelJob=function(y){if(y===void 0||!Number.isNaN(Number(y))){var W=_.JW("yt.scheduler.instance.cancelJob");W?W(y):_.W7(y)}};
ii.prototype.start=function(){var y=_.JW("yt.scheduler.instance.start");y&&y()};
ii.prototype.pause=function(){var y=_.JW("yt.scheduler.instance.pause");y&&y()};
_.KX=_.gl();_.t6.prototype.set=function(y,W){W===void 0?this.mechanism.remove(y):this.mechanism.set(y,(0,_.Up)(W))};
_.t6.prototype.get=function(y){try{var W=this.mechanism.get(y)}catch(c){return}if(W!==null)try{return JSON.parse(W)}catch(c){throw"Storage: Invalid value was encountered";}};
_.t6.prototype.remove=function(y){this.mechanism.remove(y)};var MJ=function(y){this.mechanism=y};
_.j6(MJ,_.t6);var Cn3=function(y){this.data=y},QNV=function(y){return y===void 0||y instanceof Cn3?y:new Cn3(y)};
MJ.prototype.set=function(y,W){MJ.superClass_.set.call(this,y,QNV(W))};
MJ.prototype.getWrapper=function(y){y=MJ.superClass_.get.call(this,y);if(y===void 0||y instanceof Object)return y;throw"Storage: Invalid value was encountered";};
MJ.prototype.get=function(y){if(y=this.getWrapper(y)){if(y=y.data,y===void 0)throw"Storage: Invalid value was encountered";}else y=void 0;return y};_.j6(nR,MJ);_.AsV=function(y){var W=y.creation;y=y.expiration;return!!y&&y<_.k3()||!!W&&W>_.k3()};
nR.prototype.set=function(y,W,c){if(W=QNV(W)){if(c){if(c<_.k3()){nR.prototype.remove.call(this,y);return}W.expiration=c}W.creation=_.k3()}nR.superClass_.set.call(this,y,W)};
nR.prototype.getWrapper=function(y,W){var c=nR.superClass_.getWrapper.call(this,y);if(c)if(!W&&_.AsV(c))nR.prototype.remove.call(this,y);else return c};var em=function(){};
em.prototype.next=function(){return wq};
var wq={done:!0,value:void 0},qJ=function(y){return{value:y,done:!1}};
em.prototype.__iterator__=function(){return this};
_.h2Q=function(y){if(y instanceof em)return y;if(typeof y.__iterator__=="function")return y.__iterator__(!1);if(_.TO(y)){var W=0,c=new em;c.next=function(){for(;;){if(W>=y.length)return wq;if(W in y)return qJ(y[W++]);W++}};
return c}throw Error("Lc");};var BJ8=function(y){if(y instanceof kb||y instanceof jX||y instanceof y1)return y;if(typeof y.next=="function")return new kb(function(){return y});
if(typeof y[Symbol.iterator]=="function")return new kb(function(){return y[Symbol.iterator]()});
if(typeof y.__iterator__=="function")return new kb(function(){return y.__iterator__()});
throw Error("Mc");},kb=function(y){this.func_=y};
kb.prototype.__iterator__=function(){return new jX(this.func_())};
kb.prototype[Symbol.iterator]=function(){return new y1(this.func_())};
kb.prototype.toEs6=function(){return new y1(this.func_())};
var jX=function(y){this.JSC$8382_iter_=y};
_.R(jX,em);jX.prototype.next=function(){return this.JSC$8382_iter_.next()};
jX.prototype[Symbol.iterator]=function(){return new y1(this.JSC$8382_iter_)};
jX.prototype.toEs6=function(){return new y1(this.JSC$8382_iter_)};
var y1=function(y){kb.call(this,function(){return y});
this.JSC$8385_iter_=y};
_.R(y1,kb);y1.prototype.next=function(){return this.JSC$8385_iter_.next()};var Hv0=function(){};var Wi=function(){};
_.j6(Wi,Hv0);Wi.prototype.getCount=function(){for(var y=0,W=_.z(this),c=W.next();!c.done;c=W.next())y++;return y};
Wi.prototype[Symbol.iterator]=function(){return BJ8(this.__iterator__(!0)).toEs6()};
Wi.prototype.clear=function(){var y=Array.from(this);y=_.z(y);for(var W=y.next();!W.done;W=y.next())this.remove(W.value)};_.j6(XW,Wi);_.f=XW.prototype;_.f.isAvailable=function(){if(!UjD||this.cachedIsStorageAvailable_===null){var y=this.storage_;if(y)try{performance.now();y.setItem("__sak","1");y.removeItem("__sak");performance.now();var W=!0}catch(c){W=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&y&&y.length!==0}else W=!1;this.cachedIsStorageAvailable_=W}return this.cachedIsStorageAvailable_};
_.f.set=function(y,W){ci(this);try{this.storage_.setItem(y,W)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.f.get=function(y){ci(this);y=this.storage_.getItem(y);if(typeof y!=="string"&&y!==null)throw"Storage mechanism: Invalid value was encountered";return y};
_.f.remove=function(y){ci(this);this.storage_.removeItem(y)};
_.f.getCount=function(){ci(this);return this.storage_.length};
_.f.__iterator__=function(y){ci(this);var W=0,c=this.storage_,Z=new em;Z.next=function(){if(W>=c.length)return wq;var G=c.key(W++);if(y)return qJ(G);G=c.getItem(G);if(typeof G!=="string")throw"Storage mechanism: Invalid value was encountered";return qJ(G)};
return Z};
_.f.clear=function(){ci(this);this.storage_.clear()};
_.f.key=function(y){ci(this);return this.storage_.key(y)};
var ci=function(y){if(y.storage_==null)throw Error("Nc");var W;(UjD?y.isAvailable():(W=y.cachedIsStorageAvailable_)!=null?W:y.isAvailable())||YF(Error("Nc"))};_.j6(oRa,XW);_.j6(DWO,XW);_.j6(bl,Wi);bl.prototype.set=function(y,W){this.mechanism_.set(this.JSC$8400_prefix_+y,W)};
bl.prototype.get=function(y){return this.mechanism_.get(this.JSC$8400_prefix_+y)};
bl.prototype.remove=function(y){this.mechanism_.remove(this.JSC$8400_prefix_+y)};
bl.prototype.__iterator__=function(y){var W=this.mechanism_[Symbol.iterator](),c=this,Z=new em;Z.next=function(){var G=W.next();if(G.done)return G;for(G=G.value;G.slice(0,c.JSC$8400_prefix_.length)!=c.JSC$8400_prefix_;){G=W.next();if(G.done)return G;G=G.value}return qJ(y?G.slice(c.JSC$8400_prefix_.length):c.mechanism_.get(G))};
return Z};_.EW=function(y){this.expiringStorage_=(y=_.z4D(y))?new nR(y):null;this.JSC$8404_domain_=document.domain||window.location.hostname};
_.EW.prototype.set=function(y,W,c,Z){c=c||31104E3;this.remove(y);if(this.expiringStorage_)try{this.expiringStorage_.set(y,W,Date.now()+c*1E3);return}catch(D){}var G="";if(Z)try{G=escape((0,_.Up)(W))}catch(D){return}else G=escape(W);_.zj(y,G,c,this.JSC$8404_domain_)};
_.EW.prototype.get=function(y,W){var c=void 0,Z=!this.expiringStorage_;if(!Z)try{c=this.expiringStorage_.get(y)}catch(G){Z=!0}if(Z&&(c=_.DP.get(y,void 0))&&(c=unescape(c),W))try{c=JSON.parse(c)}catch(G){this.remove(y),c=void 0}return c};
_.EW.prototype.remove=function(y){this.expiringStorage_&&this.expiringStorage_.remove(y);_.jvt(y,"/",this.JSC$8404_domain_)};
_.EW.prototype.getCreationTime=function(y){return this.expiringStorage_&&(y=(this.expiringStorage_.getWrapper(y)||{}).creation,typeof y==="number")?y:null};var mWw=function(){var y;return function(){y||(y=new _.EW("ytidb"));return y}}();var ujf;_.FW=[];ujf=!1;var JKw=tvH||nRa;var ZY={},Ly5=(ZY.AUTH_INVALID="No user identifier specified.",ZY.EXPLICIT_ABORT="Transaction was explicitly aborted.",ZY.IDB_NOT_SUPPORTED="IndexedDB is not supported.",ZY.MISSING_INDEX="Index not created.",ZY.MISSING_OBJECT_STORES="Object stores not created.",ZY.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",ZY.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",ZY.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",ZY.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",ZY.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",ZY.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",ZY.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",ZY),GA={},vMQ=(GA.AUTH_INVALID="ERROR",GA.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",GA.EXPLICIT_ABORT="IGNORED",
GA.IDB_NOT_SUPPORTED="ERROR",GA.MISSING_INDEX="WARNING",GA.MISSING_OBJECT_STORES="ERROR",GA.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",GA.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",GA.QUOTA_EXCEEDED="WARNING",GA.QUOTA_MAYBE_EXCEEDED="WARNING",GA.UNKNOWN_ABORT="WARNING",GA.INCOMPATIBLE_DB_VERSION="WARNING",GA),fU={},d4m=(fU.AUTH_INVALID=!1,fU.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,fU.EXPLICIT_ABORT=!1,fU.IDB_NOT_SUPPORTED=!1,fU.MISSING_INDEX=!1,fU.MISSING_OBJECT_STORES=!1,fU.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,fU.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,fU.QUOTA_EXCEEDED=!1,fU.QUOTA_MAYBE_EXCEEDED=!0,fU.UNKNOWN_ABORT=!0,fU.INCOMPATIBLE_DB_VERSION=!1,fU),RS=function(y,W,c,Z,G){W=W===void 0?{}:W;c=c===void 0?Ly5[y]:c;Z=Z===void 0?vMQ[y]:Z;G=G===void 0?d4m[y]:G;_.ul.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:y},W));this.type=y;this.message=c;this.level=Z;this.retryable=G;Object.setPrototypeOf(this,RS.prototype)};
_.R(RS,_.ul);var SQE=function(y,W){RS.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:y},Ly5.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,SQE.prototype)};
_.R(SQE,RS);var bqI=function(y,W){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=y;this.objectStore=W;Object.setPrototypeOf(this,bqI.prototype)};
_.R(bqI,Error);var rKg=["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 IS=function(y){this.executor=y},NC=function(y){var W=this;
this.state={status:"PENDING"};this.JSC$8432_onFulfilled=[];this.JSC$8432_onRejected=[];y=y.executor;var c=function(G){if(W.state.status==="PENDING"){W.state={status:"FULFILLED",value:G};G=_.z(W.JSC$8432_onFulfilled);for(var D=G.next();!D.done;D=G.next())D=D.value,D()}},Z=function(G){if(W.state.status==="PENDING"){W.state={status:"REJECTED",
reason:G};G=_.z(W.JSC$8432_onRejected);for(var D=G.next();!D.done;D=G.next())D=D.value,D()}};
try{y(c,Z)}catch(G){Z(G)}};
NC.all=function(y){return new NC(new IS(function(W,c){var Z=[],G=y.length;G===0&&W(Z);for(var D={i$jscomp$505:0};D.i$jscomp$505<y.length;D={i$jscomp$505:D.i$jscomp$505},++D.i$jscomp$505)NC.resolve(y[D.i$jscomp$505]).then(function(Y){return function(u){Z[Y.i$jscomp$505]=u;G--;G===0&&W(Z)}}(D)).catch(function(Y){c(Y)})}))};
NC.resolve=function(y){return new NC(new IS(function(W,c){y instanceof NC?y.then(W,c):W(y)}))};
NC.reject=function(y){return new NC(new IS(function(W,c){c(y)}))};
NC.prototype.then=function(y,W){var c=this,Z=y!=null?y:$WH,G=W!=null?W:UWh;return new NC(new IS(function(D,Y){c.state.status==="PENDING"?(c.JSC$8432_onFulfilled.push(function(){TJi(c,c,Z,D,Y)}),c.JSC$8432_onRejected.push(function(){am2(c,c,G,D,Y)})):c.state.status==="FULFILLED"?TJi(c,c,Z,D,Y):c.state.status==="REJECTED"&&am2(c,c,G,D,Y)}))};
NC.prototype.catch=function(y){return this.then(void 0,y)};
var TJi=function(y,W,c,Z,G){try{if(y.state.status!=="FULFILLED")throw Error("Qc");var D=c(y.state.value);D instanceof NC?x4T(y,W,D,Z,G):Z(D)}catch(Y){G(Y)}},am2=function(y,W,c,Z,G){try{if(y.state.status!=="REJECTED")throw Error("Rc");
var D=c(y.state.reason);D instanceof NC?x4T(y,W,D,Z,G):Z(D)}catch(Y){G(Y)}},x4T=function(y,W,c,Z,G){W===c?G(new TypeError("Sc")):c.then(function(D){D instanceof NC?x4T(y,W,D,Z,G):Z(D)},function(D){G(D)})};var oO;oO=window;_.Tj=oO.ytcsi&&oO.ytcsi.now?oO.ytcsi.now:oO.performance&&oO.performance.timing&&oO.performance.now&&oO.performance.timing.navigationStart?function(){return oO.performance.timing.navigationStart+oO.performance.now()}:function(){return(new Date).getTime()};var P7=function(y,W){this.JSC$8444_wrapped=y;this.options=W;this.transactionCount=0;this.startedMs=Math.round((0,_.Tj)());this.hasUnknownAbortedTransaction=!1},e2E,wRE,Yj,jiV;
P7.prototype.add=function(y,W,c){return _.Q2(this,[y],{mode:"readwrite",enableRetries:!0},function(Z){return Z.objectStore(y).add(W,c)})};
P7.prototype.clear=function(y){return _.Q2(this,[y],{mode:"readwrite",enableRetries:!0},function(W){return W.objectStore(y).clear()})};
P7.prototype.close=function(){this.JSC$8444_wrapped.close();var y;((y=this.options)==null?0:y.closed)&&this.options.closed()};
P7.prototype.count=function(y,W){return _.Q2(this,[y],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(y).count(W)})};
var Il=function(y,W,c){y=y.JSC$8444_wrapped.createObjectStore(W,c);return new DY(y)};
P7.prototype.delete=function(y,W){return _.Q2(this,[y],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore(y).delete(W)})};
var iv0=function(y,W){return _.Q2(y,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore("ResponseStore").index("byInterface").delete(W)})};
P7.prototype.get=function(y,W){return _.Q2(this,[y],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(y).get(W)})};
P7.prototype.getAll=function(y,W,c){return _.Q2(this,[y],{mode:"readonly",enableRetries:!0},function(Z){return Z.objectStore(y).getAll(W,c)})};
P7.prototype.put=function(y,W,c){return _.Q2(this,[y],{mode:"readwrite",enableRetries:!0},function(Z){return Z.objectStore(y).put(W,c)})};
P7.prototype.objectStoreNames=function(){return Array.from(this.JSC$8444_wrapped.objectStoreNames)};
_.Q2=function(y,W,c,Z){var G,D,Y,u,t,b,r,F,K,l,N,P;return _.m(function(V){switch(V.nextAddress){case 1:var Q={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?Q.mode=c:Object.assign(Q,c);G=Q;y.transactionCount++;D=G.enableRetries?3:1;Y=0;case 2:if(u){V.jumpTo(4);break}Y++;t=Math.round((0,_.Tj)());_.tm(V,5);b=y.JSC$8444_wrapped.transaction(W,G.mode);Q=new R41(b);Q=MN3(Q,Z);return _.n(V,Q,7);case 7:return r=V.yieldResult,F=Math.round((0,_.Tj)()),e2E(y,t,F,Y,void 0,
W.join(),G),V.return(r);case 5:K=_.rs(V);l=Math.round((0,_.Tj)());N=FZH(K,y.JSC$8444_wrapped.name,W.join(),y.JSC$8444_wrapped.version);if((P=N instanceof RS&&!N.retryable)||Y>=D)e2E(y,t,l,Y,N,W.join(),G),u=N;V.jumpTo(2);break;case 4:return V.return(Promise.reject(u))}})};
e2E=function(y,W,c,Z,G,D,Y){W=c-W;G?(G instanceof RS&&(G.type==="QUOTA_EXCEEDED"||G.type==="QUOTA_MAYBE_EXCEEDED")&&$7("QUOTA_EXCEEDED",{dbName:OA(y.JSC$8444_wrapped.name),objectStoreNames:D,transactionCount:y.transactionCount,transactionMode:Y.mode}),G instanceof RS&&G.type==="UNKNOWN_ABORT"&&(c-=y.startedMs,c<0&&c>=2147483648&&(c=0),$7("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:D,transactionDuration:W,transactionCount:y.transactionCount,dbDuration:c}),y.hasUnknownAbortedTransaction=!0),
wRE(y,!1,Z,D,W,Y.tag),_.UA(G)):wRE(y,!0,Z,D,W,Y.tag)};
wRE=function(y,W,c,Z,G,D){$7("TRANSACTION_ENDED",{objectStoreNames:Z,connectionHasUnknownAbortedTransaction:y.hasUnknownAbortedTransaction,duration:G,isSuccessful:W,tryCount:c,tag:D===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":D})};
P7.prototype.getVersion=function(){return this.JSC$8444_wrapped.version};
P7.prototype.getName=function(){return this.JSC$8444_wrapped.name};
var DY=function(y){this.JSC$8459_wrapped=y};
DY.prototype.add=function(y,W){return pR(this.JSC$8459_wrapped.add(y,W))};
DY.prototype.autoIncrement=function(){return this.JSC$8459_wrapped.autoIncrement};
DY.prototype.clear=function(){return pR(this.JSC$8459_wrapped.clear()).then(function(){})};
var pX=function(y,W,c){y.JSC$8459_wrapped.createIndex(W,c,{unique:!1})};
DY.prototype.count=function(y){return pR(this.JSC$8459_wrapped.count(y))};
var qQT=function(y,W){return h6(y,{query:W},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
DY.prototype.delete=function(y){return y instanceof IDBKeyRange?qQT(this,y):pR(this.JSC$8459_wrapped.delete(y))};
DY.prototype.get=function(y){return pR(this.JSC$8459_wrapped.get(y))};
DY.prototype.getAll=function(y,W){return"getAll"in IDBObjectStore.prototype?pR(this.JSC$8459_wrapped.getAll(y,W)):k72(this,y,W)};
var k72=function(y,W,c){var Z=[];return h6(y,{query:W},function(G){if(!(c!==void 0&&Z.length>=c))return Z.push(G.getValue()),G.continue()}).then(function(){return Z})};
DY.prototype.index=function(y){try{return new zA(this.JSC$8459_wrapped.index(y))}catch(W){if(W instanceof Error&&W.name==="NotFoundError")throw new bqI(y,this.JSC$8459_wrapped.name);throw W;}};
DY.prototype.getName=function(){return this.JSC$8459_wrapped.name};
DY.prototype.keyPath=function(){return this.JSC$8459_wrapped.keyPath};
DY.prototype.put=function(y,W){return pR(this.JSC$8459_wrapped.put(y,W))};
var h6=function(y,W,c){y=y.JSC$8459_wrapped.openCursor(W.query,W.direction);return jiV(y).then(function(Z){return gRO(Z,c)})},R41=function(y){var W=this;
this.JSC$8467_wrapped=y;this.objectStoreCache=new Map;this.JSC$8467_aborted=!1;this.done=new Promise(function(c,Z){W.JSC$8467_wrapped.addEventListener("complete",function(){c()});
W.JSC$8467_wrapped.addEventListener("error",function(G){G.currentTarget===G.target&&Z(W.JSC$8467_wrapped.error)});
W.JSC$8467_wrapped.addEventListener("abort",function(){var G=W.JSC$8467_wrapped.error;if(G)Z(G);else if(!W.JSC$8467_aborted){G=RS;for(var D=W.JSC$8467_wrapped.objectStoreNames,Y=[],u=0;u<D.length;u++){var t=D.item(u);if(t===null)throw Error("Tc");Y.push(t)}G=new G("UNKNOWN_ABORT",{objectStoreNames:Y.join(),dbName:W.JSC$8467_wrapped.db.name,mode:W.JSC$8467_wrapped.mode});Z(G)}})})},MN3=function(y,W){var c=new Promise(function(Z,G){try{W(y).then(function(D){Z(D)}).catch(G)}catch(D){G(D),y.abort()}});
return Promise.all([c,y.done]).then(function(Z){return _.z(Z).next().value})};
R41.prototype.abort=function(){this.JSC$8467_wrapped.abort();this.JSC$8467_aborted=!0;throw new RS("EXPLICIT_ABORT");};
R41.prototype.objectStore=function(y){y=this.JSC$8467_wrapped.objectStore(y);var W=this.objectStoreCache.get(y);W||(W=new DY(y),this.objectStoreCache.set(y,W));return W};
var zA=function(y){this.JSC$8469_wrapped=y};
zA.prototype.count=function(y){return pR(this.JSC$8469_wrapped.count(y))};
zA.prototype.delete=function(y){return _.aS(this,{query:y},function(W){return W.delete().then(function(){return W.continue()})})};
zA.prototype.get=function(y){return pR(this.JSC$8469_wrapped.get(y))};
zA.prototype.getAll=function(y,W){return"getAll"in IDBIndex.prototype?pR(this.JSC$8469_wrapped.getAll(y,W)):yGV(this,y,W)};
var yGV=function(y,W,c){var Z=[];return _.aS(y,{query:W},function(G){if(!(c!==void 0&&Z.length>=c))return Z.push(G.getValue()),G.continue()}).then(function(){return Z})};
zA.prototype.keyPath=function(){return this.JSC$8469_wrapped.keyPath};
zA.prototype.unique=function(){return this.JSC$8469_wrapped.unique};
_.aS=function(y,W,c){y=y.JSC$8469_wrapped.openCursor(W.query===void 0?null:W.query,W.direction===void 0?"next":W.direction);return jiV(y).then(function(Z){return gRO(Z,c)})};
Yj=function(y,W){this.request=y;this.cursor=W};
jiV=function(y){return pR(y).then(function(W){return W?new Yj(y,W):null})};
Yj.prototype.continue=function(y){this.cursor.continue(y);return jiV(this.request)};
Yj.prototype.delete=function(){return pR(this.cursor.delete()).then(function(){})};
Yj.prototype.getValue=function(){return this.cursor.value};
Yj.prototype.update=function(y){return pR(this.cursor.update(y))};var mA=function(y,W){this.name=y;this.options=W;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},W4V;
mA.prototype.openDb=function(y,W,c){c=c===void 0?{}:c;return ERE(y,W,c)};
mA.prototype.delete=function(y){y=y===void 0?{}:y;return _.V2(this.name,y)};
W4V=function(y,W){return new RS("INCOMPATIBLE_DB_VERSION",{dbName:y.name,oldVersion:y.options.version,newVersion:W})};
_.CR=function(y,W){if(!W)throw EA("openWithToken",OA(y.name));return y.open()};
mA.prototype.open=function(){var y=this;if(!this.isCompatible)throw W4V(this);if(this.connectionPromise)return this.connectionPromise;var W,c=function(){y.connectionPromise===W&&(y.connectionPromise=void 0)},Z={blocking:function(D){D.close()},
closed:c,terminated:c,upgrade:this.options.upgrade},G=function(){var D,Y,u,t,b,r,F,K,l,N;return _.m(function(P){switch(P.nextAddress){case 1:return Y=(D=Error().stack)!=null?D:"",_.tm(P,2),_.n(P,y.openDb(y.name,y.options.version,Z),4);case 4:for(var V=u=P.yieldResult,Q=y.options,S=[],cy=_.z(Object.keys(Q.objectStores)),M=cy.next();!M.done;M=cy.next()){M=M.value;var fa=Q.objectStores[M],jI=fa.removedAtVersion===void 0?Number.MAX_VALUE:fa.removedAtVersion;!(V.JSC$8444_wrapped.version>=fa.addedAtVersion)||
V.JSC$8444_wrapped.version>=jI||V.JSC$8444_wrapped.objectStoreNames.contains(M)||S.push(M)}t=S;if(t.length===0){P.jumpTo(5);break}b=Object.keys(y.options.objectStores);r=u.objectStoreNames();if(y.timesReopenedToFixMissingObjectStore<_.ey("ytidb_reopen_db_retries",0))return y.timesReopenedToFixMissingObjectStore++,u.close(),_.UA(new RS("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:y.name,expectedObjectStores:b,foundObjectStores:r})),P.return(G());if(!(y.timesDeletedToFixMissingObjectStore<_.ey("ytidb_remake_db_retries",
1))){P.jumpTo(6);break}y.timesDeletedToFixMissingObjectStore++;return _.n(P,y.delete(),7);case 7:return _.UA(new RS("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:y.name,expectedObjectStores:b,foundObjectStores:r})),P.return(G());case 6:throw new SQE(r,b);case 5:return P.return(u);case 2:F=_.rs(P);if(F instanceof DOMException?F.name!=="VersionError":"DOMError"in self&&F instanceof DOMError?F.name!=="VersionError":!(F instanceof Object&&"message"in F)||F.message!=="An attempt was made to open a database using a lower version than the existing version."){P.jumpTo(8);
break}return _.n(P,y.openDb(y.name,void 0,Object.assign({},Z,{upgrade:void 0})),9);case 9:K=P.yieldResult;l=K.getVersion();if(y.options.version!==void 0&&l>y.options.version+1)throw K.close(),y.isCompatible=!1,W4V(y,l);return P.return(K);case 8:throw c(),F instanceof Error&&!_.O("ytidb_async_stack_killswitch")&&(F.stack=F.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),FZH(F,y.name,"",(N=y.options.version)!=null?N:-1);}})};
return this.connectionPromise=W=G()};var NuI=new mA("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(y,W){W(1)&&Il(y,"databases",{keyPath:"actualName"})}});var QvH,Vva=new function(){}(new function(){});new _.WK;var cGE=function(y,W){mA.call(this,y,W);this.options=W;KR(y)};
_.R(cGE,mA);var aKI=function(y,W){var c;return function(){c||(c=new cGE(y,W));return c}};
cGE.prototype.openDb=function(y,W,c){c=c===void 0?{}:c;return(this.options.shared?LZO:Hqh)(y,W,Object.assign({},c))};
cGE.prototype.delete=function(y){y=y===void 0?{}:y;return(this.options.shared?TuH:vRD)(this.name,y)};var ZO0={},xW1=S5("ytGcfConfig",{objectStores:(ZO0.coldConfigStore={addedAtVersion:1},ZO0.hotConfigStore={addedAtVersion:1},ZO0),shared:!1,upgrade:function(y,W){W(1)&&(pX(Il(y,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),pX(Il(y,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Gr0=function(){_.UR.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var y=_.JW("yt.gcf.config.hotUpdateCallbacks");y?(this.localHotConfigJobQueue=[].concat(_.No(y)),this.sharedHotConfigJobQueue=y):(this.sharedHotConfigJobQueue=[],_.LR("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.R(Gr0,_.UR);Gr0.prototype.disposeInternal=function(){for(var y=_.z(this.localHotConfigJobQueue),W=y.next();!W.done;W=y.next()){var c=this.sharedHotConfigJobQueue;W=c.indexOf(W.value);W>=0&&c.splice(W,1)}this.localHotConfigJobQueue.length=0;_.UR.prototype.disposeInternal.call(this)};var bt=function(){var y=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Gr0;this.TEST_ONLY={initializeConfigDb:function(){y.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return y.coldGlobalConfigGroup},
setHotConfigGroup:function(W){fUi(y,W)},
setHotHashData:function(W){y.setHotHashData(W)},
setColdConfigGroup:function(W){oTT(y,W)},
getColdHashData:function(){return y.coldHashData},
getHotHashData:function(){return y.hotHashData},
getHotConfigGroup:function(){return y.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return DRJ()},
getExportedHotConfigGroup:function(){return sS()},
getExportedColdHashData:function(){return _.JW("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.JW("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){zh5(y)},
resetInstance:function(){y.setHotHashData(void 0);YLT(y);delete bt.instance},
setDebounceTimer:function(W){y.debounceTimer=W},
getDebounceTimer:function(){return y.debounceTimer}}},mR2=function(){if(!bt.instance){var y=new bt;
bt.instance=y}return bt.instance},tbJ=function(y){var W;
_.m(function(c){if(c.nextAddress==1)return _.O("start_client_gcf")||_.O("delete_gcf_config_db")?_.O("start_client_gcf")?_.n(c,_.dr(),3):c.jumpTo(2):c.return();c.nextAddress!=2&&((W=c.yieldResult)&&_.sA()&&!_.O("delete_gcf_config_db")?(y.isConfigDbInitialized=!0,zh5(y)):(si2(y),usQ(y)));return _.O("delete_gcf_config_db")?_.n(c,kxh(),0):c.jumpTo(0)})},yzO=function(){var y;
return(y=sS())!=null?y:_.Nn("RAW_HOT_CONFIG_GROUP")},nTZ=function(y){var W,c,Z,G,D,Y;
return _.m(function(u){switch(u.nextAddress){case 1:if(y.hotGlobalConfigGroup)return u.return(sS());if(!y.isConfigDbInitialized)return W=EA("getHotConfig IDB not initialized"),_.Va(W),u.return(Promise.reject(W));c=H7();Z=_.Nn("TIME_CREATED_MS");if(!c){G=EA("getHotConfig token error");_.Va(G);u.jumpTo(2);break}return _.n(u,qqy(c),3);case 3:if((D=u.yieldResult)&&D.timestamp>Z)return fUi(y,D.config),y.setHotHashData(D.hashData),u.return(sS());case 2:usQ(y);if(!(c&&y.hotGlobalConfigGroup&&y.hotHashData)){u.jumpTo(4);
break}return _.n(u,MvE(y.hotGlobalConfigGroup,y.hotHashData,c,Z),4);case 4:return y.hotGlobalConfigGroup?u.return(sS()):(Y=new _.ul("Config not available in ytConfig"),_.Va(Y),u.return(Promise.reject(Y)))}})},bOV=function(y){var W,c,Z,G,D,Y;
return _.m(function(u){switch(u.nextAddress){case 1:if(y.coldGlobalConfigGroup)return u.return(DRJ());if(!y.isConfigDbInitialized)return W=EA("getColdConfig IDB not initialized"),_.Va(W),u.return(Promise.reject(W));c=H7();Z=_.Nn("TIME_CREATED_MS");if(!c){G=EA("getColdConfig");_.Va(G);u.jumpTo(2);break}return _.n(u,w$O(c),3);case 3:if((D=u.yieldResult)&&D.timestamp>Z)return oTT(y,D.config),XTW(y,D.configData),YLT(y,D.hashData),u.return(DRJ());case 2:si2(y);if(!(c&&y.coldGlobalConfigGroup&&y.coldHashData&&
y.configData)){u.jumpTo(4);break}return _.n(u,e4D(y.coldGlobalConfigGroup,y.coldHashData,y.configData,c,Z),4);case 4:return y.coldGlobalConfigGroup?u.return(DRJ()):(Y=new _.ul("Config not available in ytConfig"),_.Va(Y),u.return(Promise.reject(Y)))}})},zh5=function(y){if(!y.hotGlobalConfigGroup||!y.coldGlobalConfigGroup){if(!H7()){var W=EA("scheduleGetConfigs");
_.Va(W)}y.initJob||(y.initJob=_.KX.addLowPriorityJob(function(){return _.m(function(c){switch(c.nextAddress){case 1:return _.tm(c,2),_.n(c,nTZ(y),4);case 4:_.J6(c,3);break;case 2:_.rs(c);case 3:return _.tm(c,5),_.n(c,bOV(y),7);case 7:_.J6(c,6);break;case 5:_.rs(c);case 6:y.initJob&&(y.initJob=0),_.F2(c)}})},100))}},eUI=function(y,W,c){var Z,G,D;
return _.m(function(Y){switch(Y.nextAddress){case 1:if(!_.O("start_client_gcf")){Y.jumpTo(0);break}c&&fUi(y,c);y.setHotHashData(W);Z=H7();if(!Z){Y.jumpTo(3);break}if(c){Y.jumpTo(4);break}return _.n(Y,qqy(Z),5);case 5:G=Y.yieldResult,c=(D=G)==null?void 0:D.config;case 4:return _.n(Y,MvE(c,W,Z),3);case 3:if(c)for(var u=c,t=_.z(y.configUpdateService.sharedHotConfigJobQueue),b=t.next();!b.done;b=t.next())b=b.value,b(u);_.F2(Y)}})},wFy=function(y,W,c){var Z,G,D,Y;
return _.m(function(u){if(u.nextAddress==1){if(!_.O("start_client_gcf"))return u.jumpTo(0);YLT(y,W);return(Z=H7())?c?u.jumpTo(4):_.n(u,w$O(Z),5):u.jumpTo(0)}u.nextAddress!=4&&(G=u.yieldResult,c=(D=G)==null?void 0:D.config);if(!c)return u.jumpTo(0);Y=c.configData;return _.n(u,e4D(c,W,Y,Z),0)})},bZD=function(){var y=mR2(),W=(0,_.Tj)()-y.debounceTimer;
if(!(y.debounceTimer!==0&&W<_.ey("send_config_hash_timer"))){W=_.JW("yt.gcf.config.coldConfigData");var c=_.JW("yt.gcf.config.hotHashData"),Z=_.JW("yt.gcf.config.coldHashData");W&&c&&Z&&(y.debounceTimer=(0,_.Tj)());return{coldConfigData:W,hotHashData:c,coldHashData:Z}}},si2=function(y){oTT(y,_.Nn("RAW_COLD_CONFIG_GROUP"));
YLT(y,_.Nn("SERIALIZED_COLD_HASH_DATA"));var W;XTW(y,(W=y.coldGlobalConfigGroup)==null?void 0:W.configData)},usQ=function(y){fUi(y,_.Nn("RAW_HOT_CONFIG_GROUP"));
y.setHotHashData(_.Nn("SERIALIZED_HOT_HASH_DATA"))},fUi=function(y,W){y.hotGlobalConfigGroup=W;
_.LR("yt.gcf.config.hotConfigGroup",y.hotGlobalConfigGroup||null)},oTT=function(y,W){y.coldGlobalConfigGroup=W;
_.LR("yt.gcf.config.coldConfigGroup",y.coldGlobalConfigGroup||null)};
bt.prototype.setHotHashData=function(y){this.hotHashData=y;_.LR("yt.gcf.config.hotHashData",this.hotHashData||null)};
var YLT=function(y,W){y.coldHashData=W;_.LR("yt.gcf.config.coldHashData",y.coldHashData||null)},XTW=function(y,W){y.configData=W;
_.LR("yt.gcf.config.coldConfigData",y.configData||null)},sS=function(){return _.JW("yt.gcf.config.hotConfigGroup")},DRJ=function(){return _.JW("yt.gcf.config.coldConfigGroup")};var Wn={},rGW=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Wn.assign=function(y){for(var W=Array.prototype.slice.call(arguments,1);W.length;){var c=W.shift();if(c){if(typeof c!=="object")throw new TypeError("Wc`"+c);for(var Z in c)Object.prototype.hasOwnProperty.call(c,Z)&&(y[Z]=c[Z])}}return y};
Wn.shrinkBuf=function(y,W){if(y.length===W)return y;if(y.subarray)return y.subarray(0,W);y.length=W;return y};
var F4i={arraySet:function(y,W,c,Z,G){if(W.subarray&&y.subarray)y.set(W.subarray(c,c+Z),G);else for(var D=0;D<Z;D++)y[G+D]=W[c+D]},
flattenChunks:function(y){var W,c;var Z=c=0;for(W=y.length;Z<W;Z++)c+=y[Z].length;var G=new Uint8Array(c);Z=c=0;for(W=y.length;Z<W;Z++){var D=y[Z];G.set(D,c);c+=D.length}return G}},URJ={arraySet:function(y,W,c,Z,G){for(var D=0;D<Z;D++)y[G+D]=W[c+D]},
flattenChunks:function(y){return[].concat.apply([],y)}};
Wn.setTyped=function(){rGW?(Wn.Buf8=Uint8Array,Wn.Buf16=Uint16Array,Wn.Buf32=Int32Array,Wn.assign(Wn,F4i)):(Wn.Buf8=Array,Wn.Buf16=Array,Wn.Buf32=Array,Wn.assign(Wn,URJ))};
Wn.setTyped();var $R5=!0;try{new Uint8Array(1)}catch(y){$R5=!1}
var qtO=function(y){var W,c,Z=y.length,G=0;for(W=0;W<Z;W++){var D=y.charCodeAt(W);if((D&64512)===55296&&W+1<Z){var Y=y.charCodeAt(W+1);(Y&64512)===56320&&(D=65536+(D-55296<<10)+(Y-56320),W++)}G+=D<128?1:D<2048?2:D<65536?3:4}var u=new Wn.Buf8(G);for(W=c=0;c<G;W++)D=y.charCodeAt(W),(D&64512)===55296&&W+1<Z&&(Y=y.charCodeAt(W+1),(Y&64512)===56320&&(D=65536+(D-55296<<10)+(Y-56320),W++)),D<128?u[c++]=D:(D<2048?u[c++]=192|D>>>6:(D<65536?u[c++]=224|D>>>12:(u[c++]=240|D>>>18,u[c++]=128|D>>>12&63),u[c++]=
128|D>>>6&63),u[c++]=128|D&63);return u};var BMy={};BMy=function(y,W,c,Z){var G=y&65535|0;y=y>>>16&65535|0;for(var D;c!==0;){D=c>2E3?2E3:c;c-=D;do G=G+W[Z++]|0,y=y+G|0;while(--D);G%=65521;y%=65521}return G|y<<16|0};for(var nX={},up,K45=[],OO8=0;OO8<256;OO8++){up=OO8;for(var gTV=0;gTV<8;gTV++)up=up&1?3988292384^up>>>1:up>>>1;K45[OO8]=up}nX=function(y,W,c,Z){c=Z+c;for(y^=-1;Z<c;Z++)y=y>>>8^K45[(y^W[Z])&255];return y^-1};var fX={};fX={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 E$t=[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],Ilw=[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],wKw=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],AqH=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y2=Array(576);qC(Y2);var mh=Array(60);qC(mh);var Zn=Array(512);qC(Zn);var cn=Array(256);qC(cn);var NMI=Array(29);qC(NMI);var pKg=Array(30);qC(pKg);var iZf,Mdw,ezD,xOH=!1;var $2;
$2=[new FD(0,0,0,0,function(y,W){var c=65535;for(c>y.pending_buf_size-5&&(c=y.pending_buf_size-5);;){if(y.lookahead<=1){XD(y);if(y.lookahead===0&&W===0)return 1;if(y.lookahead===0)break}y.strstart+=y.lookahead;y.lookahead=0;var Z=y.block_start+c;if(y.strstart===0||y.strstart>=Z)if(y.lookahead=y.strstart-Z,y.strstart=Z,sW(y,!1),y.strm.avail_out===0)return 1;if(y.strstart-y.block_start>=y.w_size-262&&(sW(y,!1),y.strm.avail_out===0))return 1}y.insert=0;if(W===4)return sW(y,!0),y.strm.avail_out===0?3:
4;y.strstart>y.block_start&&sW(y,!1);return 1}),
new FD(4,4,8,4,HZh),new FD(4,5,16,8,HZh),new FD(4,6,32,32,HZh),new FD(4,4,16,16,rX),new FD(8,16,32,32,rX),new FD(8,16,128,128,rX),new FD(8,32,128,256,rX),new FD(32,128,258,1024,rX),new FD(32,258,258,4096,rX)];var alf={};alf=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 k2D=Object.prototype.toString;
TMI.prototype.push=function(y,W){var c=this.strm,Z=this.options.chunkSize;if(this.ended)return!1;var G=W===~~W?W:W===!0?4:0;typeof y==="string"?c.input=qtO(y):k2D.call(y)==="[object ArrayBuffer]"?c.input=new Uint8Array(y):c.input=y;c.next_in=0;c.avail_in=c.input.length;do{c.avail_out===0&&(c.output=new Wn.Buf8(Z),c.next_out=0,c.avail_out=Z);y=Stt(c,G);if(y!==1&&y!==0)return RhE(this,y),this.ended=!0,!1;if(c.avail_out===0||c.avail_in===0&&(G===4||G===2))if(this.options.to==="string"){var D=Wn.shrinkBuf(c.output,
c.next_out);W=D;D=D.length;if(D<65537&&(W.subarray&&$R5||!W.subarray))W=String.fromCharCode.apply(null,Wn.shrinkBuf(W,D));else{for(var Y="",u=0;u<D;u++)Y+=String.fromCharCode(W[u]);W=Y}this.chunks.push(W)}else W=Wn.shrinkBuf(c.output,c.next_out),this.chunks.push(W)}while((c.avail_in>0||c.avail_out===0)&&y!==1);if(G===4)return(c=this.strm)&&c.state?(Z=c.state.status,Z!==42&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==113&&Z!==666?y=ol(c,-2):(c.state=null,y=Z===113?ol(c,-3):0)):y=-2,RhE(this,y),this.ended=
!0,y===0;G===2&&(RhE(this,0),c.avail_out=0);return!0};
var RhE=function(y,W){W===0&&(y.result=y.options.to==="string"?y.chunks.join(""):Wn.flattenChunks(y.chunks));y.chunks=[];y.err=W;y.msg=y.strm.msg};var lU2=typeof TextEncoder!=="undefined"?new TextEncoder:null,Npw=lU2?function(y){return lU2.encode(y)}:function(y){y=_.Fe(y);
for(var W=new Uint8Array(y.length),c=0;c<W.length;c++)W[c]=y[c];return W};var ckw={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Gk1={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var tJ=function(y,W){this.version=y;this.args=W};
tJ.prototype.serialize=function(){return{version:this.version,args:this.args}};var Z6w=function(y,W){this.topic=y;this.dataClass=W};
Z6w.prototype.toString=function(){return this.topic};var ETT=_.JW("ytPubsub2Pubsub2Instance")||new _.fR;_.fR.prototype.subscribe=_.fR.prototype.subscribe;_.fR.prototype.unsubscribeByKey=_.fR.prototype.unsubscribeByKey;_.fR.prototype.publish=_.fR.prototype.publish;_.fR.prototype.clear=_.fR.prototype.clear;_.LR("ytPubsub2Pubsub2Instance",ETT);var cxt=_.JW("ytPubsub2Pubsub2SubscribedKeys")||{};_.LR("ytPubsub2Pubsub2SubscribedKeys",cxt);var fVt=_.JW("ytPubsub2Pubsub2TopicToKeys")||{};_.LR("ytPubsub2Pubsub2TopicToKeys",fVt);
var GsI=_.JW("ytPubsub2Pubsub2IsAsync")||{};_.LR("ytPubsub2Pubsub2IsAsync",GsI);_.LR("ytPubsub2Pubsub2SkipSubKey",null);var XQf=void 0,tjI=void 0;var gmF=_.ey("max_body_size_to_compress",5E5),RPH=_.ey("min_body_size_to_compress",500),gX=!0,P6E=0,Rl=0,pQw=_.ey("compression_performance_threshold_lr",250),JxO=_.ey("slow_compressions_before_abandon_count",4),FDO=!1,UMD=new Map,Emf=1,lVD=!0;_.j6(lz,Q5g);lz.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 Nz2=function(y,W,c){c||(c=0);var Z=y.W_;if(typeof W==="string")for(var G=0;G<16;G++)Z[G]=W.charCodeAt(c)<<24|W.charCodeAt(c+1)<<16|W.charCodeAt(c+2)<<8|W.charCodeAt(c+3),c+=4;else for(G=0;G<16;G++)Z[G]=W[c]<<24|W[c+1]<<16|W[c+2]<<8|W[c+3],c+=4;for(W=16;W<80;W++)c=Z[W-3]^Z[W-8]^Z[W-14]^Z[W-16],Z[W]=(c<<1|c>>>31)&4294967295;W=y.chain_[0];c=y.chain_[1];G=y.chain_[2];for(var D=y.chain_[3],Y=y.chain_[4],u,t,b=0;b<80;b++)b<40?b<20?(u=D^c&(G^D),t=1518500249):(u=c^G^D,t=1859775393):b<60?(u=c&G|D&(c|G),
t=2400959708):(u=c^G^D,t=3395469782),u=(W<<5|W>>>27)+u+Y+t+Z[b]&4294967295,Y=D,D=G,G=(c<<30|c>>>2)&4294967295,c=W,W=u;y.chain_[0]=y.chain_[0]+W&4294967295;y.chain_[1]=y.chain_[1]+c&4294967295;y.chain_[2]=y.chain_[2]+G&4294967295;y.chain_[3]=y.chain_[3]+D&4294967295;y.chain_[4]=y.chain_[4]+Y&4294967295};
lz.prototype.update=function(y,W){if(y!=null){W===void 0&&(W=y.length);for(var c=W-this.blockSize,Z=0,G=this.buf_,D=this.inbuf_;Z<W;){if(D==0)for(;Z<=c;)Nz2(this,y,Z),Z+=this.blockSize;if(typeof y==="string")for(;Z<W;){if(G[D]=y.charCodeAt(Z),++D,++Z,D==this.blockSize){Nz2(this,G);D=0;break}}else for(;Z<W;)if(G[D]=y[Z],++D,++Z,D==this.blockSize){Nz2(this,G);D=0;break}}this.inbuf_=D;this.total_+=W}};
lz.prototype.digest=function(){var y=[],W=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var c=this.blockSize-1;c>=56;c--)this.buf_[c]=W&255,W/=256;Nz2(this,this.buf_);for(c=W=0;c<5;c++)for(var Z=24;Z>=0;Z-=8)y[W]=this.chain_[c]>>Z&255,++W;return y};var Bpa;var Xp=function(y){var W=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(r){W.databaseToken=r},
triggerThrottle:function(){W.throttledSend()},
cancelThrottle:function(){W.cancelThrottledSend()},
immediateSend:function(r){return _.m(function(F){return _.n(F,W.immediateSend(r),0)})},
requestWithinAgeLimit:function(r,F){return W.requestWithinAgeLimit(r,F)},
retryQueuedRequests:function(){W.retryQueuedRequests()}};
var c;this.throttleTimeout=(c=y.throttleTimeout)!=null?c:100;var Z;this.retryMaxAttempts=(Z=y.retryMaxAttempts)!=null?Z:1;var G;this.requestAgeLimitMs=(G=y.requestAgeLimitMs)!=null?G:2592E6;var D;this.queuedRequestAgeLimitMs=(D=y.queuedRequestAgeLimitMs)!=null?D:12E4;var Y;this.retryDelayMs=(Y=y.retryDelayMs)!=null?Y:5E3;var u;this.databaseToken=(u=y.databaseToken)!=null?u:void 0;this.enableCleaning=!!y.enableCleaning;var t;this.cleaningRate=(t=y.cleaningRate)!=null?t:.1;var b;this.potentialEsfErrorLimit=
(b=y.potentialEsfErrorLimit)!=null?b:10;y.handleError&&(this.handleError=y.handleError);y.handleWarning&&(this.handleWarning=y.handleWarning);y.disableYtIdbTransactions&&(this.disableYtIdbTransactions=y.disableYtIdbTransactions);y.bypassDbTokenDependency&&(this.bypassDbTokenDependency=y.bypassDbTokenDependency);this.getBooleanFlag=y.getBooleanFlag;this.jobManager=y.jobManager;this.logsStore=y.logsStore;this.networkManager=y.networkManager;this.sendFn=y.sendFn;this.onlineEvent=y.onlineEvent;this.offlineEvent=
y.offlineEvent;nU(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&IUZ(this)},IUZ=function(y){nU(y)&&!y.disableYtIdbTransactions&&(y.initialized=!0,y.enableCleaning&&Math.random()<=y.cleaningRate&&y.logsStore.cleanLogsStore(y.databaseToken),y.retryQueuedRequests(),y.networkManager.isNetworkAvailable()&&y.throttledSend(),y.networkManager.listen(y.onlineEvent,y.throttledSend.bind(y)),y.networkManager.listen(y.offlineEvent,y.cancelThrottledSend.bind(y)))};
_.f=Xp.prototype;_.f.writeThenSend=function(y,W){var c=this;W=W===void 0?{}:W;if(nU(this)&&this.initialized){var Z={url:y,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Z,this.databaseToken).then(function(G){Z.id=G;c.networkManager.isNetworkAvailable()&&c.immediateSend(Z)}).catch(function(G){c.immediateSend(Z);
pTm(c,G)})}else this.sendFn(y,W)};
_.f.sendThenWrite=function(y,W,c){var Z=this;W=W===void 0?{}:W;if(nU(this)&&this.initialized){var G={url:y,options:W,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(G.skipRetry=c);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!G.skipRetry){if(!G.skipRetry){var D=W.onError?W.onError:function(){};
W.onError=function(Y,u){return _.m(function(t){if(t.nextAddress==1)return _.n(t,Z.logsStore.set(G,Z.databaseToken).catch(function(b){pTm(Z,b)}),2);
D(Y,u);_.F2(t)})}}this.sendFn(y,W,G.skipRetry)}else this.logsStore.set(G,this.databaseToken).catch(function(Y){Z.sendFn(y,W,G.skipRetry);
pTm(Z,Y)})}else this.sendFn(y,W,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&c)};
_.f.sendAndWrite=function(y,W){var c=this;W=W===void 0?{}:W;if(nU(this)&&this.initialized){var Z={url:y,options:W,timestamp:this.now(),status:"NEW",sendCount:0},G=!1,D=W.onSuccess?W.onSuccess:function(){};
Z.options.onSuccess=function(Y,u){Z.id!==void 0?c.logsStore.deleteRequest(Z.id,c.databaseToken):G=!0;c.networkManager.networkStatusHint&&c.getBooleanFlag&&c.getBooleanFlag("vss_network_hint")&&c.networkManager.networkStatusHint(!0);D(Y,u)};
this.sendFn(Z.url,Z.options,void 0,!0);this.logsStore.set(Z,this.databaseToken).then(function(Y){Z.id=Y;G&&c.logsStore.deleteRequest(Z.id,c.databaseToken)}).catch(function(Y){pTm(c,Y)})}else this.sendFn(y,W,void 0,!0)};
_.f.throttledSend=function(){var y=this;if(!nU(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.logsStore.getMostRecentByStatus("NEW",y.databaseToken),2);if(c.nextAddress!=3)return W=c.yieldResult,W?_.n(c,y.immediateSend(W),3):(y.cancelThrottledSend(),c.return());y.intervalJob&&(y.intervalJob=0,y.throttledSend());_.F2(c)})},this.throttleTimeout))};
_.f.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.f.immediateSend=function(y){var W=this,c;return _.m(function(Z){switch(Z.nextAddress){case 1:if(!nU(W))throw Error("$c");if(y.id===void 0){Z.jumpTo(2);break}return _.n(Z,W.logsStore.markAsQueued(y.id,W.databaseToken),3);case 3:(c=Z.yieldResult)||W.handleWarning(Error("ad"));case 2:if(W.requestWithinAgeLimit(y,W.requestAgeLimitMs)){Z.jumpTo(4);break}W.handleWarning(Error("bd"));if(y.id===void 0){Z.jumpTo(5);break}return _.n(Z,W.logsStore.deleteRequest(y.id,W.databaseToken),5);case 5:return Z.return();
case 4:y.skipRetry||(y=PMT(W,y));if(!y){Z.jumpTo(0);break}if(!y.skipRetry||y.id===void 0){Z.jumpTo(8);break}return _.n(Z,W.logsStore.deleteRequest(y.id,W.databaseToken),8);case 8:W.sendFn(y.url,y.options,!!y.skipRetry),_.F2(Z)}})};
var PMT=function(y,W){if(!nU(y))throw Error("cd");var c=W.options.onError?W.options.onError:function(){};
W.options.onError=function(G,D){var Y,u,t,b;return _.m(function(r){switch(r.nextAddress){case 1:Y=S0D(D);(u=TpO(D))&&y.getBooleanFlag&&y.getBooleanFlag("web_enable_error_204")&&y.handleError(Error("dd"),W.url,D);if(!(y.getBooleanFlag&&y.getBooleanFlag("nwl_consider_error_code")&&Y||y.getBooleanFlag&&!y.getBooleanFlag("nwl_consider_error_code")&&y.potentialEsfErrorCounter<=y.potentialEsfErrorLimit)){r.jumpTo(2);break}if(!y.networkManager.sendNetworkCheckRequest){r.jumpTo(3);break}return _.n(r,y.networkManager.sendNetworkCheckRequest(),
3);case 3:if(y.networkManager.isNetworkAvailable()){r.jumpTo(2);break}c(G,D);if(!y.getBooleanFlag||!y.getBooleanFlag("nwl_consider_error_code")||((t=W)==null?void 0:t.id)===void 0){r.jumpTo(6);break}return _.n(r,y.logsStore.resetRequest(W.id,y.databaseToken,!1),6);case 6:return r.return();case 2:if(y.getBooleanFlag&&y.getBooleanFlag("nwl_consider_error_code")&&!Y&&y.potentialEsfErrorCounter>y.potentialEsfErrorLimit)return r.return();y.potentialEsfErrorCounter++;if(((b=W)==null?void 0:b.id)===void 0){r.jumpTo(8);
break}return W.sendCount<y.retryMaxAttempts?_.n(r,y.logsStore.resetRequest(W.id,y.databaseToken,!0,u?!1:void 0),12):_.n(r,y.logsStore.deleteRequest(W.id,y.databaseToken),8);case 12:y.jobManager.addLowPriorityJob(function(){y.networkManager.isNetworkAvailable()&&y.throttledSend()},y.retryDelayMs);
case 8:c(G,D),_.F2(r)}})};
var Z=W.options.onSuccess?W.options.onSuccess:function(){};
W.options.onSuccess=function(G,D){var Y;return _.m(function(u){if(u.nextAddress==1)return((Y=W)==null?void 0:Y.id)===void 0?u.jumpTo(2):_.n(u,y.logsStore.deleteRequest(W.id,y.databaseToken),2);y.networkManager.networkStatusHint&&y.getBooleanFlag&&y.getBooleanFlag("vss_network_hint")&&y.networkManager.networkStatusHint(!0);Z(G,D);_.F2(u)})};
return W};
Xp.prototype.requestWithinAgeLimit=function(y,W){y=y.timestamp;return this.now()-y>=W?!1:!0};
Xp.prototype.retryQueuedRequests=function(){var y=this;if(!nU(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(W){W&&!y.requestWithinAgeLimit(W,y.queuedRequestAgeLimitMs)?y.jobManager.addLowPriorityJob(function(){return _.m(function(c){if(c.nextAddress==1)return W.id===void 0?c.jumpTo(2):_.n(c,y.logsStore.resetRequest(W.id,y.databaseToken),2);y.retryQueuedRequests();_.F2(c)})}):y.networkManager.isNetworkAvailable()&&y.throttledSend()})};
var pTm=function(y,W){y.writeError&&!y.networkManager.isNetworkAvailable()?y.writeError(W):y.handleError(W)},nU=function(y){return!!y.databaseToken||y.bypassDbTokenDependency};var aVt;var j3g={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};var JGE={},WIt=S5("ServiceWorkerLogsDatabase",{objectStores:(JGE.SWHealthLog={addedAtVersion:1},JGE),shared:!0,upgrade:function(y,W){W(1)&&pX(Il(y,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var YH1={},zWH=0;var tlH;var bp=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},QJ=function(){if(!bp.instance){var y=_.JW("yt.networkRequestMonitor.instance")||new bp;
_.LR("yt.networkRequestMonitor.instance",y);bp.instance=y}return bp.instance};
bp.prototype.requestComplete=function(y,W){W&&(this.anyRequestHasSucceeded=!0);y=this.removeParams(y);this.requestMap.get(y)||this.requestMap.set(y,W)};
bp.prototype.isEndpointCFR=function(y){y=this.removeParams(y);return(y=this.requestMap.get(y))?!1:y===!1&&this.anyRequestHasSucceeded?!0:null};
bp.prototype.removeParams=function(y){return y.split("?")[0]};
bp.prototype.removeParams=bp.prototype.removeParams;bp.prototype.isEndpointCFR=bp.prototype.isEndpointCFR;bp.prototype.requestComplete=bp.prototype.requestComplete;bp.getInstance=QJ;var r_=function(y){_.uU.call(this);var W=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=y!=null?y:{addLowPriorityJob:function(G,D){return setTimeout(G,D)},
cancelJob:function(G){clearTimeout(G)}};
var c,Z;this.isOnline=(Z=(c=window.navigator)==null?void 0:c.onLine)!=null?Z:!0;this.onNavigatorChange=function(){return _.m(function(G){return _.n(G,Vbm(W),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||CME(this)};
_.R(r_,_.uU);r_.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete r_.instance};
r_.prototype.isNetworkAvailable=function(){return this.isOnline};
var CME=function(y){y.pollingJob=y.jobManager.addLowPriorityJob(function(){var W;return _.m(function(c){if(c.nextAddress==1)return y.isOnline?((W=window.navigator)==null?0:W.onLine)?c.jumpTo(3):_.n(c,Vbm(y),3):_.n(c,Vbm(y),3);CME(y);_.F2(c)})},3E4)},Vbm=function(y,W){return y.networkRequestPromise?y.networkRequestPromise:y.networkRequestPromise=new Promise(function(c){var Z,G,D,Y;
return _.m(function(u){switch(u.nextAddress){case 1:return Z=window.AbortController?new window.AbortController:void 0,D=(G=Z)==null?void 0:G.signal,Y=!1,_.tm(u,2,3),Z&&(y.abortTimeoutKey=y.jobManager.addLowPriorityJob(function(){Z.abort()},W||2E4)),_.n(u,fetch("/generate_204",{method:"HEAD",
signal:D}),5);case 5:Y=!0;case 3:_.nc(u);y.networkRequestPromise=void 0;y.abortTimeoutKey&&(y.jobManager.cancelJob(y.abortTimeoutKey),y.abortTimeoutKey=0);Y!==y.isOnline&&(y.isOnline=Y,y.isOnline?y.dispatchEvent("networkstatus-online"):y.dispatchEvent("networkstatus-offline"));c(Y);_.bR(u,0);break;case 2:_.rs(u),Y=!1,u.jumpTo(3)}})})};var Fp=function(){_.uU.call(this);var y=this;this.shouldFlushErrors=!1;r_.instance||(r_.instance=new r_(_.KX));this.sharedNetworkStatusManager=r_.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(y.shouldFlushErrors&&_.O("offline_error_handling")){var W=n0f().get("errors",!0);if(W){for(var c in W)if(W[c]){var Z=new _.ul(c,"sent via offline_errors");Z.name=W[c].name;Z.stack=W[c].stack;Z.level=W[c].level;_.pj(Z)}n0f().set("errors",{},2592E3,!0)}}})};
_.R(Fp,_.uU);var QiW=function(){if(!Fp.instance){var y=_.JW("yt.networkStatusManager.instance")||new Fp;_.LR("yt.networkStatusManager.instance",y);Fp.instance=y}return Fp.instance};
_.f=Fp.prototype;_.f.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.f.networkStatusHint=function(y){this.sharedNetworkStatusManager.isOnline=y};
_.f.getWindowStatus=function(){var y=window.navigator.onLine;return y===void 0?!0:y};
_.f.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.f.listen=function(y,W){return this.sharedNetworkStatusManager.listen(y,W)};
_.f.sendNetworkCheckRequest=function(y){y=Vbm(this.sharedNetworkStatusManager,y);y.then(function(W){_.O("use_cfr_monitor")&&QJ().requestComplete("generate_204",W)});
return y};
Fp.prototype.sendNetworkCheckRequest=Fp.prototype.sendNetworkCheckRequest;Fp.prototype.listen=Fp.prototype.listen;Fp.prototype.enableErrorFlushing=Fp.prototype.enableErrorFlushing;Fp.prototype.getWindowStatus=Fp.prototype.getWindowStatus;Fp.prototype.networkStatusHint=Fp.prototype.networkStatusHint;Fp.prototype.isNetworkAvailable=Fp.prototype.isNetworkAvailable;Fp.getInstance=QiW;_.CX=function(y){y=y===void 0?{}:y;_.uU.call(this);var W=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=QiW();var c=_.JW("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);c&&(y.rateLimit?(this.rateLimit=y.rateLimit,c("networkstatus-online",function(){AGm(W,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){AGm(W,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",
function(){W.dispatchEvent("publicytnetworkstatus-offline")})))};
_.R(_.CX,_.uU);_.CX.prototype.isNetworkAvailable=function(){var y=_.JW("yt.networkStatusManager.instance.isNetworkAvailable");return y?y.bind(this.nsmInstance)():!0};
_.CX.prototype.networkStatusHint=function(y){var W=_.JW("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);W&&W(y)};
_.CX.prototype.sendNetworkCheckRequest=function(y){var W=this,c;return _.m(function(Z){c=_.JW("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.nsmInstance);return _.O("skip_network_check_if_cfr")&&QJ().isEndpointCFR("generate_204")?Z.return(new Promise(function(G){var D;W.networkStatusHint(((D=window.navigator)==null?void 0:D.onLine)||!0);G(W.isNetworkAvailable())})):c?Z.return(c(y)):Z.return(!0)})};
var AGm=function(y,W){y.rateLimit?y.lastJobTime?(_.KX.cancelJob(y.schedulerJob),y.schedulerJob=_.KX.addLowPriorityJob(function(){y.lastPublicSignalSent!==W&&(y.dispatchEvent(W),y.lastPublicSignalSent=W,y.lastJobTime=(0,_.Tj)())},y.rateLimit-((0,_.Tj)()-y.lastJobTime))):(y.dispatchEvent(W),y.lastPublicSignalSent=W,y.lastJobTime=(0,_.Tj)()):y.dispatchEvent(W)};var UiD,US=function(){Xp.call(this,{logsStore:{cleanLogsStore:j9I,deleteRequest:ks1,getMostRecentByStatus:eP1,markAsQueued:wQg,resetRequest:q0O,set:Mjy},networkManager:_.$if(),handleError:function(y,W,c){var Z,G=c==null?void 0:(Z=c.error)==null?void 0:Z.code;if(G===400||G===415){var D;y=new _.ul(y.message,W,c==null?void 0:(D=c.error)==null?void 0:D.code);_.Va(y,void 0,void 0,void 0,!0)}else _.pj(y)},
handleWarning:_.Va,sendFn:r3y,now:_.Tj,writeError:XhE,jobManager:_.gl(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.ey("potential_esf_error_limit",10),getBooleanFlag:_.O,disableYtIdbTransactions:!(_.sA()&&_.KIH())});this.initializationPromise=new _.WK;_.O("networkless_immediately_drop_all_requests")&&y3g();TuH("LogsDatabaseV2")};
_.R(US,Xp);_.Bz5=function(){var y=_.JW("yt.networklessRequestController.instance");y||(y=new US,_.LR("yt.networklessRequestController.instance",y),_.O("networkless_logging")&&_.dr().then(function(W){y.databaseToken=W;IUZ(y);y.initializationPromise.resolve();y.enableCleaning&&Math.random()<=y.cleaningRate&&y.databaseToken&&ZNI(y.databaseToken);_.O("networkless_immediately_drop_sw_health_store")&&hhi(y)}));
return y};
US.prototype.writeThenSend=function(y,W){W||(W={});W=FIH(y,W);_.sA()||(this.initialized=!1);Xp.prototype.writeThenSend.call(this,y,W)};
US.prototype.sendThenWrite=function(y,W,c){W||(W={});W=FIH(y,W);_.sA()||(this.initialized=!1);Xp.prototype.sendThenWrite.call(this,y,W,c)};
US.prototype.sendAndWrite=function(y,W){W||(W={});W=FIH(y,W);_.sA()||(this.initialized=!1);Xp.prototype.sendAndWrite.call(this,y,W)};
US.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var hhi=function(y){var W;_.m(function(c){if(!y.databaseToken)throw W=EA("clearSWHealthLogsDb"),W;return c.return(GPt(y.databaseToken).catch(function(Z){y.handleError(Z)}))})};_.g0h=!1;_.ONI=_.DH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.g0h};_.LR("ytNetworklessLoggingInitializationOptions",_.ONI);var UP=function(y){var W=this;this.config_=null;y?this.config_=y:jWE()&&(this.config_=_.x7());_.Xc(_.KX,function(){dMa(W)},5E3)};
UP.prototype.isReady=function(){!this.config_&&jWE()&&(this.config_=_.x7());return!!this.config_};
var vmH=function(y,W,c,Z){!_.Nn("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&_.Va(new _.ul("Missing VISITOR_DATA when sending innertube request.",W,c,Z));if(!y.isReady()){var G=new _.ul("innertube xhrclient not ready",W,c,Z);_.pj(G);throw G;}var D={headers:Z.headers||{},method:"POST",postParams:c,postBody:Z.postBody,postBodyFormat:Z.postBodyFormat||"JSON",onTimeout:function(){Z.onTimeout()},
onFetchTimeout:Z.onTimeout,onSuccess:function(F,K){if(Z.onSuccess)Z.onSuccess(K)},
onFetchSuccess:function(F){if(Z.onSuccess)Z.onSuccess(F)},
onError:function(F,K){if(Z.onError)Z.onError(K)},
onFetchError:function(F){if(Z.onError)Z.onError(F)},
timeout:Z.timeout,withCredentials:!0,compress:Z.compress};D.headers["Content-Type"]||(D.headers["Content-Type"]="application/json");var Y="";(G=y.config_.innertubeHostOverride)&&(Y=G);var u=y.config_.innertubeUseThirdPartyAuth||!1,t=_.XKF(u,Y,Z);Object.assign(D.headers,t);D.headers.Authorization&&!Y&&u&&(D.headers["x-origin"]=window.location.origin);var b=_.BI(Y+("/youtubei/"+y.config_.innertubeApiVersion+"/"+W),{alt:"json"}),r=function(F){F=F===void 0?!1:F;var K;if(Z.retry&&Y!="www.youtube-nocookie.com"&&
(F||_.O("skip_ls_gel_retry")||D.headers["Content-Type"]!=="application/json"||(K=H6a(W,c,t,u)),K)){var l=D.onSuccess,N=D.onFetchSuccess;D.onSuccess=function(Q,S){LDy(K);l(Q,S)};
c.onFetchSuccess=function(Q,S){LDy(K);N(Q,S)}}try{if(F&&Z.retry&&!Z.networklessOptions.bypassNetworkless)D.method="POST",Z.networklessOptions.writeThenSend?_.Bz5().writeThenSend(b,D):_.Bz5().sendAndWrite(b,D);
else if(Z.compress){var P=!Z.networklessOptions.writeThenSend;if(D.postBody){var V=D.postBody;typeof V!=="string"&&(V=JSON.stringify(D.postBody));IVD(b,V,D,_.ZP,P)}else IVD(b,JSON.stringify(D.postParams),D,AE1,P)}else _.O("web_all_payloads_via_jspb")?_.ZP(b,D):AE1(b,D)}catch(Q){if(Q.name==="InvalidAccessError")K&&(LDy(K),K=0),_.Va(Error("fd"));else throw Q;}K&&_.Xc(_.KX,function(){dMa(y)},5E3)};
_.RWg()?AKg().then(function(F){r(F)}):r(!1)};var JeH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(JeH,_.eD);JeH.prototype.getIndex=function(){return O2(this,2)};
JeH.prototype.setIndex=function(y){return _.tc(this,2,y)};var HO2=0,E0h=_.oE?"webkit":_.fi?"moz":_.G$?"ms":KOy?"o":"";_.LR("ytDomDomGetNextId",_.JW("ytDomDomGetNextId")||function(){return++HO2});var L4J={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},vn=function(y){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(y=
y||window.event){this.event=y;for(var W in y)W in L4J||(this[W]=y[W]);this.scale=y.scale;this.rotation=y.rotation;var c=y.target||y.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var Z=y.relatedTarget;if(Z)try{Z=Z.nodeName?Z:null}catch(G){Z=null}else this.type=="mouseover"?Z=y.fromElement:this.type=="mouseout"&&(Z=y.toElement);this.relatedTarget=Z;this.clientX=y.clientX!=void 0?y.clientX:y.pageX;this.clientY=y.clientY!=void 0?y.clientY:y.pageY;this.keyCode=y.keyCode?y.keyCode:y.which;
this.charCode=y.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=y.altKey;this.ctrlKey=y.ctrlKey;this.shiftKey=y.shiftKey;this.metaKey=y.metaKey;this.pageX_=y.pageX;this.pageY_=y.pageY}}catch(G){}},vTJ=function(y){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;
y.pageX_=y.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);y.pageY_=y.clientY+W}};
vn.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
vn.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
vn.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var LX=_.DH.ytEventsEventsListeners||{};_.LR("ytEventsEventsListeners",LX);var VlI=_.DH.ytEventsEventsCounter||{count:0};_.LR("ytEventsEventsCounter",VlI);var CsI=_.sf(function(){var y=!1;try{var W=Object.defineProperty({},"capture",{get:function(){y=!0}});
window.addEventListener("test",null,W)}catch(c){}return y});_.j6(TM,_.UR);TM.prototype.onMouseMove_=function(y){y.pageX_===void 0&&vTJ(y);var W=y.pageX_;y.pageY_===void 0&&vTJ(y);this.position_=new _.If(W,y.pageY_)};
TM.prototype.checkPosition_=function(){if(this.position_){var y=(0,_.Tj)();if(this.previousTime_!=0){var W=this.previousPosition_,c=this.position_,Z=W.x-c.x;W=W.y-c.y;Z=Math.sqrt(Z*Z+W*W)/(y-this.previousTime_);this.cycles_[this.index_]=Math.abs((Z-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(c=W=0;c<4;c++)W+=this.cycles_[c]||0;W>=3&&this.callback_();this.previousVelocity_=Z}this.previousTime_=y;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
TM.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Q9O(this.mouseListenerKey_)};var HNy={};var M9O=new _.w("rawColdConfigGroup");var ixg=new _.w("rawHotConfigGroup");var dRT=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(dRT,_.eD);var P_H=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(P_H,_.eD);var nD=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y,500)};
_.R(nD,_.eD);nD.prototype.getPayloadCase=function(){return _.r5(this,SLT)};
nD.prototype.getContext=function(){return _.il(this,P_H,33)};
var SLT=[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];var vxf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(vxf,_.eD);var bxE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(bxE,_.eD);bxE.prototype.setVideoId=function(y){return os(this,1,r7h,u9(y))};
bxE.prototype.getPlaylistId=function(){return _.sR(this,sP(this,r7h,2))};
var r7h=[1,2];var QLH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(QLH,_.eD);QLH.prototype.getContext=function(){return _.il(this,DJ,1)};
QLH.prototype.getTier=function(){return _.lm(this,7)};var Tz2,wX,qV;Tz2=_.DH.ytPubsubPubsubInstance||new _.fR;wX=_.DH.ytPubsubPubsubSubscribedKeys||{};qV=_.DH.ytPubsubPubsubTopicToKeys||{};_.LII=_.DH.ytPubsubPubsubIsSynchronous||{};_.fR.prototype.subscribe=_.fR.prototype.subscribe;_.fR.prototype.unsubscribeByKey=_.fR.prototype.unsubscribeByKey;_.fR.prototype.publish=_.fR.prototype.publish;_.fR.prototype.clear=_.fR.prototype.clear;_.LR("ytPubsubPubsubInstance",Tz2);_.LR("ytPubsubPubsubTopicToKeys",qV);_.LR("ytPubsubPubsubIsSynchronous",_.LII);
_.LR("ytPubsubPubsubSubscribedKeys",wX);var ju=window;var KU=_.O("web_enable_lifecycle_monitoring")&&azI()!==0,aUE=_.O("web_enable_lifecycle_monitoring");var iO0=function(y){var W=this;var c=c===void 0?0:c;var Z=Z===void 0?_.gl():Z;this.JSC$8666_defaultPriority=c;this.scheduler=Z;this.completedResolver=new _.WK;this.scheduledPayloads=y;for(y={i$jscomp$529:0};y.i$jscomp$529<this.scheduledPayloads.length;y={payload$jscomp$18:void 0,i$jscomp$529:y.i$jscomp$529},y.i$jscomp$529++)y.payload$jscomp$18=this.scheduledPayloads[y.i$jscomp$529],c=function(G){return function(){G.payload$jscomp$18.job();W.scheduledPayloads[G.i$jscomp$529].processed=!0;W.scheduledPayloads.every(function(D){return D.processed===
!0})&&W.completedResolver.resolve()}}(y),Z=this.scheduler.addJob(c,xRQ(this,y.payload$jscomp$18)),this.scheduledPayloads[y.i$jscomp$529]=Object.assign({},y.payload$jscomp$18,{job:c,
jobId:Z})};
iO0.prototype.flushJobs=function(){var y=this,W=Array.from(this.scheduledPayloads.keys()).sort(function(Z,G){return xRQ(y,y.scheduledPayloads[G])-xRQ(y,y.scheduledPayloads[Z])});
W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=this.scheduledPayloads[c.value],c.jobId===void 0||c.processed||(this.scheduler.cancelJob(c.jobId),this.scheduler.addJob(c.job,10))};
iO0.prototype.cancel=function(){for(var y=_.z(this.scheduledPayloads),W=y.next();!W.done;W=y.next())W=W.value,W.jobId===void 0||W.processed||this.scheduler.cancelJob(W.jobId),W.processed=!0;this.completedResolver.resolve()};
var xRQ=function(y,W){var c;return(c=W.priority)!=null?c:y.JSC$8666_defaultPriority};var OS=function(y){this.state=y;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};KU&&iNf(this.state)};
OS.prototype.install=function(y){this.plugins.push(y);return this};
OS.prototype.uninstall=function(){var y=this;_.Cf.apply(0,arguments).forEach(function(W){W=y.plugins.indexOf(W);W>-1&&y.plugins.splice(W,1)})};
OS.prototype.transition=function(y,W){var c=this;KU&&Mlh(this.state);var Z=this.transitions.find(function(D){return Array.isArray(D.from)?D.from.find(function(Y){return Y===c.state&&D.to===y}):D.from===c.state&&D.to===y});
if(Z){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);MbV(this,y,W);this.state=y;KU&&iNf(this.state);Z=Z.action.bind(this);var G=this.plugins.filter(function(D){return D[y]}).map(function(D){return D[y]});
Z(eh3(this,G),W)}else throw Error("gd`"+this.state+"`"+y);};
var eh3=function(y,W){var c=W.filter(function(G){return wTE(y,G)===10}),Z=W.filter(function(G){return wTE(y,G)!==10});
return y.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var G=_.Cf.apply(0,arguments);return _.m(function(D){if(D.nextAddress==1)return _.n(D,y.runImmediateJobsAsync.apply(y,[c].concat(_.No(G))),2);y.setJobSetWithScheduledJobs.apply(y,[Z].concat(_.No(G)));_.F2(D)})}:function(){var G=_.Cf.apply(0,arguments);
y.runImmediateJobsSync.apply(y,[c].concat(_.No(G)));y.setJobSetWithScheduledJobs.apply(y,[Z].concat(_.No(G)))}};
OS.prototype.runImmediateJobsSync=function(y){var W=_.Cf.apply(1,arguments);_.gl();for(var c=_.z(y),Z=c.next(),G={};!Z.done;G={lifecycle$jscomp$2:void 0},Z=c.next())G.lifecycle$jscomp$2=Z.value,LN(function(D){return function(){qLZ(D.lifecycle$jscomp$2.name);whI(function(){return D.lifecycle$jscomp$2.callback.apply(D.lifecycle$jscomp$2,_.No(W))});
g_(D.lifecycle$jscomp$2.name)}}(G))};
OS.prototype.runImmediateJobsAsync=function(y){var W=_.Cf.apply(1,arguments),c,Z,G,D;return _.m(function(Y){Y.nextAddress==1&&(_.gl(),c=_.z(y),Z=c.next(),G={});if(Y.nextAddress!=3){if(Z.done)return Y.jumpTo(0);G.lifecycle$jscomp$3=Z.value;G.asyncJobCompletion=void 0;D=function(u){return function(){qLZ(u.lifecycle$jscomp$3.name);var t=whI(function(){return u.lifecycle$jscomp$3.callback.apply(u.lifecycle$jscomp$3,_.No(W))});
y1h(t)?u.asyncJobCompletion=_.O("web_lifecycle_error_handling_killswitch")?t.then(function(){g_(u.lifecycle$jscomp$3.name)}):t.then(function(){g_(u.lifecycle$jscomp$3.name)},function(b){eWD(b);
g_(u.lifecycle$jscomp$3.name)}):g_(u.lifecycle$jscomp$3.name)}}(G);
LN(D);return G.asyncJobCompletion?_.n(Y,G.asyncJobCompletion,3):Y.jumpTo(3)}G={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Z=c.next();return Y.jumpTo(2)})};
OS.prototype.setJobSetWithScheduledJobs=function(y){var W=_.Cf.apply(1,arguments),c=this,Z=y.map(function(G){return{job:function(){qLZ(G.name);whI(function(){return G.callback.apply(G,_.No(W))});
g_(G.name)},
priority:wTE(c,G)}});
Z.length&&(this.jobSet=new iO0(Z))};
var wTE=function(y,W){var c,Z;return(Z=(c=y.overridePriority)!=null?c:W.priority)!=null?Z:0},qLZ=function(y){KU&&y&&iNf(y)},g_=function(y){KU&&y&&Mlh(y)},MbV=function(y,W,c){aUE&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+y.constructor.name+"] '"+y.state+"' to '"+W+"'"),console.log("with message: ",c),console.groupEnd())};
_.dJ.Object.defineProperties(OS.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var krJ=function(y){OS.call(this,y===void 0?"none":y);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(){}}]},jPV;
_.R(krJ,OS);krJ.prototype.runApplicationNavigationBegin=function(y,W){var c=this;this.navigationTimer=_.Xc(_.KX,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
y(W==null?void 0:W.event)};
krJ.prototype.runApplicationNavigationEnd=function(y,W){this.navigationTimer&&(_.KX.cancelJob(this.navigationTimer),this.navigationTimer=null);y(W==null?void 0:W.event)};
_.xu1=function(){jPV||(jPV=new krJ);return jPV};var aaf=[];_.LR("yt.logging.transport.getScrapedGelPayloads",function(){return aaf});var WO=function(){var y=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return y.totalEntries}}};
WO.prototype.storePayload=function(y,W){y=qHH(y);this.store[y]?this.store[y].push(W):(this.memoizedKeySequences={},this.store[y]=[W]);this.totalEntries++;_.O("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return y};
WO.prototype.smartExtractMatchingEntries=function(y){if(!y.keys.length)return[];for(var W=yEW(this,y.keys.splice(0,1)[0]),c=[],Z=0;Z<W.length;Z++)this.store[W[Z]]&&y.sizeLimit&&(this.store[W[Z]].length<=y.sizeLimit?(c.push.apply(c,_.No(this.store[W[Z]])),delete this.store[W[Z]]):c.push.apply(c,_.No(this.store[W[Z]].splice(0,y.sizeLimit))));this.totalEntries-=c.length;(y==null?0:y.sizeLimit)&&c.length<(y==null?void 0:y.sizeLimit)&&(y.sizeLimit-=c.length,c.push.apply(c,_.No(this.smartExtractMatchingEntries(y))));
return c};
WO.prototype.extractMatchingEntries=function(y){y=yEW(this,y);for(var W=[],c=0;c<y.length;c++)this.store[y[c]]&&(W.push.apply(W,_.No(this.store[y[c]])),delete this.store[y[c]]);this.totalEntries-=W.length;return W};
WO.prototype.getSequenceCount=function(y){y=yEW(this,y);for(var W=0,c=0;c<y.length;c++){var Z=void 0;W+=((Z=this.store[y[c]])==null?void 0:Z.length)||0}return W};
var yEW=function(y,W){var c=qHH(W);if(y.memoizedKeySequences[c])return y.memoizedKeySequences[c];var Z=Object.keys(y.store)||[];if(Z.length<=1&&qHH(W)===Z[0])return Z;for(var G=[],D=0;D<Z.length;D++){var Y=Z[D].split("/");if(WqE(W.auth,Y[0])){var u=W.isJspb;WqE(u===void 0?"undefined":u?"true":"false",Y[1])&&WqE(W.cttAuthInfo,Y[2])&&(u=W.tier,u=u===void 0?"undefined":JSON.stringify(u),WqE(u,Y[3])&&G.push(Z[D]))}}return y.memoizedKeySequences[c]=G},WqE=function(y,W){return y===void 0||y==="undefined"?
!0:y===W};
WO.prototype.getSequenceCount=WO.prototype.getSequenceCount;WO.prototype.extractMatchingEntries=WO.prototype.extractMatchingEntries;WO.prototype.smartExtractMatchingEntries=WO.prototype.smartExtractMatchingEntries;WO.prototype.storePayload=WO.prototype.storePayload;var ExH,RUH,NIw,G5,cE2,kba,qe1,gxa,OxO,sLO,laE,SeH,Uuh;ExH=_.ey("initial_gel_batch_timeout",2E3);RUH=_.ey("gel_queue_timeout_max_ms",6E4);NIw=_.ey("gel_min_batch_size",5);G5=void 0;cE2=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
kba=new cE2;qe1=new cE2;gxa=new cE2;OxO=new cE2;laE=!0;SeH=1;_.duf=new Map;Uuh=_.DH.ytLoggingTransportTokensToCttTargetIds_||{};_.LR("ytLoggingTransportTokensToCttTargetIds_",Uuh);var F$f=_.DH.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.LR("ytLoggingTransportTokensToJspbCttTargetIds_",F$f);var ZJ={};var rC=_.DH.ytLoggingGelSequenceIdObj_||{};_.LR("ytLoggingGelSequenceIdObj_",rC);var czf=[];var XGI=new Set,zNO=0,U8y=0,Flf=0,m8a=[],YVE=[],$8f=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Cga=function(){};
Cga.prototype.getUrl=function(y,W){W=W===void 0?!1:W;return y.hasOwnProperty("shareEndpoint")?null:_.RNO(y,null,W)};
var hig=function(y,W,c){y={endpoint:W,actions:[]};c=(c.path?c.path[0]:c.target).icon||"";W=c.indexOf(":");W>0&&(c=c.substr(W+1));c&&y.actions.push(c);return y};var Pgf=/Command$/,pGH=/Endpoint$/,EYH=new Map;var Zl5,GGE;Zl5=1;_.Q8=function(){this.actionRoutingMap=new Map};
_.Q8.prototype.triggerAction=function(y){var W=new Dhf(y,!1,_.Cf.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.Q8.prototype.triggerOptionalAction=function(y){var W=new Dhf(y,!0,_.Cf.apply(1,arguments));this.handleAction(W);return W.returnValue};
_.RO=function(y,W,c){W.forEach(function(Z){var G=IxF(Z);G&&y.triggerOptionalAction(G,Z,c,void 0)})};
_.Q8.prototype.handleAction=function(y){var W=this.actionRoutingMap.get(y.actionName);W&&GGE(y,W);y.optionalAction||y.returnValue.length!==0||(y=new _.ul("Unhandled action",y.actionName),_.Va(y))};
GGE=function(y,W){W.forEach(function(c){var Z=null;c?Z=c.apply(null,y.args):(c=Error("hd"),c.params=y.actionName,_.pj(c));y.returnValue.push(Z)})};
_.Ac=function(y,W,c){c||(c=Zl5++);for(var Z=_.z(Object.keys(W)),G=Z.next();!G.done;G=Z.next()){G=G.value;var D=y.actionRoutingMap.get(G);D||(D=new Map,y.actionRoutingMap.set(G,D));y.registerActionHandler(c,G,W[G],D)}return c};
_.Q8.prototype.registerActionHandler=function(y,W,c,Z){Z.set(y,_.PI(c))};
_.hc=function(y,W,c){W=_.z(Object.keys(W));for(var Z=W.next();!Z.done;Z=W.next())(Z=y.actionRoutingMap.get(Z.value))&&Z.delete(c)};
_.qa(_.Q8);var hNa=function(y,W){var c=_.Q8.getInstance();_.rj(function(){var Z={},G=_.Ac(c,(Z[y]=W,Z));_.KL(function(){var D={};_.hc(c,(D[y]="",D),G)})})};var vYw=function(y,W,c){_.rj(function(){var Z=y.value;Z?(Z.addEventListener(W,c,void 0),_.KL(function(){Z?Z.removeEventListener(W,c,void 0):d8H(y)})):d8H(y)})};TJO=URy;var yDa=new Set(["For","If","Match","Watch"]),f2T={},oA8=(f2T[EN.default]=function(){return BJa},f2T.style=function(){return BJa},f2T),D2J;
for(D2J in oA8)wL.attributes[D2J]=oA8[D2J](wL.attributes[D2J]);var xg=new _.Sm("VISIBILITY_OBSERVER");var mvw={retrieve:function(y){return this.id.\u0275prov.token===y.\u0275prov.token?this.contextValue:this?cvh(this,this.id):Why}};var zoV=function(y,W,c){if(y!==dC)return!1;y=M8D(document.createElement("div"),function(){var Z=xk(!1);try{c[0]()}finally{xk(Z)}});
y=Array.from(y.childNodes);y.length===1&&(y=y[0]);return y};var Yc0=function(y){y=y.clone();v7V(y);ui(y,"dg",null);ui(y,"d","0");heV(y,null);Brm(y,null);ui(y,"ichc","0");return y},m23=!0,sPW=function(y,W,c){var Z=c===void 0?{}:c;
c=Z.cssRowKey===void 0?void 0:Z.cssRowKey;var G=Z.combinedSignature===void 0?void 0:Z.combinedSignature;var D=Z.extraEdges===void 0?void 0:Z.extraEdges;Z=Z.callback===void 0?void 0:Z.callback;ui(y,"m",W.join(","));D&&L9E(y,D);c&&(ui(y,"ck",c),G?ui(y,"rs",G):m23&&(m23=!1));if(Z){if(Z!=null&&!TrZ.test(Z))throw Error("ab`"+Z);ui(y,"cb",Z)}y=y.toString();_.mE(y,"/")&&(y=uZi(document.location.href)+y);return _.rf(y)};var tG8=function(y){return urT(y).then(function(W){return JSON.parse(W.responseText)})},urT=function(y){var W={},c=W.xmlHttpFactory?W.xmlHttpFactory.createInstance():or2.createInstance();
return(new _.fD(function(Z,G){var D;try{c.open("GET",y,!0)}catch(t){G(new lp("Error opening XHR: "+t.message,y,c))}c.onreadystatechange=function(){if(c.readyState==4){_.DH.clearTimeout(D);var t;!(t=fdi(c.status))&&(t=c.status===0)&&(t=sHm(y),t=!(t=="http"||t=="https"||t==""));t?Z(c):G(new nAE(c.status,y,c))}};
c.onerror=function(){G(new lp("Network error",y,c))};
if(W.headers)for(var Y in W.headers){var u=W.headers[Y];u!=null&&c.setRequestHeader(Y,u)}W.withCredentials&&(c.withCredentials=W.withCredentials);W.responseType&&(c.responseType=W.responseType);W.mimeType&&c.overrideMimeType(W.mimeType);W.timeoutMs>0&&(D=_.DH.setTimeout(function(){c.onreadystatechange=function(){};
c.abort();G(new XAE(y,c))},W.timeoutMs));
try{c.send(null)}catch(t){c.onreadystatechange=function(){},_.DH.clearTimeout(D),G(new lp("Error sending XHR: "+t.message,y,c))}})).thenCatch(function(Z){Z instanceof _.AG&&c.abort();
throw Z;})},lp=function(y,W,c){_.yw.call(this,y+", url="+W);
this.url=W;this.xhr=c};
_.j6(lp,_.yw);lp.prototype.name="XhrError";var nAE=function(y,W,c){lp.call(this,"Request Failed, status="+y,W,c);this.status=y};
_.j6(nAE,lp);nAE.prototype.name="XhrHttpError";var XAE=function(y,W){lp.call(this,"Request timed out",y,W)};
_.j6(XAE,lp);XAE.prototype.name="XhrTimeoutError";wl=wl||{};var ES=function(){_.UR.call(this)};
_.j6(ES,_.UR);ES.prototype.initialize=function(){};var blJ=function(y,W){this.fn_=y;this.handler_=W};
blJ.prototype.execute=function(y){this.fn_&&(this.fn_.call(this.handler_||null,y),this.fn_=this.handler_=null)};
blJ.prototype.abort=function(){this.handler_=this.fn_=null};var ND=function(y,W){_.UR.call(this);this.deps_=y;this.JSC$8793_id_=W;this.onloadCallbacks_=[];this.JSC$8793_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.j6(ND,_.UR);ND.prototype.moduleConstructor_=ES;ND.prototype.module_=null;ND.prototype.getId=function(){return this.JSC$8793_id_};
ND.prototype.registerCallback=function(y,W){return rEQ(this.onloadCallbacks_,y,W)};
var FqE=function(y,W){rEQ(y.JSC$8793_onErrorCallbacks_,W)},rEQ=function(y,W,c){W=new blJ(W,c);
y.push(W);return W};
ND.prototype.isLoaded=function(){return!!this.module_};
ND.prototype.onLoad=function(y){var W=new this.moduleConstructor_;W.initialize(y());this.module_=W;W=(W=!!U23(this.earlyOnloadCallbacks_,y()))||!!U23(this.onloadCallbacks_,y());W||(this.JSC$8793_onErrorCallbacks_.length=0);return W};
ND.prototype.onError=function(y){(y=U23(this.JSC$8793_onErrorCallbacks_,y))&&YF(Error("nd`"+y));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var U23=function(y,W){for(var c=[],Z=0;Z<y.length;Z++)try{y[Z].execute(W)}catch(G){YF(G),c.push(G)}y.length=0;return c.length?c:null};
ND.prototype.disposeInternal=function(){ND.superClass_.disposeInternal.call(this);_.Mg(this.module_)};var $25,EAV,RoQ,l2T,OlE,gA3,JEi,pA8,PNV;
_.pU=function(y,W,c,Z,G){Z=Z===void 0?!1:Z;G=G===void 0?!1:G;var D=D===void 0?!0:D;this.scsReferenceUrl_=eZ(_.U3(y).toString(),D);this.cssRowKey_=W;this.combinedSignature_=c;this.useNegativeLoading_=Z;this.requestedModuleMap_={};this.JSC$8796_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(y=sX(this.scsReferenceUrl_,"excm"))?y.split(","):[];this.shouldScanForCss_=G;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;UVI();this.logger=null;_.IO(this,HR2(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
$25=function(y,W){if(W.href||W.getAttribute("data-href"))if(W=W.href||W.getAttribute("data-href"),XnI(W)&&!eZ(W).urlPrefix_.endsWith("_/js/")){W=HR2(eZ(W));W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,y.loadedCssModuleList_.includes(c)||y.loadedCssModuleList_.push(c)}};
_.pU.prototype.JSC$8798_loadModules=function(y,W,c){var Z=c===void 0?{}:c;c=Z.extraEdges;var G=Z.onError;var D=Z.onSuccess;Z=Z.forceReload;this.JSC$8796_moduleInfoMap_=W;if(!y)throw Error("od");if(this.shouldScanForCss_){W=_.z(document.getElementsByTagName("style"));for(var Y=W.next();!Y.done;Y=W.next())$25(this,Y.value);W=_.z(document.getElementsByTagName("link"));for(Y=W.next();!Y.done;Y=W.next())$25(this,Y.value)}Kq2(this,OlE(this,y),c,G,D,Z)};
var Kq2=function(y,W,c,Z,G,D){Z=Z===void 0?function(){}:Z;
G=G===void 0?function(){}:G;
D=D===void 0?!1:D;gA3(y,W,function(Y,u,t){t=t===void 0?u:t;y.enableFallbackFetch&&D?y.loadWithFetch(Y,u,Z,G,t):y.load(Y,u,Z,G,t,c)},c)||Z(-1)};
_.pU.prototype.loadWithFetch=function(){_.m(function(){throw Error("pd");})};
_.pU.prototype.maybeSetAdditionalFields=function(){};
EAV=function(y,W,c){if(y.useNegativeLoading_){var Z=y.scsReferenceUrl_;y={cssRowKey:y.cssRowKey_,combinedSignature:y.combinedSignature_,extraEdges:c,requestedModuleIds:RoQ(y),requestedCssModuleIds:l2T(y)};var G=y===void 0?{}:y;y=G.requestedModuleIds===void 0?[]:G.requestedModuleIds;c=G.requestedCssModuleIds===void 0?[]:G.requestedCssModuleIds;var D=G.cssRowKey===void 0?void 0:G.cssRowKey;var Y=G.combinedSignature===void 0?void 0:G.combinedSignature;var u=G.extraEdges===void 0?void 0:G.extraEdges;
G=G.callback===void 0?void 0:G.callback;Z=Yc0(Z);ui(Z,"d","1");heV(Z,y);Brm(Z,c);W=sPW(Z,W,{cssRowKey:D,combinedSignature:Y,extraEdges:u,callback:G})}else Z=y.scsReferenceUrl_,y={cssRowKey:y.cssRowKey_,combinedSignature:y.combinedSignature_,requestedModuleIds:RoQ(y),requestedCssModuleIds:l2T(y)},u=y===void 0?{}:y,y=u.requestedCssModuleIds===void 0?[]:u.requestedCssModuleIds,c=u.cssRowKey===void 0?void 0:u.cssRowKey,D=u.combinedSignature===void 0?void 0:u.combinedSignature,Y=u.extraEdges===void 0?
void 0:u.extraEdges,u=u.callback===void 0?void 0:u.callback,Z=Yc0(Z),Brm(Z,y),W=sPW(Z,W,{cssRowKey:c,combinedSignature:D,extraEdges:Y,callback:u});return W};
_.IO=function(y,W){for(var c=!1,Z=[],G=0;G<W.length;++G){var D=W[G];y.requestedModuleMap_[D]||(y.requestedModuleMap_[D]=!0,y.requestedModuleList_.push(D),c=!0,Z.push(D))}c&&(y.requestedModuleListSorted_=!1)};
_.Pi=function(y,W){for(var c=[],Z=0;Z<W.length;++Z){var G=W[Z];y.requestedModuleMap_[G]&&(delete y.requestedModuleMap_[G],_.dg(y.requestedModuleList_,G),c.push(G))}};
_.pU.prototype.load=function(y,W,c,Z,G){G=G===void 0?W:G;_.U3(y);var D=this.useCors_,Y=this.corsMode_,u=this.fetchPriority,t=_.uC("SCRIPT");_.eQ(t,y);D&&(t.crossOrigin=Y);t.async=!1;u&&t.setAttribute("fetchpriority",u);_.IO(this,W);_.NKE(this,y,t,W,c,Z,G)};
_.NKE=function(y,W,c,Z,G,D,Y){Y=Y===void 0?Z:Y;y.lastScript_=c;y.insertPos.insertBefore(c,y.insertPos.firstChild);_.I2J(c,Z,function(){c.parentElement.removeChild(c);y.lastScript_==c&&(y.lastScript_=null);var u=new Set;Z.map(function(b){return u.add(b)});
for(var t in y.JSC$8796_moduleInfoMap_)y.JSC$8796_moduleInfoMap_[t].isLoaded()&&u.add(t);Array.from(u);D()},function(u){c.parentElement.removeChild(c);
y.lastScript_==c&&(y.lastScript_=null);_.Pi(y,u);y.pendingModuleGraphUpdate_?y.pendingModuleGraphUpdate_.then(function(){G(-1,W)}):G(-1,W)},Y)};
_.I2J=function(y,W,c,Z,G){G=G===void 0?W:G;var D=W.length,Y=function(){D=0;y.onload=null;y.onerror=null;u=function(){}},u=function(){Y();
var b=G.filter(function(r){return!lC().getModuleInfo(r).isLoaded()});
b.length!==0?Z(b,"Response was successful but was missing module(s) "+b+"."):c()},t=function(){D--;
D==0&&u()};
W.forEach(function(b){b=lC().getModuleInfo(b);b.isLoaded()?t():(rEQ(b.earlyOnloadCallbacks_,t),FqE(b,t))});
y.onload=function(){return u()};
y.onerror=function(){Y();Z(W)}};
RoQ=function(y){y.requestedModuleListSorted_||(y.requestedModuleListSorted_=!0,y.requestedModuleList_.sort());return y.requestedModuleList_};
l2T=function(y){y=y.loadedCssModuleList_;y.sort();return y};
OlE=function(y,W){return W.filter(function(c){return!y.requestedModuleMap_[c]})};
gA3=function(y,W,c,Z){if(y.pendingModuleGraphUpdate_)return y.pendingModuleGraphUpdate_.then(function(){gA3(y,W,c,Z)}),!0;
if(!y.useNegativeLoading_){var G=[],D=Object.assign({},y.requestedModuleMap_);pA8(y,W,function(r){G.push(r.getId())},Z,function(r){return!r.isLoaded()},D);
W=G}for(D=0;D<W.length;){for(var Y=W.length-D,u=D==0?W:W.slice(D,W.length),t=EAV(y,u,Z),b=_.U3(t).toString();b.length>y.urlMaxLength;)if(Y>1)Y-=Math.ceil((b.length-y.urlMaxLength)/6),Y=Math.max(Y,1),u=W.slice(D,D+Y),t=EAV(y,u,Z),b=_.U3(t).toString();else return y.useNegativeLoading_?(y.useNegativeLoading_=!1,y.pendingModuleGraphUpdate_=PNV(y).then(function(r){JEi(y,r,Z)}),gA3(y,W.slice(D),c,Z)):!1;
D+=Y;y.useNegativeLoading_?c(t,u):c(t,u,D===W.length?W:[])}return!0};
JEi=function(y,W,c){lC().setAllModuleInfoString((W||{}).moduleGraph);pA8(y,RoQ(y),function(Z){_.IO(y,[Z.getId()])},c);
y.pendingModuleGraphUpdate_=null};
pA8=function(y,W,c,Z,G,D){D=D===void 0?{}:D;var Y=lC();W=_.z(W);for(var u=W.next();!u.done;u=W.next()){u=u.value;var t=Y.getModuleInfo(u);if(!(D[u]||G&&!G(t))){D[u]=!0;var b=t.deps_||[];if(Z){var r=[];Z[u]&&(r=Object.keys(Z[u]));b=b.concat(r)}pA8(y,b,c,Z,G,D);c(t)}}};
PNV=function(y){y=y.scsReferenceUrl_.clone();v7V(y);ui(y,"dg",null);ui(y,"md","1");return tG8(y.toString())};var VGm=function(){this.JSC$7920_loader_=null};
_.f=VGm.prototype;_.f.setBatchModeEnabled=function(){};
_.f.setAllModuleInfoString=function(){};
_.f.addExtraEdge=function(){throw Error("qd");};
_.f.removeExtraEdge=function(){throw Error("rd");};
_.f.getModuleContext=function(){return null};
_.f.isActive=function(){return!1};
_.f.isUserActive=function(){return!1};
_.f.registerCallback=function(){};var JJ=function(y,W,c,Z){this.type=y;this.status=W;this.requestedModuleIds=c;this.url=Z};
JJ.prototype.toString=function(){return CNE(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var CNE=function(y){switch(y.type){case JJ.JSC$8805_Type.UNAUTHORIZED:return"Unauthorized";case JJ.JSC$8805_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case JJ.JSC$8805_Type.TIMEOUT:return"Timed out";case JJ.JSC$8805_Type.OLD_CODE_GONE:return"Out of date module id";case JJ.JSC$8805_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+y.type}};
wl.ModuleLoadFailure=JJ;wl.ModuleLoadFailure.JSC$8805_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var V1=function(){this.moduleIds_=this.JSC$7920_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8808_extraEdges_={};this.JSC$8808_callbackMap_={};this.JSC$8808_currentlyLoadingModule_=this.baseModuleInfo_=new ND([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new hU;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.j6(V1,VGm);var QPQ=function(y,W){_.yw.call(this,"Error loading "+y+": "+W)};
_.j6(QPQ,_.yw);_.f=V1.prototype;_.f.setBatchModeEnabled=function(y){this.batchModeEnabled_=y};
_.f.setAllModuleInfoString=function(y,W){if(!(this instanceof V1))this.setAllModuleInfoString(y,W);else if(typeof y==="string"){if(y.startsWith("d$")){y=y.substring(2);for(var c=[],Z=0,G=y.indexOf("/"),D=0,Y=!1,u=0;;){var t=Y?y.substring(D):y.substring(D,G);if(t.length===0)Z++,D="sy"+Z.toString(36),t=[];else{var b=t.indexOf(":");if(b<0)D=t,t=[];else if(b===t.length-1)D=t.substring(0,b),t=Array(c[u-1]);else{D=t.substring(0,b);t=t.substring(b+1).split(",");b=u;for(var r=0;r<t.length;r++)b-=t[r].length===
0?1:Number(t[r]),t[r]=c[b]}b=0;if(D.length===0)b=1;else if(D.charAt(0)==="+"||D.charAt(0)==="-")b=Number(D);b!==0&&(Z+=b,D="sy"+Z.toString(36))}c.push(D);AE3(this,D,t);if(Y)break;D=G+1;G=y.indexOf("/",D);G===-1&&(Y=!0);u++}this.moduleIds_=c}else{y=y.split("/");c=[];for(Z=0;Z<y.length;Z++){u=y[Z].split(":");G=u[0];Y=[];if(u[1])for(Y=u[1].split(","),u=0;u<Y.length;u++)Y[u]=c[parseInt(Y[u],36)];c.push(G);AE3(this,G,Y)}this.moduleIds_=c}W&&W.length?(_.eI(this.loadingModuleIds_,W),this.lastInitialModuleId_=
_.Ca(W)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8808_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8808_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.$r)(this.getModuleContext,this))&&hoi(this,new wl.ModuleLoadFailure(wl.ModuleLoadFailure.JSC$8805_Type.INIT_ERROR)),CU(this))}};
_.f.getModuleInfo=function(y){return this.moduleInfoMap[y]};
_.f.addExtraEdge=function(y,W){var c=this.getModuleInfo(y);c&&c.isLoaded()?this.load(W):(this.JSC$8808_extraEdges_[y]||(this.JSC$8808_extraEdges_[y]={}),this.JSC$8808_extraEdges_[y][W]=!0)};
_.f.removeExtraEdge=function(y,W){if(this.JSC$8808_extraEdges_[y]){delete this.JSC$8808_extraEdges_[y][W];for(var c in this.JSC$8808_extraEdges_[y])return;delete this.JSC$8808_extraEdges_[y]}};
_.f.isActive=function(){return this.loadingModuleIds_.length>0};
_.f.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var CU=function(y){var W=y.lastActive_,c=y.isActive();c!=W&&(y.executeCallbacks_(c?"active":"idle"),y.lastActive_=c);W=y.isUserActive();W!=y.userLastActive_&&(y.executeCallbacks_(W?"userActive":"userIdle"),y.userLastActive_=W)},AE3=function(y,W,c){y.moduleInfoMap[W]?(y=y.moduleInfoMap[W].deps_,y!=c&&y.splice.apply(y,[0,
y.length].concat(_.No(c)))):y.moduleInfoMap[W]=new ND(c,W)},HlV=function(y,W,c){var Z=[];
Rth(W,Z);W=[];for(var G={},D=0;D<Z.length;D++){var Y=Z[D],u=y.getModuleInfo(Y);if(!u)throw Error("sd`"+Y);var t=new hU;G[Y]=t;u.isLoaded()?t.callback(null):(BKV(y,Y,u,!!c,t),y.isModuleLoading(Y)||W.push(Y))}W.length>0&&(y.loadingModuleIds_.length===0?y.loadModules_(W):(y.requestedModuleIdsQueue_.push(W),CU(y)));return G},BKV=function(y,W,c,Z,G){c.registerCallback(G.callback,G);
FqE(c,function(D){G.errback(new QPQ(W,D))});
y.isModuleLoading(W)?Z&&(LqV(y,W),CU(y)):Z&&LqV(y,W)};
V1.prototype.loadModules_=function(y,W,c){var Z=this;W||(this.consecutiveFailures_=0);var G=vAT(this,y);this.loadingModuleIds_=G;this.requestedLoadingModuleIds_=this.batchModeEnabled_?y:_.SI(G);CU(this);if(G.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,G);if(Object.keys(this.JSC$8808_extraEdges_).length>0&&!this.JSC$7920_loader_.supportsExtraEdges)throw Error("td");y=(0,_.$r)(this.JSC$7920_loader_.JSC$8798_loadModules,this.JSC$7920_loader_,_.SI(G),this.moduleInfoMap,{extraEdges:this.JSC$8808_extraEdges_,
forceReload:!!c,onError:function(D,Y){var u=Z.requestedLoadingModuleIds_;D=D!=null?D:void 0;Z.consecutiveFailures_++;var t=_.SI(G);Z.requestedLoadingModuleIds_=u;G.forEach(_.Fr(_.dg,Z.requestedModuleIds_),Z);D==401?(hoi(Z,new wl.ModuleLoadFailure(wl.ModuleLoadFailure.JSC$8805_Type.UNAUTHORIZED,D)),Z.requestedModuleIdsQueue_.length=0):D==410?(d2m(Z,new wl.ModuleLoadFailure(wl.ModuleLoadFailure.JSC$8805_Type.OLD_CODE_GONE,D)),Sc8(Z)):Z.consecutiveFailures_>=3?(d2m(Z,new wl.ModuleLoadFailure(wl.ModuleLoadFailure.JSC$8805_Type.CONSECUTIVE_FAILURES,
D,t,Y)),Sc8(Z)):Z.loadModules_(Z.requestedLoadingModuleIds_,!0,D==8001||!1)},
onTimeout:(0,_.$r)(this.handleLoadTimeout_,this)});(W=Math.pow(this.consecutiveFailures_,2)*5E3)?_.DH.setTimeout(y,W):y()}};
var vAT=function(y,W){W=W.filter(function(G){return y.moduleInfoMap[G].isLoaded()?(_.DH.setTimeout(function(){return Error("ud`"+G)},0),!1):!0});
for(var c=[],Z=0;Z<W.length;Z++)c=c.concat(TKZ(y,W[Z]));Rth(c);return!y.batchModeEnabled_&&c.length>1?(W=c.shift(),y.requestedModuleIdsQueue_=c.map(function(G){return[G]}).concat(y.requestedModuleIdsQueue_),[W]):c},TKZ=function(y,W){var c=_.Eb.createSet(y.requestedModuleIds_),Z=[];
c[W]||Z.push(W);W=[W];for(var G=0;G<W.length;G++)for(var D=y.getModuleInfo(W[G]).deps_,Y=D.length-1;Y>=0;Y--){var u=D[Y];y.getModuleInfo(u).isLoaded()||c[u]||(Z.push(u),W.push(u))}Z.reverse();Rth(Z);return Z};
V1.prototype.JSC$8803_setLoaded=function(){if(this.JSC$8808_currentlyLoadingModule_){var y=this.JSC$8808_currentlyLoadingModule_.getId(),W=[];if(this.JSC$8808_extraEdges_[y]){for(var c=_.z(Object.keys(this.JSC$8808_extraEdges_[y])),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var G=this.getModuleInfo(Z);G&&!G.isLoaded()&&(this.removeExtraEdge(y,Z),W.push(Z))}this.loadMultiple(W)}this.isDisposed()||(this.moduleInfoMap[y].onLoad((0,_.$r)(this.getModuleContext,this))&&hoi(this,new wl.ModuleLoadFailure(wl.ModuleLoadFailure.JSC$8805_Type.INIT_ERROR)),
_.dg(this.userInitiatedLoadingModuleIds_,y),_.dg(this.loadingModuleIds_,y),this.loadingModuleIds_.length===0&&Sc8(this),this.lastInitialModuleId_&&y==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),CU(this),this.JSC$8808_currentlyLoadingModule_=null)}};
V1.prototype.isModuleLoading=function(y){if(_.Hy(this.loadingModuleIds_,y))return!0;for(var W=0;W<this.requestedModuleIdsQueue_.length;W++)if(_.Hy(this.requestedModuleIdsQueue_[W],y))return!0;return!1};
V1.prototype.load=function(y,W){return HlV(this,[y],W)[y]};
V1.prototype.loadMultiple=function(y){return HlV(this,y)};
var LqV=function(y,W){_.Hy(y.userInitiatedLoadingModuleIds_,W)||y.userInitiatedLoadingModuleIds_.push(W)};
V1.prototype.beforeLoadModuleCode=function(y){var W=this;this.JSC$8808_currentlyLoadingModule_&&this.JSC$8808_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8803_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[y]&&a2W(this,this.moduleInfoMap[y].deps_||[],function(c){c.module_=new ES;_.dg(W.loadingModuleIds_,c.getId())},function(c){return!c.isLoaded()});
this.JSC$8808_currentlyLoadingModule_=this.getModuleInfo(y)};
V1.prototype.handleLoadTimeout_=function(){d2m(this,new wl.ModuleLoadFailure(wl.ModuleLoadFailure.JSC$8805_Type.TIMEOUT));Sc8(this)};
var d2m=function(y,W){y.requestedLoadingModuleIds_.length>1?y.requestedModuleIdsQueue_=y.requestedLoadingModuleIds_.map(function(c){return[c]}).concat(y.requestedModuleIdsQueue_):hoi(y,W)},hoi=function(y,W){var c=y.requestedLoadingModuleIds_;
y.loadingModuleIds_.length=0;for(var Z=[],G=0;G<y.requestedModuleIdsQueue_.length;G++){var D=y.requestedModuleIdsQueue_[G].filter(function(t){var b=TKZ(this,t);return Av(c,function(r){return _.Hy(b,r)})},y);
_.eI(Z,D)}for(G=0;G<c.length;G++)_.$1I(Z,c[G]);for(G=0;G<Z.length;G++){for(D=0;D<y.requestedModuleIdsQueue_.length;D++)_.dg(y.requestedModuleIdsQueue_[D],Z[G]);_.dg(y.userInitiatedLoadingModuleIds_,Z[G])}if(G=y.JSC$8808_callbackMap_.error)for(D=0;D<G.length;D++)for(var Y=G[D],u=0;u<Z.length;u++)Y("error",Z[u],W);for(Z=0;Z<c.length;Z++)if(y.moduleInfoMap[c[Z]])y.moduleInfoMap[c[Z]].onError(W);y.requestedLoadingModuleIds_.length=0;CU(y)},Sc8=function(y){for(;y.requestedModuleIdsQueue_.length;){var W=
y.requestedModuleIdsQueue_.shift().filter(function(c){return!this.getModuleInfo(c).isLoaded()},y);
if(W.length>0){y.loadModules_(W);return}}CU(y)};
V1.prototype.registerCallback=function(y,W){Array.isArray(y)||(y=[y]);for(var c=0;c<y.length;c++){var Z=y[c],G=W,D=this.JSC$8808_callbackMap_;D[Z]||(D[Z]=[]);D[Z].push(G)}};
V1.prototype.executeCallbacks_=function(y){for(var W=this.JSC$8808_callbackMap_[y],c=0;W&&c<W.length;c++)W[c](y)};
var a2W=function(y,W,c,Z,G){Z=Z===void 0?function(){return!0}:Z;
G=G===void 0?{}:G;W=_.z(W);for(var D=W.next();!D.done;D=W.next()){D=D.value;var Y=y.getModuleInfo(D);!G[D]&&Z(Y)&&(G[D]=!0,a2W(y,Y.deps_||[],c,Z,G),c(Y))}};
V1.prototype.dispose=function(){_.bjg(_.Eb.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8808_callbackMap_={};this.isDisposed_=!0};
V1.prototype.isDisposed=function(){return this.isDisposed_};
_.Re=function(){return new V1};var x2Z=[5E3,2E4],il5=function(){this.JSC$7920_loader_=null;this.JSC$8815_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8815_queue_=[];this.JSC$8815_extraEdges_=Object.create(null);this.JSC$8815_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.R(il5,VGm);_.f=il5.prototype;_.f.setAllModuleInfoString=function(){this.JSC$8815_currentlyLoadingModule_&&this.JSC$8815_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8803_setLoaded()};
_.f.getModuleInfo=function(y){var W=this.JSC$8815_moduleInfoMap_[y];W||(W=new ND([],y),this.JSC$8815_moduleInfoMap_[y]=W);return W};
_.f.addExtraEdge=function(y,W){this.getModuleInfo(y).isLoaded()?this.load(W):(this.JSC$8815_extraEdges_[y]||(this.JSC$8815_extraEdges_[y]={}),this.JSC$8815_extraEdges_[y][W]=!0)};
_.f.removeExtraEdge=function(y,W){if(this.JSC$8815_extraEdges_[y]){delete this.JSC$8815_extraEdges_[y][W];for(var c in this.JSC$8815_extraEdges_[y])return;delete this.JSC$8815_extraEdges_[y]}};
_.f.isModuleLoading=function(y){return!!this.loadingModules_[y]};
_.f.load=function(y){MGQ(this,[y]);return eo0(this,y)};
_.f.loadMultiple=function(y){var W=this,c=Object.create(null),Z=[];y.forEach(function(G){c[G]||(c[G]=eo0(W,G),Z.push(G))});
MGQ(this,Z);return c};
_.f.beforeLoadModuleCode=function(y){var W;((W=this.JSC$8815_currentlyLoadingModule_)==null?void 0:W.getId())==="synthetic_module_overhead"&&this.JSC$8803_setLoaded();var c,Z;wA3(this,(Z=(c=this.JSC$8815_moduleInfoMap_[y])==null?void 0:c.deps_)!=null?Z:[],function(G){G.module_=new ES},function(G){return!G.isLoaded()});
this.JSC$8815_currentlyLoadingModule_=this.getModuleInfo(y)};
_.f.JSC$8803_setLoaded=function(){if(this.JSC$8815_currentlyLoadingModule_){var y=this.JSC$8815_currentlyLoadingModule_.getId(),W=[];if(this.JSC$8815_extraEdges_[y]){for(var c=_.z(Object.keys(this.JSC$8815_extraEdges_[y])),Z=c.next();!Z.done;Z=c.next())Z=Z.value,this.getModuleInfo(Z).isLoaded()||(this.removeExtraEdge(y,Z),W.push(Z));this.loadMultiple(W)}this.JSC$8815_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8815_currentlyLoadingModule_=null;(!this.isModuleLoading(y)&&/^sy[0-9a-z]{0,4}$/.test(y)||y==="synthetic_module_overhead")&&delete this.JSC$8815_moduleInfoMap_[y];this.unsetModulesAsLoading(y)}};
_.f.setModulesAsLoading=function(){var y=this;_.Cf.apply(0,arguments).forEach(function(W){y.loadingModules_[W]=!0})};
_.f.unsetModulesAsLoading=function(){var y=this;_.Cf.apply(0,arguments).forEach(function(W){delete y.loadingModules_[W]})};
var eo0=function(y,W){return new _.fD(function(c,Z){var G=y.getModuleInfo(W);G.isLoaded()?c(null):(G.registerCallback(function(){c(null)}),FqE(G,function(D){var Y="Error loading "+W+": "+D;
D instanceof wl.ModuleLoadFailure&&D.url&&(Y=Y+", requested url: "+D.url.toString());Z(Error(Y))}))})},MGQ=function(y,W){W=W.filter(function(c){return!y.isModuleLoading(c)&&!y.getModuleInfo(c).isLoaded()});
W.length>0&&(y.setModulesAsLoading.apply(y,_.No(W)),y.JSC$8815_queue_.push(W),qcV(y))},qcV=function(y){for(var W={};y.activeLoads_<Infinity&&y.JSC$8815_queue_.length>0;W={finishLoad:void 0,
ids$jscomp$34:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})W.ids$jscomp$34=y.JSC$8815_queue_.shift().filter(function(c){return!y.getModuleInfo(c).isLoaded()}),W.ids$jscomp$34.length>0&&(y.activeLoads_++,W.finishLoad=function(c){return function(){y.activeLoads_--;
qcV(y);c.finishLoad=function(){}}}(W),_.X1(W.ids$jscomp$34.map(function(c){return eo0(y,c)})).then(function(c){return function(){(0,c.finishLoad)()}}(W)),W.attempt$jscomp$6=0,W.load$jscomp$1=function(c){return function(){if(Object.keys(y.JSC$8815_extraEdges_).length>0&&!y.JSC$7920_loader_.supportsExtraEdges)throw Error("td");
y.JSC$7920_loader_.JSC$8798_loadModules(c.ids$jscomp$34,y.JSC$8815_moduleInfoMap_,{extraEdges:y.JSC$8815_extraEdges_,onError:function(Z,G){var D=x2Z[c.attempt$jscomp$6++];D!==void 0?setTimeout(function(){(0,c.load$jscomp$1)()},D):(y.unsetModulesAsLoading.apply(y,_.No(c.ids$jscomp$34)),(0,c.finishLoad)(),c.ids$jscomp$34.forEach(function(Y){Y=y.getModuleInfo(Y);
if(!Y.isLoaded())Y.onError(new wl.ModuleLoadFailure(wl.ModuleLoadFailure.JSC$8805_Type.CONSECUTIVE_FAILURES,Z,c.ids$jscomp$34,G))}))}})}}(W),(0,W.load$jscomp$1)())},wA3=function(y,W,c,Z,G){Z=Z===void 0?function(){return!0}:Z;
G=G===void 0?{}:G;W=_.z(W);for(var D=W.next();!D.done;D=W.next()){D=D.value;var Y=y.getModuleInfo(D);!G[D]&&Z(Y)&&(G[D]=!0,wA3(y,Y.deps_||[],c,Z,G),c(Y))}};var kGm=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var nDw=Symbol("wd");window.JSCompiler_renameProperty=function(y){return y};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var jvE=!kGm||HTMLElement.es5Shimmed||_.DH.Reflect===void 0||_.DH.customElements===void 0||_.DH.customElements.polyfillWrapFlushCallback||!1,yKV,Sat=function(){var y=HTMLElement;if(jvE)return y;if(yKV!==void 0)return yKV;var W=_.DH.Reflect,c=function(){return W.construct(y,[],this.constructor)};
c.prototype=y.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,y);return yKV=c},WZE=!1;jvE||WZE||(WZE=!0,_.DH.HTMLElement=Sat());/*

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 UvF=/(url\()([^)]*)(\))/g,rDy=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Fth,wC;var IN=!window.ShadyDOM||!window.ShadyDOM.inUse,cKE=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),ZqQ=!window.customElements.polyfillWrapFlushCallback,Gx8;if(Gx8=IN&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var fK3=new CSSStyleSheet;fK3.replaceSync("");var oR8=document.createElement("div");oR8.attachShadow({mode:"open"});oR8.shadowRoot.adoptedStyleSheets=[fK3];Gx8=oR8.shadowRoot.adoptedStyleSheets[0]===fK3}catch(y){Gx8=!1}
var DWi=Gx8,z4Z=window.Polymer&&window.Polymer.rootPath||Ktf(document.baseURI||window.location.href),sQ=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,pUw=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Vv=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,YqT=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,N4=window.Polymer&&window.Polymer.legacyOptimizations||!1,Js=window.Polymer&&window.Polymer.legacyWarnings||!1,mWT=window.Polymer&&window.Polymer.syncInitialRender||
!1,ts=window.Polymer&&window.Polymer.legacyUndefined||!1,svW=window.Polymer&&window.Polymer.orderedComputed||!1,Q1=window.Polymer&&window.Polymer.removeNestedTemplates||!1,AJ=window.Polymer&&window.Polymer.fastDomIf||!1,hJ=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ujE=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,tv5=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Bi={},nR8={},Xo=function(){return HTMLElement.apply(this,arguments)||this};
_.R(Xo,HTMLElement);Xo.import=function(y,W){return y?(y=Bi[y]||nR8[y.toLowerCase()])&&W?y.querySelector(W):y:null};
Xo.prototype.attributeChangedCallback=function(y,W,c){W!==c&&this.register()};
Xo.prototype.register=function(y){if(y=y||this.id){if(Vv&&(Bi[y]||nR8[y.toLowerCase()])!==void 0)throw Bi[y]=nR8[y.toLowerCase()]=null,Error("xd`"+y);this.id=y;Bi[y]=nR8[y.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.dJ.Object.defineProperties(Xo.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var y=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;y=_.qF(this.getAttribute("assetpath")||"",y.baseURI);this.__assetpath=Ktf(y)}return this.__assetpath}}});
_.dJ.Object.defineProperties(Xo,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Xo["import"]=Xo.import;Xo.prototype.modules=Bi;customElements.define("dom-module",Xo);var X$W=0,gDf=0,kg=[],bqV=0,OsH=!1,rK2=document.createTextNode(""),FZ0,ln;(new window.MutationObserver(RYD)).observe(rK2,{characterData:!0});_.Hi={after:function(y){return{run:function(W){return window.setTimeout(W,y)},
cancel:function(W){window.clearTimeout(W)}}},
run:function(y,W){return window.setTimeout(y,W)},
cancel:function(y){window.clearTimeout(y)}};
_.mI={run:function(y){return window.requestAnimationFrame(y)},
cancel:function(y){window.cancelAnimationFrame(y)}};
FZ0={run:function(y){return window.requestIdleCallback?window.requestIdleCallback(y):window.setTimeout(y,16)},
cancel:function(y){window.cancelIdleCallback?window.cancelIdleCallback(y):window.clearTimeout(y)}};
ln={run:function(y){OsH||(OsH=!0,rK2.textContent=bqV++);kg.push(y);return X$W++},
cancel:function(y){var W=y-gDf;if(W>=0){if(!kg[W])throw Error("yd`"+y);kg[W]=null}}};var UWm=0,LU=function(y){var W=y.__mixinApplications;W||(W=new WeakMap,y.__mixinApplications=W);var c=UWm++;return function(Z){var G=Z.__mixinSet;if(G&&G[c])return Z;var D=W,Y=D.get(Z);Y||(Y=y(Z),D.set(Z,Y),Z=Object.create(Y.__mixinSet||G||null),Z[c]=!0,Y.__mixinSet=Z);return Y}};_.my=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(y){return ShadyDOM.patch(y)}:function(y){return y};var $W0=LU(function(y){var W=function(){var c=y.call(this)||this;c.__dataEnabled=!1;c.__dataReady=!1;c.__dataInvalid=!1;c.__data={};c.__dataPending=null;c.__dataOld=null;c.__dataInstanceProps=null;c.__dataCounter=0;c.__serializing=!1;c._initializeProperties();return c};
_.R(W,y);W.createProperties=function(c){var Z=this.prototype,G;for(G in c)G in Z||Z._createPropertyAccessor(G)};
W.attributeNameForProperty=function(c){return c.toLowerCase()};
W.typeForProperty=function(){};
W.prototype._createPropertyAccessor=function(c,Z){this._addPropertyToAttributeMap(c);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[c]||(this.__dataHasAccessor[c]=!0,this._definePropertyAccessor(c,Z))};
W.prototype._addPropertyToAttributeMap=function(c){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Z=this.__dataAttributes[c];Z||(Z=this.constructor.attributeNameForProperty(c),this.__dataAttributes[Z]=c);return Z};
W.prototype._definePropertyAccessor=function(c,Z){Object.defineProperty(this,c,{get:function(){return this.__data[c]},
set:Z?function(){}:function(G){this._setPendingProperty(c,G,!0)&&this._invalidateProperties()}})};
W.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
W.prototype._initializeProperties=function(){for(var c in this.__dataHasAccessor)this.hasOwnProperty(c)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[c]=this[c],delete this[c])};
W.prototype._initializeInstanceProperties=function(c){Object.assign(this,c)};
W.prototype._setProperty=function(c,Z){this._setPendingProperty(c,Z)&&this._invalidateProperties()};
W.prototype._getProperty=function(c){return this.__data[c]};
W.prototype._setPendingProperty=function(c,Z){var G=this.__data[c],D=this._shouldPropertyChange(c,Z,G);D&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||c in this.__dataOld||(this.__dataOld[c]=G),this.__data[c]=Z,this.__dataPending[c]=Z);return D};
W.prototype._isPropertyPending=function(c){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(c))};
W.prototype._invalidateProperties=function(){var c=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ln.run(function(){c.__dataInvalid&&(c.__dataInvalid=!1,c._flushProperties())}))};
W.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
W.prototype._flushProperties=function(){this.__dataCounter++;var c=this.__data,Z=this.__dataPending,G=this.__dataOld;this._shouldPropertiesChange(c,Z,G)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(c,Z,G));this.__dataCounter--};
W.prototype._shouldPropertiesChange=function(c,Z){return!!Z};
W.prototype._propertiesChanged=function(){};
W.prototype._shouldPropertyChange=function(c,Z,G){return G!==Z&&(G===G||Z===Z)};
W.prototype.attributeChangedCallback=function(c,Z,G,D){Z!==G&&this._attributeToProperty(c,G);y.prototype.attributeChangedCallback&&y.prototype.attributeChangedCallback.call(this,c,Z,G,D)};
W.prototype._attributeToProperty=function(c,Z,G){if(!this.__serializing){var D=this.__dataAttributes;c=D&&D[c]||c;this[c]=this._deserializeValue(Z,G||this.constructor.typeForProperty(c))}};
W.prototype._propertyToAttribute=function(c,Z,G){this.__serializing=!0;G=arguments.length<3?this[c]:G;this._valueToNodeAttribute(this,G,Z||this.constructor.attributeNameForProperty(c));this.__serializing=!1};
W.prototype._valueToNodeAttribute=function(c,Z,G){Z=this._serializeValue(Z);if(G==="class"||G==="name"||G==="slot")c=(0,_.my)(c);Z===void 0?c.removeAttribute(G):c.setAttribute(G,Z===""&&window.trustedTypes?window.trustedTypes.emptyScript:Z)};
W.prototype._serializeValue=function(c){switch(typeof c){case "boolean":return c?"":void 0;default:return c!=null?c.toString():void 0}};
W.prototype._deserializeValue=function(c,Z){switch(Z){case Boolean:return c!==null;case Number:return Number(c);default:return c}};
return W});var KZZ=0,lvD=[];var OqE=LU(function(y){function W(D){D=Object.getPrototypeOf(D);return D.prototype instanceof G?D:null}
function c(D){if(!D.hasOwnProperty("__ownProperties")){var Y=null;if(D.hasOwnProperty("properties")){var u=D.properties;if(u){Y={};for(var t in u){var b=u[t];Y[t]=typeof b==="function"?{type:b}:b}}}D.__ownProperties=Y}return D.__ownProperties}
var Z=$W0(y),G=function(){return Z.apply(this,arguments)||this};
_.R(G,Z);G.finalize=function(){if(!this.hasOwnProperty("__finalized")){var D=W(this);D&&D.finalize();this.__finalized=!0;this._finalizeClass()}};
G._finalizeClass=function(){var D=c(this);D&&this.createProperties(D)};
G.typeForProperty=function(D){return(D=this._properties[D])&&D.type};
G.prototype._initializeProperties=function(){KZZ++;this.constructor.finalize();Z.prototype._initializeProperties.call(this)};
G.prototype.connectedCallback=function(){Z.prototype.connectedCallback&&Z.prototype.connectedCallback.call(this);this._enableProperties()};
G.prototype.disconnectedCallback=function(){Z.prototype.disconnectedCallback&&Z.prototype.disconnectedCallback.call(this)};
_.dJ.Object.defineProperties(G,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var D=this;if(!this.hasOwnProperty("__observedAttributes")){EDw(this.prototype);var Y=this._properties;this.__observedAttributes=Y?Object.keys(Y).map(function(u){return D.prototype._addPropertyToAttributeMap(u)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var D=W(this);this.__properties=Object.assign({},D&&D._properties,c(this))}return this.__properties}}});
return G});var NeF={},Ivh=/-[a-z]/g,pEI=/([A-Z])/g;for(var gRi={},R43=HTMLElement.prototype;R43;){for(var lK2=Object.getOwnPropertyNames(R43),ERQ=0;ERQ<lK2.length;ERQ++)gRi[lK2[ERQ]]=!0;R43=Object.getPrototypeOf(R43)}var NuV=window.trustedTypes?function(y){return trustedTypes.isHTML(y)||trustedTypes.isScript(y)||trustedTypes.isScriptURL(y)}:function(){return!1},IKW=LU(function(y){var W=$W0(y);
y=function(){return W.apply(this,arguments)||this};
_.R(y,W);y.createPropertiesForAttributes=function(){for(var c=this.observedAttributes,Z=0;Z<c.length;Z++)this.prototype._createPropertyAccessor(jN(c[Z]))};
y.attributeNameForProperty=function(c){return yv(c)};
y.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);W.prototype._initializeProperties.call(this)};
y.prototype._initializeProtoProperties=function(c){for(var Z in c)this._setProperty(Z,c[Z])};
y.prototype._ensureAttribute=function(c,Z){this.hasAttribute(c)||this._valueToNodeAttribute(this,Z,c)};
y.prototype._serializeValue=function(c){switch(typeof c){case "object":if(c instanceof Date)return c.toString();if(c){if(NuV(c))return c;try{return JSON.stringify(c)}catch(Z){return""}}default:return W.prototype._serializeValue.call(this,c)}};
y.prototype._deserializeValue=function(c,Z){switch(Z){case Object:try{var G=JSON.parse(c)}catch(D){G=c}break;case Array:try{G=JSON.parse(c)}catch(D){G=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+c)}break;case Date:G=isNaN(c)?String(c):Number(c);G=new Date(G);break;default:G=W.prototype._deserializeValue.call(this,c,Z)}return G};
y.prototype._definePropertyAccessor=function(c,Z){if(!gRi[c]){var G=this[c];G!==void 0&&(this.__data?this._setPendingProperty(c,G):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[c]=G))}W.prototype._definePropertyAccessor.call(this,c,Z)};
y.prototype._hasAccessor=function(c){return this.__dataHasAccessor&&this.__dataHasAccessor[c]};
y.prototype._isPropertyPending=function(c){return!!(this.__dataPending&&c in this.__dataPending)};
return y});var p$V={"dom-if":!0,"dom-repeat":!0},Pom=!1,JKT=!1,Vv8=function(){var y=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(W){return W}});
return function(W,c,Z){c=c.getAttribute(Z);y&&Z.startsWith("on-")?W.setAttribute(Z,y.createScript(c,Z)):W.setAttribute(Z,c)}}(),Co5=LU(function(y){var W=function(){return y.apply(this,arguments)||this};
_.R(W,y);W._parseTemplate=function(c,Z){if(!c._templateInfo){var G=c._templateInfo={};G.nodeInfoList=[];G.nestedTemplate=!!Z;G.stripWhiteSpace=Z&&Z.stripWhiteSpace||c.hasAttribute&&c.hasAttribute("strip-whitespace");this._parseTemplateContent(c,G,{parent:null})}return c._templateInfo};
W._parseTemplateContent=function(c,Z,G){return this._parseTemplateNode(c.content,Z,G)};
W._parseTemplateNode=function(c,Z,G){var D=!1;c.localName!="template"||c.hasAttribute("preserve-content")?c.localName==="slot"&&(Z.hasInsertionPoint=!0):D=this._parseTemplateNestedTemplate(c,Z,G)||D;if(!Pom){Pom=!0;var Y=document.createElement("textarea");Y.placeholder="a";JKT=Y.placeholder===Y.textContent}JKT&&c.localName==="textarea"&&c.placeholder&&c.placeholder===c.textContent&&(c.textContent=null);c.firstChild&&this._parseTemplateChildNodes(c,Z,G);c.hasAttributes&&c.hasAttributes()&&(D=this._parseTemplateNodeAttributes(c,
Z,G)||D);return D||G.noted};
W._parseTemplateChildNodes=function(c,Z,G){if(c.localName!=="script"&&c.localName!=="style")for(var D=c.firstChild,Y=0,u;D;D=u){if(D.localName=="template"){var t=D.getAttribute("is");if(t&&p$V[t])for(u=D,u.removeAttribute("is"),D=u.ownerDocument.createElement(t),u.parentNode.replaceChild(D,u),D.appendChild(u);u.attributes.length;)t=u.attributes[0].name,Vv8(D,u,t),u.removeAttribute(t)}u=D.nextSibling;if(D.nodeType===Node.TEXT_NODE){for(t=u;t&&t.nodeType===Node.TEXT_NODE;)D.textContent+=t.textContent,
u=t.nextSibling,c.removeChild(t),t=u;if(Z.stripWhiteSpace&&!D.textContent.trim()){c.removeChild(D);continue}}t={parentIndex:Y,parentInfo:G};this._parseTemplateNode(D,Z,t)&&(t.infoIndex=Z.nodeInfoList.push(t)-1);D.parentNode&&Y++}};
W._parseTemplateNestedTemplate=function(c,Z,G){Z=this._parseTemplate(c,Z);(Z.content=c.content.ownerDocument.createDocumentFragment()).appendChild(c.content);G.templateInfo=Z;return!0};
W._parseTemplateNodeAttributes=function(c,Z,G){for(var D=!1,Y=Array.from(c.attributes),u=Y.length-1,t;t=Y[u];u--)D=this._parseTemplateNodeAttribute(c,Z,G,t.name,t.value)||D;return D};
W._parseTemplateNodeAttribute=function(c,Z,G,D,Y){return D.slice(0,3)==="on-"?(c.removeAttribute(D),G.events=G.events||[],G.events.push({name:D.slice(3),value:Y}),!0):D==="id"?(G.id=Y,!0):!1};
W._contentForTemplate=function(c){var Z=c._templateInfo;return Z&&Z.content||c.content};
W.prototype._stampTemplate=function(c,Z){c&&!c.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(c);Z=Z||this.constructor._parseTemplate(c);var G=Z.nodeInfoList;c=document.importNode(Z.content||c.content,!0);c.__noInsertionPoint=!Z.hasInsertionPoint;var D=c.nodeList=Array(G.length);c.$={};for(var Y=0,u=G.length,t=void 0;Y<u&&(t=G[Y]);Y++){var b=D[Y]=PLg(c,t);t.id&&(c.$[t.id]=b);var r=b,F=t,K=Z;F.templateInfo&&(r._templateInfo=F.templateInfo,r._parentTemplateInfo=
K);if(t.events&&t.events.length)for(r=0,F=t.events,K=void 0;r<F.length&&(K=F[r]);r++)this._addMethodEventListenerToNode(b,K.name,K.value,this)}return c};
W.prototype._addMethodEventListenerToNode=function(c,Z,G,D){G=JDI(D||c,G);this._addEventListenerToNode(c,Z,G);return G};
W.prototype._addEventListenerToNode=function(c,Z,G){c.addEventListener(Z,G)};
W.prototype._removeEventListenerFromNode=function(c,Z,G){c.removeEventListener(Z,G)};
return W});var z7=0,un=[],Qv5={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},AK2=/[A-Z]/,h4T=function(y,W,c,Z,G){var D=G?cR(y):y;if(W=W[D])for(D=0;D<W.length;D++){var Y=W[D];if(Y.info.lastRun!==z7&&(!G||BeE(y,Y.trigger))){Y.info.lastRun=z7;Y=Y.info;for(var u=c,t=Z,b=0,r=u.length-1,F=-1;b<=r;){var K=b+r>>1,l=t.get(u[K].methodInfo)-t.get(Y.methodInfo);if(l<0)b=K+1;else if(l>0)r=K-1;else{F=K;break}}F<
0&&(F=r+1);u.splice(F,0,Y)}}},jTE=[],BuT=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"),d_=LU(function(y){var W=Co5(IKW(y));
y=function(){var c=W.call(this)||this;c.__isPropertyEffectsClient=!0;return c};
_.R(y,W);y.prototype._initializeProperties=function(){W.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
y.prototype._registerHost=function(){if(vi.length){var c=vi[vi.length-1];c._enqueueClient(this);this.__dataHost=c}};
y.prototype._initializeProtoProperties=function(c){this.__data=Object.create(c);this.__dataPending=Object.create(c);this.__dataOld={}};
y.prototype._initializeInstanceProperties=function(c){var Z=this.__readOnly,G;for(G in c)Z&&Z[G]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[G]=this.__dataPending[G]=c[G])};
y.prototype._addPropertyEffect=function(c,Z,G){this._createPropertyAccessor(c,Z=="__readOnly");var D=hYy(this,Z,!0)[c];D||(D=this[Z][c]=[]);D.push(G)};
y.prototype._removePropertyEffect=function(c,Z,G){c=hYy(this,Z,!0)[c];G=c.indexOf(G);G>=0&&c.splice(G,1)};
y.prototype._hasPropertyEffect=function(c,Z){Z=this[Z];return!(!Z||!Z[c])};
y.prototype._hasReadOnlyEffect=function(c){return this._hasPropertyEffect(c,"__readOnly")};
y.prototype._hasNotifyEffect=function(c){return this._hasPropertyEffect(c,"__notifyEffects")};
y.prototype._hasReflectEffect=function(c){return this._hasPropertyEffect(c,"__reflectEffects")};
y.prototype._hasComputedEffect=function(c){return this._hasPropertyEffect(c,"__computeEffects")};
y.prototype._setPendingPropertyOrPath=function(c,Z,G,D){if(D||cR(Array.isArray(c)?c[0]:c)!==c){if(!D&&(D=Dm(this,c),c=ADI(this,c,Z),!c||!W.prototype._shouldPropertyChange.call(this,c,Z,D)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(c,Z,G)){if(G=this.__dataLinkedPaths)for(var Y in G)D=G[Y],Zm(Y,c)?(D=G7(Y,D,c),this._setPendingPropertyOrPath(D,Z,!0,!0)):Zm(D,c)&&(D=G7(D,Y,c),this._setPendingPropertyOrPath(D,Z,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[c])return this._setPendingProperty(c,
Z,G);this[c]=Z}return!1};
y.prototype._setUnmanagedPropertyToNode=function(c,Z,G){if(G!==c[Z]||typeof G=="object")Z==="className"&&(c=(0,_.my)(c)),c[Z]=G};
y.prototype._setPendingProperty=function(c,Z,G){var D=this.__dataHasPaths&&WR(c);if(this._shouldPropertyChange(c,Z,(D?this.__dataTemp:this.__data)[c])){this.__dataPending||(this.__dataPending={},this.__dataOld={});c in this.__dataOld||(this.__dataOld[c]=this.__data[c]);D?this.__dataTemp[c]=Z:this.__data[c]=Z;this.__dataPending[c]=Z;if(D||this.__notifyEffects&&this.__notifyEffects[c])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[c]=G;return!0}return!1};
y.prototype._setProperty=function(c,Z){this._setPendingProperty(c,Z,!0)&&this._invalidateProperties()};
y.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
y.prototype._enqueueClient=function(c){this.__dataPendingClients=this.__dataPendingClients||[];c!==this&&this.__dataPendingClients.push(c)};
y.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
y.prototype.__enableOrFlushClients=function(){var c=this.__dataPendingClients;if(c){this.__dataPendingClients=null;for(var Z=0;Z<c.length;Z++){var G=c[Z];G.__dataEnabled?G.__dataPending&&G._flushProperties():G._enableProperties()}}};
y.prototype._readyClients=function(){this.__enableOrFlushClients()};
y.prototype.setProperties=function(c,Z){for(var G in c)!Z&&this.__readOnly&&this.__readOnly[G]||this._setPendingPropertyOrPath(G,c[G],!0);this._invalidateProperties()};
y.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
y.prototype._propertiesChanged=function(c,Z,G){c=this.__dataHasPaths;this.__dataHasPaths=!1;var D;if(D=this.__computeEffects)if(svW){z7++;var Y=TeO(this),u=[],t;for(t in Z)h4T(t,D,u,Y,c);for(;t=u.shift();)xvI(this,"",Z,G,t)&&h4T(t.methodInfo,D,u,Y,c);Object.assign(G,this.__dataOld);Object.assign(Z,this.__dataPending);this.__dataPending=null}else for(Y=Z;YM(this,D,Y,G,c);)Object.assign(G,this.__dataOld),Object.assign(Z,this.__dataPending),Y=this.__dataPending,this.__dataPending=null;D=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Z,G,c);this._flushClients();YM(this,this.__reflectEffects,Z,G,c);YM(this,this.__observeEffects,Z,G,c);if(D){Y=this.__notifyEffects;u=z7++;for(var b in D)if(D[b]){if(t=Y){var r=Y;t=u;var F=b,K=Z,l=G,N=c,P=!1,V=N?cR(F):F;if(r=r[V]){V=0;for(var Q=r.length,S=void 0;V<Q&&(S=r[V]);V++)S.info&&S.info.lastRun===t||N&&!BeE(F,S.trigger)||(S.info&&(S.info.lastRun=t),S.fn(this,F,K,l,S.info,N,void 0),P=!0)}t=P}if(t)var cy=!0;else{if(t=c)t=b,F=Z,K=cR(t),K!==
t?(K=yv(K)+"-changed",LtD(this,K,F[t],t),t=!0):t=!1;t&&(cy=!0)}}var M;cy&&(M=this.__dataHost)&&M._invalidateProperties&&M._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
y.prototype._propagatePropertyChanges=function(c,Z,G){this.__propagateEffects&&YM(this,this.__propagateEffects,c,Z,G);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,c,Z,G)};
y.prototype._runEffectsForTemplate=function(c,Z,G,D){var Y=this,u=function(t,b){YM(Y,c.propertyEffects,t,G,b,c.nodeList);for(var r=c.firstChild;r;r=r.nextSibling)Y._runEffectsForTemplate(r,t,G,b)};
c.runEffects?c.runEffects(u,Z,D):u(Z,D)};
y.prototype.linkPaths=function(c,Z){c=fv(c);Z=fv(Z);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[c]=Z};
y.prototype.unlinkPaths=function(c){c=fv(c);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[c]};
y.prototype.notifySplices=function(c,Z){var G={path:""};c=Dm(this,c,G);ZyE(this,c,G.path,Z)};
y.prototype.get=function(c,Z){return Dm(Z||this,c)};
y.prototype.set=function(c,Z,G){G?ADI(G,c,Z):this.__readOnly&&this.__readOnly[c]||this._setPendingPropertyOrPath(c,Z,!0)&&this._invalidateProperties()};
y.prototype.push=function(c){var Z=_.Cf.apply(1,arguments),G={path:""},D=Dm(this,c,G),Y=D.length,u=D.push.apply(D,_.No(Z));Z.length&&nv(this,D,G.path,Y,Z.length,[]);return u};
y.prototype.pop=function(c){var Z={path:""};c=Dm(this,c,Z);var G=!!c.length,D=c.pop();G&&nv(this,c,Z.path,c.length,0,[D]);return D};
y.prototype.splice=function(c,Z,G){var D=_.Cf.apply(3,arguments),Y={path:""},u=Dm(this,c,Y);Z<0?Z=u.length-Math.floor(-Z):Z&&(Z=Math.floor(Z));var t=arguments.length===2?u.splice(Z):u.splice.apply(u,[Z,G].concat(_.No(D)));(D.length||t.length)&&nv(this,u,Y.path,Z,D.length,t);return t};
y.prototype.shift=function(c){var Z={path:""};c=Dm(this,c,Z);var G=!!c.length,D=c.shift();G&&nv(this,c,Z.path,0,0,[D]);return D};
y.prototype.unshift=function(c){var Z=_.Cf.apply(1,arguments),G={path:""},D=Dm(this,c,G),Y=D.unshift.apply(D,_.No(Z));Z.length&&nv(this,D,G.path,0,Z.length,[]);return Y};
y.prototype.notifyPath=function(c,Z){if(arguments.length==1){var G={path:""};Z=Dm(this,c,G);G=G.path}else G=Array.isArray(c)?fv(c):c;this._setPendingPropertyOrPath(G,Z,!0,!0)&&this._invalidateProperties()};
y.prototype._createReadOnlyProperty=function(c,Z){this._addPropertyEffect(c,"__readOnly");Z&&(this["_set"+(c[0].toUpperCase()+c.substring(1))]=function(G){this._setProperty(c,G)})};
y.prototype._createPropertyObserver=function(c,Z,G){var D={property:c,method:Z,dynamicFn:!!G};this._addPropertyEffect(c,"__observeEffects",{fn:Hsh,info:D,trigger:{name:c}});G&&this._addPropertyEffect(Z,"__observeEffects",{fn:Hsh,info:D,trigger:{name:Z}})};
y.prototype._createMethodObserver=function(c,Z){var G=WHE(c);if(!G)throw Error("zd`"+c);qdI(this,G,"__observeEffects",avy,null,Z)};
y.prototype._createNotifyingProperty=function(c){this._addPropertyEffect(c,"__notifyEffects",{fn:vDH,info:{eventName:yv(c)+"-changed",property:c}})};
y.prototype._createReflectedProperty=function(c){var Z=this.constructor.attributeNameForProperty(c);Z[0]==="-"?console.warn("Property "+c+" cannot be reflected to attribute "+Z+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(c,"__reflectEffects",{fn:dv1,info:{attrName:Z}})};
y.prototype._createComputedProperty=function(c,Z,G){var D=WHE(Z);if(!D)throw Error("Ad`"+Z);Z=qdI(this,D,"__computeEffects",xvI,c,G);hYy(this,"__computeInfo")[c]=Z};
y.prototype._marshalArgs=function(c,Z,G){for(var D=this.__data,Y=[],u=0,t=c.length;u<t;u++){var b=c[u],r=b.name,F=b.structured,K=b.wildcard,l=b.value;b.literal||(K?(b=Zm(r,Z),F=cdf(D,G,b?Z:r),l={path:b?Z:r,value:F,base:b?Dm(D,r):F}):l=F?cdf(D,G,r):D[r]);if(ts&&!this._overrideLegacyUndefined&&l===void 0&&c.length>1)return un;Y[u]=l}return Y};
y.addPropertyEffect=function(c,Z,G){this.prototype._addPropertyEffect(c,Z,G)};
y.createPropertyObserver=function(c,Z,G){this.prototype._createPropertyObserver(c,Z,G)};
y.createMethodObserver=function(c,Z){this.prototype._createMethodObserver(c,Z)};
y.createNotifyingProperty=function(c){this.prototype._createNotifyingProperty(c)};
y.createReadOnlyProperty=function(c,Z){this.prototype._createReadOnlyProperty(c,Z)};
y.createReflectedProperty=function(c){this.prototype._createReflectedProperty(c)};
y.createComputedProperty=function(c,Z,G){this.prototype._createComputedProperty(c,Z,G)};
y.bindTemplate=function(c){return this.prototype._bindTemplate(c)};
y.prototype._bindTemplate=function(c,Z){var G=this.constructor._parseTemplate(c),D=this.__preBoundTemplateInfo==G;if(!D)for(var Y in G.propertyEffects)this._createPropertyAccessor(Y);Z?(G=Object.create(G),G.wasPreBound=D,this.__templateInfo?(c=c._parentTemplateInfo||this.__templateInfo,Z=c.lastChild,G.parent=c,c.lastChild=G,(G.previousSibling=Z)?Z.nextSibling=G:c.firstChild=G):this.__templateInfo=G):this.__preBoundTemplateInfo=G;return G};
y._addTemplatePropertyEffect=function(c,Z,G){(c.hostProps=c.hostProps||{})[Z]=!0;c=c.propertyEffects=c.propertyEffects||{};(c[Z]=c[Z]||[]).push(G)};
y.prototype._stampTemplate=function(c,Z){Z=Z||this._bindTemplate(c,!0);vi.push(this);c=W.prototype._stampTemplate.call(this,c,Z);vi.pop();Z.nodeList=c.nodeList;if(!Z.wasPreBound)for(var G=Z.childNodes=[],D=c.firstChild;D;D=D.nextSibling)G.push(D);c.templateInfo=Z;G=Z.nodeList;D=Z.nodeInfoList;if(D.length)for(var Y=0;Y<D.length;Y++){var u=G[Y],t=D[Y].bindings;if(t)for(var b=0;b<t.length;b++){var r=t[b],F=u,K=r;if(K.isCompound){for(var l=F.__dataCompoundStorage||(F.__dataCompoundStorage={}),N=K.parts,
P=Array(N.length),V=0;V<N.length;V++)P[V]=N[V].literal;N=K.target;l[N]=P;K.literal&&K.kind=="property"&&(N==="className"&&(F=(0,_.my)(F)),F[N]=K.literal)}wEt(u,this,r)}u.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Z,this.__data,null,!1),this._flushClients());return c};
y.prototype._removeBoundDom=function(c){c=c.templateInfo;var Z=c.previousSibling,G=c.nextSibling,D=c.parent;Z?Z.nextSibling=G:D&&(D.firstChild=G);G?G.previousSibling=Z:D&&(D.lastChild=Z);c.nextSibling=c.previousSibling=null;c=c.childNodes;for(Z=0;Z<c.length;Z++)G=c[Z],(0,_.my)((0,_.my)(G).parentNode).removeChild(G)};
y._parseTemplateNode=function(c,Z,G){var D=W._parseTemplateNode.call(this,c,Z,G);if(c.nodeType===Node.TEXT_NODE){var Y=this._parseBindings(c.textContent,Z);Y&&(c.textContent=kqt(Y)||" ",eY1(this,Z,G,"text","textContent",Y),D=!0)}return D};
y._parseTemplateNodeAttribute=function(c,Z,G,D,Y){var u=this._parseBindings(Y,Z);if(u){Y=D;var t="property";AK2.test(D)?t="attribute":D[D.length-1]=="$"&&(D=D.slice(0,-1),t="attribute");var b=kqt(u);b&&t=="attribute"&&(D=="class"&&c.hasAttribute("class")&&(b+=" "+c.getAttribute(D)),c.setAttribute(D,b));t=="attribute"&&Y=="disable-upgrade$"&&c.setAttribute(D,"");c.localName==="input"&&Y==="value"&&c.setAttribute(Y,"");c.removeAttribute(Y);t==="property"&&(D=jN(D));eY1(this,Z,G,t,D,u,b);return!0}return W._parseTemplateNodeAttribute.call(this,
c,Z,G,D,Y)};
y._parseTemplateNestedTemplate=function(c,Z,G){var D=W._parseTemplateNestedTemplate.call(this,c,Z,G),Y=c.parentNode,u=G.templateInfo,t=Y.localName==="dom-if",b=Y.localName==="dom-repeat";Q1&&(t||b)&&(Y.removeChild(c),G=G.parentInfo,G.templateInfo=u,G.noted=!0,D=!1);c=u.hostProps;if(AJ&&t)c&&(Z.hostProps=Object.assign(Z.hostProps||{},c),Q1||(G.parentInfo.noted=!0));else for(var r in c)eY1(this,Z,G,"property","_host_"+r,[{mode:"{",source:r,dependencies:[r],hostProp:!0}]);return D};
y._parseBindings=function(c,Z){for(var G=[],D=0,Y;(Y=BuT.exec(c))!==null;){Y.index>D&&G.push({literal:c.slice(D,Y.index)});D=Y[1][0];var u=!!Y[2];Y=Y[3].trim();var t=!1,b="",r=-1;D=="{"&&(r=Y.indexOf("::"))>0&&(b=Y.substring(r+2),Y=Y.substring(0,r),t=!0);r=WHE(Y);var F=[];if(r){var K=r,l=K.args;K=K.methodName;for(var N=0;N<l.length;N++){var P=l[N];P.literal||F.push(P)}if((l=Z.dynamicFns)&&l[K]||r.static)F.push(K),r.dynamicFn=!0}else F.push(Y);G.push({source:Y,mode:D,negate:u,customEvent:t,signature:r,
dependencies:F,event:b});D=BuT.lastIndex}D&&D<c.length&&(c=c.substring(D))&&G.push({literal:c});return G.length?G:null};
y._evaluateBinding=function(c,Z,G,D,Y,u){c=Z.signature?avy(c,G,D,Y,Z.signature):G!=Z.source?Dm(c,Z.source):u&&WR(G)?Dm(c,G):c.__data[G];Z.negate&&(c=!c);return c};
_.dJ.Object.defineProperties(y.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return Qv5}}});
return y}),vi=[];var Hqm=window.ShadyCSS&&window.ShadyCSS.cssBuild,SX=LU(function(y){function W(Z,G,D,Y){if(!Hqm){for(var u=G.content.querySelectorAll("style"),t=Dag(G),b=zV1(D),r=G.content.firstElementChild,F=0;F<b.length;F++){var K=b[F];K.textContent=Z._processStyleText(K.textContent,Y);G.content.insertBefore(K,r)}for(r=b=0;r<t.length;r++)F=t[r],K=u[b],K!==F?(F=F.cloneNode(!0),K.parentNode.insertBefore(F,K)):b++,F.textContent=Z._processStyleText(F.textContent,Y)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(G,
D);if(tv5&&Hqm&&DWi&&(G=G.content.querySelectorAll("style"))){var l="";Array.from(G).forEach(function(N){l+=N.textContent;N.parentNode.removeChild(N)});
Z._styleSheet=new CSSStyleSheet;Z._styleSheet.replaceSync(l)}}
var c=OqE(d_(y));y=function(){return c.call(this)||this};
_.R(y,c);y._finalizeClass=function(){c._finalizeClass.call(this);var Z;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(Z=this.__ownObservers)&&this.createObservers(Z,this._properties);this._prepareTemplate()};
y._prepareTemplate=function(){var Z=this.template;Z&&(typeof Z==="string"?(console.error("template getter must return HTMLTemplateElement"),Z=null):N4||(Z=Z.cloneNode(!0)));this.prototype._template=Z};
y.createProperties=function(Z){for(var G in Z){var D=this.prototype,Y=G,u=Z[G],t=Z;u.computed&&(u.readOnly=!0);u.computed&&(D._hasReadOnlyEffect(Y)?console.warn("Cannot redefine computed property '"+Y+"'."):D._createComputedProperty(Y,u.computed,t));u.readOnly&&!D._hasReadOnlyEffect(Y)?D._createReadOnlyProperty(Y,!u.computed):u.readOnly===!1&&D._hasReadOnlyEffect(Y)&&console.warn("Cannot make readOnly property '"+Y+"' non-readOnly.");u.reflectToAttribute&&!D._hasReflectEffect(Y)?D._createReflectedProperty(Y):
u.reflectToAttribute===!1&&D._hasReflectEffect(Y)&&console.warn("Cannot make reflected property '"+Y+"' non-reflected.");u.notify&&!D._hasNotifyEffect(Y)?D._createNotifyingProperty(Y):u.notify===!1&&D._hasNotifyEffect(Y)&&console.warn("Cannot make notify property '"+Y+"' non-notify.");u.observer&&D._createPropertyObserver(Y,u.observer,t[u.observer]);D._addPropertyToAttributeMap(Y)}};
y.createObservers=function(Z,G){for(var D=this.prototype,Y=0;Y<Z.length;Y++)D._createMethodObserver(Z[Y],G)};
y.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);c.prototype._initializeProperties.call(this);this.rootPath=z4Z;this.importPath=this.constructor.importPath;var Z=this.constructor;if(!Z.hasOwnProperty("__propertyDefaults")){Z.__propertyDefaults=null;var G=Z._properties,D;for(D in G){var Y=G[D];"value"in Y&&(Z.__propertyDefaults=Z.__propertyDefaults||{},Z.__propertyDefaults[D]=Y)}}if(Z=Z.__propertyDefaults)for(var u in Z)G=Z[u],
this._canApplyPropertyDefault(u)&&(G=typeof G.value=="function"?G.value.call(this):G.value,this._hasAccessor(u)?this._setPendingProperty(u,G,!0):this[u]=G)};
y.prototype._canApplyPropertyDefault=function(Z){return!this.hasOwnProperty(Z)};
y._processStyleText=function(Z,G){return $vH(Z,G)};
y._finalizeTemplate=function(Z){var G=this.prototype._template;if(G&&!G.__polymerFinalized){G.__polymerFinalized=!0;var D=this.importPath;D=D?_.qF(D):"";W(this,G,Z,D);this.prototype._bindTemplate(G)}};
y.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);c.prototype.connectedCallback.call(this)};
y.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);c.prototype.ready.call(this)};
y.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));c.prototype._readyClients.call(this)};
y.prototype._attachDom=function(Z){var G=(0,_.my)(this);if(G.attachShadow)return Z?(G.shadowRoot||(G.attachShadow({mode:"open",shadyUpgradeFragment:Z}),G.shadowRoot.appendChild(Z),this.constructor._styleSheet&&(G.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),mWT&&window.ShadyDOM&&window.ShadyDOM.flushInitial(G.shadowRoot),G.shadowRoot):null;throw Error("Cd");};
y.prototype.updateStyles=function(Z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Z)};
y.prototype.resolveUrl=function(Z,G){!G&&this.importPath&&(G=_.qF(this.importPath));return _.qF(Z,G)};
y._parseTemplateContent=function(Z,G,D){G.dynamicFns=G.dynamicFns||this._properties;return c._parseTemplateContent.call(this,Z,G,D)};
y._addTemplatePropertyEffect=function(Z,G,D){!Js||G in this._properties||D.info.part.signature&&D.info.part.signature.static||D.info.part.hostProp||Z.nestedTemplate||console.warn("Property '"+G+"' used in template but not declared in 'properties'; attribute will not be observed.");return c._addTemplatePropertyEffect.call(this,Z,G,D)};
_.dJ.Object.defineProperties(y,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var Z=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof Z==="function"&&(Z=Z());if(Z===void 0){if(Z=this.hasOwnProperty("is")){Z=this.is;var G=null;if(Z&&(!Vv||YqT)&&(G=Xo.import(Z,"template"),Vv&&!G))throw Error("Bd`"+Z);Z=G}Z=Z||Object.getPrototypeOf(this.prototype).constructor.template}this._template=Z}return this._template},
set:function(Z){this._template=Z}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var Z=this.importMeta;Z?this._importPath=Ktf(Z.url):this._importPath=(Z=Xo.import(this.is))&&Z.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return y});var LZi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(y){return y}}),XUE=function(y,W){vRZ(y,W);
this.value=W.reduce(function(c,Z,G){return c+byy(Z)+y[G+1]},y[0]).toString()},vRZ;
XUE.prototype.toString=function(){return this.value};
_.dWE=function(y){var W=_.Cf.apply(1,arguments);vRZ(y,W);var c=document.createElement("template");W=W.reduce(function(Z,G,D){if(G instanceof HTMLTemplateElement)G=G.innerHTML;else if(G instanceof XUE)G=byy(G);else throw Error("Ed`"+G);return Z+G+y[D+1]},y[0]);
LZi&&(W=LZi.createHTML(W));c.innerHTML=W;return c};
vRZ=function(y,W){if(!Array.isArray(y)||!Array.isArray(y.raw)||W.length!==y.length-1)throw new TypeError("Fd");};var TA=SX(HTMLElement);var SqE=LU(function(y){var W=SX(y);y=function(){var c=W.call(this)||this;c.__lastItems=null;c.__lastMulti=null;c.__selectedMap=null;return c};
_.R(y,W);y.prototype.__updateSelection=function(c,Z){var G=Z.path;G=="items"?(Z=Z.base||[],G=this.__lastItems,c!==this.__lastMulti&&this.clearSelection(),G&&(G=n3F(Z,G),this.__applySplices(G)),this.__lastItems=Z,this.__lastMulti=c):Z.path=="items.splices"?this.__applySplices(Z.value.indexSplices):(c=G.slice(6),Z=parseInt(c,10),c.indexOf(".")<0&&c==Z&&this.__deselectChangedIdx(Z))};
y.prototype.__applySplices=function(c){for(var Z=this,G=this.__selectedMap,D={},Y=0;Y<c.length;D={s$jscomp$108:void 0},Y++){D.s$jscomp$108=c[Y];G.forEach(function(r){return function(F,K){F<r.s$jscomp$108.index||(F>=r.s$jscomp$108.index+r.s$jscomp$108.removed.length?G.set(K,F+r.s$jscomp$108.addedCount-r.s$jscomp$108.removed.length):G.set(K,-1))}}(D));
for(var u=0;u<D.s$jscomp$108.addedCount;u++){var t=D.s$jscomp$108.index+u;G.has(this.items[t])&&G.set(this.items[t],t)}}this.__updateLinks();var b=0;G.forEach(function(r,F){r<0?(Z.multi?Z.splice("selected",b,1):Z.selected=Z.selectedItem=null,G.delete(F)):b++})};
y.prototype.__updateLinks=function(){var c=this;this.__dataLinkedPaths={};if(this.multi){var Z=0;this.__selectedMap.forEach(function(G){G>=0&&c.linkPaths("items."+G,"selected."+Z++)})}else this.__selectedMap.forEach(function(G){c.linkPaths("selected","items."+G);
c.linkPaths("selectedItem","items."+G)})};
y.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
y.prototype.isSelected=function(c){return this.__selectedMap.has(c)};
y.prototype.isIndexSelected=function(c){return this.isSelected(this.items[c])};
y.prototype.__deselectChangedIdx=function(c){var Z=this,G=this.__selectedIndexForItemIndex(c);if(G>=0){var D=0;this.__selectedMap.forEach(function(Y,u){G==D++&&Z.deselect(u)})}};
y.prototype.__selectedIndexForItemIndex=function(c){if(c=this.__dataLinkedPaths["items."+c])return parseInt(c.slice(9),10)};
y.prototype.deselect=function(c){var Z=this.__selectedMap.get(c);if(Z>=0){this.__selectedMap.delete(c);var G;this.multi&&(G=this.__selectedIndexForItemIndex(Z));this.__updateLinks();this.multi?this.splice("selected",G,1):this.selected=this.selectedItem=null}};
y.prototype.deselectIndex=function(c){this.deselect(this.items[c])};
y.prototype.select=function(c){this.selectIndex(this.items.indexOf(c))};
y.prototype.selectIndex=function(c){var Z=this.items[c];this.isSelected(Z)?this.toggle&&this.deselectIndex(c):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Z,c),this.__updateLinks(),this.multi?this.push("selected",Z):this.selected=this.selectedItem=Z)};
_.dJ.Object.defineProperties(y,{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 y}),Tu0=SqE(TA),aO=function(){return Tu0.apply(this,arguments)||this};
_.R(aO,Tu0);_.dJ.Object.defineProperties(aO,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(aO.is,aO);var aKV=window.Polymer;window.Polymer=function(y){return window.Polymer._polymerFn(y)};
aKV&&Object.assign(Polymer,aKV);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:$vH,resolveUrl:_.qF,pathFromUrl:Ktf};Polymer.DomModule=Xo;Polymer.Async={timeOut:_.Hi,animationFrame:_.mI,idlePeriod:FZ0,microTask:ln};Polymer.dedupingMixin=LU;Polymer.wrap=_.my;Polymer.PropertiesChanged=$W0;Polymer.telemetry={instanceCount:KZZ,incrementInstanceCount:function(){KZZ++},
registrations:lvD,register:EDw,dumpRegistrations:function(){lvD.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=OqE;Polymer.CaseMap={dashToCamelCase:jN,camelToDashCase:yv};Polymer.PropertyAccessors=IKW;Polymer.TemplateStamp=Co5;Polymer.Path={isPath:WR,root:cR,isAncestor:VsI,isDescendant:Zm,translate:G7,matches:CL1,normalize:fv,split:Q0E,get:Dm,set:ADI,isDeep:WR};Polymer.Settings={useShadow:IN,useNativeCSSProperties:cKE,useNativeCustomElements:ZqQ,get rootPath(){return z4Z},setRootPath:function(y){z4Z=y},
get sanitizeDOMValue(){return sQ},setSanitizeDOMValue:function(y){sQ=y},
get passiveTouchGestures(){return pUw},setPassiveTouchGestures:function(y){pUw=y},
get strictTemplatePolicy(){return Vv},setStrictTemplatePolicy:function(y){Vv=y},
get allowTemplateFromDomModule(){return YqT},setAllowTemplateFromDomModule:function(y){YqT=y},
get legacyOptimizations(){return N4},setLegacyOptimizations:function(y){N4=y},
get syncInitialRender(){return mWT},setSyncInitialRender:function(y){mWT=y},
get legacyUndefined(){return ts},setLegacyUndefined:function(y){ts=y},
get legacyWarnings(){return Js},setLegacyWarnings:function(y){Js=y},
get orderedComputed(){return svW},setOrderedComputed:function(y){svW=y},
get fastDomIf(){return AJ},setFastDomIf:function(y){AJ=y},
get removeNestedTemplates(){return Q1},setRemoveNestedTemplates:function(y){Q1=y},
get suppressTemplateNotifications(){return hJ},setSuppressTemplateNotifications:hJ};Polymer.rootPath!==void 0&&(z4Z=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(sQ=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(pUw=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Vv=Polymer.strictTemplatePolicy);YqT=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(N4=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(mWT=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(ts=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Js=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(svW=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(AJ=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Q1=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(hJ=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return sQ},
set:function(y){sQ=y}});Polymer.PropertyEffects=d_;Polymer.StyleGather={stylesFromModules:o3O,stylesFromModule:fsD,stylesFromTemplate:Dag,stylesFromModuleImports:zV1,cssFromModules:maI,cssFromModule:Y9E,cssFromTemplate:sTO,cssFromModuleImports:function(y){return(y=Xo.import(y))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(y):""}};Polymer.ElementMixin=SX;Polymer.updateStyles=function(y){window.ShadyCSS&&window.ShadyCSS.styleDocument(y)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:n3F};Polymer.html=_.dWE;Polymer.htmlLiteral=function(y){return new XUE(y,_.Cf.apply(1,arguments))};Polymer.Element=TA;Polymer.ArraySelectorMixin=SqE;Polymer.ArraySelector=aO;var xW3=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,iq8=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,wNF=/@media\s(.*)/;var $ag=null,Uah=window.HTMLImports&&window.HTMLImports.whenReady||null,KHE;var MvQ=null,xj=null,MD=function(){this.customStyles=[];this.enqueued=!1;Oyy(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},e4Z=function(y){!y.enqueued&&xj&&(y.enqueued=!0,Oyy(xj))};
MD.prototype.addCustomStyle=function(y){y.__seenByShadyCSS||(y.__seenByShadyCSS=!0,this.customStyles.push(y),e4Z(this))};
MD.prototype.getStyleForCustomStyle=function(y){if(y.__shadyCSSCachedStyle)return y.__shadyCSSCachedStyle;var W;y.getStyle?W=y.getStyle():W=y;return W};
MD.prototype.processStyles=function(){for(var y=this.customStyles,W=0;W<y.length;W++){var c=y[W];if(!c.__shadyCSSCachedStyle){var Z=this.getStyleForCustomStyle(c);Z&&(Z=Z.__appliedElement||Z,MvQ&&MvQ(Z),c.__shadyCSSCachedStyle=Z)}}return y};
MD.prototype.addCustomStyle=MD.prototype.addCustomStyle;MD.prototype.getStyleForCustomStyle=MD.prototype.getStyleForCustomStyle;MD.prototype.processStyles=MD.prototype.processStyles;Object.defineProperties(MD.prototype,{transformCallback:{get:function(){return MvQ},
set:function(y){MvQ=y}},
validateCallback:{get:function(){return xj},
set:function(y){var W=!1;xj||(W=!0);xj=y;W&&e4Z(this)}}});var RVE=!(window.ShadyDOM&&window.ShadyDOM.inUse),g3I,vR;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(vR=window.ShadyCSS.cssBuild);var w$i=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?g3I=window.ShadyCSS.nativeCss:window.ShadyCSS?(lsa(window.ShadyCSS),window.ShadyCSS=void 0):lsa(window.WebComponents&&window.WebComponents.flags);var iif=g3I;var qqJ=new MD;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(y,W){qqJ.processStyles();rdg(y,W)},
styleElement:function(){qqJ.processStyles()},
styleDocument:function(y){qqJ.processStyles();rdg(document.body,y)},
getComputedStyleValue:function(y,W){return FHD(y,W)},
flushCustomStyles:function(){},
nativeCss:iif,nativeShadow:RVE,cssBuild:vR,disableRuntime:w$i});window.ShadyCSS.CustomStyleInterface=qqJ;var kxm=window.ShadyCSS.CustomStyleInterface,eX=function(){var y=HTMLElement.call(this)||this;y._style=null;kxm.addCustomStyle(y);return y};
_.R(eX,HTMLElement);eX.prototype.getStyle=function(){if(this._style)return this._style;var y=this.querySelector("style");if(!y)return null;this._style=y;var W=y.getAttribute("include");W&&(y.removeAttribute("include"),y.textContent=maI(W)+y.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
eX.prototype.getStyle=eX.prototype.getStyle;window.customElements.define("custom-style",eX);Polymer.CustomStyle=eX;var w_=function(){this._timer=this._callback=this._asyncModule=null},qD,yq0;
w_.prototype.setConfig=function(y,W){var c=this;this._asyncModule=y;this._callback=W;this._timer=this._asyncModule.run(function(){c._timer=null;qD.delete(c);c._callback()})};
w_.prototype.cancel=function(){this.isActive()&&(jWQ(this),qD.delete(this))};
var jWQ=function(y){y.isActive()&&(y._asyncModule.cancel(y._timer),y._timer=null)};
w_.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
w_.prototype.isActive=function(){return this._timer!=null};
_.kj=function(y,W,c){y instanceof w_?jWQ(y):y=new w_;y.setConfig(W,c);return y};
qD=new Set;_.j0=function(y){qD.add(y)};
yq0=function(){var y=!!qD.size;qD.forEach(function(W){try{W.flush()}catch(c){setTimeout(function(){throw c;})}});
return y};var Nlh=typeof document.head.style.touchAction==="string",E3a=["mousedown","mousemove","mouseup","click"],hVI=[0,1,4,2],Wv2;try{Wv2=(new MouseEvent("test",{buttons:1})).buttons===1}catch(y){Wv2=!1}var AdI=Wv2,Isg=!1;(function(){try{var y=Object.defineProperty({},"passive",{get:function(){Isg=!0}});
window.addEventListener("test",null,y);window.removeEventListener("test",null,y)}catch(W){}})();
var JdO=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),VoE=[],cqE={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},eVI={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},CTD=function(y){var W=y.sourceCapabilities;if(!W||W.firesTouchEvents)if(y.__polymerGesturesHandled={skip:!0},y.type==="click"){W=!1;for(var c=v3H(y),Z=0;Z<c.length;Z++){if(c[Z].nodeType===Node.ELEMENT_NODE)if(c[Z].localName==="label")VoE.push(c[Z]);
else if(cqE[c[Z].localName]){var G=c[Z];var D=Array.prototype.slice.call(G.labels||[]);if(!D.length){D=[];try{var Y=G.getRootNode();if(G.id){var u=Y.querySelectorAll("label[for = '"+G.id+"']");for(G=0;G<u.length;G++)D.push(u[G])}}catch(t){}}for(G=0;G<D.length;G++)W=W||VoE.indexOf(D[G])>-1}if(c[Z]===ZZ2)return}W||(y.preventDefault(),y.stopPropagation())}},ZZ2=null,y$=null,S9O=0,TlH=0,daa=-1,asy=!1;
document.addEventListener("touchend",function(y){y$||QTh(!0);ZZ2=v3H(y)[0];y$=_.kj(y$,_.Hi.after(2500),function(){QTh();y$=ZZ2=null})},Isg?{passive:!0}:!1);
var v3H=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(y){return y.composedPath&&y.composedPath()||[]},Kv={},UQ=[];
xaH({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Fo(this.info)},
mousedown:function(y){if(rJ(y)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),c=this;HyI(this.info,function(Z){rJ(Z)||(EQ("up",W,Z),Fo(c.info))},function(Z){rJ(Z)&&EQ("up",W,Z);
Fo(c.info)});
EQ("down",W,y)}},
touchstart:function(y){EQ("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),y.changedTouches[0],y)},
touchend:function(y){EQ("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),y.changedTouches[0],y)}});
xaH({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(y){this.moves.length>2&&this.moves.shift();this.moves.push(y)},
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;Fo(this.info)},
mousedown:function(y){if(rJ(y)){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y),c=this,Z=function(G){var D=G.clientX,Y=G.clientY;iy1(c.info,D,Y)&&(c.info.state=c.info.started?G.type==="mouseup"?"end":"track":"start",c.info.state==="start"&&$M("tap"),c.info.addMove({x:D,y:Y}),rJ(G)||(c.info.state="end",Fo(c.info)),W&&Mot(c.info,W,G),c.info.started=!0)};
HyI(this.info,Z,function(G){c.info.started&&Z(G);Fo(c.info)});
this.info.x=y.clientX;this.info.y=y.clientY}},
touchstart:function(y){y=y.changedTouches[0];this.info.x=y.clientX;this.info.y=y.clientY},
touchmove:function(y){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);y=y.changedTouches[0];var c=y.clientX,Z=y.clientY;iy1(this.info,c,Z)&&(this.info.state==="start"&&$M("tap"),this.info.addMove({x:c,y:Z}),Mot(this.info,W,y),this.info.state="track",this.info.started=!0)},
touchend:function(y){var W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y);y=y.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:y.clientX,y:y.clientY}),Mot(this.info,W,y))}});
xaH({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(y){rJ(y)&&(this.info.x=y.clientX,this.info.y=y.clientY)},
click:function(y){rJ(y)&&wUt(this.info,y)},
touchstart:function(y){y=y.changedTouches[0];this.info.x=y.clientX;this.info.y=y.clientY},
touchend:function(y){wUt(this.info,y.changedTouches[0],y)}});var G20=LU(function(y){var W=function(){return y.apply(this,arguments)||this};
_.R(W,y);W.prototype._addEventListenerToNode=function(c,Z,G){OQ(c,Z,G)||y.prototype._addEventListenerToNode.call(this,c,Z,G)};
W.prototype._removeEventListenerFromNode=function(c,Z,G){gJ(c,Z,G)||y.prototype._removeEventListenerFromNode.call(this,c,Z,G)};
return W});var Ws=LU(function(y){var W=function(){return y.apply(this,arguments)||this};
_.R(W,y);W.prototype._shouldPropertyChange=function(c,Z,G){return q9H(this,c,Z,G,!0)};
return W}),flT=LU(function(y){var W=function(){return y.apply(this,arguments)||this};
_.R(W,y);W.prototype._shouldPropertyChange=function(c,Z,G){return q9H(this,c,Z,G,this.mutableData)};
_.dJ.Object.defineProperties(W,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return W});
Ws._mutablePropertyChange=q9H;var kyI=!1;var o$V=G20(flT(d_(HTMLElement))),cs=function(){var y=o$V.call(this)||this;if(Vv)throw Error("Hd");y.root=null;y.$=null;y.__children=null;return y};
_.R(cs,o$V);_.f=cs.prototype;_.f.attributeChangedCallback=function(){this.mutableData=!0};
_.f.connectedCallback=function(){jEa()||(this.style.display="none");this.render()};
_.f.disconnectedCallback=function(){this.__removeChildren()};
_.f.__insertChildren=function(){(0,_.my)((0,_.my)(this).parentNode).insertBefore(this.root,this)};
_.f.__removeChildren=function(){if(this.__children)for(var y=0;y<this.__children.length;y++)this.root.appendChild(this.__children[y])};
_.f.render=function(){var y=this;if(!this.__children){var W=W||this.querySelector("template");if(!W){var c=new MutationObserver(function(){if(W=y.querySelector("template"))c.disconnect(),y.render();else throw Error("Id");});
c.observe(this,{childList:!0});return}this.root=this._stampTemplate(W);this.$=this.root.$;this.__children=[];for(var Z=this.root.firstChild;Z;Z=Z.nextSibling)this.__children[this.__children.length]=Z;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.dJ.Object.defineProperties(cs,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",cs);Polymer.Debouncer=w_;Polymer.Gestures={gestures:Kv,recognizers:UQ,deepTargetFind:LHg,addListener:OQ,removeListener:gJ,register:xaH,setTouchAction:_.RN,prevent:$M,resetMouseCanceller:function(){y$&&y$.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:OQ,remove:gJ};Polymer.GestureEventListeners=G20;Polymer.MutableData=Ws;Polymer.OptionalMutableData=flT;Polymer.DomBind=cs;_.ZN=function(){do{var y=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var W=yq0()}while(y||W)};var yfa=null;W8g.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:W8g,writable:!0}});var Y2E=d_(W8g),zJO=Ws(Y2E),DO3=d_(function(){}),pv=function(y){var W=DO3.call(this)||this;
W._configureProperties(y);W.root=W._stampTemplate(W.__dataHost);var c=[];W.children=c;for(var Z=W.root.firstChild;Z;Z=Z.nextSibling)c.push(Z),Z.__templatizeInstance=W;W.__templatizeOwner&&W.__templatizeOwner.__hideTemplateChildren__&&W._showHideChildren(!0);c=W.__templatizeOptions;(y&&c.instanceProps||!c.instanceProps)&&W._enableProperties();return W};
_.R(pv,DO3);_.f=pv.prototype;_.f._configureProperties=function(y){if(this.__templatizeOptions.forwardHostProp)for(var W in this.__hostProps)this._setPendingProperty(W,this.__dataHost["_host_"+W]);for(var c in y)this._setPendingProperty(c,y[c])};
_.f.forwardHostProp=function(y,W){this._setPendingPropertyOrPath(y,W,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.f._addEventListenerToNode=function(y,W,c){var Z=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(y,W,function(D){D.model=Z;c(D)});
else{var G=this.__dataHost.__dataHost;G&&G._addEventListenerToNode(y,W,c)}};
_.f._showHideChildren=function(y){Zif(y,this.children)};
_.f._setUnmanagedPropertyToNode=function(y,W,c){y.__hideTemplateChildren__&&y.nodeType==Node.TEXT_NODE&&W=="textContent"?y.__polymerTextContent__=c:DO3.prototype._setUnmanagedPropertyToNode.call(this,y,W,c)};
_.f.dispatchEvent=function(){return!0};
_.dJ.Object.defineProperties(pv.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var y=this.__parentModel;if(!y){var W;y=this;do y=y.__dataHost.__dataHost;while((W=y.__templatizeOptions)&&!W.parentModel);this.__parentModel=y}return y}}});
var fqD=Ws(pv);var GC=function(){var y=TA.call(this)||this;y.__renderDebouncer=null;y._lastIf=!1;y.__hideTemplateChildren__=!1;return y};
_.R(GC,TA);_.f=GC.prototype;_.f.__debounceRender=function(){var y=this;this.__renderDebouncer=_.kj(this.__renderDebouncer,ln,function(){return y.__render()});
_.j0(this.__renderDebouncer)};
_.f.disconnectedCallback=function(){TA.prototype.disconnectedCallback.call(this);var y=(0,_.my)(this).parentNode;y&&(y.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.my)(y).host)||this.__teardownInstance()};
_.f.connectedCallback=function(){TA.prototype.connectedCallback.call(this);jEa()||(this.style.display="none");this.if&&this.__debounceRender()};
_.f.__ensureTemplate=function(){var y=this;if(!this.__template){var W=this._templateInfo?this:(0,_.my)(this).querySelector("template");if(!W){var c=new MutationObserver(function(){if((0,_.my)(y).querySelector("template"))c.disconnect(),y.__render();else throw Error("Ld");});
c.observe(this,{childList:!0});return!1}this.__template=W}return!0};
_.f.__ensureInstance=function(){var y=(0,_.my)(this).parentNode;if(this.__hasInstance()){var W=this.__getInstanceNodes();if(W&&W.length&&(0,_.my)(this).previousSibling!==W[W.length-1])for(var c=0,Z=void 0;c<W.length&&(Z=W[c]);c++)(0,_.my)(y).insertBefore(Z,this)}else{if(!y||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(y)}return!0};
_.f.render=function(){_.ZN()};
_.f.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();hJ&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.f.__hasInstance=function(){};
_.f.__getInstanceNodes=function(){};
_.f.__createAndInsertInstance=function(){};
_.f.__teardownInstance=function(){};
_.f._showHideChildren=function(){};
_.dJ.Object.defineProperties(GC,{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:GC.prototype.__debounceRender},restamp:{type:Boolean,observer:GC.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var zz5=function(){var y=GC.call(this)||this;y.__instance=null;y.__syncInfo=null;return y};
_.R(zz5,GC);_.f=zz5.prototype;_.f.__hasInstance=function(){return!!this.__instance};
_.f.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.f.__createAndInsertInstance=function(y){var W=this,c=this.__dataHost||this;if(Vv&&!this.__dataHost)throw Error("Jd");var Z=c._bindTemplate(this.__template,!0);Z.runEffects=function(G,D,Y){var u=W.__syncInfo;if(W.if)u&&(W.__syncInfo=null,W._showHideChildren(),D=Object.assign(u.changedProps,D)),G(D,Y);else if(W.__instance)if(u||(u=W.__syncInfo={runEffects:G,changedProps:{}}),Y)for(var t in D)G=cR(t),u.changedProps[G]=W.__dataHost[G];else Object.assign(u.changedProps,D)};
this.__instance=c._stampTemplate(this.__template,Z);(0,_.my)(y).insertBefore(this.__instance,this)};
_.f.__syncHostProperties=function(){var y=this.__syncInfo;y&&(this.__syncInfo=null,y.runEffects(y.changedProps,!1))};
_.f.__teardownInstance=function(){var y=this.__dataHost||this;this.__instance&&(y._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.f._showHideChildren=function(){var y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==y&&(this.__instance.__hidden=y,Zif(y,this.__instance.templateInfo.childNodes));y||this.__syncHostProperties()};
var Yt2=function(){var y=GC.call(this)||this;y.__ctor=null;y.__instance=null;y.__invalidProps=null;return y};
_.R(Yt2,GC);_.f=Yt2.prototype;_.f.__hasInstance=function(){return!!this.__instance};
_.f.__getInstanceNodes=function(){return this.__instance.children};
_.f.__createAndInsertInstance=function(y){this.__ctor||(this.__ctor=PR(this.__template,this,{mutableData:!0,forwardHostProp:function(W,c){this.__instance&&(this.if?this.__instance.forwardHostProp(W,c):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[cR(W)]=!0))}}));
this.__instance=new this.__ctor;(0,_.my)(y).insertBefore(this.__instance.root,this)};
_.f.__teardownInstance=function(){if(this.__instance){var y=this.__instance.children;if(y&&y.length){var W=(0,_.my)(y[0]).parentNode;if(W){W=(0,_.my)(W);for(var c=0,Z=void 0;c<y.length&&(Z=y[c]);c++)W.removeChild(Z)}}this.__instance=this.__invalidProps=null}};
_.f.__syncHostProperties=function(){var y=this.__invalidProps;if(y){this.__invalidProps=null;for(var W in y)this.__instance._setPendingProperty(W,this.__dataHost[W]);this.__instance._flushProperties()}};
_.f._showHideChildren=function(){var y=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==y&&(this.__instance.__hidden=y,this.__instance._showHideChildren(y));y||this.__syncHostProperties()};
_.u6=AJ?zz5:Yt2;customElements.define(_.u6.is,_.u6);Polymer.enqueueDebouncer=_.j0;Polymer.flush=_.ZN;Polymer.Templatize={templatize:PR,modelForElement:XNH};Polymer.TemplateInstanceBase=pv;Polymer.DomIf=_.u6;var mO8=flT(TA),s0=function(){var y=mO8.call(this)||this;y.__instances=[];y.__renderDebouncer=null;y.__itemsIdxToInstIdx={};y.__chunkCount=null;y.__renderStartTime=null;y.__itemsArrayChanged=!1;y.__shouldMeasureChunk=!1;y.__shouldContinueChunking=!1;y.__chunkingId=0;y.__sortFn=null;y.__filterFn=null;y.__observePaths=null;y.__ctor=null;y.__isDetached=!0;y.template=null;return y};
_.R(s0,mO8);_.f=s0.prototype;_.f.disconnectedCallback=function(){mO8.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var y=0;y<this.__instances.length;y++)this.__detachInstance(y);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.f.connectedCallback=function(){mO8.prototype.connectedCallback.call(this);jEa()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var y=(0,_.my)((0,_.my)(this).parentNode),W=0;W<this.__instances.length;W++)this.__attachInstance(W,y);this.__chunkingId&&this.__render()}};
_.f.__ensureTemplatized=function(){var y=this;if(!this.__ctor){var W=this.template=this._templateInfo?this:this.querySelector("template");if(!W){var c=new MutationObserver(function(){if(y.querySelector("template"))c.disconnect(),y.__render();else throw Error("Md");});
c.observe(this,{childList:!0});return!1}var Z={};Z[this.as]=!0;Z[this.indexAs]=!0;Z[this.itemsIndexAs]=!0;this.__ctor=PR(W,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Z,forwardHostProp:function(G,D){for(var Y=this.__instances,u=0,t=void 0;u<Y.length&&(t=Y[u]);u++)t.forwardHostProp(G,D)},
notifyInstanceProp:function(G,D,Y){CL1(this.as,D)&&(G=G[this.itemsIndexAs],D==this.as&&(this.items[G]=Y),D=G7(this.as,"items."+G,D),this.notifyPath(D,Y))}})}return!0};
_.f.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.f.__functionFromPropertyValue=function(y){if(typeof y==="string"){var W=this.__getMethodHost();return function(){return W[y].apply(W,arguments)}}return y};
_.f.__sortChanged=function(y){this.__sortFn=this.__functionFromPropertyValue(y);this.items&&this.__debounceRender(this.__render)};
_.f.__filterChanged=function(y){this.__filterFn=this.__functionFromPropertyValue(y);this.items&&this.__debounceRender(this.__render)};
_.f.__computeFrameTime=function(y){return Math.ceil(1E3/y)};
_.f.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.f.__handleObservedPaths=function(y){if(this.__sortFn||this.__filterFn)if(!y)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var W=this.__observePaths,c=0;c<W.length;c++)y.indexOf(W[c])===0&&this.__debounceRender(this.__render,this.delay)};
_.f.__itemsChanged=function(y){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(y.path,y.value)||(y.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.f.__debounceRender=function(y,W){W=W===void 0?0:W;this.__renderDebouncer=_.kj(this.__renderDebouncer,W>0?_.Hi.after(W):ln,y.bind(this));_.j0(this.__renderDebouncer)};
_.f.render=function(){this.__debounceRender(this.__render);_.ZN()};
_.f.__render=function(){var y=this;if(this.__ensureTemplatized()){var W=this.items||[],c=this.__sortAndFilterItems(W),Z=this.__calculateLimit(c.length);this.__updateInstances(W,Z,c);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){y.__chunkingId=null;y.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);hJ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.f.__sortAndFilterItems=function(y){for(var W=this,c=Array(y.length),Z=0;Z<y.length;Z++)c[Z]=Z;this.__filterFn&&(c=c.filter(function(G,D,Y){return W.__filterFn(y[G],D,Y)}));
this.__sortFn&&c.sort(function(G,D){return W.__sortFn(y[G],y[D])});
return c};
_.f.__calculateLimit=function(y){var W=y,c=this.__instances.length;if(this.initialCount){var Z;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(W=Math.min(y,this.initialCount),this.__chunkCount=(Z=Math.max(W-c,0))||1):(Z=Math.min(Math.max(y-c,0),this.__chunkCount),W=Math.min(c+Z,y));this.__shouldMeasureChunk=Z===this.__chunkCount;this.__shouldContinueChunking=W<y;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return W};
_.f.__continueChunking=function(){if(this.__shouldMeasureChunk){var y=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/y*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.f.__updateInstances=function(y,W,c){var Z=this.__itemsIdxToInstIdx={},G;for(G=0;G<W;G++){var D=this.__instances[G],Y=c[G],u=y[Y];Z[Y]=G;D?(D._setPendingProperty(this.as,u),D._setPendingProperty(this.indexAs,G),D._setPendingProperty(this.itemsIndexAs,Y),D._flushProperties()):this.__insertInstance(u,G,Y)}for(y=this.__instances.length-1;y>=G;y--)this.__detachAndRemoveInstance(y)};
_.f.__detachInstance=function(y){y=this.__instances[y];for(var W=(0,_.my)(y.root),c=0;c<y.children.length;c++)W.appendChild(y.children[c]);return y};
_.f.__attachInstance=function(y,W){W.insertBefore(this.__instances[y].root,this)};
_.f.__detachAndRemoveInstance=function(y){this.__detachInstance(y);this.__instances.splice(y,1)};
_.f.__stampInstance=function(y,W,c){var Z={};Z[this.as]=y;Z[this.indexAs]=W;Z[this.itemsIndexAs]=c;return new this.__ctor(Z)};
_.f.__insertInstance=function(y,W,c){y=this.__stampInstance(y,W,c);c=(c=this.__instances[W+1])?c.children[0]:this;(0,_.my)((0,_.my)(this).parentNode).insertBefore(y.root,c);return this.__instances[W]=y};
_.f._showHideChildren=function(y){for(var W=0;W<this.__instances.length;W++)this.__instances[W]._showHideChildren(y)};
_.f.__handleItemPath=function(y,W){var c=y.slice(6),Z=c.indexOf(".");y=Z<0?c:c.substring(0,Z);if(y==parseInt(y,10)){c=Z<0?"":c.substring(Z+1);this.__handleObservedPaths(c);if(y=this.__instances[this.__itemsIdxToInstIdx[y]])y._setPendingPropertyOrPath(this.as+(c?"."+c:""),W,!1,!0),y._flushProperties();return!0}};
_.f.itemForElement=function(y){return(y=this.modelForElement(y))&&y[this.as]};
_.f.indexForElement=function(y){return(y=this.modelForElement(y))&&y[this.indexAs]};
_.f.modelForElement=function(y){return XNH(this.template,y)};
_.dJ.Object.defineProperties(s0,{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:s0.prototype.__sortChanged},filter:{type:Function,observer:s0.prototype.__filterChanged},observe:{type:String,observer:s0.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!hJ,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.*)"]}}});
s0.prototype._setRenderedItemCount=function(){};
customElements.define(s0.is,s0);Polymer.DomRepeat=s0;var sWi=function(y,W){var c=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=y;this.callback=W;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){c._schedule()};
this.connect();this._schedule()},uy3=function(y){var W=(0,_.my)(y);
if(Cv(y))return W.assignedNodes({flatten:!0});y=[];for(var c=0;c<W.childNodes.length;c++){var Z=W.childNodes[c];Cv(Z)?y.push.apply(y,_.No((0,_.my)(Z).assignedNodes({flatten:!0}))):y.push(Z)}return y};
_.f=sWi.prototype;_.f.connect=function(){var y=this;Cv(this._target)?this._listenSlots([this._target]):(0,_.my)(this._target).children&&(this._listenSlots((0,_.my)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(W){y._processMutations(W)}):(this._nativeChildrenObserver=new MutationObserver(function(W){y._processMutations(W)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.f.disconnect=function(){Cv(this._target)?this._unlistenSlots([this._target]):(0,_.my)(this._target).children&&(this._unlistenSlots((0,_.my)(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};
_.f._schedule=function(){var y=this;this._scheduled||(this._scheduled=!0,ln.run(function(){return y.flush()}))};
_.f._processMutations=function(y){this._processSlotMutations(y);this.flush()};
_.f._processSlotMutations=function(y){if(y)for(var W=0;W<y.length;W++){var c=y[W];c.addedNodes&&this._listenSlots(c.addedNodes);c.removedNodes&&this._unlistenSlots(c.removedNodes)}};
_.f.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 y={target:this._target,addedNodes:[],removedNodes:[]},W=uy3(this._target),c=n3F(W,this._effectiveNodes),Z=0,G=void 0;Z<c.length&&(G=c[Z]);Z++)for(var D=0,Y=void 0;D<G.removed.length&&(Y=G.removed[D]);D++)y.removedNodes.push(Y);
Z=0;for(G=void 0;Z<c.length&&(G=c[Z]);Z++)for(D=G.index;D<G.index+G.addedCount;D++)y.addedNodes.push(W[D]);this._effectiveNodes=W;W=!1;if(y.addedNodes.length||y.removedNodes.length)W=!0,this.callback.call(this._target,y);return W};
_.f._listenSlots=function(y){for(var W=0;W<y.length;W++){var c=y[W];Cv(c)&&c.addEventListener("slotchange",this._boundSchedule)}};
_.f._unlistenSlots=function(y){for(var W=0;W<y.length;W++){var c=y[W];Cv(c)&&c.removeEventListener("slotchange",this._boundSchedule)}};var fG=Element.prototype,tdT=fG.matches||fG.matchesSelector||fG.mozMatchesSelector||fG.msMatchesSelector||fG.oMatchesSelector||fG.webkitMatchesSelector,n$E=function(y,W){return tdT.call(y,W)},Qv=function(y){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(y);
this.node=y},FvE;
_.f=Qv.prototype;_.f.observeNodes=function(y){return new sWi(this.node,y)};
_.f.unobserveNodes=function(y){y.disconnect()};
_.f.notifyObserver=function(){};
_.f.deepContains=function(y){if((0,_.my)(this.node).contains(y))return!0;var W=y;for(y=y.ownerDocument;W&&W!==y&&W!==this.node;)W=(0,_.my)(W).parentNode||(0,_.my)(W).host;return W===this.node};
_.f.getOwnerRoot=function(){return(0,_.my)(this.node).getRootNode()};
_.f.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.my)(this.node).assignedNodes({flatten:!0}):[]};
_.f.getDestinationInsertionPoints=function(){for(var y=[],W=(0,_.my)(this.node).assignedSlot;W;)y.push(W),W=(0,_.my)(W).assignedSlot;return y};
_.f.importNode=function(y,W){return(0,_.my)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(y,W)};
_.f.getEffectiveChildNodes=function(){return uy3(this.node)};
_.f.queryDistributedElements=function(y){for(var W=this.getEffectiveChildNodes(),c=[],Z=0,G=W.length,D=void 0;Z<G&&(D=W[Z]);Z++)D.nodeType===Node.ELEMENT_NODE&&n$E(D,y)&&c.push(D);return c};
_.dJ.Object.defineProperties(Qv.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var y=this.node;return y._activeElement!==void 0?y._activeElement:y.activeElement}}});
var oX=function(y){this.event=y};
_.dJ.Object.defineProperties(oX.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 XKW=Qv;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var bZZ=window.ShadyDOM.Wrapper,rqJ=function(){return bZZ.apply(this,arguments)||this};
_.R(rqJ,bZZ);Object.getOwnPropertyNames(Qv.prototype).forEach(function(y){y!="activeElement"&&y!="constructor"&&(rqJ.prototype[y]=Qv.prototype[y])});
rff(rqJ.prototype,["classList"]);XKW=rqJ;Object.defineProperties(oX.prototype,{localTarget:{get:function(){var y=this.event.currentTarget;y=y&&_.UL(y).getOwnerRoot();for(var W=this.path,c=0;c<W.length;c++){var Z=W[c];if(_.UL(Z).getOwnerRoot()===y)return Z}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else biI(),rff(Qv.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),F8I();FvE=XKW;_.UL=function(y){y=y||document;if(y instanceof XKW)return y;if(y instanceof oX)return y;var W=y.__domApi;W||(y instanceof Event?W=new oX(y):W=new XKW(y),y.__domApi=W);return W};var UO5=/:host\(:dir\((ltr|rtl)\)\)/g,$OJ=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,KvE=/:dir\((?:ltr|rtl)\)/,OZT=!(!window.ShadyDOM||!window.ShadyDOM.inUse),hs=[],DN=null,As="",g$Q=LU(function(y){OZT||DN||(As=document.documentElement.getAttribute("dir"),DN=new MutationObserver(UrD),DN.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var W=IKW(y);y=function(){var c=W.call(this)||this;c.__autoDirOptOut=!1;return c};
_.R(y,W);y._processStyleText=function(c,Z){c=W._processStyleText.call(this,c,Z);!OZT&&KvE.test(c)&&(c=this._replaceDirInCssText(c),this.__activateDir=!0);return c};
y._replaceDirInCssText=function(c){c=c.replace(UO5,':host([dir="$1"])');return c=c.replace($OJ,':host([dir="$2"]) $1')};
y.prototype.ready=function(){W.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
y.prototype.connectedCallback=function(){W.prototype.connectedCallback&&W.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(DN&&DN.takeRecords().length&&UrD(),hs.push(this),this.__autoDirOptOut||this.setAttribute("dir",As))};
y.prototype.disconnectedCallback=function(){W.prototype.disconnectedCallback&&W.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var c=hs.indexOf(this);c>-1&&hs.splice(c,1)}};
y.__activateDir=!1;return y});var RzZ=function(y){for(;y;){var W=Object.getOwnPropertyDescriptor(y,"observedAttributes");if(W)return W.get;y=Object.getPrototypeOf(y.prototype).constructor}return function(){return[]}};
LU(function(y){var W=SX(y),c=RzZ(W);y=function(){return W.call(this)||this};
_.R(y,W);y.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:W.prototype._initializeProperties.call(this)};
y.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
y.prototype._canApplyPropertyDefault=function(Z){return W.prototype._canApplyPropertyDefault.call(this,Z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Z))};
y.prototype.attributeChangedCallback=function(Z,G,D,Y){Z=="disable-upgrade"?this.__isUpgradeDisabled&&D==null&&(W.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.my)(this).isConnected&&W.prototype.connectedCallback.call(this)):W.prototype.attributeChangedCallback.call(this,Z,G,D,Y)};
y.prototype.connectedCallback=function(){this.__isUpgradeDisabled||W.prototype.connectedCallback.call(this)};
y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||W.prototype.disconnectedCallback.call(this)};
_.dJ.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c.call(this).concat("disable-upgrade")}}});
return y});var BR=!1,K8D=[],HR=[];var lqa=window.ShadyDOM,E6H=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Iqw):document.readyState==="interactive"||document.readyState==="complete"?Iqw():window.addEventListener("DOMContentLoaded",Iqw);var JfO=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=""},pNa=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,PmI=/@import[^;]*;/gim,B5E=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,HiD=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,L8F=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,v6E=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,AfE=/^@[^\s]*keyframes/,
QED=/\s+/g;var drt={};var aqF=Promise.resolve();var ll2=new Set;var E$E=/;\s*/m,NMV=/^\s*(initial)|(inherit)\s*$/,IlT=/\s*!important/,pK2=function(){this._map={}};
pK2.prototype.set=function(y,W){y=y.trim();this._map[y]={properties:W,dependants:{}}};
pK2.prototype.get=function(y){y=y.trim();return this._map[y]||null};
var P08=null,zC=function(){this._measureElement=this._currentElement=null;this._map=new pK2};
_.f=zC.prototype;_.f.detectMixin=function(y){y=iq8.test(y)||xW3.test(y);iq8.lastIndex=0;xW3.lastIndex=0;return y};
_.f.transformTemplate=function(y,W){if(y._gatheredStyle===void 0){var c=[];for(var Z=y.content.querySelectorAll("style"),G=0;G<Z.length;G++){var D=Z[G];if(D.hasAttribute("shady-unscoped")){if(!RVE){var Y=D.textContent;if(!ll2.has(Y)){ll2.add(Y);var u=document.createElement("style");u.setAttribute("shady-unscoped","");u.textContent=Y;document.head.appendChild(u)}D.parentNode.removeChild(D)}}else c.push(D.textContent),D.parentNode.removeChild(D)}(c=c.join("").trim())?(Z=document.createElement("style"),
Z.textContent=c,y.content.insertBefore(Z,y.content.firstChild),c=Z):c=null;y._gatheredStyle=c}return(y=y._gatheredStyle)?this.JSC$9025_transformStyle(y,W):null};
_.f.JSC$9025_transformStyle=function(y,W){W=W===void 0?"":W;var c=eJh(y);this.transformRules(c,W);y.textContent=M6I(c);return c};
_.f.transformCustomStyle=function(y){var W=this,c=eJh(y);q2I(c,function(Z){Z.selector===":root"&&(Z.selector="html");W.transformRule(Z)});
y.textContent=M6I(c);return c};
_.f.transformRules=function(y,W){var c=this;this._currentElement=W;q2I(y,function(Z){c.transformRule(Z)});
this._currentElement=null};
_.f.transformRule=function(y){y.cssText=JqJ(this,y.parsedCssText,y);y.selector===":root"&&(y.selector=":host > *")};
var JqJ=function(y,W,c){W=W.replace(xW3,function(Z,G,D,Y){return y._produceCssProperties(Z,G,D,Y,c)});
return y._consumeCssProperties(W,c)};
_.f=zC.prototype;_.f._getInitialValueForProperty=function(y){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(y)};
_.f._fallbacksFromPreviousRules=function(y){for(var W=this,c=y;c.parent;)c=c.parent;var Z={},G=!1;q2I(c,function(D){(G=G||D===y)||D.selector===y.selector&&Object.assign(Z,W._cssTextToMap(D.parsedCssText))});
return Z};
_.f._consumeCssProperties=function(y,W){for(var c;c=iq8.exec(y);){var Z=c[0],G=c[1];c=c.index;var D=c+Z.indexOf("@apply"),Y=c+Z.length;Z=y.slice(0,D);y=y.slice(Y);D=W?this._fallbacksFromPreviousRules(W):{};Object.assign(D,this._cssTextToMap(Z));G=this._atApplyToCssProperties(G,D);y=Z+G+y;iq8.lastIndex=c+G.length}return y};
_.f._atApplyToCssProperties=function(y,W){y=y.replace(E$E,"");var c=[],Z=this._map.get(y);Z||(this._map.set(y,{}),Z=this._map.get(y));if(Z){this._currentElement&&(Z.dependants[this._currentElement]=!0);var G,D=Z.properties;for(G in D){var Y=W&&W[G];Z=[G,": var(",y,"_-_",G];Y&&Z.push(",",Y.replace(IlT,""));Z.push(")");IlT.test(D[G])&&Z.push(" !important");c.push(Z.join(""))}}return c.join("; ")};
_.f._replaceInitialOrInherit=function(y,W){var c=NMV.exec(W);c&&(W=c[1]?this._getInitialValueForProperty(y):"apply-shim-inherit");return W};
_.f._cssTextToMap=function(y,W){W=W===void 0?!1:W;y=y.split(";");for(var c,Z,G={},D=0;D<y.length;D++)if(c=y[D])Z=c.split(":"),Z.length>1&&(c=Z[0].trim(),Z=Z.slice(1).join(":"),W&&(Z=this._replaceInitialOrInherit(c,Z)),G[c]=Z);return G};
_.f._invalidateMixinEntry=function(y){if(P08)for(var W in y.dependants)W!==this._currentElement&&P08(W)};
_.f._produceCssProperties=function(y,W,c,Z,G){var D=this;c&&k$O(c,function(N,P){P&&D._map.get(P)&&(Z="@apply "+P+";")});
if(!Z)return y;var Y=this._consumeCssProperties(""+Z,G);G=y.slice(0,y.indexOf("--"));var u=Y=this._cssTextToMap(Y,!0),t=this._map.get(W),b=t&&t.properties;b?u=Object.assign(Object.create(b),Y):this._map.set(W,u);var r=[],F,K=!1;for(F in u){var l=Y[F];l===void 0&&(l="initial");!b||F in b||(K=!0);r.push(W+"_-_"+F+": "+l)}K&&this._invalidateMixinEntry(t);t&&(t.properties=u);c&&(G=y+";"+G);return G+r.join("; ")+";"};
zC.prototype.detectMixin=zC.prototype.detectMixin;zC.prototype.transformStyle=zC.prototype.JSC$9025_transformStyle;zC.prototype.transformCustomStyle=zC.prototype.transformCustomStyle;zC.prototype.transformRules=zC.prototype.transformRules;zC.prototype.transformRule=zC.prototype.transformRule;zC.prototype.transformTemplate=zC.prototype.transformTemplate;zC.prototype._separator="_-_";Object.defineProperty(zC.prototype,"invalidCallback",{get:function(){return P08},
set:function(y){P08=y}});var YK=new zC,Vd8=function(){this.customStyleInterface=null;YK.invalidCallback=S2O},mx=function(y){!y.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(y.customStyleInterface=window.ShadyCSS.CustomStyleInterface,y.customStyleInterface.transformCallback=function(W){YK.transformCustomStyle(W)},y.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){y.customStyleInterface.enqueued&&y.flushCustomStyles()})})};
_.f=Vd8.prototype;_.f.prepareTemplate=function(y,W){mx(this);j_I(y)===""&&(drt[W]=y,W=YK.transformTemplate(y,W),y._styleAst=W)};
_.f.flushCustomStyles=function(){mx(this);if(this.customStyleInterface){var y=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var W=0;W<y.length;W++){var c=this.customStyleInterface.getStyleForCustomStyle(y[W]);c&&YK.transformCustomStyle(c)}this.customStyleInterface.enqueued=!1}}};
_.f.styleSubtree=function(y,W){mx(this);W&&rdg(y,W);if(y.shadowRoot)for(this.styleElement(y),y=y.shadowRoot.children||y.shadowRoot.childNodes,W=0;W<y.length;W++)this.styleSubtree(y[W]);else for(y=y.children||y.childNodes,W=0;W<y.length;W++)this.styleSubtree(y[W])};
_.f.styleElement=function(y){mx(this);var W=y.localName,c;W?W.indexOf("-")>-1?c=W:c=y.getAttribute&&y.getAttribute("is")||"":c=y.is;W=drt[c];if(!(W&&j_I(W)!==""||!W||T5w(W))){if(T5w(W)||W._applyShimValidatingVersion!==W._applyShimNextVersion)this.prepareTemplate(W,c),xra(W);if(y=y.shadowRoot)if(y=y.querySelector("style"))y.__cssRules=W._styleAst,y.textContent=M6I(W._styleAst)}};
_.f.styleDocument=function(y){mx(this);this.styleSubtree(document.body,y)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var sM=new Vd8,C0E=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(y,W){sM.flushCustomStyles();sM.prepareTemplate(y,W)},
prepareTemplateStyles:function(y,W,c){window.ShadyCSS.prepareTemplate(y,W,c)},
prepareTemplateDom:function(){},
styleSubtree:function(y,W){sM.flushCustomStyles();sM.styleSubtree(y,W)},
styleElement:function(y){sM.flushCustomStyles();sM.styleElement(y)},
styleDocument:function(y){sM.flushCustomStyles();sM.styleDocument(y)},
getComputedStyleValue:function(y,W){return FHD(y,W)},
flushCustomStyles:function(){sM.flushCustomStyles()},
nativeCss:iif,nativeShadow:RVE,cssBuild:vR,disableRuntime:w$i};C0E&&(window.ShadyCSS.CustomStyleInterface=C0E)}window.ShadyCSS.ApplyShim=YK;var QWE;QWE=window.ShadyCSS;_.u_=LU(function(y){y=G20(SX(y));var W=Hqm?y:g$Q(y),c=RzZ(W),Z={x:"pan-x",y:"pan-y",none:"none",all:"auto"};y=function(){return W.call(this)||this};
_.R(y,W);y.prototype.created=function(){};
y.prototype.__attributeReaction=function(G,D,Y){(this.__dataAttributes&&this.__dataAttributes[G]||G==="disable-upgrade")&&this.attributeChangedCallback(G,D,Y,null)};
y.prototype.setAttribute=function(G,D){if(ujE&&!this._legacyForceObservedAttributes){var Y=this.getAttribute(G);W.prototype.setAttribute.call(this,G,D);this.__attributeReaction(G,Y,String(D))}else W.prototype.setAttribute.call(this,G,D)};
y.prototype.removeAttribute=function(G){if(ujE&&!this._legacyForceObservedAttributes){var D=this.getAttribute(G);W.prototype.removeAttribute.call(this,G);this.__attributeReaction(G,D,null)}else W.prototype.removeAttribute.call(this,G)};
y.prototype._enableProperties=function(){this.__isUpgradeDisabled||W.prototype._enableProperties.call(this)};
y.prototype._canApplyPropertyDefault=function(G){return W.prototype._canApplyPropertyDefault.call(this,G)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(G))};
y.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(W.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
y.prototype.attached=function(){};
y.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(W.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
y.prototype.detached=function(){};
y.prototype.attributeChangedCallback=function(G,D,Y,u){D!==Y&&(G=="disable-upgrade"?this.__isUpgradeDisabled&&Y==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.my)(this).isConnected&&this.connectedCallback()):(W.prototype.attributeChangedCallback.call(this,G,D,Y,u),this.attributeChanged(G,D,Y)))};
y.prototype.attributeChanged=function(){};
y.prototype._initializeProperties=function(){if(N4&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var G=Object.getPrototypeOf(this);G.hasOwnProperty("__hasRegisterFinished")||(this._registered(),G.__hasRegisterFinished=!0);W.prototype._initializeProperties.call(this);this.root=this;this.created();ujE&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
y.prototype._takeAttributes=function(){for(var G=this.attributes,D=0,Y=G.length;D<Y;D++){var u=G[D];this.__attributeReaction(u.name,null,u.value)}};
y.prototype._registered=function(){};
y.prototype.ready=function(){this._ensureAttributes();W.prototype.ready.call(this)};
y.prototype._ensureAttributes=function(){};
y.prototype._applyListeners=function(){};
y.prototype.serialize=function(G){return this._serializeValue(G)};
y.prototype.deserialize=function(G,D){return this._deserializeValue(G,D)};
y.prototype.reflectPropertyToAttribute=function(G,D,Y){this._propertyToAttribute(G,D,Y)};
y.prototype.serializeValueToAttribute=function(G,D,Y){this._valueToNodeAttribute(Y||this,G,D)};
y.prototype.extend=function(G,D){if(!G||!D)return G||D;for(var Y=Object.getOwnPropertyNames(D),u=0,t=void 0;u<Y.length&&(t=Y[u]);u++){var b=Object.getOwnPropertyDescriptor(D,t);b&&Object.defineProperty(G,t,b)}return G};
y.prototype.mixin=function(G,D){for(var Y in D)G[Y]=D[Y];return G};
y.prototype.chainObject=function(G,D){G&&D&&G!==D&&(G.__proto__=D);return G};
y.prototype.instanceTemplate=function(G){G=this.constructor._contentForTemplate(G);return document.importNode(G,!0)};
y.prototype.fire=function(G,D,Y){Y=Y||{};D=D===null||D===void 0?{}:D;G=new Event(G,{bubbles:Y.bubbles===void 0?!0:Y.bubbles,cancelable:!!Y.cancelable,composed:Y.composed===void 0?!0:Y.composed});G.detail=D;(0,_.my)(Y.node||this).dispatchEvent(G);return G};
y.prototype.listen=function(G,D,Y){G=G||this;var u=this.__boundListeners||(this.__boundListeners=new WeakMap),t=u.get(G);t||(t={},u.set(G,t));u=D+Y;t[u]||(t[u]=this._addMethodEventListenerToNode(G,D,Y,this))};
y.prototype.unlisten=function(G,D,Y){G=G||this;var u=this.__boundListeners&&this.__boundListeners.get(G);Y=D+Y;var t=u&&u[Y];t&&(this._removeEventListenerFromNode(G,D,t),u[Y]=null)};
y.prototype.setScrollDirection=function(G,D){_.RN(D||this,Z[G]||"auto")};
y.prototype.$$=function(G){return this.root.querySelector(G)};
y.prototype.distributeContent=function(){var G=_.UL(this);window.ShadyDOM&&G.shadowRoot&&ShadyDOM.flush()};
y.prototype.getEffectiveChildNodes=function(){return _.UL(this).getEffectiveChildNodes()};
y.prototype.queryDistributedElements=function(G){return _.UL(this).queryDistributedElements(G)};
y.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(G){return G.nodeType===Node.ELEMENT_NODE})};
y.prototype.getEffectiveTextContent=function(){for(var G=this.getEffectiveChildNodes(),D=[],Y=0,u;u=G[Y];Y++)u.nodeType!==Node.COMMENT_NODE&&D.push(u.textContent);return D.join("")};
y.prototype.queryEffectiveChildren=function(G){return(G=this.queryDistributedElements(G))&&G[0]};
y.prototype.queryAllEffectiveChildren=function(G){return this.queryDistributedElements(G)};
y.prototype.getContentChildNodes=function(G){return(G=this.root.querySelector(G||"slot"))?_.UL(G).getDistributedNodes():[]};
y.prototype.getContentChildren=function(G){return this.getContentChildNodes(G).filter(function(D){return D.nodeType===Node.ELEMENT_NODE})};
y.prototype.isLightDescendant=function(G){return this!==G&&(0,_.my)(this).contains(G)&&(0,_.my)(this).getRootNode()===(0,_.my)(G).getRootNode()};
y.prototype.isLocalDescendant=function(G){return this.root===(0,_.my)(G).getRootNode()};
y.prototype.scopeSubtree=function(G,D){return N5I(G,D===void 0?!1:D)};
y.prototype.getComputedStyleValue=function(G){return QWE.getComputedStyleValue(this,G)};
y.prototype.debounce=function(G,D,Y){this._debouncers=this._debouncers||{};return this._debouncers[G]=_.kj(this._debouncers[G],Y>0?_.Hi.after(Y):ln,D.bind(this))};
y.prototype.isDebouncerActive=function(G){this._debouncers=this._debouncers||{};G=this._debouncers[G];return!(!G||!G.isActive())};
y.prototype.flushDebouncer=function(G){this._debouncers=this._debouncers||{};(G=this._debouncers[G])&&G.flush()};
y.prototype.cancelDebouncer=function(G){this._debouncers=this._debouncers||{};(G=this._debouncers[G])&&G.cancel()};
y.prototype.async=function(G,D){return D>0?_.Hi.run(G.bind(this),D):~ln.run(G.bind(this))};
y.prototype.cancelAsync=function(G){G<0?ln.cancel(~G):_.Hi.cancel(G)};
y.prototype.create=function(G,D){G=document.createElement(G);if(D)if(G.setProperties)G.setProperties(D);else for(var Y in D)G[Y]=D[Y];return G};
y.prototype.elementMatches=function(G,D){return n$E(D||this,G)};
y.prototype.toggleAttribute=function(G,D){var Y=this;arguments.length===3&&(Y=arguments[2]);arguments.length==1&&(D=!Y.hasAttribute(G));if(D)return(0,_.my)(Y).setAttribute(G,""),!0;(0,_.my)(Y).removeAttribute(G);return!1};
y.prototype.toggleClass=function(G,D,Y){Y=Y||this;arguments.length==1&&(D=!Y.classList.contains(G));D?Y.classList.add(G):Y.classList.remove(G)};
y.prototype.transform=function(G,D){D=D||this;D.style.webkitTransform=G;D.style.transform=G};
y.prototype.translate3d=function(G,D,Y,u){this.transform("translate3d("+G+","+D+","+Y+")",u||this)};
y.prototype.arrayDelete=function(G,D){if(Array.isArray(G)){if(D=G.indexOf(D),D>=0)return G.splice(D,1)}else if(D=Dm(this,G).indexOf(D),D>=0)return this.splice(G,D,1);return null};
y.prototype._logger=function(G,D){Array.isArray(D)&&D.length===1&&Array.isArray(D[0])&&(D=D[0]);switch(G){case "log":case "warn":case "error":console[G].apply(console,_.No(D))}};
y.prototype._log=function(){this._logger("log",_.Cf.apply(0,arguments))};
y.prototype._warn=function(){this._logger("warn",_.Cf.apply(0,arguments))};
y.prototype._error=function(){this._logger("error",_.Cf.apply(0,arguments))};
y.prototype._logf=function(G){return["[%s::%s]",this.is,G].concat(_.No(_.Cf.apply(1,arguments)))};
_.dJ.Object.defineProperties(y.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var G=(0,_.my)(this).getRootNode();return G instanceof DocumentFragment?G.host:G}}});
_.dJ.Object.defineProperties(y,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return ujE&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],EDw(this.prototype)),this.__observedAttributes):c.call(this).concat("disable-upgrade")}}});
y.prototype.is="";return y});Polymer.FlattenedNodesObserver=sWi;Polymer.DomApi=FvE;Polymer.EventApi=oX;Polymer.dom=_.UL;Polymer.dom.matchesSelector=n$E;Polymer.dom.flush=_.ZN;Polymer.dom.addDebouncer=_.j0;Polymer.DirMixin=g$Q;Polymer.RenderStatus={beforeNextRender:_.RJI,afterNextRender:_.Lv,flush:function(){for(;K8D.length||HR.length;)$rt(K8D),$rt(HR);BR=!1}};Polymer.LegacyElementMixin=_.u_;var Aq0;Aq0=Ws._mutablePropertyChange;var hzT={properties:{mutableData:Boolean},_shouldPropertyChange:function(y,W,c){return Aq0(this,y,W,c,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(y,W,c){return Aq0(this,y,W,c,!0)}};
Polymer.OptionalMutableDataBehavior=hzT;var yPw={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},fif={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Guy=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},fif),BMJ=(0,_.u_)(HTMLElement),nVg=function(y,W){y||console.warn("Polymer.Class requires `info` argument");W=W?W(BMJ):BMJ;W=o_h(y,W,y.behaviors);W.is=W.prototype.is=
y.is;return W};Polymer.Class=nVg;Polymer.mixinBehaviors=function(y,W){return o_h({},(0,_.u_)(W),y)};
Polymer.GenerateClassFromInfo=o_h;_.mD=function(y){var W=typeof y==="function"?y:_.mD.Class(y);y._legacyForceObservedAttributes&&(W.prototype._legacyForceObservedAttributes=y._legacyForceObservedAttributes);customElements.define(W.is,W);return W};
_.mD.Class=nVg;Polymer._polymerFn=_.mD;var HZm=window.onLegacyPolymerFunctionDefinedCallback;HZm&&HZm();var bWy={templatize:function(y,W){this._templatizerTemplate=y;this.ctor=PR(y,this,{mutableData:!!W,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(y){return new this.ctor(y)},
modelForElement:function(y){return XNH(this._templatizerTemplate,y)}};Polymer.Templatizer=bWy;_.te=(0,_.u_)(HTMLElement).prototype;Polymer.Base=_.te;var zsH=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.SN=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(_.SN,PolymerFakeBaseClass);var aN=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(aN,PolymerFakeBaseClass);var YfH=Symbol("Nd"),rPh=[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 LvE=LvE||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},v$m;(function(y){function W(M,fa,jI){var sD=cy.get(M);if(!sD){if(!jI)return;sD=new Q;cy.set(M,sD)}M=sD.get(fa);if(!M){if(!jI)return;M=new Q;sD.set(fa,M)}return M}
function c(M,fa,jI){if(Z(M,fa,jI))return!0;fa=K(fa);return fa!==null?c(M,fa,jI):!1}
function Z(M,fa,jI){fa=W(fa,jI,!1);return fa===void 0?!1:!!fa.has(M)}
function G(M,fa,jI){if(Z(M,fa,jI))return D(M,fa,jI);fa=K(fa);if(fa!==null)return G(M,fa,jI)}
function D(M,fa,jI){fa=W(fa,jI,!1);if(fa!==void 0)return fa.get(M)}
function Y(M,fa){var jI=u(M,fa);M=K(M);if(M===null)return jI;var sD=Y(M,fa);if(sD.length<=0)return jI;if(jI.length<=0)return sD;fa=new S;M=[];jI=_.z(jI);for(var ED=jI.next();!ED.done;ED=jI.next())ED=ED.value,fa.has(ED)||(fa.add(ED),M.push(ED));jI=_.z(sD);for(sD=jI.next();!sD.done;sD=jI.next())sD=sD.value,fa.has(sD)||(fa.add(sD),M.push(sD));return M}
function u(M,fa){M=W(M,fa,!1);var jI=[];M&&M.forEach(function(sD,ED){return jI.push(ED)});
return jI}
function t(M){return M===void 0}
function b(M){return typeof M==="object"?M!==null:typeof M==="function"}
function r(M){return typeof M==="function"}
function F(M){return typeof M==="symbol"?M:String(M)}
function K(M){var fa=Object.getPrototypeOf(M);if(typeof M!=="function"||M===V||fa!==V)return fa;var jI=Object.getPrototypeOf(M.prototype);if(jI==null||jI===Object.prototype)return fa;jI=jI.constructor;return typeof jI!=="function"||jI===M?fa:jI}
function l(){function M(){this._keys=[];this._values=[];this._cache=fa}
var fa={};M.prototype={get size(){return this._keys.length},has:function(jI){return jI===this._cache?!0:this._find(jI)>=0?(this._cache=jI,!0):!1},
get:function(jI){var sD=this._find(jI);if(sD>=0)return this._cache=jI,this._values[sD]},
set:function(jI,sD){this.delete(jI);this._keys.push(jI);this._values.push(sD);this._cache=jI;return this},
delete:function(jI){jI=this._find(jI);return jI>=0?(this._keys.splice(jI,1),this._values.splice(jI,1),this._cache=fa,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=fa},
forEach:function(jI){for(var sD=this.size,ED=0;ED<sD;++ED){var N1=this._keys[ED],bf=this._values[ED];this._cache=N1;jI.call(this,bf,N1,this)}},
_find:function(jI){for(var sD=this._keys,ED=sD.length,N1=0;N1<ED;++N1)if(sD[N1]===jI)return N1;return-1}};
return M}
function N(){function M(){this._map=new Q}
M.prototype={get size(){return this._map.length},has:function(fa){return this._map.has(fa)},
add:function(fa){this._map.set(fa,fa);return this},
delete:function(fa){return this._map.delete(fa)},
clear:function(){this._map.clear()},
forEach:function(fa,jI){this._map.forEach(fa,jI)}};
return M}
function P(){function M(){this._key=jI()}
function fa(WJ,t5){for(var xF=0;xF<t5;++xF)WJ[xF]=Math.random()*255|0}
function jI(){do{if(ED)var WJ=ED.randomBytes(16);else typeof Uint8Array==="function"?(WJ=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(WJ):fa(WJ,16)):(WJ=Array(16),fa(WJ,16));WJ[6]=WJ[6]&79|64;WJ[8]=WJ[8]&191|128;for(var t5="",xF=0;xF<16;++xF){var M3=WJ[xF];if(xF===4||xF===6||xF===8)t5+="-";M3<16&&(t5+="0");t5+=M3.toString(16).toLowerCase()}WJ="@@WeakMap@@"+t5}while(N1.call(bf,WJ));bf[WJ]=!0;return WJ}
function sD(WJ,t5){if(!N1.call(WJ,Py)){if(!t5)return;Object.defineProperty(WJ,Py,{value:Object.create(null)})}return WJ[Py]}
var ED=typeof global!=="undefined"&&typeof LvE==="object"&&typeof require==="function"&&require("crypto"),N1=Object.prototype.hasOwnProperty,bf={},Py=jI();M.prototype={has:function(WJ){return(WJ=sD(WJ,!1))?this._key in WJ:!1},
get:function(WJ){if(WJ=sD(WJ,!1))return WJ[this._key]},
set:function(WJ,t5){sD(WJ,!0)[this._key]=t5;return this},
delete:function(WJ){return(WJ=sD(WJ,!1))&&this._key in WJ?delete WJ[this._key]:!1},
clear:function(){this._key=jI()}};
return M}
var V=Object.getPrototypeOf(Function),Q=typeof Map==="function"?Map:l(),S=typeof Set==="function"?Set:N(),cy=new (typeof WeakMap==="function"?WeakMap:P());y.decorate=function(M,fa,jI,sD){if(t(sD)){if(t(jI)){if(!Array.isArray(M))throw new TypeError;if(!r(fa))throw new TypeError;for(jI=M.length-1;jI>=0;--jI)if(sD=(0,M[jI])(fa),!t(sD)){if(!r(sD))throw new TypeError;fa=sD}return fa}if(!Array.isArray(M))throw new TypeError;if(!b(fa))throw new TypeError;jI=F(jI);for(sD=M.length-1;sD>=0;--sD)(0,M[sD])(fa,
jI)}else{if(Array.isArray(M))if(b(fa)){if(t(jI))throw new TypeError;if(!b(sD))throw new TypeError;}else throw new TypeError;else throw new TypeError;jI=F(jI);for(var ED=M.length-1;ED>=0;--ED){var N1=(0,M[ED])(fa,jI,sD);if(!t(N1)){if(!b(N1))throw new TypeError;sD=N1}}return sD}};
y.metadata=function(M,fa){return function(jI,sD){if(t(sD)){if(!r(jI))throw new TypeError;W(jI,void 0,!0).set(M,fa)}else{if(!b(jI))throw new TypeError;sD=F(sD);W(jI,sD,!0).set(M,fa)}}};
y.defineMetadata=function(M,fa){var jI;if(b(fa))t(jI)||(jI=F(jI));else throw new TypeError;W(fa,jI,!0).set("parameters",M)};
y.hasMetadata=function(M,fa,jI){if(b(fa))t(jI)||(jI=F(jI));else throw new TypeError;return c(M,fa,jI)};
y.hasOwnMetadata=function(M,fa,jI){if(b(fa))t(jI)||(jI=F(jI));else throw new TypeError;return Z(M,fa,jI)};
y.getMetadata=function(M,fa,jI){if(b(fa))t(jI)||(jI=F(jI));else throw new TypeError;return G(M,fa,jI)};
y.getOwnMetadata=function(M,fa,jI){if(b(fa))t(jI)||(jI=F(jI));else throw new TypeError;return D(M,fa,jI)};
y.getMetadataKeys=function(M,fa){if(b(M))t(fa)||(fa=F(fa));else throw new TypeError;return Y(M,fa)};
y.getOwnMetadataKeys=function(M,fa){if(b(M))t(fa)||(fa=F(fa));else throw new TypeError;return u(M,fa)};
y.deleteMetadata=function(M,fa,jI){if(b(fa))t(jI)||(jI=F(jI));else throw new TypeError;var sD=W(fa,jI,!1);if(!t(sD)){if(!sD.delete(M))return!1;if(sD.size>0)return!0;M=cy.get(fa);M.delete(jI);if(M.size>0)return!0;cy.delete(fa);return!0}};
(function(M){if(typeof M.Reflect!=="undefined"){if(M.Reflect!==y)for(var fa in y)M.Reflect[fa]=y[fa]}else M.Reflect=y})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(v$m||(v$m={}));var d6g=self;var dOT=[0,_.BN,_.Li,_.BN];var StE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(StE,_.eD);var TMV=_.o$(StE,[0,_.yH2,_.vN,dOT,_.Li,_.S6]);_.j6(_.xM,_.UR);_.f=_.xM.prototype;_.f.start=function(){this.stop();this.usingListeners_=!1;var y=alE(this),W=xO5(this);y&&!W&&this.JSC$9068_win_.mozRequestAnimationFrame?(this.JSC$9068_id_=_.Y0(this.JSC$9068_win_,"MozBeforePaint",this.callback_),this.JSC$9068_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9068_id_=y&&W?y.call(this.JSC$9068_win_,this.callback_):this.JSC$9068_win_.setTimeout(fgJ(this.callback_),20)};
_.f.stop=function(){if(this.isActive()){var y=alE(this),W=xO5(this);y&&!W&&this.JSC$9068_win_.mozRequestAnimationFrame?o9(this.JSC$9068_id_):y&&W?W.call(this.JSC$9068_win_,this.JSC$9068_id_):this.JSC$9068_win_.clearTimeout(this.JSC$9068_id_)}this.JSC$9068_id_=null};
_.f.fire=function(){this.stop();this.JSC$9070_doAction_()};
_.f.isActive=function(){return this.JSC$9068_id_!=null};
_.f.JSC$9070_doAction_=function(){this.usingListeners_&&this.JSC$9068_id_&&o9(this.JSC$9068_id_);this.JSC$9068_id_=null;this.JSC$9068_listener_.call(this.handler_,_.k3())};
_.f.disposeInternal=function(){this.stop();_.xM.superClass_.disposeInternal.call(this)};
var alE=function(y){y=y.JSC$9068_win_;return y.requestAnimationFrame||y.webkitRequestAnimationFrame||y.mozRequestAnimationFrame||y.oRequestAnimationFrame||y.msRequestAnimationFrame||null},xO5=function(y){y=y.JSC$9068_win_;
return y.cancelAnimationFrame||y.cancelRequestAnimationFrame||y.webkitCancelRequestAnimationFrame||y.mozCancelRequestAnimationFrame||y.oCancelRequestAnimationFrame||y.msCancelRequestAnimationFrame||null};_.ig=function(y,W,c){_.UR.call(this);this.JSC$9071_listener_=c!=null?y.bind(c):y;this.JSC$9071_interval_=W;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9071_timer_=null};
_.R(_.ig,_.UR);_.f=_.ig.prototype;_.f.fire=function(y){this.args_=arguments;this.JSC$9071_timer_||this.pauseCount_?this.shouldFire_=!0:iZE(this)};
_.f.stop=function(){this.JSC$9071_timer_&&(_.DH.clearTimeout(this.JSC$9071_timer_),this.JSC$9071_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.f.pause=function(){this.pauseCount_++};
_.f.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9071_timer_||(this.shouldFire_=!1,iZE(this))};
_.f.disposeInternal=function(){_.UR.prototype.disposeInternal.call(this);this.stop()};
var iZE=function(y){y.JSC$9071_timer_=ra(function(){y.JSC$9071_timer_=null;y.shouldFire_&&!y.pauseCount_&&(y.shouldFire_=!1,iZE(y))},y.JSC$9071_interval_);
var W=y.args_;y.args_=null;y.JSC$9071_listener_.apply(null,W)};var MdT=function(y,W){this.childIterator_=y[_.DH.Symbol.iterator]();this.mapFn_=W};
MdT.prototype[Symbol.iterator]=function(){return this};
MdT.prototype.next=function(){var y=this.childIterator_.next();return{value:y.done?void 0:this.mapFn_.call(void 0,y.value),done:y.done}};
var ezZ=function(y,W){return new MdT(y,W)};var wKT={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 DdE=function(y){var W=qti(y);if(!W)throw Error("Rd`"+y);return W},qti=function(y){var W={};
y=String(y);var c=y.charAt(0)=="#"?y:"#"+y;if(k2Z.test(c))return W.hex=cMH(c),W.type="hex",W;c=suI(y);return c.length?(W.hex=fZO(c[0],c[1],c[2]),W.type="rgb",W):wKT&&(y=wKT[y.toLowerCase()])?(W.hex=y,W.type="named",W):null},j53=/#(.)(.)(.)/,cMH=function(y){if(!k2Z.test(y))throw Error("Td`"+y);
y.length==4&&(y=y.replace(j53,"#$1$1$2$2$3$3"));return y.toLowerCase()},zbg=function(y){y=cMH(y);
y=parseInt(y.slice(1),16);return[y>>16,y>>8&255,y&255]},fZO=function(y,W,c){y=Number(y);
W=Number(W);c=Number(c);if(y!=(y&255)||W!=(W&255)||c!=(c&255))throw Error("Ud`"+y+"`"+W+"`"+c);W=y<<16|W<<8|c;return y<16?"#"+(16777216|W).toString(16).slice(1):"#"+W.toString(16)},k2Z=/^#(?:[0-9a-f]{3}){1,2}$/i,yxm=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,suI=function(y){var W=y.match(yxm);
if(W){y=Number(W[1]);var c=Number(W[2]);W=Number(W[3]);if(y>=0&&y<=255&&c>=0&&c<=255&&W>=0&&W<=255)return[y,c,W]}return[]};var WDV={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},F6=WDV;F6=WDV;var VFE,cxE,Z6T;VFE=function(y,W){switch(W){case 1:return y%4!=0||y%100==0&&y%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
cxE=function(y,W,c,Z,G){y=new Date(y,W,c);G=G||0;return y.valueOf()+(((Z!==void 0?Z:3)-G+7)%7-((y.getDay()+6)%7-G+7)%7)*864E5};
_.nG=function(y,W,c){typeof y==="number"?(this.date=Z6T(y,W||0,c||1),GsV(this,c||1)):_.q1(y)?(this.date=Z6T(y.getFullYear(),y.getMonth(),y.getDate()),GsV(this,y.getDate())):(this.date=new Date(_.k3()),y=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),GsV(this,y))};
Z6T=function(y,W,c){W=new Date(y,W,c);y>=0&&y<100&&W.setFullYear(W.getFullYear()-1900);return W};
_.f=_.nG.prototype;_.f.firstDayOfWeek_=F6.FIRSTDAYOFWEEK;_.f.firstWeekCutOffDay_=F6.FIRSTWEEKCUTOFFDAY;_.f.clone=function(){var y=new _.nG(this.date);y.firstDayOfWeek_=this.firstDayOfWeek_;y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return y};
_.f.getFullYear=function(){return this.date.getFullYear()};
_.f.getYear=function(){return this.getFullYear()};
_.f.getMonth=function(){return this.date.getMonth()};
_.f.getDate=function(){return this.date.getDate()};
_.f.getTime=function(){return this.date.getTime()};
_.f.getDay=function(){return this.date.getDay()};
_.f.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.f.getUTCMonth=function(){return this.date.getUTCMonth()};
_.f.getUTCDate=function(){return this.date.getUTCDate()};
_.f.getUTCDay=function(){return this.date.getDay()};
_.f.getUTCHours=function(){return this.date.getUTCHours()};
_.f.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.f.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.f.set=function(y){this.date=new Date(y.getFullYear(),y.getMonth(),y.getDate())};
_.f.setFullYear=function(y){this.date.setFullYear(y)};
_.f.setYear=function(y){this.setFullYear(y)};
_.f.setMonth=function(y){this.date.setMonth(y)};
_.f.setDate=function(y){this.date.setDate(y)};
_.f.setTime=function(y){this.date.setTime(y)};
_.f.setUTCFullYear=function(y){this.date.setUTCFullYear(y)};
_.f.setUTCMonth=function(y){this.date.setUTCMonth(y)};
_.f.setUTCDate=function(y){this.date.setUTCDate(y)};
_.f.add=function(y){if(y.years||y.months){var W=this.getMonth()+y.months+y.years*12,c=this.getYear()+Math.floor(W/12);W%=12;W<0&&(W+=12);var Z=Math.min(VFE(c,W),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(W);this.setDate(Z)}y.days&&(c=this.getYear(),W=c>=0&&c<=99?-1900:0,y=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+y.days*864E5),this.setDate(1),this.setFullYear(y.getFullYear()+W),this.setMonth(y.getMonth()),this.setDate(y.getDate()),GsV(this,y.getDate()))};
_.f.JSC$9084_toIsoString=function(y){var W=this.getFullYear(),c=W<0?"-":W>=1E4?"+":"";return[c+_.e6(Math.abs(W),c?6:4),_.e6(this.getMonth()+1,2),_.e6(this.getDate(),2)].join(y?"-":"")};
_.f.equals=function(y){return!(!y||this.getYear()!=y.getYear()||this.getMonth()!=y.getMonth()||this.getDate()!=y.getDate())};
_.f.toString=function(){return this.JSC$9084_toIsoString()};
var GsV=function(y,W){y.getDate()!=W&&y.date.setUTCHours(y.date.getUTCHours()+(y.getDate()<W?1:-1))};
_.nG.prototype.valueOf=function(){return this.date.valueOf()};var b_=function(y,W,c,Z,G){this.reversed=!!W;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!c;y&&Xz(this,y,Z);this.depth=G!=void 0?G:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.j6(b_,em);var Xz=function(y,W,c,Z){if(y.node=W)y.tagType=typeof c==="number"?c:y.node.nodeType!=1?0:y.reversed?-1:1;typeof Z==="number"&&(y.depth=Z)};
_.f=b_.prototype;_.f.JSC$9099_copyFrom=function(y){this.node=y.node;this.tagType=y.tagType;this.depth=y.depth;this.reversed=y.reversed;this.constrained=y.constrained};
_.f.clone=function(){return new b_(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.f.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return wq;var y=this.node;var W=this.reversed?-1:1;if(this.tagType==W){var c=this.reversed?y.lastChild:y.firstChild;c?Xz(this,c):Xz(this,y,W*-1)}else(c=this.reversed?y.previousSibling:y.nextSibling)?Xz(this,c):Xz(this,y.parentNode,W*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(y=this.node)?qJ(y):wq};
_.f.equals=function(y){return y.node==this.node&&(!this.node||y.tagType==this.tagType)};
_.f.splice=function(y){var W=this.node,c=this.reversed?1:-1;this.tagType==c&&(this.tagType=c*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;b_.prototype.next.call(this);this.reversed=!this.reversed;c=_.TO(arguments[0])?arguments[0]:arguments;for(var Z=c.length-1;Z>=0;Z--)_.I_(c[Z],W);_.to(W)};var fVE=function(){},rH=function(y){for(var W=[],c=y.getTextRangeCount(),Z=0;Z<c;Z++)W.push(y.getTextRange(Z));
return W};
fVE.prototype.isReversed=function(){return!1};
fVE.prototype.getWindow=function(){return pP(_.Pu(this.JSC$9101_getStartNode()))};
var omE=function(y,W){b_.call(this,y,W,!0)};
_.j6(omE,b_);var Fz=function(y,W,c,Z,G){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!G;if(y){this.startNode_=y;this.startOffset_=W;this.endNode_=c;this.endOffset_=Z;if(y.nodeType==1&&y.tagName!="BR")if(y=y.childNodes,W=y[W])this.startNode_=W,this.startOffset_=0;else{y.length&&(this.startNode_=_.Ca(y));var D=!0}c.nodeType==1&&((this.endNode_=c.childNodes[Z])?this.endOffset_=0:this.endNode_=c)}b_.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);D&&this.next()};
_.j6(Fz,omE);_.f=Fz.prototype;_.f.JSC$9107_getStartNode=function(){return this.startNode_};
_.f.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)};
_.f.next=function(){return this.isLast()?wq:Fz.superClass_.next.call(this)};
_.f.JSC$9099_copyFrom=function(y){this.startNode_=y.startNode_;this.endNode_=y.endNode_;this.startOffset_=y.startOffset_;this.endOffset_=y.endOffset_;this.isReversed_=y.isReversed_;Fz.superClass_.JSC$9099_copyFrom.call(this,y)};
_.f.clone=function(){var y=new Fz(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);y.JSC$9099_copyFrom(this);return y};var DM2=function(){};
DM2.prototype.__iterator__=function(){return new Fz(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var UM=function(y){this.range_=y};
_.j6(UM,DM2);var zPV=function(y){var W=_.Pu(y).createRange();if(y.nodeType==3)W.setStart(y,0),W.setEnd(y,y.length);else if(R_(y)||y.nodeType==3){for(var c,Z=y;(c=Z.firstChild)&&(R_(c)||c.nodeType==3);)Z=c;W.setStart(Z,0);for(Z=y;(c=Z.lastChild)&&(R_(c)||c.nodeType==3);)Z=c;W.setEnd(Z,Z.nodeType==1?Z.childNodes.length:Z.length)}else c=y.parentNode,y=Array.prototype.indexOf.call(c.childNodes,y),W.setStart(c,y),W.setEnd(c,y+1);return W},Y0V=function(y,W,c,Z){var G=_.Pu(y).createRange();
G.setStart(y,W);G.setEnd(c,Z);return G};
_.f=UM.prototype;_.f.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.f.getContainer=function(){return this.range_.commonAncestorContainer};
_.f.compareBrowserRangeEndpoints=function(y,W,c){return this.range_.compareBoundaryPoints(c==1?W==1?_.DH.Range.START_TO_START:_.DH.Range.START_TO_END:W==1?_.DH.Range.END_TO_START:_.DH.Range.END_TO_END,y)};
_.f.isCollapsed=function(){return this.range_.collapsed};
_.f.select=function(y){this.selectInternal(pP(_.Pu(this.range_.startContainer)).getSelection(),y)};
_.f.selectInternal=function(y){y.removeAllRanges();y.addRange(this.range_)};
_.f.insertNode=function(y,W){var c=this.range_.cloneRange();c.collapse(W);c.insertNode(y);c.detach();return y};
_.f.collapse=function(y){this.range_.collapse(y)};_.j6(M4,UM);M4.prototype.selectInternal=function(y,W){!W||this.isCollapsed()?M4.superClass_.selectInternal.call(this,y,W):(y.collapse(this.range_.endContainer,this.range_.endOffset),y.extend(this.range_.startContainer,this.range_.startOffset))};_.j6(eN,UM);eN.prototype.compareBrowserRangeEndpoints=function(y,W,c){return eN.superClass_.compareBrowserRangeEndpoints.call(this,y,W,c)};
eN.prototype.selectInternal=function(y,W){W?y.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):y.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var mM5=function(y){return _.oE?new eN(y):_.fi?new M4(y):new UM(y)};var $K=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},s5V;
_.j6($K,fVE);s5V=function(y,W){var c=new $K;c.browserRangeWrapper_=y;c.isReversed_=!!W;return c};
_.uXi=function(y){y=_.oE?new eN(zPV(y)):_.fi?new M4(zPV(y)):new UM(zPV(y));return s5V(y)};
_.KG=function(y,W,c,Z){var G=new $K;G.isReversed_=tjV(y,W,c,Z);if(_.Hn(y)&&!R_(y)){var D=y.parentNode;W=Array.prototype.indexOf.call(D.childNodes,y);y=D}_.Hn(c)&&!R_(c)&&(D=c.parentNode,Z=Array.prototype.indexOf.call(D.childNodes,c),c=D);G.isReversed_?(G.startNode_=c,G.startOffset_=Z,G.endNode_=y,G.endOffset_=W):(G.startNode_=y,G.startOffset_=W,G.endNode_=c,G.endOffset_=Z);return G};
_.f=$K.prototype;_.f.clone=function(){var y=new $K;y.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();y.startNode_=this.startNode_;y.startOffset_=this.startOffset_;y.endNode_=this.endNode_;y.endOffset_=this.endOffset_;y.isReversed_=this.isReversed_;return y};
_.f.JSC$9101_getType=function(){return"text"};
_.f.getBrowserRangeObject=function(){return OM(this).range_};
_.f.getTextRangeCount=function(){return 1};
_.f.getTextRange=function(){return this};
var OM=function(y){var W;if(!(W=y.browserRangeWrapper_)){W=y.JSC$9101_getStartNode();var c=y.JSC$9101_getStartOffset(),Z=y.JSC$9101_getEndNode(),G=y.JSC$9101_getEndOffset();W=_.oE?new eN(Y0V(W,c,Z,G)):_.fi?new M4(Y0V(W,c,Z,G)):new UM(Y0V(W,c,Z,G));W=y.browserRangeWrapper_=W}return W};
_.f=$K.prototype;_.f.getContainer=function(){return OM(this).getContainer()};
_.f.JSC$9101_getStartNode=function(){var y;(y=this.startNode_)||(y=this.startNode_=OM(this).range_.startContainer);return y};
_.f.JSC$9101_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=OM(this).range_.startOffset};
_.f.JSC$9101_getEndNode=function(){var y;(y=this.endNode_)||(y=this.endNode_=OM(this).range_.endContainer);return y};
_.f.JSC$9101_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=OM(this).range_.endOffset};
_.f.isReversed=function(){return this.isReversed_};
_.f.JSC$9101_containsRange=function(y,W){if(y.JSC$9101_getType()=="text"){var c=OM(this);y=OM(y);W=W&&!y.isCollapsed();y=y.range_;c=W?c.compareBrowserRangeEndpoints(y,0,1)>=0&&c.compareBrowserRangeEndpoints(y,1,0)<=0:c.compareBrowserRangeEndpoints(y,0,0)>=0&&c.compareBrowserRangeEndpoints(y,1,1)<=0}else c=!1;return c};
_.f.isCollapsed=function(){return OM(this).isCollapsed()};
_.f.JSC$9101_getText=function(){return OM(this).range_.toString()};
_.f.__iterator__=function(){return new Fz(this.JSC$9101_getStartNode(),this.JSC$9101_getStartOffset(),this.JSC$9101_getEndNode(),this.JSC$9101_getEndOffset())};
_.f.select=function(){OM(this).select(this.isReversed_)};
_.f.JSC$9101_removeContents=function(){var y=OM(this).range_;y.extractContents();if(y.startContainer.hasChildNodes()&&(y=y.startContainer.childNodes[y.startOffset])){var W=y.previousSibling;R03(y)==""&&_.to(y);W&&R03(W)==""&&_.to(W)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.f.insertNode=function(y,W){y=OM(this).insertNode(y,W);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return y};
_.f.collapse=function(y){y=this.isReversed()?!y:y;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(y);y?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var nmm=function(){};
_.j6(nmm,fVE);nmm.prototype.JSC$9101_containsRange=function(y,W){var c=rH(this);y=rH(y);return(W?Av:_.oZh)(y,function(Z){return Av(c,function(G){return G.JSC$9101_containsRange(Z,W)})})};
nmm.prototype.insertNode=function(y,W){W?_.NL(y,this.JSC$9101_getStartNode()):_.I_(y,this.JSC$9101_getEndNode());return y};var XQE,b6J=EXm(FF()).documentElement;XQE=b6J.requestFullscreen?"fullscreenchange":b6J.webkitRequestFullscreen?"webkitfullscreenchange":b6J.mozRequestFullScreen?"mozfullscreenchange":b6J.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var rxW=function(){var y=EXm(FF());return!!(y.webkitIsFullScreen||y.mozFullScreen||y.msFullscreenElement||y.fullscreenElement)};var gH=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.j6(gH,nmm);_.f=gH.prototype;_.f.clone=function(){var y=new gH;y.browserRanges_=_.SI(this.browserRanges_);return y};
_.f.JSC$9101_getType=function(){return"mutli"};
_.f.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.f.getTextRangeCount=function(){return this.browserRanges_.length};
_.f.getTextRange=function(y){this.ranges_[y]||(this.ranges_[y]=s5V(mM5(this.browserRanges_[y])));return this.ranges_[y]};
_.f.getContainer=function(){if(!this.container_){for(var y=[],W=this.getTextRangeCount(),c=0;c<W;c++)y.push(this.getTextRange(c).getContainer());this.container_=rnZ.apply(null,y)}return this.container_};
var RX=function(y){y.sortedRanges_||(y.sortedRanges_=rH(y),y.sortedRanges_.sort(function(W,c){var Z=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();var G=c.JSC$9101_getStartNode();c=c.JSC$9101_getStartOffset();return Z==G&&W==c?0:tjV(Z,W,G,c)?1:-1}));
return y.sortedRanges_};
_.f=gH.prototype;_.f.JSC$9101_getStartNode=function(){return RX(this)[0].JSC$9101_getStartNode()};
_.f.JSC$9101_getStartOffset=function(){return RX(this)[0].JSC$9101_getStartOffset()};
_.f.JSC$9101_getEndNode=function(){return _.Ca(RX(this)).JSC$9101_getEndNode()};
_.f.JSC$9101_getEndOffset=function(){return _.Ca(RX(this)).JSC$9101_getEndOffset()};
_.f.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.f.JSC$9101_getText=function(){return rH(this).map(function(y){return y.JSC$9101_getText()}).join("")};
_.f.__iterator__=function(){return new l_(this)};
_.f.select=function(){var y=this.getWindow().getSelection();y.removeAllRanges();for(var W=this.getTextRangeCount(),c=0;c<W;c++)y.addRange(this.getTextRange(c).getBrowserRangeObject())};
_.f.JSC$9101_removeContents=function(){rH(this).forEach(function(y){y.JSC$9101_removeContents()})};
_.f.collapse=function(y){if(!this.isCollapsed()){var W=y?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;W.collapse(y);this.ranges_=[W];this.sortedRanges_=[W];this.browserRanges_=[W.getBrowserRangeObject()]}};
var l_=function(y){this.iterators_=null;this.currentIdx_=0;y&&(this.iterators_=RX(y).map(function(W){return _.h2Q(W)}));
b_.call(this,y?this.JSC$9107_getStartNode():null,!1,!0)};
_.j6(l_,omE);_.f=l_.prototype;_.f.JSC$9107_getStartNode=function(){return this.iterators_[0].JSC$9107_getStartNode()};
_.f.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.f.next=function(){for(;this.currentIdx_<this.iterators_.length;){var y=this.iterators_[this.currentIdx_],W=y.next();if(W.done)this.currentIdx_++;else return Xz(this,y.node,y.tagType,y.depth),W}return wq};
_.f.JSC$9099_copyFrom=function(y){this.iterators_=_.SI(y.iterators_);l_.superClass_.JSC$9099_copyFrom.call(this,y)};
_.f.clone=function(){var y=new l_(null);y.JSC$9099_copyFrom(this);return y};var FDi,tjV;_.tD=function(){var y=window.getSelection();return y&&FDi(y)};
FDi=function(y){var W=!1;if(y.createRange)try{var c=y.createRange()}catch(G){return null}else if(y.rangeCount){if(y.rangeCount>1){c=new gH;W=y.rangeCount;for(var Z=0;Z<W;Z++)c.browserRanges_.push(y.getRangeAt(Z));return c}c=y.getRangeAt(0);W=tjV(y.anchorNode,y.anchorOffset,y.focusNode,y.focusOffset)}else return null;return s5V(mM5(c),W)};
_.EM=function(y,W){return _.KG(y,W,y,W)};
_.Nh=function(y,W,c,Z){return _.KG(y,W,c,Z)};
tjV=function(y,W,c,Z){if(y==c)return Z<W;var G;if(y.nodeType==1&&W)if(G=y.childNodes[W])y=G,W=0;else if(_.Cg(y,c))return!0;if(c.nodeType==1&&Z)if(G=c.childNodes[Z])c=G,Z=0;else if(_.Cg(c,y))return!1;return(bfE(y,c)||W-Z)>0};var IX=function(){_.uU.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.$r)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.$r)(this.dispatchProgressEvent_,this)};
_.j6(IX,_.uU);IX.prototype.abort=function(){try{this.reader_.abort()}catch(y){throw new iDQ(y,"aborting read");}};
IX.prototype.getError=function(){return this.reader_.error&&new iDQ(this.reader_.error,"reading file")};
IX.prototype.dispatchProgressEvent_=function(y){this.dispatchEvent(new MuV(y,this))};
IX.prototype.disposeInternal=function(){IX.superClass_.disposeInternal.call(this);delete this.reader_};
var $Mi=function(y){var W=new IX,c=UMZ(W);W.reader_.readAsArrayBuffer(y);return c},KD0=function(y){var W=new IX,c=UMZ(W);
W.reader_.readAsDataURL(y);return c},UMZ=function(y){var W=new hU;
y.listen("loadend",_.Fr(function(c,Z){var G=Z.reader_.result,D=Z.getError();G==null||D?c.errback(D):c.callback(G);Z.dispose()},W,y));
return W};var pG=function(){_.uU.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9141_eventHandler_=new _.q4(this);this.JSC$9141_isInitialized_=!1};
_.j6(pG,_.uU);var O6E=new _.o4("d"),gmW=new _.o4("beforedragstart"),RP5=new _.o4("dragstart"),lVZ=new _.o4("beforedragmove"),EmE=new _.o4("dragmove"),NpT=new _.o4("beforedragend"),IVZ=new _.o4("dragend"),pQT=new _.o4("e");pG.prototype.isDragging=function(){return!!this.JSC$9141_dragger_};
var P6Q=function(y,W){W.dlgGrowthDirection_=0;W.dlgDragHoverClass_=void 0;W.dlgDragPermission=0;y.dragLists_.push(W)},Jxi=function(y,W){y.getHandleForDragItem_=W};
pG.prototype.init=function(){if(!this.JSC$9141_isInitialized_){for(var y=this.dragLists_.length,W=0;W<y;W++)for(var c=_.pd(this.dragLists_[W]),Z=c.length,G=0;G<Z;++G){var D=c[G],Y=this.getHandleForDragItem_(D),u=_.kF(Y);this.dragItemForHandle_[u]=D;this.dragItemHoverClasses_&&(this.JSC$9141_eventHandler_.listen(D,"mouseover",this.handleDragItemMouseover_),this.JSC$9141_eventHandler_.listen(D,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9141_eventHandler_.listen(Y,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9141_eventHandler_.listen(Y,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(D);this.JSC$9141_eventHandler_.listen(Y,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9141_isInitialized_=!0}};
pG.prototype.disposeInternal=function(){this.JSC$9141_eventHandler_.dispose();for(var y=this.dragLists_.length,W=0;W<y;W++){var c=this.dragLists_[W];c.dlgGrowthDirection_=void 0;c.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;Vj8(this);pG.superClass_.disposeInternal.call(this)};
var C6V=function(y,W){for(var c=y.dragLists_.length,Z=0;Z<c;Z++){var G=y.dragLists_[Z];G.dlgBounds_=g_h(G)}c=y.dragItems_.length;for(Z=0;Z<c;Z++)G=y.dragItems_[Z],G!=W&&(G.dlgBounds_=g_h(G))};
_.f=pG.prototype;
_.f.handlePotentialDragStart_=function(y){var W=_.kF(y.currentTarget);W=this.dragItemForHandle_[W];if(W.parentElement.dlgDragPermission!=2){this.currDragItem_=W;a:{W=this.currDragItem_;for(var c=W.cloneNode(!0),Z=Xe("TEXTAREA",W),G=Xe("TEXTAREA",c),D=0;D<Z.length;D++)G[D].value=Z[D].value;switch(W.tagName){case "TR":W=_.Of("TABLE",null,_.Of("TBODY",null,c));break a;case "TD":case "TH":W=_.Of("TABLE",null,_.Of("TBODY",null,_.Of("TR",null,c)));break a;case "TEXTAREA":c.value=W.value;default:W=c;break a}W=
void 0}this.draggerEl_=W;this.draggerElClasses_&&Qh(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Pu(this.currDragItem_).body.appendChild(this.draggerEl_);c=_.Vx(this.currDragItem_);W=this.draggerEl_;Z=_.Vx(W);if(c instanceof _.If){var Y=c.y;c=c.x}Qy(W,W.offsetLeft+(c-Z.x),W.offsetTop+(Number(Y)-Z.y));this.JSC$9141_dragger_=new _.NJ(this.draggerEl_);_.xV5(this.JSC$9141_dragger_,this.hysteresisDistance_);
_.Y0(this.JSC$9141_dragger_,"start",this.handleDragStart_,!1,this);_.Y0(this.JSC$9141_dragger_,"end",this.handleDragEnd_,!1,this);_.Y0(this.JSC$9141_dragger_,"earlycancel",this.JSC$9143_cleanup_,!1,this);this.dispatchEvent(new Ps(O6E,this,y,this.currDragItem_,this.draggerEl_,this.JSC$9141_dragger_));this.JSC$9141_dragger_.startDrag(y)}};
_.f.handleDragStart_=function(y){if(this.dispatchEvent(new Ps(gmW,this,y.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.tQ5(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Qh(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var W=CFJ(this.draggerEl_);this.draggerEl_.halfWidth=W.width/2;this.draggerEl_.halfHeight=W.height/2;W=this.draggerEl_.getBoundingClientRect();
var c=y.clientY,Z=iXQ(this.JSC$9141_dragger_,y.clientX);if(Z>W.right){var G=this.currDragItem_.getBoundingClientRect();this.JSC$9141_dragger_.deltaX=Z-(Z-G.left)/G.width*W.width}c=MSE(this.JSC$9141_dragger_,c);c>W.bottom&&(this.JSC$9141_dragger_.deltaY+=c-W.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";C6V(this,this.currDragItem_);this.currDragItem_.style.display="";_.Y0(this.JSC$9141_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Ps(RP5,
this,y.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9141_dragger_))}else y.preventDefault(),this.JSC$9143_cleanup_()};
_.f.handleDragMove_=function(y){var W=_.Vx(this.draggerEl_);W=new _.If(W.x+this.draggerEl_.halfWidth,W.y+this.draggerEl_.halfHeight);a:{var c=null;if(this.currDragItem_.style.display!="none"){c=this.currDragItem_.parentNode;var Z=g_h(c);if(Q52(W,Z))break a}Z=this.dragLists_.length;for(var G=0;G<Z;G++){var D=this.dragLists_[G];if(D!=c&&Q52(W,D.dlgBounds_)){c=D;break a}}c=null}if(c){if(c==null)throw Error("Vd");Z=0;G=!1;D=void 0;switch(c.dlgGrowthDirection_){case 0:Z=W.y;var Y=AxV;var u=hPT;break;case 4:G=
!0;case 2:Z=W.x;Y=Bp8;u=hPT;break;case 5:G=!0;case 3:Z=W.x,Y=H68,u=LDJ}for(var t=null,b,r=_.pd(c),F=r.length,K=0;K<F;K++){var l=r[K];if(l!=this.currDragItem_){var N=Y(l.dlgBounds_);if(G){var P=vm5(l,W);D===void 0&&(D=P);u(Z,N)&&(b==void 0||P<D||P==D&&(u(N,b)||N==b))&&(t=l,b=N);P<D&&(D=P)}else u(Z,N)&&(b==void 0||u(N,b))&&(t=l,b=N)}}Y=t!==null&&vm5(t,W)>D?null:t}else Y=null;if(!this.dispatchEvent(new Ps(lVZ,this,y,this.currDragItem_,this.draggerEl_,this.JSC$9141_dragger_,W,c,Y)))return!1;if(c&&c.dlgDragPermission!=
1)this.currDragItem_.parentNode==c&&_.tQ5(this.currDragItem_)==Y||c.insertBefore(this.currDragItem_,Y),this.currDragItem_.style.display="",c.dlgDragHoverClass_&&_.VE(c,c.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",u=this.dragLists_.length,b=0;b<u;b++)Z=this.dragLists_[b],Z.dlgDragHoverClass_&&_.Ph(Z,Z.dlgDragHoverClass_);c!=this.currHoverList_&&(this.currHoverList_=c,C6V(this,this.currDragItem_));this.dispatchEvent(new Ps(EmE,this,y,this.currDragItem_,this.draggerEl_,this.JSC$9141_dragger_,
W,c,Y));return!1};
_.f.JSC$9143_cleanup_=function(){Vj8(this);this.JSC$9141_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var y=this.dragLists_.length,W=0;W<y;W++)this.dragLists_[W].dlgBounds_=null;y=this.dragItems_.length;for(W=0;W<y;W++)this.dragItems_[W].dlgBounds_=null};
_.f.handleDragEnd_=function(y){if(!this.dispatchEvent(new Ps(NpT,this,y,this.currDragItem_,this.draggerEl_,this.JSC$9141_dragger_)))return!1;Vj8(this);this.dispatchEvent(new Ps(IVZ,this,y,this.currDragItem_,this.draggerEl_,this.JSC$9141_dragger_));this.JSC$9143_cleanup_();return!0};
var Vj8=function(y){_.Mg(y.JSC$9141_dragger_);var W=y.draggerEl_&&y.draggerEl_.parentElement;y.draggerEl_&&_.to(y.draggerEl_);y.currDragItem_&&y.currDragItem_.style.display=="none"&&(y.origList_.insertBefore(y.currDragItem_,y.origNextItem_),y.currDragItem_.style.display="");y.currDragItemClasses_&&y.currDragItem_?xPW(y.currDragItem_,y.currDragItemClasses_||[]):y.currDragItem_&&(y.currDragItem_.style.visibility="");for(var c=y.dragLists_.length,Z=0;Z<c;Z++){var G=y.dragLists_[Z];G.dlgDragHoverClass_&&
_.Ph(G,G.dlgDragHoverClass_)}W&&y.dispatchEvent(new Ps(pQT,y,null,y.currDragItem_,y.draggerEl_,y.JSC$9141_dragger_))};
_.f=pG.prototype;_.f.getHandleForDragItem_=function(y){return y};
_.f.handleDragItemMouseover_=function(y){Qh(y.currentTarget,this.dragItemHoverClasses_||[])};
_.f.handleDragItemMouseout_=function(y){xPW(y.currentTarget,this.dragItemHoverClasses_||[])};
_.f.handleDragItemHandleMouseover_=function(y){Qh(y.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.f.handleDragItemHandleMouseout_=function(y){xPW(y.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Q52=function(y,W){return y.x>W.left&&y.x<W.left+W.width&&y.y>W.top&&y.y<W.top+W.height},vm5=function(y,W){y=y.dlgBounds_;
return Math.abs(W.y-(y.top+(y.height-1)/2))},AxV=function(y){return y.top+y.height-1},Bp8=function(y){return y.left+y.width-1},H68=function(y){return y.left||0},hPT=function(y,W){return y<W},LDJ=function(y,W){return y>W},Ps=function(y,W,c,Z,G,D){_.D9.call(this,y);
this.event=c;this.currDragItem=Z;this.draggerEl=G;this.JSC$9145_dragger=D};
_.j6(Ps,_.D9);_.j6(kM,_.UR);var dM8=new _.If(0,0);kM.prototype.JSC$9149_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
kM.prototype.JSC$9149_onMouseMove=function(y){var W=this.containerIsActuallyContent_?dM8:rQ(FF(this.containerNode_)),c=this.horizontalScrolling_?this.calculateScrollDelta(y.clientX+W.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Z=this.calculateScrollDelta(y.clientY+W.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=c;this.scrollDelta_.y=Z;!(c=!c&&!Z)&&(c=this.constrainScroll_)&&(c=y.clientX+W.x,y=y.clientY+W.y,W=this.containerBounds_,c=!(W.left<=c&&W.left+W.width>=
c&&W.top<=y&&W.top+W.height>=y));c?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
kM.prototype.calculateScrollDelta=function(y,W,c){var Z=0;y<W?Z=-8:y>W+c&&(Z=8);return Z};
kM.prototype.disposeInternal=function(){kM.superClass_.disposeInternal.call(this);this.JSC$9147_eventHandler_.dispose();this.scrollTimer_.dispose()};var S0Z={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"}}},Je=S0Z;Je=S0Z;var V$={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 Tpi=function(){},hK=function(y){if(typeof y=="number"){var W=new Tpi;
W.standardOffset_=y;var c=y;if(c==0)c="Etc/GMT";else{var Z=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);Z.push(Math.floor(c/60)%100);c%=60;c!=0&&Z.push(":",_.e6(c,2));c=Z.join("")}W.timeZoneId_=c;c=y;c==0?c="UTC":(Z=["UTC",c<0?"+":"-"],c=Math.abs(c),Z.push(Math.floor(c/60)%100),c%=60,c!=0&&Z.push(":",c),c=Z.join(""));y=aVE(y);W.tzNames_=[c,c];W.tzNamesExt_={STD_LONG_NAME_GMT:y,STD_GENERIC_LOCATION:y};W.transitions_=[];return W}W=new Tpi;W.timeZoneId_=y.id;W.standardOffset_=-y.std_offset;W.tzNames_=y.names;
W.tzNamesExt_=y.names_ext;W.transitions_=y.transitions;return W},aVE=function(y){var W=["GMT"];
W.push(y<=0?"+":"-");y=Math.abs(y);W.push(_.e6(Math.floor(y/60)%100,2),":",_.e6(y%60,2));return W.join("")},xMV=function(y,W){W=Date.UTC(W.getUTCFullYear(),W.getUTCMonth(),W.getUTCDate(),W.getUTCHours(),W.getUTCMinutes())/36E5;
for(var c=0;c<y.transitions_.length&&W>=y.transitions_[c];)c+=2;return c==0?0:y.transitions_[c-1]},i6m=function(y,W){y=y.standardOffset_-xMV(y,W);
return y===-1440?0:y};var B$=function(y,W){this.patternParts_=[];this.JSC$9160_dateTimeSymbols_=W||F6;typeof y=="number"?MjJ(this,y):eP3(this,y)},wQ2=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],CG=function(y){return y.getHours?y.getHours():0},eP3=function(y,W){for(t_h&&(W=W.replace(/\u200f/g,""));W;){for(var c=W,Z=0;Z<wQ2.length;++Z){var G=W.match(wQ2[Z]);
if(G){var D=G[0];W=W.substring(D.length);Z==0&&(D=="''"?D="'":(D=D.substring(1,G[1]=="'"?D.length-1:D.length),D=D.replace(/''/g,"'")));y.patternParts_.push({text:D,type:Z});break}}if(c===W)throw Error("Wd`"+W);}};
B$.prototype.format=function(y,W){if(!y)throw Error("Xd");var c=W?(y.getTimezoneOffset()-i6m(W,y))*6E4:0,Z=c?new Date(y.getTime()+c):y,G=Z;W&&Z.getTimezoneOffset()!=y.getTimezoneOffset()&&(Z=new Date(Z.getTime()+(Z.getTimezoneOffset()-y.getTimezoneOffset())*6E4),G=new Date(y.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var D=0;D<this.patternParts_.length;++D){var Y=this.patternParts_[D].text;1==this.patternParts_[D].type?c.push(q0i(this,Y,y,Z,G,W)):c.push(Y)}return c.join("")};
var MjJ=function(y,W){if(W<4)var c=y.JSC$9160_dateTimeSymbols_.DATEFORMATS[W];else if(W<8)c=y.JSC$9160_dateTimeSymbols_.TIMEFORMATS[W-4];else if(W<12)c=y.JSC$9160_dateTimeSymbols_.DATETIMEFORMATS[W-8],c=c.replace("{1}",y.JSC$9160_dateTimeSymbols_.DATEFORMATS[W-8]),c=c.replace("{0}",y.JSC$9160_dateTimeSymbols_.TIMEFORMATS[W-8]);else if(W===12)c=y.JSC$9160_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(W===13)c=y.JSC$9160_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{MjJ(y,10);return}eP3(y,c)},Q$=function(y,W){W=String(W);
y=y.JSC$9160_dateTimeSymbols_||F6;if(y.ZERODIGIT!==void 0&&!uqa){for(var c=[],Z=0;Z<W.length;Z++){var G=W.charCodeAt(Z);c.push(48<=G&&G<=57?String.fromCharCode(y.ZERODIGIT+G-48):W.charAt(Z))}W=c.join("")}return W},uqa=!1,t_h=!1,j9V=function(y,W,c,Z){c=c.getFullYear();
c<=0&&Z&&(c=1-c);return Q$(y,ks3(c,W))},ks3=function(y,W){W==2&&(y%=100);
y<0&&W++;return _.e6(y,W)},Ae=function(y){if(!(y.getHours&&y.getSeconds&&y.getMinutes))throw Error("Yd");
},y32=function(y,W){Ae(W);
W=CG(W);return y.JSC$9160_dateTimeSymbols_.AMPMS[W>=12&&W<24?1:0]},q0i=function(y,W,c,Z,G,D){var Y=W.length;
switch(W.charAt(0)){case "G":return c=Z.getFullYear()>0?1:0,Y>=4?y.JSC$9160_dateTimeSymbols_.ERANAMES[c]:y.JSC$9160_dateTimeSymbols_.ERAS[c];case "y":return j9V(y,Y,Z,!0);case "Y":return c=(new Date(cxE(Z.getFullYear(),Z.getMonth(),Z.getDate(),y.JSC$9160_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,y.JSC$9160_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Y==2&&(c%=100),Q$(y,ks3(c,Y));case "u":return j9V(y,Y,Z,!1);case "M":a:switch(c=Z.getMonth(),Y){case 5:Y=y.JSC$9160_dateTimeSymbols_.NARROWMONTHS[c];break a;
case 4:Y=y.JSC$9160_dateTimeSymbols_.MONTHS[c];break a;case 3:Y=y.JSC$9160_dateTimeSymbols_.SHORTMONTHS[c];break a;default:Y=Q$(y,_.e6(c+1,Y))}return Y;case "k":return Ae(G),Q$(y,_.e6(CG(G)||24,Y));case "S":return Q$(y,(G.getMilliseconds()/1E3).toFixed(Math.min(3,Y)).slice(2)+(Y>3?_.e6(0,Y-3):""));case "E":return c=Z.getDay(),Y>=4?y.JSC$9160_dateTimeSymbols_.WEEKDAYS[c]:y.JSC$9160_dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return y32(y,G);case "b":return y32(y,G);case "B":return y32(y,G);case "h":return Ae(G),
Q$(y,_.e6(CG(G)%12||12,Y));case "K":return Ae(G),Q$(y,_.e6(CG(G)%12,Y));case "H":return Ae(G),Q$(y,_.e6(CG(G),Y));case "c":a:switch(c=Z.getDay(),Y){case 5:Y=y.JSC$9160_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:Y=y.JSC$9160_dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:Y=y.JSC$9160_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:Y=Q$(y,_.e6(c,1))}return Y;case "L":a:switch(c=Z.getMonth(),Y){case 5:Y=y.JSC$9160_dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;
case 4:Y=y.JSC$9160_dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:Y=y.JSC$9160_dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:Y=Q$(y,_.e6(c+1,Y))}return Y;case "Q":return c=Math.floor(Z.getMonth()/3),Y<4?y.JSC$9160_dateTimeSymbols_.SHORTQUARTERS[c]:y.JSC$9160_dateTimeSymbols_.QUARTERS[c];case "d":return Q$(y,_.e6(Z.getDate(),Y));case "m":return Ae(G),Q$(y,_.e6(G.getMinutes?G.getMinutes():0,Y));case "s":return Ae(G),Q$(y,_.e6(G.getSeconds(),Y));case "v":return(D||hK(c.getTimezoneOffset())).timeZoneId_;
case "V":return y=D||hK(c.getTimezoneOffset()),Y<=2?y.timeZoneId_:xMV(y,c)>0?y.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?y.tzNamesExt_.DST_GENERIC_LOCATION:y.tzNamesExt_.DST_GENERIC_LOCATION:y.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?y.tzNamesExt_.STD_GENERIC_LOCATION:y.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=cxE(G.getFullYear(),G.getMonth(),G.getDate(),y.JSC$9160_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,y.JSC$9160_dateTimeSymbols_.FIRSTDAYOFWEEK),Q$(y,_.e6(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Y));case "z":return y=D||hK(c.getTimezoneOffset()),Y<4?y.tzNames_[xMV(y,c)>0?2:0]:y.tzNames_[xMV(y,c)>0?3:1];case "Z":return W=D||hK(c.getTimezoneOffset()),Y<4?(Y=-i6m(W,c),y=[Y<0?"-":"+"],Y=Math.abs(Y),y.push(_.e6(Math.floor(Y/60)%100,2),_.e6(Y%60,2)),Y=y.join("")):Y=Q$(y,aVE(i6m(W,c))),Y;default:return""}};var WIE=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,c3m=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,GEF=function(y){this.patternParts_=[];this.JSC$9169_dateTimeSymbols_=F6;if(typeof y=="number"){y>11&&(y=10);if(y<4)var W=this.JSC$9169_dateTimeSymbols_.DATEFORMATS[y];else y<8?W=this.JSC$9169_dateTimeSymbols_.TIMEFORMATS[y-4]:(W=this.JSC$9169_dateTimeSymbols_.DATETIMEFORMATS[y-8],W=W.replace("{1}",this.JSC$9169_dateTimeSymbols_.DATEFORMATS[y-8]),W=W.replace("{0}",this.JSC$9169_dateTimeSymbols_.TIMEFORMATS[y-
8]));ZNV(this,W)}else ZNV(this,y)},ZNV=function(y,W){for(var c=!1,Z="",G=0;G<W.length;G++){var D=W.charAt(G);
if(WIE.test(D))for(Z.length>0&&(y.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z=""),y.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});G<W.length-1&&W.charAt(G+1)==" ";)G++;else if(c)D=="'"?G+1<W.length&&W.charAt(G+1)=="'"?(Z+="'",G++):c=!1:Z+=D;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(D)>=0){Z.length>0&&(y.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z="");for(var Y=W.charAt(G),u=G+1;u<W.length&&W.charAt(u)==Y;)u++;Y=u-G;Y<=0?u=!1:(u="MydhHmsSDkK".indexOf(D),
u=u>0||u==0&&Y<3);y.patternParts_.push({text:D,count:Y,abutStart:!1,numeric:u});G+=Y-1}else D=="'"?G+1<W.length&&W.charAt(G+1)=="'"?(Z+="'",G++):c=!0:Z+=D}Z.length>0&&y.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1});W=!1;for(c=0;c<y.patternParts_.length;c++)y.patternParts_[c].numeric?!W&&c+1<y.patternParts_.length&&y.patternParts_[c+1].numeric&&(W=!0,y.patternParts_[c].abutStart=!0):W=!1};
GEF.prototype.parse=function(y,W,c){var Z=!1,G=!1;c&&(Z=c.predictive||!1,G=c.validate||!1);if(Z)for(c=0;c<this.patternParts_.length;c++){var D=this.patternParts_[c];if(D.count>0&&("abBhHkKm".indexOf(D.text.charAt(0))<0||D.count>2||D.abutStart))throw Error("Zd`"+D.text.charAt(0));}D=new GPE;c=[0];D.dayPeriodIndex=-1;for(var Y=0;Y<this.patternParts_.length&&!(Z&&c[0]>=y.length);Y++){if(this.patternParts_[Y].count==0){a:{var u=y;var t=c,b=this.patternParts_[Y],r=Z;if(b.text.match(WIE)!=null){if(b=t[0],
fzV(u,t),t[0]>b){u=!0;break a}}else{if(u.indexOf(b.text,t[0])==t[0]){t[0]+=b.text.length;u=!0;break a}if(r&&b.text.indexOf(u.substring(t[0]))==0){t[0]+=u.length-t[0];u=!0;break a}}u=!1}if(u)continue;return 0}if(this.patternParts_[Y].abutStart){a:{t=y;b=c;r=Y;var F=b[0],K=0;for(u=r;u<this.patternParts_.length;u++){var l=this.patternParts_[u],N=l.count;if(N===0)break;if(u==r&&(N-=K,K++,N==0)){u=0;break a}var P=u>r&&l.numeric,V=b[0];if(!o05(this,t,b,l,N,D,!1)||P&&b[0]-V<N)u=r-1,b[0]=F}u-=r}if(u<=0)return 0;
Y+=u-1}else if(!o05(this,y,c,this.patternParts_[Y],0,D,Z))return 0}a:{y=G;if(W==null)throw Error("$d");D.era!=void 0&&D.year!=void 0&&D.era==0&&D.year>0&&(D.year=-(D.year-1));D.year!=void 0&&W.setFullYear(D.year);Z=W.getDate();W.setDate(1);D.month!=void 0&&W.setMonth(D.month);D.day!=void 0?W.setDate(D.day):(G=VFE(W.getFullYear(),W.getMonth()),W.setDate(Z>G?G:Z));typeof W.setHours==="function"&&(D.hours==void 0&&(D.hours=W.getHours()),D.hours<12&&(D.ampm!=void 0&&D.ampm>0?D.hours+=12:D.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(D.dayPeriodName)||["night1","night2"].includes(D.dayPeriodName)&&D.hours>=6)&&(D.hours+=12)),W.setHours(D.hours));typeof W.setMinutes==="function"&&D.minutes!=void 0&&W.setMinutes(D.minutes);typeof W.setSeconds==="function"&&D.seconds!=void 0&&W.setSeconds(D.seconds);typeof W.setMilliseconds==="function"&&D.milliseconds!=void 0&&W.setMilliseconds(D.milliseconds);if(y&&(D.year&&D.year!=W.getFullYear()||D.month&&D.month!=
W.getMonth()||D.day&&D.day!=W.getDate()||D.hours&&D.hours>=24||D.minutes&&D.minutes>=60||D.seconds&&D.seconds>=60||D.milliseconds&&D.milliseconds>=1E3))W=!1;else{D.tzOffset!=void 0&&W.setTime(W.getTime()+(D.tzOffset-W.getTimezoneOffset())*60*1E3);D.ambiguousYear&&(y=new Date,y.setFullYear(y.getFullYear()-80),W.getTime()<y.getTime()&&W.setFullYear(y.getFullYear()+100));if(D.dayOfWeek!=void 0)if(D.day==void 0)D=(7+D.dayOfWeek-W.getDay())%7,D>3&&(D-=7),y=W.getMonth(),W.setDate(W.getDate()+D),W.getMonth()!=
y&&W.setDate(W.getDate()+(D>0?-7:7));else if(D.dayOfWeek!=W.getDay()){W=!1;break a}W=!0}}return W?c[0]:0};
var o05=function(y,W,c,Z,G,D,Y){fzV(W,c);if(Z.numeric&&G>0&&c[0]+G>W.length)return!1;switch(Z.text.charAt(0)){case "G":return he(W,c,[y.JSC$9169_dateTimeSymbols_.ERAS],function(u){return D.era=u}),!0;
case "M":case "L":return DiE(y,W,c,G,Z,D);case "E":return he(W,c,[y.JSC$9169_dateTimeSymbols_.WEEKDAYS,y.JSC$9169_dateTimeSymbols_.SHORTWEEKDAYS],function(u){return D.dayOfWeek=u});
case "B":case "b":return G=[],y=[[].concat(y.JSC$9169_dateTimeSymbols_.AMPMS)],G.push("isAm"),G.push("isPm"),W=he(W,c,y,function(u){return D.dayPeriodIndex=u},Y),D.dayPeriodName=G[D.dayPeriodIndex],Y?W:!0;
case "a":return W=he(W,c,[y.JSC$9169_dateTimeSymbols_.AMPMS],function(u){return D.ampm=u},Y),Y?W:!0;
case "y":return zW0(y,W,c,Z,G,D);case "Q":return he(W,c,[y.JSC$9169_dateTimeSymbols_.QUARTERS,y.JSC$9169_dateTimeSymbols_.SHORTQUARTERS],function(u){D.month=u*3;D.day=1});
case "d":return Bs(y,W,c,Z,G,function(u){D.day=u}),!0;
case "S":return YH3(y,W,c,G,D);case "h":case "K":case "H":case "k":return W=Bs(y,W,c,Z,G,function(u){D.hours=Z.text.charAt(0)==="h"&&u===12?0:u},Y),Y?W:!0;
case "m":return W=Bs(y,W,c,Z,G,function(u){D.minutes=u},Y),Y?W:!0;
case "s":return Bs(y,W,c,Z,G,function(u){D.seconds=u}),!0;
case "z":case "Z":case "v":return mi0(y,W,c,D);default:return!1}},zW0=function(y,W,c,Z,G,D){var Y=c[0];
G=Hs(y,W,c,G);G===null&&(G=Hs(y,W,c,0,!0));if(G===null)return!1;G>=0&&c[0]-Y==2&&Z.count==2?(y=G,W=(new Date).getFullYear()-80,c=W%100,D.ambiguousYear=y==c,y+=Math.floor(W/100)*100+(y<c?100:0),D.year=y):D.year=G;return!0},DiE=function(y,W,c,Z,G,D){return G.numeric&&Bs(y,W,c,G,Z,function(Y){D.month=Y-1})?!0:he(W,c,[y.JSC$9169_dateTimeSymbols_.MONTHS,
y.JSC$9169_dateTimeSymbols_.STANDALONEMONTHS,y.JSC$9169_dateTimeSymbols_.SHORTMONTHS,y.JSC$9169_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Y){D.month=Y})},YH3=function(y,W,c,Z,G){var D=c[0];
y=Hs(y,W,c,Z);if(y===null)return!1;c=c[0]-D;G.milliseconds=c<3?y*Math.pow(10,3-c):Math.round(y/Math.pow(10,c-3));return!0},mi0=function(y,W,c,Z){W.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);
if(c[0]>=W.length)return Z.tzOffset=0,!0;var G=c[0],D=Hs(y,W,c,0,!0);if(D===null)return!1;if(c[0]<W.length&&W.charAt(c[0])==":"){var Y=D*60;c[0]++;D=Hs(y,W,c,0);if(D===null)return!1;Y+=D}else Y=D,Y=Y<24&&c[0]-G<=3?Y*60:Y%100+Y/100*60;Z.tzOffset=-Y;return!0},Bs=function(y,W,c,Z,G,D,Y){Y=Y||!1;
var u=c[0];y=Hs(y,W,c,G);if(y===null)return!1;if(Y&&c[0]-u<Z.count){if(c[0]<W.length)return!1;y*=Math.pow(10,Z.count-(c[0]-u))}D(y);return!0},he=function(y,W,c,Z,G){G=G||!1;
for(var D,Y=0;Y<c.length;Y++){D=W;for(var u=c[Y],t=G,b=0,r=null,F=y.substring(D[0]).toLowerCase(),K=0;K<u.length;K++){var l=u[K].toLowerCase();if(t&&l.indexOf(F)==0){b=F.length;r=K;break}u[K].length>b&&F.indexOf(l)==0&&(b=u[K].length,r=K)}r!==null&&(D[0]+=b);D=r;if(D!==null)return Z(D),!0}return!1},fzV=function(y,W){(y=y.substring(W[0]).match(c3m))&&(W[0]+=y[0].length)},Hs=function(y,W,c,Z,G){W=Z>0?W.substring(0,c[0]+Z):W;
G=G||!1;if(y.JSC$9169_dateTimeSymbols_.ZERODIGIT){Z=[];for(var D=c[0];D<W.length;D++){var Y=W.charCodeAt(D)-y.JSC$9169_dateTimeSymbols_.ZERODIGIT;Z.push(0<=Y&&Y<=9?String.fromCharCode(Y+48):W.charAt(D))}W=Z.join("")}else W=W.substring(c[0]);y=W.match(new RegExp("^"+(G?"[+-]?":"")+"\\d+"));if(!y)return null;c[0]+=y[0].length;return parseInt(y[0],10)},GPE=function(){};
GPE.prototype.ambiguousYear=!1;_.s9V={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 uxV={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"},tl0=uxV,n0E=uxV;n0E=tl0=uxV;var bNV,LG,dH,TyD,vs,XhQ;
_.Cq=function(y,W,c,Z){var G;if(G=W){a:if(W&&W.length===3){for(G=0;G<3;G++){var D=W[G];if(D<"A"||D>"Z"&&D<"a"||D>"z"){G=!1;break a}}G=!0}else G=!1;G=!G}if(G)throw new TypeError("ae");this.intlCurrencyCode_=W?W.toUpperCase():null;this.currencyStyle_=c||0;this.overrideNumberFormatSymbols_=Z||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_=LG(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof y==="number")switch(y){case 1:vs(this,LG(this).DECIMAL_PATTERN);break;case 2:vs(this,LG(this).SCIENTIFIC_PATTERN);break;case 3:vs(this,LG(this).PERCENT_PATTERN);break;case 4:y=LG(this).CURRENCY_PATTERN;W=["0"];if(c=
V$[dH(this)]){c=c[0]&7;if(c>0)for(W.push("."),Z=0;Z<c;Z++)W.push("0");y=y.replace(/0.00/g,W.join(""))}vs(this,y);break;case 5:XhQ(this,1);break;case 6:XhQ(this,2);break;default:throw Error("de");}else vs(this,y)};
bNV=!1;LG=function(y){return y.overrideNumberFormatSymbols_||(bNV?n0E:tl0)};
dH=function(y){return y.intlCurrencyCode_||LG(y).DEF_CURRENCY_CODE};
TyD=function(y,W){if(W>308)throw Error("ce`"+W);y.maximumFractionDigits_=W;return y};
vs=function(y,W){var c=[0];y.positivePrefix_=r3J(y,W,c);for(var Z=c[0],G=-1,D=0,Y=0,u=0,t=-1,b=W.length,r=!0;c[0]<b&&r;c[0]++)switch(W.charAt(c[0])){case "#":Y>0?u++:D++;t>=0&&G<0&&t++;break;case "0":if(u>0)throw Error("je`"+W);Y++;t>=0&&G<0&&t++;break;case ",":t>0&&y.groupingArray_.push(t);t=0;break;case ".":if(G>=0)throw Error("ke`"+W);G=D+Y+u;break;case "E":if(y.useExponentialNotation_)throw Error("le`"+W);y.useExponentialNotation_=!0;y.minExponentDigits_=0;c[0]+1<b&&W.charAt(c[0]+1)=="+"&&(c[0]++,
y.useSignForPositiveExponent_=!0);for(;c[0]+1<b&&W.charAt(c[0]+1)=="0";)c[0]++,y.minExponentDigits_++;if(D+Y<1||y.minExponentDigits_<1)throw Error("me`"+W);r=!1;break;default:c[0]--,r=!1}Y==0&&D>0&&G>=0&&(Y=G,Y==0&&Y++,u=D-Y,D=Y-1,Y=1);if(G<0&&u>0||G>=0&&(G<D||G>D+Y)||t==0)throw Error("ne`"+W);u=D+Y+u;y.maximumFractionDigits_=G>=0?u-G:0;G>=0&&(y.minimumFractionDigits_=D+Y-G,y.minimumFractionDigits_<0&&(y.minimumFractionDigits_=0));y.minimumIntegerDigits_=(G>=0?G:u)-D;y.useExponentialNotation_&&(y.maximumIntegerDigits_=
D+y.minimumIntegerDigits_,y.maximumFractionDigits_==0&&y.minimumIntegerDigits_==0&&(y.minimumIntegerDigits_=1));y.groupingArray_.push(Math.max(0,t));y.decimalSeparatorAlwaysShown_=G==0||G==u;Z=c[0]-Z;y.positiveSuffix_=r3J(y,W,c);c[0]<W.length&&W.charAt(c[0])==";"?(c[0]++,y.multiplier_!=1&&(y.negativePercentSignExpected_=!0),y.negativePrefix_=r3J(y,W,c),c[0]+=Z,y.negativeSuffix_=r3J(y,W,c)):(y.negativePrefix_+=y.positivePrefix_,y.negativeSuffix_+=y.positiveSuffix_)};
XhQ=function(y,W){y.compactStyle_=W;vs(y,LG(y).DECIMAL_PATTERN);y.minimumFractionDigits_=0;TyD(y,2);if(y.minimumFractionDigits_>0)throw Error("be");y.significantDigits_=2};
_.Cq.prototype.parse=function(y,W){W=W||[0];if(this.compactStyle_!==0)throw Error("ee");y=y.replace(/ |\u202f/g,"\u00a0");var c=y.indexOf(this.positivePrefix_,W[0])==W[0],Z=y.indexOf(this.negativePrefix_,W[0])==W[0];c&&Z&&(this.positivePrefix_.length>this.negativePrefix_.length?Z=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?W[0]+=this.positivePrefix_.length:Z&&(W[0]+=this.negativePrefix_.length);if(y.indexOf(LG(this).INFINITY,W[0])==W[0]){W[0]+=LG(this).INFINITY.length;var G=
Infinity}else{G=y;var D=!1,Y=!1,u=!1,t=-1,b=1,r=LG(this).DECIMAL_SEP,F=LG(this).GROUP_SEP,K=LG(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");F=F.replace(/\u202f/g,"\u00a0");for(var l="";W[0]<G.length;W[0]++){var N=G.charAt(W[0]),P=FI0(this,N);if(P>=0&&P<=9)l+=P,u=!0;else if(N==r.charAt(0)){if(D||Y)break;l+=".";D=!0}else if(N==F.charAt(0)&&("\u00a0"!=F.charAt(0)||W[0]+1<G.length&&FI0(this,G.charAt(W[0]+1))>=0)){if(D||Y)break}else if(N==K.charAt(0)){if(Y)break;l+="E";Y=!0;t=W[0]}else if(N==
"+"||N=="-"){if(u&&t!=W[0]-1)break;l+=N}else if(this.multiplier_==1&&N==LG(this).PERCENT.charAt(0)){if(b!=1)break;b=100;if(u){W[0]++;break}}else if(this.multiplier_==1&&N==LG(this).PERMILL.charAt(0)){if(b!=1)break;b=1E3;if(u){W[0]++;break}}else break}this.multiplier_!=1&&(b=this.multiplier_);G=parseFloat(l)/b}if(c){if(y.indexOf(this.positiveSuffix_,W[0])!=W[0])return NaN;W[0]+=this.positiveSuffix_.length}else if(Z){if(y.indexOf(this.negativeSuffix_,W[0])!=W[0])return NaN;W[0]+=this.negativeSuffix_.length}return Z?
-G:G};
_.Cq.prototype.format=function(y){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(y))return LG(this).NAN;var W=[];var c=y;if(this.compactStyle_==0)c=S0;else{c=Math.abs(c);var Z=UiZ(this,c<=1?0:$iE(c)).divisorBase;c=UiZ(this,Z+$iE(KI0(this,TC(c,-Z)).intValue))}y=TC(y,-c.divisorBase);(Z=y<0||y==0&&1/y<0)?c.negative_prefix?W.push(c.negative_prefix):(W.push(c.prefix),W.push(this.negativePrefix_)):(W.push(c.prefix),W.push(this.positivePrefix_));if(isFinite(y))if(y*=
Z?-1:1,y*=this.multiplier_,this.useExponentialNotation_){var G=y;if(G==0)ONV(this,G,this.minimumIntegerDigits_,W),g0m(this,0,W);else{var D=Math.floor(Math.log(G)/Math.log(10)+2E-15);G=TC(G,-D);var Y=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Y=D%this.maximumIntegerDigits_,Y<0&&(Y=this.maximumIntegerDigits_+Y),G=TC(G,Y),D-=Y,Y=1):this.minimumIntegerDigits_<1?(D++,G=TC(G,-1)):(D-=this.minimumIntegerDigits_-1,G=TC(G,this.minimumIntegerDigits_-
1));ONV(this,G,Y,W);g0m(this,D,W)}}else ONV(this,y,this.minimumIntegerDigits_,W);else W.push(LG(this).INFINITY);Z?c.negative_suffix?W.push(c.negative_suffix):(isFinite(y)&&W.push(c.suffix),W.push(this.negativeSuffix_)):(isFinite(y)&&W.push(c.suffix),W.push(this.positiveSuffix_));return W.join("")};
var KI0=function(y,W){var c=TC(W,y.maximumFractionDigits_);y.significantDigits_>0&&(c=RW2(c,y.significantDigits_,y.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var Z=Math.floor(TC(c,-y.maximumFractionDigits_));c=Math.floor(c-TC(Z,y.maximumFractionDigits_));if(c<0||c>=TC(1,y.maximumFractionDigits_))Z=Math.round(W),c=0}else Z=W,c=0;return{intValue:Z,fracValue:c}},ONV=function(y,W,c,Z){if(y.minimumFractionDigits_>y.maximumFractionDigits_)throw Error("ge");
Z||(Z=[]);W=KI0(y,W);var G=W.intValue,D=W.fracValue,Y=y.minimumFractionDigits_>0||D>0||!1;W=y.minimumFractionDigits_;Y&&(W=y.minimumFractionDigits_);for(var u="",t=G;t>1E20;)u="0"+u,t=Math.round(TC(t,-1));u=t+u;var b=LG(y).DECIMAL_SEP;t=LG(y).ZERO_DIGIT.codePointAt(0);var r=u.length,F=0;if(G>0||c>0){for(G=r;G<c;G++)Z.push(String.fromCodePoint(t));if(y.groupingArray_.length>=2)for(c=1;c<y.groupingArray_.length;c++)F+=y.groupingArray_[c];c=r-F;if(c>0){G=y.groupingArray_;F=r=0;for(var K,l=LG(y).GROUP_SEP,
N=u.length,P=0;P<N;P++)if(Z.push(String.fromCodePoint(t+Number(u.charAt(P)))),N-P>1)if(K=G[F],P<c){var V=c-P;(K===1||K>0&&V%K===1)&&Z.push(l)}else F<G.length&&(P===c?F+=1:K===P-c-r+1&&(Z.push(l),r+=K,F+=1))}else{c=u;u=y.groupingArray_;G=LG(y).GROUP_SEP;K=c.length;l=[];for(r=u.length-1;r>=0&&K>0;r--){F=u[r];for(N=0;N<F&&K-N-1>=0;N++)l.push(String.fromCodePoint(t+Number(c.charAt(K-N-1))));K-=F;K>0&&l.push(G)}Z.push.apply(Z,l.reverse())}}else Y||Z.push(String.fromCodePoint(t));(y.decimalSeparatorAlwaysShown_||
Y)&&Z.push(b);D=String(D);Y=D.split("e+");Y.length==2&&(D=String(RW2(parseFloat(Y[0]),y.significantDigits_,1)),D=D.replace(".",""),D+=(0,_.I0V)("0",parseInt(Y[1],10)-D.length+1));y.maximumFractionDigits_+1>D.length&&(D="1"+(0,_.I0V)("0",y.maximumFractionDigits_-D.length)+D);for(y=D.length;D.charAt(y-1)=="0"&&y>W+1;)y--;for(W=1;W<y;W++)Z.push(String.fromCodePoint(t+Number(D.charAt(W))))},g0m=function(y,W,c){c.push(LG(y).EXP_SYMBOL);
W<0?(W=-W,c.push(LG(y).MINUS_SIGN)):y.useSignForPositiveExponent_&&c.push(LG(y).PLUS_SIGN);W=""+W;for(var Z=LG(y).ZERO_DIGIT,G=W.length;G<y.minExponentDigits_;G++)c.push(Z);y=Z.codePointAt(0)-lzi;for(Z=0;Z<W.length;Z++)c.push(String.fromCodePoint(y+W.codePointAt(Z)))},FI0=function(y,W){W=W.codePointAt(0);
if(48<=W&&W<58)return W-48;y=LG(y).ZERO_DIGIT.codePointAt(0);return y<=W&&W<y+10?W-y:-1},lzi="0".codePointAt(0),r3J=function(y,W,c){for(var Z="",G=!1,D=W.length;c[0]<D;c[0]++){var Y=W.charAt(c[0]);
if(Y=="'")c[0]+1<D&&W.charAt(c[0]+1)=="'"?(c[0]++,Z+="'"):G=!G;else if(G)Z+=Y;else switch(Y){case "#":case "0":case ",":case ".":case ";":return Z;case "\u00a4":if(c[0]+1<D&&W.charAt(c[0]+1)=="\u00a4")c[0]++,Z+=dH(y);else switch(y.currencyStyle_){case 0:Y=dH(y);Z+=Y in V$?V$[Y][1]:Y;break;case 2:Y=dH(y);var u=V$[Y];Z+=u?Y==u[1]?Y:Y+" "+u[1]:Y;break;case 1:Y=dH(y),Z+=Y in V$?V$[Y][2]:Y}break;case "%":if(!y.negativePercentSignExpected_&&y.multiplier_!=1)throw Error("he");if(y.negativePercentSignExpected_&&
y.multiplier_!=100)throw Error("ie");y.multiplier_=100;y.negativePercentSignExpected_=!1;Z+=LG(y).PERCENT;break;case "\u2030":if(!y.negativePercentSignExpected_&&y.multiplier_!=1)throw Error("he");if(y.negativePercentSignExpected_&&y.multiplier_!=1E3)throw Error("ie");y.multiplier_=1E3;y.negativePercentSignExpected_=!1;Z+=LG(y).PERMILL;break;default:Z+=Y}}return Z},S0={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},UiZ=function(y,W){y=y.compactStyle_==1?Je.COMPACT_DECIMAL_SHORT_PATTERN:Je.COMPACT_DECIMAL_LONG_PATTERN;y==null&&(y=Je.COMPACT_DECIMAL_SHORT_PATTERN);if(W<3)return S0;W=Math.min(14,W);var c=y[TC(1,W)];for(--W;!c&&W>=3;)c=y[TC(1,W)],W--;if(!c)return S0;c=c.other;var Z=y="",G=c.indexOf(";");G>=0&&(c=c.substring(0,G),G=c.substring(G+1))&&(Z=/([^0]*)(0+)(.*)/.exec(G),y=Z[1],Z=Z[3]);return c&&c!="0"?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:W+
1-(c[2].length-1),negative_prefix:y,negative_suffix:Z,prefix:c[1],suffix:c[3]}:S0:S0},$iE=function(y){if(!isFinite(y))return y>0?y:0;
for(var W=0;(y/=10)>=1;)W++;return W},TC=function(y,W){if(!y||!isFinite(y)||W==0)return y;
y=String(y).split("e");return parseFloat(y[0]+"e"+(parseInt(y[1]||0,10)+W))},E0m=function(y,W){return y&&isFinite(y)?TC(Math.round(TC(y,W)),-W):y},RW2=function(y,W,c){if(!y)return y;
W=W-$iE(y)-1;return W<-c?E0m(y,-c):E0m(y,W)};var NZ5=function(y){return y%10==1&&y%100!=11?"one":y%10==2&&y%100!=12?"two":y%10==3&&y%100!=13?"few":"other"},Izi=NZ5;
Izi=NZ5;var ph8;ph8=function(y,W){var c=y|0;if(void 0===W){W=Math;var Z=W.min,G=y+"",D=G.indexOf(".");W=Z.call(W,D===-1?0:G.length-D-1,3)}Z=Math.pow(10,W);y={v:W,f:(y*Z|0)%Z};return c==1&&y.v==0?"one":"other"};
_.H$=ph8;_.H$=ph8;var PsE,J35,VlV,Q9i,A3T;_.CsV=function(y){this.JSC$9212_pattern_=y;this.parsedPattern_=this.literals_=this.initialLiterals_=null;y=tl0;var W=Je;if(PsE!==y||J35!==W)PsE=y,J35=W,VlV=new _.Cq(1);this.numberFormatter_=VlV};
PsE=null;J35=null;VlV=null;Q9i=RegExp("'([{}#].*?)'","g");A3T=RegExp("''","g");
_.CsV.prototype.format=function(y){if(this.JSC$9212_pattern_){this.initialLiterals_=[];var W=hWi(this,this.JSC$9212_pattern_);this.parsedPattern_=BZm(this,W);this.JSC$9212_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.SI(this.initialLiterals_),W=[],HNJ(this,this.parsedPattern_,y,!1,W),y=W.join("");this.literals_.length>0;)y=y.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else y="";return y};
var HNJ=function(y,W,c,Z,G){for(var D=0;D<W.length;D++)switch(W[D].type){case 4:G.push(W[D].value);break;case 3:var Y=W[D].value;var u=y,t=G,b=c[Y];b===void 0?t.push("Undefined parameter - "+Y):(u.literals_.push(b),t.push(u.buildPlaceholder_(u.literals_)));break;case 2:Y=W[D].value;u=y;t=c;b=Z;var r=G,F=Y.argumentIndex;t[F]===void 0?r.push("Undefined parameter - "+F):(F=Y[t[F]],F===void 0&&(F=Y.other),HNJ(u,F,t,b,r));break;case 0:Y=W[D].value;LIV(y,Y,c,_.H$,Z,G);break;case 1:Y=W[D].value,LIV(y,Y,
c,Izi,Z,G)}},LIV=function(y,W,c,Z,G,D){var Y=W.argumentIndex,u=W.argumentOffset,t=+c[Y];
isNaN(t)?D.push("Undefined or invalid parameter - "+Y):(u=t-u,Y=W[c[Y]],Y===void 0&&(Z=Z(Math.abs(u)),Y=W[Z],Y===void 0&&(Y=W.other)),W=[],HNJ(y,Y,c,G,W),c=W.join(""),G?D.push(c):(y=y.numberFormatter_.format(u),D.push(c.replace(/#/g,y))))},hWi=function(y,W){var c=y.initialLiterals_,Z=y.buildPlaceholder_.bind(y);
W=W.replace(A3T,function(){c.push("'");return Z(c)});
return W=W.replace(Q9i,function(G,D){c.push(D);return Z(c)})},v00=function(y){var W=0,c=[],Z=[],G=/[{}]/g;
G.lastIndex=0;for(var D;D=G.exec(y);){var Y=D.index;D[0]=="}"?(c.pop(),c.length==0&&(D={type:1},D.value=y.substring(W,Y),Z.push(D),W=Y+1)):(c.length==0&&(W=y.substring(W,Y),W!=""&&Z.push({type:0,value:W}),W=Y+1),c.push("{"))}y=y.substring(W);y!=""&&Z.push({type:0,value:y});return Z},diV=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,SH3=/^\s*(\w+)\s*,\s*selectordinal\s*,/,TZT=/^\s*(\w+)\s*,\s*select\s*,/,BZm=function(y,W){var c=[];
W=v00(W);for(var Z=0;Z<W.length;Z++){var G={};if(0==W[Z].type)G.type=4,G.value=W[Z].value;else if(1==W[Z].type){var D=W[Z].value;switch(diV.test(D)?0:SH3.test(D)?1:TZT.test(D)?2:/^\s*\w+\s*/.test(D)?3:5){case 2:G.type=2;G.value=azV(y,W[Z].value);break;case 0:G.type=0;G.value=xiE(y,W[Z].value);break;case 1:G.type=1;G.value=iNE(y,W[Z].value);break;case 3:G.type=3,G.value=W[Z].value}}c.push(G)}return c},azV=function(y,W){var c="";
W=W.replace(TZT,function(u,t){c=t;return""});
var Z={};Z.argumentIndex=c;W=v00(W);for(var G=0;G<W.length;){var D=W[G].value;G++;var Y=void 0;1==W[G].type&&(Y=BZm(y,W[G].value));Z[D.replace(/\s/g,"")]=Y;G++}return Z},xiE=function(y,W){var c="",Z=0;
W=W.replace(diV,function(t,b,r){c=b;r&&(Z=parseInt(r,10));return""});
var G={};G.argumentIndex=c;G.argumentOffset=Z;W=v00(W);for(var D=0;D<W.length;){var Y=W[D].value;D++;var u=void 0;1==W[D].type&&(u=BZm(y,W[D].value));G[Y.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=u;D++}return G},iNE=function(y,W){var c="";
W=W.replace(SH3,function(u,t){c=t;return""});
var Z={};Z.argumentIndex=c;Z.argumentOffset=0;W=v00(W);for(var G=0;G<W.length;){var D=W[G].value;G++;var Y=void 0;1==W[G].type&&(Y=BZm(y,W[G].value));Z[D.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Y;G++}return Z};
_.CsV.prototype.buildPlaceholder_=function(y){return"\ufddf_"+(y.length-1).toString(10)+"_"};var Mlm;
Mlm={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 bAI=function(){this.rdtfSymbols_=eWZ||Mlm;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
bAI.prototype.format=function(y,W){a:{W=whV(this,W);switch(this.style_){case 2:if(W.NARROW!=void 0){W=W.NARROW;break a}case 1:if(W.SHORT!=void 0){W=W.SHORT;break a}default:W=W.LONG;break a}W=void 0}if(!this.alwaysNumeric_&&W&&W.R&&W.R[""+y])y=W.R[""+y];else if(W){var c=Math.abs(y);y=(new _.CsV("{N,plural,"+(y>0||y==0&&1/y==Infinity?W.F:W.P)+"}")).format({N:c})}else y="";return y};
var whV=function(y,W){switch(W){default:case 0:return y.rdtfSymbols_.YEAR;case 1:return y.rdtfSymbols_.QUARTER;case 2:return y.rdtfSymbols_.MONTH;case 3:return y.rdtfSymbols_.WEEK;case 4:return y.rdtfSymbols_.DAY;case 5:return y.rdtfSymbols_.HOUR;case 6:return y.rdtfSymbols_.MINUTE;case 7:return y.rdtfSymbols_.SECOND}};var qH0=function(y,W,c,Z,G,D,Y,u){this.x0=y;this.y0=W;this.x1=c;this.y1=Z;this.x2=G;this.y2=D;this.x3=Y;this.y3=u};
qH0.prototype.clone=function(){return new qH0(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
qH0.prototype.equals=function(y){return this.x0==y.x0&&this.y0==y.y0&&this.x1==y.x1&&this.y1==y.y1&&this.x2==y.x2&&this.y2==y.y2&&this.x3==y.x3&&this.y3==y.y3};
var kP2=function(y,W){if(W==0)return y.x0;if(W==1)return y.x3;var c=Fw(y.x0,y.x1,W),Z=Fw(y.x1,y.x2,W);y=Fw(y.x2,y.x3,W);c=Fw(c,Z,W);Z=Fw(Z,y,W);return Fw(c,Z,W)},jLT=function(y,W){var c=(W-y.x0)/(y.x3-y.x0);
if(c<=0)return 0;if(c>=1)return 1;for(var Z=0,G=1,D=0,Y=0;Y<8;Y++){D=kP2(y,c);var u=(kP2(y,c+1E-6)-D)/1E-6;if(Math.abs(D-W)<1E-6)return c;if(Math.abs(u)<1E-6)break;else D<W?Z=c:G=c,c-=(D-W)/u}for(Y=0;Math.abs(D-W)>1E-6&&Y<8;Y++)D<W?(Z=c,c=(c+G)/2):(G=c,c=(c+Z)/2),D=kP2(y,c);return c};var aX=function(){_.uU.call(this);this.JSC$9233_name_="closure_frame"+y75++;this.iframesForDisposal_=[];W$T[this.JSC$9233_name_]=this},xK;
_.j6(aX,_.uU);var W$T={},y75=0,c72=function(y,W){var c=FF(y);_.lLm(W,function(Z,G){Array.isArray(Z)||(Z=[Z]);_.Qa(Z,function(D){D=c.JSC$7236_createDom("INPUT",{type:"hidden",name:G,value:D});y.appendChild(D)})})};
_.f=aX.prototype;_.f.JSC$9235_form_=null;_.f.JSC$9235_iframe_=null;_.f.iframeName_=null;_.f.nextIframeId_=0;_.f.JSC$9235_active_=!1;_.f.complete_=!1;_.f.success_=!1;_.f.lastContent_=null;_.f.JSC$9235_lastErrorCode_=0;_.f.iframeDisposalTimer_=null;
_.f.send=function(y,W,c,Z){if(this.JSC$9235_active_)throw Error("oe");y=new _.Tr(y);W=W?W.toUpperCase():"GET";c&&_.jm(y);xK||(xK=_.Of("FORM"),xK.acceptCharset="utf-8",c=xK.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(xK));this.JSC$9235_form_=xK;W=="GET"&&c72(this.JSC$9235_form_,y.JSC$7898_queryData_);Z&&c72(this.JSC$9235_form_,Z);c=y.toString();c=lPI(c);Z=this.JSC$9235_form_;c=_.An(gf(c));c!==void 0&&(Z.action=
c);this.JSC$9235_form_.method=W;ZxT(this);Gb5(this)};
_.f.abort=function(y){if(this.JSC$9235_active_){var W=i_(this);if(W)if(Yp(W))W.removeAllListeners(void 0);else if(W=mS(W)){var c=0,Z;for(Z in W.listeners)for(var G=W.listeners[Z].concat(),D=0;D<G.length;++D)o9(G[D])&&++c}this.success_=this.JSC$9235_active_=this.complete_=!1;this.JSC$9235_lastErrorCode_=y||7;this.dispatchEvent("abort");fa5(this)}};
_.f.disposeInternal=function(){this.JSC$9235_active_&&this.abort();aX.superClass_.disposeInternal.call(this);this.JSC$9235_iframe_&&oxm(this);Gb5(this);this.JSC$9235_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9235_form_=null;this.JSC$9235_lastErrorCode_=0;delete W$T[this.JSC$9233_name_]};
_.f.isComplete=function(){return this.complete_};
_.f.isSuccess=function(){return this.success_};
_.f.isActive=function(){return this.JSC$9235_active_};
_.f.getResponseText=function(){return this.lastContent_};
_.f.getLastError=function(){return _.GY0(this.JSC$9235_lastErrorCode_)};
var ZxT=function(y){y.JSC$9235_active_=!0;y.complete_=!1;y.JSC$9235_lastErrorCode_=0;y.iframeName_=y.JSC$9233_name_+"_"+(y.nextIframeId_++).toString(36);y.JSC$9235_iframe_=FF(y.JSC$9235_form_).JSC$7236_createDom("IFRAME",{name:y.iframeName_,id:y.iframeName_});var W=y.JSC$9235_iframe_.style;W.visibility="hidden";W.width=W.height="10px";W.display="none";_.oE?W.marginTop=W.marginLeft="-10px":(W.position="absolute",W.top=W.left="-10px");EXm(FF(y.JSC$9235_form_)).body.appendChild(y.JSC$9235_iframe_);W=
y.iframeName_+"_inner";var c=FfV(y.JSC$9235_iframe_);if(document.baseURI){var Z=iv(W);Z='<head><base href="'+iv(document.baseURI)+'"></head><body><iframe id="'+Z+'" name="'+Z+'"></iframe>';Z=Lf(Z)}else Z=iv(W),Z=Lf('<body><iframe id="'+Z+'" name="'+Z+'"></iframe>');c.write(vX(Z));_.Y0(c.getElementById(W),"load",y.onIframeLoaded_,!1,y);Z=Xe("TEXTAREA",y.JSC$9235_form_);for(var G=0,D=Z.length;G<D;G++){var Y=Z[G].value;R03(Z[G])!=Y&&(_.PM(Z[G],Y),Z[G].value=Y)}Z=c.importNode(y.JSC$9235_form_,!0);Z.target=
W;Z.action=y.JSC$9235_form_.action;c.body.appendChild(Z);G=Xe("SELECT",y.JSC$9235_form_);D=Xe("SELECT",Z);Y=0;for(var u=G.length;Y<u;Y++)for(var t=Xe("OPTION",G[Y]),b=Xe("OPTION",D[Y]),r=0,F=t.length;r<F;r++)b[r].selected=t[r].selected;G=Xe("INPUT",y.JSC$9235_form_);D=Xe("INPUT",Z);Y=0;for(u=G.length;Y<u;Y++)if(G[Y].type=="file"&&G[Y].value!=D[Y].value){y.JSC$9235_form_.target=W;Z=y.JSC$9235_form_;break}try{y.errorHandled_=!1,Z.submit(),c.close(),_.fi&&setTimeout(y.testForFirefoxSilentError_.bind(y),
250)}catch(K){_.sp(c.getElementById(W),"load",y.onIframeLoaded_,!1,y),c.close(),Mh(y,2)}};
aX.prototype.onIframeLoaded_=function(){_.sp(i_(this),"load",this.onIframeLoaded_,!1,this);try{var y=this.JSC$9235_iframe_?FfV(i_(this)):null;this.complete_=!0;this.JSC$9235_active_=!1;try{var W=y.body;this.lastContent_=W.textContent||W.innerText}catch(G){var c=1}var Z;c||typeof this.errorChecker_!="function"||(Z=this.errorChecker_(y))&&(c=4);c?Mh(this,c):(this.success_=!0,this.JSC$9235_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),fa5(this))}catch(G){Mh(this,1)}};
var Mh=function(y,W){y.errorHandled_||(y.success_=!1,y.JSC$9235_active_=!1,y.complete_=!0,y.JSC$9235_lastErrorCode_=W,y.dispatchEvent("complete"),y.dispatchEvent("error"),fa5(y),y.errorHandled_=!0)},fa5=function(y){oxm(y);
Gb5(y);y.JSC$9235_form_=null;y.dispatchEvent("ready")},oxm=function(y){var W=y.JSC$9235_iframe_;
W&&(W.onreadystatechange=null,W.onload=null,W.onerror=null,y.iframesForDisposal_.push(W));y.iframeDisposalTimer_&&(clearTimeout(y.iframeDisposalTimer_),y.iframeDisposalTimer_=null);_.fi?y.iframeDisposalTimer_=setTimeout(y.disposeIframes_.bind(y),2E3):y.disposeIframes_();y.JSC$9235_iframe_=null;y.iframeName_=null};
aX.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var y=this.iframesForDisposal_.pop();_.to(y)}};
var Gb5=function(y){y.JSC$9235_form_&&y.JSC$9235_form_==xK&&_.l5(y.JSC$9235_form_)},i_=function(y){return y.JSC$9235_iframe_?FfV(y.JSC$9235_iframe_).getElementById(y.iframeName_+"_inner"):null};
aX.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9235_active_){var y=this.JSC$9235_iframe_?FfV(i_(this)):null;y&&!eKt(y,"documentUri")?(_.sp(i_(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Mh(this,3):Mh(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.e0=function(y){return y=="\r"||y=="\n"||y==" "||y=="\t"};var Dum;_.wH=function(y){this.errorMessage_=null;this.result_=[];this.JSC$9237_buffer_="";this.stack_=[];this.JSC$9237_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!y||!y.deliverMessageAsRawString)};
Dum={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};_.wH.prototype.isInputValid=function(){return this.streamState_!=3};
_.wH.prototype.done=function(){return this.streamState_===2};
var qh=function(y,W,c){y.streamState_=3;y.errorMessage_="The stream is broken @"+y.JSC$9237_pos_+"/"+c+". With input:\n"+W;throw Error(y.errorMessage_);};
_.wH.prototype.acceptsBinaryInput=function(){return!1};
_.wH.prototype.parse=function(y){function W(){for(;K<y.length;)if(_.e0(y[K]))K++,D.JSC$9237_pos_++;else break;return K<b}
function c(){for(var N;;){N=y[K++];if(!N)break;D.JSC$9237_pos_++;switch(D.state_){case t.INIT:N==="{"?D.state_=t.OBJECT_OPEN:N==="["?D.state_=t.ARRAY_OPEN:_.e0(N)||qh(D,y,K);continue;case t.KEY_START:case t.OBJECT_OPEN:if(_.e0(N))continue;if(D.state_===t.KEY_START)Y.push(t.KEY_END);else if(N==="}"){G("{}");D.state_=Z();continue}else Y.push(t.OBJECT_END);N==='"'?D.state_=t.STRING:qh(D,y,K);continue;case t.KEY_END:case t.OBJECT_END:if(_.e0(N))continue;N===":"?(D.state_===t.OBJECT_END&&(Y.push(t.OBJECT_END),
D.depth_++),D.state_=t.VALUE):N==="}"?(D.depth_--,G(),D.state_=Z()):N===","?(D.state_===t.OBJECT_END&&Y.push(t.OBJECT_END),D.state_=t.KEY_START):qh(D,y,K);continue;case t.ARRAY_OPEN:case t.VALUE:if(_.e0(N))continue;if(D.state_===t.ARRAY_OPEN)if(D.depth_++,D.state_=t.VALUE,N==="]"){D.depth_--;if(D.depth_===0){D.state_=t.ARRAY_END;return}G("[]");D.state_=Z();continue}else Y.push(t.ARRAY_END);N==='"'?D.state_=t.STRING:N==="{"?D.state_=t.OBJECT_OPEN:N==="["?D.state_=t.ARRAY_OPEN:N==="t"?D.state_=t.TRUE1:
N==="f"?D.state_=t.FALSE1:N==="n"?D.state_=t.NULL1:N!=="-"&&("0123456789".indexOf(N)!==-1?D.state_=t.NUM_DIGIT:qh(D,y,K));continue;case t.ARRAY_END:if(N===",")Y.push(t.ARRAY_END),D.state_=t.VALUE,D.depth_===1&&(F=K);else if(N==="]"){D.depth_--;if(D.depth_===0)return;G();D.state_=Z()}else if(_.e0(N))continue;else qh(D,y,K);continue;case t.STRING:var P=K;a:for(;;){for(;D.unicodeCount_>0;)if(N=y[K++],D.unicodeCount_===4?D.unicodeCount_=0:D.unicodeCount_++,!N)break a;if(N==='"'&&!D.slashed_){D.state_=
Z();break}if(N==="\\"&&!D.slashed_&&(D.slashed_=!0,N=y[K++],!N))break;if(D.slashed_)if(D.slashed_=!1,N==="u"&&(D.unicodeCount_=1),N=y[K++])continue;else break;u.lastIndex=K;N=u.exec(y);if(!N){K=y.length+1;break}K=N.index+1;N=y[N.index];if(!N)break}D.JSC$9237_pos_+=K-P;continue;case t.TRUE1:if(!N)continue;N==="r"?D.state_=t.TRUE2:qh(D,y,K);continue;case t.TRUE2:if(!N)continue;N==="u"?D.state_=t.TRUE3:qh(D,y,K);continue;case t.TRUE3:if(!N)continue;N==="e"?D.state_=Z():qh(D,y,K);continue;case t.FALSE1:if(!N)continue;
N==="a"?D.state_=t.FALSE2:qh(D,y,K);continue;case t.FALSE2:if(!N)continue;N==="l"?D.state_=t.FALSE3:qh(D,y,K);continue;case t.FALSE3:if(!N)continue;N==="s"?D.state_=t.FALSE4:qh(D,y,K);continue;case t.FALSE4:if(!N)continue;N==="e"?D.state_=Z():qh(D,y,K);continue;case t.NULL1:if(!N)continue;N==="u"?D.state_=t.NULL2:qh(D,y,K);continue;case t.NULL2:if(!N)continue;N==="l"?D.state_=t.NULL3:qh(D,y,K);continue;case t.NULL3:if(!N)continue;N==="l"?D.state_=Z():qh(D,y,K);continue;case t.NUM_DECIMAL_POINT:N===
"."?D.state_=t.NUM_DIGIT:qh(D,y,K);continue;case t.NUM_DIGIT:if("0123456789.eE+-".indexOf(N)!==-1)continue;else K--,D.JSC$9237_pos_--,D.state_=Z();continue;default:qh(D,y,K)}}}
function Z(){var N=Y.pop();return N!=null?N:t.VALUE}
function G(N){D.depth_>1||(N||(N=F===-1?D.JSC$9237_buffer_+y.substring(r,K):y.substring(F,K)),D.deliverMessageAsRawString_?D.result_.push(N):D.result_.push(JSON.parse(N)),F=K)}
for(var D=this,Y=D.stack_,u=D.stringInputPattern_,t=Dum,b=y.length,r=0,F=-1,K=0;K<b;)switch(D.streamState_){case 3:return qh(D,y,K),null;case 2:return W()&&qh(D,y,K),null;case 0:if(W()){var l=y[K++];D.JSC$9237_pos_++;if(l==="["){D.streamState_=1;r=K;D.state_=t.ARRAY_OPEN;continue}else qh(D,y,K)}return null;case 1:return c(),D.depth_===0&&D.state_==t.ARRAY_END?(D.streamState_=2,D.JSC$9237_buffer_=y.substring(K)):D.JSC$9237_buffer_=F===-1?D.JSC$9237_buffer_+y.substring(r):y.substring(F),D.result_.length>
0?(l=D.result_,D.result_=[],l):null}return null};_.j6(_.jb,nR);yn.prototype.getValue=function(){return this.JSC$9245_value_};
yn.prototype.clone=function(){return new yn(this.JSC$9245_key_,this.JSC$9245_value_)};var kK=function(y){this.nodes_=[];if(y)a:{if(y instanceof kK){var W=y.getKeys();y=y.getValues();if(this.getCount()<=0){for(var c=this.nodes_,Z=0;Z<W.length;Z++)c.push(new yn(W[Z],y[Z]));break a}}else W=_.Eb.getKeys(y),y=_.Eb.getValues(y);for(c=0;c<W.length;c++)this.insert(W[c],y[c])}};
_.f=kK.prototype;_.f.insert=function(y,W){var c=this.nodes_;c.push(new yn(y,W));y=c.length-1;W=this.nodes_;for(c=W[y];y>0;){var Z=y-1>>1;if(W[Z].JSC$9245_key_>c.JSC$9245_key_)W[y]=W[Z],y=Z;else break}W[y]=c};
_.f.remove=function(){var y=this.nodes_,W=y.length,c=y[0];if(!(W<=0)){if(W==1)y.length=0;else{y[0]=y.pop();y=0;W=this.nodes_;for(var Z=W.length,G=W[y];y<Z>>1;){var D=y*2+1,Y=y*2+2;D=Y<Z&&W[Y].JSC$9245_key_<W[D].JSC$9245_key_?Y:D;if(W[D].JSC$9245_key_>G.JSC$9245_key_)break;W[y]=W[D];y=D}W[y]=G}return c.getValue()}};
_.f.peek=function(){var y=this.nodes_;if(y.length!=0)return y[0].getValue()};
_.f.getValues=function(){for(var y=this.nodes_,W=[],c=y.length,Z=0;Z<c;Z++)W.push(y[Z].getValue());return W};
_.f.getKeys=function(){for(var y=this.nodes_,W=[],c=y.length,Z=0;Z<c;Z++)W.push(y[Z].JSC$9245_key_);return W};
_.f.containsValue=function(y){return this.nodes_.some(function(W){return W.getValue()==y})};
_.f.containsKey=function(y){return this.nodes_.some(function(W){return W.JSC$9245_key_==y})};
_.f.clone=function(){return new kK(this)};
_.f.getCount=function(){return this.nodes_.length};
_.f.isEmpty=function(){return this.nodes_.length===0};
_.f.clear=function(){this.nodes_.length=0};_.je=function(y,W){this.JSC$9251_map_={};this.JSC$9251_keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("oa");for(var Z=0;Z<c;Z+=2)this.set(arguments[Z],arguments[Z+1])}else y&&this.addAll(y)};
_.f=_.je.prototype;_.f.getCount=function(){return this.size};
_.f.getValues=function(){yq(this);for(var y=[],W=0;W<this.JSC$9251_keys_.length;W++)y.push(this.JSC$9251_map_[this.JSC$9251_keys_[W]]);return y};
_.f.getKeys=function(){yq(this);return this.JSC$9251_keys_.concat()};
_.f.containsKey=function(y){return this.has(y)};
_.f.has=function(y){return W_(this.JSC$9251_map_,y)};
_.f.containsValue=function(y){for(var W=0;W<this.JSC$9251_keys_.length;W++){var c=this.JSC$9251_keys_[W];if(W_(this.JSC$9251_map_,c)&&this.JSC$9251_map_[c]==y)return!0}return!1};
_.f.equals=function(y,W){if(this===y)return!0;if(this.size!=y.getCount())return!1;W=W||zUm;yq(this);for(var c,Z=0;c=this.JSC$9251_keys_[Z];Z++)if(!W(this.get(c),y.get(c)))return!1;return!0};
var zUm=function(y,W){return y===W};
_.je.prototype.isEmpty=function(){return this.size==0};
_.je.prototype.clear=function(){this.JSC$9251_map_={};this.version_=this.size=this.JSC$9251_keys_.length=0};
_.je.prototype.remove=function(y){return this.delete(y)};
_.je.prototype.delete=function(y){return W_(this.JSC$9251_map_,y)?(delete this.JSC$9251_map_[y],--this.size,this.version_++,this.JSC$9251_keys_.length>2*this.size&&yq(this),!0):!1};
var yq=function(y){if(y.size!=y.JSC$9251_keys_.length){for(var W=0,c=0;W<y.JSC$9251_keys_.length;){var Z=y.JSC$9251_keys_[W];W_(y.JSC$9251_map_,Z)&&(y.JSC$9251_keys_[c++]=Z);W++}y.JSC$9251_keys_.length=c}if(y.size!=y.JSC$9251_keys_.length){W={};for(Z=c=0;c<y.JSC$9251_keys_.length;){var G=y.JSC$9251_keys_[c];W_(W,G)||(y.JSC$9251_keys_[Z++]=G,W[G]=1);c++}y.JSC$9251_keys_.length=Z}};
_.f=_.je.prototype;_.f.get=function(y,W){return W_(this.JSC$9251_map_,y)?this.JSC$9251_map_[y]:W};
_.f.set=function(y,W){W_(this.JSC$9251_map_,y)||(this.size+=1,this.JSC$9251_keys_.push(y),this.version_++);this.JSC$9251_map_[y]=W};
_.f.addAll=function(y){if(y instanceof _.je)for(var W=y.getKeys(),c=0;c<W.length;c++)this.set(W[c],y.get(W[c]));else for(W in y)this.set(W,y[W])};
_.f.forEach=function(y,W){for(var c=this.getKeys(),Z=0;Z<c.length;Z++){var G=c[Z],D=this.get(G);y.call(W,D,G,this)}};
_.f.clone=function(){return new _.je(this)};
_.f.transpose=function(){for(var y=new _.je,W=0;W<this.JSC$9251_keys_.length;W++){var c=this.JSC$9251_keys_[W];y.set(this.JSC$9251_map_[c],c)}return y};
_.f.keys=function(){return BJ8(this.__iterator__(!0)).toEs6()};
_.f.values=function(){return BJ8(this.__iterator__(!1)).toEs6()};
_.f.entries=function(){var y=this;return ezZ(this.keys(),function(W){return[W,y.get(W)]})};
_.f.__iterator__=function(y){yq(this);var W=0,c=this.version_,Z=this,G=new em;G.next=function(){if(c!=Z.version_)throw Error("pe");if(W>=Z.JSC$9251_keys_.length)return wq;var D=Z.JSC$9251_keys_[W++];return qJ(y?D:Z.JSC$9251_map_[D])};
return G};
var W_=function(y,W){return Object.prototype.hasOwnProperty.call(y,W)};var muV=function(){this.JSC$9254_map_=new _.je;this.JSC$9254_head_=new Ye5("");this.JSC$9254_head_.next=this.JSC$9254_head_.prev=this.JSC$9254_head_},sLi=function(y,W){if(W=y.JSC$9254_map_.get(W))W.remove(),y.insert_(W);
return W};
_.f=muV.prototype;_.f.get=function(y,W){return(y=sLi(this,y))?y.value:W};
_.f.set=function(y,W){var c=sLi(this,y);c?c.value=W:(c=new Ye5(y,W),this.JSC$9254_map_.set(y,c),this.insert_(c))};
_.f.peek=function(){return this.JSC$9254_head_.next.value};
_.f.shift=function(){return uP2(this,this.JSC$9254_head_.next)};
_.f.pop=function(){return uP2(this,this.JSC$9254_head_.prev)};
_.f.remove=function(y){return(y=this.JSC$9254_map_.get(y))?(this.removeNode(y),!0):!1};
_.f.removeNode=function(y){y.remove();this.JSC$9254_map_.remove(y.key)};
_.f.getCount=function(){return this.JSC$9254_map_.getCount()};
_.f.isEmpty=function(){return this.JSC$9254_map_.isEmpty()};
_.f.getKeys=function(){return this.map(function(y,W){return W})};
_.f.getValues=function(){return this.map(function(y){return y})};
_.f.contains=function(y){return this.some(function(W){return W==y})};
_.f.containsKey=function(y){return this.JSC$9254_map_.containsKey(y)};
_.f.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9254_head_.prev)};
_.f.forEach=function(y,W){for(var c=this.JSC$9254_head_.next;c!=this.JSC$9254_head_;c=c.next)y.call(W,c.value,c.key,this)};
_.f.map=function(y,W){for(var c=[],Z=this.JSC$9254_head_.next;Z!=this.JSC$9254_head_;Z=Z.next)c.push(y.call(W,Z.value,Z.key,this));return c};
_.f.some=function(y,W){for(var c=this.JSC$9254_head_.next;c!=this.JSC$9254_head_;c=c.next)if(y.call(W,c.value,c.key,this))return!0;return!1};
_.f.every=function(y,W){for(var c=this.JSC$9254_head_.next;c!=this.JSC$9254_head_;c=c.next)if(!y.call(W,c.value,c.key,this))return!1;return!0};
_.f.insert_=function(y){y.next=this.JSC$9254_head_.next;y.prev=this.JSC$9254_head_;this.JSC$9254_head_.next=y;for(y.next.prev=y;this.getCount()>40;)this.removeNode(this.JSC$9254_head_.prev)};
var uP2=function(y,W){y.JSC$9254_head_!=W&&y.removeNode(W);return W.value},Ye5=function(y,W){this.key=y;
this.value=W};
Ye5.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var t9m=function(){kK.apply(this,arguments)};
_.R(t9m,kK);t9m.prototype.enqueue=function(y,W){this.insert(y,W)};var nx3=function(){var y=Error();y.name="SecurityError";throw y;},tng=function(){return{get opener(){return null},
get closed(){return!0},get location(){nx3()},get document(){nx3()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Rsf={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 NTa={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 XF8={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(NTa).join("|");var bxQ=function(){function y(u){u.substr(-1)!==";"&&(u+=";");return Y(u)}
for(var W=Object.keys(XF8).sort(E_I),c=Object.keys(NTa).sort(E_I),Z=0,G=0;Z<c.length;Z++)W[G]===c[Z]?(c[Z]+=";?",G++):c[Z]+=";";var D=new RegExp("&(?:"+c.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Y=IiO();return function(u){return String(u).replace(D,y)}}();/*

 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 r7m={};var F$E=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"),Uum=/[\\&]/,$um=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),K$T=RegExp('[&<>"]',"g"),Oxi=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),gx8=function(y){return y.charCodeAt(0)===92?y.charAt(1):bxQ(y)},RU5=function(y){return Uum.test(y)?y.replace($um,gx8):y},laQ=function(y){try{var W,c="";
if(typeof G!=="string"){var Z=G;var G=";/?:@&=+$,-_.!~*'()#"}typeof Z==="undefined"&&(Z=!0);var D,Y=r7m[G];if(Y)var u=Y;else{Y=r7m[G]=[];for(D=0;D<128;D++){var t=String.fromCharCode(D);/^[0-9a-z]$/i.test(t)?Y.push(t):Y.push("%"+("0"+D.toString(16).toUpperCase()).slice(-2))}for(D=0;D<G.length;D++)Y[G.charCodeAt(D)]=G[D];u=Y}var b=0;for(W=y.length;b<W;b++){var r=y.charCodeAt(b);if(Z&&r===37&&b+2<W&&/^[0-9a-f]{2}$/i.test(y.slice(b+1,b+3)))c+=y.slice(b,b+3),b+=2;else if(r<128)c+=u[r];else if(r>=55296&&
r<=57343){if(r>=55296&&r<=56319&&b+1<W){var F=y.charCodeAt(b+1);if(F>=56320&&F<=57343){c+=encodeURIComponent(y[b]+y[b+1]);b++;continue}}c+="%EF%BF%BD"}else c+=encodeURIComponent(y[b])}return c}catch(K){return y}},Ex5=function(y){switch(y){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return y}},c_=function(y,W){return K$T.test(y)?W?y.replace(Oxi,Ex5):y.replace(K$T,Ex5):y};/*

 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 ZT;if(String.fromCodePoint)ZT=function(y){try{return String.fromCodePoint(y)}catch(W){if(W instanceof RangeError)return String.fromCharCode(65533);throw W;}};
else{var NIT=String.fromCharCode,IaW=Math.floor;ZT=function(){var y=[],W=-1,c=arguments.length;if(!c)return"";for(var Z="";++W<c;){var G=Number(arguments[W]);if(!isFinite(G)||G<0||G>1114111||IaW(G)!==G)return String.fromCharCode(65533);if(G<=65535)y.push(G);else{G-=65536;var D=(G>>10)+55296;G=G%1024+56320;y.push(D,G)}if(W+1===c||y.length>16384)Z+=NIT.apply(null,y),y.length=0}return Z}};var pF5=function(y){this.root=this.current=y;this.entering=!0};
pF5.prototype.next=function(){var y=this.current,W=this.entering;if(y===null)return null;a:switch(y._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 c=!0;break a;default:c=!1}W&&c?y._firstChild?(this.current=y._firstChild,this.entering=!0):this.entering=!1:y===this.root?this.current=null:y._next===null?(this.current=
y._parent,this.entering=!1):(this.current=y._next,this.entering=!0);return{entering:W,node:y}};
var fO=function(y,W){this._type=y;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=W;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
fO.prototype.appendChild=function(y){Gk(y);y._parent=this;this._lastChild?(this._lastChild._next=y,y._prev=this._lastChild):this._firstChild=y;this._lastChild=y};
var Gk=function(y){y._prev?y._prev._next=y._next:y._parent&&(y._parent._firstChild=y._next);y._next?y._next._prev=y._prev:y._parent&&(y._parent._lastChild=y._prev);y._parent=null;y._next=null;y._prev=null},PvE=function(y,W){Gk(W);
W._next=y._next;W._next&&(W._next._prev=W);W._prev=y;y._next=W;W._parent=y._parent;W._next||(W._parent._lastChild=W)};
fO.prototype.insertBefore=function(y){Gk(y);y._prev=this._prev;y._prev&&(y._prev._next=y);y._next=this;this._prev=y;y._parent=this._parent;y._prev||(y._parent._firstChild=y)};
_.dJ.Object.defineProperties(fO.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(y){this._literal=y}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(y){this._destination=y}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(y){this._title=y}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(y){this._info=y}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(y){this._level=y}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(y){this._listData.type=y}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(y){this._listData.tight=y}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(y){this._listData.start=y}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(y){this._onEnter=y}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(y){this._onExit=y}}});var pMf=/[ \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,
P5f={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 J73=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]/),
V95=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),CvE=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),QL5=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),A7E=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),hU3=/`+/,BIT=/^`+/,Hx2=/\.\.\./g,L$W=/--+/g,vxE=/^<([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])?)*)>/,
duE=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Se0=/^ *(?:\n *)?/,TIm=/^[ \t\n\x0b\x0c\x0d]/,aaE=/[ \t\n\x0b\x0c\x0d]+/g,xu3=/^\s/,ix2=/ *$/,M9i=/^ */,eUV=/^ *(?:\n|$)/,wFJ=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),qe3=/^[^\n`\[\]\\!<&*_'"]+/m,f7=function(y){var W=new fO("text");W._literal=y;return W},oY=function(y){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=y||{}};
oY.prototype.match=function(y){y=y.exec(this.subject.slice(this.pos));if(y===null)return null;this.pos+=y.index+y[0].length;return y[0]};
oY.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var DT=function(y){y.match(Se0);return!0},kb8=function(y,W,c){var Z=0;
var G=y.pos;if(W===39||W===34)Z++,y.pos++;else for(;y.peek()===W;)Z++,y.pos++;if(Z===0)Z=null;else{var D=G===0?"\n":y.subject.charAt(G-1);var Y=y.peek();Y=Y===-1?"\n":ZT(Y);var u=xu3.test(Y);Y=J73.test(Y);var t=xu3.test(D);var b=J73.test(D);D=!u&&!(Y&&!t&&!b);u=!t&&!(b&&!u&&!Y);W===95?(t=D&&(!u||b),Y=u&&(!D||Y)):(t=W===39||W===34?D&&!u:D,Y=u);y.pos=G;Z={numdelims:Z,can_open:t,can_close:Y}}if(!Z)return!1;G=Z.numdelims;Y=y.pos;y.pos+=G;Y=W===39?"\u2019":W===34?"\u201c":y.subject.slice(Y,y.pos);Y=f7(Y);
c.appendChild(Y);y.delimiters={cc:W,numdelims:G,origdelims:G,node:Y,previous:y.delimiters,next:null,can_open:Z.can_open,can_close:Z.can_close};y.delimiters.previous!==null&&(y.delimiters.previous.next=y.delimiters);return!0},j32=function(y,W){W.previous!==null&&(W.previous.next=W.next);
W.next===null?y.delimiters=W.previous:W.next.previous=W.previous},yzi=function(y,W){var c,Z,G=[],D=!1;
G[95]=W;G[42]=W;G[39]=W;G[34]=W;for(c=y.delimiters;c!==null&&c.previous!==W;)c=c.previous;for(;c!==null;){var Y=c.cc;if(c.can_close){var u=c.previous;for(Z=!1;u!==null&&u!==W&&u!==G[Y];){D=(c.can_open||u.can_close)&&(u.origdelims+c.origdelims)%3===0;if(u.cc===c.cc&&u.can_open&&!D){Z=!0;break}u=u.previous}var t=c;if(Y===42||Y===95)if(Z){var b=c.numdelims>=2&&u.numdelims>=2?2:1;var r=u.node;var F=c.node;u.numdelims-=b;c.numdelims-=b;r._literal=r._literal.slice(0,r._literal.length-b);F._literal=F._literal.slice(0,
F._literal.length-b);var K=new fO(b===1?"emph":"strong");for(b=r._next;b&&b!==F;){var l=b._next;Gk(b);K.appendChild(b);b=l}PvE(r,K);b=u;l=c;b.next!==l&&(b.next=l,l.previous=b);u.numdelims===0&&(Gk(r),j32(y,u));c.numdelims===0&&(Gk(F),u=c.next,j32(y,c),c=u)}else c=c.next;else Y===39?(c.node._literal="\u2019",Z&&(u.node._literal="\u2018"),c=c.next):Y===34&&(c.node._literal="\u201d",Z&&(u.node.literal="\u201c"),c=c.next);Z||D||(G[Y]=t.previous,t.can_open||j32(y,t))}else c=c.next}for(;y.delimiters!==
null&&y.delimiters!==W;)j32(y,y.delimiters)},Wl8=function(y){y=y.match(V95);
return y===null?null:RU5(y.substr(1,y.length-2))},czE=function(y){var W=y.match(CvE);
if(W===null){W=y.pos;for(var c=0,Z;(Z=y.peek())!==-1;)if(Z===92)y.pos+=1,y.peek()!==-1&&(y.pos+=1);else if(Z===40)y.pos+=1,c+=1;else if(Z===41)if(c<1)break;else y.pos+=1,--c;else if(TIm.exec(ZT(Z))!==null)break;else y.pos+=1;W=y.subject.substr(W,y.pos-W);return laQ(RU5(W))}return laQ(RU5(W.substr(1,W.length-2)))},Zp8=function(y){y=y.match(wFJ);
return y===null||y.length>1001?0:y.length},GZE=function(y,W,c,Z){y.brackets!==null&&(y.brackets.bracketAfter=!0);
y.brackets={node:W,previous:y.brackets,previousDelimiter:y.delimiters,index:c,image:Z,active:!0}},fxm=function(y,W){var c;
return(c=y.match(qe3))?(y.options.smart?W.appendChild(f7(c.replace(Hx2,"\u2026").replace(L$W,function(Z){var G=0,D=0;Z.length%3===0?D=Z.length/3:Z.length%2===0?G=Z.length/2:Z.length%3===2?(G=1,D=(Z.length-2)/3):(G=2,D=(Z.length-4)/3);Z="";var Y;for(Y=0;Y<D;Y++)Z+="\u2014";for(Y=0;Y<G;Y++)Z+="\u2013";return Z}))):W.appendChild(f7(c)),!0):!1},oYE=function(y,W,c){y.subject=W;
y.pos=0;W=y.pos;var Z=Zp8(y);if(Z===0)return 0;var G=y.subject.substr(0,Z);if(y.peek()===58)y.pos++;else return y.pos=W,0;DT(y);Z=czE(y);if(Z===null||Z.length===0)return y.pos=W,0;var D=y.pos;DT(y);var Y=Wl8(y);Y===null&&(Y="",y.pos=D);var u=!0;y.match(eUV)===null&&(Y===""?u=!1:(Y="",y.pos=D,u=y.match(eUV)!==null));if(!u)return y.pos=W,0;G=JPt(G);if(G==="")return y.pos=W,0;c[G]||(c[G]={destination:Z,title:Y});return y.pos-W},D8W=function(y,W){var c,Z=y.peek();
if(Z===-1)return!1;switch(Z){case 10:y.pos+=1;if((c=W._lastChild)&&c.type==="text"&&c._literal[c._literal.length-1]===" "){var G=c._literal[c._literal.length-2]===" ";c._literal=c._literal.replace(ix2,"");W.appendChild(new fO(G?"linebreak":"softbreak"))}else W.appendChild(new fO("softbreak"));y.match(M9i);c=!0;break;case 92:c=y.subject;y.pos+=1;y.peek()===10?(y.pos+=1,c=new fO("linebreak"),W.appendChild(c)):QL5.test(c.charAt(y.pos))?(W.appendChild(f7(c.charAt(y.pos))),y.pos+=1):W.appendChild(f7("\\"));
c=!0;break;case 96:a:if(c=y.match(BIT),c===null)c=!1;else{G=y.pos;for(var D;(D=y.match(hU3))!==null;)if(D===c){D=new fO("code");D._literal=y.subject.slice(G,y.pos-c.length).trim().replace(aaE," ");W.appendChild(D);c=!0;break a}y.pos=G;W.appendChild(f7(c));c=!0}break;case 42:case 95:c=kb8(y,Z,W);break;case 39:case 34:c=y.options.smart&&kb8(y,Z,W);break;case 91:c=y.pos;y.pos+=1;G=f7("[");W.appendChild(G);GZE(y,G,c,!1);c=!0;break;case 33:c=y.pos;y.pos+=1;y.peek()===91?(y.pos+=1,G=f7("!["),W.appendChild(G),
GZE(y,G,c+1,!0)):W.appendChild(f7("!"));c=!0;break;case 93:var Y,u=!1,t;y.pos+=1;var b=y.pos;G=y.brackets;if(G===null)W.appendChild(f7("]"));else if(G.active){c=G.image;var r=y.pos;y.peek()===40&&(y.pos++,DT(y)&&(D=czE(y))!==null&&DT(y)&&(TIm.test(y.subject.charAt(y.pos-1))&&(Y=Wl8(y)),1)&&DT(y)&&y.peek()===41?(y.pos+=1,u=!0):y.pos=r);if(!u){var F=y.pos,K=Zp8(y);K>2?t=y.subject.slice(F,F+K):G.bracketAfter||(t=y.subject.slice(G.index,b));K===0&&(y.pos=r);t&&(t=y.refmap[JPt(t)])&&(D=t.destination,Y=
t.title,u=!0)}if(u){b=new fO(c?"image":"link");b._destination=D;b._title=Y||"";for(D=G.node._next;D;)Y=D._next,Gk(D),b.appendChild(D),D=Y;W.appendChild(b);yzi(y,G.previousDelimiter);y.brackets=y.brackets.previous;Gk(G.node);if(!c)for(G=y.brackets;G!==null;)G.image||(G.active=!1),G=G.previous}else y.brackets=y.brackets.previous,y.pos=b,W.appendChild(f7("]"))}else W.appendChild(f7("]")),y.brackets=y.brackets.previous;c=!0;break;case 60:(c=y.match(vxE))?(c=c.slice(1,c.length-1),G=new fO("link"),G._destination=
laQ("mailto:"+c),G._title="",G.appendChild(f7(c)),W.appendChild(G),c=!0):(c=y.match(duE))?(c=c.slice(1,c.length-1),G=new fO("link"),G._destination=laQ(c),G._title="",G.appendChild(f7(c)),W.appendChild(G),c=!0):c=!1;c||(c=y.match(F$E),c===null?c=!1:(G=new fO("html_inline"),G._literal=c,W.appendChild(G),c=!0));break;case 38:(c=y.match(A7E))?(W.appendChild(f7(bxQ(c))),c=!0):c=!1;break;default:c=fxm(y,W)}c||(y.pos+=1,W.appendChild(f7(ZT(Z))));return!0};
oY.prototype.parseInlines=function(y){this.subject=y._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;D8W(this,y););y._string_content=null;yzi(this,null)};
oY.prototype.parse=oY.prototype.parseInlines;var zNi=[/./,/^<(?: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")],YVQ=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],m88=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,s38=/^[#`~*+_=<>0-9-\|]|\|/,u58=/[^ \t\f\v\r\n]/,t8m=/^[*+-]/,nYV=/^(\d{1,9})([.)])/,XGV=/^#{1,6}(?:[ \t]+|$)/,bpE=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,rzZ=/^(?:`{3,}|~{3,})(?= *$)/,FlE=/^(?:=+|-+)[ \t]*$/,U8J=/\r\n|\n|\r/,C5g=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Q_H=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,$8E={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(y){return y!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(y,W){for(y=W._firstChild;y;){if(V2f(y)&&y._next){W._listData.tight=!1;break}for(var c=y._firstChild;c;){if(V2f(c)&&(y._next||c._next)){W._listData.tight=!1;break}c=c._next}y=y._next}},
canContain:function(y){return y==="item"},
acceptsLines:!1},block_quote:{continue:function(y){var W=y.currentLine;if(y.indented||ZU(W,y.nextNonspace)!==62)return 1;zk(y);YH(y,1,!1);WT(ZU(W,y.offset))&&YH(y,1,!0);return 0},
finalize:function(){},
canContain:function(y){return y!=="item"},
acceptsLines:!1},item:{continue:function(y,W){if(y.blank){if(W._firstChild==null)return 1;zk(y)}else if(y.indent>=W._listData.markerOffset+W._listData.padding)YH(y,W._listData.markerOffset+W._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(y){return y!=="item"&&!APF(y)},
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(y,W){var c=y.currentLine,Z=y.indent;if(W._isFenced){if((Z=Z<=3&&c.charAt(y.nextNonspace)===W._fenceChar&&c.slice(y.nextNonspace).match(rzZ))&&Z[0].length>=W._fenceLength)return y.finalize(W,y.lineNumber),2;for(W=W._fenceOffset;W>0&&WT(ZU(c,y.offset));)YH(y,1,!0),W--}else if(Z>=4)YH(y,4,!0);else if(y.blank)zk(y);else return 1;return 0},
finalize:function(y,W){if(W._isFenced){var c=W._string_content,Z=c.indexOf("\n");y=c.slice(0,Z);c=c.slice(Z+1);W.info=RU5(y.trim());W._literal=c}else W._literal=W._string_content.replace(/(\n *)+$/,"\n");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(y,W){return!y.blank||W._htmlBlockType!==6&&W._htmlBlockType!==7?0:1},
finalize:function(y,W){W._literal=W._string_content.replace(/(\n *)+$/,"");W._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(y){return y.blank?1:0},
finalize:function(y,W){for(var c,Z=!1;ZU(W._string_content,0)===91&&(c=oYE(y.inlineParser,W._string_content,y.refmap));)W._string_content=W._string_content.slice(c),Z=!0;Z&&!u58.test(W._string_content)&&Gk(W)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(y){return Gr(y.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(y){return y=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(y,W){if(!W._rowIsDelimiter){y=W._isHeader?"th":"td";for(var c=W._parent._tableColumns,Z=W._string_content,G=0,D="",Y,u=W._sourcepos[0][0];G<Z.length;){switch(Z[G]){case "|":Y&&(Y._string_content=D.trim(),D="",Y=null,c--,c<=0&&(G=Z.length));break;default:if(!Y){Y=new fO(y,[[u,G],[u,G]]);var t=W._parent._columnAlignment,b=W._parent._tableColumns-c;t&&b<=t.length&&b>=0&&(Y._alignment=t[b]);W.appendChild(Y)}D+=Z[G];Y._sourcepos[1][1]=G}G++}Y&&(Y._string_content=D.trim());W._string_content=
""}},
canContain:function(y){return y!=="row"},
acceptsLines:!1}},Kl5=[function(y){if(y.indented||ZU(y.currentLine,y.nextNonspace)!==62)return 0;zk(y);YH(y,1,!1);WT(ZU(y.currentLine,y.offset))&&YH(y,1,!0);mX(y);y.addChild("block_quote",y.nextNonspace);return 1},
function(y){var W;if(!y.indented&&(W=y.currentLine.slice(y.nextNonspace).match(XGV))){zk(y);YH(y,W[0].length,!1);mX(y);var c=y.addChild("heading",y.nextNonspace);c.level=W[0].trim().length;c._string_content=y.currentLine.slice(y.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");YH(y,y.currentLine.length-y.offset);return 2}return 0},
function(y){var W;if(!y.indented&&(W=y.currentLine.slice(y.nextNonspace).match(bpE))){var c=W[0].length;mX(y);var Z=y.addChild("code_block",y.nextNonspace);Z._isFenced=!0;Z._fenceLength=c;Z._fenceChar=W[0][0];Z._fenceOffset=y.indent;zk(y);YH(y,c,!1);return 2}return 0},
function(y,W){if(!y.indented&&ZU(y.currentLine,y.nextNonspace)===60){var c=y.currentLine.slice(y.nextNonspace),Z;for(Z=1;Z<=7;Z++)if(zNi[Z].test(c)&&(Z<7||W.type!=="paragraph"))return mX(y),y.addChild("html_block",y.offset)._htmlBlockType=Z,2}return 0},
function(y,W){var c;if(!y.indented&&W.type==="paragraph"&&(c=y.currentLine.slice(y.nextNonspace).match(FlE))){mX(y);var Z=new fO("heading",W.sourcepos);Z.level=c[0][0]==="="?1:2;Z._string_content=W._string_content;PvE(W,Z);Gk(W);y.tip=Z;YH(y,y.currentLine.length-y.offset,!1);return 2}return 0},
function(y){return!y.indented&&m88.test(y.currentLine.slice(y.nextNonspace))?(mX(y),y.addChild("thematic_break",y.nextNonspace),YH(y,y.currentLine.length-y.offset,!1),2):0},
function(y,W){var c,Z;if(!(Z=y.indented&&W.type!=="list")){a:{var G=W,D=y.currentLine.slice(y.nextNonspace);Z={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:y.indent};if(c=D.match(t8m))Z.type="bullet",Z.bulletChar=c[0][0];else{if(!(c=D.match(nYV))||G.type==="paragraph"&&c[1]!=="1"){c=null;break a}Z.type="ordered";Z.start=parseInt(c[1],10);Z.delimiter=c[2]}var Y=ZU(y.currentLine,y.nextNonspace+c[0].length);if(Y!==-1&&Y!==9&&Y!==32||G.type==="paragraph"&&!y.currentLine.slice(y.nextNonspace+
c[0].length).match(u58))c=null;else{zk(y);YH(y,c[0].length,!0);G=y.column;D=y.offset;do YH(y,1,!0),Y=ZU(y.currentLine,y.offset);while(y.column-G<5&&WT(Y));Y=ZU(y.currentLine,y.offset)===-1;var u=y.column-G;u>=5||u<1||Y?(Z.padding=c[0].length+1,y.column=G,y.offset=D,WT(ZU(y.currentLine,y.offset))&&YH(y,1,!0)):Z.padding=c[0].length+u;c=Z}}Z=!c}if(Z)return 0;mX(y);(Z=y.tip.type!=="list")||(W=W._listData,Z=!(W.type===c.type&&W.delimiter===c.delimiter&&W.bulletChar===c.bulletChar));Z&&(W=y.addChild("list",
y.nextNonspace),W._listData=c);W=y.addChild("item",y.nextNonspace);W._listData=c;return 1},
function(y){var W;return((W=y.options.shouldParseIndentAsCodeBlock)!=null?W:1)&&y.indented&&y.tip.type!=="paragraph"&&!y.blank?(YH(y,4,!0),mX(y),y.addChild("code_block",y.offset),2):0},
function(y,W){var c=Gr(y.currentLine),Z=Gr(y.lookahead);if(c!==0&&Z<0&&Math.abs(c)==Math.abs(Z)&&!APF(W.type)){mX(y);W=y.addChild("table",y.nextNonspace);W._tableRows=1;W._tableColumns=Math.abs(c);c=y.lookahead;if(Q_H.test(c)){Z=[];for(var G=0,D=!1,Y=0,u=void 0;G<c.length;){var t=Y>=3;switch(c[G]){case "-":Y++;break;case "|":D&&(Z.push(u),u=void 0,Y=0);D=!0;break;case ":":u||t||(u="left"),!u&&t&&(u="right"),u==="left"&&t&&(u="center")}G++}c=Z}else c=void 0;W._columnAlignment=c;W=y.addChild("row",
y.nextNonspace);W._isHeader=!0;YH(y,y.currentLine.length-y.offset,!1);W._string_content=y.currentLine;return 1}return 0},
function(y,W){if(W.type=="table"&&Gr(y.currentLine)!==0){mX(y);var c=W;W=y.addChild("row",y.nextNonspace);Gr(y.currentLine)<0?W._rowIsDelimiter=!0:c._tableRows+=1;YH(y,y.currentLine.length-y.offset,!1);W._string_content=y.currentLine;return 2}return 0}],ocI=function(){var y={shouldParseIndentAsCodeBlock:!1};
y=y===void 0?{}:y;this.lastMatchedContainer=this.doc=hsD();this.refmap={};this.lastLineLength=0;this.inlineParser=new oY(y);this.options=y;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=$8E;this.blockStarts=Kl5},Op3=function(y){y.partiallyConsumedTab&&(y.offset+=1,y.tip._string_content+=" ".repeat(4-y.column%
4));
y.tip._string_content+=y.currentLine.slice(y.offset)+"\n"};
ocI.prototype.addChild=function(y,W){for(;!this.blocks[this.tip.type].canContain(y);)this.finalize(this.tip,this.lineNumber-1);y=new fO(y,[[this.lineNumber,W+1],[0,0]]);y._string_content="";this.tip.appendChild(y);return this.tip=y};
var mX=function(y){if(!y.allClosed){for(;y.oldtip!==y.lastMatchedContainer;){var W=y.oldtip._parent;y.finalize(y.oldtip,y.lineNumber-1);y.oldtip=W}y.allClosed=!0}},YH=function(y,W,c){for(var Z=y.currentLine,G,D;W>0&&(D=Z[y.offset]);)D==="\t"?(G=4-y.column%4,c?(y.partiallyConsumedTab=G>W,G=G>W?W:G,y.column+=G,y.offset+=y.partiallyConsumedTab?0:1,W-=G):(y.partiallyConsumedTab=!1,y.column+=G,y.offset+=1,--W)):(y.partiallyConsumedTab=!1,y.offset+=1,y.column+=1,--W)},zk=function(y){y.offset=y.nextNonspace;
y.column=y.nextNonspaceColumn;y.partiallyConsumedTab=!1},gYJ=function(y){for(var W=y.currentLine,c=y.offset,Z=y.column,G;(G=W.charAt(c))!=="";)if(G===" ")c++,Z++;
else if(G==="\t")c++,Z+=4-Z%4;else break;y.blank=G==="\n"||G==="\r"||G==="";y.nextNonspace=c;y.nextNonspaceColumn=Z;y.indent=y.nextNonspaceColumn-y.column;y.indented=y.indent>=4};
ocI.prototype.finalize=function(y,W){var c=y._parent;y._open=!1;y.sourcepos[1]=[W,this.lastLineLength];this.blocks[y.type].finalize(this,y);this.tip=c};
ocI.prototype.parse=function(y){this.tip=this.doc=hsD();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!y)return this.doc;this.options.time&&console.time("preparing input");var W=y.split(U8J),c=W.length;y.charCodeAt(y.length-1)===10&&--c;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(y=0;y<c;y++)a:{var Z=void 0,G=W[y],D=W[y+1],Y=!0,u=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;G.indexOf("\x00")!==-1&&(G=G.replace(/\0/g,"\ufffd"));this.currentLine=G;for(this.lookahead=D;(Z=u._lastChild)&&Z._open;){u=Z;gYJ(this);switch(this.blocks[u.type].continue(this,u)){case 0:break;case 1:Y=!1;break;case 2:this.lastLineLength=G.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Y){u=u._parent;break}}this.allClosed=u===this.oldtip;this.lastMatchedContainer=
u;Z=u.type!=="paragraph"&&$8E[u.type].acceptsLines;D=this.blockStarts;for(Y=D.length;!Z;){gYJ(this);if(!this.indented&&!s38.test(G.slice(this.nextNonspace))){zk(this);break}for(var t=0;t<Y;){var b=D[t](this,u);if(b===1){u=this.tip;break}else if(b===2){u=this.tip;Z=!0;break}else t++}if(t===Y){zk(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){mX(this);this.blank&&u.lastChild&&(u.lastChild._lastLineBlank=!0);Z=u.type;D=this.blank&&!(Z==="block_quote"||Z==="code_block"&&u._isFenced||
Z==="item"&&!u._firstChild&&u.sourcepos[0][0]===this.lineNumber);for(Y=u;Y;)Y._lastLineBlank=D,Y=Y._parent;this.blocks[Z].acceptsLines?(Op3(this),Z==="html_block"&&u._htmlBlockType>=1&&u._htmlBlockType<=5&&YVQ[u._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(u,this.lineNumber)):this.offset<G.length&&!this.blank&&(this.addChild("paragraph",this.offset),zk(this),Op3(this))}else Op3(this);this.lastLineLength=G.length}for(;this.tip;)this.finalize(this.tip,c);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");G=new pF5(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;c=G.next();)W=c.node,y=W.type,c.entering||y!=="paragraph"&&y!=="heading"&&y!=="th"&&y!="td"||this.inlineParser.parse(W);this.options.time&&console.timeEnd("inline parsing");return this.doc};BTa.prototype.render=function(y){y=new pF5(y);var W;this.buffer="";for(this.lastOut="\n";W=y.next();){var c=W.node.type;if(this[c])this[c](W.node,W.entering)}return this.buffer};
BTa.prototype.out=function(y){su(this,y)};
var su=function(y,W){y.buffer+=W;y.lastOut=W};
BTa.prototype.cr=function(){this.lastOut!=="\n"&&su(this,"\n")};var RNi=/^javascript:|vbscript:|file:|data:/i,lxT=/^data:image\/(?:png|gif|jpeg|webp)/i,EY0=function(y){return RNi.test(y)&&!lxT.test(y)};
oi.prototype=Object.create(BTa.prototype);_.f=oi.prototype;_.f.text=function(y){this.out(y.literal)};
_.f.html_inline=function(y){this.options.safe?su(this,"\x3c!-- raw HTML omitted --\x3e"):su(this,y.literal)};
_.f.html_block=function(y){this.cr();this.options.safe?su(this,"\x3c!-- raw HTML omitted --\x3e"):su(this,y.literal);this.cr()};
_.f.softbreak=function(){su(this,this.options.softbreak)};
_.f.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.f.link=function(y,W){var c=this.attrs(y);W?(this.options.safe&&EY0(y.destination)||c.push(["href",c_(y.destination,!0)]),y.title&&c.push(["title",c_(y.title,!0)]),this.tag("a",c)):this.tag("/a")};
_.f.image=function(y,W){W?(this.disableTags===0&&(this.options.safe&&EY0(y.destination)?su(this,'<img src="" alt="'):su(this,'<img src="'+c_(y.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(y.title&&su(this,'" title="'+c_(y.title,!0)),su(this,'" />')))};
_.f.emph=function(y,W){this.tag(W?"em":"/em")};
_.f.strong=function(y,W){this.tag(W?"strong":"/strong")};
_.f.paragraph=function(y,W){var c=y.parent.parent;y=this.attrs(y);c!==null&&c.type==="list"&&c.listTight||(W?(this.cr(),this.tag("p",y)):(this.tag("/p"),this.cr()))};
_.f.heading=function(y,W){var c="h"+y.level;y=this.attrs(y);W?(this.cr(),this.tag(c,y)):(this.tag("/"+c),this.cr())};
_.f.code=function(y){this.tag("code");this.out(y.literal);this.tag("/code")};
_.f.code_block=function(y){var W=y.info?y.info.split(/\s+/):[],c=this.attrs(y);W.length>0&&W[0].length>0&&c.push(["class","language-"+c_(W[0],!0)]);this.cr();this.tag("pre");this.tag("code",c);this.out(y.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.f.thematic_break=function(y){y=this.attrs(y);this.cr();this.tag("hr",y,!0);this.cr()};
_.f.block_quote=function(y,W){y=this.attrs(y);W?(this.cr(),this.tag("blockquote",y)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.f.list=function(y,W){var c=y.listType==="bullet"?"ul":"ol",Z=this.attrs(y);W?(y=y.listStart,y!==null&&y!==1&&Z.push(["start",y.toString()]),this.cr(),this.tag(c,Z)):(this.cr(),this.tag("/"+c));this.cr()};
_.f.item=function(y,W){y=this.attrs(y);W?this.tag("li",y):(this.tag("/li"),this.cr())};
_.f.custom_inline=function(y,W){W&&y.onEnter?su(this,y.onEnter):!W&&y.onExit&&su(this,y.onExit)};
_.f.custom_block=function(y,W){this.cr();W&&y.onEnter?su(this,y.onEnter):!W&&y.onExit&&su(this,y.onExit);this.cr()};
_.f.table=function(y,W){y=this.attrs(y);W?(this.cr(),this.tag("table",y)):(this.tag("/table"),this.cr())};
_.f.row=function(y,W){y._rowIsDelimiter||(y=this.attrs(y),W?this.tag("tr",y):this.tag("/tr"))};
_.f.td=function(y,W){var c=this.attrs(y);y._alignment&&c.push(["align",y._alignment]);W?this.tag("td",c):this.tag("/td")};
_.f.th=function(y,W){var c=this.attrs(y);y._alignment&&c.push(["align",y._alignment]);W?this.tag("th",c):this.tag("/th")};
_.f.out=function(y){su(this,c_(y,!1))};
_.f.tag=function(y,W,c){if(!(this.disableTags>0)){this.buffer+="<"+y;if(W&&W.length>0){y=0;for(var Z;(Z=W[y])!==void 0;)this.buffer+=" "+Z[0]+'="'+Z[1]+'"',y++}c&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.f.attrs=function(y){var W=[];this.options.sourcepos&&(y=y.sourcepos)&&W.push(["data-sourcepos",String(y[0][0])+":"+String(y[0][1])+"-"+String(y[1][0])+":"+String(y[1][1])]);return W};
oi.prototype.text=oi.prototype.text;oi.prototype.html_inline=oi.prototype.html_inline;oi.prototype.html_block=oi.prototype.html_block;oi.prototype.softbreak=oi.prototype.softbreak;oi.prototype.linebreak=oi.prototype.linebreak;oi.prototype.link=oi.prototype.link;oi.prototype.image=oi.prototype.image;oi.prototype.emph=oi.prototype.emph;oi.prototype.strong=oi.prototype.strong;oi.prototype.paragraph=oi.prototype.paragraph;oi.prototype.heading=oi.prototype.heading;oi.prototype.code=oi.prototype.code;
oi.prototype.code_block=oi.prototype.code_block;oi.prototype.thematic_break=oi.prototype.thematic_break;oi.prototype.block_quote=oi.prototype.block_quote;oi.prototype.list=oi.prototype.list;oi.prototype.item=oi.prototype.item;oi.prototype.custom_inline=oi.prototype.custom_inline;oi.prototype.custom_block=oi.prototype.custom_block;oi.prototype.table=oi.prototype.table;oi.prototype.row=oi.prototype.row;oi.prototype.td=oi.prototype.td;oi.prototype.th=oi.prototype.th;oi.prototype.out=oi.prototype.out;
oi.prototype.tag=oi.prototype.tag;oi.prototype.attrs=oi.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 NiQ,IxW,mdD;(function(){function y(J,I){return J<I?-1:J>I?1:J>=I?0:NaN}
function W(J){return function(I,h){return y(J(I),h)}}
function c(){for(var J=0,I=arguments.length,h={},a;J<I;++J){if(!(a=arguments[J]+"")||a in h)throw Error("re`"+a);h[a]=[]}return new Z(h)}
function Z(J){this._=J}
function G(J,I){return J.trim().split(/^|\s+/).map(function(h){var a="",Wy=h.indexOf(".");Wy>=0&&(a=h.slice(Wy+1),h=h.slice(0,Wy));if(h&&!I.hasOwnProperty(h))throw Error("se`"+h);return{type:h,name:a}})}
function D(J,I,h){for(var a=0,Wy=J.length;a<Wy;++a)if(J[a].name===I){J[a]=iS9;J=J.slice(0,a).concat(J.slice(a+1));break}h!=null&&J.push({name:I,value:h});return J}
function Y(J){var I=J,h=I.indexOf(":");h>=0&&(I=J.slice(0,h))!=="xmlns"&&(J=J.slice(h+1));return HG.hasOwnProperty(I)?{space:HG[I],local:J}:J}
function u(J){return function(){var I=this.ownerDocument,h=this.namespaceURI;return h==="http://www.w3.org/1999/xhtml"&&I.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?I.createElement(J):I.createElementNS(h,J)}}
function t(J){return function(){return this.ownerDocument.createElementNS(J.space,J.local)}}
function b(J){J=Y(J);return(J.local?t:u)(J)}
function r(){}
function F(J){return J==null?r:function(){return this.querySelector(J)}}
function K(J){return Array(J.length)}
function l(J,I){this.ownerDocument=J.ownerDocument;this.namespaceURI=J.namespaceURI;this._next=null;this._parent=J;this.__data__=I}
function N(J){return function(){return J}}
function P(J,I,h,a,Wy,zO){for(var na=0,OD,M1=I.length,aI=zO.length;na<aI;++na)(OD=I[na])?(OD.__data__=zO[na],a[na]=OD):h[na]=new l(J,zO[na]);for(;na<M1;++na)if(OD=I[na])Wy[na]=OD}
function V(J,I,h,a,Wy,zO,na){var OD,M1,aI={},wg=I.length,oV=zO.length,vJ=Array(wg),m6;for(OD=0;OD<wg;++OD)if(M1=I[OD])vJ[OD]=m6="$"+na.call(M1,M1.__data__,OD,I),m6 in aI?Wy[OD]=M1:aI[m6]=M1;for(OD=0;OD<oV;++OD)m6="$"+na.call(J,zO[OD],OD,zO),(M1=aI[m6])?(a[OD]=M1,M1.__data__=zO[OD],aI[m6]=null):h[OD]=new l(J,zO[OD]);for(OD=0;OD<wg;++OD)(M1=I[OD])&&aI[vJ[OD]]===M1&&(Wy[OD]=M1)}
function Q(J,I){return J<I?-1:J>I?1:J>=I?0:NaN}
function S(J){return function(){this.removeAttribute(J)}}
function cy(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function M(J,I){return function(){this.setAttribute(J,I)}}
function fa(J,I){return function(){this.setAttributeNS(J.space,J.local,I)}}
function jI(J,I){return function(){var h=I.apply(this,arguments);h==null?this.removeAttribute(J):this.setAttribute(J,h)}}
function sD(J,I){return function(){var h=I.apply(this,arguments);h==null?this.removeAttributeNS(J.space,J.local):this.setAttributeNS(J.space,J.local,h)}}
function ED(J){return function(){this.style.removeProperty(J)}}
function N1(J,I,h){return function(){this.style.setProperty(J,I,h)}}
function bf(J,I,h){return function(){var a=I.apply(this,arguments);a==null?this.style.removeProperty(J):this.style.setProperty(J,a,h)}}
function Py(J,I){return J.style.getPropertyValue(I)||(J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView).getComputedStyle(J,null).getPropertyValue(I)}
function WJ(J){return function(){delete this[J]}}
function t5(J,I){return function(){this[J]=I}}
function xF(J,I){return function(){var h=I.apply(this,arguments);h==null?delete this[J]:this[J]=h}}
function M3(){this.textContent=""}
function wS(J){return function(){this.textContent=J}}
function f8(J){return function(){var I=J.apply(this,arguments);this.textContent=I==null?"":I}}
function eV(){this.innerHTML=""}
function N3(J){return function(){this.innerHTML=J}}
function K8(J){return function(){var I=J.apply(this,arguments);this.innerHTML=I==null?"":I}}
function PJ(){return null}
function cX(){var J=this.parentNode;J&&J.removeChild(this)}
function a$(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function oI(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Zg(J,I,h){J=xW(J,I,h);return function(a){var Wy=a.relatedTarget;Wy&&(Wy===this||Wy.compareDocumentPosition(this)&8)||J.call(this,a)}}
function xW(J,I,h){return function(){J.call(this,this.__data__,I,h)}}
function dS(J){return J.trim().split(/^|\s+/).map(function(I){var h="",a=I.indexOf(".");a>=0&&(h=I.slice(a+1),I=I.slice(0,a));return{type:I,name:h}})}
function bE(J){return function(){var I=this.__on;if(I){for(var h=0,a=-1,Wy=I.length,zO;h<Wy;++h)(zO=I[h],J.type&&zO.type!==J.type||zO.name!==J.name)?I[++a]=zO:this.removeEventListener(zO.type,zO.listener,zO.capture);++a?I.length=a:delete this.__on}}}
function EZ(J,I,h){var a=uNi.hasOwnProperty(J.type)?Zg:xW;return function(Wy,zO,na){Wy=this.__on;var OD;zO=a(I,zO,na);if(Wy){na=0;for(var M1=Wy.length;na<M1;++na)if((OD=Wy[na]).type===J.type&&OD.name===J.name){this.removeEventListener(OD.type,OD.listener,OD.capture);this.addEventListener(OD.type,OD.listener=zO,OD.capture=h);OD.value=I;return}}this.addEventListener(J.type,zO,h);OD={type:J.type,name:J.name,value:I,listener:zO,capture:h};Wy?Wy.push(OD):this.__on=[OD]}}
function jV(J,I,h){var a=J.ownerDocument&&J.ownerDocument.defaultView||J.document&&J||J.defaultView,Wy=a.CustomEvent;typeof Wy==="function"?Wy=new Wy(I,h):(Wy=a.document.createEvent("Event"),h?(Wy.initEvent(I,h.bubbles,h.cancelable),Wy.detail=h.detail):Wy.initEvent(I,!1,!1));J.dispatchEvent(Wy)}
function La(J,I){return function(){return jV(this,J,I)}}
function sZ(J,I){return function(){return jV(this,J,I.apply(this,arguments))}}
function w2(J,I){this._groups=J;this._parents=I}
function Z3(){return new w2([[document.documentElement]],M46)}
function J5(){this._="@"+(++en9).toString(36)}
function B3(J,I,h){J.prototype=I.prototype=h;h.constructor=J}
function E3(J,I){J=Object.create(J.prototype);for(var h in I)J[h]=I[h];return J}
function T7(){}
function YX(J){var I;J=(J+"").trim().toLowerCase();return(I=wmS.exec(J))?(I=parseInt(I[1],16),new OE(I>>8&15|I>>4&240,I>>4&15|I&240,(I&15)<<4|I&15,1)):(I=qgB.exec(J))?JS(parseInt(I[1],16)):(I=kK9.exec(J))?new OE(I[1],I[2],I[3],1):(I=ju6.exec(J))?new OE(I[1]*255/100,I[2]*255/100,I[3]*255/100,1):(I=yrZ.exec(J))?iM(I[1],I[2],I[3],I[4]):(I=WR9.exec(J))?iM(I[1]*255/100,I[2]*255/100,I[3]*255/100,I[4]):(I=crZ.exec(J))?WQ(I[1],I[2]/100,I[3]/100,1):(I=Z96.exec(J))?WQ(I[1],I[2]/100,I[3]/100,I[4]):tgm.hasOwnProperty(J)?
JS(tgm[J]):J==="transparent"?new OE(NaN,NaN,NaN,0):null}
function JS(J){return new OE(J>>16&255,J>>8&255,J&255,1)}
function iM(J,I,h,a){a<=0&&(J=I=h=NaN);return new OE(J,I,h,a)}
function lG(J){J instanceof T7||(J=YX(J));if(!J)return new OE;J=J.rgb();return new OE(J.r,J.g,J.b,J.opacity)}
function a8(J,I,h,a){return arguments.length===1?lG(J):new OE(J,I,h,a==null?1:a)}
function OE(J,I,h,a){this.r=+J;this.g=+I;this.b=+h;this.opacity=+a}
function $X(J){J=Math.max(0,Math.min(255,Math.round(J)||0));return(J<16?"0":"")+J.toString(16)}
function WQ(J,I,h,a){a<=0?J=I=h=NaN:h<=0||h>=1?J=I=NaN:I<=0&&(J=NaN);return new v7(J,I,h,a)}
function MR(J){if(J instanceof v7)return new v7(J.h,J.s,J.l,J.opacity);J instanceof T7||(J=YX(J));if(!J)return new v7;if(J instanceof v7)return J;J=J.rgb();var I=J.r/255,h=J.g/255,a=J.b/255,Wy=Math.min(I,h,a),zO=Math.max(I,h,a),na=NaN,OD=zO-Wy,M1=(zO+Wy)/2;OD?(na=I===zO?(h-a)/OD+(h<a)*6:h===zO?(a-I)/OD+2:(I-h)/OD+4,OD/=M1<.5?zO+Wy:2-zO-Wy,na*=60):OD=M1>0&&M1<1?0:na;return new v7(na,OD,M1,J.opacity)}
function gj(J,I,h,a){return arguments.length===1?MR(J):new v7(J,I,h,a==null?1:a)}
function v7(J,I,h,a){this.h=+J;this.s=+I;this.l=+h;this.opacity=+a}
function XF(J,I,h){return(J<60?I+(h-I)*J/60:J<180?h:J<240?I+(h-I)*(240-J)/60:I)*255}
function dX(J){if(J instanceof rg)return new rg(J.l,J.a,J.b,J.opacity);if(J instanceof Ti){if(isNaN(J.h))return new rg(J.l,0,0,J.opacity);var I=J.h*nJ5;return new rg(J.l,Math.cos(I)*J.c,Math.sin(I)*J.c,J.opacity)}J instanceof OE||(J=lG(J));var h=Gf(J.r),a=Gf(J.g),Wy=Gf(J.b);I=JH(.2225045*h+.7168786*a+.0606169*Wy);if(h===a&&a===Wy)var zO=h=I;else zO=JH((.4360747*h+.3850649*a+.1430804*Wy)/.96422),h=JH((.0139322*h+.0971045*a+.7141733*Wy)/.82521);return new rg(116*I-16,500*(zO-I),200*(I-h),J.opacity)}
function rg(J,I,h,a){this.l=+J;this.a=+I;this.b=+h;this.opacity=+a}
function JH(J){return J>GnB?Math.pow(J,1/3):J/XfQ+bV3}
function hH(J){return J>Ua?J*J*J:XfQ*(J-bV3)}
function Xm(J){return 255*(J<=.0031308?12.92*J:1.055*Math.pow(J,1/2.4)-.055)}
function Gf(J){return(J/=255)<=.04045?J/12.92:Math.pow((J+.055)/1.055,2.4)}
function Gi(J){if(J instanceof Ti)return new Ti(J.h,J.c,J.l,J.opacity);J instanceof rg||(J=dX(J));if(J.a===0&&J.b===0)return new Ti(NaN,0,J.l,J.opacity);var I=Math.atan2(J.b,J.a)*r$E;return new Ti(I<0?I+360:I,Math.sqrt(J.a*J.a+J.b*J.b),J.l,J.opacity)}
function zi(J,I,h,a){return arguments.length===1?Gi(J):new Ti(J,I,h,a==null?1:a)}
function Ti(J,I,h,a){this.h=+J;this.c=+I;this.l=+h;this.opacity=+a}
function $W(J,I,h,a){if(arguments.length===1){var Wy=J;if(Wy instanceof Kf)Wy=new Kf(Wy.h,Wy.s,Wy.l,Wy.opacity);else{Wy instanceof OE||(Wy=lG(Wy));var zO=Wy.g/255,na=Wy.b/255,OD=(F3i*na+Wy.r/255*-1.7884503806-3.5172982438*zO)/(F3i+-1.7884503806-3.5172982438);na-=OD;var M1=(1.97294*(zO-OD)- -.29227*na)/-.90649;na=(zO=Math.sqrt(M1*M1+na*na)/(1.97294*OD*(1-OD)))?Math.atan2(M1,na)*r$E-120:NaN;Wy=new Kf(na<0?na+360:na,zO,OD,Wy.opacity)}}else Wy=new Kf(J,I,h,a==null?1:a);return Wy}
function Kf(J,I,h,a){this.h=+J;this.s=+I;this.l=+h;this.opacity=+a}
function qg(J,I,h,a,Wy){var zO=J*J,na=zO*J;return((1-3*J+3*zO-na)*I+(4-6*zO+3*na)*h+(1+3*J+3*zO-3*na)*a+na*Wy)/6}
function lE(J){return function(){return J}}
function oN(J,I){return function(h){return J+h*I}}
function eb(J,I,h){return J=Math.pow(J,h),I=Math.pow(I,h)-J,h=1/h,function(a){return Math.pow(J+a*I,h)}}
function q9(J,I){var h=I-J;return h?oN(J,h>180||h<-180?h-360*Math.round(h/360):h):lE(isNaN(J)?I:J)}
function Z_(J){return(J=+J)===1?bz:function(I,h){return h-I?eb(I,h,J):lE(isNaN(I)?h:I)}}
function bz(J,I){var h=I-J;return h?oN(J,h):lE(isNaN(J)?I:J)}
function I3(J){return function(I){var h=I.length,a=Array(h),Wy=Array(h),zO=Array(h),na;for(na=0;na<h;++na){var OD=a8(I[na]);a[na]=OD.r||0;Wy[na]=OD.g||0;zO[na]=OD.b||0}a=J(a);Wy=J(Wy);zO=J(zO);OD.opacity=1;return function(M1){OD.r=a(M1);OD.g=Wy(M1);OD.b=zO(M1);return OD+""}}}
function vy(J,I){return J=+J,I-=J,function(h){return J+I*h}}
function nQ(J){return function(){return J}}
function FM(J){return function(I){return J(I)+""}}
function SD(J,I){var h=q7O.lastIndex=kVh.lastIndex=0,a,Wy,zO,na=-1,OD=[],M1=[];J+="";for(I+="";(a=q7O.exec(J))&&(Wy=kVh.exec(I));)(zO=Wy.index)>h&&(zO=I.slice(h,zO),OD[na]?OD[na]+=zO:OD[++na]=zO),(a=a[0])===(Wy=Wy[0])?OD[na]?OD[na]+=Wy:OD[++na]=Wy:(OD[++na]=null,M1.push({i:na,x:vy(a,Wy)})),h=kVh.lastIndex;h<I.length&&(zO=I.slice(h),OD[na]?OD[na]+=zO:OD[++na]=zO);return OD.length<2?M1[0]?FM(M1[0].x):nQ(I):(I=M1.length,function(aI){for(var wg=0,oV;wg<I;++wg)OD[(oV=M1[wg]).i]=oV.x(aI);return OD.join("")})}
function Ga(J,I,h,a,Wy,zO){var na,OD,M1;if(na=Math.sqrt(J*J+I*I))J/=na,I/=na;if(M1=J*h+I*a)h-=J*M1,a-=I*M1;if(OD=Math.sqrt(h*h+a*a))h/=OD,a/=OD,M1/=OD;J*a<I*h&&(J=-J,I=-I,M1=-M1,na=-na);return{translateX:Wy,translateY:zO,rotate:Math.atan2(I,J)*USm,skewX:Math.atan(M1)*USm,scaleX:na,scaleY:OD}}
function fP(J,I,h,a){function Wy(aI){return aI.length?aI.pop()+" ":""}
function zO(aI,wg,oV,vJ,m6,s3){aI!==oV||wg!==vJ?(m6=m6.push("translate(",null,I,null,h),s3.push({i:m6-4,x:vy(aI,oV)},{i:m6-2,x:vy(wg,vJ)})):(oV||vJ)&&m6.push("translate("+oV+I+vJ+h)}
function na(aI,wg,oV,vJ){aI!==wg?(aI-wg>180?wg+=360:wg-aI>180&&(aI+=360),vJ.push({i:oV.push(Wy(oV)+"rotate(",null,a)-2,x:vy(aI,wg)})):wg&&oV.push(Wy(oV)+"rotate("+wg+a)}
function OD(aI,wg,oV,vJ){aI!==wg?vJ.push({i:oV.push(Wy(oV)+"skewX(",null,a)-2,x:vy(aI,wg)}):wg&&oV.push(Wy(oV)+"skewX("+wg+a)}
function M1(aI,wg,oV,vJ,m6,s3){aI!==oV||wg!==vJ?(m6=m6.push(Wy(m6)+"scale(",null,",",null,")"),s3.push({i:m6-4,x:vy(aI,oV)},{i:m6-2,x:vy(wg,vJ)})):oV===1&&vJ===1||m6.push(Wy(m6)+"scale("+oV+","+vJ+")")}
return function(aI,wg){var oV=[],vJ=[];aI=J(aI);wg=J(wg);zO(aI.translateX,aI.translateY,wg.translateX,wg.translateY,oV,vJ);na(aI.rotate,wg.rotate,oV,vJ);OD(aI.skewX,wg.skewX,oV,vJ);M1(aI.scaleX,aI.scaleY,wg.scaleX,wg.scaleY,oV,vJ);aI=wg=null;return function(m6){for(var s3=-1,lR=vJ.length,uR;++s3<lR;)oV[(uR=vJ[s3]).i]=uR.x(m6);return oV.join("")}}}
function R$(J){return function(I,h){var a=J((I=gj(I)).h,(h=gj(h)).h),Wy=bz(I.s,h.s),zO=bz(I.l,h.l),na=bz(I.opacity,h.opacity);return function(OD){I.h=a(OD);I.s=Wy(OD);I.l=zO(OD);I.opacity=na(OD);return I+""}}}
function we(J){return function(I,h){var a=J((I=zi(I)).h,(h=zi(h)).h),Wy=bz(I.c,h.c),zO=bz(I.l,h.l),na=bz(I.opacity,h.opacity);return function(OD){I.h=a(OD);I.c=Wy(OD);I.l=zO(OD);I.opacity=na(OD);return I+""}}}
function qv(J){return function a(h){function Wy(zO,na){var OD=J((zO=$W(zO)).h,(na=$W(na)).h),M1=bz(zO.s,na.s),aI=bz(zO.l,na.l),wg=bz(zO.opacity,na.opacity);return function(oV){zO.h=OD(oV);zO.s=M1(oV);zO.l=aI(Math.pow(oV,h));zO.opacity=wg(oV);return zO+""}}
h=+h;Wy.gamma=a;return Wy}(1)}
function M6(){return m2||($SV(mgh),m2=Ol.now()+QlD)}
function mgh(){m2=0}
function ei(){this._call=this._time=this._next=null}
function FV(J,I,h){var a=new ei;a.restart(J,I,h);return a}
function UK(){m2=(Avw=Ol.now())+QlD;$z=gy=0;try{M6();++$z;for(var J=h$E,I;J;)(I=m2-J._time)>=0&&J._call.call(null,I),J=J._next;--$z}finally{$z=0;J=h$E;for(var h=Infinity;J;)if(J._call){h>J._time&&(h=J._time);var a=J;J=J._next}else I=J._next,J._next=null,J=a?a._next=I:h$E=I;Rk=a;$U(h);m2=0}}
function DEf(){var J=Ol.now(),I=J-Avw;I>1E3&&(QlD-=I,Avw=J)}
function $U(J){$z||(gy&&(gy=clearTimeout(gy)),J-m2>24?(J<Infinity&&(gy=setTimeout(UK,J-Ol.now()-QlD)),ly&&(ly=clearInterval(ly))):(ly||(Avw=Ol.now(),ly=setInterval(DEf,1E3)),$z=1,$SV(UK)))}
function K3V(J,I,h){var a=new ei;I=I==null?0:+I;a.restart(function(Wy){a.stop();J(Wy+I)},I,h);
return a}
function j1H(J,I,h,a,Wy,zO){var na=J.__transition;if(!na)J.__transition={};else if(h in na)return;f6Z(J,h,{name:I,index:a,group:Wy,on:olB,tween:Dd6,time:zO.time,delay:zO.delay,duration:zO.duration,ease:zO.ease,timer:null,state:0})}
function yTF(J,I){J=Ef(J,I);if(J.state>0)throw Error("te");return J}
function sm(J,I){J=Ef(J,I);if(J.state>2)throw Error("ue");return J}
function Ef(J,I){J=J.__transition;if(!J||!(J=J[I]))throw Error("ve");return J}
function f6Z(J,I,h){function a(M1){var aI,wg;if(h.state!==1)return zO();for(vJ in na){var oV=na[vJ];if(oV.name===h.name){if(oV.state===3)return K3V(a);oV.state===4?(oV.state=6,oV.timer.stop(),oV.on.call("interrupt",J,J.__data__,oV.index,oV.group),delete na[vJ]):+vJ<I&&(oV.state=6,oV.timer.stop(),delete na[vJ])}}K3V(function(){h.state===3&&(h.state=4,h.timer.restart(Wy,h.delay,h.time),Wy(M1))});
h.state=2;h.on.call("start",J,J.__data__,h.index,h.group);if(h.state===2){h.state=3;OD=Array(wg=h.tween.length);var vJ=0;for(aI=-1;vJ<wg;++vJ)if(oV=h.tween[vJ].value.call(J,J.__data__,h.index,h.group))OD[++aI]=oV;OD.length=aI+1}}
function Wy(M1){M1=M1<h.duration?h.ease.call(null,M1/h.duration):(h.timer.restart(zO),h.state=5,1);for(var aI=-1,wg=OD.length;++aI<wg;)OD[aI].call(null,M1);h.state===5&&(h.on.call("end",J,J.__data__,h.index,h.group),zO())}
function zO(){h.state=6;h.timer.stop();delete na[I];for(var M1 in na)return;delete J.__transition}
var na=J.__transition,OD;na[I]=h;h.timer=FV(function(M1){h.state=1;h.timer.restart(a,h.delay,h.time);h.delay<=M1&&a(M1-h.delay)},0,h.time)}
function zbS(J,I){var h,a;return function(){var Wy=sm(this,J),zO=Wy.tween;if(zO!==h){a=h=zO;zO=0;for(var na=a.length;zO<na;++zO)if(a[zO].name===I){a=a.slice();a.splice(zO,1);break}}Wy.tween=a}}
function YFD(J,I,h){var a,Wy;if(typeof h!=="function")throw Error();return function(){var zO=sm(this,J),na=zO.tween;if(na!==a){Wy=(a=na).slice();na={name:I,value:h};for(var OD=0,M1=Wy.length;OD<M1;++OD)if(Wy[OD].name===I){Wy[OD]=na;break}OD===M1&&Wy.push(na)}zO.tween=Wy}}
function WmE(J,I,h){var a=J._id;J.each(function(){var Wy=sm(this,a);(Wy.value||(Wy.value={}))[I]=h.apply(this,arguments)});
return function(Wy){return Ef(Wy,a).value[I]}}
function OVE(J,I){var h;return(typeof I==="number"?vy:I instanceof YX?gJ0:(h=YX(I))?(I=h,gJ0):SD)(J,I)}
function mdB(J){return function(){this.removeAttribute(J)}}
function suH(J){return function(){this.removeAttributeNS(J.space,J.local)}}
function uv6(J,I,h){var a,Wy;return function(){var zO=this.getAttribute(J);return zO===h?null:zO===a?Wy:Wy=I(a=zO,h)}}
function tkg(J,I,h){var a,Wy;return function(){var zO=this.getAttributeNS(J.space,J.local);return zO===h?null:zO===a?Wy:Wy=I(a=zO,h)}}
function nlg(J,I,h){var a,Wy,zO;return function(){var na=h(this);if(na==null)return void this.removeAttribute(J);var OD=this.getAttribute(J);return OD===na?null:OD===a&&na===Wy?zO:zO=I(a=OD,Wy=na)}}
function XZ9(J,I,h){var a,Wy,zO;return function(){var na=h(this);if(na==null)return void this.removeAttributeNS(J.space,J.local);var OD=this.getAttributeNS(J.space,J.local);return OD===na?null:OD===a&&na===Wy?zO:zO=I(a=OD,Wy=na)}}
function b9Q(J,I){function h(){var a=this,Wy=I.apply(a,arguments);return Wy&&function(zO){a.setAttributeNS(J.space,J.local,Wy(zO))}}
h._value=I;return h}
function rr3(J,I){function h(){var a=this,Wy=I.apply(a,arguments);return Wy&&function(zO){a.setAttribute(J,Wy(zO))}}
h._value=I;return h}
function FRH(J,I){return function(){yTF(this,J).delay=+I.apply(this,arguments)}}
function UdH(J,I){return I=+I,function(){yTF(this,J).delay=I}}
function $dQ(J,I){return function(){sm(this,J).duration=+I.apply(this,arguments)}}
function KRH(J,I){return I=+I,function(){sm(this,J).duration=I}}
function O9d(J,I){if(typeof I!=="function")throw Error();return function(){sm(this,J).ease=I}}
function glZ(J){return(J+"").trim().split(/^|\s+/).every(function(I){var h=I.indexOf(".");h>=0&&(I=I.slice(0,h));return!I||I==="start"})}
function Rb9(J,I,h){var a,Wy,zO=glZ(I)?yTF:sm;return function(){var na=zO(this,J),OD=na.on;if(OD!==a)(Wy=(a=OD).copy()).on(I,h);na.on=Wy}}
function l6H(J){return function(){var I=this.parentNode,h;for(h in this.__transition)if(+h!==J)return;I&&I.removeChild(this)}}
function El9(J,I){var h,a,Wy;return function(){var zO=Py(this,J),na=(this.style.removeProperty(J),Py(this,J));return zO===na?null:zO===h&&na===a?Wy:Wy=I(h=zO,a=na)}}
function Nvg(J){return function(){this.style.removeProperty(J)}}
function I63(J,I,h){var a,Wy;return function(){var zO=Py(this,J);return zO===h?null:zO===a?Wy:Wy=I(a=zO,h)}}
function pZB(J,I,h){var a,Wy,zO;return function(){var na=Py(this,J),OD=h(this);OD==null&&(OD=(this.style.removeProperty(J),Py(this,J)));return na===OD?null:na===a&&OD===Wy?zO:zO=I(a=na,Wy=OD)}}
function PbD(J,I,h){function a(){var Wy=this,zO=I.apply(Wy,arguments);return zO&&function(na){Wy.style.setProperty(J,zO(na),h)}}
a._value=I;return a}
function JrB(J){return function(){this.textContent=J}}
function VkB(J){return function(){var I=J(this);this.textContent=I==null?"":I}}
function gF(J,I,h,a){this._groups=J;this._parents=I;this._name=h;this._id=a}
function cTF(J){return{type:J}}
function Zua(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function BXa(){}
function RiV(J,I){var h=new BXa;if(J instanceof BXa)J.each(function(na,OD){h.set(OD,na)});
else if(Array.isArray(J)){var a=-1,Wy=J.length,zO;if(I==null)for(;++a<Wy;)h.set(a,J[a]);else for(;++a<Wy;)h.set(I(zO=J[a],a,J),zO)}else if(J)for(a in J)h.set(a,J[a]);return h}
function HXF(){}
function lX2(J){return function(I){for(var h={},a=0;a<J.length;a++)h[J[a]]=I[a]||"";return h}}
function CbQ(J,I){var h=lX2(J);return function(a,Wy){return I(h(a),Wy,J)}}
function Qud(J){var I=Object.create(null),h=[];J.forEach(function(a){for(var Wy in a)Wy in I||h.push(I[Wy]=Wy)});
return h}
function EJE(J){function I(na,OD){function M1(){if(s3)return GWO;if(lR)return lR=!1,NkQ;var al,sN=oV,zG;if(na.charCodeAt(sN)===34){for(;oV++<wg&&na.charCodeAt(oV)!==34||na.charCodeAt(++oV)===34;);(al=oV)>=wg?s3=!0:(zG=na.charCodeAt(oV++))===10?lR=!0:zG===13&&(lR=!0,na.charCodeAt(oV)===10&&++oV);return na.slice(sN+1,al-1).replace(/""/g,'"')}for(;oV<wg;){if((zG=na.charCodeAt(al=oV++))===10)lR=!0;else if(zG===13)lR=!0,na.charCodeAt(oV)===10&&++oV;else if(zG!==zO)continue;return na.slice(sN,al)}return s3=
!0,na.slice(sN,wg)}
var aI=[],wg=na.length,oV=0,vJ=0,m6,s3=wg<=0,lR=!1;na.charCodeAt(wg-1)===10&&--wg;for(na.charCodeAt(wg-1)===13&&--wg;(m6=M1())!==GWO;){for(var uR=[];m6!==NkQ&&m6!==GWO;)uR.push(m6),m6=M1();OD&&(uR=OD(uR,vJ++))==null||aI.push(uR)}return aI}
function h(na){return na.map(a).join(J)}
function a(na){return na==null?"":Wy.test(na)?'"'+na.replace(/"/g,'""')+'"':na}
var Wy=new RegExp('["'+J+"\n\r]"),zO=J.charCodeAt(0);return{parse:function(na,OD){var M1,aI;na=I(na,function(wg,oV){if(M1)return M1(wg,oV-1);aI=wg;M1=OD?CbQ(wg,OD):lX2(wg)});
na.columns=aI||[];return na},
parseRows:I,format:function(na,OD){OD==null&&(OD=Qud(na));return[OD.map(a).join(J)].concat(na.map(function(M1){return OD.map(function(aI){return a(M1[aI])}).join(J)})).join("\n")},
formatRows:function(na){return na.map(h).join("\n")}}}
function Arf(J){if(!J.ok)throw Error("we`"+J.status+"`"+J.statusText);return J.text()}
function IX0(J){return function(I,h,a){arguments.length===2&&typeof h==="function"&&(a=h,h=void 0);return fetch(I,h).then(Arf).then(function(Wy){return J(Wy,a)})}}
function pfV(J,I,h,a){if(isNaN(I)||isNaN(h))return J;var Wy,zO=J._root;a={data:a};var na=J._x0,OD=J._y0,M1=J._x1,aI=J._y1,wg,oV,vJ,m6,s3;if(!zO)return J._root=a,J;for(;zO.length;)if((vJ=I>=(wg=(na+M1)/2))?na=wg:M1=wg,(m6=h>=(oV=(OD+aI)/2))?OD=oV:aI=oV,Wy=zO,!(zO=zO[s3=m6<<1|vJ]))return Wy[s3]=a,J;var lR=+J._x.call(null,zO.data);var uR=+J._y.call(null,zO.data);if(I===lR&&h===uR)return a.next=zO,Wy?Wy[s3]=a:J._root=a,J;do Wy=Wy?Wy[s3]=Array(4):J._root=Array(4),(vJ=I>=(wg=(na+M1)/2))?na=wg:M1=wg,(m6=
h>=(oV=(OD+aI)/2))?OD=oV:aI=oV;while((s3=m6<<1|vJ)===(vJ=(uR>=oV)<<1|lR>=wg));return Wy[vJ]=zO,Wy[s3]=a,J}
function nZ(J,I,h,a,Wy){this.node=J;this.x0=I;this.y0=h;this.x1=a;this.y1=Wy}
function hbd(J){return J[0]}
function BvQ(J){return J[1]}
function fRF(J,I,h,a,Wy,zO){this._x=J;this._y=I;this._x0=h;this._y0=a;this._x1=Wy;this._y1=zO;this._root=void 0}
function PQ2(J){for(var I={data:J.data},h=I;J=J.next;)h=h.next={data:J.data};return I}
function Lha(J,I){if((I=(J=I?J.toExponential(I-1):J.toExponential()).indexOf("e"))<0)return null;var h=J.slice(0,I);return[h.length>1?h[0]+h.slice(2):h,+J.slice(I+1)]}
function H9H(J){return J=Lha(Math.abs(J)),J?J[1]:NaN}
function LRQ(J,I){return function(h,a){for(var Wy=h.length,zO=[],na=0,OD=J[0],M1=0;Wy>0&&OD>0;){M1+OD+1>a&&(OD=Math.max(1,a-M1));zO.push(h.substring(Wy-=OD,Wy+OD));if((M1+=OD+1)>a)break;OD=J[na=(na+1)%J.length]}return zO.reverse().join(I)}}
function vlS(J){return function(I){return I.replace(/[0-9]/g,function(h){return J[+h]})}}
function oEH(J){return new DqI(J)}
function DqI(J){if(!(I=dd6.exec(J)))throw Error("xe`"+J);var I;this.fill=I[1]||" ";this.align=I[2]||">";this.sign=I[3]||"-";this.symbol=I[4]||"";this.zero=!!I[5];this.width=I[6]&&+I[6];this.comma=!!I[7];this.precision=I[8]&&+I[8].slice(1);this.trim=!!I[9];this.type=I[10]||""}
function J$V(J,I){I=Lha(J,I);if(!I)return J+"";J=I[0];I=I[1];return I<0?"0."+Array(-I).join("0")+J:J.length>I+1?J.slice(0,I+1)+"."+J.slice(I+1):J+Array(I-J.length+2).join("0")}
function Vg3(J){return J}
function SFg(J){function I(OD){function M1(HX){var UW=zG,l9=fx,Ge,i9;if(sN==="c")l9=u7(HX)+l9,HX="";else{HX=+HX;var XZ=HX<0;HX=u7(Math.abs(HX),uR);if(al){var fj=HX.length,lt=1,x2=-1;a:for(;lt<fj;++lt)switch(HX[lt]){case ".":x2=Ge=lt;break;case "0":x2===0&&(x2=lt);Ge=lt;break;default:if(!+HX[lt])break a;x2>0&&(x2=0)}HX=x2>0?HX.slice(0,x2)+HX.slice(Ge+1):HX}XZ&&+HX===0&&(XZ=!1);UW=(XZ?oV==="("?oV:"-":oV==="-"||oV==="("?"":oV)+UW;l9=(sN==="s"?CQV[8+QFZ/3]:"")+l9+(XZ&&oV==="("?")":"");if(y4)for(XZ=-1,
Ge=HX.length;++XZ<Ge;)if(i9=HX.charCodeAt(XZ),48>i9||i9>57){l9=(i9===46?Wy+HX.slice(XZ+1):HX.slice(XZ))+l9;HX=HX.slice(0,XZ);break}}lR&&!m6&&(HX=h(HX,Infinity));i9=UW.length+HX.length+l9.length;XZ=i9<s3?Array(s3-i9+1).join(aI):"";lR&&m6&&(HX=h(XZ+HX,XZ.length?s3-l9.length:Infinity),XZ="");switch(wg){case "<":HX=UW+HX+l9+XZ;break;case "=":HX=UW+XZ+HX+l9;break;case "^":HX=XZ.slice(0,i9=XZ.length>>1)+UW+HX+l9+XZ.slice(i9);break;default:HX=XZ+UW+HX+l9}return zO(HX)}
OD=oEH(OD);var aI=OD.fill,wg=OD.align,oV=OD.sign,vJ=OD.symbol,m6=OD.zero,s3=OD.width,lR=OD.comma,uR=OD.precision,al=OD.trim,sN=OD.type;sN==="n"?(lR=!0,sN="g"):A$3[sN]||(uR==null&&(uR=12),al=!0,sN="g");if(m6||aI==="0"&&wg==="=")m6=!0,aI="0",wg="=";var zG=vJ==="$"?a[0]:vJ==="#"&&/[boxX]/.test(sN)?"0"+sN.toLowerCase():"",fx=vJ==="$"?a[1]:/[%p]/.test(sN)?na:"",u7=A$3[sN],y4=/[defgprs%]/.test(sN);uR=uR==null?6:/[gprs]/.test(sN)?Math.max(1,Math.min(21,uR)):Math.max(0,Math.min(20,uR));M1.toString=function(){return OD+
""};
return M1}
var h=J.grouping&&J.thousands?LRQ(J.grouping,J.thousands):Vg3,a=J.currency,Wy=J.decimal,zO=J.numerals?vlS(J.numerals):Vg3,na=J.percent||"%";return{format:I,formatPrefix:function(OD,M1){var aI=I((OD=oEH(OD),OD.type="f",OD));OD=Math.max(-8,Math.min(8,Math.floor(H9H(M1)/3)))*3;var wg=Math.pow(10,-OD),oV=CQV[8+OD/3];return function(vJ){return aI(wg*vJ)+oV}}}}
function bT(){this.reset()}
function hi2(J,I,h){var a=J.s=I+h,Wy=a-I;J.t=I-(a-Wy)+(h-Wy)}
function v2I(J){return J>1?Lp:J<-1?-Lp:Math.asin(J)}
function Tv9(){}
function BkZ(J){var I=J[0];J=J[1];var h=vG(J);return[h*vG(I),h*uo(I),uo(J)]}
function HVE(J,I){return[J[1]*I[2]-J[2]*I[1],J[2]*I[0]-J[0]*I[2],J[0]*I[1]-J[1]*I[0]]}
function L3E(J){var I=dVE(J[0]*J[0]+J[1]*J[1]+J[2]*J[2]);J[0]/=I;J[1]/=I;J[2]/=I}
function a6B(){var J=[],I;return{point:function(h,a){I.push([h,a])},
lineStart:function(){J.push(I=[])},
lineEnd:Tv9,rejoin:function(){J.length>1&&J.push(J.pop().concat(J.shift()))},
result:function(){var h=J;J=[];I=null;return h}}}
function SWh(J,I,h,a){this.x=J;this.z=I;this.o=h;this.e=a;this.v=!1;this.n=this.p=null}
function xdZ(J,I,h,a,Wy){var zO=[],na=[];J.forEach(function(oV){if(!((vJ=oV.length-1)<=0)){var vJ,m6=oV[0],s3=oV[vJ],lR=m6;if(Rt(lR[0]-s3[0])<1E-6&&Rt(lR[1]-s3[1])<1E-6){Wy.lineStart();for(OD=0;OD<vJ;++OD)Wy.point((m6=oV[OD])[0],m6[1]);Wy.lineEnd()}else zO.push(vJ=new SWh(m6,oV,null,!0)),na.push(vJ.o=new SWh(m6,null,vJ,!1)),zO.push(vJ=new SWh(s3,oV,null,!1)),na.push(vJ.o=new SWh(s3,null,vJ,!0))}});
if(zO.length){na.sort(I);vJV(zO);vJV(na);var OD=0;for(J=na.length;OD<J;++OD)na[OD].e=h=!h;h=zO[0];for(var M1;;){for(var aI=h,wg=!0;aI.v;)if((aI=aI.n)===h)return;I=aI.z;Wy.lineStart();do{aI.v=aI.o.v=!0;if(aI.e){if(wg)for(OD=0,J=I.length;OD<J;++OD)Wy.point((M1=I[OD])[0],M1[1]);else a(aI.x,aI.n.x,1,Wy);aI=aI.n}else{if(wg)for(I=aI.p.z,OD=I.length-1;OD>=0;--OD)Wy.point((M1=I[OD])[0],M1[1]);else a(aI.x,aI.p.x,-1,Wy);aI=aI.p}aI=aI.o;I=aI.z;wg=!wg}while(!aI.v);Wy.lineEnd()}}}
function vJV(J){if(I=J.length){for(var I,h=0,a=J[0],Wy;++h<I;)a.n=Wy=J[h],Wy.p=a,a=Wy;a.n=Wy=J[0];Wy.p=a}}
function i99(J){return J.length>1}
function Mk6(J,I){return((J=J.x)[0]<0?J[1]-Lp-1E-6:Lp-J[1])-((I=I.x)[0]<0?I[1]-Lp-1E-6:Lp-I[1])}
function z1a(){}
function dS8(J){return function(I,h){var a=vG(I),Wy=vG(h);a=J(a*Wy);return[a*Wy*uo(I),a*uo(h)]}}
function El(J){return function(I,h){var a=dVE(I*I+h*h),Wy=J(a),zO=uo(Wy);Wy=vG(Wy);return[SJJ(I*zO,a*Wy),v2I(a&&h*zO/a)]}}
function ebS(J){var I=0,h=J.children,a=h&&h.length;if(a)for(;--a>=0;)I+=h[a].value;else I=1;J.value=I}
function TkZ(J,I){var h=new Nb(J);J=+J.value&&(h.value=J.value);var a,Wy=[h],zO,na,OD,M1;for(I==null&&(I=wZH);a=Wy.pop();)if(J&&(a.value=+a.data.value),(na=I(a.data))&&(M1=na.length))for(a.children=Array(M1),OD=M1-1;OD>=0;--OD)Wy.push(zO=a.children[OD]=new Nb(na[OD])),zO.parent=a,zO.depth=a.depth+1;return h.eachBefore(qFH)}
function wZH(J){return J.children}
function knS(J){J.data=J.data.data}
function qFH(J){var I=0;do J.height=I;while((J=J.parent)&&J.height<++I)}
function Nb(J){this.data=J;this.depth=this.height=0;this.parent=null}
function cT(J,I,h,a){function Wy(zO){return J(zO=new Date(+zO)),zO}
Wy.floor=Wy;Wy.ceil=function(zO){return J(zO=new Date(zO-1)),I(zO,1),J(zO),zO};
Wy.round=function(zO){var na=Wy(zO),OD=Wy.ceil(zO);return zO-na<OD-zO?na:OD};
Wy.offset=function(zO,na){return I(zO=new Date(+zO),na==null?1:Math.floor(na)),zO};
Wy.range=function(zO,na,OD){var M1=[],aI;zO=Wy.ceil(zO);OD=OD==null?1:Math.floor(OD);if(!(zO<na&&OD>0))return M1;do M1.push(aI=new Date(+zO)),I(zO,OD),J(zO);while(aI<zO&&zO<na);return M1};
Wy.filter=function(zO){return cT(function(na){if(na>=na)for(;J(na),!zO(na);)na.setTime(na-1)},function(na,OD){if(na>=na)if(OD<0)for(;++OD<=0;)for(;I(na,-1),!zO(na););
else for(;--OD>=0;)for(;I(na,1),!zO(na););})};
h&&(Wy.count=function(zO,na){Y1I.setTime(+zO);mqF.setTime(+na);J(Y1I);J(mqF);return Math.floor(h(Y1I,mqF))},Wy.every=function(zO){zO=Math.floor(zO);
return isFinite(zO)&&zO>0?zO>1?Wy.filter(a?function(na){return a(na)%zO===0}:function(na){return Wy.count(0,na)%zO===0}):Wy:null});
return Wy}
function uB(J){return cT(function(I){I.setDate(I.getDate()-(I.getDay()+7-J)%7);I.setHours(0,0,0,0)},function(I,h){I.setDate(I.getDate()+h*7)},function(I,h){return(h-I-(h.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/6048E5})}
function ta(J){return cT(function(I){I.setUTCDate(I.getUTCDate()-(I.getUTCDay()+7-J)%7);I.setUTCHours(0,0,0,0)},function(I,h){I.setUTCDate(I.getUTCDate()+h*7)},function(I,h){return(h-I)/6048E5})}
function jKg(J){if(0<=J.y&&J.y<100){var I=new Date(-1,J.m,J.d,J.H,J.M,J.S,J.L);I.setFullYear(J.y);return I}return new Date(J.y,J.m,J.d,J.H,J.M,J.S,J.L)}
function TXt(J){if(0<=J.y&&J.y<100){var I=new Date(Date.UTC(-1,J.m,J.d,J.H,J.M,J.S,J.L));I.setUTCFullYear(J.y);return I}return new Date(Date.UTC(J.y,J.m,J.d,J.H,J.M,J.S,J.L))}
function Ik(J){return{y:J,m:0,d:1,H:0,M:0,S:0,L:0}}
function yM6(J){function I(l9,Ge){return function(i9){var XZ=[],fj=-1,lt=0,x2=l9.length,EE,ip;for(i9 instanceof Date||(i9=new Date(+i9));++fj<x2;)if(l9.charCodeAt(fj)===37){XZ.push(l9.slice(lt,fj));(lt=aXV[EE=l9.charAt(++fj)])!=null?EE=l9.charAt(++fj):lt=EE==="e"?" ":"0";if(ip=Ge[EE])EE=ip(i9,lt);XZ.push(EE);lt=fj+1}XZ.push(l9.slice(lt,fj));return XZ.join("")}}
function h(l9,Ge){return function(i9){var XZ=Ik(1900);if(a(XZ,l9,i9,0)!=i9.length)return null;if("Q"in XZ)return new Date(XZ.Q);"p"in XZ&&(XZ.H=XZ.H%12+XZ.p*12);if("V"in XZ){if(XZ.V<1||XZ.V>53)return null;"w"in XZ||(XZ.w=1);if("Z"in XZ){i9=TXt(Ik(XZ.y));var fj=i9.getUTCDay();i9=fj>4||fj===0?s1g.ceil(i9):s1g(i9);i9=xSV.offset(i9,(XZ.V-1)*7);XZ.y=i9.getUTCFullYear();XZ.m=i9.getUTCMonth();XZ.d=i9.getUTCDate()+(XZ.w+6)%7}else i9=Ge(Ik(XZ.y)),fj=i9.getDay(),i9=fj>4||fj===0?uAa.ceil(i9):uAa(i9),i9=iVW.offset(i9,
(XZ.V-1)*7),XZ.y=i9.getFullYear(),XZ.m=i9.getMonth(),XZ.d=i9.getDate()+(XZ.w+6)%7}else if("W"in XZ||"U"in XZ)"w"in XZ||(XZ.w="u"in XZ?XZ.u%7:"W"in XZ?1:0),fj="Z"in XZ?TXt(Ik(XZ.y)).getUTCDay():Ge(Ik(XZ.y)).getDay(),XZ.m=0,XZ.d="W"in XZ?(XZ.w+6)%7+XZ.W*7-(fj+5)%7:XZ.w+XZ.U*7-(fj+6)%7;return"Z"in XZ?(XZ.H+=XZ.Z/100|0,XZ.M+=XZ.Z%100,TXt(XZ)):Ge(XZ)}}
function a(l9,Ge,i9,XZ){for(var fj=0,lt=Ge.length,x2=i9.length,EE;fj<lt;){if(XZ>=x2)return-1;EE=Ge.charCodeAt(fj++);if(EE===37){if(EE=Ge.charAt(fj++),EE=UW[EE in aXV?Ge.charAt(fj++):EE],!EE||(XZ=EE(l9,i9,XZ))<0)return-1}else if(EE!=i9.charCodeAt(XZ++))return-1}return XZ}
var Wy=J.dateTime,zO=J.date,na=J.time,OD=J.periods,M1=J.days,aI=J.shortDays,wg=J.months,oV=J.shortMonths,vJ=pb(OD),m6=PH(OD),s3=pb(M1),lR=PH(M1),uR=pb(aI),al=PH(aI),sN=pb(wg),zG=PH(wg),fx=pb(oV),u7=PH(oV),y4={a:function(l9){return aI[l9.getDay()]},
A:function(l9){return M1[l9.getDay()]},
b:function(l9){return oV[l9.getMonth()]},
B:function(l9){return wg[l9.getMonth()]},
c:null,d:MgE,e:MgE,f:WND,H:cMg,I:Z1d,j:GvD,L:ei8,m:fFH,M:ovQ,p:function(l9){return OD[+(l9.getHours()>=12)]},
Q:wfW,s:qJW,S:Def,u:zSQ,U:YhH,V:meD,w:sK9,W:u$S,x:null,X:null,y:tO3,Y:nvQ,Z:X5Z,"%":kcm},HX={a:function(l9){return aI[l9.getUTCDay()]},
A:function(l9){return M1[l9.getUTCDay()]},
b:function(l9){return oV[l9.getUTCMonth()]},
B:function(l9){return wg[l9.getUTCMonth()]},
c:null,d:jmm,e:jmm,f:b1f,H:rMg,I:FN9,j:Ued,L:ywQ,m:$eD,M:KNQ,p:function(l9){return OD[+(l9.getUTCHours()>=12)]},
Q:wfW,s:qJW,S:O19,u:gvB,U:RSH,V:lFd,w:EvH,W:NmQ,x:null,X:null,y:IFB,Y:p5B,Z:P3g,"%":kcm},UW={a:function(l9,Ge,i9){return(Ge=uR.exec(Ge.slice(i9)))?(l9.w=al[Ge[0].toLowerCase()],i9+Ge[0].length):-1},
A:function(l9,Ge,i9){return(Ge=s3.exec(Ge.slice(i9)))?(l9.w=lR[Ge[0].toLowerCase()],i9+Ge[0].length):-1},
b:function(l9,Ge,i9){return(Ge=fx.exec(Ge.slice(i9)))?(l9.m=u7[Ge[0].toLowerCase()],i9+Ge[0].length):-1},
B:function(l9,Ge,i9){return(Ge=sN.exec(Ge.slice(i9)))?(l9.m=zG[Ge[0].toLowerCase()],i9+Ge[0].length):-1},
c:function(l9,Ge,i9){return a(l9,Wy,Ge,i9)},
d:WUJ,e:WUJ,f:JMQ,H:cwJ,I:cwJ,j:VOS,L:C3S,m:QK9,M:AM9,p:function(l9,Ge,i9){return(Ge=vJ.exec(Ge.slice(i9)))?(l9.p=m6[Ge[0].toLowerCase()],i9+Ge[0].length):-1},
Q:hSg,s:Bmd,S:H1H,u:LNH,U:vv9,V:de9,w:ShD,W:TmS,x:function(l9,Ge,i9){return a(l9,zO,Ge,i9)},
X:function(l9,Ge,i9){return a(l9,na,Ge,i9)},
y:aFf,Y:xeS,Z:i19,"%":MOH};y4.x=I(zO,y4);y4.X=I(na,y4);y4.c=I(Wy,y4);HX.x=I(zO,HX);HX.X=I(na,HX);HX.c=I(Wy,HX);return{format:function(l9){var Ge=I(l9,y4);Ge.toString=function(){return l9};
return Ge},
parse:function(l9){var Ge=h(l9,jKg);Ge.toString=function(){return l9};
return Ge},
utcFormat:function(l9){var Ge=I(l9,HX);Ge.toString=function(){return l9};
return Ge},
utcParse:function(l9){var Ge=h(l9,TXt);Ge.toString=function(){return l9};
return Ge}}}
function Jl(J,I,h){var a=J<0?"-":"";J=(a?-J:J)+"";var Wy=J.length;return a+(Wy<h?Array(h-Wy+1).join(I)+J:J)}
function eSd(J){return J.replace(w56,"\\$&")}
function pb(J){return new RegExp("^(?:"+J.map(eSd).join("|")+")","i")}
function PH(J){for(var I={},h=-1,a=J.length;++h<a;)I[J[h].toLowerCase()]=h;return I}
function ShD(J,I,h){return(I=YA.exec(I.slice(h,h+1)))?(J.w=+I[0],h+I[0].length):-1}
function LNH(J,I,h){return(I=YA.exec(I.slice(h,h+1)))?(J.u=+I[0],h+I[0].length):-1}
function vv9(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.U=+I[0],h+I[0].length):-1}
function de9(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.V=+I[0],h+I[0].length):-1}
function TmS(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.W=+I[0],h+I[0].length):-1}
function xeS(J,I,h){return(I=YA.exec(I.slice(h,h+4)))?(J.y=+I[0],h+I[0].length):-1}
function aFf(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.y=+I[0]+(+I[0]>68?1900:2E3),h+I[0].length):-1}
function i19(J,I,h){return(I=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(I.slice(h,h+6)))?(J.Z=I[1]?0:-(I[2]+(I[3]||"00")),h+I[0].length):-1}
function QK9(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.m=I[0]-1,h+I[0].length):-1}
function WUJ(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.d=+I[0],h+I[0].length):-1}
function VOS(J,I,h){return(I=YA.exec(I.slice(h,h+3)))?(J.m=0,J.d=+I[0],h+I[0].length):-1}
function cwJ(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.H=+I[0],h+I[0].length):-1}
function AM9(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.M=+I[0],h+I[0].length):-1}
function H1H(J,I,h){return(I=YA.exec(I.slice(h,h+2)))?(J.S=+I[0],h+I[0].length):-1}
function C3S(J,I,h){return(I=YA.exec(I.slice(h,h+3)))?(J.L=+I[0],h+I[0].length):-1}
function JMQ(J,I,h){return(I=YA.exec(I.slice(h,h+6)))?(J.L=Math.floor(I[0]/1E3),h+I[0].length):-1}
function MOH(J,I,h){return(J=qh6.exec(I.slice(h,h+1)))?h+J[0].length:-1}
function hSg(J,I,h){return(I=YA.exec(I.slice(h)))?(J.Q=+I[0],h+I[0].length):-1}
function Bmd(J,I,h){return(I=YA.exec(I.slice(h)))?(J.Q=+I[0]*1E3,h+I[0].length):-1}
function MgE(J,I){return Jl(J.getDate(),I,2)}
function cMg(J,I){return Jl(J.getHours(),I,2)}
function Z1d(J,I){return Jl(J.getHours()%12||12,I,2)}
function GvD(J,I){return Jl(1+iVW.count(KM(J),J),I,3)}
function ei8(J,I){return Jl(J.getMilliseconds(),I,3)}
function WND(J,I){return ei8(J,I)+"000"}
function fFH(J,I){return Jl(J.getMonth()+1,I,2)}
function ovQ(J,I){return Jl(J.getMinutes(),I,2)}
function Def(J,I){return Jl(J.getSeconds(),I,2)}
function zSQ(J){J=J.getDay();return J===0?7:J}
function YhH(J,I){return Jl(kv6.count(KM(J),J),I,2)}
function meD(J,I){var h=J.getDay();J=h>=4||h===0?tMh(J):tMh.ceil(J);return Jl(tMh.count(KM(J),J)+(KM(J).getDay()===4),I,2)}
function sK9(J){return J.getDay()}
function u$S(J,I){return Jl(uAa.count(KM(J),J),I,2)}
function tO3(J,I){return Jl(J.getFullYear()%100,I,2)}
function nvQ(J,I){return Jl(J.getFullYear()%1E4,I,4)}
function X5Z(J){J=J.getTimezoneOffset();return(J>0?"-":(J*=-1,"+"))+Jl(J/60|0,"0",2)+Jl(J%60,"0",2)}
function jmm(J,I){return Jl(J.getUTCDate(),I,2)}
function rMg(J,I){return Jl(J.getUTCHours(),I,2)}
function FN9(J,I){return Jl(J.getUTCHours()%12||12,I,2)}
function Ued(J,I){return Jl(1+xSV.count(Oa(J),J),I,3)}
function ywQ(J,I){return Jl(J.getUTCMilliseconds(),I,3)}
function b1f(J,I){return ywQ(J,I)+"000"}
function $eD(J,I){return Jl(J.getUTCMonth()+1,I,2)}
function KNQ(J,I){return Jl(J.getUTCMinutes(),I,2)}
function O19(J,I){return Jl(J.getUTCSeconds(),I,2)}
function gvB(J){J=J.getUTCDay();return J===0?7:J}
function RSH(J,I){return Jl(jc9.count(Oa(J),J),I,2)}
function lFd(J,I){var h=J.getUTCDay();J=h>=4||h===0?nED(J):nED.ceil(J);return Jl(nED.count(Oa(J),J)+(Oa(J).getUTCDay()===4),I,2)}
function EvH(J){return J.getUTCDay()}
function NmQ(J,I){return Jl(s1g.count(Oa(J),J),I,2)}
function IFB(J,I){return Jl(J.getUTCFullYear()%100,I,2)}
function p5B(J,I){return Jl(J.getUTCFullYear()%1E4,I,4)}
function P3g(){return"+0000"}
function kcm(){return"%"}
function wfW(J){return+J}
function qJW(J){return Math.floor(+J/1E3)}
function Mo(J){for(var I=J.length/6|0,h=Array(I),a=0;a<I;)h[a]="#"+J.slice(a*6,++a*6);return h}
function o8(J){return yX6(J[J.length-1])}
function an1(J){var I=J.length;return function(h){return J[Math.max(0,Math.min(I-1,Math.floor(h*I)))]}}
function Zmm(J){this._context=J}
function GTQ(J){this._curve=J}
function fBV(J,I,h){var a=J._x1-J._x0;I-=J._x1;var Wy=(J._y1-J._y0)/(a||I<0&&-0);J=(h-J._y1)/(I||a<0&&-0);return((Wy<0?-1:1)+(J<0?-1:1))*Math.min(Math.abs(Wy),Math.abs(J),.5*Math.abs((Wy*I+J*a)/(a+I)))||0}
function ouW(J,I){var h=J._x1-J._x0;return h?(3*(J._y1-J._y0)/h-I)/2:I}
function Xzh(J,I,h){var a=J._x0,Wy=J._x1,zO=J._y1,na=(Wy-a)/3;J._context.bezierCurveTo(a+na,J._y0+na*I,Wy-na,zO-na*h,Wy,zO)}
function buw(J){this._context=J}
function DN0(J){this._context=J}
function Jp(J,I,h){this.k=J;this.x=I;this.y=h}
(function(J){J.length===1&&(J=W(J));return{left:function(I,h,a,Wy){a==null&&(a=0);Wy==null&&(Wy=I.length);for(;a<Wy;){var zO=a+Wy>>>1;J(I[zO],h)<0?a=zO+1:Wy=zO}return a},
right:function(I,h,a,Wy){a==null&&(a=0);Wy==null&&(Wy=I.length);for(;a<Wy;){var zO=a+Wy>>>1;J(I[zO],h)>0?Wy=zO:a=zO+1}return a}}})(y);
var iS9={value:function(){}};
Z.prototype=c.prototype={constructor:Z,on:function(J,I){var h=this._,a=G(J+"",h),Wy,zO=-1,na=a.length;if(arguments.length<2)for(;++zO<na;){var OD;if(OD=Wy=(J=a[zO]).type){a:{OD=h[Wy];for(var M1=0,aI=OD.length;M1<aI;++M1)if((Wy=OD[M1]).name===J.name){Wy=Wy.value;break a}Wy=void 0}OD=Wy}if(OD)return Wy}else{if(I!=null&&typeof I!=="function")throw Error("ye`"+I);for(;++zO<na;)if(Wy=(J=a[zO]).type)h[Wy]=D(h[Wy],J.name,I);else if(I==null)for(Wy in h)h[Wy]=D(h[Wy],J.name,null);return this}},
copy:function(){var J={},I=this._,h;for(h in I)J[h]=I[h].slice();return new Z(J)},
call:function(J,I){if((Wy=arguments.length-2)>0)for(var h=Array(Wy),a=0,Wy,zO;a<Wy;++a)h[a]=arguments[a+2];if(!this._.hasOwnProperty(J))throw Error("se`"+J);zO=this._[J];a=0;for(Wy=zO.length;a<Wy;++a)zO[a].value.apply(I,h)},
apply:function(J,I,h){if(!this._.hasOwnProperty(J))throw Error("se`"+J);J=this._[J];for(var a=0,Wy=J.length;a<Wy;++a)J[a].value.apply(I,h)}};
var HG={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/"},zj0=function(J){return function(){return this.matches(J)}};
if(typeof document!=="undefined"){var VU=document.documentElement;if(!VU.matches){var Wb6=VU.webkitMatchesSelector||VU.msMatchesSelector||VU.mozMatchesSelector||VU.oMatchesSelector;zj0=function(J){return function(){return Wb6.call(this,J)}}}}var Y5J=zj0;
l.prototype={constructor:l,appendChild:function(J){return this._parent.insertBefore(J,this._next)},
insertBefore:function(J,I){return this._parent.insertBefore(J,I)},
querySelector:function(J){return this._parent.querySelector(J)},
querySelectorAll:function(J){return this._parent.querySelectorAll(J)}};
var uNi={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(uNi={mouseenter:"mouseover",mouseleave:"mouseout"}));var M46=[null];w2.prototype=Z3.prototype={constructor:w2,select:function(J){typeof J!=="function"&&(J=F(J));for(var I=this._groups,h=I.length,a=Array(h),Wy=0;Wy<h;++Wy)for(var zO=I[Wy],na=zO.length,OD=a[Wy]=Array(na),M1,aI,wg=0;wg<na;++wg)(M1=zO[wg])&&(aI=J.call(M1,M1.__data__,wg,zO))&&("__data__"in M1&&(aI.__data__=M1.__data__),OD[wg]=aI);return new w2(a,this._parents)},
filter:function(J){typeof J!=="function"&&(J=Y5J(J));for(var I=this._groups,h=I.length,a=Array(h),Wy=0;Wy<h;++Wy)for(var zO=I[Wy],na=zO.length,OD=a[Wy]=[],M1,aI=0;aI<na;++aI)(M1=zO[aI])&&J.call(M1,M1.__data__,aI,zO)&&OD.push(M1);return new w2(a,this._parents)},
data:function(J,I){if(!J)return m6=Array(this.size()),aI=-1,this.each(function(sN){m6[++aI]=sN}),m6;
var h=I?V:P,a=this._parents,Wy=this._groups;typeof J!=="function"&&(J=N(J));for(var zO=Wy.length,na=Array(zO),OD=Array(zO),M1=Array(zO),aI=0;aI<zO;++aI){var wg=a[aI],oV=Wy[aI],vJ=oV.length,m6=J.call(wg,wg&&wg.__data__,aI,a),s3=m6.length,lR=OD[aI]=Array(s3),uR=na[aI]=Array(s3);vJ=M1[aI]=Array(vJ);h(wg,oV,lR,uR,vJ,m6,I);oV=wg=0;for(var al;wg<s3;++wg)if(vJ=lR[wg]){for(wg>=oV&&(oV=wg+1);!(al=uR[oV])&&++oV<s3;);vJ._next=al||null}}na=new w2(na,a);na._enter=OD;na._exit=M1;return na},
exit:function(){return new w2(this._exit||this._groups.map(K),this._parents)},
merge:function(J){var I=this._groups;J=J._groups;for(var h=I.length,a=Math.min(h,J.length),Wy=Array(h),zO=0;zO<a;++zO)for(var na=I[zO],OD=J[zO],M1=na.length,aI=Wy[zO]=Array(M1),wg,oV=0;oV<M1;++oV)if(wg=na[oV]||OD[oV])aI[oV]=wg;for(;zO<h;++zO)Wy[zO]=I[zO];return new w2(Wy,this._parents)},
order:function(){for(var J=this._groups,I=-1,h=J.length;++I<h;)for(var a=J[I],Wy=a.length-1,zO=a[Wy],na;--Wy>=0;)if(na=a[Wy])zO&&zO!==na.nextSibling&&zO.parentNode.insertBefore(na,zO),zO=na;return this},
sort:function(J){function I(oV,vJ){return oV&&vJ?J(oV.__data__,vJ.__data__):!oV-!vJ}
J||(J=Q);for(var h=this._groups,a=h.length,Wy=Array(a),zO=0;zO<a;++zO){for(var na=h[zO],OD=na.length,M1=Wy[zO]=Array(OD),aI,wg=0;wg<OD;++wg)if(aI=na[wg])M1[wg]=aI;M1.sort(I)}return(new w2(Wy,this._parents)).order()},
call:function(){var J=arguments[0];arguments[0]=this;J.apply(null,arguments);return this},
nodes:function(){var J=Array(this.size()),I=-1;this.each(function(){J[++I]=this});
return J},
node:function(){for(var J=this._groups,I=0,h=J.length;I<h;++I)for(var a=J[I],Wy=0,zO=a.length;Wy<zO;++Wy){var na=a[Wy];if(na)return na}return null},
size:function(){var J=0;this.each(function(){++J});
return J},
empty:function(){return!this.node()},
each:function(J){for(var I=this._groups,h=0,a=I.length;h<a;++h)for(var Wy=I[h],zO=0,na=Wy.length,OD;zO<na;++zO)(OD=Wy[zO])&&J.call(OD,OD.__data__,zO,Wy);return this},
attr:function(J,I){var h=Y(J);if(arguments.length<2){var a=this.node();return h.local?a.getAttributeNS(h.space,h.local):a.getAttribute(h)}return this.each((I==null?h.local?cy:S:typeof I==="function"?h.local?sD:jI:h.local?fa:M)(h,I))},
style:function(J,I,h){return arguments.length>1?this.each((I==null?ED:typeof I==="function"?bf:N1)(J,I,h==null?"":h)):Py(this.node(),J)},
property:function(J,I){return arguments.length>1?this.each((I==null?WJ:typeof I==="function"?xF:t5)(J,I)):this.node()[J]},
text:function(J){return arguments.length?this.each(J==null?M3:(typeof J==="function"?f8:wS)(J)):this.node().textContent},
html:function(J){return arguments.length?this.each(J==null?eV:(typeof J==="function"?K8:N3)(J)):this.node().innerHTML},
append:function(J){var I=typeof J==="function"?J:b(J);return this.select(function(){return this.appendChild(I.apply(this,arguments))})},
insert:function(J,I){var h=typeof J==="function"?J:b(J),a=I==null?PJ:typeof I==="function"?I:F(I);return this.select(function(){return this.insertBefore(h.apply(this,arguments),a.apply(this,arguments)||null)})},
remove:function(){return this.each(cX)},
clone:function(J){return this.select(J?oI:a$)},
datum:function(J){return arguments.length?this.property("__data__",J):this.node().__data__},
on:function(J,I,h){var a=dS(J+""),Wy=a.length,zO;if(arguments.length<2){var na=this.node().__on;if(na)for(var OD=0,M1=na.length,aI;OD<M1;++OD){var wg=0;for(aI=na[OD];wg<Wy;++wg)if((zO=a[wg]).type===aI.type&&zO.name===aI.name)return aI.value}}else{na=I?EZ:bE;h==null&&(h=!1);for(wg=0;wg<Wy;++wg)this.each(na(a[wg],I,h));return this}},
dispatch:function(J,I){return this.each((typeof I==="function"?sZ:La)(J,I))}};
var en9=0;J5.prototype=function(){return new J5}.prototype={constructor:J5,
get:function(J){for(var I=this._;!(I in J);)if(!(J=J.parentNode))return;return J[I]},
set:function(J,I){return J[this._]=I},
remove:function(J){return this._ in J&&delete J[this._]},
toString:function(){return this._}};
var gh=1/.7,wmS=/^#([0-9a-f]{3})$/,qgB=/^#([0-9a-f]{6})$/,kK9=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),ju6=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),yrZ=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),WR9=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*\\)$"),
crZ=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Z96=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*\\)$"),tgm={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};
B3(T7,YX,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
B3(OE,a8,E3(T7,{brighter:function(J){J=J==null?gh:Math.pow(gh,J);return new OE(this.r*J,this.g*J,this.b*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new OE(this.r*J,this.g*J,this.b*J,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"#"+$X(this.r)+$X(this.g)+$X(this.b)},
toString:function(){var J=this.opacity;J=isNaN(J)?1:Math.max(0,Math.min(1,J));return(J===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))+(J===1?")":", "+J+")")}}));
B3(v7,gj,E3(T7,{brighter:function(J){J=J==null?gh:Math.pow(gh,J);return new v7(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new v7(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=this.h%360+(this.h<0)*360,I=this.l,h=I+(I<.5?I:1-I)*(isNaN(J)||isNaN(this.s)?0:this.s);I=2*I-h;return new OE(XF(J>=240?J-240:J+120,I,h),XF(J,I,h),XF(J<120?J+240:J-120,I,h),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 nJ5=Math.PI/180,r$E=180/Math.PI,bV3=4/29,Ua=6/29,XfQ=3*Ua*Ua,GnB=Ua*Ua*Ua;B3(rg,function(J,I,h,a){return arguments.length===1?dX(J):new rg(J,I,h,a==null?1:a)},E3(T7,{brighter:function(J){return new rg(this.l+18*(J==null?1:J),this.a,this.b,this.opacity)},
darker:function(J){return new rg(this.l-18*(J==null?1:J),this.a,this.b,this.opacity)},
rgb:function(){var J=(this.l+16)/116,I=isNaN(this.a)?J:J+this.a/500,h=isNaN(this.b)?J:J-this.b/200;I=.96422*hH(I);J=1*hH(J);h=.82521*hH(h);return new OE(Xm(3.1338561*I-1.6168667*J-.4906146*h),Xm(-.9787684*I+1.9161415*J+.033454*h),Xm(.0719453*I-.2289914*J+1.4052427*h),this.opacity)}}));
B3(Ti,zi,E3(T7,{brighter:function(J){return new Ti(this.h,this.c,this.l+18*(J==null?1:J),this.opacity)},
darker:function(J){return new Ti(this.h,this.c,this.l-18*(J==null?1:J),this.opacity)},
rgb:function(){return dX(this).rgb()}}));
var F3i=1.78277*-.29227-.1347134789;B3(Kf,$W,E3(T7,{brighter:function(J){J=J==null?gh:Math.pow(gh,J);return new Kf(this.h,this.s,this.l*J,this.opacity)},
darker:function(J){J=J==null?.7:Math.pow(.7,J);return new Kf(this.h,this.s,this.l*J,this.opacity)},
rgb:function(){var J=isNaN(this.h)?0:(this.h+120)*nJ5,I=+this.l,h=isNaN(this.s)?0:this.s*I*(1-I),a=Math.cos(J);J=Math.sin(J);return new OE(255*(I+h*(-.14861*a+1.78277*J)),255*(I+h*(-.29227*a+-.90649*J)),255*(I+1.97294*a*h),this.opacity)}}));
var gJ0=function h(I){function a(zO,na){var OD=Wy((zO=a8(zO)).r,(na=a8(na)).r),M1=Wy(zO.g,na.g),aI=Wy(zO.b,na.b),wg=bz(zO.opacity,na.opacity);return function(oV){zO.r=OD(oV);zO.g=M1(oV);zO.b=aI(oV);zO.opacity=wg(oV);return zO+""}}
var Wy=Z_(I);a.gamma=h;return a}(1),yX6=I3(function(I){var h=I.length-1;
return function(a){var Wy=a<=0?a=0:a>=1?(a=1,h-1):Math.floor(a*h),zO=I[Wy],na=I[Wy+1];return qg((a-Wy/h)*h,Wy>0?I[Wy-1]:2*zO-na,zO,na,Wy<h-1?I[Wy+2]:2*na-zO)}});
I3(function(I){var h=I.length;return function(a){var Wy=Math.floor(((a%=1)<0?++a:a)*h);return qg((a-Wy/h)*h,I[(Wy+h-1)%h],I[Wy%h],I[(Wy+1)%h],I[(Wy+2)%h])}});
var q7O=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kVh=new RegExp(q7O.source,"g"),USm=180/Math.PI,rTw={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Cb,FmE,mN2,xVH,cXH=fP(function(I){if(I==="none")return rTw;Cb||(Cb=document.createElement("DIV"),FmE=document.documentElement,mN2=document.defaultView);Cb.style.transform=I;I=mN2.getComputedStyle(FmE.appendChild(Cb),null).getPropertyValue("transform");FmE.removeChild(Cb);I=I.slice(7,-1).split(",");return Ga(+I[0],+I[1],+I[2],+I[3],
+I[4],+I[5])},"px, ","px)","deg)"),ZMd=fP(function(I){if(I==null)return rTw;
xVH||(xVH=document.createElementNS("http://www.w3.org/2000/svg","g"));xVH.setAttribute("transform",I);if(!(I=xVH.transform.baseVal.consolidate()))return rTw;I=I.matrix;return Ga(I.a,I.b,I.c,I.d,I.e,I.f)},", ",")",")");
R$(q9);R$(bz);we(q9);we(bz);qv(q9);var UqH=qv(bz),$z=0,gy=0,ly=0,h$E,Rk,Avw=0,m2=0,QlD=0,Ol=typeof performance==="object"&&performance.now?performance:Date,$SV=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(I){setTimeout(I,17)};
ei.prototype=FV.prototype={constructor:ei,restart:function(I,h,a){if(typeof I!=="function")throw new TypeError("ze");a=(a==null?M6():+a)+(h==null?0:+h);this._next||Rk===this||(Rk?Rk._next=this:h$E=this,Rk=this);this._call=I;this._time=a;$U()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,$U())}};
var olB=c("start","end","interrupt"),Dd6=[],G16=Z3.prototype.constructor,smE=0,Rc=Z3.prototype;gF.prototype=function(I){return Z3().transition(I)}.prototype={constructor:gF,
select:function(I){var h=this._name,a=this._id;typeof I!=="function"&&(I=F(I));for(var Wy=this._groups,zO=Wy.length,na=Array(zO),OD=0;OD<zO;++OD)for(var M1=Wy[OD],aI=M1.length,wg=na[OD]=Array(aI),oV,vJ,m6=0;m6<aI;++m6)(oV=M1[m6])&&(vJ=I.call(oV,oV.__data__,m6,M1))&&("__data__"in oV&&(vJ.__data__=oV.__data__),wg[m6]=vJ,j1H(wg[m6],h,a,m6,wg,Ef(oV,a)));return new gF(na,this._parents,h,a)},
filter:function(I){typeof I!=="function"&&(I=Y5J(I));for(var h=this._groups,a=h.length,Wy=Array(a),zO=0;zO<a;++zO)for(var na=h[zO],OD=na.length,M1=Wy[zO]=[],aI,wg=0;wg<OD;++wg)(aI=na[wg])&&I.call(aI,aI.__data__,wg,na)&&M1.push(aI);return new gF(Wy,this._parents,this._name,this._id)},
merge:function(I){if(I._id!==this._id)throw Error();var h=this._groups;I=I._groups;for(var a=h.length,Wy=Math.min(a,I.length),zO=Array(a),na=0;na<Wy;++na)for(var OD=h[na],M1=I[na],aI=OD.length,wg=zO[na]=Array(aI),oV,vJ=0;vJ<aI;++vJ)if(oV=OD[vJ]||M1[vJ])wg[vJ]=oV;for(;na<a;++na)zO[na]=h[na];return new gF(zO,this._parents,this._name,this._id)},
selection:function(){return new G16(this._groups,this._parents)},
transition:function(){for(var I=this._name,h=this._id,a=++smE,Wy=this._groups,zO=Wy.length,na=0;na<zO;++na)for(var OD=Wy[na],M1=OD.length,aI,wg=0;wg<M1;++wg)if(aI=OD[wg]){var oV=Ef(aI,h);j1H(aI,I,a,wg,OD,{time:oV.time+oV.delay+oV.duration,delay:0,duration:oV.duration,ease:oV.ease})}return new gF(Wy,this._parents,I,a)},
call:Rc.call,nodes:Rc.nodes,node:Rc.node,size:Rc.size,empty:Rc.empty,each:Rc.each,on:function(I,h){var a=this._id;return arguments.length<2?Ef(this.node(),a).on.on(I):this.each(Rb9(a,I,h))},
attr:function(I,h){var a=Y(I),Wy=a==="transform"?ZMd:OVE;return this.attrTween(I,typeof h==="function"?(a.local?XZ9:nlg)(a,Wy,WmE(this,"attr."+I,h)):h==null?(a.local?suH:mdB)(a):(a.local?tkg:uv6)(a,Wy,h+""))},
attrTween:function(I,h){var a="attr."+I;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(h==null)return this.tween(a,null);if(typeof h!=="function")throw Error();var Wy=Y(I);return this.tween(a,(Wy.local?b9Q:rr3)(Wy,h))},
style:function(I,h,a){var Wy=I==="transform"?cXH:OVE;return h==null?this.styleTween(I,El9(I,Wy)).on("end.style."+I,Nvg(I)):this.styleTween(I,typeof h==="function"?pZB(I,Wy,WmE(this,"style."+I,h)):I63(I,Wy,h+""),a)},
styleTween:function(I,h,a){var Wy="style."+I;if(arguments.length<2)return(Wy=this.tween(Wy))&&Wy._value;if(h==null)return this.tween(Wy,null);if(typeof h!=="function")throw Error();return this.tween(Wy,PbD(I,h,a==null?"":a))},
text:function(I){return this.tween("text",typeof I==="function"?VkB(WmE(this,"text",I)):JrB(I==null?"":I+""))},
remove:function(){return this.on("end.remove",l6H(this._id))},
tween:function(I,h){var a=this._id;if(arguments.length<2){a=Ef(this.node(),a).tween;for(var Wy=0,zO=a.length,na;Wy<zO;++Wy)if((na=a[Wy]).name===I)return na.value;return null}return this.each((h==null?zbS:YFD)(a,I,h))},
delay:function(I){var h=this._id;return arguments.length?this.each((typeof I==="function"?FRH:UdH)(h,I)):Ef(this.node(),h).delay},
duration:function(I){var h=this._id;return arguments.length?this.each((typeof I==="function"?$dQ:KRH)(h,I)):Ef(this.node(),h).duration},
ease:function(I){var h=this._id;return arguments.length?this.each(O9d(h,I)):Ef(this.node(),h).ease}};
var $qI={time:null,delay:0,duration:250,ease:function(I){return((I*=2)<=1?I*I*I:(I-=2)*I*I+2)/2}};
Z3.prototype.transition=function(I){var h;if(I instanceof gF){var a=I._id;I=I._name}else a=++smE,(h=$qI).time=M6(),I=I==null?null:I+"";for(var Wy=this._groups,zO=Wy.length,na=0;na<zO;++na)for(var OD=Wy[na],M1=OD.length,aI,wg=0;wg<M1;++wg)if(aI=OD[wg]){var oV=aI,vJ=I,m6=a,s3=wg,lR=OD,uR;if(!(uR=h))a:{uR=void 0;for(var al=a;!(uR=aI.__transition)||!(uR=uR[al]);)if(!(aI=aI.parentNode)){uR=($qI.time=M6(),$qI);break a}}j1H(oV,vJ,m6,s3,lR,uR)}return new gF(Wy,this._parents,I,a)};
["e","w"].map(cTF);["n","s"].map(cTF);"n e s w nw ne se sw".split(" ").map(cTF);Zua.prototype=function(){return new Zua}.prototype={constructor:Zua,
moveTo:function(I,h){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+h)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(I,h){this._+="L"+(this._x1=+I)+","+(this._y1=+h)},
bezierCurveTo:function(I,h,a,Wy,zO,na){this._+="C"+ +I+","+ +h+","+ +a+","+ +Wy+","+(this._x1=+zO)+","+(this._y1=+na)},
rect:function(I,h,a,Wy){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+h)+"h"+ +a+"v"+ +Wy+"h"+-a+"Z"},
toString:function(){return this._}};
BXa.prototype=RiV.prototype={constructor:BXa,has:function(I){return" "+I in this},
get:function(I){return this[" "+I]},
set:function(I,h){this[" "+I]=h;return this},
remove:function(I){I=" "+I;return I in this&&delete this[I]},
clear:function(){for(var I in this)I[0]===" "&&delete this[I]},
keys:function(){var I=[],h;for(h in this)h[0]===" "&&I.push(h.slice(1));return I},
values:function(){var I=[],h;for(h in this)h[0]===" "&&I.push(this[h]);return I},
entries:function(){var I=[],h;for(h in this)h[0]===" "&&I.push({key:h.slice(1),value:this[h]});return I},
size:function(){var I=0,h;for(h in this)h[0]===" "&&++I;return I},
empty:function(){for(var I in this)if(I[0]===" ")return!1;return!0},
each:function(I){for(var h in this)h[0]===" "&&I(this[h],h.slice(1),this)}};
var ne=RiV.prototype;HXF.prototype=function(I,h){var a=new HXF;if(I instanceof HXF)I.each(function(na){a.add(na)});
else if(I){var Wy=-1,zO=I.length;if(h==null)for(;++Wy<zO;)a.add(I[Wy]);else for(;++Wy<zO;)a.add(h(I[Wy],Wy,I))}return a}.prototype={constructor:HXF,
has:ne.has,add:function(I){this[" "+I]=I;return this},
remove:ne.remove,clear:ne.clear,values:ne.keys,size:ne.size,empty:ne.empty,each:ne.each};var NkQ={},GWO={},ft3=EJE(",").parse,oz6=EJE("\t").parse;IX0(ft3);IX0(oz6);var Xy=function(I,h,a){h=new fRF(h==null?hbd:h,a==null?BvQ:a,NaN,NaN,NaN,NaN);return I==null?h:h.addAll(I)}.prototype=fRF.prototype;
Xy.copy=function(){var I=new fRF(this._x,this._y,this._x0,this._y0,this._x1,this._y1),h=this._root,a,Wy;if(!h)return I;if(!h.length)return I._root=PQ2(h),I;for(a=[{source:h,target:I._root=Array(4)}];h=a.pop();)for(var zO=0;zO<4;++zO)if(Wy=h.source[zO])Wy.length?a.push({source:Wy,target:h.target[zO]=Array(4)}):h.target[zO]=PQ2(Wy);return I};
Xy.add=function(I){var h=+this._x.call(null,I),a=+this._y.call(null,I);return pfV(this.cover(h,a),h,a,I)};
Xy.addAll=function(I){var h,a,Wy=I.length,zO,na,OD=Array(Wy),M1=Array(Wy),aI=Infinity,wg=Infinity,oV=-Infinity,vJ=-Infinity;for(a=0;a<Wy;++a)isNaN(zO=+this._x.call(null,h=I[a]))||isNaN(na=+this._y.call(null,h))||(OD[a]=zO,M1[a]=na,zO<aI&&(aI=zO),zO>oV&&(oV=zO),na<wg&&(wg=na),na>vJ&&(vJ=na));oV<aI&&(aI=this._x0,oV=this._x1);vJ<wg&&(wg=this._y0,vJ=this._y1);this.cover(aI,wg).cover(oV,vJ);for(a=0;a<Wy;++a)pfV(this,OD[a],M1[a],I[a]);return this};
Xy.cover=function(I,h){if(isNaN(I=+I)||isNaN(h=+h))return this;var a=this._x0,Wy=this._y0,zO=this._x1,na=this._y1;if(isNaN(a))zO=(a=Math.floor(I))+1,na=(Wy=Math.floor(h))+1;else if(a>I||I>zO||Wy>h||h>na){var OD=zO-a,M1=this._root,aI;switch(aI=(h<(Wy+na)/2)<<1|I<(a+zO)/2){case 0:do{var wg=Array(4);wg[aI]=M1;M1=wg}while(OD*=2,zO=a+OD,na=Wy+OD,I>zO||h>na);break;case 1:do wg=Array(4),wg[aI]=M1,M1=wg;while(OD*=2,a=zO-OD,na=Wy+OD,a>I||h>na);break;case 2:do wg=Array(4),wg[aI]=M1,M1=wg;while(OD*=2,zO=a+OD,
Wy=na-OD,I>zO||Wy>h);break;case 3:do wg=Array(4),wg[aI]=M1,M1=wg;while(OD*=2,a=zO-OD,Wy=na-OD,a>I||Wy>h)}this._root&&this._root.length&&(this._root=M1)}else return this;this._x0=a;this._y0=Wy;this._x1=zO;this._y1=na;return this};
Xy.data=function(){var I=[];this.visit(function(h){if(!h.length){do I.push(h.data);while(h=h.next)}});
return I};
Xy.extent=function(I){return arguments.length?this.cover(+I[0][0],+I[0][1]).cover(+I[1][0],+I[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Xy.find=function(I,h,a){var Wy=this._x0,zO=this._y0,na,OD,M1,aI,wg=this._x1,oV=this._y1,vJ=[],m6=this._root,s3;m6&&vJ.push(new nZ(m6,Wy,zO,wg,oV));a==null?a=Infinity:(Wy=I-a,zO=h-a,wg=I+a,oV=h+a,a*=a);for(;s3=vJ.pop();)if(!(!(m6=s3.node)||(na=s3.x0)>wg||(OD=s3.y0)>oV||(M1=s3.x1)<Wy||(aI=s3.y1)<zO))if(m6.length){s3=(na+M1)/2;var lR=(OD+aI)/2;vJ.push(new nZ(m6[3],s3,lR,M1,aI),new nZ(m6[2],na,lR,s3,aI),new nZ(m6[1],s3,OD,M1,lR),new nZ(m6[0],na,OD,s3,lR));if(m6=(h>=lR)<<1|I>=s3)s3=vJ[vJ.length-1],vJ[vJ.length-
1]=vJ[vJ.length-1-m6],vJ[vJ.length-1-m6]=s3}else if(s3=I-+this._x.call(null,m6.data),lR=h-+this._y.call(null,m6.data),s3=s3*s3+lR*lR,s3<a){var uR=Math.sqrt(a=s3);Wy=I-uR;zO=h-uR;wg=I+uR;oV=h+uR;uR=m6.data}return uR};
Xy.remove=function(I){if(isNaN(aI=+this._x.call(null,I))||isNaN(wg=+this._y.call(null,I)))return this;var h,a=this._root,Wy,zO=this._x0,na=this._y0,OD=this._x1,M1=this._y1,aI,wg,oV,vJ,m6,s3,lR;if(!a)return this;if(a.length)for(;;){(m6=aI>=(oV=(zO+OD)/2))?zO=oV:OD=oV;(s3=wg>=(vJ=(na+M1)/2))?na=vJ:M1=vJ;if(!(h=a,a=a[lR=s3<<1|m6]))return this;if(!a.length)break;if(h[lR+1&3]||h[lR+2&3]||h[lR+3&3]){var uR=h;var al=lR}}for(;a.data!==I;)if(!(Wy=a,a=a.next))return this;(I=a.next)&&delete a.next;if(Wy)return I?
Wy.next=I:delete Wy.next,this;if(!h)return this._root=I,this;I?h[lR]=I:delete h[lR];(a=h[0]||h[1]||h[2]||h[3])&&a===(h[3]||h[2]||h[1]||h[0])&&!a.length&&(uR?uR[al]=a:this._root=a);return this};
Xy.removeAll=function(I){for(var h=0,a=I.length;h<a;++h)this.remove(I[h]);return this};
Xy.root=function(){return this._root};
Xy.size=function(){var I=0;this.visit(function(h){if(!h.length){do++I;while(h=h.next)}});
return I};
Xy.visit=function(I){var h=[],a,Wy=this._root,zO,na,OD,M1,aI;for(Wy&&h.push(new nZ(Wy,this._x0,this._y0,this._x1,this._y1));a=h.pop();)if(!I(Wy=a.node,na=a.x0,OD=a.y0,M1=a.x1,aI=a.y1)&&Wy.length){a=(na+M1)/2;var wg=(OD+aI)/2;(zO=Wy[3])&&h.push(new nZ(zO,a,wg,M1,aI));(zO=Wy[2])&&h.push(new nZ(zO,na,wg,a,aI));(zO=Wy[1])&&h.push(new nZ(zO,a,OD,M1,wg));(zO=Wy[0])&&h.push(new nZ(zO,na,OD,a,wg))}};
Xy.visitAfter=function(I){var h=[],a=[],Wy;for(this._root&&h.push(new nZ(this._root,this._x0,this._y0,this._x1,this._y1));Wy=h.pop();){var zO=Wy.node;if(zO.length){var na,OD=Wy.x0,M1=Wy.y0,aI=Wy.x1,wg=Wy.y1,oV=(OD+aI)/2,vJ=(M1+wg)/2;(na=zO[0])&&h.push(new nZ(na,OD,M1,oV,vJ));(na=zO[1])&&h.push(new nZ(na,oV,M1,aI,vJ));(na=zO[2])&&h.push(new nZ(na,OD,vJ,oV,wg));(na=zO[3])&&h.push(new nZ(na,oV,vJ,aI,wg))}a.push(Wy)}for(;Wy=a.pop();)I(Wy.node,Wy.x0,Wy.y0,Wy.x1,Wy.y1);return this};
Xy.x=function(I){return arguments.length?(this._x=I,this):this._x};
Xy.y=function(I){return arguments.length?(this._y=I,this):this._y};
var dd6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;oEH.prototype=DqI.prototype;DqI.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 QFZ,A$3={"%":function(I,h){return(I*100).toFixed(h)},
b:function(I){return Math.round(I).toString(2)},
c:function(I){return I+""},
d:function(I){return Math.round(I).toString(10)},
e:function(I,h){return I.toExponential(h)},
f:function(I,h){return I.toFixed(h)},
g:function(I,h){return I.toPrecision(h)},
o:function(I){return Math.round(I).toString(8)},
p:function(I,h){return J$V(I*100,h)},
r:J$V,s:function(I,h){var a=Lha(I,h);if(!a)return I+"";var Wy=a[0];a=a[1];a=a-(QFZ=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1;var zO=Wy.length;return a===zO?Wy:a>zO?Wy+Array(a-zO+1).join("0"):a>0?Wy.slice(0,a)+"."+Wy.slice(a):"0."+Array(1-a).join("0")+Lha(I,Math.max(0,h+a-1))[0]},
X:function(I){return Math.round(I).toString(16).toUpperCase()},
x:function(I){return Math.round(I).toString(16)}},CQV="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),DAg;
(function(I){return DAg=SFg(I)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});bT.prototype={constructor:bT,reset:function(){this.s=this.t=0},
add:function(I){hi2(iXE,I,this.t);hi2(this,iXE.s,this.s);this.s?this.t+=iXE.t:this.s=iXE.t},
valueOf:function(){return this.s}};
var iXE=new bT,EP=Math.PI,Lp=EP/2,u9V=EP/4,zQ6=EP*2,KmH=EP/180,Rt=Math.abs,Oug=Math.atan,SJJ=Math.atan2,vG=Math.cos,uo=Math.sin,dVE=Math.sqrt;new bT;new bT;new bT;var gED=new bT;(function(I,h,a,Wy){return function(zO){function na(u7,y4){I(u7,y4)&&zO.point(u7,y4)}
function OD(u7,y4){m6.point(u7,y4)}
function M1(){fx.point=OD;m6.lineStart()}
function aI(){fx.point=na;m6.lineEnd()}
function wg(u7,y4){zG.push([u7,y4]);lR.point(u7,y4)}
function oV(){lR.lineStart();zG=[]}
function vJ(){wg(zG[0][0],zG[0][1]);lR.lineEnd();var u7=lR.clean(),y4=s3.result(),HX=y4.length,UW;zG.pop();al.push(zG);zG=null;if(HX)if(u7&1){if(HX=y4[0],(y4=HX.length-1)>0){uR||(zO.polygonStart(),uR=!0);zO.lineStart();for(u7=0;u7<y4;++u7)zO.point((UW=HX[u7])[0],UW[1]);zO.lineEnd()}}else HX>1&&u7&2&&y4.push(y4.pop().concat(y4.shift())),sN.push(y4.filter(i99))}
var m6=h(zO),s3=a6B(),lR=h(s3),uR=!1,al,sN,zG,fx={point:na,lineStart:M1,lineEnd:aI,polygonStart:function(){fx.point=wg;fx.lineStart=oV;fx.lineEnd=vJ;sN=[];al=[]},
polygonEnd:function(){fx.point=na;fx.lineStart=M1;fx.lineEnd=aI;var u7=sN,y4=u7.length;var HX=-1;for(var UW=0,l9,Ge;++HX<y4;)UW+=u7[HX].length;for(l9=Array(UW);--y4>=0;)for(Ge=u7[y4],HX=Ge.length;--HX>=0;)l9[--UW]=Ge[HX];sN=l9;u7=al;y4=Wy[0];UW=Wy[1];var i9=uo(UW);HX=[uo(y4),-vG(y4),0];Ge=l9=0;gED.reset();i9===1?UW=Lp+1E-6:i9===-1&&(UW=-Lp-1E-6);i9=0;for(var XZ=u7.length;i9<XZ;++i9)if(lt=(fj=u7[i9]).length){var fj,lt,x2=fj[lt-1],EE=x2[0],ip=x2[1]/2+u9V,MSt=uo(ip),tRi=vG(ip);for(ip=0;ip<lt;++ip,EE=
R1y,MSt=nu0,tRi=QU,x2=e$f){var e$f=fj[ip],R1y=e$f[0];QU=e$f[1]/2+u9V;var nu0=uo(QU),QU=vG(QU),lS=R1y-EE,lRI=lS>=0?1:-1,EEy=lRI*lS,wnF=EEy>EP;MSt*=nu0;gED.add(SJJ(MSt*lRI*uo(EEy),tRi*QU+MSt*vG(EEy)));l9+=wnF?lS+lRI*zQ6:lS;wnF^EE>=y4^R1y>=y4&&(x2=HVE(BkZ(x2),BkZ(e$f)),L3E(x2),EE=HVE(HX,x2),L3E(EE),EE=(wnF^lS>=0?-1:1)*v2I(EE[2]),UW>EE||UW===EE&&(x2[0]||x2[1]))&&(Ge+=wnF^lS>=0?1:-1)}}u7=(l9<-1E-6||l9<1E-6&&gED<-1E-6)^Ge&1;sN.length?(uR||(zO.polygonStart(),uR=!0),xdZ(sN,Mk6,u7,a,zO)):u7&&(uR||(zO.polygonStart(),
uR=!0),zO.lineStart(),a(null,null,1,zO),zO.lineEnd());uR&&(zO.polygonEnd(),uR=!1);sN=al=null},
sphere:function(){zO.polygonStart();zO.lineStart();a(null,null,1,zO);zO.lineEnd();zO.polygonEnd()}};
return fx}})(function(){return!0},function(I){var h=NaN,a=NaN,Wy=NaN,zO;
return{lineStart:function(){I.lineStart();zO=1},
point:function(na,OD){var M1=na>0?EP:-EP,aI=Rt(na-h);if(Rt(aI-EP)<1E-6)I.point(h,a=(a+OD)/2>0?Lp:-Lp),I.point(Wy,a),I.lineEnd(),I.lineStart(),I.point(M1,a),I.point(na,a),zO=0;else if(Wy!==M1&&aI>=EP){Rt(h-Wy)<1E-6&&(h-=Wy*1E-6);Rt(na-M1)<1E-6&&(na-=M1*1E-6);aI=h;var wg=a,oV=na,vJ,m6,s3=uo(aI-oV);a=Rt(s3)>1E-6?Oug((uo(wg)*(m6=vG(OD))*uo(oV)-uo(OD)*(vJ=vG(wg))*uo(aI))/(vJ*m6*s3)):(wg+OD)/2;I.point(Wy,a);I.lineEnd();I.lineStart();I.point(M1,a);zO=0}I.point(h=na,a=OD);Wy=M1},
lineEnd:function(){I.lineEnd();h=a=NaN},
clean:function(){return 2-zO}}},function(I,h,a,Wy){I==null?(a*=Lp,Wy.point(-EP,a),Wy.point(0,a),Wy.point(EP,a),Wy.point(EP,0),Wy.point(EP,-a),Wy.point(0,-a),Wy.point(-EP,-a),Wy.point(-EP,0),Wy.point(-EP,a)):Rt(I[0]-h[0])>1E-6?(I=I[0]<h[0]?EP:-EP,a=a*I/2,Wy.point(-I,a),Wy.point(0,a),Wy.point(I,a)):Wy.point(h[0],h[1])},[-EP,
-Lp]);new bT;new bT;new bT;new bT;z1a.prototype={constructor:z1a,point:function(I,h){this.stream.point(I,h)},
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()}};
vG(30*KmH);(function(I){return function(h){var a=new z1a,Wy;for(Wy in I)a[Wy]=I[Wy];a.stream=h;return a}})({point:function(I,h){this.stream.point(I*KmH,h*KmH)}});
dS8(function(I){return dVE(2/(1+I))}).invert=El(function(I){return 2*v2I(I/2)});
dS8(function(I){return(I=I>1?0:I<-1?EP:Math.acos(I))&&I/uo(I)}).invert=El(function(I){return I});
dVE(3);El(Oug);El(v2I);El(function(I){return 2*Oug(I)});
Nb.prototype=TkZ.prototype={constructor:Nb,count:function(){return this.eachAfter(ebS)},
each:function(I){var h,a=[this],Wy;do{var zO=a.reverse();for(a=[];h=zO.pop();)if(I(h),h=h.children){var na=0;for(Wy=h.length;na<Wy;++na)a.push(h[na])}}while(a.length);return this},
eachAfter:function(I){for(var h,a=[this],Wy=[],zO,na;h=a.pop();)if(Wy.push(h),h=h.children)for(zO=0,na=h.length;zO<na;++zO)a.push(h[zO]);for(;h=Wy.pop();)I(h);return this},
eachBefore:function(I){for(var h,a=[this],Wy;h=a.pop();)if(I(h),h=h.children)for(Wy=h.length-1;Wy>=0;--Wy)a.push(h[Wy]);return this},
sum:function(I){return this.eachAfter(function(h){for(var a=+I(h.data)||0,Wy=h.children,zO=Wy&&Wy.length;--zO>=0;)a+=Wy[zO].value;h.value=a})},
sort:function(I){return this.eachBefore(function(h){h.children&&h.children.sort(I)})},
path:function(I){var h=this;var a=h;var Wy=I;if(a!==Wy){var zO=a.ancestors(),na=Wy.ancestors(),OD=null;a=zO.pop();for(Wy=na.pop();a===Wy;)OD=a,a=zO.pop(),Wy=na.pop();a=OD}for(Wy=[h];h!==a;)h=h.parent,Wy.push(h);for(h=Wy.length;I!==a;)Wy.splice(h,0,I),I=I.parent;return Wy},
ancestors:function(){for(var I=this,h=[I];I=I.parent;)h.push(I);return h},
links:function(){var I=this,h=[];I.each(function(a){a!==I&&h.push({source:a.parent,target:a})});
return h},
copy:function(){return TkZ(this).eachBefore(knS)}};
(function(I,h){this._=I;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=h}).prototype=Object.create(Nb.prototype);
var Y1I=new Date,mqF=new Date,XwV=cT(function(){},function(I,h){I.setTime(+I+h)},function(I,h){return h-I});
XwV.every=function(I){I=Math.floor(I);return isFinite(I)&&I>0?I>1?cT(function(h){h.setTime(Math.floor(h/I)*I)},function(h,a){h.setTime(+h+a*I)},function(h,a){return(a-h)/I}):XwV:null};
cT(function(I){I.setTime(Math.floor(I/1E3)*1E3)},function(I,h){I.setTime(+I+h*1E3)},function(I,h){return(h-I)/1E3},function(I){return I.getUTCSeconds()});
cT(function(I){I.setTime(Math.floor(I/6E4)*6E4)},function(I,h){I.setTime(+I+h*6E4)},function(I,h){return(h-I)/6E4},function(I){return I.getMinutes()});
cT(function(I){var h=I.getTimezoneOffset()*6E4%36E5;h<0&&(h+=36E5);I.setTime(Math.floor((+I-h)/36E5)*36E5+h)},function(I,h){I.setTime(+I+h*36E5)},function(I,h){return(h-I)/36E5},function(I){return I.getHours()});
var iVW=cT(function(I){I.setHours(0,0,0,0)},function(I,h){I.setDate(I.getDate()+h)},function(I,h){return(h-I-(h.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/864E5},function(I){return I.getDate()-1}),kv6=uB(0),uAa=uB(1);
uB(2);uB(3);var tMh=uB(4);uB(5);uB(6);cT(function(I){I.setDate(1);I.setHours(0,0,0,0)},function(I,h){I.setMonth(I.getMonth()+h)},function(I,h){return h.getMonth()-I.getMonth()+(h.getFullYear()-I.getFullYear())*12},function(I){return I.getMonth()});
var KM=cT(function(I){I.setMonth(0,1);I.setHours(0,0,0,0)},function(I,h){I.setFullYear(I.getFullYear()+h)},function(I,h){return h.getFullYear()-I.getFullYear()},function(I){return I.getFullYear()});
KM.every=function(I){return isFinite(I=Math.floor(I))&&I>0?cT(function(h){h.setFullYear(Math.floor(h.getFullYear()/I)*I);h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,a){h.setFullYear(h.getFullYear()+a*I)}):null};
cT(function(I){I.setUTCSeconds(0,0)},function(I,h){I.setTime(+I+h*6E4)},function(I,h){return(h-I)/6E4},function(I){return I.getUTCMinutes()});
cT(function(I){I.setUTCMinutes(0,0,0)},function(I,h){I.setTime(+I+h*36E5)},function(I,h){return(h-I)/36E5},function(I){return I.getUTCHours()});
var xSV=cT(function(I){I.setUTCHours(0,0,0,0)},function(I,h){I.setUTCDate(I.getUTCDate()+h)},function(I,h){return(h-I)/864E5},function(I){return I.getUTCDate()-1}),jc9=ta(0),s1g=ta(1);
ta(2);ta(3);var nED=ta(4);ta(5);ta(6);cT(function(I){I.setUTCDate(1);I.setUTCHours(0,0,0,0)},function(I,h){I.setUTCMonth(I.getUTCMonth()+h)},function(I,h){return h.getUTCMonth()-I.getUTCMonth()+(h.getUTCFullYear()-I.getUTCFullYear())*12},function(I){return I.getUTCMonth()});
var Oa=cT(function(I){I.setUTCMonth(0,1);I.setUTCHours(0,0,0,0)},function(I,h){I.setUTCFullYear(I.getUTCFullYear()+h)},function(I,h){return h.getUTCFullYear()-I.getUTCFullYear()},function(I){return I.getUTCFullYear()});
Oa.every=function(I){return isFinite(I=Math.floor(I))&&I>0?cT(function(h){h.setUTCFullYear(Math.floor(h.getUTCFullYear()/I)*I);h.setUTCMonth(0,1);h.setUTCHours(0,0,0,0)},function(h,a){h.setUTCFullYear(h.getUTCFullYear()+a*I)}):null};
var aXV={"-":"",_:" ",0:"0"},YA=/^\s*\d+/,qh6=/^%/,w56=/[\\^$*+?|[\]().{}]/g,qWI;(function(I){qWI=yM6(I);NiQ=qWI.utcFormat;IxW=qWI.utcParse;return qWI})({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||NiQ("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||IxW("%Y-%m-%dT%H:%M:%S.%LZ");Mo("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Mo("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Mo("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Mo("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Mo("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Mo("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Mo("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Mo("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Mo("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Mo("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Mo("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Mo("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var YaD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Mo);o8(YaD);var mA6=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Mo);o8(mA6);var scd=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Mo);o8(scd);var ud3=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Mo);
o8(ud3);var tHZ=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Mo);o8(tHZ);var nzf=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Mo);o8(nzf);var X9D=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Mo);o8(X9D);var bMS=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Mo);o8(bMS);var rXH=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Mo);o8(rXH);var Fbf=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Mo);o8(Fbf);var UAZ=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Mo);o8(UAZ);var $AQ=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Mo);o8($AQ);var KbB=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Mo);o8(KbB);var OMd=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Mo);o8(OMd);var gz6=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Mo);o8(gz6);var RQD=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Mo);o8(RQD);var ltf=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Mo);o8(ltf);var Ez9=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Mo);o8(Ez9);var Nhg=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Mo);o8(Nhg);var ItH=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Mo);o8(ItH);var p99=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Mo);o8(p99);var PSQ=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Mo);o8(PSQ);var JX6=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Mo);o8(JX6);var VH9=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Mo);o8(VH9);var CSd=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Mo);o8(CSd);var Qcf=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Mo);o8(Qcf);var AX9=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Mo);o8(AX9);UqH($W(300,.5,0),$W(-240,.5,1));UqH($W(-100,.75,.35),$W(80,1.5,.8));UqH($W(260,.75,.35),$W(80,1.5,.8));$W();a8();an1(Mo("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
an1(Mo("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
an1(Mo("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
an1(Mo("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
Zmm.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(I,h){I=+I;h=+h;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,h):this._context.moveTo(I,h);break;case 1:this._point=2;default:this._context.lineTo(I,h)}}};
(function(I){function h(a){return new GTQ(I(a))}
h._curve=I;return h})(function(I){return new Zmm(I)});
GTQ.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(I,h){this._curve.point(h*Math.sin(I),h*-Math.cos(I))}};
buw.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:Xzh(this,this._t0,ouW(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(I,h){var a=NaN;I=+I;h=+h;if(I!==this._x1||h!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,h):this._context.moveTo(I,h);break;case 1:this._point=2;break;case 2:this._point=3;Xzh(this,ouW(this,a=fBV(this,I,h)),a);break;default:Xzh(this,this._t0,a=fBV(this,I,h))}this._x0=this._x1;this._x1=I;this._y0=this._y1;this._y1=h;this._t0=a}}};
(function(I){this._context=new DN0(I)}.prototype=Object.create(buw.prototype)).point=function(I,h){buw.prototype.point.call(this,h,I)};
DN0.prototype={moveTo:function(I,h){this._context.moveTo(h,I)},
closePath:function(){this._context.closePath()},
lineTo:function(I,h){this._context.lineTo(h,I)},
bezierCurveTo:function(I,h,a,Wy,zO,na){this._context.bezierCurveTo(h,I,Wy,a,na,zO)}};
Jp.prototype={constructor:Jp,scale:function(I){return I===1?this:new Jp(this.k*I,this.x,this.y)},
translate:function(I,h){return I===0&h===0?this:new Jp(this.k,this.x+this.k*I,this.y+this.k*h)},
apply:function(I){return[I[0]*this.k+this.x,I[1]*this.k+this.y]},
invert:function(I){return[(I[0]-this.x)/this.k,(I[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Jp(1,0,0);mdD=YX;HG.svg=HG.svg;HG.xhtml=HG.xhtml;HG.xlink=HG.xlink;HG.xml=HG.xml;HG.xmlns=HG.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 pG0="hammer_"+(Math.random()*1E6|0),PgE=function(){var y=document||document;if(!y[pG0]){var W=function(){(function(c,Z,G,D){function Y(rg,JH,hH){return setTimeout(K(rg,hH),JH)}
function u(rg,JH,hH){return Array.isArray(rg)?(t(rg,hH[JH],hH),!0):!1}
function t(rg,JH,hH){var Xm;if(rg)if(rg.forEach)rg.forEach(JH,hH);else if(rg.length!==D){var Gf=0;for(Xm=rg.length;Gf<Xm;Gf++)JH.call(hH,rg[Gf],Gf,rg)}else for(Gf in rg)rg.hasOwnProperty(Gf)&&JH.call(hH,rg[Gf],Gf,rg)}
function b(rg,JH,hH){for(var Xm=Object.keys(JH),Gf=0,Gi=Xm.length;Gf<Gi;Gf++)if(!hH||hH&&rg[Xm[Gf]]===D)rg[Xm[Gf]]=JH[Xm[Gf]];return rg}
function r(rg,JH){return b(rg,JH,!0)}
function F(rg,JH,hH){JH=JH.prototype;var Xm=rg.prototype=Object.create(JH);Xm.constructor=rg;Xm._super=JH;hH&&b(Xm,hH)}
function K(rg,JH){return function(){return rg.apply(JH,arguments)}}
function l(rg,JH){return typeof rg=="function"?rg.apply(JH?JH[0]||D:D,JH):rg}
function N(rg,JH,hH){t(V(JH),function(Xm){rg.addEventListener(Xm,hH,!1)})}
function P(rg,JH,hH){t(V(JH),function(Xm){rg.removeEventListener(Xm,hH,!1)})}
function V(rg){return rg.trim().split(/\s+/g)}
function Q(rg,JH,hH){if(rg.indexOf&&!hH)return rg.indexOf(JH);for(var Xm=0,Gf=rg.length;Xm<Gf;Xm++)if(hH&&rg[Xm][hH]==JH||!hH&&rg[Xm]===JH)return Xm;return-1}
function S(rg,JH,hH){for(var Xm=[],Gf=[],Gi=0,zi=rg.length;Gi<zi;Gi++){var Ti=JH?rg[Gi][JH]:rg[Gi];Q(Gf,Ti)<0&&Xm.push(rg[Gi]);Gf[Gi]=Ti}hH&&(Xm=JH?Xm.sort(function($W,Kf){return $W[JH]>Kf[JH]}):Xm.sort());
return Xm}
function cy(rg,JH){for(var hH,Xm=JH[0].toUpperCase()+JH.slice(1),Gf=0,Gi=sZ.length;Gf<Gi;Gf++)if(hH=(hH=sZ[Gf])?hH+Xm:JH,hH in rg)return hH;return D}
function M(rg,JH){var hH=this;this.manager=rg;this.callback=JH;this.element=rg.element;this.target=rg.options.inputTarget;this.domHandler=function(Xm){l(rg.options.enable,[rg])&&hH.handler(Xm)};
this.evEl&&N(this.element,this.evEl,this.domHandler);this.evTarget&&N(this.target,this.evTarget,this.domHandler);this.evWin&&N(c,this.evWin,this.domHandler)}
function fa(rg){var JH;JS?JH=t5:iM?JH=xF:YX?JH=M3:JH=WJ;return new JH(rg,jI)}
function jI(rg,JH,hH){var Xm=hH.pointers.length,Gf=hH.changedPointers.length,Gi=JH&1&&Xm-Gf===0;hH.isFirst=!!Gi;hH.isFinal=!!(JH&12&&Xm-Gf===0);Gi&&(rg.session={});hH.eventType=JH;JH=rg.session;Xm=hH.pointers;Gf=Xm.length;JH.firstInput||(JH.firstInput=sD(hH));Gf>1&&!JH.firstMultiple?JH.firstMultiple=sD(hH):Gf===1&&(JH.firstMultiple=!1);Gi=JH.firstInput;var zi=(Gf=JH.firstMultiple)?Gf.center:Gi.center,Ti=hH.center=ED(Xm);hH.timeStamp=B3();hH.deltaTime=hH.timeStamp-Gi.timeStamp;hH.angle=Py(zi,Ti);hH.distance=
bf(zi,Ti);Gi=hH.center;zi=JH.offsetDelta||{};Ti=JH.prevDelta||{};var $W=JH.prevInput||{};if(hH.eventType===1||$W.eventType===4)Ti=JH.prevDelta={x:$W.deltaX||0,y:$W.deltaY||0},zi=JH.offsetDelta={x:Gi.x,y:Gi.y};hH.deltaX=Ti.x+(Gi.x-zi.x);hH.deltaY=Ti.y+(Gi.y-zi.y);hH.offsetDirection=N1(hH.deltaX,hH.deltaY);Gf?(Gi=Gf.pointers,Gi=bf(Xm[0],Xm[1],a8)/bf(Gi[0],Gi[1],a8)):Gi=1;hH.scale=Gi;Gf?(Gf=Gf.pointers,Xm=Py(Xm[1],Xm[0],a8)-Py(Gf[1],Gf[0],a8)):Xm=0;hH.rotation=Xm;zi=JH.lastInterval||hH;Xm=hH.timeStamp-
zi.timeStamp;hH.eventType!=8&&(Xm>25||zi.velocity===D)?(Gi=zi.deltaX-hH.deltaX,zi=zi.deltaY-hH.deltaY,Ti=Gi/Xm||0,$W=zi/Xm||0,Xm=Ti,Gf=$W,Ti=J5(Ti)>J5($W)?Ti:$W,Gi=N1(Gi,zi),JH.lastInterval=hH):(Ti=zi.velocity,Xm=zi.velocityX,Gf=zi.velocityY,Gi=zi.direction);hH.velocity=Ti;hH.velocityX=Xm;hH.velocityY=Gf;hH.direction=Gi;JH=rg.element;a:{for(Xm=hH.srcEvent.target;Xm;){if(Xm==JH){Xm=!0;break a}Xm=Xm.parentNode}Xm=!1}Xm&&(JH=hH.srcEvent.target);hH.target=JH;rg.emit("hammer.input",hH);rg.recognize(hH);
rg.session.prevInput=hH}
function sD(rg){for(var JH=[],hH=0;hH<rg.pointers.length;hH++)JH[hH]={clientX:Z3(rg.pointers[hH].clientX),clientY:Z3(rg.pointers[hH].clientY)};return{timeStamp:B3(),pointers:JH,center:ED(JH),deltaX:rg.deltaX,deltaY:rg.deltaY}}
function ED(rg){var JH=rg.length;if(JH===1)return{x:Z3(rg[0].clientX),y:Z3(rg[0].clientY)};for(var hH=0,Xm=0,Gf=0;Gf<JH;Gf++)hH+=rg[Gf].clientX,Xm+=rg[Gf].clientY;return{x:Z3(hH/JH),y:Z3(Xm/JH)}}
function N1(rg,JH){return rg===JH?1:J5(rg)>=J5(JH)?rg>0?2:4:JH>0?8:16}
function bf(rg,JH,hH){hH||(hH=lG);var Xm=JH[hH[0]]-rg[hH[0]];rg=JH[hH[1]]-rg[hH[1]];return Math.sqrt(Xm*Xm+rg*rg)}
function Py(rg,JH,hH){hH||(hH=lG);return Math.atan2(JH[hH[1]]-rg[hH[1]],JH[hH[0]]-rg[hH[0]])*180/Math.PI}
function WJ(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;M.apply(this,arguments)}
function t5(){this.evEl=MR;this.evWin=gj;M.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function xF(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};M.apply(this,arguments)}
function M3(){M.apply(this,arguments);var rg=K(this.handler,this);this.touch=new xF(this.manager,rg);this.mouse=new WJ(this.manager,rg)}
function wS(rg,JH){this.manager=rg;this.set(JH)}
function f8(rg){if(rg.indexOf("none")>-1)return"none";var JH=rg.indexOf("pan-x")>-1,hH=rg.indexOf("pan-y")>-1;return JH&&hH?"pan-x pan-y":JH||hH?JH?"pan-x":"pan-y":rg.indexOf("manipulation")>-1?"manipulation":"auto"}
function eV(rg){this.id=E3++;this.manager=null;this.options=r(rg||{},this.defaults);rg=this.options.enable;this.options.enable=rg===D?!0:rg;this.state=1;this.simultaneous={};this.requireFail=[]}
function N3(rg){return rg==16?"down":rg==8?"up":rg==2?"left":rg==4?"right":""}
function K8(rg,JH){return(JH=JH.manager)?JH.get(rg):rg}
function PJ(){eV.apply(this,arguments)}
function cX(){PJ.apply(this,arguments);this.pY=this.pX=null}
function a$(){PJ.apply(this,arguments)}
function oI(){eV.apply(this,arguments);this._input=this._timer=null}
function Zg(){PJ.apply(this,arguments)}
function xW(){PJ.apply(this,arguments)}
function dS(){eV.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function bE(rg,JH){JH=JH||{};var hH=JH.recognizers;JH.recognizers=hH===D?bE.defaults.preset:hH;return new EZ(rg,JH)}
function EZ(rg,JH){JH=JH||{};this.options=r(JH,bE.defaults);this.options.inputTarget=this.options.inputTarget||rg;this.handlers={};this.session={};this.recognizers=[];this.element=rg;this.input=fa(this);this.touchAction=new wS(this,this.options.touchAction);jV(this,!0);t(JH.recognizers,function(hH){var Xm=this.add(new hH[0](hH[1]));hH[2]&&Xm.recognizeWith(hH[2]);hH[3]&&Xm.requireFailure(hH[2])},this)}
function jV(rg,JH){var hH=rg.element;t(rg.options.cssProps,function(Xm,Gf){hH.style[cy(hH.style,Gf)]=JH?Xm:""})}
function La(rg,JH){var hH=Z.createEvent("Event");hH.initEvent(rg,!0,!0);hH.gesture=JH;JH.target.dispatchEvent(hH)}
var sZ=" webkit moz MS ms o".split(" "),w2=Z.createElement("div"),Z3=Math.round,J5=Math.abs,B3=Date.now,E3=1,T7=/mobile|tablet|ip(ad|hone|od)|android/i,YX="ontouchstart"in c,JS=cy(c,"PointerEvent")!==D,iM=YX&&T7.test(navigator.userAgent),lG=["x","y"],a8=["clientX","clientY"];M.prototype={handler:function(){},
destroy:function(){this.evEl&&P(this.element,this.evEl,this.domHandler);this.evTarget&&P(this.target,this.evTarget,this.domHandler);this.evWin&&P(c,this.evWin,this.domHandler)}};
var OE={mousedown:1,mousemove:2,mouseup:4};F(WJ,M,{handler:function(rg){var JH=OE[rg.type];JH&1&&rg.button===0&&(this.pressed=!0);JH&2&&rg.which!==1&&(JH=4);this.pressed&&this.allow&&(JH&4&&(this.pressed=!1),this.callback(this.manager,JH,{pointers:[rg],changedPointers:[rg],pointerType:"mouse",srcEvent:rg}))}});
var $X={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},WQ={2:"touch",3:"pen",4:"mouse",5:"kinect"},MR="pointerdown",gj="pointermove pointerup pointercancel";c.MSPointerEvent&&(MR="MSPointerDown",gj="MSPointerMove MSPointerUp MSPointerCancel");F(t5,M,{handler:function(rg){var JH=this.store,hH=!1,Xm=rg.type.toLowerCase().replace("ms","");Xm=$X[Xm];var Gf=WQ[rg.pointerType]||rg.pointerType;Xm&1&&(rg.button===0||Gf=="touch")?JH.push(rg):Xm&12&&(hH=!0);var Gi=Q(JH,rg.pointerId,"pointerId");
Gi<0||(JH[Gi]=rg,this.callback(this.manager,Xm,{pointers:JH,changedPointers:[rg],pointerType:Gf,srcEvent:rg}),hH&&JH.splice(Gi,1))}});
var v7={touchstart:1,touchmove:2,touchend:4,touchcancel:8};F(xF,M,{handler:function(rg){var JH=v7[rg.type];var hH=Array.prototype.slice.call(rg.touches,0);var Xm=this.targetIds;if(JH&3&&hH.length===1)Xm[hH[0].identifier]=!0,Xm=[hH,hH];else{var Gf,Gi=Array.prototype.slice.call(rg.targetTouches,0),zi=Array.prototype.slice.call(rg.changedTouches,0),Ti=[];if(JH===1)for(hH=0,Gf=Gi.length;hH<Gf;hH++)Xm[Gi[hH].identifier]=!0;hH=0;for(Gf=zi.length;hH<Gf;hH++)Xm[zi[hH].identifier]&&Ti.push(zi[hH]),JH&12&&
delete Xm[zi[hH].identifier];Xm=Ti.length?[S(Gi.concat(Ti),"identifier",!0),Ti]:void 0}Xm&&this.callback(this.manager,JH,{pointers:Xm[0],changedPointers:Xm[1],pointerType:"touch",srcEvent:rg})}});
F(M3,M,{handler:function(rg,JH,hH){var Xm=hH.pointerType=="mouse";if(hH.pointerType=="touch")this.mouse.allow=!1;else if(Xm&&!this.mouse.allow)return;JH&12&&(this.mouse.allow=!0);this.callback(rg,JH,hH)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var XF=cy(w2.style,"touchAction"),dX=XF!==D;wS.prototype={set:function(rg){rg=="compute"&&(rg=this.compute());dX&&(this.manager.element.style[XF]=rg);this.actions=rg.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var rg=[];t(this.manager.recognizers,function(JH){l(JH.options.enable,[JH])&&(rg=rg.concat(JH.getTouchAction()))});
return f8(rg.join(" "))},
preventDefaults:function(rg){if(!dX){var JH=rg.srcEvent;rg=rg.offsetDirection;if(this.manager.session.prevented)JH.preventDefault();else{var hH=this.actions,Xm=hH.indexOf("none")>-1,Gf=hH.indexOf("pan-y")>-1;hH=hH.indexOf("pan-x")>-1;if(Xm||Gf&&hH||Gf&&rg&6||hH&&rg&24)return this.preventSrc(JH)}}},
preventSrc:function(rg){this.manager.session.prevented=!0;rg.preventDefault()}};
eV.prototype={defaults:{},set:function(rg){b(this.options,rg);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(rg){if(u(rg,"recognizeWith",this))return this;var JH=this.simultaneous;rg=K8(rg,this);JH[rg.id]||(JH[rg.id]=rg,rg.recognizeWith(this));return this},
dropRecognizeWith:function(rg){if(u(rg,"dropRecognizeWith",this))return this;rg=K8(rg,this);delete this.simultaneous[rg.id];return this},
requireFailure:function(rg){if(u(rg,"requireFailure",this))return this;var JH=this.requireFail;rg=K8(rg,this);Q(JH,rg)===-1&&(JH.push(rg),rg.requireFailure(this));return this},
dropRequireFailure:function(rg){if(u(rg,"dropRequireFailure",this))return this;rg=K8(rg,this);rg=Q(this.requireFail,rg);rg>-1&&this.requireFail.splice(rg,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(rg){return!!this.simultaneous[rg.id]},
emit:function(rg){function JH(Gf){hH.manager.emit(hH.options.event+(Gf?Xm&16?"cancel":Xm&8?"end":Xm&4?"move":Xm&2?"start":"":""),rg)}
var hH=this,Xm=this.state;Xm<8&&JH(!0);JH();Xm>=8&&JH(!0)},
tryEmit:function(rg){if(this.canEmit())return this.emit(rg);this.state=32},
canEmit:function(){for(var rg=0;rg<this.requireFail.length;rg++)if(!(this.requireFail[rg].state&33))return!1;return!0},
recognize:function(rg){rg=b({},rg);l(this.options.enable,[this,rg])?(this.state&56&&(this.state=1),this.state=this.process(rg),this.state&30&&this.tryEmit(rg)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
F(PJ,eV,{defaults:{pointers:1},attrTest:function(rg){var JH=this.options.pointers;return JH===0||rg.pointers.length===JH},
process:function(rg){var JH=this.state,hH=rg.eventType,Xm=JH&6;rg=this.attrTest(rg);return Xm&&(hH&8||!rg)?JH|16:Xm||rg?hH&4?JH|8:JH&2?JH|4:2:32}});
F(cX,PJ,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var rg=this.options.direction;if(rg===30)return["none"];var JH=[];rg&6&&JH.push("pan-y");rg&24&&JH.push("pan-x");return JH},
directionTest:function(rg){var JH=this.options,hH=!0,Xm=rg.distance,Gf=rg.direction,Gi=rg.deltaX,zi=rg.deltaY;Gf&JH.direction||(JH.direction&6?(Gf=Gi===0?1:Gi<0?2:4,hH=Gi!=this.pX,Xm=Math.abs(rg.deltaX)):(Gf=zi===0?1:zi<0?8:16,hH=zi!=this.pY,Xm=Math.abs(rg.deltaY)));rg.direction=Gf;return hH&&Xm>JH.threshold&&Gf&JH.direction},
attrTest:function(rg){return PJ.prototype.attrTest.call(this,rg)&&(this.state&2||!(this.state&2)&&this.directionTest(rg))},
emit:function(rg){this.pX=rg.deltaX;this.pY=rg.deltaY;var JH=N3(rg.direction);JH&&this.manager.emit(this.options.event+JH,rg);this._super.emit.call(this,rg)}});
F(a$,PJ,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(rg){return this._super.attrTest.call(this,rg)&&(Math.abs(rg.scale-1)>this.options.threshold||this.state&2)},
emit:function(rg){this._super.emit.call(this,rg);rg.scale!==1&&this.manager.emit(this.options.event+(rg.scale<1?"in":"out"),rg)}});
F(oI,eV,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(rg){var JH=this.options,hH=rg.pointers.length===JH.pointers,Xm=rg.distance<JH.threshold,Gf=rg.deltaTime>JH.time;this._input=rg;if(!Xm||!hH||rg.eventType&12&&!Gf)this.reset();else if(rg.eventType&1)this.reset(),this._timer=Y(function(){this.state=8;this.tryEmit()},JH.time,this);
else if(rg.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(rg){this.state===8&&(rg&&rg.eventType&4?this.manager.emit(this.options.event+"up",rg):(this._input.timeStamp=B3(),this.manager.emit(this.options.event,this._input)))}});
F(Zg,PJ,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(rg){return this._super.attrTest.call(this,rg)&&(Math.abs(rg.rotation)>this.options.threshold||this.state&2)}});
F(xW,PJ,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return cX.prototype.getTouchAction.call(this)},
attrTest:function(rg){var JH=this.options.direction;if(JH&30)var hH=rg.velocity;else JH&6?hH=rg.velocityX:JH&24&&(hH=rg.velocityY);return this._super.attrTest.call(this,rg)&&JH&rg.direction&&J5(hH)>this.options.velocity&&rg.eventType&4},
emit:function(rg){var JH=N3(rg.direction);JH&&this.manager.emit(this.options.event+JH,rg);this.manager.emit(this.options.event,rg)}});
F(dS,eV,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(rg){var JH=this.options,hH=rg.pointers.length===JH.pointers,Xm=rg.distance<JH.threshold,Gf=rg.deltaTime<JH.time;this.reset();if(rg.eventType&1&&this.count===0)return this.failTimeout();if(Xm&&Gf&&hH){if(rg.eventType!=4)return this.failTimeout();hH=this.pTime?rg.timeStamp-this.pTime<JH.interval:!0;Xm=!this.pCenter||bf(this.pCenter,rg.center)<JH.posThreshold;this.pTime=rg.timeStamp;this.pCenter=rg.center;Xm&&hH?this.count+=1:this.count=1;this._input=rg;if(this.count%JH.taps===0)return this.hasRequireFailures()?
(this._timer=Y(function(){this.state=8;this.tryEmit()},JH.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))}});
bE.VERSION="2.0.2";bE.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Zg,{enable:!1}],[a$,{enable:!1},["rotate"]],[xW,{direction:6}],[cX,{direction:6},["swipe"]],[dS],[dS,{event:"doubletap",taps:2},["tap"]],[oI]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};EZ.prototype={set:function(rg){b(this.options,rg);return this},
stop:function(rg){this.session.stopped=rg?2:1},
recognize:function(rg){var JH=this.session;if(!JH.stopped){this.touchAction.preventDefaults(rg);var hH=this.recognizers,Xm=JH.curRecognizer;if(!Xm||Xm&&Xm.state&8)Xm=JH.curRecognizer=null;for(var Gf=0,Gi=hH.length;Gf<Gi;Gf++){var zi=hH[Gf];JH.stopped===2||Xm&&zi!=Xm&&!zi.canRecognizeWith(Xm)?zi.reset():zi.recognize(rg);!Xm&&zi.state&14&&(Xm=JH.curRecognizer=zi)}}},
get:function(rg){if(rg instanceof eV)return rg;for(var JH=this.recognizers,hH=0;hH<JH.length;hH++)if(JH[hH].options.event==rg)return JH[hH];return null},
add:function(rg){if(u(rg,"add",this))return this;var JH=this.get(rg.options.event);JH&&this.remove(JH);this.recognizers.push(rg);rg.manager=this;this.touchAction.update();return rg},
remove:function(rg){if(u(rg,"remove",this))return this;var JH=this.recognizers;rg=this.get(rg);JH.splice(Q(JH,rg),1);this.touchAction.update();return this},
on:function(rg,JH){var hH=this.handlers;t(V(rg),function(Xm){hH[Xm]=hH[Xm]||[];hH[Xm].push(JH)});
return this},
off:function(rg,JH){var hH=this.handlers;t(V(rg),function(Xm){JH?hH[Xm].splice(Q(hH[Xm],JH),1):delete hH[Xm]});
return this},
emit:function(rg,JH){this.options.domEvents&&La(rg,JH);var hH=this.handlers[rg]&&this.handlers[rg].slice();if(hH&&hH.length){JH.type=rg;JH.preventDefault=function(){JH.srcEvent.preventDefault()};
rg=0;for(var Xm=hH.length;rg<Xm;rg++)hH[rg](JH)}},
destroy:function(){this.element&&jV(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
b(bE,{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:EZ,Input:M,TouchAction:wS,Recognizer:eV,AttrRecognizer:PJ,Tap:dS,Pan:cX,Swipe:xW,Pinch:a$,Rotate:Zg,Press:oI,on:N,off:P,each:t,merge:r,extend:b,inherit:F,bindFn:K,prefixed:cy});
c[G]=bE})(window,document,"Hammer");
return window.Hammer}.call({});
W.DOCUMENT=y;y[pG0]=W}return y[pG0]};/*

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

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 Wt2;_.yD8="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Wt2=function(){var y=[],W;var c=c||_.yD8.length;for(W=0;W<8;W++)y[W]=_.yD8[0|Math.random()*c];return y.join("")};var WSI=function(){return Math.random().toString(36).substring(7).split("").join(".")},yUO="@@redux/INIT"+WSI(),GFI="@@redux/REPLACE"+WSI();var f9H=typeof Symbol==="function"&&Symbol.observable||"@@observable";var cDZ=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Zs2="top right bottom left width height size weight".split(" "),GqE=typeof MutationObserver!=="undefined",fv5=cDZ&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,oDi=function(){this.mutationEventsAdded_=this.JSC$9510_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=opI(this.refresh.bind(this))},Dv5=function(y,
W){var c=y.observers_;
W=c.indexOf(W);~W&&c.splice(W,1);!c.length&&y.JSC$9510_connected_&&cDZ&&y.JSC$9510_connected_&&(document.removeEventListener("transitionend",y.onTransitionEnd_),window.removeEventListener("resize",y.refresh),y.mutationsObserver_&&(y.mutationsObserver_.disconnect(),fv5&&(HTMLElement.prototype.attachShadow=fv5)),y.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",y.refresh),y.mutationsObserver_=null,y.mutationEventsAdded_=!1,y.JSC$9510_connected_=!1)};
oDi.prototype.refresh=function(){zY5(this)&&this.refresh()};
var zY5=function(y){y=y.observers_.filter(function(W){return YdZ(W),W.activeObservations_.length>0});
y.forEach(function(W){return mvT(W)});
return y.length>0},s02=function(y){if(cDZ&&!y.JSC$9510_connected_){document.addEventListener("transitionend",y.onTransitionEnd_);
window.addEventListener("resize",y.refresh);if(GqE){y.mutationsObserver_=new MutationObserver(y.refresh);var W={attributes:!0,childList:!0,characterData:!0,subtree:!0};y.mutationsObserver_.observe(document,W);fv5&&(function G(Z){var D=Z.shadowRoot;D&&(y.mutationsObserver_.observe(D,W),G(D));for(Z=Z.firstElementChild;Z;)G(Z),Z=Z.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var Z=fv5.apply(this,_.Cf.apply(0,arguments));
y.mutationsObserver_.observe(Z,W);return Z})}else document.addEventListener("DOMSubtreeModified",y.refresh),y.mutationEventsAdded_=!0;
y.JSC$9510_connected_=!0}};
oDi.prototype.onTransitionEnd_=function(y){var W=y.propertyName===void 0?"":y.propertyName;Zs2.some(function(c){return!!~W.indexOf(c)})&&this.refresh()};
var u6Q=null;var tsE=function(y,W){for(var c=_.z(Object.keys(W)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Object.defineProperty(y,Z,{value:W[Z],enumerable:!1,writable:!1,configurable:!0})};var RY=function(y){var W;return(y==null?void 0:(W=y.ownerDocument)==null?void 0:W.defaultView)||globalThis};var nDT={x:0,y:0,width:0,height:0},XEi=typeof SVGGraphicsElement!=="undefined"?function(y){return y instanceof RY(y).SVGGraphicsElement}:function(y){return y instanceof RY(y).SVGElement&&typeof y.getBBox==="function"};var bs8=function(y){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=y};
bs8.prototype.isActive=function(){var y=this.target;if(cDZ)if(XEi(y)){var W=y.getBBox();W={x:0,y:0,width:W.width,height:W.height}}else{var c=y.clientWidth,Z=y.clientHeight;if(c||Z){var G=RY(y).getComputedStyle(y);W=m4(G["padding-top"]);var D=m4(G["padding-left"]),Y=D+m4(G["padding-right"]),u=W+m4(G["padding-bottom"]),t=m4(G.width),b=m4(G.height);G.boxSizing==="border-box"&&(Math.round(t+Y)!==c&&(t-=DKw(G,"left","right")+Y),Math.round(b+u)!==Z&&(b-=DKw(G,"top","bottom")+u));y!==RY(y).document.documentElement&&
(y=Math.round(t+Y)-c,Z=Math.round(b+u)-Z,Math.abs(y)!==1&&(t-=y),Math.abs(Z)!==1&&(b-=Z));W={x:D,y:W,width:t,height:b}}else W=nDT}else W=nDT;this.contentRect_=W;return W.width!==this.broadcastWidth||W.height!==this.broadcastHeight};var rDJ=function(y,W){var c=W.x;var Z=W.y;var G=W.width;W=W.height;var D=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);tsE(D,{x:c,y:Z,width:G,height:W,top:Z,right:c+G,bottom:W+Z,left:c});tsE(this,{target:y,contentRect:D})};var Ftm=function(y,W){var c=u6Q;this.activeObservations_=[];this.observations_=new Map;if(typeof y!=="function")throw new TypeError("Qe");this.callback_=y;this.controller_=c;this.callbackCtx_=W};
Ftm.prototype.observe=function(y){if(y===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(y instanceof RY(y).Element))throw new TypeError("Se");var W=this.observations_;W.has(y)||(W.set(y,new bs8(y)),y=this.controller_,~y.observers_.indexOf(this)||y.observers_.push(this),y.JSC$9510_connected_||s02(y),this.controller_.refresh())}};
Ftm.prototype.unobserve=function(y){if(y===void 0)throw new TypeError("Re");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(y instanceof RY(y).Element))throw new TypeError("Se");var W=this.observations_;W.has(y)&&(W.delete(y),W.size||Dv5(this.controller_,this))}};
Ftm.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();Dv5(this.controller_,this)};
var YdZ=function(y){y.activeObservations_.splice(0);y.observations_.forEach(function(W){W.isActive()&&y.activeObservations_.push(W)})},mvT=function(y){if(y.activeObservations_.length>0){var W=y.callbackCtx_,c=y.activeObservations_.map(function(Z){var G=Z.target,D=Z.contentRect_;
Z.broadcastWidth=D.width;Z.broadcastHeight=D.height;return new rDJ(G,D)});
y.callback_.call(W,c,W);y.activeObservations_.splice(0)}};var lO=function(y){if(!(this instanceof lO))throw new TypeError("Te");if(!arguments.length)throw new TypeError("Re");u6Q||(u6Q=new oDi);this.observer_=new Ftm(y,this)};
lO.prototype.observe=function(y){this.observer_.observe(y)};
lO.prototype.unobserve=function(y){this.observer_.unobserve(y)};
lO.prototype.disconnect=function(){this.observer_.disconnect()};var zCD=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:lO;var XPH="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(" "),npF={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},twt=null,zGy=null;var b$I={},rUf=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 RGI={text:1},$KF={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var UvW=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,$v0={CONSTANT:{isUnwrappable:function(y){return y instanceof Is},
unwrap:yn2},JAVASCRIPT:{isUnwrappable:function(y){return y instanceof _.xX},
unwrap:x9w},HTML:{isUnwrappable:function(y){return y instanceof BX},
unwrap:function(y){return vX(y)}},
RESOURCE_URL:{isUnwrappable:function(y){return y instanceof bF},
unwrap:_.U3},STRING:{isUnwrappable:function(y){return y instanceof Object},
unwrap:function(y){return String(y)}},
STYLE:{isUnwrappable:function(y){return typeof y==="string"},
unwrap:function(y){return y}},
URL:{isUnwrappable:function(y){return lF(y)},
unwrap:_.N9}},KtE={CONSTANT:l91,JAVASCRIPT:l91,HTML:function(y){y=y instanceof BX?y:Lf(String(y).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return vX(y)},
RESOURCE_URL:l91,STRING:String,STYLE:l91,URL:function(y,W){y=UvW.test(y)?y:void 0;return y===void 0?W:y}};var hGD=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Ept=/[\t\n\f\r ]+/,I9F=/[\t\n\f\r ,]+/g,PUH=function(y,W,c){return c},nO={},Os5=function(){var y=function(){var Z={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",Z):Z}(),W=y.createHTML(""),c=y.createScript("");
y=y.createScriptURL("");return{INNOCUOUS_STRING:W,INNOCUOUS_SCRIPT:c,INNOCUOUS_URL:y}}(),tG=Os5.INNOCUOUS_STRING,AUF=Os5.INNOCUOUS_SCRIPT,Q4g=Os5.INNOCUOUS_URL;var gDE=function(y){var W=Ba1(y);return function(c,Z,G,D){return D?W(D,Z,G,c):tG}}({reportHandler:function(y,W){if(y)try{throw Error(W);
}catch(c){_.OP(c)}},
safeTypesBridge:function(y,W,c){var Z=$v0[W];return Z.isUnwrappable(y)&&(Z=Z.unwrap(y,c),Z!==c)?Z:(0,KtE[W])(String(y),c)},
allowedIdentifierPrefixes:[""]});if(sQ!==void 0)throw Error("Ue");sQ=gDE;if(sQ!==gDE)throw Error("Ve");Xs("Injectable",[]);var mJO=Xs("Inject",[["token",void 0]]),uOF=Xs("Optional",[]);Xs("Injectable",[]);var tmt=Xs("Self",[]),nbf=Xs("SkipSelf",[]);Xs("Host",[]);var RYZ={},lvZ=function(){};
lvZ.prototype.resolve=function(){throw Error("Xe");};
lvZ.prototype.addProvider=function(){throw Error("Xe");};var z_a=Function;var EDT=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,NeW=function(){this._reflect=window.Reflect};
_.f=NeW.prototype;_.f.factory=function(y){return function(){return new (Function.prototype.bind.apply(y,[null].concat(_.No(_.Cf.apply(0,arguments)))))}};
_.f._zipTypesAndAnnotations=function(y,W){var c=typeof y==="undefined"?Array(W.length):Array(y.length);for(var Z=0;Z<c.length;Z++)c[Z]=typeof y==="undefined"?[]:y[Z]!=Object?[y[Z]]:[],W&&LSH(W[Z])&&(c[Z]=c[Z].concat(W[Z]));return c};
_.f._ownParameters=function(y,W){if(EDT.exec(y.toString()))return null;if(y.parameters&&y.parameters!==W.parameters)return y.parameters;var c=y.ctorParameters;return c&&c!==W.ctorParameters?(W=typeof c==="function"?c():c,y=W.map(function(Z){return Z&&Z.type}),W=W.map(function(Z){return Z&&dKO(Z.decorators)}),this._zipTypesAndAnnotations(y,W)):LSH(this._reflect)&&LSH(this._reflect.getOwnMetadata)&&(W=this._reflect.getOwnMetadata("parameters",y),(c=this._reflect.getOwnMetadata("design:paramtypes",y))||
W)?this._zipTypesAndAnnotations(c,W):Array(y.length).fill(void 0)};
_.f.parameters=function(y){if(!y.prototype)return[];var W=Object.getPrototypeOf(y.prototype).constructor;(y=this._ownParameters(y,W))||W===Object||(y=this.parameters(W));return y||[]};
_.f._ownAnnotations=function(y,W){if(y.annotations&&y.annotations!==W.annotations)return y=y.annotations,typeof y==="function"&&y.annotations&&(y=y.annotations),y;if(y.decorators&&y.decorators!==W.decorators)return dKO(y.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",y)};
_.f.annotations=function(y){var W=Object.getPrototypeOf(y.prototype).constructor;y=this._ownAnnotations(y,W)||[];return(W!==Object?this.annotations(W):[]).concat(y)};
_.f._ownPropMetadata=function(y,W){if(y.propMetadata&&y.propMetadata!==W.propMetadata)return y=y.propMetadata,typeof y==="function"&&y.propMetadata&&(y=y.propMetadata),y;if(y.propDecorators&&y.propDecorators!==W.propDecorators){var c=y.propDecorators,Z={};Object.keys(c).forEach(function(G){Z[G]=dKO(c[G])});
return Z}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",y)};
_.f.propMetadata=function(y){var W=Object.getPrototypeOf(y.prototype).constructor,c={};if(W!==Object){var Z=this.propMetadata(W);Object.keys(Z).forEach(function(D){c[D]=Z[D]})}var G=this._ownPropMetadata(y,W);
G&&Object.keys(G).forEach(function(D){var Y=[];c.hasOwnProperty(D)&&Y.push.apply(Y,_.No(c[D]));Y.push.apply(Y,_.No(G[D]));c[D]=Y});
return c};
_.f.getter=function(y){return function(W){return W[y]}};
_.f.method=function(y){return function(W,c){if(!W[y])throw Error("Ye`"+y);return W[y].apply(W,c)}};var Ivm=function(){};var pEV=function(y){this.reflectionCapabilities=y};
_.R(pEV,Ivm);_.f=pEV.prototype;_.f.factory=function(y){return this.reflectionCapabilities.factory(y)};
_.f.parameters=function(y){return this.reflectionCapabilities.parameters(y)};
_.f.annotations=function(y){return this.reflectionCapabilities.annotations(y)};
_.f.propMetadata=function(y){return this.reflectionCapabilities.propMetadata(y)};
_.f.getter=function(y){return this.reflectionCapabilities.getter(y)};
_.f.method=function(y){return this.reflectionCapabilities.method(y)};var qpI=new pEV(new NeW);var Eu=function(y,W){this.token=y;this.id=W;if(y===void 0||y===null)throw Error("cf");};
_.dJ.Object.defineProperties(Eu.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return bM(this.token)}}});
_.dJ.Object.defineProperties(Eu,{JSC$9552_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Fs.JSC$9556_numberOfKeys}}});
var PL2=function(){this._allKeys=new Map};
PL2.prototype.get=function(y){if(y instanceof Eu)return y;if(this._allKeys.has(y))return this._allKeys.get(y);var W=new Eu(y,Eu.JSC$9552_numberOfKeys);this._allKeys.set(y,W);return W};
_.dJ.Object.defineProperties(PL2.prototype,{JSC$9556_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Fs=new PL2;var Xgh=function(y,W,c){this.key=y;this.optional=W;this.visibility=c},j7w=function(y){return new Xgh(y,!1,null)},WzO=[],GHa=function(y,W,c){this.key=y;
this.resolvedFactories=W;this.multiProvider=c},chH=function(y,W,c,Z){this.factory=y;
this.dependencies=W;this.providerClass=c;this.providerValue=Z};var NE={},IY=function(y,W){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=W===void 0?null:W;y=_.z(y);for(W=y.next();!W.done;W=y.next())this.addProvider(W.value)};
_.f=IY.prototype;_.f.addProvider=function(y){this.keyIdToIndex.set(y.key.id,this.keyIds.length);this.providers.push(y);this.keyIds.push(y.key.id);this.objs.push(NE)};
_.f.resolve=function(y,W){W=W===void 0?RYZ:W;return this._getByKey(Fs.get(rz(y)),null,W)};
_.f._new=function(y){if(this.constructedKeyIds[y.key.id])throw Mwh(this,y.key);this.constructedKeyIds[y.key.id]=!0;return this._instantiateProvider(y)};
_.f._instantiateProvider=function(y){if(y.multiProvider){for(var W=Array(y.resolvedFactories.length),c=0;c<y.resolvedFactories.length;++c)W[c]=this._instantiate(y,y.resolvedFactories[c]);return W}return this._instantiate(y,y.resolvedFactories[0])};
_.f._instantiate=function(y,W){var c=this,Z=W.factory;try{var G=W.dependencies.map(function(Y){return c._getByReflectiveDependency(Y)})}catch(Y){throw Y.addKey&&Y.addKey(this,y.key),Y;
}try{var D=Z.apply(null,_.No(G))}catch(Y){throw eGf(this,Y,y.key);}return D};
_.f._getByReflectiveDependency=function(y){return this._getByKey(y.key,y.visibility,y.optional?null:RYZ)};
_.f._getByKey=function(y,W,c){return y===JDV?this:W instanceof tmt?this._getByKeySelf(y,c):this._getByKeyDefault(y,c,W)};
_.f._getObjByKeyId=function(y){for(var W=0;W<this.keyIds.length;W++)if(this.keyIds[W]===y)return this.objs[W]===NE&&(this.objs[W]=this._new(this.providers[W])),this.objs[W];return NE};
_.f._throwOrNull=function(y,W){if(W!==RYZ)return W;throw i$E(this,y);};
_.f._getByKeySelf=function(y,W){var c=this._getObjByKeyId(y.id);return c!==NE?c:this._throwOrNull(y,W)};
_.f._getByKeyDefault=function(y,W,c){for(var Z=c=c instanceof nbf?this.parent:this;c instanceof IY;){var G=c._getObjByKeyId(y.id);if(G!==NE)return G;c=c.parent}G=void 0;if(c!==null)try{var D=c.resolve(y.token,W);if(D!==NE)return D}catch(Y){G=Y}if(!(Z instanceof IY&&rht(y.token))){if(G)throw G;return this._throwOrNull(y,W)}for(D=Z;D.parent instanceof IY;)D=D.parent;D.addProvider(fyI({provide:y.token,useClass:y.token}));return D.resolve(y.token,W)};
_.f.toString=function(){return this.displayName};
_.dJ.Object.defineProperties(IY.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+b2H(this,function(y){return' "'+y.key.displayName+'" '}).join(", ")+"])"}}});
var JDV=Fs.get(rz(lvZ));(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 VsV=window.XRegExp;var CL3=-1,Q0Q=function(y){addEventListener("pageshow",function(W){W.persisted&&(CL3=W.timeStamp,y(W))},!0)};var hYJ=function(y,W,c){var Z=ADV,G,D;return function(Y){W.value>=0&&(Y||c)&&((D=W.value-(G||0))||G===void 0)&&(G=W.value,W.delta=D,Y=W.value,W.rating=Y>Z[1]?"poor":Y>Z[0]?"needs-improvement":"good",y(W))}};var p7=-1,BeQ=function(y){document.visibilityState==="hidden"&&p7>-1&&(p7=y.type==="visibilitychange"?y.timeStamp:0,removeEventListener("visibilitychange",BeQ,!0),removeEventListener("prerenderingchange",BeQ,!0))},Hsm=function(){addEventListener("visibilitychange",BeQ,!0);
addEventListener("prerenderingchange",BeQ,!0)},LtZ=function(){p7<0&&(p7=document.visibilityState!=="hidden"||document.prerendering?Infinity:0,Hsm(),Q0Q(function(){setTimeout(function(){p7=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
Hsm()},0)}));
return{get firstHiddenTime(){return p7}}};var vD0=function(){var y=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(y&&y.responseStart>0&&y.responseStart<performance.now())return y};var dv3=function(){var y=vD0();return y&&y.activationStart||0};var Sd2=function(){var y=vD0(),W="navigate";CL3>=0?W="back-forward-cache":y&&(document.prerendering||dv3()>0?W="prerender":document.wasDiscarded?W="restore":y.type&&(W=y.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:W}};var Tei=function(y){try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var W=new PerformanceObserver(function(c){Promise.resolve().then(function(){y(c.getEntries())})});
W.observe(Object.assign({type:"largest-contentful-paint",buffered:!0},{}));return W}}catch(c){}};var avJ=function(y){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y()})};var xvV=function(y){var W=!1;return function(){W||(y(),W=!0)}};var isJ=function(y){document.prerendering?addEventListener("prerenderingchange",function(){return y()},!0):y()};var MsV=function(y){requestAnimationFrame(function(){return requestAnimationFrame(function(){return y()})})};var ADV=[2500,4E3],eY3={},wcI=function(y){var W=W||{};isJ(function(){var c=LtZ(),Z=Sd2(),G=function(t){W.reportAllChanges||(t=t.slice(-1));t.forEach(function(b){b.startTime<c.firstHiddenTime&&(Z.value=Math.max(b.startTime-dv3(),0),Z.entries=[b],Y())})},D=Tei(G);
if(D){var Y=hYJ(y,Z,W.reportAllChanges);var u=xvV(function(){eY3[Z.id]||(G(D.takeRecords()),D.disconnect(),eY3[Z.id]=!0,Y(!0))});
["keydown","click"].forEach(function(t){addEventListener(t,function(){var b=u,r=self.requestIdleCallback||self.setTimeout,F=-1;b=xvV(b);document.visibilityState==="hidden"?b():(F=r(b),avJ(b));return F},!0)});
avJ(u);Q0Q(function(t){Z=Sd2();Y=hYJ(y,Z,W.reportAllChanges);MsV(function(){Z.value=performance.now()-t.timeStamp;eY3[Z.id]=!0;Y(!0)})})}})};var wEE;var qdV;_.q=function(){return qdV!==void 0?qdV:qdV=document.createElement("template")};
document.head.appendChild(_.q().content);var kqE;_.mD({_template:function(){if(kqE!==void 0)return kqE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;wEE===void 0&&(wEE=document.createElement("template"));var Z=wEE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return kqE=y},
is:"tp-yt-app-toolbar"});var jTQ;var ydi;_.P_=function(){};
_.P_=_.mD({_template:function(){if(ydi!==void 0)return ydi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;jTQ===void 0&&(jTQ=document.createElement("template"));var Z=jTQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return ydi=y},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.P_.instance||(_.P_.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(y){this._text===y&&(y+="\u00a0");this._text="";this.async(function(){this._text=y},this.timeout)},
_onIronAnnounce:function(y){y.detail&&y.detail.text&&this.announce(y.detail.text)}});
_.P_.instance=null;_.P_.requestAvailability=function(){_.P_.instance||(_.P_.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.P_.instance):document.addEventListener("load",function(){document.body.appendChild(_.P_.instance)})};var WHQ;var cdE;/*

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

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 Jk,Y9Q,maV;Jk=Element.prototype;Y9Q=Jk.matches||Jk.matchesSelector||Jk.mozMatchesSelector||Jk.msMatchesSelector||Jk.oMatchesSelector||Jk.webkitMatchesSelector;maV=function(){};
_.uGi=function(y){var W=sTi,c=[];return W._collectTabbableNodes(y,c)?W._sortByTabIndex(c):c};
_.f=maV.prototype;_.f._normalizedTabIndex=function(y){return(Y9Q.call(y,"input, select, textarea, button, object")?Y9Q.call(y,":not([disabled])"):Y9Q.call(y,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(y=y.getAttribute("tabindex")||0,Number(y)):-1};
_.f._collectTabbableNodes=function(y,W){if(y.nodeType!==Node.ELEMENT_NODE||!this._isVisible(y))return!1;var c=this._normalizedTabIndex(y),Z=c>0;c>=0&&W.push(y);if(y.localName==="content"||y.localName==="slot")c=_.UL(y).getDistributedNodes();else{var G;c=((G=_.UL(y).shadowRoot)!=null?G:_.UL(y.root||y)).children}for(y=0;y<c.length;y++)Z=this._collectTabbableNodes(c[y],W)||Z;return Z};
_.f._isVisible=function(y){var W=y.style;return W.visibility!=="hidden"&&W.display!=="none"?(W=window.getComputedStyle(y),W.visibility!=="hidden"&&W.display!=="none"):!1};
_.f._sortByTabIndex=function(y){var W=y.length;if(W<2)return y;var c=Math.ceil(W/2);W=this._sortByTabIndex(y.slice(0,c));y=this._sortByTabIndex(y.slice(c));return this._mergeSortByTabIndex(W,y)};
_.f._mergeSortByTabIndex=function(y,W){for(var c=[];y.length>0&&W.length>0;)this._hasLowerTabOrder(y[0],W[0])?c.push(W.shift()):c.push(y.shift());return c.concat(y,W)};
_.f._hasLowerTabOrder=function(y,W){y=Math.max(y.tabIndex,0);W=Math.max(W.tabIndex,0);return y===0||W===0?W>y:y>W};
var sTi=new maV;var toJ;var n3W;_.mD({_template:function(){if(n3W!==void 0)return n3W;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;toJ===void 0&&(toJ=document.createElement("template"));var Z=toJ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return n3W=y},
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&&_.UL(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.UL(this.parentNode).removeChild(this)},
_onTransitionend:function(y){y&&y.target===this&&this.complete()},
_openedChanged:function(y){y?this.prepare():(y=window.getComputedStyle(this),y.transitionDuration!=="0s"&&y.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 Vq=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;OQ(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)};
Vq.prototype._bringOverlayAtIndexToFront=function(y){var W=this._overlays[y];if(W){var c=this._overlays.length-1,Z=this._overlays[c];Z&&this._shouldBeBehindOverlay(W,Z)&&c--;if(!(y>=c)){Z=Math.max(this._getZ(_.XUQ(this)),this._minimumZ);for(this._getZ(W)<=Z&&this._applyOverlayZ(W,Z);y<c;)this._overlays[y]=this._overlays[y+1],y++;this._overlays[c]=W}}};
Vq.prototype.addOverlay=function(y){var W=this._overlays.indexOf(y);if(W>=0)this._bringOverlayAtIndexToFront(W);else{W=this._overlays.length;var c=this._overlays[W-1],Z=Math.max(this._getZ(c),this._minimumZ),G=this._getZ(y);c&&this._shouldBeBehindOverlay(y,c)&&(this._applyOverlayZ(c,Z),W--,Z=Math.max(this._getZ(this._overlays[W-1]),this._minimumZ));G<=Z&&this._applyOverlayZ(y,Z);this._overlays.splice(W,0,y)}this.trackBackdrop()};
Vq.prototype.removeOverlay=function(y){y=this._overlays.indexOf(y);y!==-1&&(this._overlays.splice(y,1),this.trackBackdrop())};
_.XUQ=function(y){return y._overlays[y._overlays.length-1]};
_.f=Vq.prototype;_.f.trackBackdrop=function(){var y=this._overlayWithBackdrop();if(y||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(y)-1,this.backdropElement.opened=!!y,this.backdropElement.prepare()};
_.f._overlayWithBackdrop=function(){for(var y=this._overlays.length-1;y>=0;y--)if(this._overlays[y].withBackdrop)return this._overlays[y]};
_.f._getZ=function(y){var W=this._minimumZ;if(y){var c,Z,G=Number(((c=y.hostElement)!=null?c:y).style.zIndex||window.getComputedStyle((Z=y.hostElement)!=null?Z:y).zIndex);G===G&&(W=G)}return W};
_.f._setZ=function(y,W){var c;((c=y.hostElement)!=null?c:y).style.zIndex=W};
_.f._applyOverlayZ=function(y,W){this._setZ(y,W+2)};
_.f._overlayInPath=function(y){y=y||[];for(var W=0;W<y.length;W++){var c=void 0;if(((c=y[W].polymerController)!=null?c:y[W])._manager===this)return y[W]}};
_.f._onCaptureClick=function(y){var W=this._overlays.length-1;if(W!==-1)for(var c=_.UL(y).path,Z,G;(Z=this._overlays[W])&&this._overlayInPath(c)!==((G=Z.hostElement)!=null?G:Z);)if(Z._onCaptureClick(y),Z.allowClickThrough)W--;else break};
_.f._onCaptureFocus=function(y){var W=_.XUQ(this);W&&W._onCaptureFocus(y)};
_.f._onCaptureKeyDown=function(y){var W=_.XUQ(this);W&&(_.uO.keyboardEventMatchesKeys(y,"esc")?W._onCaptureEsc(y):_.uO.keyboardEventMatchesKeys(y,"tab")&&W._onCaptureTab(y))};
_.f._shouldBeBehindOverlay=function(y,W){return!y.alwaysOnTop&&W.alwaysOnTop&&!W.contains(y)};
_.dJ.Object.defineProperties(Vq.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 y=document.activeElement;y&&y instanceof Element!==!1||(y=document.body);for(;y.root&&_.UL(y.root).activeElement;)y=_.UL(y.root).activeElement;return y}}});
_.C7=new Vq;var Fzg=0,UJ1=0,$JH=null,KzI=[],$T=["wheel","mousewheel","DOMMouseScroll"],O2a;_.O("web_no_lock_on_touchstart_killswitch")&&($T.push("touchstart"),$T.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;_.Qq={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:_.C7},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var y;return this._focusedChild||_.UL((y=this.hostElement)!=null?y:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var y;return _.uGi((y=this.hostElement)!=null?y: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 y;this._observer=_.UL((y=this.hostElement)!=null?y:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var y;_.UL((y=this.hostElement)!=null?y:this).unobserveNodes(this._observer)}this._observer=null;for(var W in this.__rafs)this.__rafs[W]!==null&&cancelAnimationFrame(this.__rafs[W]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(y){this.fire("iron-overlay-canceled",y,{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 y;((y=this.hostElement)!=null?y:this).style.outline="none";var W;((W=this.hostElement)!=null?W:this).style.display="none"}},
_openedChanged:function(y){if(y){var W;((W=this.hostElement)!=null?W:this).removeAttribute("aria-hidden")}else{var c;((c=this.hostElement)!=null?c: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 y;if(this.withBackdrop&&!((y=this.hostElement)!=null?y:this).hasAttribute("tabindex")){var W;((W=this.hostElement)!=null?W:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var c;((c=this.hostElement)!=null?c: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 y;((y=this.hostElement)!=null?y:this).style.display="none";var W;((W=this.hostElement)!=null?W:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var y,W;((y=this.hostElement)!=null?y:this).style.transition=((W=this.hostElement)!=null?W:this).style.webkitTransition="none";var c,Z;((c=this.hostElement)!=null?c:this).style.transform=((Z=this.hostElement)!=null?Z:this).style.webkitTransform="none";var G;((G=this.hostElement)!=null?G:this).style.display=""},
_finishPositioning:function(){var y;((y=this.hostElement)!=null?y:this).style.display="none";this.scrollTop=this.scrollTop;var W,c;((W=this.hostElement)!=null?W:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="";var Z,G;((Z=this.hostElement)!=null?Z:this).style.transform=((G=this.hostElement)!=null?G:this).style.webkitTransform="";var D;((D=this.hostElement)!=null?D:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var y=this._manager.deepActiveElement,W;if(!(W=y===document.body))a:{for(;y;y=y.assignedSlot||y.parentNode||y.host)if(y===this){W=!0;break a}W=!1}W&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(y){this.noCancelOnOutsideClick||this.cancel(y)},
_onCaptureFocus:function(y){if(this.withBackdrop){var W=_.UL(y).path;W.indexOf(this)===-1?(y.stopPropagation(),this._applyFocus()):this._focusedChild=W[0]}},
_onCaptureEsc:function(y){this.noCancelOnEscKey||this.cancel(y)},
_onCaptureTab:function(y){if(this.withBackdrop){this.__ensureFirstLastFocusables();var W=y.shiftKey,c=W?this.__firstFocusableNode:this.__lastFocusableNode;W=W?this.__lastFocusableNode:this.__firstFocusableNode;if(c===W)c=!0;else{var Z=this._manager.deepActiveElement;c=Z===c||Z===this}c&&(y.preventDefault(),this._focusedChild=W,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var y=this._focusableNodes;this.__firstFocusableNode=y[0];this.__lastFocusableNode=y[y.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(y,W){var c=this.__rafs;c[y]!==null&&cancelAnimationFrame(c[y]);c[y]=requestAnimationFrame(function(){c[y]=null;W.call(this)}.bind(this))},
__updateScrollObservers:function(y,W,c){y&&W&&this.__isValidScrollAction(c)?(c==="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),O2a=_._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()):(y=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),y!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(y,1),O2a=_._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(IN)for(var y=this;y;)y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&y.host&&this.__rootNodes.push(y),y=y.host||y.assignedSlot||y.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(W){W.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(y){y.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(y){return y==="lock"||y==="refit"||y==="cancel"},
__onCaptureScroll:function(y){if(!(this.__isAnimating||_.UL(y).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(y)}},
__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)}};
_.Ak=[zV3,_.K7,_.Qq];_.mD({_template:function(){if(o3i!==void 0)return o3i;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;fsZ===void 0&&(fsZ=document.createElement("template"));var Z=fsZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return o3i=y},
is:"tp-yt-iron-dropdown",behaviors:[_.tk,_.uO,_.Ak,eN8],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 y=_.UL(this.$.content).getDistributedNodes(),W=0,c=y.length;W<c;W++)if(y[W].nodeType===Node.ELEMENT_NODE)return y[W]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.Qq._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Qq._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Qq._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var y=this.containedElement,W=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),c=0;c<W.length;c++)W[c].node=y;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(y){this._readied&&(y?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var y=this.focusTarget||this.containedElement;y&&this.opened&&!this.noAutoFocus?y.focus():_.Qq._applyFocus.apply(this,arguments)}});var byJ;var rd2;/*

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 FHZ=new _.rt({type:"iconset"});
_.mD({_template:function(){if(rd2!==void 0)return rd2;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;byJ===void 0&&(byJ=document.createElement("template"));
var Z=byJ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return rd2=y},
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(y){y=(y||"").split(":");this._iconName=y.pop();this._iconsetName=y.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&&_.UL(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=FHZ.byKey(this._iconsetName)){var y=this._iconset.applyIcon(this,this._iconName,this.theme);y&&y.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,_.UL(this.root).appendChild(this._img)}});var Uam;var $a2;_.mD({_template:function(){if($a2!==void 0)return $a2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;Uam===void 0&&(Uam=document.createElement("template"));var Z=Uam;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return $a2=y},
is:"tp-yt-iron-input",behaviors:[_.Uu],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(){_.P_.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.UL(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.UL(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 y=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":y=/[0-9.,e-]/}return y},_bindValueChanged:function(y,W){W&&(y===void 0?W.value=null:y!==W.value&&(this.inputElement.value=y),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:y}))},
_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(y){var W=y.keyCode==19||y.keyCode==20||y.keyCode==45||y.keyCode==46||y.keyCode==144||y.keyCode==145||y.keyCode>32&&y.keyCode<41||y.keyCode>111&&y.keyCode<124;return!(y.keyCode==8||y.keyCode==9||y.keyCode==13||y.keyCode==27)&&!(y.charCode==0&&W)},
_onKeypress:function(y){if(this.allowedPattern||this.inputElement.type==="number"){var W=this._patternRegExp;if(W&&!(y.metaKey||y.ctrlKey||y.altKey)){this._patternAlreadyChecked=!0;var c=String.fromCharCode(y.charCode);this._isPrintable(y)&&!W.test(c)&&(y.preventDefault(),this._announceInvalidCharacter("Invalid character "+c+" not entered."))}}},
_checkPatternValidity:function(){var y=this._patternRegExp;if(!y)return!0;for(var W=0;W<this.inputElement.value.length;W++)if(!y.test(this.inputElement.value[W]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var y=this.inputElement.checkValidity();y&&(this.required&&this.bindValue===""?y=!1:this.hasValidator()&&(y=_.Uu.validate.call(this,this.bindValue)));this.invalid=!y;this.fire("iron-input-validate");return y},
_announceInvalidCharacter:function(y){this.fire("iron-announce",{text:y})},
_computeValue:function(y){return y}});var KHQ;var OyJ;var g3V=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),RVQ=g3V&&g3V[1]>=8;
_.mD({_template:function(){if(OyJ!==void 0)return OyJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;KHQ===void 0&&(KHQ=document.createElement("template"));var Z=KHQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return OyJ=y},
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:[bWy,_.K7,_.M8Z,hzT],_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 _.UL(_.UL(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var y=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,y-this._physicalCount)},set _virtualStart(y){y=this._clamp(y,0,this._maxVirtualStart);this.grid&&(y-=y%this._itemsPerRow);this._virtualStartVal=y},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(y){y%=this._physicalCount;y<0&&(y=this._physicalCount+y);this.grid&&(y-=y%this._itemsPerRow);this._physicalStartVal=y},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(y){this._physicalCountVal=y},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 y=this._firstVisibleIndexVal;if(y==null){var W=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
y=this._iterateItems(function(c,Z){W+=this._getPhysicalSizeIncrement(c);if(W>this._scrollPosition)return this.grid?Z-Z%this._itemsPerRow:Z;if(this.grid&&this._virtualCount-1===Z)return Z-Z%this._itemsPerRow})||0}return y},
get lastVisibleIndex(){var y=this._lastVisibleIndexVal;if(y==null){if(this.grid)y=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var W=this._physicalTop+this._scrollOffset;this._iterateItems(function(c,Z){W<this._scrollBottom&&(y=Z);W+=this._getPhysicalSizeIncrement(c)})}this._lastVisibleIndexVal=y}return y},
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,_.mI);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(y){this.style.webkitOverflowScrolling=y===this?"touch":"";this.style.overflowY=y===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.mI)},
updateViewportBoundaries:function(){var y=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(y["padding-top"],10);this._isRTL=y.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var y=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),W=y-this._scrollPosition,c=W>=0;this._scrollPosition=y;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(W)>this._physicalSize&&this._physicalSize>0?(W-=this._scrollOffset,c=Math.round(W/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=c,this._physicalStart+=c,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(y=this._getReusables(c),c?(this._physicalTop=y.physicalTop,this._virtualStart+=y.indexes.length,this._physicalStart+=y.indexes.length):(this._virtualStart=this._virtualStart-y.indexes.length,this._physicalStart=this._physicalStart-y.indexes.length),this._update(y.indexes,c?null:y.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ln))},
_getReusables:function(y){var W=[],c=this._hiddenContentSize*this._ratio,Z=this._virtualStart,G=this._virtualEnd,D=this._physicalCount,Y=this._physicalTop+this._scrollOffset;var u=this._physicalBottom+this._scrollOffset;var t=this._scrollPosition,b=this._scrollBottom;if(y){var r=this._physicalStart;u=t-Y}else r=this._physicalEnd,u-=b;for(;;){var F=this._getPhysicalSizeIncrement(r);u-=F;if(W.length>=D||u<=c)break;if(y){if(G+W.length+1>=this._virtualCount)break;if(Y+F>=t-this._scrollOffset)break;W.push(r);
Y+=F;r=(r+1)%D}else{if(Z-W.length<=0)break;if(Y+this._physicalSize-F<=b)break;W.push(r);Y-=F;r=r===0?D-1:r-1}}return{indexes:W,physicalTop:Y-this._scrollOffset}},
_update:function(y,W){if(!(y&&y.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(y);this._updateMetrics(y);if(W)for(;W.length;)y=W.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(y);this._positionItems();this._updateScrollerSize()}},
_createPool:function(y){this._ensureTemplatized();var W,c=Array(y);for(W=0;W<y;W++){var Z=this.stamp(null);c[W]=Z.root.querySelector("*");this._itemsParent.appendChild(Z.root)}return c},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(y){y=this._clamp(this._physicalCount+y,3,this._virtualCount-this._virtualStart);y=this._convertIndexToCompleteRow(y);if(this.grid){var W=y%this._itemsPerRow;W&&y-W<=this._physicalCount&&(y+=this._itemsPerRow);y-=W}y-=this._physicalCount;W=Math.round(this._physicalCount*.5);if(!(y<0)){if(y>0){W=window.performance.now();[].push.apply(this._physicalItems,this._createPool(y));for(var c=0;c<y;c++)this._physicalSizes.push(0);this._physicalCount+=y;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=y);this._update();this._templateCost=(window.performance.now()-W)/y;W=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||W===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,W)),FZ0):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,W),ln))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var y=this._getReusables(!0);this._physicalTop=y.physicalTop;this._virtualStart+=y.indexes.length;this._physicalStart+=y.indexes.length;this._update(y.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 y={__key__:!0};y[this.as]=!0;y[this.indexAs]=!0;y[this.selectedAs]=!0;y.tabIndex=!0;this._instanceProps=y;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(y,W){typeof W!=="undefined"&&(this.notifyResize(),_.ZN(),y&&this._updateGridMetrics())},
_itemsChanged:function(y){if(y.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,
_.mI);else if(y.path==="items.splices"){this._adjustVirtualIndex(y.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(y.value.indexSplices.some(function(c){return c.addedCount>0||c.removed.length>0})){var W=this._getActiveElement();
this.contains(W)&&W.blur()}y=y.value.indexSplices.some(function(c){return c.index+c.addedCount>=this._virtualStart&&c.index<=this._virtualEnd},this);
this._isClientFull()&&!y||this._debounce("_render",this._render,_.mI)}else y.path!=="items.length"&&this._forwardItemPath(y.path,y.value)},
_forwardItemPath:function(y,W){y=y.slice(6);var c=y.indexOf(".");c===-1&&(c=y.length);var Z,G=this.modelForElement(this._offscreenFocusedItem),D=parseInt(y.substring(0,c),10);if(Z=this._isIndexRendered(D)){var Y=this._getPhysicalIndex(D);var u=this.modelForElement(this._physicalItems[Y])}else G&&(u=G);u&&u[this.indexAs]===D&&(y=y.substring(c+1),y=this.as+(y?"."+y:""),u._setPendingPropertyOrPath(y,W,!1,!0),u._flushProperties&&u._flushProperties(),Z&&(this._updateMetrics([Y]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(y){y.forEach(function(W){W.removed.forEach(this._removeItem,this);W.index<this._virtualStart&&(W=Math.max(W.addedCount-W.removed.length,W.index-this._virtualStart),this._virtualStart+=W,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=W))},this)},
_removeItem:function(y){this.$.selector.deselect(y);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===y&&this._removeFocusedItem()},
_iterateItems:function(y,W){var c,Z;if(arguments.length===2&&W)for(Z=0;Z<W.length;Z++){var G=W[Z];var D=this._computeVidx(G);if((c=y.call(this,G,D))!=null)return c}else{G=this._physicalStart;for(D=this._virtualStart;G<this._physicalCount;G++,D++)if((c=y.call(this,G,D))!=null)return c;for(G=0;G<this._physicalStart;G++,D++)if((c=y.call(this,G,D))!=null)return c}},
_computeVidx:function(y){return y>=this._physicalStart?this._virtualStart+(y-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+y},
_assignModels:function(y){this._iterateItems(function(W,c){var Z=this._physicalItems[W],G=this.items&&this.items[c];if(G!=null){var D=this.modelForElement(Z);D.__key__=null;this._forwardProperty(D,this.as,G);this._forwardProperty(D,this.selectedAs,this.$.selector.isSelected(G));this._forwardProperty(D,this.indexAs,c);this._forwardProperty(D,"tabIndex",this._focusedVirtualIndex===c?0:-1);this._physicalIndexForKey[D.__key__]=W;D._flushProperties&&D._flushProperties(!0);Z.removeAttribute("hidden")}else Z.setAttribute("hidden",
"")},y)},
_updateMetrics:function(y){_.ZN();var W=0,c=0,Z=this._physicalAverageCount,G=this._physicalAverage;this._iterateItems(function(D){c+=this._physicalSizes[D];this._physicalSizes[D]=this._physicalItems[D].offsetHeight;W+=this._physicalSizes[D];this._physicalAverageCount+=this._physicalSizes[D]?1:0},y);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(c=this._itemsPerRow===1?c:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+W-c,this._itemsPerRow=1);this._physicalAverageCount!==Z&&(this._physicalAverage=Math.round((G*Z+W)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var y=this._physicalTop;if(this.grid){var W=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(c,Z){var G=Math.floor(Z%this._itemsPerRow*this._itemWidth+W);this._isRTL&&(G*=-1);this.translate3d(G+"px",y+"px",0,this._physicalItems[c]);this._shouldRenderNextRow(Z)&&(y+=this._rowHeight)})}else this._iterateItems(function(c){this.translate3d(0,y+"px",0,this._physicalItems[c]);
y+=this._physicalSizes[c]})},
_getPhysicalSizeIncrement:function(y){return this.grid?this._computeVidx(y)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[y]},
_shouldRenderNextRow:function(y){return y%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var y=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(y!==0){this._physicalTop=this._physicalTop-y;var W=this._scrollPosition;!RVQ&&W>0&&this._resetScrollPosition(W-y)}},
_resetScrollPosition:function(y){this.scrollTarget&&y>=0&&(this._scrollPosition=this._scrollTop=y)},
_updateScrollerSize:function(y){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((y=(y=(y=y||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(y){return this.scrollToIndex(this.items.indexOf(y))},
scrollToIndex:function(y){if(!(typeof y!=="number"||y<0||y>this.items.length-1)&&(_.ZN(),this._physicalCount!==0)){y=this._clamp(y,0,this._virtualCount-1);if(!this._isIndexRendered(y)||y>=this._maxVirtualStart)this._virtualStart=this.grid?y-this._itemsPerRow*2:y-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var W=this._physicalStart,c=this._virtualStart,Z=0,G=this._hiddenContentSize;c<y&&
Z<=G;)Z+=this._getPhysicalSizeIncrement(W),W=(W+1)%this._physicalCount,c++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+Z);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)},_.mI)},
selectItem:function(y){return this.selectIndex(this.items.indexOf(y))},
selectIndex:function(y){if(!(y<0||y>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(y)){var W=this.modelForElement(this._physicalItems[this._getPhysicalIndex(y)]);W&&(W[this.selectedAs]=!0);this.updateSizeForIndex(y)}this.$.selector.selectIndex(y)}},
deselectItem:function(y){return this.deselectIndex(this.items.indexOf(y))},
deselectIndex:function(y){y<0||y>=this._virtualCount||(this._isIndexRendered(y)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(y)])[this.selectedAs]=!1,this.updateSizeForIndex(y)),this.$.selector.deselectIndex(y))},
toggleSelectionForItem:function(y){return this.toggleSelectionForIndex(this.items.indexOf(y))},
toggleSelectionForIndex:function(y){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(y):this.$.selector.isSelected(this.items[y]))?this.deselectIndex(y):this.selectIndex(y)},
clearSelection:function(){this._iterateItems(function(y){this.modelForElement(this._physicalItems[y])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(y){(y?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(y){var W=this.modelForElement(y.target);if(W){var c=_.UL(y).path[0];y=this._getActiveElement();var Z=this._physicalItems[this._getPhysicalIndex(W[this.indexAs])];if(c.localName!=="input"&&c.localName!=="button"&&c.localName!=="select"){c=W.tabIndex;W.tabIndex=-100;var G=y?y.tabIndex:-1;W.tabIndex=c;y&&Z!==y&&Z.contains(y)&&G!==-100||this.toggleSelectionForItem(W[this.as])}}},
_multiSelectionChanged:function(y){this.clearSelection();this.$.selector.multi=y},
updateSizeForItem:function(y){return this.updateSizeForIndex(this.items.indexOf(y))},
updateSizeForIndex:function(y){if(!this._isIndexRendered(y))return null;this._updateMetrics([this._getPhysicalIndex(y)]);this._positionItems();return null},
_manageFocus:function(){var y=this._focusedVirtualIndex;y>=0&&y<this._virtualCount?this._isIndexRendered(y)?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(y){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(y/this._itemsPerRow)*this._itemsPerRow:y},
_isIndexRendered:function(y){return y>=this._virtualStart&&y<=this._virtualEnd},
_isIndexVisible:function(y){return y>=this.firstVisibleIndex&&y<=this.lastVisibleIndex},
_getPhysicalIndex:function(y){return(this._physicalStart+(y-this._virtualStart))%this._physicalCount},
focusItem:function(y){this._focusPhysicalItem(y)},
_focusPhysicalItem:function(y){if(!(y<0||y>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(y)||this.scrollToIndex(y);var W=this._physicalItems[this._getPhysicalIndex(y)],c=this.modelForElement(W),Z;c.tabIndex=-100;W.tabIndex===-100&&(Z=W);Z||(Z=_.UL(W).querySelector('[tabindex="-100"]'));c.tabIndex=0;this._focusedVirtualIndex=y;Z&&Z.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 y=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var W=this.stamp(null);this._focusBackfillItem=W.root.querySelector("*");this._itemsParent.appendChild(W.root)}this._offscreenFocusedItem=this._physicalItems[y];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[y]=this._focusBackfillItem;this._focusedPhysicalIndex=y;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var y=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),W=this._physicalItems[y];if(W){var c=this.modelForElement(W),Z=this.modelForElement(this._offscreenFocusedItem);c[this.as]===Z[this.as]?(this._focusBackfillItem=W,c.tabIndex=-1,this._physicalItems[y]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(y){y=this.modelForElement(y.target);var W=this.modelForElement(this._focusedItem),c=this._offscreenFocusedItem!==null,Z=this._focusedVirtualIndex;y&&(W===y?this._isIndexVisible(Z)||this.scrollToIndex(Z):(this._restoreFocusedItem(),W&&(W.tabIndex=-1),y.tabIndex=0,this._focusedVirtualIndex=Z=y[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Z),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],c&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(y){switch(y.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&y.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&&y.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(y)}},
_clamp:function(y,W,c){return Math.min(c,Math.max(W,y))},
_debounce:function(y,W,c){this._debouncers=this._debouncers||{};this._debouncers[y]=_.kj(this._debouncers[y],c,W.bind(this));_.j0(this._debouncers[y])},
_forwardProperty:function(y,W,c){y._setPendingProperty(W,c)},
_forwardHostPropV2:function(y,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).forwardHostProp(y,W)},this)},
_notifyInstancePropV2:function(y,W,c){CL1(this.as,W)&&(y=y[this.indexAs],W==this.as&&(this.items[y]=c),this.notifyPath(G7(this.as,"items."+y,W),c))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(y,W,c){W.indexOf(this.as+".")===0&&this.notifyPath("items."+y.__key__+"."+W.slice(this.as.length+1),c)},
_forwardParentPath:function(y,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).notifyPath(y,W)},this)},
_forwardParentProp:function(y,W){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&(this.modelForElement(c)[y]=W)},this)},
_getActiveElement:function(){var y=this._itemsParent.node.domHost;return _.UL(y?y.root:document).activeElement},
_scrollTargetChanged:function(y,W){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(W)if(y==="document")this.scrollTarget=this._doc;else if(typeof y==="string"){var c,Z;this.scrollTarget=(W=(Z=(c=this.domHost)==null?void 0:c.polymerController)!=null?Z:this.domHost)&&W.$?W.$[y]:_.UL(this.ownerDocument).querySelector("#"+y)}else this._isValidScrollTarget()&&(this._oldScrollTarget=y,this._toggleScrollListener(this._shouldHaveListener,y))}});var ls8;var E38;var Nlm=function(y,W,c,Z){y-=c;W-=Z;return Math.sqrt(y*y+W*W)},Is2=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
gbI.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var R_t=function(y){y.maxRadius=0;y.mouseDownStart=0;y.mouseUpStart=0;y.xStart=0;y.yStart=0;y.xEnd=0;y.yEnd=0;y.containerMetrics=new gbI(y.element)};
lyF.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var y=Is2()-this.mouseDownStart;this.mouseUpStart&&(y-=this.mouseUpElapsed);return y},get mouseUpElapsed(){return this.mouseUpStart?Is2()-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 y=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(y*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-y/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 y=this.radius/(this.containerMetrics.size/2);var W=this.xNow-this.containerMetrics.width/2;var c=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+W+"px, "+c+"px)";this.waveContainer.style.transform="translate3d("+W+"px, "+c+"px, 0)";this.wave.style.webkitTransform="scale("+y+","+y+")";this.wave.style.transform="scale3d("+y+","+y+",1)"},
downAction:function(y){var W=this.containerMetrics.width/2,c=this.containerMetrics.height/2;R_t(this);this.mouseDownStart=Is2();this.center?(this.xStart=W,this.yStart=c):(this.xStart=y?y.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=y?y.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=W,this.yEnd=c);y=this.containerMetrics;W=this.xStart;c=this.yStart;this.maxRadius=Math.max(Nlm(W,c,0,0),Nlm(W,c,
y.width,0),Nlm(W,c,0,y.height),Nlm(W,c,y.width,y.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=Is2())},
remove:function(){_.UL(_.UL(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.mD({_template:function(){if(E38!==void 0)return E38;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;ls8===void 0&&(ls8=document.createElement("template"));var Z=ls8;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return E38=y},
is:"tp-yt-paper-ripple",behaviors:[_.uO],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(){_.UL(this).parentNode.nodeType==11?this.keyEventTarget=_.UL(this).getOwnerRoot().host:this.keyEventTarget=_.UL(this).parentNode;var y=this.keyEventTarget;this.listen(y,"up","uiUpAction");this.listen(y,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(y){y.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var y=0;y<this.ripples.length;++y)if(!this.ripples[y].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(y){this.noink||this.downAction(y)},
downAction:function(y){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(y),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(y){this.noink||this.upAction(y)},
upAction:function(y){this.holdDown||(this.ripples.forEach(function(W){W.upAction(y)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var y=0;y<this.ripples.length;++y){var W=this.ripples[y];W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var y=new lyF(this);_.UL(this.$.waves).appendChild(y.waveContainer);this.$.background.style.backgroundColor=y.color;this.ripples.push(y);this._setAnimating(!0);return y},
removeRipple:function(y){var W=this.ripples.indexOf(y);W<0||(this.ripples.splice(W,1),y.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var y;for(y=0;y<this.ripples.length;++y){var W=this.ripples[y];W.draw();this.$.background.style.opacity=W.outerOpacity;W.isOpacityFullyDecayed&&!W.isRestingAtMaxRadius&&this.removeRipple(W)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(y,W){W!==void 0&&(y?this.downAction():this.upAction())}});var hk={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(y){n7._downHandler.call(this,y);this.pressed&&this.ensureRipple(y)},
ensureRipple:function(y){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var W=this._rippleContainer||this.root;W&&_.UL(W).appendChild(this._ripple);if(y){W=_.UL(this._rippleContainer||this);var c=_.UL(y).rootTarget;W.deepContains(c)&&this._ripple.uiDownAction(y)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(y){this.hasRipple()&&(this._ripple.noink=y)}};var pUT={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 y=1;this.disabled?y=0:this.active||this.pressed?y=4:this.receivedFocusFromKeyboard&&(y=3);this._setElevation(y)},
_computeKeyboardClass:function(y){this.toggleClass("keyboard-focus",y)},
_spaceKeyDownHandler:function(y){n7._spaceKeyDownHandler.call(this,y);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(y){n7._spaceKeyUpHandler.call(this,y);this.hasRipple()&&this._ripple.uiUpAction()}},PTE=[hN8,
_.tk,hk,pUT];_.Jdi={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(y){y&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=y)},
_createRipple:function(){var y=hk._createRipple();y.id="ink";y.setAttribute("center","");y.classList.add("circle");return y}};
_.VoQ=[hN8,_.tk,hk,_.Jdi];_.CTZ=[_.VoQ,LlW,{_checkedChanged:function(){Hp5._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){hk._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var QTm;var AdV;var hVV=function(){};
_.f=hVV.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._buttonStateChanged=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._createRipple=function(){};
_.f._noinkChanged=function(){};
_.f._computeKeyboardClass=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
_.f._setElevation=function(){};
hVV=_.mD({_template:function(){if(AdV!==void 0)return AdV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;QTm===void 0&&(QTm=document.createElement("template"));var Z=QTm;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return AdV=y},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[PTE],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?pUT._calculateElevation.apply(this):this._setElevation(0)}});var Bl0;var HyV;var LH2={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(y){_.O("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(y)},
_onDialogClickWrapped:function(y){_.O("dialog_behavior_no_tap_killswitch")||this._onDialogClick(y)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(y,W){W&&(y?(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(y){this.closingReason=this.closingReason||{};this.closingReason.confirmed=y},
_onDialogClick:function(y){for(var W=_.UL(y).path,c=0,Z,G=W.indexOf((Z=this.hostElement)!=null?Z:this);c<G;c++)if(Z=W[c],Z.hasAttribute&&(Z.hasAttribute("dialog-dismiss")||Z.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Z.hasAttribute("dialog-confirm"));this.close();y.stopPropagation();break}}},v35=[_.Ak,
LH2];var da8=document.createElement("template");_.E(da8,'<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(da8.content);var S9i=document.createElement("template");_.E(S9i,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(S9i.content);_.mD({_template:function(){if(HyV!==void 0)return HyV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;Bl0===void 0&&(Bl0=document.createElement("template"));var Z=Bl0;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return HyV=y},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[v35,eN8],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 Tl5;var asJ;_.mD({_template:function(){if(asJ!==void 0)return asJ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;Tl5===void 0&&(Tl5=document.createElement("template"));var Z=Tl5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return asJ=y},
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 y,W,c;if(((y=window.ShadyDOM)==null?void 0:y.noPatch)!==!0&&((W=window.ShadyDOM)==null?void 0:W.noPatch)!=="on-demand"||((c=this.__shady_parentNode)==null?void 0:c.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(LH2)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var xa5=_.dl(['<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>']),iy3=_.dWE(xa5);iy3.setAttribute("style","display: none;");document.head.appendChild(iy3.content);var MoE;var eVV;var wUE;var q90;_.mD({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Ou],configure:function(y){var W=y.node,c=W.getBoundingClientRect().height;return this._effect=new KeyframeEffect(W,[{height:c/2+"px"},{height:c+"px"}],this.timingFromConfig(y))}});
_.mD({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Ou],configure:function(y){var W=y.node,c=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:c/2+"px"},{width:c+"px"}],this.timingFromConfig(y))}});
_.mD({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Ou],configure:function(y){var W=y.node,c=W.getBoundingClientRect().width;return this._effect=new KeyframeEffect(W,[{width:c+"px"},{width:c-c/20+"px"}],this.timingFromConfig(y))}});
_.mD({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Ou],configure:function(y){var W=y.node,c=W.getBoundingClientRect().height;this.setPrefixedProperty(W,"transformOrigin","0 0");return this._effect=new KeyframeEffect(W,[{height:c+"px",transform:"translateY(0)"},{height:c/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(y))}});var B_={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},kyV=function(){};
_.f=kyV.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._focusBlurHandler=function(){};
_.f._changedControlState=function(){};
_.f._setFocused=function(){};
kyV=_.mD({_template:function(){if(q90!==void 0)return q90;var y=document.createElement("template");_.E(y,'\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]]" 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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;wUE===void 0&&(wUE=document.createElement("template"));var Z=wUE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return q90=y},
is:"tp-yt-paper-menu-button",behaviors:[_.uO,_.tk],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:B_.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:B_.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:B_.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}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var y=_.UL(this.$.content).getDistributedNodes(),W=0,c=y.length;W<c;W++)if(y[W].nodeType===Node.ELEMENT_NODE)return y[W]},toggle:function(){this.opened?this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(y,W){y?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):W!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(y){_.tk._disabledChanged.apply(this,arguments);y&&this.opened&&this.close()},
__onIronOverlayCanceled:function(y){var W=this.$.trigger;_.UL(y.detail).path.indexOf(W)>-1&&y.preventDefault()}});
Object.keys(B_).forEach(function(y){kyV[y]=B_[y]});var jE8=_.XB.IronButtonState,yf8=(0,_.u_)(HTMLElement);
_.mD({_template:function(){if(eVV!==void 0)return eVV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;MoE===void 0&&(MoE=document.createElement("template"));var Z=MoE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return eVV=y},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[jE8,_.tk,hk,_.bO,_.Uu],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(y){var W=(0,_.my)(this);W.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:y});W.shadowRoot.appendChild(y);return yf8.prototype._attachDom.call(this,y)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var y=this.contentElement;y&&y.selectedItem&&this._setSelectedItem(y.selectedItem)},
get contentElement(){for(var y=_.UL(this.$.content).getDistributedNodes(),W=0,c=y.length;W<c;W++)if(y[W].nodeType===Node.ELEMENT_NODE)return y[W]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(y){this._setSelectedItem(y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y)===this&&this.open()},
_selectedItemChanged:function(y){var W="";y?W=y.label||y.getAttribute("label")||y.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(y,W){return W?W:y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var y=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",y)},
_computeLabelClass:function(y,W,c){var Z="label";if(y)c&&(Z+=" label-is-hidden");else if(c||W)Z+=" label-is-floating";return Z},
_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 W82;var cfV;_.mD({is:"tp-yt-paper-icon-button",_template:function(){if(cfV!==void 0)return cfV;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;W82===void 0&&(W82=document.createElement("template"));var Z=W82;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return cfV=y},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.VoQ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(y,W){var c=this.getAttribute("aria-label");c&&W!=c||this.setAttribute("aria-label",y)}});var ZiE;var G$T;_.H_=[hN8,_.tk,{hostAttributes:{role:"option",tabindex:"0"}}];_.mD({_template:function(){if(G$T!==void 0)return G$T;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;ZiE===void 0&&(ZiE=document.createElement("template"));var Z=ZiE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return G$T=y},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.H_]});var fqZ;var o6Z;var DrJ={attached:function(){this.fire("addon-attached")},
update:function(){}};var zJi=1,Y2Q=1,mrT=1,sEJ=[_.tk,_.uO,{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();!TA&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(y,W){y?y=y+" "+W:y=W;return y},
_onAddonAttached:function(y){y=_.UL(y).rootTarget;if(y.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,y.id);else{var W="paper-input-add-on-"+Y2Q++;y.id=W;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(y){_.tk._focusBlurHandler.call(this,y);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var y=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",y);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(y){try{var W=this.inputElement.selectionStart;this.value=y;this.inputElement.selectionStart=W;this.inputElement.selectionEnd=W}catch(c){this.value=y}},
_computeAlwaysFloatLabel:function(y,W){return W||y},
_updateAriaLabelledBy:function(){var y=_.UL(this.root).querySelector("label");if(y){if(y.id)var W=y.id;else W="paper-input-label-"+zJi++,y.id=W;this._ariaLabelledBy=W}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+mrT++)},
_onChange:function(y){this.shadowRoot&&this.fire(y.type,{sourceEvent:y},{node:this,bubbles:y.bubbles,cancelable:y.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var y=document.activeElement;y instanceof HTMLElement&&y!==document.body&&y!==document.documentElement||this._focusableElement.focus()}}}];var uYE;var t6V;_.mD({_template:function(){if(t6V!==void 0)return t6V;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;uYE===void 0&&(uYE=document.createElement("template"));var Z=uYE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return t6V=y},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[DrJ],properties:{_charCounterStr:{type:String,value:"0"}},update:function(y){if(y.inputElement){y.value=y.value||"";var W=y.value.toString().length.toString();y.inputElement.hasAttribute("maxlength")&&(W+="/"+y.inputElement.getAttribute("maxlength"));this._charCounterStr=W}}});var n6m;var XN5;_.mD({_template:function(){if(XN5!==void 0)return XN5;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;n6m===void 0&&(n6m=document.createElement("template"));var Z=n6m;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return XN5=y},
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 jN(this.attrForValue)},get _inputElement(){return _.UL(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(y){this._addons||(this._addons=[]);y=y.target;this._addons.indexOf(y)===-1&&(this._addons.push(y),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(y){this._handleValueAndAutoValidate(y.target)},
_onValueChanged:function(y){var W=y.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,W.value===void 0||W.value===""))return;this._handleValueAndAutoValidate(y.target)},
_handleValue:function(y){var W=this._inputElementValue;W||W===0||y.type==="number"&&!y.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:y,value:W,invalid:this.invalid})},
_handleValueAndAutoValidate:function(y){this.autoValidate&&y&&(this.invalid=!(y.validate?y.validate(this._inputElementValue):y.checkValidity()));this._handleValue(y)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(y){if(this._addons)for(var W,c=0;W=this._addons[c];c++)W.update(y)},
_computeInputContentClass:function(y,W,c,Z,G){var D="input-content";y?(G&&(D+=" label-is-hidden"),Z&&!this.noUnfloatedLabelError&&(D+=" is-invalid")):(y=this.querySelector("label"),W||G?(D+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Z?D+=" is-invalid":c&&(D+=" label-is-highlighted")):(y&&(this.$.labelAndInputContainer.style.position="relative"),Z&&!this.noUnfloatedLabelError&&(D+=" is-invalid")));c&&(D+=" focused");return D},
_computeUnderlineClass:function(y,W){var c="underline";W?c+=" is-invalid":y&&(c+=" is-highlighted");return c},
_computeAddOnContentClass:function(y,W){var c="add-on-content";W?c+=" is-invalid":y&&(c+=" is-highlighted");return c}});var biV;var rfE;_.mD({_template:function(){if(rfE!==void 0)return rfE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;biV===void 0&&(biV=document.createElement("template"));var Z=biV;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return rfE=y},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[DrJ],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(y){this._setInvalid(y.invalid)}});_.mD({is:"tp-yt-paper-input",_template:function(){if(o6Z!==void 0)return o6Z;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;fqZ===void 0&&(fqZ=document.createElement("template"));var Z=fqZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return o6Z=y},
behaviors:[sEJ,_.bO],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 F8V;var UrZ;_.mD({_template:function(){if(UrZ!==void 0)return UrZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=
y.content,c=W.insertBefore;F8V===void 0&&(F8V=document.createElement("template"));var Z=F8V;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return UrZ=y},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.H_]});var $rE;var K8Z;_.mD({_template:function(){if(K8Z!==void 0)return K8Z;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;$rE===void 0&&($rE=document.createElement("template"));var Z=$rE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return K8Z=y},
is:"tp-yt-paper-item-body"});var OiE;var g6V;var RJV=function(){};
_.f=RJV.prototype;_.f.indexOf=function(){};
_.f.selectPrevious=function(){};
_.f.selectNext=function(){};
_.f.selectIndex=function(){};
_.f.forceSynchronousItemUpdate=function(){};
_.f._checkFallback=function(){};
_.f._addListener=function(){};
_.f._removeListener=function(){};
_.f._activateEventChanged=function(){};
_.f._updateItems=function(){};
_.f._selectSelected=function(){};
_.f._filterItem=function(){};
_.f._valueToItem=function(){};
_.f._valueToIndex=function(){};
_.f._indexToValue=function(){};
_.f._valueForItem=function(){};
_.f._observeItems=function(){};
_.f._itemActivate=function(){};
_.f.multiChanged=function(){};
_.f._updateAttrForSelected=function(){};
_.f._updateSelected=function(){};
_.f._selectMulti=function(){};
_.f._selectionChange=function(){};
_.f._toggleSelected=function(){};
_.f._valuesToItems=function(){};
_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f.select=function(){};
_.f._resetTabindices=function(){};
_.f._updateMultiselectable=function(){};
_.f._focusWithKeyboardEvent=function(){};
_.f._clearSearchText=function(){};
_.f._focusPrevious=function(){};
_.f._focusNext=function(){};
_.f._applySelection=function(){};
_.f._focusedItemChanged=function(){};
_.f._onIronItemsChanged=function(){};
_.f._onShiftTabDown=function(){};
_.f._onFocus=function(){};
_.f._onUpKey=function(){};
_.f._onDownKey=function(){};
_.f._onEscKey=function(){};
_.f._onKeydown=function(){};
_.f._activateHandler=function(){};
_.f._disabledChanged=function(){};
_.f._setSelectedItem=function(){};
_.f._setItems=function(){};
_.f._setSelectedItems=function(){};
_.f._setFocusedItem=function(){};
RJV=_.mD({_template:function(){if(g6V!==void 0)return g6V;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;OiE===void 0&&(OiE=document.createElement("template"));var Z=OiE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return g6V=y},
is:"tp-yt-paper-listbox",behaviors:[TiW],hostAttributes:{role:"listbox"}});var lq8;var E65;var N5V={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(y,W){return[y||W?"active":"",W?"cooldown":""].join(" ")},
__activeChanged:function(y,W){this.__setAriaHidden(!y);this.__coolingDown=!y&&W},
__altChanged:function(y){this.setAttribute("aria-label",y||"loading")},
__setAriaHidden:function(y){y?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.mD({_template:function(){if(E65!==void 0)return E65;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;lq8===void 0&&(lq8=document.createElement("template"));var Z=lq8;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return E65=y},
is:"tp-yt-paper-spinner",behaviors:[N5V]});var IqT;var pN8;_.mD({_template:function(){if(pN8!==void 0)return pN8;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;IqT===void 0&&(IqT=document.createElement("template"));var Z=IqT;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return pN8=y},
is:"tp-yt-paper-spinner-lite",behaviors:[N5V]});var PmV;var Jfi;_.mD({_template:function(){if(Jfi!==void 0)return Jfi;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;PmV===void 0&&(PmV=document.createElement("template"));var Z=PmV;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return Jfi=y},
is:"tp-yt-paper-tab",behaviors:[_.tk,_.XB.IronButtonState,hk],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 y=_.UL(this).parentNode;return!!y&&!!y.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(y){if(this.link){var W=this.queryEffectiveChildren("a");W&&y.target!==W&&W.click()}}});var V62;var Cm3;var QEZ=_.dl(['<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>']),AfQ=_.dWE(QEZ);document.head.appendChild(AfQ.content);_.mD({_template:function(){if(Cm3!==void 0)return Cm3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;V62===void 0&&(V62=document.createElement("template"));var Z=V62;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return Cm3=y},
is:"tp-yt-paper-tabs",behaviors:[_.K7,_.x8T],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(y){_.UL(this).querySelectorAll("tp-yt-paper-tab").forEach(y?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(y){y.setAttribute("noink","")},
_removeNoinkAttribute:function(y){y.removeAttribute("noink")},
_computeScrollButtonClass:function(y,W,c,Z){return!W||c?"hidden":y?Z?"hidden":"not-visible":""},
_computeTabsContentClass:function(y,W){var c="tabs-content";y&&(c+=" scrollable");if(!y||W)c+=" fit-container";return c},
_computeSelectionBarClass:function(y,W){var c="selection-bar";y?c+=" hidden":W&&(c+=" align-bottom");return c},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(y){return""+y},
_onIronSelect:function(y){this._tabChanged(y.detail.item,this._previousTab);this._previousTab=y.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();_.$H._activateHandler.apply(this,arguments)},
_scheduleActivation:function(y,W){this._pendingActivationItem=y;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,W)},
_delayedActivationHandler:function(){var y=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;y.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(y){y.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(y,W){this.scrollable&&this._affectScroll(W&&-W.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(y){this.$.tabsContainer.scrollLeft+=y;y=this.$.tabsContainer.scrollLeft;this._leftHidden=y===0||this.hideScrollButtons;this._rightHidden=y===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(y,W){if(y){var c=this.$.tabsContent.getBoundingClientRect(),Z=c.width,G=y.getBoundingClientRect();c=G.left-c.left;this._pos={width:this._calcPercent(G.width,Z),left:this._calcPercent(c,Z)};if(this.noSlide||W==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var D=W.getBoundingClientRect();W=this.items.indexOf(W);y=this.items.indexOf(y);this.$.selectionBar.classList.add("expand");
y=W<y;this._isRTL&&(y=!y);y?this._positionBar(this._calcPercent(G.left+G.width-D.left,Z)-5,this._left):this._positionBar(this._calcPercent(D.left+D.width-G.left,Z)-5,this._calcPercent(c,Z)+5);this.scrollable&&this._scrollToSelectedIfNeeded(G.width,c)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(y,W){W-=this.$.tabsContainer.scrollLeft;W<0?this.$.tabsContainer.scrollLeft+=W:(W+=y-this.$.tabsContainer.offsetWidth,W>0&&(this.$.tabsContainer.scrollLeft+=W))},
_calcPercent:function(y,W){return 100*y/W},
_positionBar:function(y,W){y=y||0;W=W||0;this._width=y;this._left=W;this.transform("translateX("+W+"%) scaleX("+y/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var y=this.$.selectionBar.classList;y.contains("expand")?(y.remove("expand"),y.add("contract"),this._positionBar(this._pos.width,this._pos.left)):y.contains("contract")&&y.remove("contract")}});var hJ8;var B5Q;_.mD({_template:function(){if(B5Q!==void 0)return B5Q;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;hJ8===void 0&&(hJ8=document.createElement("template"));var Z=hJ8;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return B5Q=y},
is:"tp-yt-paper-textarea",behaviors:[sEJ,_.bO],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(y){this.$.input.textarea.selectionStart=y},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(y){this.$.input.textarea.selectionEnd=y},_ariaLabelledByChanged:function(y){this._focusableElement.setAttribute("aria-labelledby",y)},
_ariaDescribedByChanged:function(y){this._focusableElement.setAttribute("aria-describedby",y)},
get _focusableElement(){return this.inputElement.textarea}});var HiZ;var L8W;/*

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 v6Q=function(){};
_.f=v6Q.prototype;_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._focusedChanged=function(){};
_.f.registered=function(){};
_.f._invalidChanged=function(){};
_.f.hasValidator=function(){};
_.f.validate=function(){};
_.f._getValidity=function(){};
_.f._requiredChanged=function(){};
_.f._valueChanged=function(){};
_.f._checkedChanged=function(){};
_.f._buttonStateChanged=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
v6Q=_.mD({is:"tp-yt-paper-toggle-button",_template:function(){if(L8W!==void 0)return L8W;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;HiZ===void 0&&(HiZ=document.createElement("template"));var Z=HiZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return L8W=y},
behaviors:[_.CTZ],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");_.Lv(this,function(){_.RN(this,"pan-y")})},
_ontrack:function(y){y=y.detail;y.state==="start"?this._trackStart(y):y.state==="track"?this._trackMove(y):y.state==="end"&&this._trackEnd(y)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(y){y=y.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+y:y)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+y:y));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 y=hk._createRipple();y.id="ink";y.setAttribute("recenters","");y.classList.add("circle","toggle-ink");return y}});var drE;var S2i;_.mD({_template:function(){if(S2i!==void 0)return S2i;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;drE===void 0&&(drE=document.createElement("template"));var Z=drE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return S2i=y},
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 y=_.UL(this).parentNode,W=_.UL(this).getOwnerRoot(),c;this.for?c=_.UL(W).querySelector("#"+this.for):c=y.nodeType==Node.DOCUMENT_FRAGMENT_NODE?W.host:y;return c},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(y){y==="entry"?this.show():y==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.UL(this).textContent.trim()===""){for(var y=!0,W=_.UL(this).getEffectiveChildNodes(),c=0;c<W.length;c++)if(W[c].textContent.trim()!==""){y=!1;break}if(y)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 y=this.offset;this.marginTop!=14&&this.offset==14&&(y=this.marginTop);var W=this.offsetParent.getBoundingClientRect(),c=this._target.getBoundingClientRect(),Z=this.getBoundingClientRect(),G=(c.width-Z.width)/2,D=(c.height-Z.height)/2,Y=c.left-W.left,u=c.top-W.top;switch(this.position){case "top":var t=Y+G;var b=u-Z.height-y;break;case "bottom":t=Y+G;b=u+c.height+y;break;case "left":t=Y-Z.width-y;b=u+D;break;case "right":t=Y+c.width+
y,b=u+D}this.fitToVisibleBounds?(W.left+t+Z.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,t)+"px",this.style.right="auto"),W.top+b+Z.height>window.innerHeight?(this.style.bottom=W.height+"px",this.style.top="auto"):(this.style.top=Math.max(-W.top,b)+"px",this.style.bottom="auto")):(this.style.left=t+"px",this.style.top=b+"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(y){y!==500&&this.updateStyles({"--paper-tooltip-delay-in":y+"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(y){if(y==="entry"&&this.animationEntry!=="")return this.animationEntry;if(y==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[y]&&typeof this.animationConfig[y][0].name==="string"){if(this.animationConfig[y][0].timing&&this.animationConfig[y][0].timing.delay&&this.animationConfig[y][0].timing.delay!==0){var W=this.animationConfig[y][0].timing.delay;y==="entry"?this.updateStyles({"--paper-tooltip-delay-in":W+"ms"}):y==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":W+
"ms"})}return this.animationConfig[y][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 T5T=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(T5T,_.eD);var aqW=_.o$(T5T,[0,_.S6]);var L7=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(L7,_.eD);var xr8=[3,4],iiE=[5,6];var M6V=[0,xr8,iiE,_.fGQ,-1,_.d5,_.oiE,-1,WE3,cHT];var eJm=_.o$(L7,M6V),wNW=_.D3(M6V);var q2V=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(q2V,_.eD);var k$i=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(k$i,_.eD);var j_V=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(j_V,_.eD);var yPT=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(yPT,_.eD);var We0=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(We0,_.eD);var v_=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(v_,_.eD);v_.prototype.getSource=function(){return _.lm(this,1)};
v_.prototype.getMessage=function(){return _.RE(this,4)};
v_.prototype.getData=function(){return _.il(this,We0,8)};var cPi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(cPi,_.eD);var dt=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(dt,_.eD);var Se=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Se,_.eD);var Tk=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Tk,_.eD);Tk.prototype.getUrl=function(){return _.RE(this,1)};
Tk.prototype.setUrl=function(y){return _.Ub(this,1,y)};
Tk.prototype.hasUrl=function(){return _.t9(_.um(this,1))!=null};var Zd2=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Zd2,_.eD);var GuJ=[3];var fiE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(fiE,_.eD);var aY=function(y){var W=new fiE;return _.MC(W,2,y)};
fiE.prototype.getLanguage=function(){return Nr(this,4,xH)};
var o_m=function(y){var W=aY(1);return _.tn(W,6,xH,y)},xH=[3,
4,5,6];var DLi=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(DLi,_.eD);var iO=function(y){var W=new DLi;return _.MC(W,1,y)},ME=function(y,W){return _.tn(y,2,zs0,W)},zs0=[2,
3,4,5];var Yf5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Yf5,_.eD);var ee=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ee,_.eD);var mLW=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(mLW,_.eD);var s_W=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(s_W,_.eD);var uwE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(uwE,_.eD);var t2m=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(t2m,_.eD);var wt=function(y){return _.il(y,Se,5)};var n_T=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(n_T,_.eD);n_T.prototype.getValue=function(){return O2(this,1)};var XM5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(XM5,_.eD);var qE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(qE,_.eD);qE.prototype.getMetadata=function(){return _.IE(this,s_W,7,kH)};
qE.prototype.hasMetadata=function(){return _.ni(this,s_W,7,kH)};
var bdT=_.l3F(qE),kH=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var jx=function(y){this.JSC$9771_name_=y;this.files_=[];this.directories_=[];this.directoryMap_={}};
jx.prototype.getName=function(){return this.JSC$9771_name_};var Wv=function(y,W){this.callback_=W;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new jx("");rPm(this,y,this.rootDirectory_);yz(this)},rPm=function(y,W,c){for(var Z=0;Z<W.length;Z++){var G=W[Z];
G.isFile?(y.fileOps_++,G.file((0,_.$r)(y.handleFileSuccess_,y,c),(0,_.$r)(y.handleFileError_,y))):y.unscannedDirectories_.push(new FeE(G,c))}},yz=function(y){if(y.unscannedDirectories_.length>0&&y.directoryOps_<5&&!y.hasError_){y.directoryOps_++;
var W=y.unscannedDirectories_.shift(),c=W.entry,Z=new jx(c.name);W=W.parent;W.directoryMap_[Z.getName()]=Z;W.directories_.push(Z);c=c.createReader();c.readEntries((0,_.$r)(y.handleDirectorySuccess_,y,c,Z),(0,_.$r)(y.handleDirectoryError_,y))}y.directoryOps_!=0||y.fileOps_!=0||y.unscannedDirectories_.length!=0&&!y.hasError_||y.callback_(y.rootDirectory_.files_,y.rootDirectory_.directories_,y.hasError_)};
Wv.prototype.handleDirectorySuccess_=function(y,W,c){rPm(this,c,W);c.length==0?(this.directoryOps_--,yz(this)):y.readEntries((0,_.$r)(this.handleDirectorySuccess_,this,y,W),(0,_.$r)(this.handleDirectoryError_,this))};
Wv.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;yz(this)};
Wv.prototype.handleFileSuccess_=function(y,W){y.files_.push(W);this.fileOps_--;yz(this)};
Wv.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;yz(this)};
var FeE=function(y,W){this.entry=y;this.parent=W};var cv=function(y){_.uU.call(this);_.Y0(y,"drop",this.onObjectsDropped_,!1,this);_.Y0(y,"dragenter",this.onFilesDragged_,!1,this);_.Y0(y,"dragover",this.onFilesDragged_,!1,this);_.Y0(y,"dragleave",this.onDragLeave_,!1,this);_.Y0(y,"dragend",this.onDragLeave_,!1,this)};
_.j6(cv,_.uU);var ULW=function(y,W){_.D9.call(this,"f");this.files=y;this.directories=W};
_.j6(ULW,_.D9);var $LV=function(){_.D9.call(this,"h")};
_.j6($LV,_.D9);var KeV=function(){_.D9.call(this,"i")};
_.j6(KeV,_.D9);var Od0=function(){_.D9.call(this,"g")};
_.j6(Od0,_.D9);cv.prototype.onObjectsDropped_=function(y){var W=this;y.preventDefault();var c=y.event_.dataTransfer;if((y=c&&c.items)&&y.length>0&&y[0].webkitGetAsEntry){c=[];for(var Z=[],G=0;G<y.length;G++){var D=y[G].webkitGetAsEntry();D?c.push(D):Z.push(y[G])}new Wv(c,function(Y,u,t){t?W.dispatchEvent(new Od0("Error occurred while reading from the file system.")):W.dispatchEvent(new ULW(Y,u,Z))})}else(y=c&&c.files)&&this.dispatchEvent(new ULW(Array.from(y),[]))};
cv.prototype.onFilesDragged_=function(y){y.type==="dragenter"&&this.dispatchEvent(new $LV);y.preventDefault()};
cv.prototype.onDragLeave_=function(){this.dispatchEvent(new KeV)};var g_m=function(y,W){this.JSC$9794_name_=y;this.inputElement_=W};
g_m.prototype.getName=function(){return this.JSC$9794_name_};
g_m.prototype.getInputElement=function(){return this.inputElement_};var Zu=function(y,W,c){W=W===void 0?"single_file":W;c=c===void 0?[]:c;_.uU.call(this);this.overlayTarget_=y;this.parentOverlay_=y!=null?y.parentNode:_.uC("scotty-overlay-parent");this.selectorType_=W;this.acceptTypes_=c;this.overlay_=RsE(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.R(Zu,_.uU);
var RsE=function(y,W,c,Z){var G=document.createElement("input");G.setAttribute("type","file");G.setAttribute("name","Filedata");_.Y0(G,"change",y.onFilesSelected_,!1,y);c==="multiple_file"&&(G.multiple="true");c==="single_directory"&&(G.webkitdirectory="true");Z.length>0&&G.setAttribute("accept",Z.join(","));G.style.position="absolute";G.style.overflow="hidden";G.style.height="0px";G.style.width="0px";G.style.opacity="0";G.setAttribute("aria-hidden","true");G.setAttribute("tabIndex",-1);if(y.overlayTarget_!=
null)return G.style.height=W.offsetHeight+"px",G.style.width=W.offsetWidth+"px",y.parentOverlay_&&(y.parentOverlay_.style.position="relative"),_.I_(G,W),Qy(G,new _.If(W.offsetLeft,W.offsetTop)),G;y.parentOverlay_.appendChild(G);return G};
Zu.prototype.click=function(){this.overlay_.click()};
Zu.prototype.onFilesSelected_=function(y){a:{try{var W=(new XMLHttpRequest).upload!==void 0;break a}catch(b){}W=!1}if(W){var c;y=Array.from((c=y.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(_.oE||_.B7||_.fi)){c=new jx("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(W=0;W<y.length;W++)for(var Z=y[W],G=Z.webkitRelativePath.split("/"),D=c,Y=0;Y<G.length;Y++){var u=G[Y];if(Y==G.length-1){u!="."&&D.files_.push(Z);break}var t=D.directoryMap_[u];t==void 0&&(u=
t=new jx(u),D.directoryMap_[u.getName()]=u,D.directories_.push(u));D=t}c=c.directories_}this.dispatchEvent(new liJ(y,c,null))}else y=y.target.value,y.match(/^c:\\fakepath\\/i)&&(y=y.substring(12)),this.dispatchEvent(new liJ([],[],new g_m(y,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=RsE(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var liJ=function(y,W){_.D9.call(this,"j");this.files=y;this.directories=W};
_.R(liJ,_.D9);var E_V=function(y){this.uploadUrl_=y};var NT8=function(){_.uU.call(this)};
_.j6(NT8,_.uU);var GS=function(y){_.D9.call(this,y)};
_.j6(GS,_.D9);var fF=function(y){_.D9.call(this,y)};
_.j6(fF,_.D9);var Iii=function(y,W,c,Z,G){_.uU.call(this);c=document.createElement("form");c.setAttribute("method",W);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");W=document.createElement("input");W.setAttribute("type","hidden");W.setAttribute("name","metadata");W.setAttribute("value",G);c.appendChild(W);c.appendChild(Z);this.JSC$9811_form_=c;y=new _.Tr(y);_.Hk(y,"upload_protocol","multipart");this.JSC$9811_url_=y.toString();this.JSC$9811_request_=new aX;this.state_=
"Ready";this.JSC$9811_errorDescription_=null;this.JSC$9811_eventHandler_=new _.q4(this);_.zY(this,this.JSC$9811_eventHandler_);this.JSC$9811_eventHandler_.listen(this.JSC$9811_request_,"success",this.onTransferSuccess_);this.JSC$9811_eventHandler_.listen(this.JSC$9811_request_,"error",this.onTransferError_)};
_.R(Iii,NT8);_.f=Iii.prototype;_.f.run=function(){this.state_="Transferring";var y=this.JSC$9811_request_,W=this.JSC$9811_form_;if(y.JSC$9235_active_)throw Error("oe");var c=new _.Tr(this.JSC$9811_url_||W.action);y.JSC$9235_form_=W;W=y.JSC$9235_form_;c=_.An(c.toString());c!==void 0&&(W.action=c);ZxT(y)};
_.f.getResponseCode=function(){return null};
_.f.getResponseText=function(){return this.JSC$9811_request_&&this.JSC$9811_request_.getResponseText()||null};
_.f.JSC$25584_getErrorDescription=function(){return this.JSC$9811_errorDescription_};
_.f.cancel=function(){this.JSC$9811_request_&&this.JSC$9811_request_.abort();this.state_="Cancelled";this.dispatchEvent(new GS("o"))};
_.f.pause=function(){};
_.f.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new GS("l"))};
_.f.onTransferError_=function(){this.JSC$9811_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new GS("n"))};var oU=function(){_.$p.call(this)};
_.R(oU,_.$p);oU.prototype.createXhr=function(){var y=_.$p.prototype.createXhr.call(this);y.upload&&(y.upload.onprogress=(0,_.$r)(this.onProgress_,this));return y};
oU.prototype.onProgress_=function(y){this.dispatchEvent(y)};var pME=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},JPE=function(y,W){var c=y.attempt_+1;
if(y.maxAttempts_>0&&c>y.maxAttempts_)return!1;c==0?W():y.delayCallId_=ra(function(){y.delayCallId_=null;W()},P5E(y),y);
y.attempt_=c;return!0};
pME.prototype.reset=function(){this.delayCallId_&&_.DH.clearTimeout(this.delayCallId_);this.attempt_=-1};
var P5E=function(y){var W=250*Math.pow(2,y.attempt_);y.maxDelayMs_>=0&&(W=Math.min(W,y.maxDelayMs_));return W};var NqI=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Du=function(){_.uU.call(this);this.JSC$9821_request_=this.state_=null;this.JSC$9821_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9821_bytesTransferred_=0;this.retryIterator_=new pME;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9821_errorDescription_=null;this.JSC$9821_eventHandler_=new _.q4(this);_.zY(this,this.JSC$9821_eventHandler_);this.JSC$9821_url_=this.blob_=null;this.JSC$9821_method_=void 0;this.chunkSize_=this.JSC$9821_metadata_=
this.JSC$9821_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9821_responseText_=this.JSC$9821_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.j6(Du,NT8);_.f=Du.prototype;_.f.run=function(){zS(this)};
_.f.getResponseCode=function(){return this.JSC$9821_responseCode_};
_.f.getResponseText=function(){return this.JSC$9821_responseText_};
_.f.JSC$25584_getErrorDescription=function(){return this.JSC$9821_errorDescription_};
_.f.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9821_eventHandler_.removeAll();this.JSC$9821_request_&&this.JSC$9821_request_.abort();this.retryIterator_.reset();var y=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(y==="Upload"||y==="Query")y=new oU,y.JSC$7661_withCredentials_=this.JSC$9821_withCredentials_,y.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9821_bytesTransferred_=
0;this.dispatchEvent(new GS("o"))}};
_.f.pause=function(){this.pauseRequested_=!0};
var zS=function(y){var W=y.state_;y.pauseRequested_?(y.pauseRequested_=!1,y.stateAfterUnpausing_=W,y.state_="Paused"):JPE(y.retryIterator_,function(){switch(y.state_){case "Start":y.JSC$9821_request_=new oU;var c=_.Eb.clone(y.JSC$9821_headers_);y.blob_.size!=null&&(c["Content-Length"]=y.blob_.size);c=IyD(c);c["X-Goog-Upload-Protocol"]="resumable";c["X-Goog-Upload-Command"]="start";y.JSC$9821_eventHandler_.removeAll();y.JSC$9821_eventHandler_.listen(y.JSC$9821_request_,"complete",y.onStartComplete_);
y.JSC$9821_request_.JSC$7661_withCredentials_=y.JSC$9821_withCredentials_;y.JSC$9821_request_.send(y.JSC$9821_url_,y.JSC$9821_method_,y.JSC$9821_metadata_,c);y.lastCommandResponseCode_=null;y.dispatchEvent(new fF("q"));break;case "Upload":c=y.transferHandle_.uploadUrl_;var Z=y.blob_.size;if(wOJ()){var G=y.chunkSize_;var D=y.offset_+G>=Z;Z=eXJ(y.blob_,y.offset_,D?Z:y.offset_+G)}else y.offset_=0,Z=y.blob_,D=!0;y.JSC$9821_request_=new oU;y.JSC$9821_request_.JSC$7661_withCredentials_=y.JSC$9821_withCredentials_;
y.JSC$9821_eventHandler_.removeAll();y.JSC$9821_eventHandler_.listen(y.JSC$9821_request_,"progress",y.onUploadProgress_);G=(0,_.$r)(y.JSC$9823_onUploadComplete_,y,y.offset_+Z.size,D);y.JSC$9821_eventHandler_.listen(y.JSC$9821_request_,"complete",G);y.lastCommandResponseCode_=null;y.dispatchEvent(new fF("q"));D=Object.assign({},y.JSC$9821_headers_||{},{"X-Goog-Upload-Command":"upload"+(D?", finalize":""),"X-Goog-Upload-Offset":y.offset_});y.JSC$9821_request_.send(c,"POST",Z,D);break;case "Query":y.JSC$9821_request_=
new oU;y.JSC$9821_eventHandler_.removeAll();y.JSC$9821_eventHandler_.listen(y.JSC$9821_request_,"complete",y.onQueryComplete_);c=Object.assign({},y.JSC$9821_headers_||{},{"X-Goog-Upload-Command":"query"});y.JSC$9821_request_.send(y.transferHandle_.uploadUrl_,"POST","",c);y.lastCommandResponseCode_=null;y.dispatchEvent(new fF("q"));break;default:throw Error("df");}})||YI(y,"Transfer encountered too many consecutive failures.")},YI=function(y,W){y.state_="Error";
y.JSC$9821_errorDescription_=W;y.dispatchEvent(new GS("n"))};
Du.prototype.onStartComplete_=function(y){var W=y.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new fF("r"));if(V2E(W))C52(this,W);else if(Q_0(W)){y=SZ(y.target.getAllResponseHeaders());for(var c in y)_.mE(c.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new GS("m"));c=KO(y,"X-Goog-Upload-URL");y=(y=KO(y,"X-Goog-Upload-Chunk-Granularity"))?parseInt(y,10):1;c===void 0||isNaN(y)||y<=0?YI(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
y)*y,this.transferHandle_=new E_V(c),this.dispatchEvent(new GS("p")),this.state_="Upload",this.retryIterator_.reset(),zS(this))}else zS(this)};
Du.prototype.onUploadProgress_=function(y){this.JSC$9821_bytesTransferred_=this.offset_+y.loaded;this.dispatchEvent(new GS("k"))};
Du.prototype.JSC$9823_onUploadComplete_=function(y,W,c){var Z=this,G,D;return _.m(function(Y){switch(Y.nextAddress){case 1:G=c.target;Z.lastCommandResponseCode_=G.getStatus();Z.dispatchEvent(new fF("r"));if(APW(G)||G.getStatus()==404)return Z.JSC$9821_bytesTransferred_=y,C52(Z,G),Y.return();if(Q_0(G)){Y.jumpTo(2);break}if(!(D=Z.detectCorruptedBlobEnabled_)){Y.jumpTo(3);break}return _.n(Y,hsZ(Z),4);case 4:D=Y.yieldResult;case 3:if(D)return YI(Z,"Blob has been modified or corrupted."),Y.return();Z.requireUploadRequestModification_=
G.getStatus()==400;Z.state_="Query";zS(Z);return Y.return();case 2:if(W)return YI(Z,"Got a non-final success response after issuing a finalize command."),Y.return();Z.JSC$9821_bytesTransferred_=y;Z.offset_=y;Z.retryIterator_.reset();zS(Z);return Y.return()}})};
Du.prototype.onQueryComplete_=function(y){var W=y.target;this.lastCommandResponseCode_=W.getStatus();this.dispatchEvent(new fF("r"));V2E(W)?(W.getStatus()===200&&(this.JSC$9821_bytesTransferred_=this.blob_.size),C52(this,W)):Q_0(W)?(y=SZ(y.target.getAllResponseHeaders()),y=parseInt(KO(y,"X-Goog-Upload-Size-Received"),10),isNaN(y)?YI(this,"Server did not respond with current offset."):y<this.offset_?YI(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
y+"."):this.requireUploadRequestModification_&&this.offset_===y?YI(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<y&&this.retryIterator_.reset(),this.offset_=this.JSC$9821_bytesTransferred_=y,this.state_="Upload",zS(this))):zS(this)};
var C52=function(y,W){y.JSC$9821_responseCode_=W.getStatus();var c=SZ(W.getAllResponseHeaders());pgI(c);y.JSC$9821_responseText_=W.getResponseText();y.state_="Response received";y.dispatchEvent(new GS("l"))},Q_0=function(y){var W=y.getStatus();
y=SZ(y.getAllResponseHeaders());y=KO(y,"X-Goog-Upload-Status");return W===200&&y==="active"},APW=function(y){y=SZ(y.getAllResponseHeaders());
return KO(y,"X-Goog-Upload-Status")==="final"},V2E=function(y){if(APW(y))return!0;
y=y.getStatus();return y>=400&&y<500},hsZ=function(y){var W;
return _.m(function(c){if(c.nextAddress==1){if(!y.blob_||y.originalBlobSize_<=0)return c.return(!1);if(y.blob_.size!==y.originalBlobSize_)return c.return(!0);_.tm(c,2);if(W=eXJ(y.blob_,0,1)){var Z=new IX,G=UMZ(Z);Z.reader_.readAsBinaryString(W);c=_.n(c,G,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(y.blob_.size!==y.originalBlobSize_);_.rs(c);return c.return(!0)})};var BT8=function(y,W,c,Z,G,D){_.uU.call(this);this.payload_=Z;this.JSC$9824_url_=y;this.JSC$9824_method_=W;this.JSC$9824_headers_=c;this.JSC$9824_metadata_=G;this.encoding_=D||"binary";y=new _.nG;this.boundary_="uploader-"+Ao()+"-"+y.JSC$9084_toIsoString();this.JSC$9824_responseText_=this.JSC$9824_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9824_errorDescription_=null;this.JSC$9824_eventHandler_=new _.q4(this);_.zY(this,this.JSC$9824_eventHandler_)};
_.R(BT8,NT8);_.f=BT8.prototype;
_.f.run=function(){var y=_.Eb.clone(this.JSC$9824_headers_);this.payload_.length!=null&&(y["Content-Length"]=this.payload_.length);y=IyD(y);y["X-Goog-Upload-Protocol"]="multipart";y["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new oU;this.JSC$9824_eventHandler_.removeAll();this.JSC$9824_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9824_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9824_url_,this.JSC$9824_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9824_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",y)};
_.f.getResponseCode=function(){return this.JSC$9824_responseCode_};
_.f.getResponseText=function(){return this.JSC$9824_responseText_};
_.f.JSC$25584_getErrorDescription=function(){return this.JSC$9824_errorDescription_};
_.f.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9824_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new GS("o")))};
_.f.pause=function(){};
_.f.onTransferProgress_=function(){this.dispatchEvent(new GS("k"))};
_.f.onTransferComplete_=function(y){var W=y.target.getStatus();W===void 0||W===-1?(this.JSC$9824_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new GS("n"))):(this.JSC$9824_responseCode_=W,y=y.target,W=SZ(y.getAllResponseHeaders()),pgI(W),this.JSC$9824_responseText_=y.getResponseText(),this.state_="Complete",this.dispatchEvent(new GS("l")))};_.HdE=function(y,W,c,Z){Z=Z===void 0?!1:Z;if(c instanceof g_m)return new Iii(y,"POST",W,c.getInputElement(),"");if(typeof c==="string"||c instanceof String)return new BT8(y,"POST",W,c,"");var G=new Du(void 0);G.JSC$9821_url_=y;G.JSC$9821_method_="POST";G.JSC$9821_headers_=W;G.blob_=c;G.originalBlobSize_=c.size;G.JSC$9821_metadata_="";Z&&(G.JSC$9821_withCredentials_=Z);G.state_="Start";return G};var mu=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(mu,_.eD);_.f=mu.prototype;_.f.getEnableSsEngine=function(){return _.Ki(this,2)};
_.f.getEnableAwr=function(){return _.Ki(this,3)};
_.f.getAlohaAutoGaRollout=function(){return _.Ki(this,5)};
_.f.getEnableConfigurator=function(){return _.Ki(this,6)};
_.f.getEnableMweb=function(){return _.Ki(this,7)};
var v_0=function(){var y=LeV();return _.gz(y,7,!0)};
mu.prototype.getEnableCtlConsentCheckbox=function(){return _.Ki(this,8)};
mu.prototype.getEnableIframe=function(){return _.Ki(this,9)};
var LeV=function(){var y=new mu;y=_.gz(y,5,!0);y=_.gz(y,2,!0);y=_.gz(y,4,!1);y=_.gz(y,8,!0);return _.gz(y,9,!0)};
mu.prototype.getEnableScreenshotNudge=function(){return _.Ki(this,10)};
var dL5=function(){var y=v_0();return _.gz(y,10,!0)};
mu.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Ki(this,11)};
mu.prototype.getEnableJunkNudge=function(){return _.Ki(this,12)};
var i2h=function(){var y=dL5();return _.gz(y,12,!0)};
_.f=mu.prototype;_.f.getEnableConfiguratorLocale=function(){return _.Ki(this,13)};
_.f.getEnableTinyNoPointer=function(){return _.Ki(this,14)};
_.f.getEnableSupportSessionLogging=function(){return _.Ki(this,15)};
_.f.getEnableFileUploadForScreenshot=function(){return _.Ki(this,16)};
_.f.getEnableDirectDeflectionForSingleCategory=function(){return _.Ki(this,17)};
_.f.getEnableImageSanitization=function(){return _.Ki(this,18)};
_.f.getEnableAlohaBinarySplit=function(){return _.Ki(this,19)};
_.f.getEnableDbFeedbackIntents=function(){return _.Ki(this,20)};
_.f.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Ki(this,21)};
_.f.getEnableFeedbackCategoryCustomUi=function(){return _.Ki(this,22)};
_.f.getEnableRealtimeCtl=function(){return _.Ki(this,23)};var xJO=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(xJO,_.eD);var PiH=[/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 Vma="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 CiO=_.dl(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Q7F=_.dl(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var h_f,H2g;var SfT,TT2;
SfT=function(y,W,c){y.timeOfStartCall=(new Date).getTime();var Z=c||_.DH,G=Z.document,D=y.nonce||_.Te(Z.document);D&&!y.nonce&&(y.nonce=D);if(y.flow=="help"){var Y=_.JW("document.location.href",Z);!y.helpCenterContext&&Y&&(y.helpCenterContext=Y.substring(0,1200));Y=!0;if(W&&JSON&&JSON.stringify){var u=JSON.stringify(W);(Y=u.length<=1200)&&(y.psdJson=u)}Y||(W={invalidPsd:!0})}W=[y,W,c];Z.GOOGLE_FEEDBACK_START_ARGUMENTS=W;c=y.feedbackServerUri||"//www.google.com/tools/feedback";if(Y=Z.GOOGLE_FEEDBACK_START)Y.apply(Z,W);
else{Z=c+"/load.js?";for(var t in y)W=y[t],W==null||_.q1(W)||(Z+=encodeURIComponent(t)+"="+encodeURIComponent(W)+"&");y=FF(G).createElement("SCRIPT");D&&y.setAttribute("nonce",D);_.eQ(y,_.rf(Z));G.body.appendChild(y)}};
TT2=function(y,W,c,Z){var G,D;_.m(function(Y){G=c||_.DH;var u=y.serverEnvironment==="DEV",t=c||_.DH;t=y.nonce||_.Te(t.document);u={integrationKeys:{productId:y.productId,feedbackBucket:y.bucket,triggerId:y.triggerId},callbacks:{onClose:y.callback,onLoad:y.onLoadCallback},formContent:{locale:y.locale,disableScreenshot:y.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:y.abuseLink,additionalDataConsent:y.additionalDataConsent},initializationData:{isLocalServer:u,nonce:t,useNightlyRelease:u,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:y.feedbackServerUri,colorScheme:y.colorScheme},extraData:{productVersion:y.productVersion,authUser:y.authuser,configuratorId:y.configuratorId,customZIndex:y.customZIndex,tinyNoPointer:y.tinyNoPointer,
allowNonLoggedInFeedback:y.allowNonLoggedInFeedback,enableAnonymousFeedback:y.enableAnonymousFeedback}};W&&(t=new Map(Object.entries(W)),u.extraData.productSpecificData=t);D=u;return _.n(Y,SXD(D,Z,G),0)})};
_.aiE=function(y,W,c){try{if(y.flow==="help"){var Z=y.helpCenterPath.replace(/^\//,"");_.SQ(c||window,"https://support.google.com/"+Z)}else y.flow==="submit"?SfT(y,W,c):MmI(y.productId,y.feedbackServerUri).then(function(G){G=_.il(G,mu,1);var D=!gLy||(G==null?void 0:G.getEnableMweb()),Y=!y.tinyNoPointer||(G==null?void 0:G.getEnableTinyNoPointer());!G||G.getAlohaAutoGaRollout()&&D&&Y?TT2(y,W,c,G):SfT(y,W,c)},function(G){G&&G.name!=="DuplicateFormError"&&SfT(y,W,c)})}catch(G){TT2(y,W,c,null)}};
_.LR("userfeedback.api.startFeedback",_.aiE);var e_D=/https?:\/\/\S+\.\S+/,wgt=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],qXE=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var $pf=function(y){var W=y.split(""),c=[-263237435,15,W,function(Z,G,D){var Y=G.length;D.forEach(function(u,t,b){this.push(b[t]=G[(G.indexOf(u)-G.indexOf(this[t])+t+Y--)%G.length])},Z.split(""))},
function(Z,G){Z=(Z%G.length+G.length)%G.length;G.splice(-Z).reverse().forEach(function(D){G.unshift(D)})},
"response",function(){for(var Z=64,G=[];++Z-G.length-32;){switch(Z){case 58:Z-=14;case 91:case 92:case 93:continue;case 123:Z=47;case 94:case 95:case 96:continue;case 46:Z=95}G.push(String.fromCharCode(Z))}return G},
null,12,1540023973,65941107,null,W,function(Z,G){for(Z=(Z%G.length+G.length)%G.length;Z--;)G.unshift(G.pop())},
695603893,function(Z){for(var G=Z.length;G;)Z.push(Z.splice(--G,1)[0])},
"'[;'[(",function(Z,G){Z.push(G)},
null,function(Z,G,D,Y,u){return G(D,Y,u)},
"continuation",W,function(Z,G){if(Z.length!=0){G=(G%Z.length+Z.length)%Z.length;var D=Z[0];Z[0]=Z[G];Z[G]=D}},
function(){for(var Z=64,G=[];++Z-G.length-32;){switch(Z){case 91:Z=44;continue;case 123:Z=65;break;case 65:Z-=18;continue;case 58:Z=96;continue;case 46:Z=95}G.push(String.fromCharCode(Z))}return G},
'"),/]];'];c[7]=c;c[11]=c;c[18]=c;try{(((0,c[15])(c[21]),c[22])(c[11],c[9]),c[22])(c[new Date("1970-01-01T04:30:12.000+04:30")/1E3],c[1]),((0,c[22])(c[11],c[23]),c[4])(c[10],c[18]),(0,c[20])(c[21],c[14])<<(0,c[17])(c[18],c[1]),(0,c[4])(c[8],c[21]),(0,c[19])((0,c[19])((0,c[17])(c[7],c[9]),c[3],c[20],(0,c[6])(),c[2]),c[3],c[5],(0,c[15])(),c[2])}catch(Z){return"aTlOUOubTO4AP____8P_"+y}return W.join("")};_.xL8=new _.w("runAttestationCommand");var id8=new _.w("verifyCommand");_.Cp=new _.w("accessibilityContext");var M2Q=new _.w("accessibilityData");var esT=new _.w("profileCardCommand");var rOh=new _.w("signInEndpoint");var bC1=new _.w("signOutEndpoint");var qfQ;_.wMQ=new _.w("accountItemSectionRenderer");qfQ=new _.w("accountItemRenderer");_.kuE=new _.w("saveCommandToSessionStorageAction");var j4J=new _.w("crossAccountChannelTransferEndpoint");var nuH=new _.w("getAccountMenuEndpoint");_.XwI=new _.w("getAccountSwitcherEndpoint");var tRO=new _.w("getAccountsListEndpoint");var yUi=new _.w("getAccountsListInnertubeEndpoint");_.WSV=new _.w("addToToastAction");var cUi=new _.w("hideEnclosingAction");_.sx=new _.w("replaceEnclosingAction");_.Z$5=new _.w("buttonRefreshAction");var GFV=new _.w("adsControlFlowOpportunityReceivedCommand");var f95=new _.w("openAdAllowlistInstructionCommand");var opV=new _.w("videoMastheadAdPrimaryVideoRenderer");var DKT=new _.w("displayAdRenderer");var osH=new _.w("instreamVideoAdRenderer");_.zGJ=new _.w("inFeedAdLayoutRenderer");var YpZ=new _.w("sequenceItemInPlayerAdLayoutRenderer");_.mKE=new _.w("adSlotRenderer");var s48=new _.w("adAvatarViewModel");var u12=new _.w("adBadgeViewModel");var twE=new _.w("adButtonViewModel");var uX=new _.w("adImageViewModel");var RAE=new _.w("reelsAdCardButtonedViewModel");var npW=new _.w("reelsPlayerOverlayLayoutViewModel");var XP5=new _.w("showSchedulingPanelCommand");var b$V=new _.w("backstageCommentsRenderer");var rUE=new _.w("backstageImageRenderer");var FSW=new _.w("backstagePostRenderer");var UKE=new _.w("postRenderer");var $KW=new _.w("sharedPostRenderer");var KS0=new _.w("createBackstagePostEndpoint");var O$3=new _.w("getPostVideoPreviewEndpoint");var gpZ=new _.w("updateBackstagePostEndpoint");var RGV=new _.w("filterChipTransformCommand");var l93=new _.w("insertRichSectionCommand");var y8D=new _.w("talkToRecsDeselectCommand");var EpE=new _.w("talkToRecsNextCommand");var jpH=new _.w("talkToRecsSelectCommand");var Nai=new _.w("talkToRecsUpdateTextCommand");_.oW=new _.w("browseEndpoint");_.I9W=new _.w("confirmDialogEndpoint");var pPT=new _.w("expandOnHoverCardRenderer");var PU5=new _.w("lumiereShelfDetailsRenderer");var JUE=new _.w("revealBusinessEmailCommand");var VwE=new _.w("validateChannelHandleCommand");var CUW=new _.w("channelCreationFormEndpoint");var Q42=new _.w("aboutChannelViewModel");var AUW=new _.w("channelThumbnailWithLinkRenderer");var hGZ=new _.w("channelCreationServiceEndpoint");var Ba3=new _.w("updateChannelPageSettingsEndpoint");var tA=function(y){this.delegate=y},nF=function(){tA.apply(this,arguments)};
_.R(nF,tA);_.dJ.Object.defineProperties(nF.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(y){this.delegate.entityMetadata=y}}});var H$m=function(){nF.apply(this,arguments)};
_.R(H$m,nF);H$m.prototype.getAssociations=function(){return[]};var EzH=new _.w("webThumbnailDetailsExtensionData");var I1H=new _.w("commandContext");var LS0=new _.w("addVideoLinkAction");var vpT=new _.w("createPollAction");var dKi=new _.w("hideIdentityChipAction");var SpT=new _.w("openUpdateCommentDialogAction");var Xb=new _.w("updateBackstagePollAction");var TaE=new _.w("updateCommentVoteAction");var a92=new _.w("commentThreadRenderer");var xK0=function(){nF.apply(this,arguments)};
_.R(xK0,nF);xK0.prototype.getAssociations=function(){return[]};_.i$Q=new _.w("commentDialogRenderer");var Mwm=new _.w("updateCommentsSettingsEndpoint");var eGE=new _.w("commentViewModel");var wP0=new _.w("triStateButtonViewModel");var qpV=new _.w("voiceReplyContainerViewModel");_.uN=new _.w("commandExecutorCommand");var bs=new _.w("emoji");var kFZ=new _.w("updateCreatorChannelInnertubeCommand");_.j7T=new _.w("appendContinuationItemsAction");_.yh5=new _.w("changeEngagementPanelVisibilityAction");_.$x=new _.w("continuationCommand");var Wzi=new _.w("hideReportedCommentAction");var ch5=new _.w("listMutationCommand");_.bX=new _.w("openPopupAction");var mJi;_.Z2Z=new _.w("playlistRemoveVideosAction");_.GH8=new _.w("updatePlaylistAction");_.fyV=new _.w("addToPlaylistCommand");_.obE=new _.w("endPlaylistCommand");_.DJZ=new _.w("recoverPlaylistCommand");_.z_8=new _.w("refreshPlaylistCommand");_.YXE=new _.w("refreshFormCommand");mJi=new _.w("openOnePickAddVideoModalCommand");_.KUI=new _.w("reloadContinuationItemsCommand");_.s72=new _.w("scrollToEngagementPanelCommand");var uOW=new _.w("showReloadUiCommand");var tmE=new _.w("undoFeedbackAction");var nbE=new _.w("updateButtonAction");var Sih=new _.w("updateSubscribeButtonAction");var Xgm=new _.w("updateToggleAction");_.kT=new _.w("webCommandMetadata");_.rR=new _.w("webHandleServiceEndpointExtension");var $eI=new _.w("webNavigationEndpointData");var b25=new _.w("copyLinkCommand");var rhE=new _.w("playlistVotingRefreshPopupCommand");var Fz2=new _.w("selectChipCommand");var UJ3=new _.w("setCookieCommand");var $J5=new _.w("setLocalStorageCommand");var KzV=new _.w("setPrefStorageEntryCommand");var lyW;_.O28=new _.w("settingsUpdateCheckboxCommand");_.gbV=new _.w("settingsUpdateTextCommand");_.R_E=new _.w("settingsUpdateOptionsCommand");lyW=new _.w("settingsUpdateSwitchCommand");_.EbW=new _.w("settingsUpdateConnectedAppRendererCommand");var NqV=new _.w("updateTextInputFormFieldRendererCommand");var IyZ=new _.w("updateToggleButtonStateCommand");var pgV=new _.w("updateUrlParamCommand");var Pi0=new _.w("webSubmitFormCommand");var Jh2=new _.w("channelSwitcherPageRenderer"),Vm8=new _.w("updateChannelSwitcherPageAction");_.yQ=new _.w("continuationItemRenderer");_.Fb=new _.w("richItemRenderer");var Cii=new _.w("richSectionRenderer");_.Q7W=new _.w("richShelfRenderer");_.AhT=new _.w("metadataBadgeRenderer");_.h_E=new _.w("multiPageMenuNotificationSectionRenderer");_.Bq2=new _.w("playlistLoopButtonStateRenderer");var H22=new _.w("claimLegacyYoutubeChannelEndpoint");var Lz3=new _.w("getNotificationMenuEndpoint");var vb5=new _.w("getSearchInVideoCommand");_.dJV=new _.w("getTranscriptEndpoint");_.nl=new _.w("signalServiceEndpoint");var SXZ=new _.w("verifyAgeEndpoint");var gOI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(gOI,_.eD);gOI.prototype.getPath=function(){return _.RE(this,1)};
gOI.prototype.getValue=function(){return _.RE(this,2)};var TqJ=[0,_.Li,-1];var ayJ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(ayJ,_.eD);var O0H=_.o$(ayJ,[0,_.vN,TqJ]);var xJi=new _.w("dismissalEndpoint");var i2m=new _.w("elementsCommand");_.Fx=new _.w("innertubeCommand");var MmV=new _.w("multipleInlinePlaybackCommand");var Z1w=new _.w("loggingDirectives");var eFI={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 e_Z=new _.w("acknowledgeChannelTouStrikeCommand");var wgE=function(){nF.apply(this,arguments)};
_.R(wgE,nF);wgE.prototype.getAssociations=function(){return[]};var qXQ=function(){nF.apply(this,arguments)};
_.R(qXQ,nF);qXQ.prototype.getAssociations=function(){return[]};var J7=new _.w("entityBatchUpdate");_.kH2=new _.w("entityUpdateCommand");var jO5=function(){nF.apply(this,arguments)};
_.R(jO5,nF);jO5.prototype.getAssociations=function(){var y=[];this.delegate.alternateChannel&&y.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&y.push.apply(y,_.No(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&y.push(this.delegate.oneofChannelEntity);return[].concat(_.No(new Set(y)))};var yJQ=function(){nF.apply(this,arguments)};
_.R(yJQ,nF);yJQ.prototype.getAssociations=function(){var y=[];this.delegate.entryCollection&&y.push(this.delegate.entryCollection);return[].concat(_.No(new Set(y)))};
var WAi=function(){nF.apply(this,arguments)};
_.R(WAi,nF);WAi.prototype.getAssociations=function(){var y=[];this.delegate.parentPlaylist&&y.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var W=_.z(this.delegate.entries),c=W.next();!c.done;c=W.next())y.push.apply(y,_.No((new cJJ(c.value)).getAssociations()));return[].concat(_.No(new Set(y)))};
var cJJ=function(){tA.apply(this,arguments)};
_.R(cJJ,tA);cJJ.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);return[].concat(_.No(new Set(y)))};var ZU2=function(){nF.apply(this,arguments)};
_.R(ZU2,nF);ZU2.prototype.getAssociations=function(){var y=[];this.delegate.descriptionEntity&&y.push(this.delegate.descriptionEntity);this.delegate.creators&&y.push.apply(y,_.No(this.delegate.creators));this.delegate.theBiggestFan&&y.push(this.delegate.theBiggestFan);return[].concat(_.No(new Set(y)))};
var GAQ=function(){nF.apply(this,arguments)};
_.R(GAQ,nF);GAQ.prototype.getAssociations=function(){return[]};var fYm=new _.w("fantasyRosterViewModel");var ojZ=new _.w("addFollowUpSurveyCommand");var DDJ=new _.w("getSurveyCommand");var zF5=new _.w("ratingSurveyOptionRenderer");_.Na=new _.w("feedbackEndpoint");var YSi=new _.w("reportHistoryTableCellRenderer"),mDm=new _.w("reportHistoryTableTextCellRenderer"),sOE=new _.w("reportHistoryTableReasonCellRenderer");_.upW=new _.w("flagEndpoint");var tXV=new _.w("getFlowCommand");var nj0=new _.w("submitFormWithValidationFlowCommand");var Xi5=function(){nF.apply(this,arguments)};
_.R(Xi5,nF);Xi5.prototype.getAssociations=function(){return[]};var bUV=new _.w("flowFormState");var rJi=new _.w("gameCardRenderer");var FAZ=new _.w("accountLinkingStateChangedCommand");var UDW=function(){nF.apply(this,arguments)};
_.R(UDW,nF);UDW.prototype.getAssociations=function(){return[]};var $D0=new _.w("changeMiniAppPlayStateCommand");var KA3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(KA3,_.eD);var Ux=[1,2,3];var OUm=[0,Ux,w1E,_.qjh,SjI];var gj0=_.o$(KA3,OUm),RFE=_.D3(OUm);var lYm=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(lYm,_.eD);var EjJ=[0,_.hf,_.Li];var N_m=[0,_.Li];var IY5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(IY5,_.eD);var piJ=function(y,W){return _.MC(y,3,W)};var Pp0=_.D3([0,_.S6,EjJ,_.S6,N_m]);var JJ0=new _.w("miniAppScoreChallengeViewModel");var VXW=new _.w("miniGameCardViewModel");var CpE=new _.w("teaserCardViewModel");var QOE=function(){nF.apply(this,arguments)};
_.R(QOE,nF);QOE.prototype.getAssociations=function(){return[]};_.AJ5=new _.w("feedbackItemRenderer");var hFT={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"};var B_V=function(){nF.apply(this,arguments)};
_.R(B_V,nF);B_V.prototype.getAssociations=function(){return[]};_.HU5=new _.w("playerInterstitialRenderer");var LAJ=new _.w("getKidsBlocklistPickerCommand");_.vjZ=new _.w("updateKidsBlacklistEndpoint");_.Ls=new _.w("likeEndpoint");var dDi,SSm,T_V;dDi=new _.w("addChatItemAction");SSm=new _.w("removeChatItemAction");T_V=new _.w("markChatItemAsDeletedAction");_.aYE=new _.w("setLiveChatCollapsedStateAction");var xDJ=function(){nF.apply(this,arguments)};
_.R(xDJ,nF);xDJ.prototype.getAssociations=function(){return[]};var iU8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(iU8,_.eD);var MXQ=_.o$(iU8,[0,1,_.hf]);var eFV=new _.w("liveChatEndpoint");var wiW=new _.w("liveChatItemContextMenuEndpoint");var qSZ=new _.w("liveChatReplayEndpoint");_.kA2=new _.w("emojiPickerRenderer");var jXV=new _.w("liveChatAuthorBadgeViewModel");var ye5=new _.w("deleteLiveChatMessageCommand");var Wxm=new _.w("liveChatActionEndpoint");var cei=new _.w("createLiveChatPollEndpoint");var ZGJ=new _.w("manageLiveChatUserEndpoint");var GCW=new _.w("moderateLiveChatEndpoint");_.fNW=new _.w("sendLiveChatMessageEndpoint");var oK3=new _.w("sendLiveChatVoteEndpoint");var DhE=new _.w("clearLocationCommand");var zgW=new _.w("resolveLocationCommand");var YME=new _.w("interactionLoggingCommandMetadata");var jgh=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(jgh,_.eD);var kBh=function(y,W){return _.GY(y,1,W)};var mhZ=[0,_.HN];var q8I=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(q8I,_.eD);var w6a=function(y,W){return Yg(y,1,jgh,W)};q8I.prototype.JSC$9915_serializeBinary=R01([0,_.vN,mhZ]);var UDF={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 sXZ={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"},
uzE={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 iag={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"};_.Tvf=new _.w("logFlowLoggingEventCommand");_.JrD=new _.w("loggingContext");var t0Q=new _.w("captionLanguageSelectActionCommand");var nK3=new _.w("showCaptionLanguageSelectActionCommand");var Xs3=new _.w("dismissDialogEndpoint");var bGV=new _.w("hideItemSectionVideosByIdCommand");var reQ=new _.w("showMiniplayerCommand");var Fx0=function(){nF.apply(this,arguments)};
_.R(Fx0,nF);Fx0.prototype.getAssociations=function(){return[]};var UhT=function(){nF.apply(this,arguments)};
_.R(UhT,nF);UhT.prototype.getAssociations=function(){return[]};var $hm=function(){nF.apply(this,arguments)};
_.R($hm,nF);$hm.prototype.getAssociations=function(){return[]};var KxV=function(){nF.apply(this,arguments)};
_.R(KxV,nF);KxV.prototype.getAssociations=function(){var y=[];this.delegate.downloadsList&&y.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&y.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&y.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&y.push(this.delegate.refresh);return[].concat(_.No(new Set(y)))};var OGE=function(){nF.apply(this,arguments)};
_.R(OGE,nF);OGE.prototype.getAssociations=function(){var y=[];this.delegate.refresh&&y.push(this.delegate.refresh);if(this.delegate.downloads)for(var W=_.z(this.delegate.downloads),c=W.next();!c.done;c=W.next())y.push.apply(y,_.No((new gK8(c.value)).getAssociations()));return[].concat(_.No(new Set(y)))};
var gK8=function(){tA.apply(this,arguments)};
_.R(gK8,tA);gK8.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);this.delegate.playlist&&y.push(this.delegate.playlist);this.delegate.videoItem&&y.push(this.delegate.videoItem);this.delegate.playlistItem&&y.push(this.delegate.playlistItem);return[].concat(_.No(new Set(y)))};var RgV=function(){nF.apply(this,arguments)};
_.R(RgV,nF);RgV.prototype.getAssociations=function(){var y=[];this.delegate.localImageEntities&&y.push.apply(y,_.No(this.delegate.localImageEntities));return[].concat(_.No(new Set(y)))};var lNE=function(){nF.apply(this,arguments)};
_.R(lNE,nF);lNE.prototype.getAssociations=function(){var y=[];this.delegate.playbackData&&y.push(this.delegate.playbackData);this.delegate.localImageEntities&&y.push.apply(y,_.No(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.No(new Set(y)))};var EKV=function(){nF.apply(this,arguments)};
_.R(EKV,nF);EKV.prototype.getAssociations=function(){return[]};var NHV=function(){nF.apply(this,arguments)};
_.R(NHV,nF);NHV.prototype.getAssociations=function(){var y=[];this.delegate.fakeChildren&&y.push.apply(y,_.No(this.delegate.fakeChildren));return[].concat(_.No(new Set(y)))};var INQ=function(){nF.apply(this,arguments)};
_.R(INQ,nF);INQ.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);this.delegate.playbackData&&y.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&y.push(this.delegate.offlineVideoPolicy);return[].concat(_.No(new Set(y)))};var ps2=function(){nF.apply(this,arguments)};
_.R(ps2,nF);ps2.prototype.getAssociations=function(){return[]};var P_5=function(){nF.apply(this,arguments)};
_.R(P_5,nF);P_5.prototype.getAssociations=function(){var y=[];this.delegate.channelOwner&&y.push(this.delegate.channelOwner);this.delegate.videos&&y.push.apply(y,_.No(this.delegate.videos));this.delegate.collaboratorChannels&&y.push.apply(y,_.No(this.delegate.collaboratorChannels));this.delegate.downloadState&&y.push(this.delegate.downloadState);this.delegate.refresh&&y.push(this.delegate.refresh);return[].concat(_.No(new Set(y)))};var Je0=function(){nF.apply(this,arguments)};
_.R(Je0,nF);Je0.prototype.getAssociations=function(){var y=[];this.delegate.video&&y.push(this.delegate.video);this.delegate.channelContributor&&y.push(this.delegate.channelContributor);return[].concat(_.No(new Set(y)))};var V0V=function(){tA.apply(this,arguments)};
_.R(V0V,tA);V0V.prototype.getAssociations=function(){var y=[];this.delegate.recommendedVideoMetadata&&y.push.apply(y,_.No((new C_0(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.No(new Set(y)))};
var C_0=function(){tA.apply(this,arguments)};
_.R(C_0,tA);C_0.prototype.getAssociations=function(){var y=[];this.delegate.localImageEntities&&y.push.apply(y,_.No(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.No(new Set(y)))};var QXQ=function(){tA.apply(this,arguments)};
_.R(QXQ,tA);QXQ.prototype.getAssociations=function(){var y=[];this.delegate.playbackPosition&&y.push(this.delegate.playbackPosition);return[].concat(_.No(new Set(y)))};var Ae8=function(){nF.apply(this,arguments)};
_.R(Ae8,nF);Ae8.prototype.getAssociations=function(){var y=[];this.delegate.owner&&y.push(this.delegate.owner);this.delegate.downloadState&&y.push(this.delegate.downloadState);this.delegate.userState&&y.push.apply(y,_.No((new QXQ(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&y.push.apply(y,_.No((new V0V(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.No(new Set(y)))};var hgQ=function(){nF.apply(this,arguments)};
_.R(hgQ,nF);hgQ.prototype.getAssociations=function(){var y=[];this.delegate.userChannelDetails&&y.push(this.delegate.userChannelDetails);return[].concat(_.No(new Set(y)))};var BHm=function(){nF.apply(this,arguments)};
_.R(BHm,nF);BHm.prototype.getAssociations=function(){var y=[];this.delegate.channelOwner&&y.push(this.delegate.channelOwner);this.delegate.playbackPosition&&y.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&y.push.apply(y,_.No(this.delegate.localImageEntities));this.delegate.downloadStatus&&y.push(this.delegate.downloadStatus);return[].concat(_.No(new Set(y)))};var rIH=new _.w("downloadsPageSmartDownloadsOptInBannerParams");var HG8=function(){nF.apply(this,arguments)};
_.R(HG8,nF);HG8.prototype.getAssociations=function(){return[]};var Lx3=function(){nF.apply(this,arguments)};
_.R(Lx3,nF);Lx3.prototype.getAssociations=function(){return[]};var vKi=function(){nF.apply(this,arguments)};
_.R(vKi,nF);vKi.prototype.getAssociations=function(){return[]};var dhJ=function(){nF.apply(this,arguments)};
_.R(dhJ,nF);dhJ.prototype.getAssociations=function(){return[]};var SMQ=function(){nF.apply(this,arguments)};
_.R(SMQ,nF);SMQ.prototype.getAssociations=function(){return[]};var TH0=function(){nF.apply(this,arguments)};
_.R(TH0,nF);TH0.prototype.getAssociations=function(){return[]};var aNJ=function(){nF.apply(this,arguments)};
_.R(aNJ,nF);aNJ.prototype.getAssociations=function(){return[]};var xhi=function(){nF.apply(this,arguments)};
_.R(xhi,nF);xhi.prototype.getAssociations=function(){return[]};var I7F=new _.w("dislikeButtonViewModel");var N0E=new _.w("likeButtonViewModel");var iGT=new _.w("videoSummaryContentViewModel");var v51=new _.w("videoSummaryParagraphViewModel");var M00=new _.w("changeTimelyActionVisibilityCommand");var eg0=new _.w("hideEngagementPanelEndpoint");var ws5=new _.w("refreshPanelEndpoint");var qME=new _.w("scrollToSectionEndpoint");var kCE=new _.w("seekToVideoTimestampCommand");_.E9=new _.w("showEngagementPanelEndpoint");var jY0=new _.w("showTransientPlayerScrimOverlayCommand");var yk2=new _.w("toggleEngagementPanelCommand");_.WXm=new _.w("createBroadcastCommand");var ckT=new _.w("metadataUpdateCommand");var Z7V=function(){nF.apply(this,arguments)};
_.R(Z7V,nF);Z7V.prototype.getAssociations=function(){return[]};var Gk3=function(){nF.apply(this,arguments)};
_.R(Gk3,nF);Gk3.prototype.getAssociations=function(){return[]};var fT8=function(){nF.apply(this,arguments)};
_.R(fT8,nF);fT8.prototype.getAssociations=function(){return[]};_.oHJ=new _.w("merchandiseShelfRenderer");var DEE=new _.w("gridMovieRenderer");_.z8W=new _.w("movieRenderer");var Yum=function(){nF.apply(this,arguments)};
_.R(Yum,nF);Yum.prototype.getAssociations=function(){var y=[];this.delegate.trackDownloadMetadatas&&y.push.apply(y,_.No(this.delegate.trackDownloadMetadatas));return[].concat(_.No(new Set(y)))};var mEZ=function(){nF.apply(this,arguments)};
_.R(mEZ,nF);
mEZ.prototype.getAssociations=function(){var y=[];this.delegate.downloadedTracks&&y.push.apply(y,_.No(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&y.push.apply(y,_.No(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&y.push.apply(y,_.No(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&y.push.apply(y,_.No(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&y.push.apply(y,_.No(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
y.push.apply(y,_.No(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&y.push.apply(y,_.No(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&y.push.apply(y,_.No(this.delegate.metadataOnlyTracks));return[].concat(_.No(new Set(y)))};var sYV=function(){nF.apply(this,arguments)};
_.R(sYV,nF);sYV.prototype.getAssociations=function(){var y=[];this.delegate.trackDownloadMetadatas&&y.push.apply(y,_.No(this.delegate.trackDownloadMetadatas));return[].concat(_.No(new Set(y)))};var uB5=function(){nF.apply(this,arguments)};
_.R(uB5,nF);uB5.prototype.getAssociations=function(){var y=[];this.delegate.playbackData&&y.push(this.delegate.playbackData);this.delegate.localImageEntities&&y.push.apply(y,_.No(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.No(new Set(y)))};var teJ=function(){nF.apply(this,arguments)};
_.R(teJ,nF);
teJ.prototype.getAssociations=function(){var y=[];this.delegate.musicLibraryStatusEntity&&y.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&y.push.apply(y,_.No(this.delegate.primaryArtists));this.delegate.details&&y.push(this.delegate.details);this.delegate.userDetails&&y.push(this.delegate.userDetails);this.delegate.tracks&&y.push.apply(y,_.No(this.delegate.tracks));this.delegate.share&&y.push(this.delegate.share);this.delegate.downloadMetadata&&y.push(this.delegate.downloadMetadata);this.delegate.refresh&&
y.push(this.delegate.refresh);return[].concat(_.No(new Set(y)))};
var nHE=function(){nF.apply(this,arguments)};
_.R(nHE,nF);nHE.prototype.getAssociations=function(){var y=[];this.delegate.albumRelease&&y.push(this.delegate.albumRelease);this.delegate.tracks&&y.push.apply(y,_.No(this.delegate.tracks));return[].concat(_.No(new Set(y)))};
var X_Q=function(){nF.apply(this,arguments)};
_.R(X_Q,nF);X_Q.prototype.getAssociations=function(){var y=[];this.delegate.albumRelease&&y.push(this.delegate.albumRelease);return[].concat(_.No(new Set(y)))};var b73=function(){nF.apply(this,arguments)};
_.R(b73,nF);b73.prototype.getAssociations=function(){var y=[];this.delegate.details&&y.push(this.delegate.details);this.delegate.userDetails&&y.push(this.delegate.userDetails);return[].concat(_.No(new Set(y)))};
var rkT=function(){nF.apply(this,arguments)};
_.R(rkT,nF);rkT.prototype.getAssociations=function(){var y=[];this.delegate.parentArtist&&y.push(this.delegate.parentArtist);return[].concat(_.No(new Set(y)))};
var FXW=function(){nF.apply(this,arguments)};
_.R(FXW,nF);FXW.prototype.getAssociations=function(){var y=[];this.delegate.parentArtist&&y.push(this.delegate.parentArtist);return[].concat(_.No(new Set(y)))};var UEZ=function(){nF.apply(this,arguments)};
_.R(UEZ,nF);UEZ.prototype.getAssociations=function(){return[]};var $E8=function(){nF.apply(this,arguments)};
_.R($E8,nF);$E8.prototype.getAssociations=function(){return[]};var KXJ=function(){nF.apply(this,arguments)};
_.R(KXJ,nF);
KXJ.prototype.getAssociations=function(){var y=[];this.delegate.tracks&&y.push.apply(y,_.No(this.delegate.tracks));this.delegate.refresh&&y.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&y.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&y.push(this.delegate.details);this.delegate.downloadMetadata&&y.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&y.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&y.push(this.delegate.userDetails);this.delegate.entryCollection&&
y.push(this.delegate.entryCollection);this.delegate.share&&y.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&y.push.apply(y,_.No((new O70(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.No(new Set(y)))};
var O70=function(){tA.apply(this,arguments)};
_.R(O70,tA);O70.prototype.getAssociations=function(){var y=[];this.delegate.creatorEntity&&y.push(this.delegate.creatorEntity);return[].concat(_.No(new Set(y)))};var gH8=function(){nF.apply(this,arguments)};
_.R(gH8,nF);gH8.prototype.getAssociations=function(){return[]};var R8V=function(){nF.apply(this,arguments)};
_.R(R8V,nF);
R8V.prototype.getAssociations=function(){var y=[];this.delegate.musicLibraryStatusEntity&&y.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&y.push.apply(y,_.No(this.delegate.artists));this.delegate.audioModeVersion&&y.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&y.push(this.delegate.videoModeVersion);this.delegate.userDetails&&y.push(this.delegate.userDetails);this.delegate.details&&y.push(this.delegate.details);this.delegate.albumRelease&&y.push(this.delegate.albumRelease);this.delegate.share&&
y.push(this.delegate.share);this.delegate.libraryEdit&&y.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&y.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&y.push(this.delegate.playbackPosition);this.delegate.lyrics&&y.push(this.delegate.lyrics);return[].concat(_.No(new Set(y)))};
var lTT=function(){nF.apply(this,arguments)};
_.R(lTT,nF);lTT.prototype.getAssociations=function(){var y=[];this.delegate.parentTrack&&y.push(this.delegate.parentTrack);return[].concat(_.No(new Set(y)))};
var EHm=function(){nF.apply(this,arguments)};
_.R(EHm,nF);EHm.prototype.getAssociations=function(){var y=[];this.delegate.parentTrack&&y.push(this.delegate.parentTrack);return[].concat(_.No(new Set(y)))};var es=new _.w("musicResponsiveListItemRenderer");var lBg=new _.w("addToPlaylistEndpoint");var NtE=new _.w("captionPickerEndpoint");var IT8=new _.w("suggestStats");var p_2=new _.w("backstageImageUploadEndpoint");var PO8=new _.w("createBackstagePostDialogEndpoint");_.JkV=new _.w("createCommentReplyDialogEndpoint");_.VeZ=new _.w("updateCommentDialogEndpoint");_.COT=new _.w("updateCommentReplyDialogEndpoint");var QYE=new _.w("menuEndpoint");var b1O=new _.w("modalEndpoint");var AkE=new _.w("playlistEditorEndpoint");var h8E=new _.w("copyTextEndpoint");var Bt3,H7T;Bt3=new _.w("shareEndpoint");H7T=new _.w("shareEntityEndpoint");_.LX2=new _.w("shareEntityServiceEndpoint");_.BkD=new _.w("userFeedbackEndpoint");_.Sb=new _.w("watchEndpoint");var FKI=new _.w("watchPlaylistEndpoint");var vHi=new _.w("addUpcomingEventReminderEndpoint");_.$I=new _.w("getCommentsFromInboxCommand");var dEW=new _.w("notificationOptOutEndpoint");var SuE=new _.w("recordNotificationInteractionsEndpoint");var Tt5=new _.w("removeUpcomingEventReminderEndpoint");var guI=new _.w("getDownloadActionCommand");_.aTW=new _.w("offlineOrchestrationActionCommand");var xEZ=function(){nF.apply(this,arguments)};
_.R(xEZ,nF);xEZ.prototype.getAssociations=function(){return[]};var i7V=function(){nF.apply(this,arguments)};
_.R(i7V,nF);i7V.prototype.getAssociations=function(){return[]};var MeV=function(){nF.apply(this,arguments)};
_.R(MeV,nF);MeV.prototype.getAssociations=function(){return[]};var e8Z=function(){nF.apply(this,arguments)};
_.R(e8Z,nF);e8Z.prototype.getAssociations=function(){return[]};var w_E=function(){nF.apply(this,arguments)};
_.R(w_E,nF);w_E.prototype.getAssociations=function(){var y=[];this.delegate.transfer&&y.push(this.delegate.transfer);this.delegate.adsPlaybackData&&y.push.apply(y,_.No(this.delegate.adsPlaybackData));this.delegate.drmLicense&&y.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&y.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&y.push(this.delegate.videoDownloadContextEntity);return[].concat(_.No(new Set(y)))};var quT=function(){nF.apply(this,arguments)};
_.R(quT,nF);quT.prototype.getAssociations=function(){return[]};var kkZ=function(){nF.apply(this,arguments)};
_.R(kkZ,nF);kkZ.prototype.getAssociations=function(){var y=[];this.delegate.offlineVideoStreams&&y.push.apply(y,_.No(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&y.push.apply(y,_.No(this.delegate.captionTrack));return[].concat(_.No(new Set(y)))};var jUV=function(){nF.apply(this,arguments)};
_.R(jUV,nF);jUV.prototype.getAssociations=function(){return[]};var yA0=new _.w("showMoreDrawerCommand");var WuJ=new _.w("updateEngagementPanelContentCommand");var cAV=new _.w("getPdgBuyFlowCommand");var ZF8=new _.w("liveChatPurchaseMessageEndpoint");var GSZ=new _.w("openSuperStickerBuyFlowCommand");var fuW=new _.w("updatePdgFeatureEnablementCommand");var oIE=function(){nF.apply(this,arguments)};
_.R(oIE,nF);oIE.prototype.getAssociations=function(){return[]};var DY2=function(){nF.apply(this,arguments)};
_.R(DY2,nF);DY2.prototype.getAssociations=function(){return[]};_.zdV=new _.w("pdgCommentChipRenderer");_.Yx2=new _.w("permissionRoleBottomBarRenderer");_.mYZ=new _.w("updatePermissionRoleCommand");var sUQ=new _.w("prefetchWatchCommand");var ub5=new _.w("updatePlayerErrorMessageCommand");var bmh=new _.w("toggleCaptionsVisibilityCommand");_.txT=new _.w("quickActionsViewModel");var nIV=new _.w("playerResponse");var XvE=new _.w("playlistRenderer");_.bFT=new _.w("playlistVideoListRenderer");_.KF=new _.w("playlistEditEndpoint");var rAi=new _.w("createImagePollCommand");var FuE=new _.w("createQuizCommand");var UYm=new _.w("quizRenderer");var $YT=new _.w("uploadedVideoRenderer");var KuT=new _.w("decorateMessageEndpoint");var OFV=new _.w("lpOfferCardOptionViewModel");var gIW=new _.w("sfvAudioItemPlaybackCommand");var Rdi=function(){nF.apply(this,arguments)};
_.R(Rdi,nF);Rdi.prototype.getAssociations=function(){return[]};_.Ox=new _.w("reelNonVideoContentEndpoint");_.mv=new _.w("reelWatchEndpoint");_.gR=new _.w("reelItemRenderer");var lu0=new _.w("reelMetapanelViewModel");_.EIZ=new _.w("reelNonVideoContentRenderer");_.NR0=new _.w("reelPlayerOverlayRenderer");var IuV=new _.w("shortsLockupViewModel");var pv3=new _.w("sponsorButtonViewModel");var PXZ=new _.w("reelItemWatchResponse");var JAZ=new _.w("textBadgeRenderer");_.RU=new _.w("buttonRenderer");_.lX=new _.w("toggleButtonRenderer");var Kch=new _.w("switchButtonViewModel");_.Vxi=new _.w("confirmDialogRenderer");var CXm;CXm=new _.w("menuRenderer");_.QUJ=new _.w("menuFlexibleItemRenderer");var AAQ=new _.w("pollRenderer");_.hd0=new _.w("backgroundPromoRenderer");var HFJ;_.BR3=new _.w("chipCloudRenderer");HFJ=new _.w("chipCloudChipRenderer");var Lu0=new _.w("dropdownRenderer");var vIi=new _.w("gridVideoRenderer");_.yCh=new _.w("itemSectionRenderer");_.dYE=new _.w("messageRenderer");var Sx3=new _.w("sortFilterHeaderRenderer");_.TR8=new _.w("videoRenderer");var auV=new _.w("resolveUrlCommandMetadata");var xYi=function(){nF.apply(this,arguments)};
_.R(xYi,nF);xYi.prototype.getAssociations=function(){return[]};_.iFV=new _.w("getAnswerCommand");_.Dl=new _.w("searchEndpoint");var MxQ=new _.w("genAiRichTextViewModel");var OmF=new _.w("overviewAnswerViewModel");var edQ=new _.w("addToPlaylistServiceEndpoint");var wvm=new _.w("clearSearchHistoryEndpoint");var qxm=new _.w("clearWatchHistoryEndpoint");var kST=new _.w("webSerializedServiceEndpointExtension");_.jt3=new _.w("createCommentEndpoint");var yI2=new _.w("createCommentReplyEndpoint");var Ex=new _.w("performCommentActionEndpoint");var W_V=new _.w("updateCommentEndpoint");var cIT=new _.w("updateCommentReplyEndpoint");_.NY=new _.w("createPlaylistServiceEndpoint");var ZHi=new _.w("deletePlaylistEndpoint");var GRV=new _.w("deleteVideoEndpoint");var RjI=new _.w("getReportFormEndpoint");var fEQ=new _.w("modifyChannelNotificationPreferenceEndpoint");var aMI;_.WG=new _.w("offlinePlaylistEndpoint");aMI={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 xsh;_.yL=new _.w("offlineVideoEndpoint");xsh={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 oPT=new _.w("pingingEndpoint");_.DtV=new _.w("selectActiveIdentityEndpoint");var zDJ=new _.w("setSettingEndpoint");var W5H=new _.w("undoFeedbackEndpoint");var YUT=new _.w("unsubscribeEndpoint");_.mtE=new _.w("updatedMetadataEndpoint");var stE=function(){nF.apply(this,arguments)};
_.R(stE,nF);stE.prototype.getAssociations=function(){return[]};_.u3E=new _.w("updateLocalAppSettingCommand");var tz8=new _.w("saveImageToDeviceEndpoint");var nPV=new _.w("shareImageCommand");var X08=new _.w("sharingProviderDataCommand");var bH5=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(bH5,_.eD);var rI0=[0,_.Li,-1];bH5.prototype.JSC$10114_serializeBinary=R01(rI0);var F_V=_.D3(rI0);var UtE=new _.w("userMentionSuggestionRenderer");var $tE=new _.w("liveChatTunnelCommand");var K_W=new _.w("showSponsorshipsGiftOfferDialogCommand");var OHZ=new _.w("sponsorshipsScrollableShelfViewModel");var gPE=new _.w("updateUpcomingEventReminderButtonStateCommand");var RDT=new _.w("upcomingEventReminderButtonStateRenderer");var lEi=new _.w("subscribeEndpoint");var EPV=new _.w("registerTasksCommand");var NFV=new _.w("showDialogCommand");_.Dx=new _.w("showSheetCommand");var IEE=function(){nF.apply(this,arguments)};
_.R(IEE,nF);IEE.prototype.getAssociations=function(){return[]};_.hz=new _.w("avatarViewModel");var a8F=new _.w("badgeViewModel");_.ri=new _.w("buttonViewModel");_.IU=new _.w("chipViewModel");var xUw=new _.w("contentPreviewImageViewModel");var jkh=new _.w("decoratedAvatarViewModel");var UGI=new _.w("downloadButtonViewModel");_.Boa=new _.w("engagementBarViewModel");_.cpa=new _.w("imageBannerViewModel");var z3a=new _.w("lockupContentMetadataRowExtension");var p0i=new _.w("lockupMetadataViewModel");var PAE=new _.w("lockupViewModel");var JIi=function(){nF.apply(this,arguments)};
_.R(JIi,nF);JIi.prototype.getAssociations=function(){return[]};_.VzQ=new _.w("pageHeaderViewModel");_.F5=new _.w("toggleButtonViewModel");var CAi=function(){nF.apply(this,arguments)};
_.R(CAi,nF);CAi.prototype.getAssociations=function(){return[]};_.H0H=new _.w("votingViewModel");var Qti=new _.w("sectionHeaderViewModel");var AIE=new _.w("notifyDropdownOptionSelectedCommand");var hmE=new _.w("listViewModel");_.zZ=new _.w("listItemViewModel");var hD0=new _.w("dialogHeaderViewModel");var BF8=function(){nF.apply(this,arguments)};
_.R(BF8,nF);BF8.prototype.getAssociations=function(){return[]};var HHi=function(){nF.apply(this,arguments)};
_.R(HHi,nF);HHi.prototype.getAssociations=function(){return[]};var L_3=function(){nF.apply(this,arguments)};
_.R(L_3,nF);L_3.prototype.getAssociations=function(){return[]};_.vPT=new _.w("transcriptSubmitCaptionCorrectionCommand");var dt0=function(){nF.apply(this,arguments)};
_.R(dt0,nF);dt0.prototype.getAssociations=function(){return[]};var GvI=new _.w("unpluggedStringRunImage");var SUV=new _.w("tabViewModel");var TF2=new _.w("tabbedViewModel");var aEZ=function(){nF.apply(this,arguments)};
_.R(aEZ,nF);aEZ.prototype.getAssociations=function(){return[]};_.xtE=new _.w("updateDescriptionAction");var iH5=new _.w("updateToggleButtonTextAction");_.Mz5=new _.w("autoplaySwitchButtonRenderer");var PU;_.eDi=new _.w("multiMarkersPlayerBarRenderer");PU=new _.w("chapterRenderer");var w0i=new _.w("heatMarkerRenderer");var tCh=new _.w("heatmapRenderer");var qUE=new _.w("smartSkipPlayerScrimOverlayRenderer");var kRQ=new _.w("timedMarkerDecorationRenderer");var Ect=new _.w("postWebToNativeMessageCommand");var jxQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(jxQ,_.eD);var ytm=_.o$(jxQ,[0,_.Li,-2]);var WBT=new _.w("whitelistEditEndpoint");var ctJ=new _.w("commerceActionCommand");_.ZAm=new _.w("getPaymentInstrumentsParamsCommand");var GIV=new _.w("getPaymentsClientTokenCommand");var frV=new _.w("googlePaymentBillingCommand");var oSm=new _.w("googlePaymentPurchaseManagerCommand");_.D73=new _.w("logGtmCommand");var zZT=new _.w("updateCardItemOnClickCommand");_.YoV=new _.w("ypcPauseSubscriptionCommand");_.m7V=new _.w("ypcResumeSubscriptionCommand");var sx2=function(){nF.apply(this,arguments)};
_.R(sx2,nF);sx2.prototype.getAssociations=function(){return[]};var uq8=function(){nF.apply(this,arguments)};
_.R(uq8,nF);uq8.prototype.getAssociations=function(){return[]};var t_m=function(){nF.apply(this,arguments)};
_.R(t_m,nF);t_m.prototype.getAssociations=function(){return[]};var nS2=function(){nF.apply(this,arguments)};
_.R(nS2,nF);nS2.prototype.getAssociations=function(){return[]};var XjE=function(){nF.apply(this,arguments)};
_.R(XjE,nF);XjE.prototype.getAssociations=function(){return[]};var e3g=new _.w("ypcOffersEndpoint");var bAV=new _.w("cardItemRenderer"),rtV=new _.w("cardItemTextRenderer");var FBV=new _.w("commerceCartItemQuantityPickerRenderer");var U7Q=new _.w("linkCardRenderer");var UbE=new _.w("quantityIncrementerButtonViewModel");var $73=new _.w("quantityIncrementerViewModel");var KBE=new _.w("themedImageViewModel");_.OAT=new _.w("ypcCancelRecurrenceEndpoint");var gSZ=new _.w("ypcCompleteTransactionEndpoint");_.RZm=new _.w("ypcGetCartEndpoint");_.kY=new _.w("ypcGetOffersEndpoint");_.pF=new _.w("ypcHandleTransactionEndpoint");var lrW=new _.w("ypcLogWalletAnalyticDataEndpoint");_.EST=new _.w("ypcRedeemCodeEndpoint");var NUV=new _.w("ypcUpdateFopEndpoint");ME(iO(1),aY(4));PfW((new MessageChannel).port2);var Iri=function(){this.register=new Map},KA1=function(y,W,c){y=y+"_"+W;
Pv.register.has(y)?c=Pv.register.get(y):(c=c(),Pv.register.set(y,c));return c},pjJ=function(y){y=_.z(y.register.values());
for(var W=y.next();!W.done;W=y.next())_.Y3(W.value,"ABORTED")};
Iri.prototype.clear=function(){pjJ(this);this.register.clear()};
var Pv=new Iri;var yJE=Date.now().toString();var cJy,P$V=_.DH.ytLoggingDocDocumentNonce_;P$V||(P$V=Ri(16),_.LR("ytLoggingDocDocumentNonce_",P$V));cJy=P$V;var mDh={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 JtT;JtT=1;_.lM=function(y){this.veData=y};
_.Dz=function(y){return new _.lM({trackingParams:y})};
_.se=function(y,W,c,Z,G,D){var Y=JtT++;return new _.lM({veType:y,veCounter:Y,elementIndex:c,dataElement:W,youtubeData:Z,jspbYoutubeData:G,loggingDirectives:D})};
_.f=_.lM.prototype;
_.f.getAsJson=function(){var y={};this.veData.trackingParams!==void 0?y.trackingParams=this.veData.trackingParams:(y.veType=this.veData.veType,this.veData.veCounter!==void 0&&(y.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(y.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(y.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(y.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(y.isCounterfactual=!0);
return y};
_.f.getAsJspb=function(){var y=new NJ5;this.veData.trackingParams!==void 0?y.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.pi(y,2,this.veData.veType),this.veData.veCounter!==void 0&&_.pi(y,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.pi(y,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.GY(y,5,!0));if(this.veData.dataElement!==void 0){var W=this.veData.dataElement.getAsJspb();_.uF(y,7,W)}this.veData.youtubeData!==void 0&&_.uF(y,8,this.veData.jspbYoutubeData);
return y};
_.f.toString=function(){return JSON.stringify(this.getAsJson())};
_.f.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.f.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.LR("yt_logging_screen.getRootVeType",DDy);_.LR("yt_logging_screen.getCurrentCsn",_.NR);_.LR("yt_logging_screen.getCttAuthInfo",Ii);_.LR("yt_logging_screen.setCurrentScreen",_.tXI);var V_W=function(){this.events=new Map},C$Z=function(y){var W=[];
y=_.z(y.events.values());for(var c=y.next();!c.done;c=y.next())W.push(c.value);return W};
V_W.prototype.clear=function(){this.events.clear()};var AtE=function(){this.logTransport=new QxE;this.loggedEventRegister=new V_W;this.unloggedEventRegister=new V_W;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10169_flushTimer=new _.wJ(this.flushInterval);this.JSC$10169_flushTimer.listen("tick",this.flush,!1,this)};
AtE.prototype.flush=function(){if(this.eventsCount){var y={loggedEvents:C$Z(this.loggedEventRegister),unloggedEvents:C$Z(this.unloggedEventRegister)};if(_.O("export_player_version_to_ytconfig")){var W;(W=_.Nn("PLAYER_CLIENT_VERSION"))?(W=W.split("-")[0].replace(/\./g,""),W=isNaN(Number(W))?"0":W):W="";var c=_.Nn("PLAYER_CLIENT_VERSION");if(c){c=c.split("-");var Z="";c.length>1&&(Z=c[c.length-1]);c=jOH(Z.startsWith("canary_experiment")?"canary":Z.startsWith("canary_control")?"control":"none")}else c=
"CLIENT_CANARY_STATE_UNKNOWN";y.dimensions={playerClientVersion:W,playerCanaryState:c}}this.logTransport.flush(y);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10169_flushTimer.enabled&&this.JSC$10169_flushTimer.stop()}};
var hZ2=function(y){JA==null&&(JA=new AtE);var W=JA;var c=W.loggedEventRegister;y.dimensions=y.dimensions||{};y.dimensions.csn=_.NR()||"";var Z=njH(y.dimensions).join(";");if(y.records!=null)if(c.events.has(Z)){var G;(G=c.events.get(Z).records)==null||G.push.apply(G,_.No(y.records))}else c.events.set(Z,y);W.JSC$10169_flushTimer.enabled||W.JSC$10169_flushTimer.start();W.eventsCount++;W.eventsCount>=100&&W.flush()};var QxE=function(){};
QxE.prototype.flush=function(y,W){_.O("enable_client_sli_logging")&&_.$g("sliEventBatch",y,{sendIsolatedPayload:!!W})};var JA;var HA8;HA8=function(y){var W=BU2;y=y===void 0?{}:y;W=W.name;var c=$DH("SUCCESS");hZ2({dimensions:y,records:[{name:W,state:"SLI_STATE_END",status:c}]})};
_.OUh=function(y,W,c,Z){this.name=y;this.sliId=W;this.timeoutMs=c;this.statusOnTimeout=Z;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.OUh.prototype.getId=function(){return this.sliId};
_.zy=function(y,W){W=W===void 0?{}:W;y.ongoing||(y.ongoing=!0,y.dimensions=W,y.logSliId=Wt2(),hZ2({dimensions:y.dimensions,records:[{name:y.name,state:"SLI_STATE_START",sliId:y.logSliId}]}),y.timeoutMs>0&&(y.timeoutHandle=setTimeout(function(){_.Y3(y,y.statusOnTimeout)},y.timeoutMs)))};
_.Y3=function(y,W){y.ongoing&&(y.timeoutMs>0&&clearTimeout(y.timeoutHandle),y.ongoing=!1,W={dimensions:y.dimensions,records:[{name:y.name,status:$DH(W),state:"SLI_STATE_END",sliId:y.logSliId}]},Pv.register.delete(y.name+"_"+y.sliId),hZ2(W))};var BU2=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var LBV=function(){nF.apply(this,arguments)};
_.R(LBV,nF);LBV.prototype.getAssociations=function(){return[]};var xeg=new _.w("highlightTextDecoratorColorMapExtension");var Tmg=new _.w("styleRunColorMapExtension");var piy=_.dl(["data-"]),VXF={};var QOf={};_.Qn=function(y,W,c){_.yw.call(this,y+", errorCode="+W);this.errorCode=W;this.xhr=c;this.name="PromiseAjaxError"};
_.R(_.Qn,_.yw);var LAy=function(y){this.xhr=y};var Vz=function(y){this.wrappedPromise_=y===void 0?null:y;this.state_=0;this.JSC$10201_value_=null};
Vz.prototype.then=function(y,W,c){return this.wrappedPromise_?this.wrappedPromise_.then(y,W,c):this.state_===1&&y?(y=y.call(c,this.JSC$10201_value_))&&typeof y.then==="function"?y:_.CF(y):this.state_===2&&W?(y=W.call(c,this.JSC$10201_value_))&&typeof y.then==="function"?y:_.vS8(y):this};
Vz.prototype.getValue=function(){return this.JSC$10201_value_};
Vz.prototype.isRejected=function(){return this.state_==2};
VLE(Vz);_.vS8=function(y){var W=new Vz;y=y===void 0?null:y;W.state_=2;W.JSC$10201_value_=y===void 0?null:y;return W};
_.CF=function(y){var W=new Vz;y=y===void 0?null:y;W.state_=1;W.JSC$10201_value_=y===void 0?null:y;return W};var HUH={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var ceO="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var d7E=["load","abort","error"],Qz=function(y,W,c){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10221_maxAspectRatio_=y;this.disableAnimation_=W===void 0?!1:W;this.disableExifRotation_=c===void 0?!1:c;this.JSC$10221_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10221_reject_=this.resolve_=null};
Qz.prototype.transform=function(y){var W=this;this.mime_=y.type;HP(KD0(y),this.dataUrlRead_,this.readError_,this);HP($Mi(y.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(c,Z){W.resolve_=c;W.JSC$10221_reject_=Z})};
Qz.prototype.dataUrlRead_=function(y){this.dataUrl_=y;this.angle_!=null&&SoQ(this)};
Qz.prototype.exifRead_=function(y){if(this.disableExifRotation_)this.angle_=0;else{a:if(y=new DataView(y),y.byteLength<2||y.getUint16(0)!==65496)y=-2;else{for(var W=2,c=y.byteLength;W<c;){var Z=y.getUint16(W),G=y.getUint16(W+2);if(Z===65505){W+=4;Z=y.getUint32(W);G=y.getUint16(W+4);if(Z!==1165519206||G!==0)break;W+=6;Z=y.getUint16(W)===18761;W+=y.getUint32(W+4,Z);G=y.getUint16(W,Z);W+=2;for(var D=0;D<G;D++){if(y.getUint16(W,Z)===274){W+=8;y=y.getUint16(W,Z);break a}W+=12}}else if(Z>>8!==255)break;
else W+=G+2}y=-1}switch(y){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&&SoQ(this)};
Qz.prototype.readError_=function(){this.JSC$10221_reject_()};
var SoQ=function(y){fN(y.JSC$10221_image_,d7E,y.completeTransform_,!1,y);y.JSC$10221_image_.src=_.Jn(y.dataUrl_).toString();y.JSC$10221_image_.src!=PX.toString()&&y.JSC$10221_image_.src.substr(0,11)==="data:image/"||y.JSC$10221_reject_()};
Qz.prototype.completeTransform_=function(){if(this.JSC$10221_image_.src!=PX.toString()){var y=_.Jn(this.dataUrl_),W=this.JSC$10221_image_.naturalHeight?this.JSC$10221_image_.naturalWidth/this.JSC$10221_image_.naturalHeight:null;this.invalidAspectRatio=W>this.JSC$10221_maxAspectRatio_||W<1/this.JSC$10221_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var c=this.JSC$10221_image_.naturalWidth,Z=this.JSC$10221_image_.naturalHeight,G=W=0,D=this.JSC$10221_image_.naturalHeight?this.JSC$10221_image_.naturalWidth/
this.JSC$10221_image_.naturalHeight:null;D>this.JSC$10221_maxAspectRatio_?(c=this.JSC$10221_maxAspectRatio_*Z,W=(c-this.JSC$10221_image_.naturalWidth)/2,this.cropped=!0):D<1/this.JSC$10221_maxAspectRatio_?(Z=this.JSC$10221_maxAspectRatio_*c,G=(Z-this.JSC$10221_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)D=c,c=Z,Z=D,D=W,W=G,G=D;switch(this.angle_){case 90:G-=c;break;case 180:W-=c;G-=Z;break;case 270:W-=
Z}this.cropped||this.angle_%360!==0?(y=document.createElement("canvas"),y.width=c||1,y.height=Z||1,this.JSC$10221_image_.naturalWidth&&this.JSC$10221_image_.naturalHeight&&(c=y.getContext("2d"),c.rotate(Math.PI/180*this.angle_),c.drawImage(this.JSC$10221_image_,W,G,this.JSC$10221_image_.naturalWidth,this.JSC$10221_image_.naturalHeight)),this.transformedData=_.Jn(y.toDataURL(this.mime_))):this.transformedData=y}else this.transformedData=y;this.resolve_(this)}};var AA=function(y,W){_.D9.call(this,y);this.value=W};
_.R(AA,_.D9);
var hA=function(y,W,c,Z,G,D,Y){Y=Y===void 0?!1:Y;_.uU.call(this);var u=this;this.JSC$10226_url_=y;this.channelId_=W;this.maxFileSizeMb_=c;this.JSC$10226_maxAspectRatio_=Z;this.dropZoneEl_=G;this.rejectInvalidAspectRatio_=Y;this.selectButtonEl_=D;this.JSC$10226_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new cv(this.dropZoneEl_);this.selectOverlay_=new Zu(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10226_image_=this.transfer_=null;this.handler_=new _.q4(this);_.zY(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(D,"click",function(){u.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.R(hA,_.uU);hA.prototype.disposeInternal=function(){for(var y=this.selectButtonEl_.nextSibling;y&&y.parentNode&&y.tagName=="INPUT";)y.parentNode.removeChild(y),y=this.selectButtonEl_.nextSibling;this.cancel();_.uU.prototype.disposeInternal.call(this)};
hA.prototype.uploadPromise=function(){if(this.JSC$10226_image_==null)return null;this.uploadPromise_||TUV(this);return this.uploadPromise_};
hA.prototype.cancel=function(){arE(this);this.JSC$10226_image_=null};
var arE=function(y){y.transfer_&&y.transfer_.cancel();y.transfer_=null;y.uploadPromise_=null;y.resolve_=null;y.JSC$10226_reject_=null},TUV=function(y){arE(y);
y.transfer_=_.HdE(y.JSC$10226_url_,{"X-YouTube-ChannelId":y.channelId_},y.JSC$10226_image_);y.handler_.listenOnce(y.transfer_,"l",y.JSC$10228_onUploadComplete_);y.handler_.listenOnce(y.transfer_,"n",y.onUploadError_);y.transfer_.run();y.uploadPromise_=new Promise(function(W,c){y.resolve_=W;y.JSC$10226_reject_=c})};
_.f=hA.prototype;_.f.onChange_=function(y){y.files.length&&(this.JSC$10226_image_=y.files[0],this.JSC$10226_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10226_image_=null,this.dispatchEvent(new AA("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(TUV(this),(new Qz(this.JSC$10226_maxAspectRatio_)).transform(this.JSC$10226_image_).then((0,_.$r)(this.onPreview_,this),(0,_.$r)(this.onPreviewError_,this))))};
_.f.onPreview_=function(y){if(y.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10226_image_=null),this.dispatchEvent(new AA("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;y.cropped&&this.dispatchEvent(new AA("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new AA("yt.comments.ImageUploadOverlay.CHANGE_EVENT",y.transformedData))};
_.f.onPreviewError_=function(){this.JSC$10226_image_=null;this.dispatchEvent(new AA("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.f.onHover_=function(y){y.stopPropagation();y.preventDefault();if(y.type==="dragover")y=!0;else if(y.type==="dragleave")y=!1;else return;this.dispatchEvent(new AA("yt.comments.ImageUploadOverlay.HOVER_EVENT",y))};
_.f.JSC$10228_onUploadComplete_=function(){var y=(0,_.ZgE)(this.transfer_.getResponseText());this.resolve_(y.encryptedBlobId)};
_.f.onUploadError_=function(){this.JSC$10226_reject_();arE(this)};var x78=function(y){y=y||{};var W={},c={};this.url=y.url||"";this.args=y.args||_.Eb.clone(W);this.assets=y.assets||{};this.attrs=y.attrs||_.Eb.clone(c);this.fallback=y.fallback||null;this.fallbackMessage=y.fallbackMessage||null;this.html5=!!y.html5;this.disable=y.disable||{};this.loaded=!!y.loaded;this.messages=y.messages||{}};
x78.prototype.clone=function(){var y=new x78,W;for(W in this)if(this.hasOwnProperty(W)){var c=this[W];y[W]=_.zEO(c)=="object"?_.Eb.clone(c):c}return y};var iAZ,M_Z,eZ8,Mv,qoW,kI8,jZT,yyE,WW2,cyJ,ZBT,G6W,f$2,on2,D02,zrm,YsE,m0E,sZE,u_8,tc5,nn0,X8W,bBE,ryV,FWJ,U0J,$0i,KWV,CrO,OBE,gnJ,Rr5,l$V,EnW,N$Z,I$Z,p8Z,PuV,Jy3,Vc0,CuZ,QZm,AyJ,hrW,B$E,HBZ,LWW,vnE,d0i,SsJ,T$i,a$3,x0V,iBQ,McV,Bv,er0,w8V,qsV,k6Z,j6E,yZm,WKZ,cZQ,Z4E,Gpi,ffV,os5,D6E,z5W,YOE,m6Z,s6W,uK5,JgD,tiQ,nsi,X22,b48,rZm,FKV,U6V,$6m,KK8,O4V,gsQ,R5T,lfW,EsJ,NYW,IfV,p2T,PZm,JZ2,Vii,CZm,Q6Q,AZJ,h5T,BY3;iAZ=["account/accounts_list"];M_Z=["acknowledge_channel_tou_strike"];eZ8=["notification/add_upcoming_event_reminder"];
_.wjE=["att/get"];Mv=["browse","music/browse","unplugged/browse"];qoW=["channel/claim_legacy_youtube_channel"];kI8=["history/clear_search_history"];jZT=["history/clear_watch_history"];yyE=["comment/perform_comment_action"];WW2=["comment/get_comment_replies"];cyJ=["ypc/commerce_action"];ZBT=["backstage/create_post"];G6W=["live/create_broadcast"];f$2=["channel/create_channel"];on2=["comment/create_comment_reply"];D02=["comment/create_comment"];zrm=["live_chat/create_poll"];YsE=["playlist/create"];
m0E=["decorate_message"];sZE=["live_chat/delete_message"];u_8=["playlist/delete"];tc5=["video/delete"];nn0=["like/dislike"];X8W=["dismissal/dismiss"];bBE=["flag/flag"];ryV=["flow"];FWJ=["account/account_menu"];U0J=["playlist/get_add_to_playlist"];$0i=["get_answer"];KWV=["channel/get_channel_creation_form"];CrO=["offline/get_download_action"];OBE=["kids/get_kids_blocklist_picker"];gnJ=["live_chat/get_item_context_menu"];Rr5=["live_chat/get_live_chat_message_buy_flow"];l$V=["live_chat/get_live_chat_replay"];
EnW=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];N$Z=["live_chat/get_live_chat_super_sticker_buy_flow"];I$Z=["notification/get_notification_menu"];p8Z=["playlist/get_settings_editor"];PuV=["backstage/get_post_video_preview"];Jy3=["account/get_profile_card"];Vc0=["share/get_share_panel"];CuZ=["share/get_sharing_provider_data"];QZm=["get_survey"];AyJ=["notification/get_unseen_count"];hrW=["get_user_mention_suggestions"];B$E=["get_watch"];HBZ=["guide"];
LWW=["feedback"];vnE=["kids/update_blacklist"];d0i=["like/like"];SsJ=["live_chat/live_chat_action"];T$i=["live_chat/manage_user"];a$3=["video_manager/metadata_update"];x0V=["live_chat/moderate"];iBQ=["notification/modify_channel_preference"];McV=["notification/opt_out"];Bv=["get_panel","get_posts_by_host_panel"];er0=["player"];w8V=["browse/edit_playlist"];qsV=["notification/record_interactions"];k6Z=["reel/reel_item_watch"];j6E=["reel/reel_watch_sequence"];yZm=["like/removelike"];WKZ=["notification/remove_upcoming_event_reminder"];
cZQ=["flag/get_form"];Z4E=["miniapp/report_value"];Gpi=["navigation/resolve_url"];ffV=["channel/reveal_business_email"];os5=["in_video/search"];D6E=["search","sfv/search","unplugged/search"];z5W=["live_chat/send_message"];YOE=["live_chat/send_live_chat_vote"];m6Z=["account/set_setting"];s6W=["submit_caption_correction"];uK5=["subscription/subscribe"];JgD=["get_transcript"];tiQ=["resolve_location","unplugged/resolve_location"];nsi=["subscription/unsubscribe"];X22=["backstage/update_post"];b48=["channel_edit/update_channel_page_settings"];
rZm=["comment/update_comment_reply"];FKV=["comment/update_comment"];U6V=["comment/update_comments_settings"];$6m=["creator/update_creator_channel"];KK8=["pdg/update_enablement"];O4V=["updated_metadata"];gsQ=["channel_edit/validate_channel_handle"];R5T=["verify_age"];lfW=["next","unplugged/watch_next"];EsJ=["whitelist/edit"];NYW=["ypc/cancel_recurrence"];IfV=["ypc/complete_transaction"];p2T=["ypc/get_cart"];PZm=["ypc/get_fix_instrument_params"];JZ2=["ypc/get_offers"];Vii=["ypc/get_payment_instruments_params"];
CZm=["ypc/handle_transaction"];Q6Q=["ypc/log_payment_server_analytics"];AZJ=["ypc/pause_subscription"];h5T=["ypc/redeem_code"];BY3=["ypc/resume_subscription"];var H48=[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,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 Xr=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.LR("yt.msgs_",Xr);var Hv=new _.Sm("ACTION_ROUTER_TOKEN");_.LF=function(){this.autonavState_=_.O("kevlar_is_pupi_enabled")?2:nK1()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.LF.prototype.getState=function(){return this.autonavState_};
_.LF.prototype.pause=function(y){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=y):this.autonavState_==1&&(this.disabledAutonavPauseReason_=y)};
_.LF.prototype.setState=function(y,W,c){W&&(this.autoplayChangedByUser=!0);W=this.autonavState_===3||y===3;this.autonavState_!=y&&(this.autonavState_=y,y!=3&&_.Xs1(y==2),y=_.O("kevlar_is_pupi_enabled")?c||W:!0,_.Q8.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,y,c))};
_.LF.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.qa(_.LF);var vv=function(){this.hasRun=!1};var dR={},INE=(dR.auto_search="LATENCY_ACTION_AUTO_SEARCH",dR.ad_to_ad="LATENCY_ACTION_AD_TO_AD",dR.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",dR.app_startup="LATENCY_ACTION_APP_STARTUP",dR.browse="LATENCY_ACTION_BROWSE",dR.cast_splash="LATENCY_ACTION_CAST_SPLASH",dR.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",dR.channels="LATENCY_ACTION_CHANNELS",dR.chips="LATENCY_ACTION_CHIPS",dR.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",dR.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
dR.editor="LATENCY_ACTION_EDITOR",dR.embed="LATENCY_ACTION_EMBED",dR.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",dR.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",dR.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",dR.explore="LATENCY_ACTION_EXPLORE",dR.favorites="LATENCY_ACTION_FAVORITES",dR.home="LATENCY_ACTION_HOME",dR.inboarding="LATENCY_ACTION_INBOARDING",dR.landing="LATENCY_ACTION_LANDING",dR.library="LATENCY_ACTION_LIBRARY",dR.live=
"LATENCY_ACTION_LIVE",dR.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",dR.management="LATENCY_ACTION_MANAGEMENT",dR.mini_app="LATENCY_ACTION_MINI_APP_PLAY",dR.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",dR.onboarding="LATENCY_ACTION_ONBOARDING",dR.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",dR.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",dR.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",dR.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
dR.prebuffer="LATENCY_ACTION_PREBUFFER",dR.prefetch="LATENCY_ACTION_PREFETCH",dR.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",dR.profile_switcher="LATENCY_ACTION_LOGIN",dR.projects="LATENCY_ACTION_PROJECTS",dR.reel_watch="LATENCY_ACTION_REEL_WATCH",dR.results="LATENCY_ACTION_RESULTS",dR.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",dR.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",dR.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",dR.review="LATENCY_ACTION_REVIEW",dR.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",dR.search_ui="LATENCY_ACTION_SEARCH_UI",dR.search_suggest="LATENCY_ACTION_SUGGEST",dR.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",dR.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",dR.seek="LATENCY_ACTION_PLAYER_SEEK",dR.settings="LATENCY_ACTION_SETTINGS",dR.store="LATENCY_ACTION_STORE",dR.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",dR.tenx="LATENCY_ACTION_TENX",dR.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",dR.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
dR.watch="LATENCY_ACTION_WATCH",dR.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",dR["watch,watch7"]="LATENCY_ACTION_WATCH",dR["watch,watch7_html5"]="LATENCY_ACTION_WATCH",dR["watch,watch7ad"]="LATENCY_ACTION_WATCH",dR["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",dR.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",dR.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",dR.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",dR.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",dR.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",dR.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",dR.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",dR.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",dR);var M0H=function(y,W){tJ.call(this,1,arguments);this.timer=W};
_.R(M0H,tJ);var iGw=new Z6w("aft-recorded",M0H);var V0I=_.DH.ytLoggingGelSequenceIdObj_||{};_.LR("ytLoggingGelSequenceIdObj_",V0I);var Sx=_.DH.ytLoggingLatencyUsageStats_||{};_.LR("ytLoggingLatencyUsageStats_",Sx);var TS=function(){this.cleanupJob=0},Aea=function(){TS.instance||(TS.instance=new TS);
return TS.instance};
_.f=TS.prototype;_.f.baseline=function(y,W,c){aU(this,"baseline_"+y)||_.$g("latencyActionBaselined",{clientActionNonce:y},{timestamp:W,cttAuthInfo:c})};
_.f.tick=function(y,W,c,Z){aU(this,"tick_"+y+"_"+W)||_.$g("latencyActionTicked",{tickName:y,clientActionNonce:W},{timestamp:c,cttAuthInfo:Z})};
_.f.info=function(y,W,c){var Z=Object.keys(y).join("");aU(this,"info_"+Z+"_"+W)||(y=Object.assign({},y),y.clientActionNonce=W,_.$g("latencyActionInfo",y,{cttAuthInfo:c}))};
_.f.jspbInfo=function(y,W,c){for(var Z="",G=0;G<RH(y).length;G++)RH(y)[G]!==void 0&&(Z=G===0?Z.concat(""+G):Z.concat("_"+G));aU(this,"info_"+Z+"_"+W)||(_.Ub(y,2,W),W={cttAuthInfo:c},c=_.O("jspb_sparse_encoded_pivot")?new nD([{}]):new nD,_.tn(c,7,SLT,y),C_H("latencyActionInfo",c,W))};
_.f.span=function(y,W,c){var Z=Object.keys(y).join("");aU(this,"span_"+Z+"_"+W)||(y.clientActionNonce=W,_.$g("latencyActionSpan",y,{cttAuthInfo:c}))};
var aU=function(y,W){Sx[W]=Sx[W]||{count:0};var c=Sx[W];c.count++;c.time=(0,_.Tj)();y.cleanupJob||(y.cleanupJob=_.Xc(_.KX,function(){var Z=(0,_.Tj)(),G;for(G in Sx)Sx[G]&&Z-Sx[G].time>6E4&&delete Sx[G];y&&(y.cleanupJob=0)},5E3));
return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new _.ul("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||_.Rs(c)),!0):!1};var LKV,vsT;LKV=window;vsT=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Oc=LKV.performance||LKV.mozPerformance||LKV.msPerformance||LKV.webkitPerformance||new vsT;var xhO=!1,BHh=!1,egH=(0,_.$r)(_.Oc.clearResourceTimings||_.Oc.webkitClearResourceTimings||_.Oc.mozClearResourceTimings||_.Oc.msClearResourceTimings||_.Oc.oClearResourceTimings||_.me,_.Oc);var d62=window;d62.ytcsi&&(d62.ytcsi.infoGel=_.IP,d62.ytcsi.tick=_.PA);var z8F=function(y){tJ.call(this,1,arguments);this.csn=y};
_.R(z8F,tJ);var zPI=new Z6w("screen-created",z8F),R8I=[],oHy=gHa,lTw=0,AE=new Map,Yuh=new Map,mED=new Map;var vGI=Symbol("vf"),xA=new WeakMap;var xI=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},GP=function(){xI.instance||(xI.instance=new xI);
return xI.instance};
_.f=xI.prototype;_.f.setClient=function(y){this.client=y};
_.f.JSC$10308_newScreen=function(){this.clear();this.csn=_.NR()};
_.f.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.f.reportShown=function(y,W,c){var Z=this.JSC$10308_getTrackingParams(y),G=y.visualElement?y.visualElement:Z;W=this.shownElements.has(G);var D=this.visibleState.get(G);this.shownElements.add(G);this.visibleState.set(G,!0);y.impressionLog&&!W&&y.impressionLog();if(Z||y.visualElement)if(c=SOW(this,y,c))if(G=TY5(this,y),iX(this,y)||G){Z=y.visualElement?y.visualElement:_.Dz(Z);var Y=y.interactionLoggingClientData;G||W?iX(this,y)&4?D||FXF(this.client,c,Z,Y):iX(this,y)&1&&!W&&X_E(this.client,c,Z,Y):X_E(this.client,
c,Z,Y)}};
_.f.reportHidden=function(y,W,c){var Z=this.JSC$10308_getTrackingParams(y),G=y.visualElement?y.visualElement:Z;W=this.hiddenElements.has(G);var D=this.visibleState.get(G);this.hiddenElements.add(G);this.visibleState.set(G,!1);if(D===!1)return!0;if(!Z&&!y.visualElement)return!1;c=SOW(this,y,c);if(!c||!iX(this,y)&&TY5(this,y))return!1;Z=y.visualElement?y.visualElement:_.Dz(Z);iX(this,y)&8?UED(this.client,c,Z):iX(this,y)&2&&!W&&(y=this.client,W=Qu({cttAuthInfo:Ii(c)||void 0},c),Z={csn:c,ve:Z.getAsJson(),
eventType:2},c==="UNDEFINED_CSN"?BA("visualElementHidden",W,Z):y?Fc("visualElementHidden",Z,y,W):_.$g("visualElementHidden",Z,W));return!0};
_.f.JSC$10308_getTrackingParams=function(y){var W=this.getData(y),c,Z;if(_.O("il_use_view_model_logging_context")&&(W==null?0:(c=W.context)==null?0:(Z=c.loggingContext)==null?0:Z.loggingDirectives))return W.context.loggingContext.loggingDirectives.trackingParams||"";var G,D;if(W==null?0:(G=W.rendererContext)==null?0:(D=G.loggingContext)==null?0:D.loggingDirectives)return W.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(W==null?0:W.loggingDirectives)return W.loggingDirectives.trackingParams||
"";var Y;return((Y=y.veContainer)==null?0:Y.trackingParams)?y.veContainer.trackingParams:(W==null?void 0:W.trackingParams)||""};
_.f.JSC$10308_elementShouldLogGesture=function(y,W){y=this.getData(y);return!!((Math.floor(Number(y&&y.loggingDirectives&&y.loggingDirectives.gestures&&y.loggingDirectives.gestures.types||""))||0)&W)};
_.f.JSC$10308_getNearestParentVe=function(y){var W=this.JSC$10308_getTrackingParams(y);return y.visualElement?y.visualElement:W?_.Dz(W):y.parentElement?this.JSC$10308_getNearestParentVe(y.parentElement):null};
var SOW=function(y,W,c){var Z=_.NR(c);return y.csn===null||Z===y.csn||c?Z:(y=new _.ul("VisibilityLogger called before newScreen",{caller:W.tagName,previous_csn:y.csn,current_csn:Z}),_.Rs(y),null)};
xI.prototype.getData=function(y){var W,c=y.data||((W=y.props)==null?void 0:W.data);if(y.isWebComponentWrapper){var Z;c=(Z=xA.get(y))==null?void 0:Z[vGI]}return c};
var TY5=function(y,W){var c;return!((c=y.getData(W))==null||!c.loggingDirectives)},iX=function(y,W){y=y.getData(W);
return Math.floor(Number(y&&y.loggingDirectives&&y.loggingDirectives.visibility&&y.loggingDirectives.visibility.types||""))||1};var MY;MY=function(){};
_.Wh=function(){MY.instance||(MY.instance=new MY);return MY.instance};
MY.prototype.setClient=function(y){_.PI(GP().setClient).bind(GP())(y)};
_.af8=function(){_.Wh();_.PI(GP().JSC$10308_newScreen).bind(GP())()};
MY.prototype.clear=function(){_.PI(GP().clear).bind(GP())()};
MY.prototype.reportShown=function(y,W,c){_.PI(GP().reportShown).bind(GP())(y,W,c)};
MY.prototype.reportHidden=function(y,W,c){return _.PI(GP().reportHidden).bind(GP())(y,W,c)};
var LRF=function(y,W){return _.PI(GP().JSC$10308_getTrackingParams).bind(GP())(W)},dGa=function(y,W){return _.PI(GP().JSC$10308_getNearestParentVe).bind(GP())(W)};var ex,x6Z;ex=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};
_.Zz=function(){ex.instance||(ex.instance=new ex);return ex.instance};
ex.prototype.setClient=function(y){this.client=y};
x6Z=function(y,W,c){c=c===void 0?{}:c;_.PI(function(){var Z,G,D,Y=((Z=_.g(W==null?void 0:W.commandMetadata,_.kT))==null?void 0:Z.rootVe)||((G=_.g(W==null?void 0:W.commandMetadata,YME))==null?void 0:(D=G.screenVisualElement)==null?void 0:D.uiType);if(Y){Z=_.g(W==null?void 0:W.commandMetadata,auV);if(Z==null?0:Z.parentTrackingParams){var u=_.Dz(Z.parentTrackingParams);if(Z.parentCsn)var t=Z.parentCsn}else c.clickedVisualElement?u=c.clickedVisualElement:W.clickTrackingParams&&(u=_.Dz(W.clickTrackingParams));
a:{Z=_.g(W,_.Sb);G=_.g(W,FKI);if(Z){if(G=bGI(Z,"VIDEO")){Z={token:G,videoId:Z.videoId};break a}}else if(G&&(Z=bGI(G,"PLAYLIST"))){Z={token:Z,playlistId:G.playlistId};break a}Z=void 0}c=Object.assign({},{cttAuthInfo:Z,parentCsn:t},c);if(_.O("expectation_logging")){var b;c.loggingExpectations=((b=_.g(W==null?void 0:W.commandMetadata,YME))==null?void 0:b.loggingExpectations)||void 0}_.wR(y,Y,u,c)}else _.Rs(new _.ul("Error: Trying to create a new screen without a rootVeType",W))})()};
_.wR=function(y,W,c,Z){Z=Z===void 0?{}:Z;_.PI(function(){H48.includes(W)||(_.Rs(new _.ul("createClientScreen() called with a non-page VE",W)),W=83769);Z.isHistoryNavigation||(y.forwardHistoryStack=[],y.backHistoryStack.push({rootVe:W,key:Z.key||""}));y.graftQueue=[];y.stateChangedQueue=[];Z.dataPromises?i4V(y,W,c,Z):Mi3(y,W,c,Z)})()};
_.e5V=function(y,W,c){c=c===void 0?0:c;_.PI(function(){W.then(function(Z){y.pendingScreenCreation.has(c)&&y.pendingScreenFn&&y.pendingScreenFn();var G=_.NR(c),D=_.EL(c);if(G&&D){var Y;(Z==null?0:(Y=Z.response)==null?0:Y.trackingParams)&&hE(y.client,G,D,_.Dz(Z.response.trackingParams));var u;(Z==null?0:(u=Z.playerResponse)==null?0:u.trackingParams)&&hE(y.client,G,D,_.Dz(Z.playerResponse.trackingParams))}})})()};
ex.prototype.graftServerVe=function(y,W,c){var Z=this;return _.PI(function(){var G=_.Dz(y);_.qY(Z,G,W,c);return G})()};
_.S81=function(y,W,c,Z){return _.O("enable_client_ve_spec")&&W.clientVeSpec?(W=_.se(W.clientVeSpec.uiType,void 0,W.clientVeSpec.elementIndex,W.clientVeSpec.clientYoutubeData,void 0,W),_.qY(y,W,c,Z)?W:null):W.trackingParams?y.graftServerVe(W.trackingParams,c,Z):null};
_.ch=function(y,W,c,Z){return _.PI(function(){if(!W.veType)return _.gC(new _.ul("Error: Trying to graft a client VE without a veType.")),null;if(W.visibilityTypes){var G=W.visibilityTypes.reduce(function(D,Y){return D|Y});
G={visibility:{types:String(G)}}}G=_.se(W.veType,W.visualElement,W.elementIndex,W.clientYouTubeData,void 0,G);return _.qY(y,G,c,Z)?G:null})()};
_.qY=function(y,W,c,Z){Z=Z===void 0?0:Z;return _.PI(function(){if(y.pendingScreenCreation.has(Z))return y.graftQueue.push([W,c]),!0;var G=_.NR(Z),D=c||_.EL(Z);if(G&&D){if(_.O("combine_ve_grafts")){var Y=y.cachedVisualElements.get(D.toString());Y?Y.push(W):(y.cachedRootVisualElements.set(D.toString(),D),y.cachedVisualElements.set(D.toString(),[W]));y.attachTimeout||(y.attachTimeout=_.Xc(_.KX,function(){w2W(y,G)},1200))}else hE(y.client,G,D,W);
return!0}return!1})()};
_.kI=function(y,W,c){c=c===void 0?0:c;var Z=y.recurringGrafts.get(c)||new Map;if(_.O("smarter_ve_dedupping"))for(var G=Array.from(Z.keys()),D=0;D<G.length;D++){var Y=void 0,u=void 0;var t=W;var b=G[D];b.isClientVe()&&t.isClientVe()?(Y=t.getAsJson(),u=b.getAsJson(),t=Y.veType!==u.veType||Y.elementIndex!==u.elementIndex||Y.dataElement!==u.dataElement||t.getLoggingDirectives()!==b.getLoggingDirectives()?!1:!0):t=b.veData.trackingParams!==void 0&&t.veData.trackingParams!==void 0?((u=t.veData)==null?void 0:
u.trackingParams)===((Y=b.veData)==null?void 0:Y.trackingParams):!1;if(t)return}else if(Z.has(W))return;Z.set(W,void 0);y.recurringGrafts.set(c,Z);_.NR(c)==="UNDEFINED_CSN"||y.pendingScreenCreation.has(c)||_.qY(y,W,void 0,c)};
_.jz=function(y,W,c,Z){Z=_.NR(Z===void 0?0:Z);if(!Z)return!1;KXy(y.client,Z,W,c);return!0};
_.yk=function(y,W,c,Z){if(!W)return!1;Z=_.NR(Z===void 0?0:Z);if(!Z)return!1;KXy(y.client,Z,_.Dz(W),c);return!0};
_.lv=function(y,W){var c=W.getScreenLayer&&W.getScreenLayer();if(W.visualElement)return _.jz(y,W.visualElement,void 0,c);W=LRF(_.Wh(),W);return _.yk(y,W,void 0,c)};
ex.prototype.clickCommand=function(y,W,c){return _.yk(this,y.clickTrackingParams,W,c===void 0?0:c)};
ex.prototype.stateChanged=function(y,W,c){this.visualElementStateChanged(_.Dz(y),W,c===void 0?0:c)};
ex.prototype.visualElementStateChanged=function(y,W,c){c=c===void 0?0:c;c===0&&this.pendingScreenCreation.has(c)?this.stateChangedQueue.push([y,W]):this.logStateChanged(y,W,c)};
ex.prototype.logStateChanged=function(y,W,c){c=c===void 0?0:c;var Z=_.NR(c);y=y||_.EL(c);return Z&&y?(O7H(this.client,Z,y,W),!0):!1};
var i4V=function(y,W,c,Z){Z=Z===void 0?{}:Z;y.pendingScreenCreation.add(Z.layer||0);y.pendingScreenFn=function(){Mi3(y,W,c,Z);var Y=_.EL(Z.layer);if(Y){for(var u=_.z(y.graftQueue),t=u.next();!t.done;t=u.next())t=t.value,_.qY(y,t[0],t[1]||Y,Z.layer);Y=_.z(y.stateChangedQueue);for(u=Y.next();!u.done;u=Y.next())u=u.value,y.logStateChanged(u[0],u[1])}};
c||_.NR(Z.layer)||y.pendingScreenFn();if(Z.dataPromises)for(var G=_.z(Z.dataPromises),D=G.next();!D.done;D=G.next())_.e5V(y,D.value,Z.layer);else _.OP(Error("wf"))},Mi3=function(y,W,c,Z){Z=Z===void 0?{}:Z;
var G=void 0;Z.layer||(Z.layer=0);G=Z.parentLayer!==void 0?Z.parentLayer:Z.layer;var D=_.NR(G);G=_.EL(G);var Y=c||G,u;Y&&(Z.parentCsn!==void 0?u={clientScreenNonce:Z.parentCsn,visualElement:Y}:D&&D!=="UNDEFINED_CSN"&&(u={clientScreenNonce:D,visualElement:Y}));var t,b=_.Nn("EVENT_ID");D==="UNDEFINED_CSN"&&b&&(t={servletData:{serializedServletEventId:b}});_.O("combine_ve_grafts")&&D&&w2W(y,D);_.O("no_client_ve_attach_unless_shown")&&Y&&D&&nHf(Y,D);try{var r=_.sYI(y.client,W,u,Z.csnToClone,Z.cttAuthInfo,
t,Z.implicitGestureType,void 0,Z.loggingExpectations)}catch(l){_.NF(l,{rootVeType:W,rootVe:G,parentVisualElement:c,currentCsn:D,parentEl:u,csnToClone:Z.csnToClone});_.OP(l);return}_.tXI(r,W,Z.layer,Z.cttAuthInfo);D&&D!=="UNDEFINED_CSN"&&G&&!sOt(D)&&UED(y.client,D,G,!0);y.backHistoryStack[y.backHistoryStack.length-1]&&!y.backHistoryStack[y.backHistoryStack.length-1].csn&&(y.backHistoryStack[y.backHistoryStack.length-1].csn=r||"");_.IP({clientScreenNonce:r});_.af8();var F=_.EL(Z.layer);D&&D!=="UNDEFINED_CSN"&&
F&&(_.O("web_mark_root_visible")||_.O("music_web_mark_root_visible"))&&_.Ll(r,F);y.pendingScreenCreation.delete(Z.layer||0);y.pendingScreenFn=void 0;var K;(K=y.recurringGrafts.get(Z.layer))==null||K.forEach(function(l,N){l?_.qY(y,N,l,Z.layer):F&&_.qY(y,N,F,Z.layer)});
qO3(y)},qO3=function(y){for(var W=0;W<y.afterNewScreenOneOffJobs.length;W++){var c=y.afterNewScreenOneOffJobs[W];
try{c()}catch(Z){_.OP(Z)}}for(W=y.afterNewScreenOneOffJobs.length=0;W<y.afterNewScreenRecurringJobs.length;W++){c=y.afterNewScreenRecurringJobs[W];try{c()}catch(Z){_.OP(Z)}}},w2W=function(y,W){if(W===void 0)for(var c=YSO(),Z=0;Z<c.length;Z++)c[Z]!==void 0&&w2W(y,c[Z]);
else y.cachedVisualElements.forEach(function(G,D){(D=y.cachedRootVisualElements.get(D))&&_.uBH(y.client,W,D,G)}),y.cachedVisualElements.clear(),y.cachedRootVisualElements.clear(),y.attachTimeout=void 0};var W0=function(y){y=y===void 0?{layer:0}:y;this.hasRun=!1;this.createScreenConfig=y;y={};this.zWd=(y.response=!1,y.playerResponse=!1,y)};
_.R(W0,vv);W0.prototype.validate=function(y){return!(!y.data||!y.data.response&&!y.data.playerResponse)};
W0.prototype.handle=function(y){var W=_.Zz(),c=this.createScreenConfig.layer;y.data.response&&y.data.response.trackingParams&&!this.zWd.response&&(W.graftServerVe(y.data.response.trackingParams,void 0,c),this.zWd.response=!0);y.data.playerResponse&&y.data.playerResponse.trackingParams&&!this.zWd.playerResponse&&(W.graftServerVe(y.data.playerResponse.trackingParams,void 0,c),this.zWd.playerResponse=!0)};var c0=function(){this.cg=_.px();this.zW=[];this.lcS=0};
c0.prototype.processChunk=function(y){if(y){for(var W=_.z(this.zW),c=W.next();!c.done;c=W.next())c=c.value,c.validate(y)&&(c.handle(y),c.hasRun=!0);_.PA("np"+this.lcS);this.lcS++}};var c8E,yL0;_.km=function(y,W,c,Z,G,D,Y){Y=Y===void 0?[]:Y;this.buildCommandPayload=y;this.navigate=W;this.handleServiceRequest=c;this.sendAction=Z;this.JSC$10349_screenManager=G;this.commandResolverMap=D;this.autoLogResolverAllowlist=Y;this.pendingCommands=new Set};
c8E=function(y,W,c){var Z=d5D,G=Szt,D=_.Zz(),Y=kp3;c=c===void 0?[]:c;_.km.instance=new _.km(y,W,Z,G,D,Y,c)};
yL0=function(y,W,c){if(!y.commandResolverMap)return!1;var Z=POa(W,y.commandResolverMap);return Z?((y.autoLogResolverAllowlist.some(function(G){return!!_.g(W,G)})||(c==null?0:c.forceClickLogging))&&jwT(y,W,c),Z instanceof Promise?Z.then(function(G){G.resolve(W,c)}):Z.resolve(W,c),!0):!1};
_.km.prototype.resolveCommand=function(y,W){var c=this,Z=WgW(y);if(yL0(this,y,W))return!0;if(Z)return cL3(this,y,W);if(!this.buildCommandPayload)return Ntt(y,"Unhandled command by buildCommandPayload"),!1;var G=this.buildCommandPayload(y,W);if(W==null?0:W.commandController)G.commandController=W.commandController;if(G.type===0){if(!this.navigate)return ITa(y,"navigate"),!1;if(!Zn3(G.command))return Ntt(y,"Page requests need to specify a url"),!1;_.O("logging_avoid_blocking_during_navigation")&&_.xu1().transition("application_navigating");
y=this.navigate(G)||[];LVm(y).then(function(){c.pendingCommands.delete(G.command)});
return!0}if(G.type===1){if(!this.handleServiceRequest)return ITa(y,"handleServiceRequest"),!1;(W==null?0:W.forceClickLogging)&&jwT(this,G.command,W);y=this.handleServiceRequest(G);LVm(y).then(function(){c.pendingCommands.delete(G.command)});
return!0}if(G.type===2){if(!this.sendAction)return ITa(y,"sendAction"),!1;jwT(this,G.command,W);this.sendAction(G);return!0}return!1};
var jwT=function(y,W,c){if((c==null||!c.disableClickTracking)&&y.JSC$10349_screenManager)if(W.clickTrackingParams&&_.O("log_click_with_layer_from_element_in_command_handler")){var Z;c=c==null?void 0:(Z=c.form)==null?void 0:Z.element;y.JSC$10349_screenManager.clickCommand(W,null,c&&c.getScreenLayer&&c.getScreenLayer())}else W.clickTrackingParams?y.JSC$10349_screenManager.clickCommand(W):!_.O("disable_clicked_visual_element_in_command_handler")&&(c==null?0:c.clickedVisualElement)&&_.jz(y.JSC$10349_screenManager,
c.clickedVisualElement)},WgW=function(y){var W=!!_.g(y,_.uN),c;
y=((c=_.g(y,_.nl))==null?void 0:c.signal)==="CLIENT_SIGNAL";return W||y},cL3=function(y,W,c){var Z=_.g(W,_.uN);
if(Z)var G=(Z==null?void 0:Z.commands)||[];else{var D;if(((D=_.g(W,_.nl))==null?void 0:D.signal)==="CLIENT_SIGNAL"){var Y;G=((Y=_.g(W,_.nl))==null?void 0:Y.actions)||[]}}if(G){W=_.z(G);for(G=W.next();!G.done;G=W.next()){G=G.value;try{y.resolveCommand(G,c)}catch(u){u instanceof Error&&_.OP(u)}}return!0}Ntt(W,"Could not handle the meta command");return!1},Zn3=function(y){var W;
return!((W=_.g(y==null?void 0:y.commandMetadata,_.kT))==null||!W.url)};var ZE=function(){vv.apply(this,arguments)};
_.R(ZE,vv);ZE.prototype.validate=function(y){var W,c;return!this.hasRun&&!!((W=y.data.response)==null?0:(c=W.onResponseReceivedEndpoints)==null?0:c.length)};
ZE.prototype.handle=function(y){var W=_.km.instance;y=_.z(y.data.response.onResponseReceivedEndpoints);for(var c=y.next();!c.done;c=y.next())W.resolveCommand(c.value)};var GgE,fZi,oZm;
GgE=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=_.sc();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.GR=function(){fZi||(fZi=new GgE);return fZi};
oZm=function(){var y=_.GR();y.miniplayerButtonActivation=!1;y.userActivation=!1;y.playlistWatchPageActivation=!1;y.productDetailsPageActivation=!1;y.miniAppPageActivation=!1;y.playablesDestPageActivation=!1;y.lockupActivation=!1;y.showMiniplayerCommandActivation=!1;y.playlistSuggestionsShelfActivation=!1;y.mediaSessionPipActivation=!1;y.watchPipActivation=!1;y.watchWhileActivation=!1;y.shortsPipActivation=!1};
_.DlV=function(){var y=_.GR(),W=y.mediaSessionPipActivation,c=y.watchPipActivation,Z=y.watchWhileActivation,G=y.playlistWatchPageActivation,D=y.lockupActivation,Y=y.showMiniplayerCommandActivation,u=y.navigatingAwayFromWatchDeletedVideo,t=y.shortsPipActivation,b=y.playlistSuggestionsShelfActivation,r=y.productDetailsPageActivation,F=y.miniAppPageActivation,K=y.playablesDestPageActivation;return!y.miniplayerButtonActivation&&!G&&!b&&!r&&!F&&!K&&!D&&!Y&&!W&&!c&&!Z&&!t||u};var $ww;_.fH=M2("FEwhat_to_watch","/",3854);_.KoI=M2("FEdownloads","/feed/downloads",42352);$ww=M2("FEmusic_offline","browse/FEmusic_offline",42352);var du=function(y,W){W=W===void 0?[]:W;var c=c===void 0?[]:c;W=kuf.apply(null,[j4y.apply(null,_.No(W))].concat(_.No(c)));this.store=Z$H(y,void 0,W)};
du.prototype.getState=function(){return this.store.getState()};
du.prototype.dispatch=function(y){return this.store.dispatch(y)};
du.prototype.subscribe=function(y){return this.store.subscribe(y)};
du.prototype.replaceReducer=function(y){return this.store.replaceReducer(y)};
du.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.ot=function(y,W,c){var Z=W(y.getState());return y.subscribe(function(){var G=W(y.getState());if(G!==Z){var D=Z;Z=G;c(G,D)}})};var Kuw;_.o3=function(y,W,c){return _.jv({type:"REPLACE_ENTITY",payload:{entityPayload:c,entityType:y,key:W}})};
Kuw=function(y){return _.jv({type:"REPLACE_ENTITIES",payload:y})};
_.$Y=function(y,W,c,Z){return _.jv({type:"UPDATE_ENTITY",payload:{entityPayload:c,entityType:y,key:W,mergeOption:Z}})};var TtH=function(y){var W=this;y=y===void 0?[]:y;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;y.forEach(function(c){W.append(c)})};
_.f=TtH.prototype;_.f.getLength=function(){return this.totalLength};
_.f.append=function(y){var W=this.arrays.length===0?!1:(W=this.arrays[this.arrays.length-1])&&W.buffer===y.buffer&&W.byteOffset+W.length===y.byteOffset;W?(W=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(W.buffer,W.byteOffset,W.length+y.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(y);this.totalLength+=y.length};
_.f.split=function(y){for(var W=new TtH,c=new TtH,Z=_.z(this.arrays),G=Z.next();!G.done;G=Z.next())G=G.value,y>=G.length?(W.append(G),y-=G.length):y?(W.append(new Uint8Array(G.buffer,G.byteOffset,y)),c.append(new Uint8Array(G.buffer,G.byteOffset+y,G.length-y)),y=0):c.append(G);return{headView:W,tailView:c}};
_.f.isFocused=function(y){return y>=this.arrayPos&&y<this.arrayPos+this.arrays[this.arrayIdx].length};
_.f.focus=function(y){if(!this.isFocused(y))for(y<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=y&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.f.getDataView=function(y,W){y=y===void 0?0:y;W=W===void 0?-1:W;if(!this.totalLength||!W)return new DataView(new ArrayBuffer(0));W<0&&(W=this.totalLength-y);this.focus(y);if(!(y-this.arrayPos+W<=this.arrays[this.arrayIdx].length)){var c=this.arrayIdx,Z=this.arrayPos;this.focus(y+W-1);Z=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-Z);for(var G=0,D=c;D<=this.arrayIdx;D++)Z.set(this.arrays[D],G),G+=this.arrays[D].length;this.arrays.splice(c,this.arrayIdx-c+1,Z);this.arrayPos=this.arrayIdx=
0;this.focus(y)}c=this.arrays[this.arrayIdx];return new DataView(c.buffer,c.byteOffset+y-this.arrayPos,W)};
_.f.getUint8=function(y){this.focus(y);return this.arrays[this.arrayIdx][y-this.arrayPos]};(function(){var y=function(Z){return new Uint8Array(Z)},W=function(Z){for(var G=new Uint8Array(Z.length),D=0;D<Z.length;D++)G[D]=Z[D];
return G},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?y:W})();
var Bt1=Array(1024),h8t=window.TextDecoder?new TextDecoder:void 0,LXg=window.TextEncoder?new TextEncoder:void 0;var Suf=function(y){this.arrayView=y;this.pos=0;this.pendingTagAndType=-1},yl=function(y){var W=y.arrayView.getUint8(y.pos);
++y.pos;if(W<128)return W;for(var c=W&127,Z=1;W>=128;)W=y.arrayView.getUint8(y.pos),++y.pos,Z*=128,c+=(W&127)*Z;return c},aTF=function(y,W){var c=y.pendingTagAndType;
for(y.pendingTagAndType=-1;y.pos+1<=y.arrayView.totalLength;){c<0&&(c=yl(y));var Z=c>>3,G=c&7;if(Z===W)return!0;if(Z>W){y.pendingTagAndType=c;break}c=-1;switch(G){case 0:yl(y);break;case 1:y.pos+=8;break;case 2:Z=yl(y);y.pos+=Z;break;case 5:y.pos+=4}}return!1};var i7I=function(){this.pos=0;this.submessagePosStack=[];this.buf=dEF(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},ZK=function(y,W){W=y.pos+W;
if(!(y.buf.length>=W)){for(var c=y.buf.length*2;c<W;)c*=2;y.buf=dEF(c,y.buf.subarray(0,y.pos));y.view=new DataView(y.buf.buffer,y.buf.byteOffset,y.buf.byteLength)}},c$=function(y,W){if(W>268435455){ZK(y,4);
for(var c=W&1073741823,Z=0;Z<4;Z++)y.view.setUint8(y.pos,c&127|128),c>>=7,y.pos+=1;W=Math.floor(W/268435456)}for(ZK(y,4);W>127;)y.view.setUint8(y.pos,W&127|128),W>>=7,y.pos+=1;y.view.setUint8(y.pos,W);y.pos+=1};for(var MeI={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},xED={},zp5=_.z(Object.entries(MeI)),YkQ=zp5.next();!YkQ.done;YkQ=zp5.next()){var ml3=_.z(YkQ.value),sw3=ml3.next().value,uiT=ml3.next().value,taV=sw3,nZm=uiT;nZm&&(xED[nZm]=taV)};var w_t=function(y,W){y=y===void 0?{}:y;switch(W.type){case "ENTITY_LOADED":return W.payload.reduce(function(Z,G){var D,Y=(D=G.options)==null?void 0:D.persistenceOption;if(Y&&Y!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Y!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Z;if(!G.entityKey)return _.OP(Error("yf")),Z;if(G.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!G.payload)return G=new _.ul("REPLACE entity mutation is missing a payload",{entityKey:G.entityKey}),_.OP(G),Z;var u=(0,_.Eb.getAnyKey)(G.payload);
return kkD(Z,u,G.entityKey,G.payload[u])}if(G.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{G=G.entityKey;try{var t=_.W$(G).entityType;u=kkD(Z,t,G);break a}catch(F){if(F instanceof Error){G=new _.ul("Failed to deserialize entity key",{entityKey:G,originalMessage:F.message});_.OP(G);u=Z;break a}throw F;}u=void 0}return u}if(G.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!G.payload)return G=new _.ul("UPDATE entity mutation is missing a payload",{entityKey:G.entityKey}),_.OP(G),Z;u=(0,_.Eb.getAnyKey)(G.payload);
var b,r;return jUI(Z,u,G.entityKey,G.payload[u],(b=G.fieldMask)==null?void 0:(r=b.mergeOptions)==null?void 0:r.repeatedFieldsMergeOption)}return Z},y);
case "REPLACE_ENTITY":var c=W.payload;return kkD(y,c.entityType,c.key,c.entityPayload);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce(function(Z,G){var D=W.payload[G];return Object.keys(D).reduce(function(Y,u){return kkD(Y,G,u,D[u])},Z)},y);
case "UPDATE_ENTITY":return c=W.payload,jUI(y,c.entityType,c.key,c.entityPayload,c.mergeOption);default:return y}};var yAH;var Xbm=!1,DE,zR,YP,m_,sU,bnW=function(y){_.UR.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Xbm){var W,c=new Uint8Array(256),Z=new Uint8Array(256);var G=1;for(W=0;W<256;W++)c[G]=W,Z[W]=G,G^=G<<1^(G>>7&&283);DE=new Uint8Array(256);zR=ov(256);YP=ov(256);m_=ov(256);sU=ov(256);for(var D=0;D<256;D++){G=D?Z[255^c[D]]:0;G^=G<<1^G<<2^G<<3^G<<4;G=G&255^G>>>8^99;DE[D]=G;W=G<<1^(G>>7&&283);var Y=W^G;zR[D]=W<<24|G<<16|G<<8|Y;YP[D]=Y<<24|zR[D]>>>8;m_[D]=G<<24|YP[D]>>>
8;sU[D]=G<<24|m_[D]>>>8}Xbm=!0}G=ov(44);for(c=0;c<4;c++)G[c]=y[4*c]<<24|y[4*c+1]<<16|y[4*c+2]<<8|y[4*c+3];for(Z=1;c<44;c++)y=G[c-1],c%4||(y=(DE[y>>16&255]^Z)<<24|DE[y>>8&255]<<16|DE[y&255]<<8|DE[y>>>24],Z=Z<<1^(Z>>7&&283)),G[c]=G[c-4]^y;this.key=G};
_.R(bnW,_.UR);
bnW.prototype.encrypt=function(y){var W=y.length;y=new Uint8Array(y.buffer.slice(y.byteOffset,y.byteOffset+W));for(var c=this.cipherBlock,Z=0;Z<W&&this.blockOffset<16;)y[Z++]^=c[this.blockOffset++];for(var G=W-(W-Z)%16;Z<G;)rLZ(this),y[Z++]^=c[0],y[Z++]^=c[1],y[Z++]^=c[2],y[Z++]^=c[3],y[Z++]^=c[4],y[Z++]^=c[5],y[Z++]^=c[6],y[Z++]^=c[7],y[Z++]^=c[8],y[Z++]^=c[9],y[Z++]^=c[10],y[Z++]^=c[11],y[Z++]^=c[12],y[Z++]^=c[13],y[Z++]^=c[14],y[Z++]^=c[15];if(Z<W)for(rLZ(this),this.blockOffset=0;Z<W;)y[Z++]^=
c[this.blockOffset++];return y};
var Fgi=function(y,W){for(var c=0;c<4;c++)y.counter[c]=W[c*4]<<24|W[c*4+1]<<16|W[c*4+2]<<8|W[c*4+3];y.blockOffset=16},rLZ=function(y){for(var W=y.key,c=y.counter[0]^W[0],Z=y.counter[1]^W[1],G=y.counter[2]^W[2],D=y.counter[3]^W[3],Y=3;Y>=0&&!(y.counter[Y]=-~y.counter[Y]);Y--);
for(var u,t,b=4;b<40;)Y=zR[c>>>24]^YP[Z>>16&255]^m_[G>>8&255]^sU[D&255]^W[b++],u=zR[Z>>>24]^YP[G>>16&255]^m_[D>>8&255]^sU[c&255]^W[b++],t=zR[G>>>24]^YP[D>>16&255]^m_[c>>8&255]^sU[Z&255]^W[b++],D=zR[D>>>24]^YP[c>>16&255]^m_[Z>>8&255]^sU[G&255]^W[b++],c=Y,Z=u,G=t;y=y.cipherBlock;Y=W[40];y[0]=DE[c>>>24]^Y>>>24;y[1]=DE[Z>>16&255]^Y>>16&255;y[2]=DE[G>>8&255]^Y>>8&255;y[3]=DE[D&255]^Y&255;Y=W[41];y[4]=DE[Z>>>24]^Y>>>24;y[5]=DE[G>>16&255]^Y>>16&255;y[6]=DE[D>>8&255]^Y>>8&255;y[7]=DE[c&255]^Y&255;Y=W[42];
y[8]=DE[G>>>24]^Y>>>24;y[9]=DE[D>>16&255]^Y>>16&255;y[10]=DE[c>>8&255]^Y>>8&255;y[11]=DE[Z&255]^Y&255;Y=W[43];y[12]=DE[D>>>24]^Y>>>24;y[13]=DE[c>>16&255]^Y>>16&255;y[14]=DE[Z>>8&255]^Y>>8&255;y[15]=DE[G&255]^Y&255};var UlV=!1;(function(){var y=function(Z){return new Uint8Array(Z)},W=function(Z){for(var G=new Uint8Array(Z.length),D=0;D<Z.length;D++)G[D]=Z[D];
return G},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?y:W})();
var uA;var $lT=function(y){this.JSC$10416_aesKey=y};
$lT.prototype.encrypt=function(y,W){var c=this,Z,G;return _.m(function(D){if(D.nextAddress==1){a:{if(!UlV&&!_.B7){if(uA){var Y=uA;break a}uA=(Y=window.crypto)==null?void 0:Y.subtle;var u,t,b;if(((u=uA)==null?0:u.importKey)&&((t=uA)==null?0:t.sign)&&((b=uA)==null?0:b.encrypt)){Y=uA;break a}uA=void 0}Y=void 0}Z=Y;if(!Z)return D.return(KgE(c,y,W));_.tm(D,3);return _.n(D,On8(c,y,W,Z),5)}if(D.nextAddress!=3)return D.return(D.yieldResult);G=_.rs(D);_.Rs(G);UlV=!0;return D.return(KgE(c,y,W))})};
var On8=function(y,W,c,Z){var G,D;return _.m(function(Y){switch(Y.nextAddress){case 1:if(y.cryptoKey){Y.jumpTo(2);break}return _.n(Y,Z.importKey("raw",y.JSC$10416_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:y.cryptoKey=Y.yieldResult;case 2:return G={name:"AES-CTR",counter:c,length:128},_.n(Y,Z.encrypt(G,y.cryptoKey,W),4);case 4:return D=Y.yieldResult,Y.return(new Uint8Array(D))}})},KgE=function(y,W,c){y.encryptorPolyfill||(y.encryptorPolyfill=new bnW(y.JSC$10416_aesKey));
Fgi(y.encryptorPolyfill,c);return y.encryptorPolyfill.encrypt(W)},gZ2=function(y){this.JSC$10420_aesKey=y};
gZ2.prototype.encrypt=function(y,W){this.encryptor||(this.encryptor=new bnW(this.JSC$10420_aesKey));Fgi(this.encryptor,W);return this.encryptor.encrypt(y)};var RpV={},ZFa=S5("yt-idb-pref-storage",{objectStores:(RpV.prefs={addedAtVersion:1},RpV),shared:!1,upgrade:function(y,W){W(1)&&pX(Il(y,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.tI=function(y){this.token=y};
_.tI.getInstance=function(){return _.m(function(y){return y.return(new Promise(function(W){_.dr().then(function(c){c?(_.tI.instance||(_.tI.instance=new _.tI(c)),W(_.tI.instance)):W(void 0)})}))})};
_.tI.prototype.get=function(y){var W=this,c,Z,G;return _.m(function(D){if(D.nextAddress==1)return _.n(D,GSD(W.token),2);if(D.nextAddress!=3)return c=D.yieldResult,_.n(D,c.get("prefs",y),3);Z=D.yieldResult;if(!Z)return D.return();G=(0,_.Tj)();return Z.expirationTimestampMs<=G?D.return():D.return(Z.value)})};
_.tI.prototype.set=function(y,W,c){c=c===void 0?31536E3:c;var Z=this,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return G=(0,_.Tj)(),D={key:y,value:W,expirationTimestampMs:G+c*1E3},_.n(u,GSD(Z.token),2);Y=u.yieldResult;return _.n(u,Y.put("prefs",D),0)})};
_.tI.prototype.remove=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,GSD(W.token),2);c=Z.yieldResult;return _.n(Z,c.delete("prefs",y),0)})};var nH={},lZ5=(nH.INVALID_ENCODER_VERSION="Invalid encoder version",nH.KEY_CREATION_FAILED="Failed to create encoder key",nH.UNKNOWN_DECODE_ERROR="Failed to decode PES data",nH.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",nH.WRONG_DATA_TYPE="Encoder cannot process the data type",nH),DK=function(y,W){W=W===void 0?{}:W;_.ul.call(this,lZ5[y],Object.assign({},{name:"PESEncoderError",type:y},W));this.type=y;this.level="WARNING";Object.setPrototypeOf(this,DK.prototype)};
_.R(DK,_.ul);var EZT=function(){},NNZ=function(y,W,c){try{return y.encodeImpl(W,c)}catch(Z){zdI(Z,oIf)}},IZi=function(y,W,c){var Z;
return _.m(function(G){if(G.nextAddress==1)return _.tm(G,2),_.n(G,y.decodeAsyncImpl(W,c),4);if(G.nextAddress!=2)return G.return(G.yieldResult);Z=_.rs(G);zdI(Z,DYg);_.F2(G)})};
EZT.prototype.decodeAsyncImpl=function(y,W){return Promise.resolve(this.decodeImpl(y,W))};var X3=function(y,W){this.aesEncryptor=y;this.aesEncryptorAsync=W};
_.R(X3,EZT);X3.prototype.encodeImpl=function(y,W){W=Yxg(W);y=(new TextEncoder).encode(JSON.stringify(y));return this.aesEncryptor.encrypt(y,W)};
X3.prototype.decodeImpl=function(y,W){if(!(y instanceof Uint8Array))throw fuF(1);var c=new TextDecoder;W=Yxg(W);y=this.aesEncryptor.encrypt(y,W);return JSON.parse(c.decode(y))};
X3.prototype.decodeAsyncImpl=function(y,W){var c=this,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1){if(!(y instanceof Uint8Array))throw fuF(1);Z=new TextDecoder;G=Yxg(W);return _.n(Y,c.aesEncryptorAsync.encrypt(y,G),2)}D=Y.yieldResult;return Y.return(JSON.parse(Z.decode(D)))})};var mYD={accountLinkStatusEntity:UDW,booleanEntity:wgE,buttonEntity:dt0,captionTrack:xEZ,channelHandle:H$m,commerceAcquisitionClientPayloadEntity:sx2,commerceCartListEntity:uq8,contextNoteFeedEntityPayload:xK0,continuationTokenEntity:ps2,downloadQualityPickerEntity:Fx0,downloadsPageRefreshTokenEntity:$hm,downloadsPageViewConfigurationEntity:HG8,downloadStatusEntity:UhT,dismissState:IEE,sfvAudioItemCurrentlyPlayingEntity:Rdi,emojiFountainDataEntity:HHi,emojiCustomizationSetEntity:BF8,fakeChannel:jO5,
fakePlaylist:yJQ,fakePlaylistEntryCollection:WAi,fakeVideo:ZU2,fakeVideoDescription:GAQ,featuredProductsEntity:Z7V,flowStateEntity:Xi5,iconBadgeEntity:t_m,interstitialInteractionStateEntity:B_V,likeButtonAnimationEntity:Lx3,liveChatPollStateEntity:xDJ,liveViewerLeaderboardChatEntryPointStateEntity:oIE,liveViewerLeaderboardPointsEntity:DY2,liveReactionsDataEntity:L_3,logoEntity:QOE,macroMarkerEntity:vKi,mainDownloadsLibraryEntity:KxV,mainDownloadsListEntity:OGE,mainPlaylistDownloadStateEntity:RgV,
mainPlaylistEntity:P_5,mainPlaylistVideoEntity:Je0,mainVideoDownloadStateEntity:lNE,mainVideoEntity:Ae8,markersEngagementPanelSyncEntity:dhJ,markersVisibilityOverrideEntity:SMQ,musicAlbumReleaseDetail:nHE,musicAlbumReleaseDownloadMetadataEntity:Yum,musicAlbumRelease:teJ,musicAlbumReleaseUserDetail:X_Q,musicArtistDetail:rkT,musicArtist:b73,musicArtistUserDetail:FXW,musicDownloadsLibraryEntity:mEZ,musicLibraryEdit:UEZ,musicLibraryStatusEntity:$E8,musicPlaylist:KXJ,musicPlaylistDownloadMetadataEntity:sYV,
musicShare:gH8,musicTrackDetail:lTT,musicTrackDownloadMetadataEntity:uB5,musicTrack:R8V,musicTrackUserDetail:EHm,offlineOrchestrationActionWrapperEntity:i7V,offlineVideoPolicy:MeV,offlineVideoStreams:e8Z,offlineabilityEntity:EKV,orchestrationWebSamplingEntity:NHV,pageHeaderEntity:JIi,pdpStateEntity:nS2,pinnedProductEntity:Gk3,playbackData:w_E,playerStateEntity:TH0,quantityIncrementerEntity:XjE,refresh:quT,saveToPlaylistListEntity:xYi,settingEntity:stE,stringEntity:qXQ,suggestedFeedbackChipStateEntity:aNJ,
transfer:kkZ,trendingOfferEntity:fT8,videoDownloadContextEntity:jUV,videoOverviewAsyncDataEntity:LBV,videoPlaybackPositionEntity:aEZ,votingEntity:CAi,ytMainChannelEntity:hgQ,youchatPendingResponseEntity:xhi,ytMainDownloadedVideoEntity:INQ,ytMainVideoEntity:BHm};var pbE,JLZ,tK,Fut,UYh,Qw3,hpQ,ALV,Ccm;pbE=function(y,W){this.JSC$10439_wrapped=y;this.JSC$10439_encoderRegistry=W;this.changedKeys={}};
JLZ=function(y,W){a:{y=Pc2(y.JSC$10439_encoderRegistry,W.version);try{var c=y.decodeImpl(W.data,W.key);break a}catch(Z){zdI(Z,DYg)}c=void 0}return c};
_.VaE=function(y,W,c){return y.JSC$10439_wrapped.objectStore("EntityStore").get(W).then(function(Z){if(Z){if(c&&Z.entityType!==c)throw Error("zf");return JLZ(y,Z)}})};
tK=function(y,W,c){return c?(c=c.map(function(Z){return _.VaE(y,Z,W)}),NC.all(c)):y.JSC$10439_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(W)).then(function(Z){return Z.map(function(G){return JLZ(y,G)})})};
_.rAO=function(y,W,c){var Z=e8D(W),G=Pc2(y.JSC$10439_encoderRegistry,1),D=Object.assign({},W);return y.JSC$10439_wrapped.objectStore("EntityStore").get(Z).then(function(Y){if(Y){if(Y.entityType!==c)throw Error("zf");D.entityMetadata||(Y=JLZ(y,Y),D.entityMetadata=Y.entityMetadata)}}).then(function(){var Y={key:Z,
entityType:c,data:NNZ(G,D,Z),version:1};return NC.all([y.JSC$10439_wrapped.objectStore("EntityStore").put(Y),Ccm(y,D,c)])}).then(function(){Qw3(y,Z,c);
return Z})};
Fut=function(y,W){var c=_.W$(W).entityType;return NC.all([y.JSC$10439_wrapped.objectStore("EntityStore").delete(W),ALV(y,W)]).then(function(){Qw3(y,W,c)})};
UYh=function(y,W,c,Z){var G=Pc2(y.JSC$10439_encoderRegistry,1);return _.VaE(y,W,Z).then(function(D){if(D){D=Akt(D,c);var Y={key:W,entityType:Z,data:NNZ(G,D,W),version:1};return NC.all([y.JSC$10439_wrapped.objectStore("EntityStore").put(Y),Ccm(y,D,Z)])}}).then(function(){Qw3(y,W,Z);
return W})};
Qw3=function(y,W,c){var Z=y.changedKeys[c];Z||(Z=new Set,y.changedKeys[c]=Z);Z.add(W)};
hpQ=function(y,W,c){var Z=e8D(W);c=sUE(c);if(!c)return NC.resolve([]);c=new c(W);y=y.JSC$10439_wrapped.objectStore("EntityAssociationStore");W=[];c=_.z(c.getAssociations());for(var G=c.next();!G.done;G=c.next())W.push(y.put({parentEntityKey:Z,childEntityKey:G.value}));return NC.all(W).then(function(D){return D.map(function(Y){return Y[1]})})};
ALV=function(y,W){return y.JSC$10439_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(W))};
Ccm=function(y,W,c){var Z=e8D(W);return ALV(y,Z).then(function(){return hpQ(y,W,c)})};var BNi=function(){};
_.R(BNi,EZT);BNi.prototype.encodeImpl=function(y){return y};
BNi.prototype.decodeImpl=function(y){if(y instanceof Uint8Array)throw fuF(0);return y};var nII=function(){this.cacheMap={};this.cacheMap[0]=new BNi;if(!_.O("aes_pes_encoder_killswitch")){var y=this.cacheMap;try{var W=_.m9();var c=Yxg(W);var Z=new X3(new gZ2(c),new $lT(c))}catch(G){throw y=G instanceof Error?new DK("KEY_CREATION_FAILED",{originalMessage:G.message}):new DK("KEY_CREATION_FAILED"),_.OP(y),y;}y[1]=Z}},Pc2=function(y,W){W=W===void 0?0:W;
y=y.cacheMap[W];if(!y)throw W=new DK("INVALID_ENCODER_VERSION",{encoderVersion:W}),_.OP(W),W;return y};var YR=function(y,W){_.UR.call(this);this.token=y;this.JSC$10453_encoderRegistry=W;this.observers=[];y=new _.DH.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.m9());y.onmessage=this.handleMessage.bind(this);this.channel=y};
_.R(YR,_.UR);_.sq=function(y,W,c){var Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return _.n(u,cAI(y.token),2);if(u.nextAddress!=3)return Z=u.yieldResult,_.n(u,_.Q2(Z,["EntityStore","EntityAssociationStore"],W,function(t){G=new pbE(t,y.JSC$10453_encoderRegistry);return c(G)}),3);
D=u.yieldResult;G&&(Y=G.changedKeys,Object.keys(Y).length>0&&(y.channel.postMessage(Y),Hn2(y,Y)));return u.return(D)})};
YR.prototype.observe=function(y){var W=this;this.observers.push(y);return function(){var c=W.observers.indexOf(y);c>=0&&W.observers.splice(c,1)}};
var xyI=function(y){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,_.sq(y,{mode:"readonly",enableRetries:!0},function(Z){return Z.JSC$10439_wrapped.objectStore("EntityStore").getAll()}),2);
W=c.yieldResult;return c.return(Promise.all(W.filter(function(Z){return!!Z}).map(function(Z){var G,D;
return _.m(function(Y){if(Y.nextAddress==1){G=Z.key;D=Z.entityType;var u=IZi(Pc2(y.JSC$10453_encoderRegistry,Z.version),Z.data,Z.key);return _.n(Y,u,2)}return Y.return({key:G,entityType:D,data:Y.yieldResult})})})))})};
YR.prototype.handleMessage=function(y){Hn2(this,y.data)};
var Hn2=function(y,W){y=_.z(y.observers);for(var c=y.next();!c.done;c=y.next())c=c.value,c(W)};
YR.prototype.disposeInternal=function(){this.channel.close()};
var ubH;var bA,vZE,bHH,HFy;bA={};_.LgZ=(bA.mainVideoEntity="mainVideoEntityActionMetadata",bA.mainPlaylistEntity="mainPlaylistEntityActionMetadata",bA.musicTrack="musicTrackEntityActionMetadata",bA.musicPlaylist="musicPlaylistEntityActionMetadata",bA);vZE=new _.Sm("DOWNLOADS_ENTITY_TYPE_MAP");bHH=_.Gx("","downloadsPageViewConfigurationEntity");HFy=_.Gx("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Utt=_.Gx("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Gx("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Gx("SMART_DOWNLOADS_ENABLED","settingEntity");_.Gx("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var RdO=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var JAD=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var oPw={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var rF,GII,eWZ,akg;rF=window;_.Vl=rF.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.Xjf=rF.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.H$;GII=rF.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||F6;eWZ=rF.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||Mlm;_.dlJ=rF.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.s9V;akg=rF.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||n0E;hK({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 FBI=frI(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(y){return y}}}),YTI=frI(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(y){return y}}}),YoI=new Map;var $71=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],nSg;var Sk8=function(y){return _.jv({type:"SET_EPHEMERAL_ACTION",payload:y})};var TNV={ephemeralAction:null};var aZE={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var SoE={sharedUi:function(y,W){y=y===void 0?aZE:y;switch(W.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},y,{animatedThumbnailEnabled:W.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},y,{inlinePreviewEnabled:W.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},y,{currentPageType:W.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},y,{currentPageSubType:W.payload});default:return y}},
a11y:zr({ephemeralAction:function(y,W){y=y===void 0?TNV.ephemeralAction:y;switch(W.type){case "SET_EPHEMERAL_ACTION":return W.payload;default:return y}}})};var Att=zr({isLeaderTab:function(y,W){y=y===void 0?!0:y;switch(W.type){case "SET_IS_LEADER_TAB":var c,Z;return(Z=W==null?void 0:(c=W.payload)==null?void 0:c.isLeaderTab)!=null?Z:y;default:return y}}});var xlE=function(y){return _.jv({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:y}})};var d7f=zr({isDesktopSmallWidth:function(y,W){switch(W.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return W.payload.isDesktopSmallWidth;default:return y===void 0?!1:y}},
isShortsActive:function(y,W){switch(W.type){case "SET_IS_SHORTS_ACTIVE":return W.payload.isShortsActive;default:return y===void 0?!1:y}},
isWatchWhileMode:function(y,W){switch(W.type){case "SET_IS_WATCH_WHILE_MODE":return W.payload.isWatchWhileMode;default:return y===void 0?!1:y}},
playerState:function(y,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return y===void 0?-1:y}},
isFullscreen:function(y,W){switch(W.type){case "SET_IS_FULLSCREEN":return W.payload.isFullscreen;default:return y===void 0?!1:y}},
isSmallScreenSqueezeback:function(y,W){switch(W.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return W.payload.isSmallScreenSqueezeback;default:return y===void 0?!1:y}},
isShortsPipActive:function(y,W){switch(W.type){case "SET_IS_SHORTS_PIP_ACTIVE":return W.payload.isShortsPipActive;default:return y===void 0?!1:y}},
isPlaybackStarted:function(y,W){switch(W.type){case "SET_IS_PLAYBACK_STARTED":return W.payload.isPlaybackStarted;default:return y===void 0?!1:y}}});var ESw={playlistId:"",inviteLinkURL:""};var inZ={};var Qxt=zr({continuationCommand:function(y,W){y=y===void 0?inZ:y;switch(W.type){case "SET_CONTINUATION_COMMAND":return W.payload.continuationCommand;default:return y}}});var arf=function(){return function(y){return function(W){var c=y(W);_.GG(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[W],!0);return c}}};var MaZ;MaZ=new _.WK;_.Tb=new _.Sm("WATCH_PLAYER_PROMISE_TOKEN");_.epJ=new _.WK;_.wbQ=new _.Sm("SHORTS_PLAYER_PROMISE_TOKEN");_.e9=new _.Sm("");var x7a=function(){return function(y){return function(W){W.type==="ENTITY_LOADED"&&_.U().resolve(_.Tb).then(function(c){var Z;(Z=c.dispatchReduxAction)==null||Z.call(c,W)});
return y(W)}}};var IrO={currentFormId:"",commandsMap:{}};var qk2={};var hZg=zr({additionalContext:function(y,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var c;return(c=W.payload)!=null?c:"";default:return y===void 0?"":y}},
impersonatedChannelUrl:function(y,W){switch(W.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var c;return(c=W.payload)!=null?c:"";default:return y===void 0?"":y}},
selectedVideoIds:function(y,W){y=y===void 0?qk2:y;switch(W.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var c={};return Object.assign({},y,(c[W.payload]=!0,c));case "VIDEO_UNSELECTED":return W=W.payload,y=Object.assign({},y),delete y[W],y;default:return y}}});var BUg=zr({parentClickTrackingParams:function(y,W){switch(W.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return W.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return y===void 0?"":y}}});var kgi=function(y){return _.jv({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:y})};var jn2={};var HAa=zr({stepStates:function(y,W){y=y===void 0?jn2:y;switch(W.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var c=y,Z=W.payload,G,D,Y;y={};W={selectionStates:Object.assign({},(Y=(G=c[Z.stepId])==null?void 0:G.selectionStates)!=null?Y:{},(y[Z.token]={isSelected:Z.isSelected},y)),userQuery:(D=c[Z.stepId])==null?void 0:D.userQuery};G={};return Object.assign({},c,(G[Z.stepId]=W,G));case "TALK_TO_RECS_UPDATE_USER_QUERY":return G=y,D=W.payload,Y={selectionStates:Object.assign({},
(Z=(c=G[D.stepId])==null?void 0:c.selectionStates)!=null?Z:{}),userQuery:{userQuery:D.userQuery,token:D.userQueryToken}},c={},Object.assign({},G,(c[D.stepId]=Y,c));default:return y}}});var yaT,W2Z;yaT=function(y){return _.jv({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:y})};
W2Z=function(y){return _.jv({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:y})};
_.RT=function(y){return _.jv({type:"SET_CURRENT_PAGE_TYPE",payload:y})};
_.ca8=function(y){return _.jv({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:y})};var P$I={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"};_.ZeZ=function(y){return _.jv({type:"SET_PLAYER_STATE",payload:{playerState:y}})};var GQi=[],fc8={width:0,height:0};var LBI=zr({isTheaterMode:function(y,W){y=y===void 0?_.I8("START_IN_THEATER_MODE"):y;switch(W.type){case "SET_IS_THEATER_MODE":return W.payload.isTheaterMode;default:return y}},
isWatchActive:function(y,W){switch(W.type){case "SET_IS_WATCH_ACTIVE":return W.payload.isWatchActive;default:return y===void 0?!1:y}},
isWatchFullscreen:function(y,W){switch(W.type){case "SET_IS_WATCH_FULLSCREEN":return W.payload.isWatchFullscreen;default:return y===void 0?!1:y}},
isWatchNarrowWidth:function(y,W){switch(W.type){case "SET_IS_WATCH_NARROW_WIDTH":return W.payload.isWatchNarrowWidth;default:return y===void 0?!1:y}},
isWatchRetroMode:function(y,W){switch(W.type){case "SET_IS_WATCH_RETRO_MODE":return W.payload.isWatchRetroMode;default:return y===void 0?!1:y}},
isLiveChatCollapsed:function(y,W){switch(W.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return W.payload.isLiveChatCollapsed;default:return y===void 0?!1:y}},
openEngagementPanels:function(y,W){y=y===void 0?GQi:y;var c=[].concat(_.No(y));switch(W.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return c.push(W.payload.panelToAdd),c;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return c.splice(c.indexOf(W.payload.panelToRemove),1),c;default:return y}},
playerState:function(y,W){switch(W.type){case "SET_PLAYER_STATE":return W.payload.playerState;default:return y===void 0?-1:y}},
watchScrollTop:function(y,W){switch(W.type){case "SET_WATCH_SCROLL_TOP":return W.payload.watchScrollTop;default:return y===void 0?0:y}},
watchWindowSize:function(y,W){y=y===void 0?fc8:y;switch(W.type){case "SET_WATCH_WINDOW_SIZE":return W.payload.watchWindowSize;default:return y}}});var oa8={feedbackTokens:[]};var vSa=zr({surveyFeedbackData:function(y,W){y=y===void 0?oa8:y;switch(W.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return W.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},y,W.payload);default:return y}}});var V_F={};var M_D=void 0;_.O("web_enable_redux_store_on_demand")||(M_D=iAD());var DB3=function(y,W,c){var Z=this;this.listId=y;this.JSC$10586_updateCallback=W;this.isOfflineVideoCallback=c;_.Sv().subscribe(function(){Z.handleUpdate()})};
DB3.prototype.getPlaylistData=function(){var y=_.Sv().getState().entities;if(this.listId&&this.listId!=="PPSV"){var W=edE(y,this.listId,!0),c=_.Gx(this.listId,"mainPlaylistEntity"),Z,G;y=y==null?void 0:(Z=y.mainPlaylistEntity)==null?void 0:(G=Z[c])==null?void 0:G.title;return eZa(W,y,this.listId)}W=_.VxO(gPf(y));y=_.VxO(_.Kq(y));return eZa(W.concat(y))};
DB3.prototype.getPlaylistId=function(){return this.listId};
DB3.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10586_updateCallback(this.listId,this.getPlaylistData(),{})};var F3=function(y,W,c,Z){Z=Z===void 0?[]:Z;this.JSC$10589_playlistNetworkManager=y;this.listId=W;this.JSC$10589_updateCallback=c;this.videoIds=Z;this.pendingUpdates=[];this.currentIndex=0};
F3.prototype.JSC$10589_setCurrentIndex=function(y){this.currentIndex=y};
F3.prototype.setListId=function(y){this.listId=y};
var zI3=function(y,W){y.currentCreateRequest&&y.currentCreateRequest.cancel(W);y.currentUpdateRequest&&y.currentUpdateRequest.cancel(W);y.currentRefreshRequest&&y.currentRefreshRequest.cancel(W)};
F3.prototype.delete=function(){zI3(this,"PROXY DELETED")};
F3.prototype.addVideos=function(y,W,c){var Z=this;c!==void 0?this.videoIds.splice.apply(this.videoIds,[c,0].concat(_.No(y))):this.videoIds.push.apply(this.videoIds,_.No(y));this.listId||this.currentCreateRequest?(y.forEach(function(G,D){G={addedVideoId:G,action:"ACTION_ADD_VIDEO"};c&&(G.addedVideoPosition=c+D);Z.pendingUpdates.push(G)}),UU(this)):YmV(this,W.onCreateListCommand)};
var mBi=function(y,W,c,Z,G){IHH(y.videoIds,W,c);W>y.currentIndex&&c<=y.currentIndex?y.JSC$10589_setCurrentIndex(y.currentIndex+1):W===y.currentIndex?y.JSC$10589_setCurrentIndex(c):W<y.currentIndex&&c>=y.currentIndex&&y.JSC$10589_setCurrentIndex(y.currentIndex-1);y.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Z,movedSetVideoIdPredecessor:G});UU(y)},YmV=function(y,W){zI3(y,"OBSOLETE");
y.currentCreateRequest=snV(y.JSC$10589_playlistNetworkManager,W,y.videoIds);_.bU(y.currentCreateRequest,function(){y.currentCreateRequest=void 0}).then(function(c){y.setListId(c.playlistId);
y.pendingUpdates.length>0?UU(y):ufE(y)})},UU=function(y){if(y.pendingUpdates.length!==0&&(y.currentRefreshRequest&&y.currentRefreshRequest.cancel("OBSOLETE"),!y.currentUpdateRequest&&!y.currentCreateRequest)){var W=y.pendingUpdates.splice(0,y.pendingUpdates.length);
y.currentUpdateRequest=y.JSC$10589_playlistNetworkManager.updatePlaylist(y.listId,W);_.bU(y.currentUpdateRequest,function(){y.currentUpdateRequest=void 0}).then(function(){y.pendingUpdates.length>0?UU(y):ufE(y)}).thenCatch(function(){y.pendingUpdates.unshift.apply(y.pendingUpdates,_.No(W))})}},ufE=function(y){y.currentRefreshRequest=_.tAV(y.JSC$10589_playlistNetworkManager,y.listId,y.currentIndex,y.videoIds[y.currentIndex]);
_.bU(y.currentRefreshRequest,function(){y.currentRefreshRequest=void 0}).then(function(W){y.JSC$10589_updateCallback(W.playlistId,W.playlistPanelRenderer,W.autoplayRenderer)})};
F3.prototype.size=function(){return this.videoIds.length};var naT=function(y,W,c,Z){Z=Z===void 0?[]:Z;F3.call(this,y,W,c,Z);this.JSC$10589_playlistNetworkManager=y;this.listId=W;this.JSC$10589_updateCallback=c;this.videoIds=Z};
_.R(naT,F3);_.$P=function(y,W,c,Z,G,D,Y){G=G===void 0?[]:G;Y=Y===void 0?qL:Y;F3.call(this,y,W,c,G);this.JSC$10589_playlistNetworkManager=y;this.listId=W;this.JSC$10589_updateCallback=c;this.onAuthChange=Z;this.videoIds=G;this.storage=D;this.cookieReader=Y;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.vh(_.KX,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R(_.$P,F3);_.f=_.$P.prototype;_.f.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.vh(_.KX,this.checkLoggedInStatusChange.bind(this),1E3)};
_.f.JSC$10589_setCurrentIndex=function(y){F3.prototype.JSC$10589_setCurrentIndex.call(this,y);this.store()};
_.f.delete=function(){_.KX.cancelJob(this.queueSapisIdJob);F3.prototype.delete.call(this)};
_.f.setListId=function(y){F3.prototype.setListId.call(this,y);this.store()};
_.f.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var XLQ=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],be2=["playerResponse","videoDetails"],raV=["response","currentVideoEndpoint","watchEndpoint","videoId"],F2J=["response","currentVideoEndpoint","watchEndpoint","playlistId"],UBi=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],$B5=["response","contents","twoColumnWatchNextResults","playlist","playlist"],K2V=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
Oe3=["response","contents","twoColumnWatchNextResults"];var KH={},yyf=(KH.WEB_UNPLUGGED="^unplugged/",KH.WEB_UNPLUGGED_ONBOARDING="^unplugged/",KH.WEB_UNPLUGGED_OPS="^unplugged/",KH.WEB_UNPLUGGED_PUBLIC="^unplugged/",KH.WEB_CREATOR="^creator/",KH.WEB_KIDS="^kids/",KH.WEB_EXPERIMENTS="^experiments/",KH.WEB_MUSIC="^music/",KH.WEB_REMIX="^music/",KH.WEB_MUSIC_EMBEDDED_PLAYER="^music/",KH.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",KH);var p2w,snV;p2w=function(y,W){this.networkManager=y;this.innertubeTransportService=W};
snV=function(y,W,c){if(!_.g(W,_.NY))return _.hG(Error("Df"));_.g(W,_.NY).videoIds=c;c={create_playlist_title:_.bN("QUEUE",void 0,"Queue")};return kIa(_.IL(y.innertubeTransportService,W,c),wjt)};
_.tAV=function(y,W,c,Z){W={videoId:Z,playlistId:W,playlistIndex:c};c=_.Tx(lfW);return kIa(_.OU(y.innertubeTransportService,W,c),jZw)};
p2w.prototype.updatePlaylist=function(y,W){return kIa(_.IL(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:y,actions:W}}),qoF)};var lA=function(y){this.storage=y},gaW;
lA.prototype.store=function(y,W){W=W===void 0?0:W;if(this.storage&&y.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",y),this.storage.set("TLPQindex",String(W)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(c){}};
lA.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
lA.prototype.getPlaylistId=function(){if(!this.storage)return null;var y=null;try{y=this.storage.get("TLPQplaylist")}catch(W){}return y};
lA.prototype.getIndex=function(){if(this.storage){try{var y=this.storage.get("TLPQindex")}catch(W){}y=Number(y);if(!isNaN(y))return y}};var G6F=["navigationEndpoint","watchEndpoint","videoId"],ZBw=["nextButtonVideo","watchEndpoint","videoId"];_.tq=new _.Sm("NETWORK_TOKEN");_.h7=new _.Sm("PAGE_TOKEN");_.EU=new _.Sm("PLAYLIST_TOKEN");var RIE;RIE=new _.Sm("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.b0=new _.Sm("INNERTUBE_TRANSPORT_TOKEN");var lc2,Nt,NxE,Ic5,PBQ,Ja5;lc2=new Set(["ci","cr","carml"]);Nt=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10636_parkedJobs=new Map;this.parkedProcessors=new Map};
_.It=function(){Nt.instance||(Nt.instance=new Nt);return Nt.instance};
Nt.prototype.onAny=function(y){return _.Ea8(this,y,2)};
Nt.prototype.parkOrScheduleJob=function(y,W,c,Z,G){_.pH(this,c)?_.gl().addJob(y,W,Z):(G&&(y=NxE(y),Ic5(this,y,W,c,G)),G=this.JSC$10636_parkedJobs.get(c),G||(this.JSC$10636_parkedJobs.set(c,[]),G=this.JSC$10636_parkedJobs.get(c)),G.push({job:y,priority:W,delay:Z}))};
Nt.prototype.addListener=function(y,W,c){c&&(W=NxE(W),Ic5(this,W,0,y,c));c=this.parkedProcessors.get(y);c||(this.parkedProcessors.set(y,[]),c=this.parkedProcessors.get(y));c.push(W)};
Nt.prototype.processSignal=function(y){if(!_.pH(this,y)){this.inProgressSignals.add(y);var W=this.JSC$10636_parkedJobs.get(y);if(W){W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,_.gl().addJob(c.job,c.priority,c.delay);this.JSC$10636_parkedJobs.delete(y)}if(W=this.parkedProcessors.get(y)){W=_.z(W);for(c=W.next();!c.done;c=W.next())c=c.value,c();this.parkedProcessors.delete(y)}this.signals.push(y);this.inProgressSignals.delete(y)}};
_.pH=function(y,W){return lc2.has(W)||_.I8("IS_HOMEPAGE_COLD")||_.I8("IS_RESULTS_PAGE_COLD")||_.I8("IS_WATCH_PAGE_COLD")?y.signals.indexOf(W)>=0:!0};
NxE=function(y){var W=!1;return function(){W||(W=!0,y())}};
Ic5=function(y,W,c,Z,G){if(pLT.has(Z))_.gl().addJob(W,c,G);else{var D=y.compoundSignals.get(Z);D&&_.gl().addJob(function(){_.pH(y,Z)||(D.isTimeoutConditionSatisfied?_.gl().addJob(W,c):D.timeoutConditionObservers.push(function(){_.gl().addJob(W,c)}))},c,G)}};
_.Ea8=function(y,W,c){if(W.length>1){var Z=[],G=Object.create(null);W=_.z(W);for(var D=W.next();!D.done;D=W.next())D=D.value,G[D]||(Z.push(D),G[D]=!0);W=Z}if(W.length===1)return W[0];D=W;Z="";G=c===2?"|":"&";D.sort();D=_.z(D);for(var Y=D.next();!Y.done;Y=D.next())Z+=Y.value+G;if(!y.compoundSignals.get(Z)){G=0;D=[];Y=_.z(W);for(var u=Y.next();!u.done;u=Y.next())u=u.value,G++,_.pH(y,u)||D.push(u);(c=c===2)&&G>D.length||!c&&!D.length?y.signals.push(Z):PBQ(y,Z,c,W,D)}return Z};
PBQ=function(y,W,c,Z,G){var D=G.length,Y=function(){c||--D===0?y.processSignal(W):Ja5(y,W)};
G=_.z(G);for(var u=G.next();!u.done;u=G.next())y.addListener(u.value,Y);y.compoundSignals.set(W,{signals:Z,isOnAny:c,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Ja5(y,W)};
Ja5=function(y,W){if(!_.pH(y,W)){var c=y.compoundSignals.get(W);if(c&&!c.isTimeoutConditionSatisfied){for(var Z=!1,G=0,D=0,Y=_.z(c.signals),u=Y.next();!u.done;u=Y.next()){var t=u.value;u=!_.pH(y,t);pLT.has(t)?Z=!0:(t=y.compoundSignals.get(t))?u&&!t.isTimeoutConditionSatisfied&&(D++,c.isInitialized||t.timeoutConditionObservers.push(function(){Ja5(y,W)})):u&&G++}c.isInitialized=!0;
c.isOnAny?Z&&(c.isTimeoutConditionSatisfied=!0):G===0&&D===0&&(c.isTimeoutConditionSatisfied=!0);if(c.isTimeoutConditionSatisfied)for(c=_.z(c.timeoutConditionObservers),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z()}}};
Nt.prototype.processSignal=Nt.prototype.processSignal;Nt.prototype.parkOrScheduleJob=Nt.prototype.parkOrScheduleJob;Nt.prototype.onAny=Nt.prototype.onAny;_.LR("ytsignals.getInstance",_.It);Nt.prototype.onAny=Nt.prototype.onAny;Nt.prototype.parkOrScheduleJob=Nt.prototype.parkOrScheduleJob;Nt.prototype.processSignal=Nt.prototype.processSignal;var pLT=new Set(["eop","eocs","dl","pcl"]);_.Cy=new _.Sm("MINIPLAYER_SERVICE");var P0,VAQ,CBQ;P0=function(y,W,c){var Z=_.Q8.getInstance();if(!gaW){var G=new DWO;var D=void 0,Y=_.Nn("ID_TOKEN");Y&&G.isAvailable()&&(D=new bl(G,"yt-queue"+Y));gaW=new lA(D)}G=gaW;D=_.It();this.JSC$10643_actionRouter=Z;this.pageManager=y;this.playlistManager=W;this.JSC$10643_playlistNetworkManager=c;this.storage=G;this.signals=D;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.JI=function(){if(!VAQ){var y=_.U(),W=y.resolve(_.xN(_.h7)),c=y.resolve(_.xN(_.tq)),Z=y.resolve(_.xN(_.EU));y=y.resolve(_.b0);VAQ=new P0(W,Z,new p2w(c,y))}return VAQ};
CBQ=function(y,W,c){if(c){var Z;if(((Z=y.responsePlaylistData)==null?void 0:Z.playlistId)!==c)return}y.responsePlaylistData&&(c=m0t(W,y.responsePlaylistData),y.responsePlaylistData=(0,_.Eb.unsafeClone)(y.responsePlaylistData),u_a(y.responsePlaylistData,c));c=y.temporaryItems.findIndex(function(G){return G.videoId===W});
c>-1&&y.temporaryItems.splice(c,1);_.Vk(y,_.CH(y,y.response?y.response.autoplayRenderer:void 0))};
_.Qnm=function(y,W){if(y.responsePlaylistData){var c=sZf(W,y.responsePlaylistData);u_a(y.responsePlaylistData,c);if(y.queueProxy){var Z=y.queueProxy;c<0||(Z.videoIds.splice(c,1),c<Z.currentIndex&&Z.JSC$10589_setCurrentIndex(Z.currentIndex-1),Z.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:W}),UU(Z))}}_.Vk(y,_.CH(y,y.response?y.response.autoplayRenderer:void 0))};
P0.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Vk(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
P0.prototype.setPlaylistData=function(y,W,c){this.temporaryItems=[];this.listId=y;this.responsePlaylistData=W;_.Vk(this,_.CH(this,c))};
var AaW=function(y){return(y==null?0:y.playlistId)?y.playlistId:"PPSV"},hIE=function(y){return y&&y.playlistId?y.playlistId==="PPSV"?!0:iFI(_.Sv().getState().entities,y.playlistId):!1};
P0.prototype.isPlayingOfflineVideo=function(){return this.response?hIE(this.response):!1};
P0.prototype.closeMiniplayer=function(y){var W=this.queueProxy&&this.queueProxy.size()<=1,c=_.U().resolve(_.Cy);if(!this.queueProxy||W)this.queueProxy&&this.clearQueue(),c.close(!0);else{c.pipController.getWindow()&&window.focus();W=this.responsePlaylistData;var Z=this.temporaryItems.length+(W&&W.contents?W.contents.length:0);W=_.bN("QUEUE_CLEARED_UNPLURALIZED")||_.rK("QUEUE_CLEARED",Z);W=_.xR(W);c=_.bN("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Z=_.bN("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.rK("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Z);var G=_.bN("MINIPLAYER_CLOSE",void 0,"Close"),D=_.bN("CANCEL",void 0,"Cancel");_.RO(this.JSC$10643_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Lq(c),dialogMessages:[_.Lq(Z)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Lq(G),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
W]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Lq(D)}}}}}}],y)}};
_.CH=function(y,W){var c={},Z=y.response;c.autoplayRenderer=W;if(!y.responsePlaylistData&&!y.temporaryItems.length)return!Z||!Z.hasRelatedVideoData&&_.O("kevlar_prefetch_data_augments_network_data")||(c.playerData={rvs:Z.relatedVideoArgs,endScreenRenderer:Z.endScreenRenderer}),c;c.playerData={};if(y.index===void 0)return _.OP(Error("Ff")),c;c.panel=y.responsePlaylistData?(0,_.Eb.unsafeClone)(y.responsePlaylistData):{titleText:_.Lq(_.bN("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
W=c.panel;if(W.contents)for(var G=_.z(y.temporaryItems),D=G.next();!D.done;D=G.next())W.contents.push({playlistPanelVideoRenderer:D.value});y.queueProxy&&Z&&Z.playingVideo&&Z.playingVideoId&&!Yst(Z.playingVideoId,c.panel)&&(W=Z.playingVideo,G=c.panel,D=y.index,G.contents&&G.contents.splice(D===void 0?0:D,0,{playlistPanelVideoRenderer:W}));Z&&Z.playingVideoId&&(W=y.index,G=c.panel,W=!G.contents||W>=G.contents.length?void 0:G.contents[W].playlistPanelVideoRenderer,W&&W.videoId===Z.playingVideoId||(W=
m0t(Z.playingVideoId,c.panel),y.index=W!==-1?W:y.index?y.index-1:0));W=zrh(y.index+1,c.panel);G=void 0;y.index>0&&(G=zrh(y.index-1,c.panel));if(G||W)c.autoplayRenderer=f$g(W,G,c.autoplayRenderer);!W&&(Z==null?0:Z.relatedVideoArgs)&&(c.playerData.rvs=Z.relatedVideoArgs);Z=Z?Z.playlistIndexOffset:0;y.queueProxy?X8F(c.panel,y.index,Z,D0g,!0,!0,!0):X8F(c.panel,y.index,Z);c.playerData.playlistPanelRenderer=c.panel;return c};
P0.prototype.openToast=function(y){_.U().resolve(_.Cy).openToast(y,_.bN("ADDED_TO_QUEUE",void 0,"Added to queue"))};
P0.prototype.isMiniplayerActive=function(){return _.U().resolve(_.Cy).isMiniplayerActive()};
_.Vk=function(y,W){y.playlistManager.setAutoplayRenderer(W.autoplayRenderer||null);y.playlistManager.setPlaylistData(W.panel||null);W.playerData&&y.playlistManager.setPlayerPlaybackControlData(W.playerData)};var BxV="#";var HeV={},L2E={},vaW={},dBm={},SmE={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:(HeV.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",HeV),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:(L2E.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",L2E),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:(vaW.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",vaW),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:(dBm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",dBm),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 k6D=[{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:SmE},{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:SmE}}];var Tx8=[["Z2V5MzZwcmltYXJ5I2E2eWgxbm0=",null],[null,["ciN5OHh4OWk4cnVoaTJ5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJl","Y29wZSNhM2toZmQ2cG9sNmZzdHlsZS1z"]],["ZC1hZCM2YzRibjFjdGx2NzVtYXN0aGVh",["aWNoLWdyaWQtcmVuZGVyZXIjZm5lMHUxNjc1d3R1eXRkLXI="]],[null,["aWNoLWdyaWQtcmVuZGVyZXIjMnRnZnNnY3Y3cXFleXRkLXI=","Y29wZSNtcHZwbGZwZXlqYXlzdHlsZS1z"]],[null,["cHJvbW8tcmVuZGVyZXIjeXd3dzlqN3JraHNieXRkLWJhbm5lci0=","Y29wZSNheHZjamVoazkxdGpzdHlsZS1z"]],[null,["dGQtYWQtc2xvdC1yZW5kZXJlciNzbHZkamFpaGVxMTF5"]]];var d0O=[["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 Qk;Qk=function(y,W,c){this.als=y;this.isAsync=W;this.hEE=c};
_.m6D=[new Qk("b.f_",!1,0),new Qk("j.s_",!1,2),new Qk("r.s_",!1,4),new Qk("e.h_",!1,6),new Qk("i.s_",!0,8),new Qk("s.t_",!1,10),new Qk("p.h_",!1,12),new Qk("s.i_",!1,14),new Qk("f.i_",!1,16),new Qk("a.b_",!1,18),new Qk("a.o_",!1),new Qk("g.o_",!1,22),new Qk("p.i_",!1,24),new Qk("p.m_",!1),new Qk("n.k_",!0,20),new Qk("i.f_",!1),new Qk("a.s_",!0),new Qk("m.c_",!1),new Qk("n.h_",!1,26),new Qk("o.p_",!1),new Qk("m.p_",!0,28),new Qk("o.a_",!1),new Qk("d.p_",!1)].reduce(function(y,W){y[W.als]=W;return y},
{});var U0y=function(){};
U0y.prototype.flush=function(y,W){y=y===void 0?[]:y;W=W===void 0?!1:W;if(_.O("enable_client_streamz_web")){y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=IGZ(c.value),c={serializedIncrementBatch:_.OB(c.JSC$7472_serializeBinary())},_.$g("streamzIncremented",c,{sendIsolatedPayload:W})}};var qW;var x0I,KWI,PuI,RrH,N$D,LWF,McI,xBm,hrF,yM,w8I,cZE,AI;x0I=2;KWI=2;PuI=2;RrH=2;N$D=2;LWF=2;McI=2;xBm=new gkE;hrF=function(){this.gze=!1};
yM=function(y,W,c){_.O("ab_l_sig_st_e")&&xBm.increment(c,W);W===0&&(y.gze=!0)};
w8I=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];cZE=[[["kind","value"],"AD_PLACEMENT"]];AI={};_.ie3=(AI["b.f_"]=function(){return _.m(function(y){return y.nextAddress==1?_.n(y,(_.qSD()!==void 0?_.hG(Error("sf")):_.vjD()).then(function(){return 1},function(W){if(W.message==="Biscotti id is disabled")return 3;
_.Rs("Failed fetching bid");return 0}),2):y.return(y.yieldResult)})},AI["j.s_"]=B$f,AI["r.s_"]=QZh,AI["e.h_"]=function(){return vnt(bBf(Tx8,function(y){y=WKD(y,!0);
if(y){var W=y.length;var c=-65%W;c<0&&(c=W+c);y=y.slice(W-c)+y.slice(0,W-c)}else y="";c="";for(W=0;W<y.length&&y[W]!==BxV;W++)c+=y[W];return c}))},AI["n.h_"]=function(){return vnt(bBf([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},AI["i.s_"]=HBD,AI["p.h_"]=function(){return 2},AI["s.t_"]=function(){return x0I},AI["s.i_"]=iBE,AI["f.i_"]=gny,AI["a.b_"]=VcH,AI["a.o_"]=a$1,AI["g.o_"]=T$O,AI["p.i_"]=Ssy,AI["p.m_"]=EnF,AI["n.k_"]=function(){return _.Nn("NKDSTAT",2)},AI["i.f_"]=p8D,AI["a.s_"]=function(){return _.Nn("ASDSTAT",2)},AI["m.c_"]=function(){return 2},AI["o.p_"]=function(){for(var y=[],W=0,c=0;c<w8I.length;c++)y[c]=w8I[c],W++;
y[W]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";y[W+1]="YWJfc2FfZWY=";return erH(y)},AI["m.p_"]=function(){return _.Nn("MBSTAT",2)},AI["o.a_"]=function(){return qsI()},AI["d.p_"]=function(){return McI},AI);var MAE,eI8,wLV;MAE=function(){this.ongoingFlowNonces=new Map};
_.G2=function(){eI8||(eI8=new MAE);return eI8};
_.cK=function(y,W,c){return{eventType:{flowEventNamespace:y,flowEventType:W},metadata:c,statusCode:void 0,csn:void 0,can:void 0}};
_.uKH=function(y,W){var c=_.G2(),Z=wLV(c,W,!0);_.Zl(c,y,W,Z)};
_.Zl=function(y,W,c,Z){y={flowNonce:Z||wLV(y,c),flowType:c,flowEventType:W.eventType};W.metadata&&(y.flowMetadata=W.metadata);W.statusCode!==void 0&&(y.flowEventStatus=W.statusCode);W.csn&&(y.csn=W.csn);W.can&&(y.can=W.can);_.$g("flowEvent",y,void 0)};
wLV=function(y,W,c){c=c===void 0?!1:c;var Z=y.ongoingFlowNonces.get(W);if(!Z||c)Z=Ri(16),y.ongoingFlowNonces.set(W,Z);return Z};_.qmT=new OL8;var hI=function(y,W,c,Z,G,D,Y){c=c===void 0?!1:c;Z=Z===void 0?!1:Z;D=D===void 0?_.JI():D;this.hasRun=!1;this.odz=y;this.gIX=W;this.x8p=c;this.fromHistory=Z;this.previousVideoId=G;this.zC6=D;this.tempData=Y;this.rV6=new _.Ry5};
_.R(hI,vv);hI.prototype.validate=function(y){return!(!y.data.playerResponse||y.data.page!=="watch"&&y.data.page!=="shorts"||this.hasRun)};
hI.prototype.handle=function(y){var W=this,c=_.g(y.endpoint,_.Sb),Z=_.g(y.endpoint,_.mv);if(_.O("kevlar_continue_playback_without_player_response")&&(c==null?0:c.videoId)&&this.previousVideoId&&(c==null?void 0:c.videoId)===this.previousVideoId&&(c==null?0:c.continuePlayback)&&!this.fromHistory)this.odz.resolve();else{var G={};c?G.watch_endpoint=c:Z&&(G.watch_endpoint=Z,Z.endTimeSeconds&&(G.end=Z.endTimeSeconds));y.data.page==="watch"?(y.data.filler||this.x8p||(_.JE("cfg"),_.Q8.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(G,kQZ(this,y.endpoint)),_.O("enable_masthead_quartile_ping_fix")&&Object.assign(G,jMm(this)),c=!_.O("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(G,c),y.data.forceExternalPlaylist&&(G.external_list=!0)):y.data.page==="shorts"&&_.Q8.getInstance().triggerAction("yt-start-loading-shorts");if(c=this.gIX()){try{c.loadVideoWithPlayerResponse(y.data.playerResponse,G),c.getPlayerPromise().then(this.odz.resolve)}catch(D){_.OP(D),this.odz.resolve()}this.hasRun=
!0;c.getPlayerPromise().then(function(D){D.addEventListener("onAbnormalityDetected",function(){var Y=y.data.playerResponse,u=D.getVideoData().cpn;McI=0;_.acV=u;if(u=YOf(Y))W.rV6.increment("IN_PLAYER"),_.fZ(5),_.O("ab_st_vid_ks")?D.pauseVideo(!0):D.stopVideo(),Y.playabilityStatus=Object.assign({},Y.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:u}}),Y.videoDetails=void 0,_.Q8.getInstance().triggerOptionalAction("yt-updated-playability-status",Y.playabilityStatus)})})}else _.Rs(Error("If"))}};
var kQZ=function(y,W){var c=_.g(W,_.Sb);if(W&&c&&c.playlistId&&c.videoId&&(y=y.zC6,y.queueProxy?(y=y.queueProxy,c=y.listId===c.playlistId?y.attributionData.get(c.videoId):void 0):c=void 0,c))return{queue_info:c}},jMm=function(y){var W;
if((W=y.tempData)==null?0:W.adpings)return{adpings:y.tempData.adpings}};var B0=function(y,W,c){this.hasRun=!1;this.ghx=y;this.pUp=W;this.wVx=c};
_.R(B0,vv);B0.prototype.validate=function(y){return!!_.Eb.getValueByKeys.apply(null,[y.data].concat(_.No(Oe3)))};
B0.prototype.handle=function(y){var W=this;this.ghx.promise.then(function(){var c=y.data;var Z=_.Eb.getValueByKeys.apply(null,[c].concat(_.No(XLQ))),G=_.Eb.getValueByKeys.apply(null,[c].concat(_.No($B5))),D=_.Eb.getValueByKeys.apply(null,[c].concat(_.No(raV)));var Y=(Y=_.Eb.getValueByKeys.apply(null,[c].concat(_.No(be2))))?{videoId:Y.videoId,thumbnail:Y.thumbnail,title:Y.title?_.Lq(Y.title):void 0,shortBylineText:Y.author?_.Lq(Y.author):void 0}:void 0;var u=void 0;_.O("web_get_playlist_id_from_current_endpoint_ks")||
(u=_.Eb.getValueByKeys.apply(null,[c].concat(_.No(F2J))));var t=_.Eb.getValueByKeys.apply(null,[c].concat(_.No(K2V))),b=_.Eb.getValueByKeys.apply(null,[c].concat(_.No(UBi))),r=!!t||!!b&&!!b.results&&b.results.length>0,F=0;G&&G.currentIndex&&G.localCurrentIndex&&(F=G.currentIndex-G.localCurrentIndex);G&&G.playlistId&&(u=G.playlistId);c={rawResponse:c,autoplayRenderer:Z,hasRelatedVideoData:r,playingVideo:Y,playingVideoId:D,playlistPanelRenderer:G,playlistId:u,playlistIndex:G&&G.currentIndex,relatedVideoArgs:t,
endScreenRenderer:b,playlistIndexOffset:F};a:{Z=W.wVx;G=W.pUp;Z.response=c;if(hIE(c))Z.downloadPlaylistProxy&&Z.downloadPlaylistProxy.getPlaylistId()===AaW(c)||(Z.downloadPlaylistProxy=new DB3(AaW(c),Z.setPlaylistData.bind(Z),Z.isPlayingOfflineVideo.bind(Z))),Z.responsePlaylistData=Z.downloadPlaylistProxy.getPlaylistData(),Z.listId=AaW(c),Z.index=0;else if(c.playlistPanelRenderer&&c.playlistId&&c.autoplayRenderer)c.playlistId.startsWith("TLPQ")?Z.queueProxy?Z.listId===c.playlistId?(Z.index=c.playlistIndex,
Z.responsePlaylistData=c.playlistPanelRenderer,Z.queueProxy.JSC$10589_setCurrentIndex(Z.index)):c.playingVideoId&&Z.index!==void 0&&G.clientParams.autoSaveToQueue&&(Z.index+=1,Z.queueProxy.JSC$10589_setCurrentIndex(Z.index),Z.queueProxy.addVideos([c.playingVideoId],{},Z.index)):(Z.queueProxy=new _.$P(Z.JSC$10643_playlistNetworkManager,c.playlistId,Z.setPlaylistData.bind(Z),Z.clearQueue.bind(Z),_.tcH(c.playlistPanelRenderer),Z.storage),Z.responsePlaylistData=c.playlistPanelRenderer,Z.listId=c.playlistId,
Z.index=c.playlistIndex):(Z.index=c.playlistIndex,Z.listId!==c.playlistId&&Z.clearQueue(),Z.responsePlaylistData=c.playlistPanelRenderer,Z.listId=c.playlistId,Z.playlistProxy=new naT(Z.JSC$10643_playlistNetworkManager,c.playlistId,Z.setPlaylistData.bind(Z),_.tcH(c.playlistPanelRenderer)));else if(!Z.queueProxy)Z.responsePlaylistData=void 0;else if(c.playingVideoId&&G.clientParams.autoSaveToQueue){if(Z.index===void 0){_.OP(Error("Ef"));Z.clearQueue();break a}Z.queueProxy.videoIds.includes(c.playingVideoId)||
(Z.index+=1,Z.queueProxy.JSC$10589_setCurrentIndex(Z.index),Z.queueProxy.addVideos([c.playingVideoId],{},Z.index))}_.Vk(Z,_.CH(Z,Z.response.autoplayRenderer))}})};var y2i=function(y,W){W=W===void 0?_.JI():W;c0.call(this);this.zW.push(new B0(this.cg,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},W));this.zW.push(new hI(this.cg,y,!1,!1));_.O("web_response_commands_chunk_processor")&&this.zW.push(new ZE)};
_.R(y2i,c0);y2i.prototype.processChunk=function(y){y&&y.data.player===void 0&&this.cg.resolve();c0.prototype.processChunk.call(this,y)};var H0=function(y,W){y=y===void 0?{layer:0}:y;this.hasRun=!1;this.createScreenConfig=y;this.ox3=W};
_.R(H0,vv);H0.prototype.validate=function(y){return!(this.hasRun||!y.endpoint)};
H0.prototype.handle=function(y){var W=_.Zz(),c,Z,G=(Z=_.g((c=y.endpoint)==null?void 0:c.commandMetadata,_.kT))==null?void 0:Z.rootVe;this.ox3&&G?_.wR(W,G,this.ox3,this.createScreenConfig):x6Z(W,y.endpoint,this.createScreenConfig);this.hasRun=!0};var LH=function(y,W){this.hasRun=!1;this.cVR=y;this.previousVideoId=W};
_.R(LH,vv);LH.prototype.validate=function(y){return _.O("kevlar_continue_playback_without_player_response")&&(y=_.g(y.endpoint,_.Sb),(y==null?0:y.videoId)&&this.previousVideoId&&(y==null?void 0:y.videoId)===this.previousVideoId&&(y==null?0:y.continuePlayback))?!1:this.cVR.lcS===0};
LH.prototype.handle=function(y){_.Q8.getInstance().triggerAction("yt-stop-old-player",y.data,!0)};var WnZ=function(y){y=y===void 0?{layer:0}:y;c0.call(this);this.zW.push(new LH(this));this.zW.push(new H0(y));this.zW.push(new W0(y))};
_.R(WnZ,c0);var c2V=function(){this.hasRun=this.hasRun=!1};
_.R(c2V,vv);c2V.prototype.validate=function(y){return!this.hasRun&&!(!y.data.csn||!y.data.rootVe)};
c2V.prototype.handle=function(y){this.hasRun=!0;_.tXI(y.data.csn,y.data.rootVe,3)};var ZWQ=function(){vv.apply(this,arguments)};
_.R(ZWQ,vv);ZWQ.prototype.validate=function(y){return!!y.data.preconnect};
ZWQ.prototype.handle=function(y){_.PA("bc");y=_.z(y.data.preconnect);for(var W=y.next();!W.done;W=y.next())W=W.value,(new Image).src=W};var GV3=function(y,W,c){c=c===void 0?{layer:0}:c;c0.call(this);this.zW.push(new hI(this.cg,y));this.zW.push(new H0(c));this.zW.push(new W0(c))};
_.R(GV3,c0);var fWE=function(y,W,c,Z,G){c=c===void 0?{layer:0}:c;Z=Z===void 0?_.JI():Z;c0.call(this);var D=!!W&&!!W.clientParams&&!!W.clientParams.miniplayer;D&&this.zW.push(new c2V);this.zW.push(new B0(this.cg,W,Z));this.zW.push(new ZWQ);var Y,u;this.zW.push(new hI(this.cg,y,D,!((Y=W.clientParams)==null||!Y.fromHistory),(u=W.clientParams)==null?void 0:u.previousVideoId,Z,W.tempData));var t;this.zW.push(new LH(this,(t=W.clientParams)==null?void 0:t.previousVideoId));var b;(b=W.clientParams)!=null&&b.fromHistory||
(c.layer||(c=Object.assign({},c,{layer:D?3:0})),this.zW.push(new H0(c,G)),this.zW.push(new W0(c)));_.O("web_response_commands_chunk_processor")&&this.zW.push(new ZE)};
_.R(fWE,c0);var v0,zkV;v0={};
_.oVW=(v0["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},v0["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},v0["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},v0["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},v0["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},v0["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},v0["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},v0);_.dF=new _.EW("yt-edu");_.DTW=function(){this.JSC$10741_eduDisplayedThisLoad_={}};
zkV=function(y){var W=_.DTW.getInstance();var c=_.ey("kevlar_tooltip_impression_cap");W=c&&parseInt(_.dF.get(y+"-impression")||0,10)>=c||_.dF.get(y+"-dismissed")?!1:(c=_.oVW[y])&&!W.JSC$10741_eduDisplayedThisLoad_[c.setKey||y]&&(c.titleText&&_.bN(c.titleText)||c.bodyText&&_.bN(c.bodyText))?!0:!1;if(!W)return null;W=_.oVW[y];if(!W)return null;c=W.bodyText?_.bN(W.bodyText):void 0;var Z=W.titleText?_.bN(W.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:W.position,popup:{bubbleHintRenderer:{text:Z?
_.Lq(Z):void 0,detailsText:c?_.Lq(c):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Lq(_.bN("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:y}}]}}}}}}}},{eduImpressionAction:{key:y}}]};
_.qa(_.DTW);var tiE=!1;var rZh={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 Y73="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),mTV=[],Sz=6;Sz>=1;Sz--)mTV.push({columnCount:Sz,query:Sz==1?0:Sz*2*107-4+32,className:"grid-"+Sz+"-columns",width:Sz*2*107+"px"});_.uS8=function(y){this.actionRouter_=y=y===void 0?_.Q8.getInstance():y;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.sMW(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.sMW=function(y){var W=y.miniGuideVisible_?72:0,c=y.documentWidth_-(y.guidePersistentAndVisible_?240:W);return mTV.find(function(Z){return c>Z.query})};
_.qa(_.uS8);var t7Q=function(){var y=this;this.JSC$10754_keyboardInUse=!1;document.addEventListener("keydown",function(){y.onKeydown()});
document.addEventListener("mousedown",function(){y.JSC$10754_keyboardInUse=!1})},nV2;
t7Q.prototype.isKeyBoardInUse=function(){return this.JSC$10754_keyboardInUse};
t7Q.prototype.onKeydown=function(){this.JSC$10754_keyboardInUse=!0};var XBZ,xP;_.TR=new _.EW("yt-mentions");_.at=function(){};
XBZ=function(y,W){return xP(W,"drag-to-reorder-edu-displayed")};
xP=function(y,W,c,Z,G,D){c=c===void 0?"OPEN_POPUP_POSITION_TOP":c;if(W){if(_.TR.get(W))return;_.TR.set(W,!0,Z)}if(G&&D!==void 0){W=Number(_.TR.get(G)||0);if(W>=D)return;_.TR.set(G,W+1)}return[{openPopupAction:{popupType:"HINT",position:c,popup:{bubbleHintRenderer:{detailsText:y,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.qa(_.at);var bWJ,r2E,FnJ;bWJ=function(y,W,c,Z){this.JSC$10764_taskManager_=y;this.onFulfilled_=typeof W==="function"?W:null;this.onRejected_=typeof c==="function"?c:null;this.JSC$10764_context_=Z};
r2E=function(y,W){y.onFulfilled_&&_.YY(y.JSC$10764_taskManager_,function(){y.onFulfilled_.call(y.JSC$10764_context_,W)})};
FnJ=function(y,W){y.onRejected_&&_.YY(y.JSC$10764_taskManager_,function(){y.onRejected_.call(y.JSC$10764_context_,W)})};
_.iA=function(y){this.JSC$10767_taskManager_=y;this.callbacks_=[]};
_.iA.prototype.then=function(y,W,c){this.callbacks_.push(new bWJ(this.JSC$10767_taskManager_,y,W,c));return this};
_.iA.prototype.onSuccess=function(y){this.callbacks_.forEach(function(W){r2E(W,y)})};
_.iA.prototype.onFailure=function(y){this.callbacks_.forEach(function(W){FnJ(W,y)})};
_.iA.prototype.cancel=function(){this.callbacks_.length=0};
VLE(_.iA);_.U6I=null;_.t7=new _.Sm("ACTIVITY_TOKEN");var R5w=/^[a-zA-Z0-9_\-]{11}$/;var lfF=_.sf(function(){var y,W;return(W=(y=window).matchMedia)==null?void 0:W.call(y,"(prefers-reduced-motion: reduce)").matches});var UTZ=_.sf(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 y=_.JW("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");y||(y=_.uC("VIDEO"),_.LR("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
y));return!!(y&&y.canPlayType&&y.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var $Ti;_.Mt=new _.Sm("SHORTS_CONTROLLER_TOKEN");$Ti=new _.Sm("SHORTS_STATE_STORE_TOKEN");var ez=function(y,W){var c=_.Cf.apply(2,arguments);y=y===void 0?0:y;_.ul.call(this,W,c);this.errorType=y;Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(ez,_.ul);var Kn8,OW8,gVm,RkJ,EVi,x5g,hd,XCE,PxQ,pBE,hkW,CxE,V7Q;Kn8=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(y){return y+"="}).join("|"));
OW8=RegExp(".*\\?.*ybp=1.*");gVm=["FEcommerce_cart","SPcommerce_checkout"];RkJ=RegExp(".*\\?.*playnext=1.*");_.wF=function(y,W,c,Z){this.watchEndpointMap=y;this.reelWatchEndpointMap=W;this.innerTubeTransportService=c;this.fetchPbj=Z;this.forceWebFEForAdsTesting=!1};
EVi=function(y,W,c){var Z=_.U().resolve(_.xN(lW8));_.wF.instance=new _.wF(y,W,c,Z)};
_.NOW=function(y,W){var c=_.ey("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;var Z;if((Z=_.g(W.commandMetadata,_.kT))==null||!Z.rootVe)return c&&_.Rs(Error("Of")),!1;var G;Z=(G=_.g(W.commandMetadata,_.kT))==null?void 0:G.url;if(!Z)return c&&_.Rs(Error("Pf")),!1;if(RkJ.test(Z))return!0;if(Kn8.test(Z))return c&&_.Rs(Error("Qf`"+Z)),!1;var D;G=(D=_.g(W,_.oW))==null?void 0:D.browseId;if(OW8.test(Z)&&(!G||!gVm.includes(G)))return c&&_.Rs(Error("Rf`"+Z)),!1;if(_.g(W,_.Sb)){if(y.forceWebFEForAdsTesting)return c&&
_.Rs(Error("Sf")),!1;if(!(y.watchEndpointMap.watchNext&&y.watchEndpointMap.player||_.O("kevlar_fetch_initial_data_op_watch_client")))return c&&_.Rs(Error("Kf")),!1;y=_.ey("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;_.g(W,_.Sb)?O4I(W)?W=!0:(y&&_.Rs(Error("Lf")),W=!1):(y&&_.Rs(Error("Kf")),W=!1);return W}if(_.g(W,_.mv))return gsE(W);if(_.g(W,_.Ox))return!0;W=_.Nu(y.innerTubeTransportService,W);c&&_.Rs(Error("Tf"));return W};
x5g=function(y,W,c,Z,G,D){W={url:W};if(c==null?0:c.itct)W.parentTrackingParams=c.itct;var Y=_.Tx(Gpi);return _.OU(y.innerTubeTransportService,W,Y).then(function(u){(u=u.endpoint)||(u=_.fH);(c==null?0:c.itct)&&u&&!u.trackingParams&&(u.trackingParams=c.itct);var t=z2(u);return hd(y,u,c,Z,t,G,D)})};
hd=function(y,W,c,Z,G,D,Y,u){u=u===void 0?{}:u;if(y.fetchPbj&&!_.NOW(y,W)){u=y.fetchPbj(W);var t=_.sc(u.then(function(M){if(!M)throw Error("Uf");Y(t)||D(W,M);return M}));
return t}var b,r,F={rootVe:(b=_.g(W.commandMetadata,_.kT))==null?void 0:b.rootVe,url:(r=_.g(W.commandMetadata,_.kT))==null?void 0:r.url,endpoint:W,page:G};if(_.g(W,_.Sb)){var K,l={contentPlaybackContext:_.st(c,(K=_.g(W.commandMetadata,_.kT))==null?void 0:K.url,Z)},N=_.px();_.O("web_streaming_watch")&&window.TextDecoderStream?(u=IW0(y.innerTubeTransportService,W,l,function(M){!F.response&&M.content&&(F.response=M.content);!F.playerResponse&&M.player&&(F.playerResponse=M.player);D(W,F)}),b=T_I(W),b.length&&
(F.preconnect=b,D(W,F)),pBE(u,N,F).catch(function(M){M instanceof ez&&M.errorType===2&&PxQ(y,W,l,F,D,Y,N)})):PxQ(y,W,l,F,D,Y,N);
return N.promise}if(_.g(W,_.mv)){var P;if(((P=_.g(W,_.mv))==null?void 0:P.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var V=_.px();_.J2Z(_.U().resolve(_.Mt),W).then(function(M){V7Q(y,c,Z,G,D,V,M)});
return V.promise}u=_.sc();var Q;b={contentPlaybackContext:_.st(c,(Q=_.g(W.commandMetadata,_.kT))==null?void 0:Q.url,Z)};(Q=y.reelWatchEndpointMap.player)&&(Q=Q().JSC$11754_getRequest(W,b))&&(u=_.OU(y.innerTubeTransportService,Q.innerTubeRequest,Q.input,W.clickTrackingParams,Q.config));Q=_.sc();(r=y.reelWatchEndpointMap.reelItemWatch)&&(r=r().JSC$11754_getRequest(W))&&(Q=_.OU(y.innerTubeTransportService,r.innerTubeRequest,r.input,W.clickTrackingParams,r.config));r=_.sc();(K=y.reelWatchEndpointMap.reelWatchSequence)&&
_.g(W,_.mv).sequenceParams&&(b=K().JSC$11754_getRequest(W,b))&&(r=_.OU(y.innerTubeTransportService,b.innerTubeRequest,b.input,W.clickTrackingParams,b.config));b=_.sc(F);K=_.px();CxE(W,b,u,Q,r,D,Y,K);return K.promise}var S;if(_.g(W,FKI)&&((S=_.g(W.commandMetadata,_.kT))==null?0:S.url))return u=Pcg(_.ho(pP().location.href),_.ho(_.g(W.commandMetadata,_.kT).url)).toString(),x5g(y,u,c,Z,D,function(){return!1});
if(_.g(W,_.Ox))return D(W,F),_.sc(F);if(_.Nu(y.innerTubeTransportService,W)){u=Object.assign({},{tempData:c,disableCache:c.disableCache},u);var cy=_.IL(y.innerTubeTransportService,W,u).then(function(M){F.response=M;Y(cy)||D(W,F);return F});
return cy}return _.sc(F)};
_.A22=function(y,W,c,Z){if(_.g(W,_.Sb)||_.g(W,_.mv)&&(_.O("mweb_enable_shorts_innertube_player_prefetch")||_.O("kevlar_enable_shorts_prefetch_in_sequence"))||_.g(W,sUQ)&&_.O("web_enable_prefetching_videos_on_home")){var G,D={contentPlaybackContext:_.st(c,(G=_.g(W.commandMetadata,_.kT))==null?void 0:G.url,Z),prefetchPlaybackContext:NYF(c)},Y,u,t;if(((Y=_.g(W,_.Sb))==null?void 0:(u=Y.watchEndpointSupportedPrefetchConfig)==null?void 0:(t=u.prefetchHintConfig)==null?void 0:t.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(c=
y.watchEndpointMap.watchNext)if(D=c().JSC$11754_getRequest(W,D))return Promise.resolve(_.OU(y.innerTubeTransportService,D.innerTubeRequest,D.input,void 0,D.config).then(function(F){return F}))}else if(_.g(W,_.mv)&&_.O("web_prefetch_riw_for_next_video")){if(c=y.reelWatchEndpointMap.reelItemWatch)if((c=c().JSC$11754_getRequest(W,D))&&_.OU(y.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(F){return F}),c=y.reelWatchEndpointMap.player)if(D=c().JSC$11754_getRequest(W,
D))return Promise.resolve(_.OU(y.innerTubeTransportService,D.innerTubeRequest,D.input,void 0,D.config).then(function(F){return F}))}else if(c=y.watchEndpointMap.player)if(D=c().JSC$11754_getRequest(W,D))return Promise.resolve(_.OU(y.innerTubeTransportService,D.innerTubeRequest,D.input,void 0,D.config).then(function(F){return F}))}else if(_.Nu(y.innerTubeTransportService,W)){var b={tempData:c},r=QMV(y.innerTubeTransportService,W);
return r?new Promise(function(F,K){var l,N;return _.m(function(P){if(P.nextAddress==1)return _.n(P,r,2);if(P.nextAddress!=4)return l=P.yieldResult,l.JSC$11761_getStoreKey(W,b)?_.n(P,_.IL(y.innerTubeTransportService,W,b),4):(K(new _.ul("Prefetching request builder with no store key.",W)),P.jumpTo(0));N=P.yieldResult;F(N);_.F2(P)})}):Promise.reject(new _.ul("Prefetching unregistered request builder.",W))}return Promise.reject(new _.ul("No request builder available to prefetch endpoint.",W))};
XCE=function(y,W){var c,Z,G;if(_.g(W,_.Sb)){var D=y.watchEndpointMap.watchNext;D&&(c=D());(y=y.watchEndpointMap.player)&&(Z=y())}else if(_.g(W,_.mv))(D=y.reelWatchEndpointMap.reelItemWatch)&&(c=D()),(D=y.reelWatchEndpointMap.player)&&(Z=D()),(y=y.reelWatchEndpointMap.reelWatchSequence)&&(G=y());else{a:{y=cwy(W,y.innerTubeTransportService.endpointMap);if(y!==void 0)if(typeof y.then==="function")_.OP(new _.ul("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",W));else break a;
y=void 0}y&&(c=y)}var Y,u,t;return{content:(Y=c)==null?void 0:Y.JSC$11761_getStoreKey(W),player:(u=Z)==null?void 0:u.JSC$11761_getStoreKey(W),reelSequence:(t=G)==null?void 0:t.JSC$11761_getStoreKey(W)}};
PxQ=function(y,W,c,Z,G,D,Y){var u=_.sc(),t=y.watchEndpointMap.player;t&&(t=t().JSC$11754_getRequest(W,c))&&(u=_.OU(y.innerTubeTransportService,t.innerTubeRequest,t.input,W.clickTrackingParams,t.config));t=_.sc();var b=y.watchEndpointMap.watchNext;b&&(c=b().JSC$11754_getRequest(W,c))&&(t=_.OU(y.innerTubeTransportService,c.innerTubeRequest,c.input,W.clickTrackingParams,c.config));y=_.sc(Z);hkW(W,y,u,t,G,D,Y)};
pBE=function(y,W,c){return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y,2);W.resolve(c);_.F2(Z)})};
hkW=function(y,W,c,Z,G,D,Y){var u,t,b,r,F;_.m(function(K){switch(K.nextAddress){case 1:return _.n(K,W,2);case 2:u=K.yieldResult;if(D(Y.promise))return Y.resolve(u),K.return();G(y,u);t=T_I(y);if(!t.length){K.jumpTo(3);break}return _.n(K,W,4);case 4:u.preconnect=t,G(y,u);case 3:return _.tm(K,5),_.n(K,c,7);case 7:b=K.yieldResult;_.J6(K,6);break;case 5:return r=_.rs(K),Y.reject(r),K.return();case 6:if(b===void 0)return u.reload=!0,G(y,u),Y.resolve(u),K.return();if(D(Y.promise))return Y.resolve(u),K.return();
u.playerResponse=b;G(y,u);_.tm(K,8);return _.n(K,Z,10);case 10:F=K.yieldResult;_.J6(K,9);break;case 8:_.rs(K);case 9:if(F===void 0)return u.response={responseContext:{}},Y.resolve(u),K.return();if(D(Y.promise))return Y.resolve(u),K.return();u.response=F;G(y,u);Y.resolve(u);_.F2(K)}})};
CxE=function(y,W,c,Z,G,D,Y,u){var t,b,r,F,K,l;_.m(function(N){switch(N.nextAddress){case 1:return _.n(N,W,2);case 2:t=N.yieldResult;if(Y(u.promise))return u.resolve(t),N.return();D(y,t);b=T_I(y);if(!b.length){N.jumpTo(3);break}return _.n(N,W,4);case 4:t.preconnect=b,D(y,t);case 3:return _.tm(N,5),_.n(N,c,7);case 7:r=N.yieldResult;_.J6(N,6);break;case 5:return F=_.rs(N),u.reject(F),N.return();case 6:if(r===void 0)return t.reload=!0,D(y,t),u.resolve(t),N.return();if(Y(u.promise))return u.resolve(t),
N.return();t.playerResponse=r;D(y,t);_.tm(N,8);return _.n(N,Z,10);case 10:K=N.yieldResult;_.J6(N,9);break;case 8:_.rs(N);case 9:if(K===void 0)return t.response={responseContext:{}},u.resolve(t),N.return();if(Y(u.promise))return u.resolve(t),N.return();t.response=K;D(y,t);_.tm(N,11);return _.n(N,G,13);case 13:l=N.yieldResult;_.J6(N,12);break;case 11:_.rs(N);case 12:if(Y(u.promise))return u.resolve(t),N.return();t.reelWatchSequenceResponse=l;D(y,t);u.resolve(t);_.F2(N)}})};
V7Q=function(y,W,c,Z,G,D,Y){var u,t,b,r,F,K;_.m(function(l){if((u=Y)==null||!u.replacementEndpoint)return D.reject(),l.return();t=Y.replacementEndpoint;(b=_.g(t,_.mv))?(Y.sequenceContinuation&&(b.sequenceParams=Y.sequenceContinuation),r=_.U().resolve(_.Mt),F=b.sequenceParams,BO2(r,t)&&delete b.sequenceParams,K=hd(y,t,W,c,Z,G,function(){return!1}),K.then(function(N){return _.m(function(P){if(P.nextAddress==1)return HW8(r,{reelWatchEndpoint:{sequenceParams:F}},N),_.n(P,0,2);
D.resolve(N);_.F2(P)})})):D.reject();
_.F2(l)})};_.Ln3=function(y){if(y.validatedFragments_.length==0)return null;if(!y.mergedPrefetchedData_){for(var W=[],c=_.z(y.validatedFragments_),Z=c.next();!Z.done;Z=c.next()){Z=_.z(y.fragmentConfiguration_[Z.value].graftedKeys);for(var G=Z.next();!G.done;G=Z.next())(G=y.prefetchedData_[G.value].trackingParams)&&W.push(G)}y.mergedPrefetchedData_={};Object.assign(y.mergedPrefetchedData_,y.prefetchedData_,{clientSideGrafts:W})}return y.mergedPrefetchedData_};var vVW;_.qt=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
vVW=function(y,W,c){if(_.$6h(W))return y.prefetchCache_.get(_.KKa(W,c))};_.kP=new _.Sm("NAVIGATION_TOKEN");var dTE=function(y){var W=this;var c=c===void 0?PZh():c;var Z=Z===void 0?_.U().resolve(_.kP):Z;this.onePickCommand=y;this.JSC$10868_playlistNetworkManager=c;this.navigationManager=Z;this.videoPickerBuilder=_.IfI("yt-addtoplaylist");_.qA8(SPE(TC2(dFT(this.videoPickerBuilder.setTitle(y.modalTitle).setSize(1E3).addView(iRJ()).addView(xCE())).addView("youtube"),y.selectButtonLabel)),function(G){W.handleAction(G)})};
dTE.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
dTE.prototype.handleAction=function(y){var W=this;if(y&&this.onePickCommand.listId&&y.action==="picked"&&y.docs){var c=[];y.docs.forEach(function(Z){c.push({addedVideoId:Z.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10868_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,c).then(function(){_.O("playlist_add_video_hard_reload_killswitch")?W.navigationManager.reload():S7T(W.navigationManager)})}};var TOZ=function(){if(this.constructor===TOZ)throw new TypeError("Vf");};
_.f=TOZ.prototype;_.f.dispose=function(){};
_.f.disconnect=function(){};
_.f.reconnect=function(){};
_.f.observe=function(y,W,c){return{element:y,option:c}};
_.f.unobserveByKey=function(){};var JZg=function(y,W){W=W===void 0?0:W;TOZ.call(this);this.viewroot=y;this.defaultPrescanHeight=W;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),y?{root:y,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.R(JZg,TOZ);_.f=JZg.prototype;_.f.dispose=function(){this.disconnect();this.handlers.clear()};
_.f.disconnect=function(y){this.isConnected=!1;this.pauseObservingUntilReconnect=y===void 0?!1:y;this.observer.disconnect();y=_.z(this.prescanObservers.values());for(var W=y.next();!W.done;W=y.next())W.value.disconnect()};
_.f.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var y=_.z(this.handlers),W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;var Z=c.next().value;c=!1;Z=_.z(Z.keys());for(var G=Z.next();!G.done;G=Z.next())if((G=G.value)&&G.state==="prescan"){c=!0;break}c&&aW2(this,W).observe(W);this.observer.observe(W)}}};
_.f.handleObserveEvent=function(y){y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var c=this.handlers.get(W.target);if(c){var Z=W.isIntersecting;c=_.z(c);for(var G=c.next();!G.done;G=c.next()){var D=_.z(G.value);G=D.next().value;D=D.next().value;G&&(G.state==="visible"&&Z||G.state==="hidden"&&!Z)&&(D(W.target,G.state),G.calledOnce&&this.unobserveByKey({element:W.target,option:G}))}}}};
_.f.handlePrescanEvent=function(y){y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var c=this.handlers.get(W.target);if(c&&W.isIntersecting){c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;Z&&Z.state==="prescan"&&(G(W.target,Z.state),Z.calledOnce&&this.unobserveByKey({element:W.target,option:Z}))}}}};
_.f.observe=function(y,W,c){var Z=(Z=this.handlers.get(y))&&Z.has(c)?{element:y,option:c}:void 0;if(Z)return Z;Z={element:y,option:c};this.handlers.has(y)||this.handlers.set(y,new Map);var G=this.handlers.get(y);G&&!G.has(c)&&G.set(c,W);this.pauseObservingUntilReconnect||(c.state==="prescan"&&aW2(this,y).observe(y),this.observer.observe(y));return Z};
_.f.unobserveByKey=function(y){var W=this.handlers.get(y.element);if(W&&W.has(y.option)){W.delete(y.option);if(y&&y.option.state==="prescan")for(var c=_.z(this.prescanObservers.values()),Z=c.next();!Z.done;Z=c.next())Z.value.unobserve(y.element);W.size===0&&(this.handlers.delete(y.element),this.observer.unobserve(y.element))}};
var aW2=function(y,W){var c=y.defaultPrescanHeight;W.hasAttribute("prescan-height")&&(W=Number(W.getAttribute("prescan-height")),isNaN(W)||(c=W));if(y.prescanObservers.has(c))return y.prescanObservers.get(c);W="-0.1px -0.1px "+c+"px -0.1px";W=new IntersectionObserver(y.handlePrescanEvent.bind(y),y.viewroot?{root:y.viewroot,rootMargin:W}:{rootMargin:W});y.prescanObservers.set(c,W);return W};var xT2=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],iWQ=function(){var y,W=this;this.JSC$10885_actionRouter=y=y===void 0?_.Q8.getInstance():y;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return W.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return W.visibilityObservedElementHandlerKeys}}},M78,wBE,j15;
iWQ.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.O("kevlar_use_vimio_behavior")&&_.Nn("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=ViO())};
iWQ.prototype.dispose=function(){this.visibilityMonitor&&_.sp(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
iWQ.prototype.handleVisibilityRefreshed=function(){for(var y=_.z(this.targetMap.entries()),W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;c=c.next().value;_.ek8(this,W,c)}};
_.kVm=function(y,W,c){wBE(y,c);var Z=_.q7i(y,W);Z.element=c;y.targetedElements.set(c,W);_.ek8(y,W,Z)};
wBE=function(y,W){var c=y.targetedElements.get(W);if(c){var Z=y.targetMap.get(c);Z&&(delete Z.element,y.targetMap.set(c,Z));y.targetedElements.delete(W);y.visibilityObserver&&y.visibilityObservedElementHandlerKeys&&(c=y.visibilityObservedElementHandlerKeys.get(W))&&(y.visibilityObserver.unobserveByKey(c),y.visibilityObservedElementHandlerKeys.delete(W))}};
_.ek8=function(y,W,c){var Z=c.action,G=c.element;G&&Z&&(xT2.includes(W)||_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||y.visibilityMonitor&&y.visibilityMonitor.isNodeVisible(G)?j15(y,W,c):y.visibilityObserver&&(y.visibilityObservedElementHandlerKeys||(y.visibilityObservedElementHandlerKeys=new WeakMap),Z=y.visibilityObserver.observe(G,function(){j15(y,W,c);y.visibilityObservedElementHandlerKeys.delete(G)},{calledOnce:!0,
state:"visible"}),y.visibilityObservedElementHandlerKeys.set(G,Z)))};
j15=function(y,W,c){var Z=c.action;(c=c.element)&&Z&&(_.RO(y.JSC$10885_actionRouter,[Z],c),y.targetMap.delete(W),y.targetedElements.delete(c),y.triggeredTargets.add(W))};
_.q7i=function(y,W){var c=y.targetMap.get(W);c||(c={},y.targetMap.set(W,c));return c};
_.j_=function(){M78||(M78=new iWQ);return M78};var yTW=document.createElement("div");yTW.style.touchAction="pan-down";var CZh=yTW.style.touchAction==="pan-down";var WmQ,cTW;WmQ=function(){this.hammerFn=PgE();this.JSC$10893_screenManager=_.Zz();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.se(83615);_.kI(this.JSC$10893_screenManager,this.ve);Q6E()};
_.yN=function(){cTW||(cTW=new WmQ);return cTW};
WmQ.prototype.registerTouchEvents=function(y,W,c){var Z=_.Cf.apply(3,arguments),G=this.hammerFn(y,{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}]]});c&&G.set({touchAction:c});this.nodeManagerMapping.set(y,G);var D=
AZy(W);Z=_.z(Z);for(var Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;if(Y.includes("swipe")||Y.includes("pinch")||Y.includes("pan"))Y.includes("swipe")?G.get("swipe").set({enable:!0,direction:D,velocity:.2}):Y.includes("pinch")?G.get("pinch").set({enable:!0}):Y.includes("pan")&&(G.get("pan").set({enable:!0,direction:D}),G.get("swipe").set({enable:!0,direction:D,velocity:.2}),G.get("swipe").recognizeWith("pan"));Zu8(this,y,G,Y)}};
var Zu8=function(y,W,c,Z){c.on(Z,function(G){if(Z.includes("pinch"))y.lastPinchTime=Date.now();else if(Z.includes("swipe")&&Date.now()-y.lastPinchTime<400)return;G.pointerType!=="mouse"&&(G=Z==="doubletap"?{coordinates:G.center}:Z.includes("pan")?G:Z.includes("swipe")?{target:G.target}:{},W.dispatchEvent(new CustomEvent(Z,{bubbles:!0,composed:!0,detail:G})))})};
WmQ.prototype.unregisterTouchEvents=function(y){var W=_.Cf.apply(1,arguments),c=this.nodeManagerMapping.get(y);if(c){W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next())c.off(Z.value);this.nodeManagerMapping.delete(y);y.style.touchAction="unset"}};var GWi=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var h5w=null;var oE5;_.Wj=function(y,W,c){var Z=c&&c>0?c:0;c=Z?Date.now()+Z*1E3:0;if((Z=Z?(0,_.fRW)():oE5())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{Z.set(y,W,c)}catch(G){Z.remove(y)}}};
_.cj=function(y){var W=oE5(),c=(0,_.fRW)();if(!W&&!c||!window.JSON)return null;try{var Z=W.get(y)}catch(G){}if(typeof Z!=="string")try{Z=c.get(y)}catch(G){}if(typeof Z!=="string")return null;try{Z=JSON.parse(Z,void 0)}catch(G){}return Z};
_.Zr=function(y){try{var W=oE5(),c=(0,_.fRW)();W&&W.remove(y);c&&c.remove(y)}catch(Z){}};
_.fRW=_.sf(function(){try{var y=new oRa;var W=y.isAvailable()?y:null}catch(c){return null}return W?new _.jb(W):null});
oE5=_.sf(function(){var y=new DWO;return y.isAvailable()?new _.jb(y):null});var DqV=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},WgF=function(){DqV.instance||(DqV.instance=new DqV);
return DqV.instance},cL1=function(y){var W=y.networkEvents;
y.networkEvents=[];return _.O("enable_network_monitoring")?W:[]};var z18;z18={};_.Y1V=S5("yt-serviceworker-metadata",{objectStores:(z18.auth={addedAtVersion:1},z18["resource-manifest-assets"]={addedAtVersion:2},z18),shared:!0,upgrade:function(y,W){W(1)&&Il(y,"resource-manifest-assets");W(2)&&Il(y,"auth")},
version:2});var SOF=self.location.origin+"/";TYH([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);TYH([/purge_shell=1/]);var mqW=void 0;mqW=mqW===void 0?[]:mqW;for(var s12=[],uA8=_.z(Ky2),tMm=uA8.next();!tMm.done;tMm=uA8.next())s12.push({key:tMm.value});for(var nEZ=_.z(mqW),Xzm=nEZ.next();!Xzm.done;Xzm=nEZ.next())s12.push(Xzm.value);var buT,rM=_.DH==null?void 0:(buT=_.DH.performance)==null?void 0:buT.memory,i4I=!1,Zn1={},w2F={},Fy={},Ut=navigator;var GI=function(y){this.JSC$10937_expiringStorage=new nR(y)};
GI.prototype.set=function(y,W,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$10937_expiringStorage.set(y,W,c)};
GI.prototype.get=function(y){return this.JSC$10937_expiringStorage.get(y)};
GI.prototype.remove=function(y){this.JSC$10937_expiringStorage.remove(y)};var sw1=_.dl(["https://www.youtube.com/",""]),uiw=_.dl(["https://studio.youtube.com/",""]),rLD="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",nZh=null,Ona;var rTT=_.dl(["https://www.youtube.com/iframe_api"]),fA=function(){this.playerResolver_=_.px();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.me;this.playbackDurationSeconds_=0},FmQ=function(y){var W=function(){return window.YT&&typeof window.YT.ready==="function"};
if(W())return _.sc(window.YT);var c=_.px(),Z=_.uC("SCRIPT");Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||(Z.onload=_.me,Z.onreadystatechange=_.me,Z.onerror=_.me,W()?c.resolve(window.YT):c.reject(new _.ul("Failed to load the iframe player library","script.onload",Z.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
Z.onerror=function(G){Z.onload=_.me;Z.onreadystatechange=_.me;Z.onerror=_.me;c.reject(new _.ul("Failed to load the iframe player library","script.onerror",G&&G.target&&G.target.src))};
_.eQ(Z,_.cu(rTT));y.insertBefore(Z,y.firstChild);return c.promise},Uq5=function(y,W,c){var Z,G;
_.m(function(D){switch(D.nextAddress){case 1:return y.playbackEndedCallback_=c,_.tm(D,2),_.n(D,FmQ(W.parentElement||null),4);case 4:Z=D.yieldResult;_.J6(D,3);break;case 2:return G=_.rs(D),G instanceof _.ul&&G.args&&G.args[0]=="script.onerror"?_.Rs(G):_.OP(G),D.return();case 3:Z.ready(function(){return new Z.Player(W,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:y.onPlayerReady_.bind(y),onStateChange:y.onPlayerStateChange_.bind(y),
onCueRangeExit:y.onCueRangeExit_.bind(y)}})}),_.F2(D)}})};
_.f=fA.prototype;_.f.getPlayerPromise=function(){return this.playerPromise_};
_.f.onPlayerReady_=function(y){this.playerResolver_.resolve(y.target)};
_.f.onPlayerStateChange_=function(y){if(y.data==YT.PlayerState.PLAYING){y=y.target;var W=y.getCurrentTime();y.addCueRange("playback",W,W+this.playbackDurationSeconds_)}};
_.f.onCueRangeExit_=function(y){y.data=="playback"&&(y.target.stopVideo(),this.playbackEndedCallback_())};
_.f.stopVideo=function(){this.playerPromise_.then(function(y){y.stopVideo()})};
var $qV=function(y){y.playerVars_&&y.playerPromise_.then(function(W){typeof W.cueVideoByPlayerVars!="function"?_.Rs(new _.ul("vmh: player API not ready","cueVideoByPlayerVars",typeof W.cueVideoByPlayerVars)):W.cueVideoByPlayerVars(y.playerVars_)})};
fA.prototype.playVideo=function(){var y=this;this.playerVars_&&this.playerPromise_.then(function(W){typeof W.loadVideoByPlayerVars!="function"?(W=new _.ul("vmh: player API not ready","loadVideoByPlayerVars",typeof W.loadVideoByPlayerVars),_.OP(W)):W.loadVideoByPlayerVars(y.playerVars_)})};
var Km0=function(y,W,c,Z,G){W&&(c===void 0&&(c=0),Z===void 0&&(Z=0),y.playbackDurationSeconds_=Z/1E3,y.playerVars_={adformat:"17_8",videoId:W,suggestedQuality:"hd720",startSeconds:c/1E3,player_params:G})};
fA.prototype.mute=function(){this.playerPromise_.then(function(y){y.mute()})};
fA.prototype.unMute=function(){this.playerPromise_.then(function(y){y.unMute()})};var pbt=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var ox;ox=function(){this.tokenJars={};if(this.cookiesEnabled=_.Y7()){var y=_.DP.get("CONSISTENCY",void 0);y&&Ou2(this,{encryptedTokenJarContents:y})}};
_.JLD=function(){ox.instance||(ox.instance=new ox);return ox.instance};
ox.prototype.handleResponse=function(y,W){if(!W)throw Error("$f");var c,Z;W=((c=W.innerTubeRequest.context)==null?void 0:(Z=c.request)==null?void 0:Z.consistencyTokenJars)||[];var G;(y=(G=y.responseContext)==null?void 0:G.consistencyTokenJar)&&this.replace(W,y)};
ox.prototype.replace=function(y,W){y=_.z(y);for(var c=y.next();!c.done;c=y.next())delete this.tokenJars[c.value.encryptedTokenJarContents];Ou2(this,W)};
var Ou2=function(y,W){if(W.encryptedTokenJarContents&&(y.tokenJars[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var c=Number(W.expirationSeconds);setTimeout(function(){delete y.tokenJars[W.encryptedTokenJarContents]},c*1E3);
y.cookiesEnabled&&_.zj("CONSISTENCY",W.encryptedTokenJarContents,c,void 0,!0)}};var gEZ,Dr;gEZ=window.location.hostname.split(".").slice(-2).join(".");_.PK=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var y=_.Nn("LOCATION_PLAYABILITY_TOKEN");_.Nn("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=R1J(this))&&(y=this.localStorage.get("yt-location-playability-token"));y&&(this.locationPlayabilityToken=y,this.mostRecentPosition=void 0)};
_.PK.getInstance=function(){Dr=_.JW("yt.clientLocationService.instance");Dr||(Dr=new _.PK,_.LR("yt.clientLocationService.instance",Dr));return Dr};
_.PK.prototype.setLocationOnInnerTubeContext=function(y){y.client||(y.client={});if(this.mostRecentPosition)y.client.locationInfo||(y.client.locationInfo={}),y.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),y.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),y.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),y.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)y.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.PK.prototype.handleResponse=function(y){var W;y=(W=y.responseContext)==null?void 0:W.locationPlayabilityToken;y!==void 0&&(this.locationPlayabilityToken=y,this.mostRecentPosition=void 0,_.Nn("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=R1J(this))&&this.localStorage.set("yt-location-playability-token",y,15552E3):_.zj("YT_CL",JSON.stringify({loctok:y}),15552E3,gEZ,!0))};
var R1J=function(y){return y.localStorage===void 0?new _.EW("yt-client-location"):y.localStorage};
_.PK.prototype.clearLocationPlayabilityToken=function(y){y==="TVHTML5"?(this.localStorage=R1J(this))&&this.localStorage.remove("yt-location-playability-token"):_.jvt("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.PK.prototype.getCurrentPositionFromGeolocation=function(){var y=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var W=!1,c=1E4;_.Nn("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,c=15E3);return new Promise(function(Z,G){navigator.geolocation.getCurrentPosition(function(D){y.mostRecentPosition=D;Z(D)},function(D){G(D)},{enableHighAccuracy:W,
maximumAge:0,timeout:c})})};
_.PK.prototype.createUnpluggedLocationInfo=function(y){var W={};y=y.coords;if(y==null?0:y.latitude)W.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)W.longitudeE7=Math.floor(y.longitude*1E7);if(y==null?0:y.accuracy)W.locationRadiusMeters=Math.round(y.accuracy);return W};
_.PK.prototype.createLocationInfo=function(y){var W={};y=y.coords;if(y==null?0:y.latitude)W.latitudeE7=Math.floor(y.latitude*1E7);if(y==null?0:y.longitude)W.longitudeE7=Math.floor(y.longitude*1E7);return W};var lRV=function(y,W){var c=JG();y||(y="unknown");W||(W="unknown");y="MAIN_APP_WEB_PAGE_TYPE_"+y.toUpperCase();y in sXZ||(y="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");W="MAIN_APP_WEB_REQUEST_TYPE_"+W.toUpperCase();W in uzE||(W="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.zy(c,{mainAppWeb:{pageType:y,requestType:W,isShellLoad:_.I8("IS_SHELL_LOAD",!1)}})},EEJ={start:function(){_.zy(RFt(),{mainAppWeb:_.Jq()})},
success:function(){_.Y3(RFt(),"SUCCESS")},
failure:function(){_.Y3(RFt(),"FAILURE")},
cancelled:function(){_.Y3(RFt(),"CANCELLED")}};var Nbi,IR0,hpE;Nbi=_.dl(["/sw.js"]);IR0=_.dl(["/sw.js?0"]);_.pzm=_.cu(Nbi);hpE=_.cu(IR0);var PW0=function(){var y=Error.apply(this,arguments);this.message=y.message;"stack"in y&&(this.stack=y.stack)};
_.R(PW0,Error);_.QM.prototype.load=function(y){this.megabloxUrl_=_.Nn("YPC_MB_URL");_.Vn(this.megabloxUrl_,(0,_.$r)(function(){y&&y()},this))};
_.rCE=function(y,W,c,Z,G,D,Y,u,t,b,r){_.Hng(t);y.load((0,_.$r)(function(){try{var F=D?D:_.Nn("HL"),K=_.Nn("SESSION_INDEX");_.YMf("client",function(){hy5("59",{helpCenterPath:"/youtube",locale:F,window:window}).JSC$7840_loadChatSupport({authuser:String(K)})})}catch(l){throw VM(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),G&&G(l),_.OP(l),l;
}JTE(this,W,c,Z,G,D,Y,u,t,b,r)},y))};
_.QM.prototype.openFixFlowDialog=function(y,W,c,Z){this.load((0,_.$r)(function(){try{VME(this,_.JW("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(y).withIntegratorCallback(W).load(c,Z)}catch(G){throw _.OP(G),G;}},this))};
var VME=function(y,W,c,Z){var G=W.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.O("enable_window_constrained_buy_flow_dialog")&&(G=G.usingPopupStyle(_.JW("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Z&&(G=G.usingCloseCallback(Z));W.bootstrap.fromPaymentsUrl(y.megabloxUrl_);y=W.bootstrap.asMashupMode(G);c=c?c:_.Nn("HL");y.usingGaiaIndex(_.Nn("SESSION_INDEX")).usingLocale(c).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.O("enable_google_payments_buyflow_material2_style_web")?
y.usingStyle(":m2;pc=#444;ac=#065fd4"):y.usingStyle(":md;pc=#444;ac=#065fd4");return y},JTE=function(y,W,c,Z,G,D,Y,u,t,b,r){try{var F=_.JW("payments.business.integration");
if(!F)throw new PW0("payments.business.integration is undefined");var K=F.standaloneContextAuthId.forUserId(),l=VME(y,F,D,u);Y&&l.usingServerAnalyticsEventHandler(Y);var N=l.inStandaloneContext(K).buyFlow(function(P){if(P&&(!P.integratorData||P.integratorData===""||P.error))if(P.error!=null)if(String(P.error)==="-1")_.LgD(t);else{var V=String(P.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";VM(10,r,V,P.debugCode);
_.CZ(V,t,P.debugCode);V=new _.ul("PAYMENT_ERROR_MESSAGE::"+P.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+P.internalErrorDetails);_.OP(V)}else VM(10,r,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.CZ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",t,"EMPTY_INTEGRATOR_DATA"),_.OP(Error("cg"));c&&c(P)}).withEncryptedParameters(W);
b&&N.withClientParameters(GLa(_.KGa(b)));N.load(function(){VM(24,r);_.Vu("ttc",void 0,"commerce_transaction");kCf("commerce_transaction");Z&&Z()},function(P){if(P==null?0:P.debugCode)var V=P==null?void 0:P.debugCode;
else if(!P||(P==null?0:P.debugCode))V="EMPTY_LOAD_FAILURE_ERROR",_.OP(Error(V));else{V="EMPTY_LOAD_FAILURE_DEBUG_CODE";var Q=new _.ul("LOAD_FAILURE:"+P.message," DEBUG_CODE:"+V);_.OP(Q)}VM(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",V);_.CZ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",t,V);_.OP(P);G&&G(P)})}catch(P){throw P instanceof PW0&&(VM(10,r,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),G&&G(P)),_.OP(P),P;
}};var CW5;CW5=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.nog=function(y,W){W=W===void 0?!1:W;y=CW5.test(y)?_.rf(y):null;!W&&window.payments||!y?(y=_.px(),W=y.promise,y.resolve()):W=_.OX(y,{attributes:{"data-payments-main":"",id:"payment-lib"}});return W};var Q1Z;Q1Z=_.dl(["//www.googletagmanager.com/gtm.js?id=",""]);_.zI=function(y,W){_.vF(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:W}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Nn("GL")}),W=_.uC("SCRIPT"),W.async=!0,_.eQ(W,_.cu(Q1Z,y)),W.id="gtm",y=document.getElementsByTagName("script"),y.length==0?document.head.appendChild(W):(y=y[0],y.parentNode.insertBefore(W,y)))};
_.YS=function(y){if(y=JSON.parse(y))window.dataLayer=window.dataLayer||[],window.dataLayer.push(y)};var ATJ,h1E;ATJ=_.dl(["https://clients2.google.com/gr/gr_sync.js"]);_.uIh=function(){};
_.uIh.prototype.init=function(){if(h1E()){var y=_.px();y.resolve();return y.promise}return _.OX(_.cu(ATJ)).then(function(){if(!h1E())throw Error("dg");},function(){throw Error("eg");
})};
_.t1I=function(){if(!h1E())return"";var y=window.google.gr;y.init({async:{schedule:"sync"},merchantId:"youtube"});y.start();y=y.finish();return y==null?"":y};
h1E=function(){return window.google!=null&&window.google.gr!=null};var wLI,jMh=new Set,qmw;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.v=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.v,PolymerFakeBaseClassWithoutHtml);_.cQ=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.cQ,PolymerFakeBaseClassWithoutHtml);var vZt=window.ShadyDOM;var K2I,UBO,gaF,RIt,Eaa,Nxf,mB,aW;K2I=_.O("enable_shadydom_free_scoped_query_methods");UBO=_.O("enable_shadydom_free_scoped_node_methods");gaF=_.O("enable_shadydom_free_scoped_readonly_properties_batch_one");RIt=_.O("enable_shadydom_free_parent_node");Eaa=_.O("enable_shadydom_free_children");Nxf=_.O("enable_shadydom_free_last_child");mB=window.ShadyDOM;_.ed=mB&&mB.noPatch&&mB.wrap?mB.wrap:mB?function(y){return mB.patch(y)}:function(y){return y};
aW=function(y){if(y instanceof ShadowRoot)this.host=(0,_.ed)(y.host),this.root=y;else if(y.$$){this.host=(0,_.ed)(y);var W;this.root=(W=y.root)!=null?W:this.host}else if(y.polymerController){this.host=(0,_.ed)(y);var c;this.root=(c=this.host.shadowRoot)!=null?c:this.host}else this.root=this.host=(0,_.ed)(y)};
$BH();Oe1();IcH();pLw();lcg();var Bbm={querySelector:function(y,W){W=Ska(W,HK(y));y=_.LZ(y);return vK(y).prototype.querySelector.call(y,W)},
querySelectorAll:function(y,W){W=Ska(W,HK(y));y=_.LZ(y);return vK(y).prototype.querySelectorAll.call(y,W)}},Hui={appendChild:function(y,W){var c=HK(y),Z=_.BK(W);
return _.raI(_.LZ(y),c?_.Sd(W,c,Z):W)},
cloneNode:function(y,W){var c=_.BK(y);y=_.LZ(y);W=vK(y).prototype.cloneNode.call(y,W);return c?T2(W,c):W},
contains:function(y,W){var c=HK(y),Z=_.BK(W);return c!==Z?!1:F2y(y,W)},
insertBefore:function(y,W,c){var Z=HK(y),G=_.BK(W);y=_.LZ(y);W=Z?_.Sd(W,Z,G):W;return vK(y).prototype.insertBefore.call(y,W,c)},
removeChild:function(y,W){var c=HK(y);y=_.LZ(y);W=c?T2(W,c):W;return vK(y).prototype.removeChild.call(y,W)},
replaceChild:function(y,W,c){var Z=HK(y),G=_.BK(W);W=Z?_.Sd(W,Z,G):G?T2(W,G):W;c=Z?T2(c,Z):c;y=_.LZ(y);return vK(y).prototype.replaceChild.call(y,W,c)},
getRootNode:function(y,W){W=W===void 0?{composed:!0}:W;var c;if(((c=W)!=null?c:{}).composed)y=yaw(y);else{W=y;for(y=aZf(y);y;)W=y,y=inD(y);y=W}return y}},JaH=gaF?{firstChild:snI,
nextSibling:zI1,previousSibling:mBO,firstElementChild:uft,lastElementChild:naw,nextElementSibling:DB1,previousElementSibling:YmI,childNodes:XLE}:{};RIt&&(JaH.parentNode=oaa);Eaa&&(JaH.children=beg);Nxf&&(JaH.lastChild=tAI);K2I&&PBE(Bbm);UBO&&PBE(Hui);VAE();var CBE=function(y){this.node=y instanceof ShadowRoot?y.host:y};
Qnh();AaF();var L2t=new WeakMap;var dBh=Symbol("wd");var ie1=new Set(["tap","track","down","up"]),MAt=_.O("pbcm_fi_query_decorators");var LmE=function(){return _.cQ.apply(this,arguments)||this};
_.R(LmE,_.cQ);_.f=LmE.prototype;_.f.getState=function(){return this.store.getState()};
_.f.dispatch=function(y){this.store.dispatch(y)};
_.f.beforeRegister=function(){if(this&&typeof this==="object"){var y;var W=!!this.useSignals||!((y=this.polymerController)==null||!y.useSignals)}else W=!1;if(!W&&this.properties)for(W=_.z(Object.keys(this.properties)),y=W.next();!y.done;y=W.next()){var c=y.value;y=this.properties[c];if(y.selector){if(y.computed)throw Error("kg");c=["reduxPropertiesRecomputeTrigger",'"'+c+'"'].concat(_.No(y.selectorArgs||[])).join(",");y.computed="recomputeReduxSelector("+c+")"}}};
_.f.attached=function(){var y=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){y.reduxPropertiesRecomputeTrigger++}));
_.O("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.f.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.f.recomputeReduxSelector=function(y,W){var c=_.Cf.apply(2,arguments),Z=this.properties[W].selector;if(!Z)throw Error("ig`"+W);return Z.apply(null,[this.store.getState()].concat(_.No(c)))};
_.f.select=function(y){var W=_.Cf.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return y.apply(null,[this.store.getState()].concat(_.No(W)))};
_.dJ.Object.defineProperties(LmE.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
var so=LmE;so.prototype.recomputeReduxSelector=so.prototype.recomputeReduxSelector;_.x([_.L(),_.e("design:type",Number)],so.prototype,"reduxPropertiesRecomputeTrigger",void 0);so=_.x([_.ZV()],so);var u$=[],c2I={},vEm=function(){return aN.apply(this,arguments)||this};
_.R(vEm,aN);vEm.prototype._addPropertyEffect=function(y,W,c){if(W==="__observeEffects"&&c){var Z,G=(Z=c.info.method)!=null?Z:c.info.methodName;if(G){var D=this[G];this[G]=function(){u$.push(G);try{D==null||D.apply(this,arguments)}finally{u$.pop()}}}}_.te._addPropertyEffect.apply(this,[y,
W,c])};
vEm.prototype._setPendingProperty=function(y,W,c){if(u$.length){var Z=u$[u$.length-1],G;(G=c2I[this.is])!=null&&G.has(Z)||(ZWE(this.is,Z),_.$g("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Z}))}return _.te._setPendingProperty.apply(this,[y,W,c])};
var Kna=vEm;Kna=_.x([s_F()],Kna);var GV1=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),oVF,o5={};_.O("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=o5);var dq8=function(){return _.cQ.apply(this,arguments)||this};
_.R(dq8,_.cQ);dq8.prototype._setUnmanagedPropertyToNode=function(y,W,c){y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!0);if(c!==y[W]||typeof c==="object")y[W]=c;y.is&&y.polymerController&&y.polymerController!==y&&DV(y.is,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");y.loggingStatus&&(y.loggingStatus.isDeclarativeExternal=!1)};
var mTI=dq8;mTI=_.x([_.ZV()],mTI);fWt()&&(pv.prototype._setUnmanagedPropertyToNode=(new mTI)._setUnmanagedPropertyToNode);_.OWa={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(y){},set polymerController(y){}}]};var S1E=function(){var y=aN.apply(this,arguments)||this;y.json=function(){};
return y};
_.R(S1E,aN);S1E.prototype.equals=function(y,W){return y===W};
S1E.prototype.isEmpty=function(y){return!y||_.TO(y)&&y.length===0};
var tx=S1E;tx=_.x([s_F()],tx);var Tb3=function(y){y=DJD(y);IY.call(this,y)};
_.R(Tb3,IY);Tb3.prototype.addProvider=function(y){y=y.key?y:DJD([y])[0];var W=this.keyIdToIndex.get(y.key.id);if(W){if(uSa(y,this.providers[W]))throw Error("lg`"+y.key.displayName);}else IY.prototype.addProvider.call(this,y)};
var aRQ=new Tb3([]);var xq5=!1;var Fny={};xq5||(r2f(),xq5=!0);
Fny.InjectBehavior={initializeInjection:function(){var y=this.provide;try{if((y=y!=null?y:[])&&y.length>0)for(var W=DJD(y),c=_.z(W),Z=c.next();!Z.done;Z=c.next())aRQ.addProvider(Z.value);var G=new Set;t7E(this.behaviors||[],G);W={};for(var D=_.z(G),Y=D.next();!Y.done;Y=D.next()){var u=Y.value;u.inject&&Object.assign(W,u.inject)}this.inject&&Object.assign(W,this.inject);for(var t=_.z(Object.keys(W)),b=t.next();!b.done;b=t.next()){var r=b.value,F=W[r];try{this[r]=aRQ.resolve(F)}catch(K){throw K;}}}catch(K){throw Error(K.message);
}}};var $TO;var gVh=/\bclass\b/.test(function(){}.toString()),EVO=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var iui=function(y){this.wasDefined=!0;Array.isArray(y)||y instanceof Array?(this.JSC$11096_getImpl=y[0],this.JSC$11096_setImpl=y[1]):this.JSC$11096_getImpl=y};
_.f=iui.prototype;_.f.getWithPath=function(y){return b6(this.JSC$11096_getImpl(),y)};
_.f.setWithPath=function(y,W){var c=this;if(y.length)throw Error("mg");if(!this.JSC$11096_setImpl)throw Error("ng");mT(function(){c.JSC$11096_setImpl(W)})};
_.f.notifyPath=function(){throw Error("og");};
_.f.notifySplices=function(){throw Error("pg");};
_.f.getChangeRecordSignal=function(y,W){var c=this;if(y.length)throw Error("qg");return function(){var Z=c.getWithPath(y);return{path:W!=null?W:"",base:Z,value:Z}}};
_.f.getSplicesSignal=function(){throw Error("rg");};
_.f.getPathMutationSignal=function(){throw Error("sg");};
_.f.pop=function(){throw Error("tg");};
_.f.push=function(){throw Error("ug");};
_.f.splice=function(){throw Error("vg");};
_.f.unshift=function(){throw Error("wg");};var tt=function(y){var W=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(y)||y instanceof Array?(this.JSC$11101_getImpl=y[0],this.JSC$11101_setImpl=y[1]):this.JSC$11101_getImpl=y;this.wasDefined=!1;ZS(function(){W.wasDefined=W.JSC$11101_getImpl()!==void 0})};
tt.prototype.getWithPath=function(y){return b6(this.JSC$11101_getImpl(),y)};
tt.prototype.setWithPath=function(y,W){var c=this;if(y[y.length-1]!=="*"&&y[y.length-1]!=="splices"){if(y.length===0){if(!this.JSC$11101_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=W!==void 0);mT(function(){c.JSC$11101_setImpl(W)})}else{for(var Z=ZS(function(){return c.getWithPath([])}),G=0;G<y.length-1;G++){if(!Z)return;
Z=Z[y[G]]}G=y[y.length-1];Z&&(Z[G]=W);this.wasDefined||(this.wasDefined=y.length>1||W!==void 0)}MM2(this,y,{pathComponents:y,value:W})}};
tt.prototype.notifyPath=function(y,W){y.length===0?W&&this.setWithPath(y,W.value):MM2(this,y,{pathComponents:y,value:W==null?void 0:W.value,fallbackWhenUndefined:W==null?void 0:W.value})};
var MM2=function(y,W,c,Z){if(y.setMutationSignal){var G=++y.mutationIndex,D=[y.observedPath],Y=y.observedPath,u;W.length===0&&(u=Y);for(var t=0;t<W.length;t++){var b=Y.subPaths[W[t]];if(!b)break;D.push(b);Y=b;t===W.length-1&&(u=b)}for(W=!1;D.length;)Y=D.shift(),Y.data={index:G,mutation:c,spliceMutationIndex:Z},W||(W=Y===u),W&&D.push.apply(D,_.No(Object.values(Y.subPaths)));mT(function(){y.setMutationSignal(G)})}};
tt.prototype.notifySplices=function(y,W){var c=this,Z=ZS(function(){return c.getWithPath(y)}),G=[].concat(_.No(y),["splices"]);
MM2(this,G,{pathComponents:G,value:{indexSplices:W}});if(Z==null?0:Z.length)W=this.mutationIndex,G=[].concat(_.No(y),["length"]),MM2(this,G,{pathComponents:G,value:Z.length},W)};
var e1V=function(y,W,c,Z,G,D){y.notifySplices(c,[{index:Z,addedCount:G,removed:D,object:W,type:"splice"}])},wz2=function(y,W){y=y.observedPath;
for(var c=0;c<W.length;c++){var Z=W[c],G=y.subPaths[Z];G||(G={pathComponents:W.slice(0,c+1),subPaths:{}},y.subPaths[Z]=G);y=G}},kW0=function(y,W,c){wz2(y,W);
if(!y.getMutationSignal){var Z=_.z(_.G9(y.mutationIndex,void 0,"HavCgf"));y.getMutationSignal=Z.next().value;y.setMutationSignal=Z.next().value}var G=y.getMutationSignal;return _.Yk(function(){G();return c(q1V(y,W))},void 0,"BYaPo")};
tt.prototype.getChangeRecordSignal=function(y,W){var c=this,Z=this.mutationIndex,G;return kW0(this,y,function(D){if(D&&D.index>Z){var Y=D.mutation;Z=D.index;G=void 0}D=ZS(function(){return c.getWithPath(y)});
if(Y){var u=Y.pathComponents[Y.pathComponents.length-1],t=[].concat(_.No(Y.pathComponents));if(u==="splices"||u==="length")return{base:D,path:(W?[W].concat(_.No(t)):t).join("."),value:Y.value};var b=y.length>t.length?y:t,r;return{base:D!=null?D:Y.fallbackWhenUndefined,path:(W?[W].concat(_.No(b)):b).join("."),value:(r=ZS(function(){return c.getWithPath(b)}))!=null?r:Y.fallbackWhenUndefined}}G||(G={base:D,
path:(W?[W].concat(_.No(y)):y).join("."),value:D});return G})};
tt.prototype.getSplicesSignal=function(y){var W=this.mutationIndex,c;return kW0(this,y,function(Z){if(Z&&Z.index>W&&Z.spliceMutationIndex!==W){var G=Z.mutation;W=Z.index;c=void 0}return G&&G.pathComponents[G.pathComponents.length-1]==="splices"?c=Z=G.value:c})};
tt.prototype.getPathMutationSignal=function(y){var W=this;wz2(this,y);if(!this.getMutationSignal){var c=_.z(_.G9(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=c.next().value;this.setMutationSignal=c.next().value}var Z=this.getMutationSignal,G=this.mutationIndex,D;return _.Yk(function(){Z();var Y=q1V(W,y);if(Y&&Y.index>G&&Y.mutation&&pBf(Y.mutation.pathComponents,y)){var u=Y.mutation;G=Y.index}if(!D||G!==D.index){var t,b;Y=(b=ZS(function(){return W.getWithPath(y)}))!=null?b:(t=u)==null?
void 0:t.fallbackWhenUndefined;
D={index:G,value:Y}}return D},void 0,"Aumsyf")};
var q1V=function(y,W){y=y.observedPath;W=_.z(W);for(var c=W.next();!c.done;c=W.next())y=y.subPaths[c.value];return y.data};
tt.prototype.pop=function(y){var W=this,c=ZS(function(){return W.getWithPath(y)});
if(!(c instanceof Array))throw Error("yg");var Z=c.length>0,G=c.pop();Z&&e1V(this,c,y,c.length,0,[G]);return G};
tt.prototype.push=function(y){var W=_.Cf.apply(1,arguments),c=this,Z=ZS(function(){return c.getWithPath(y)});
if(!(Z instanceof Array))throw Error("zg");var G=Z.length,D=Z.push.apply(Z,_.No(W));W.length&&e1V(this,Z,y,G,W.length,[]);return D};
tt.prototype.splice=function(y,W,c){var Z=_.Cf.apply(3,arguments),G=this,D=ZS(function(){return G.getWithPath(y)});
if(!(D instanceof Array))throw Error("Ag");W<0?W=D.length-Math.floor(-W):W&&(W=Math.floor(W));var Y=D.splice.apply(D,[W,c].concat(_.No(Z)));(Z.length||Y.length)&&e1V(this,D,y,W,Z.length,Y);return Y};
tt.prototype.unshift=function(y){var W=_.Cf.apply(1,arguments),c=this,Z=ZS(function(){return c.getWithPath(y)});
if(!(Z instanceof Array))throw Error("Bg");var G=Z.unshift.apply(Z,_.No(W));W.length&&e1V(this,Z,y,0,W.length,[]);return G};var jAQ=!0,yjT=!1,SrE=!1,W7V=!1,nA=!1,cjE=0;W7V=!1;cjE=0;jAQ=!0;nA=yjT=SrE=!1;var Xq=function(y,W,c){this.model=y;this.unknownSignalResolver=W;this.options=c;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];W=_.z(HWa());y=W.next().value;W=W.next().value;this.owner=y;this.disposeImpl=W};
Xq.prototype.dispose=function(){if(!this.isDisposed){for(var y=_.z(this.childSignalProxies),W=y.next();!W.done;W=y.next())W.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Zom=function(y,W){y=xr(y.owner);try{W()}finally{xr(y)}},G0T=function(y,W){var c={stack:[],
error:void 0,hasError:!1};try{_.C6(c,_.ZXh(y.owner)),W()}catch(Z){c.error=Z,c.hasError=!0}finally{_.Q0(c)}};
Xq.prototype.effect=function(y){_.O("web_poly_si_remove_using")?Zom(this,function(){_.UN(y)}):G0T(this,function(){_.UN(y)})};
var fhJ=function(y,W){y.options!=null||(y.options={});var c;(c=y.options).immutableProps!=null||(c.immutableProps=new Set);y.options.immutableProps.add(W)},dqa=function(y,W){W=""+W;
var c;if((c=y.model.__signalCache)==null?0:c.has(W))c=y.model.__signalCache.get(W),Array.isArray(c)&&fhJ(y,W);var Z,G,D;return(D=(Z=y.options)==null?void 0:(G=Z.immutableProps)==null?void 0:G.has(W))!=null?D:!1},o1T=function(y,W){var c;
y.unknownSignalResolver&&(c=y.unknownSignalResolver(W));var Z,G;((Z=y.options)==null?0:(G=Z.immutableProps)==null?0:G.has(W))?c!=null||(c=new iui(_.G9(y.model[W],void 0,"SYknZd"))):c!=null||(c=new tt(_.G9(y.model[W],void 0,"GCgq1e")));var D=y.model.hostElement;Object.defineProperty(y.model,W,{get:function(){zkI(D,W);return c.getWithPath([])},
set:function(Y){zs(D,W);y.setWithPath([W],Y)},
configurable:!0});return c},FX=function(y,W){W=""+W;
var c=y.signalCache[W];if(c!==void 0)return c;c=!1;var Z;if((Z=y.model.__signalCache)==null?0:Z.has(W))if(c=y.model.__signalCache.get(W),Array.isArray(c))c=!0,fhJ(y,W);else return y.signalCache[W]=y.model.__signalCache.get(W).signal,y.signalCache[W];var G,D;Z=(D=(G=y.options)==null?void 0:G.reactivityMode)!=null?D:0;var Y,u;if(!((Y=y.options)==null?0:(u=Y.reactiveProps)==null?0:u.has(W))&&!c&&Z===1)throw Error("Cg`"+W);G=c?DfQ(y,W):o1T(y,W);return y.signalCache[W]=G},DfQ=function(y,W){var c=Object.getOwnPropertyDescriptor(y.model.constructor.prototype,
W),Z=function(){return y.model[W]};
return new iui(c&&c.get&&!c.set?Z:[Z,function(G){y.model[W]=G}])};
Xq.prototype.getWithPath=function(y){var W=_.z(y);y=W.next().value;W=dL(W);zkI(this.model.hostElement,""+y);return FX(this,y).getWithPath(W)};
Xq.prototype.setWithPath=function(y,W){if(y.length){zs(this.model.hostElement,y.join("."));var c=_.z(y);y=c.next().value;c=dL(c);FX(this,y).setWithPath(c,W)}};
Xq.prototype.getPathMutationSignal=function(y){var W=_.z(y);y=W.next().value;W=dL(W);return FX(this,y).getPathMutationSignal(W)};
Xq.prototype.notifyPath=function(y,W){var c=_.z(y);y=c.next().value;c=dL(c);FX(this,y).notifyPath(c,W)};
var zMW=function(y,W){if(W.type==="literal")return function(){return{rootWasDefined:!0,value:W.value}};
var c=XX(W.path),Z=_.z(c),G=Z.next().value;Z=dL(Z);var D,Y;if(W.type==="path"&&(c.length===1||((D=y.options)==null?0:(Y=D.immutableProps)==null?0:Y.has(G))))return function(){var F=y.getWithPath(c.slice(0,1)),K=b6(F,c.slice(1));F=F!==void 0;nA&&(F=FX(y,c[0]).wasDefined);return{rootWasDefined:F,value:K}};
var u=FX(y,G);if(W.type==="path"){var t=u.getPathMutationSignal(Z);return function(){var F=nA?u.wasDefined:R2(y.owner,function(){return u.getWithPath([])})!==void 0;
var K,l=(K=t())==null?void 0:K.value;return{rootWasDefined:F,value:l}}}if(W.type==="splices"){var b=u.getSplicesSignal(Z);
return function(){var F=b();return{rootWasDefined:nA?u.wasDefined:F!==void 0,value:F}}}var r=u.getChangeRecordSignal(Z,""+G);
return function(){var F=r();return{rootWasDefined:nA?u.wasDefined:F!==void 0,value:F}}},A2g=function(y,W,c){var Z=c.map(function(u){return zMW(y,u)}),G=c.length===0,D=[],Y=c.length!==1||c[0].type!=="path"?!1:!0;
y.effect(function(){for(var u=Z.length,t=[],b=!!D.length,r=0;r<u;r++){var F=Z[r](),K=F.rootWasDefined;F=F.value;G||(G=K);t[r]=F;Y&&(t[r+u]=b?D[r]:t[r],D[r]=F)}G&&R2(y.owner,function(){return void W.apply(null,_.No(t))})})},PxE=function(y,W,c,Z,G){var D=FX(y,W);
G!==void 0&&D.setWithPath([],G);A2g(y,function(){var Y=_.Cf.apply(0,arguments);zs(y.model.hostElement,W,!0);D.setWithPath([],c.apply(null,_.No(Y)))},Z)};
Xq.prototype.arrayPush=function(y){var W=_.Cf.apply(1,arguments),c=_.z(y),Z=c.next().value;c=dL(c);Z=FX(this,Z);return Z.push.apply(Z,[c].concat(_.No(W)))};
Xq.prototype.arraySplice=function(y,W,c){var Z=_.Cf.apply(3,arguments),G=_.z(y),D=G.next().value;G=dL(G);D=FX(this,D);return D.splice.apply(D,[G,W,c].concat(_.No(Z)))};
Xq.prototype.arrayUnshift=function(y){var W=_.Cf.apply(1,arguments),c=_.z(y),Z=c.next().value;c=dL(c);Z=FX(this,Z);return Z.unshift.apply(Z,[c].concat(_.No(W)))};
Xq.prototype.notifySplices=function(y,W){var c=_.z(y);y=c.next().value;c=dL(c);FX(this,y).notifySplices(c,W)};var aWg=/([^\s]+?)\(([\s\S]*)\)/,dTf=/\.([^.]+)$/,iWE=/\\,/g,Ln1=/&comma;/g,vVF=/\\(.)/g,xTg=[],S7w={"*":"wildcard",splices:"splices"};var CWH=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"),pzh=/[A-Z]/,Yr2=["class","hidden","id","on-dom-change"],ATy=new Set([].concat(_.No(Yr2),
["if","notify-dom-change","restamp"])),h1f=new Set([].concat(_.No(Yr2),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),Bbh=new Set(["restamp"]);var Tb1=Symbol(),q1I=window;var fhy=window;var uQh=0,zMF=0,U0=[],sAH=0,DfE=!1,mfE=document.createTextNode("");(new window.MutationObserver(Yrg)).observe(mfE,{characterData:!0});var K6=new Map,$m=0,mfQ=function(y){this.mappedHandleId=y},n1y=function(y,W,c,Z){this.mappedHandleId=y;
var G=this;this.mappedHandleId=y;this.callback=W;this.waitTime=c;this.schedulerPriority=Z;this.handleId=_.KX.addJob(function(){G.callback();K6.delete(G.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.R(n1y,mfQ);n1y.prototype.cancel=function(){_.KX.cancelJob(this.handleId);K6.delete(this.mappedHandleId)};
var XVH=function(y,W){this.mappedHandleId=y;var c=this;this.mappedHandleId=y;this.callback=W;this.handleId=t3I(function(){c.callback();K6.delete(c.mappedHandleId)})};
_.R(XVH,mfQ);XVH.prototype.cancel=function(){var y=this.handleId-zMF;y<0||U0.length<=y||(U0[y]=null);K6.delete(this.mappedHandleId)};var Ufy=function(){};
Ufy.prototype.cancel=function(){this.jobHandle!==void 0&&(boh(this.jobHandle),this.jobHandle=void 0)};
Ufy.prototype.run=function(y,W,c){var Z=this;this.cancel();this.callback=y;this.jobHandle=_.O0(function(){y();Z.callback=void 0},W,c)};
Ufy.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var rjw=new WeakMap;var sA0=LU(function(y){for(var W=y,c=0;c<3;c++)W=Object.getPrototypeOf(W);delete W.prototype.connectedCallback;var Z=function(){return y.apply(this,arguments)||this};
_.R(Z,y);Z.prototype._attachDom=function(G){if(!G)return null;var D=(0,_.ed)(this.hostElement);D.attachShadow({mode:"open",shadyUpgradeFragment:G});D.shadowRoot.appendChild(G);return D.shadowRoot};
Z.prototype._takeAttributes=function(){for(var G=this.hostElement.attributes,D=0;D<G.length;D++){var Y=G[D],u=void 0,t=void 0;(t=(u=this).__attributeReaction)==null||t.call(u,Y.name,null,Y.value)}};
Z.prototype._readyClients=function(){y.prototype._readyClients.call(this);this.root=this};
Z.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);y.prototype.connectedCallback.call(this)};
_.dJ.Object.defineProperties(Z,{template:{configurable:!0,enumerable:!0,get:function(){return Z.prototype._template}}});
return Z}),uQm=LU(function(y){var W=function(){return y.apply(this,arguments)||this};
_.R(W,y);W.prototype.created=function(){if(this.__notifyEffects)for(var c=_.z(Object.values(this.__notifyEffects)),Z=c.next();!Z.done;Z=c.next()){Z=_.z(Z.value);for(var G=Z.next();!G.done;G=Z.next())G.value.fn=g1H}if(this.__reflectEffects)for(c=_.z(Object.values(this.__reflectEffects)),Z=c.next();!Z.done;Z=c.next())for(Z=_.z(Z.value),G=Z.next();!G.done;G=Z.next())G.value.fn=RMO};
W.prototype._addEventListenerToNode=function(c,Z,G){c=R5(c);OQ(c,Z,G)||y.prototype._addEventListenerToNode.call(this,c,Z,G)};
W.prototype._removeEventListenerFromNode=function(c,Z,G){c=R5(c);gJ(c,Z,G)||y.prototype._removeEventListenerFromNode.call(this,c,Z,G)};
W.prototype._propertiesChanged=function(c,Z,G){if(this.__dataToNotify&&this.__notifyEffects)for(var D=_.z(Object.keys(this.__dataToNotify)),Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var u=OoI(Y);this.__notifyEffects[u]||delete this.__dataToNotify[Y]}else this.__dataToNotify=null;y.prototype._propertiesChanged.call(this,c,Z,G)};
W.prototype.fire=function(c,Z,G){Z=Z===void 0?{}:Z;var D;return _.Z2(R5((D=G==null?void 0:G.node)!=null?D:this),c,Z,G)};
W.prototype._ensureAttribute=function(c,Z){var G=R5(this);G.hasAttribute(c)||rp(G,Z,c)};
W.prototype.isLightDescendant=function(c){var Z=R5(this);return R5(Z)!==c&&_.p(Z).contains(c)&&_.p(Z).getRootNode()===_.p(c).getRootNode()};
return W});
_.tk.ready=function(){var y;((y=this.hostElement)!=null?y:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var W;((W=this.hostElement)!=null?W:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.K7._subscribeIronResize=function(y){var W;((W=y.hostElement)!=null?W:y).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.K7._unsubscribeIronResize=function(y){var W;((W=y.hostElement)!=null?W:y).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var NGD=[Array,Boolean,Date,Number,Object,String],E0=function(y,W,c,Z){this.polySiInfo=y;this.polySiParams=W;this.polySiContext=c;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;Z||this instanceof HTMLElement&&(Z=this);if(!Z)throw Error("Jg");this.allowedProps=W.allowedProps;this.hostElement=Z;this.is=y.is;this.upgradeDisabled=!!W.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");y=new Set(W.reactiveSchemas.filter(function(G){return G.type!==
"observe"}).map(function(G){return G.propertyKey}));
this.signalProxy=new Xq(this,void 0,{reactiveProps:y,reactivityMode:W.reactivityMode});this.__dataHasAccessor={};W=_.z(W.reactiveSchemas);for(y=W.next();!y.done;y=W.next())y=y.value,y.type==="signal"&&(this.__dataHasAccessor[y.propertyKey]=!0);this.upgradeDisabled||t3V(this)};
E0.prototype.getExtraMethodsToForward=function(){return[]};
var t3V=function(y){y.polySiContext.didRegister||(y.registered(),y.polySiContext.didRegister=!0);y.polySiContext.finalizedTemplate||(y.polySiContext.finalizedTemplate={},y.polySiParams.templateGetter&&(y.polySiContext.finalizedTemplate.processedTemplate=o1w(y.polySiParams.templateGetter,y.polySiParams.is)));n1J(y);var W=y.hostElement;W.loggingStatus!=null||(W.loggingStatus={});W.loggingStatus.isInitializing=!0;ZS(function(){return void y.created()});
W.loggingStatus.isInitializing=!1;y.isPolySiElementConnected&&XV0(y)},XV0=function(y){y.didCallReady||(ZS(function(){return void y.ready()}),y.didCallReady=!0);
y.isAttached=!0;y.attached()};
_.f=E0.prototype;_.f.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||XV0(this)};
_.f.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.f.attributeChangedCallback=function(y,W,c){if(this.upgradeDisabled)y==="disable-upgrade"&&c===null&&(this.upgradeDisabled=!1,t3V(this));else if(W!==c){var Z=_.uM(y),G=this.polySiContext.typesForSignals[Z];if(G){switch(G){case Object:try{var D=JSON.parse(c)}catch(u){D=c}break;case Array:try{D=JSON.parse(c)}catch(u){D=null}break;case Date:D=isNaN(c)?String(c):Number(c);D=new Date(D);break;case Boolean:D=c!==null;break;case Number:D=Number(c);break;default:D=c}this[Z]=D}Z=_.z(this.polySiParams.behaviors);
for(G=Z.next();!G.done;G=Z.next())D=void 0,(D=G.value.attributeChanged)==null||D.call(this,y,W,c);var Y;(Y=this.attributeChanged)==null||Y.call(this,y,W,c)}};
_.f.attributeChangedCallbackWrapper=function(y,W,c){this.attributeChangedCallback(y,W,c)};
_.f.setPropertiesFromInitialAttributeValues=function(){for(var y=0;y<this.hostElement.attributes.length;y++){var W=this.hostElement.attributes[y];(W.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(W.name))&&this.attributeChangedCallback(W.name,null,W.value)}};
_.f.created=function(){this.provide=this.polySiParams.provide;var y;(y=this.initializeInjection)==null||y.call(this);y=_.z(this.polySiParams.reactiveSchemas);for(var W=y.next();!W.done;W=y.next())W=W.value,W.type==="signal"&&(this.mutablePropNames.add(W.propertyKey),FX(this.signalProxy,W.propertyKey));E1w(this,this.polySiInfo,this.polySiParams.behaviors);y=_.z(this.polySiParams.reactiveSchemas);for(W=y.next();!W.done;W=y.next())W=W.value,W.type==="signal"&&W.value!==void 0&&(this.signalProxy.model[W.propertyKey]=
typeof W.value==="function"?W.value.call(this):W.value);if(this.polySiParams.signalProperties)for(y=_.z(this.polySiParams.signalProperties),W=y.next();!W.done;W=y.next()){W=W.value;var c=void 0;((c=this.__signalCache)==null?0:c.has(W))||(this.signalProxy.model[W]=void 0)}W7V||bom(this);lhg(this);y=_.z(this.polySiParams.behaviors);for(W=y.next();!W.done;W=y.next())c=void 0,(c=W.value.created)==null||c.call(this);var Z;(Z=this.polySiInfo.created)==null||Z.call(this)};
_.f.registered=function(){var y=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var W=Object.getPrototypeOf(this);W.addReactiveSchema=function(u){y.polySiParams.reactiveSchemas.push(u)};
for(var c=_.z(this.polySiParams.behaviors),Z=c.next();!Z.done;Z=c.next()){var G=void 0;(G=Z.value.beforeRegister)==null||G.call(W)}var D;(D=this.polySiInfo.beforeRegister)==null||D.call(W);W.addReactiveSchema=pVt;c=_.z(this.polySiParams.behaviors);for(Z=c.next();!Z.done;Z=c.next())G=void 0,(G=Z.value.registered)==null||G.call(W);var Y;(Y=this.polySiInfo.registered)==null||Y.call(W)};
_.f.ready=function(){var y;(y=this.beforeReady)==null||y.call(this);W7V&&bom(this);var W;if(y=(W=this.polySiContext.finalizedTemplate)==null?void 0:W.processedTemplate){y=G0w(y.template,y.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:y.hasInsertionPoint,thisCtx:this});W=y.nodesById;y=y.root;var c=(0,_.ed)(this.hostElement);if(!c.attachShadow)throw Error("Cd");c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:y}),c.shadowRoot.appendChild(y));this.root=c.shadowRoot;
this.$=W}rjT(this);W=_.z(this.polySiParams.behaviors);for(y=W.next();!y.done;y=W.next())c=void 0,(c=y.value.ready)==null||c.call(this);var Z;(Z=this.polySiInfo.ready)==null||Z.call(this)};
_.f.attached=function(){for(var y=_.z(this.polySiParams.behaviors),W=y.next();!W.done;W=y.next()){var c=void 0;(c=W.value.attached)==null||c.call(this)}var Z;(Z=this.polySiInfo.attached)==null||Z.call(this)};
_.f.detached=function(){for(var y=_.z(this.polySiParams.behaviors),W=y.next();!W.done;W=y.next()){var c=void 0;(c=W.value.detached)==null||c.call(this)}var Z;(Z=this.polySiInfo.detached)==null||Z.call(this)};
var n1J=function(y){for(var W=_.z(y.polySiParams.behaviors),c=W.next();!c.done;c=W.next())if(c=c.value,c.listeners)for(var Z in c.listeners)Zoh(y,y.hostElement,Z,c.listeners[Z]);if(y.polySiInfo.listeners)for(var G in y.polySiInfo.listeners)Zoh(y,y.hostElement,G,y.polySiInfo.listeners[G])},Zoh=function(y,W,c,Z,G){y=IWH(y,Z,G);
OQ(W,c,y)||W.addEventListener(c,y);return y},bom=function(y){for(var W=_.z(y.polySiParams.reactiveSchemas),c=W.next();!c.done;c=W.next())c=c.value,c.type==="compute"||c.type==="computeWithMethod"?J2D(y.signalProxy,c,y):c.type==="redux"?QMI(y.signalProxy,c,y.store):c.type==="signal"&&c.readOnly&&Cxt(y.signalProxy,c)},rjT=function(y){for(var W=_.z(y.polySiParams.reactiveSchemas),c=W.next(),Z={};!c.done;Z={schema$jscomp$12:void 0},c=W.next())Z.schema$jscomp$12=c.value,Z.schema$jscomp$12.type==="notify"?
hkF(y.signalProxy,Z.schema$jscomp$12,y.hostElement):Z.schema$jscomp$12.type==="observe"?BOg(y.signalProxy,Z.schema$jscomp$12,y):Z.schema$jscomp$12.type==="reflect"&&y.signalProxy.effect(function(D){return function(){var Y=y.signalProxy.getWithPath([D.schema$jscomp$12.propertyKey]);
eka(y.hostElement,D.schema$jscomp$12.propertyKey,Y)}}(Z));
if(y.reflectedAttributes)for(W=_.z(Object.entries(y.reflectedAttributes)),Z=W.next(),c={};!Z.done;c={key$jscomp$867:void 0,value$jscomp$8550:void 0},Z=W.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;c.key$jscomp$867=Z;c.value$jscomp$8550=G;y.signalProxy.effect(function(D){return function(){eka(y.hostElement,D.key$jscomp$867,(0,D.value$jscomp$8550)())}}(c))}};
_.f=E0.prototype;_.f._setPendingProperty=function(y,W){this.set(y,W);return!1};
_.f._enableProperties=function(){};
_.f._setPendingPropertyOrPath=function(y,W){this.notifyPath(y,W);return!1};
_.f._addPropertyEffect=function(){};
_.f._stampTemplate=function(){throw Error("Kg");};
_.f.fire=function(y,W,c){W=W===void 0?{}:W;c=c===void 0?{}:c;var Z,G,D={bubbles:(Z=c.bubbles)!=null?Z:!0,cancelable:!!c.cancelable,composed:(G=c.composed)!=null?G:!0},Y;return _.Z2(PD1((Y=c.node)!=null?Y:this.hostElement),y,W,D)};
_.f.get=function(y,W){var c=XX(y);return W?b6(W,c):y==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(c)};
_.f.linkPaths=function(){};
_.f.listen=function(y,W,c){y=PD1(y);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Z=this.boundListeners.get(y);Z||(Z={},this.boundListeners.set(y,Z));var G=W+c;Z[G]||(Z[G]=Zoh(this,y,W,c))};
_.f.notifyPath=function(y,W){this.signalProxy.notifyPath(XX(y),arguments.length===2?{value:W}:void 0)};
_.f.canNotifyPath=function(y){var W,c;return this.mutablePropNames.has(y)&&!((W=this.signalProxy.options)==null?0:(c=W.immutableProps)==null?0:c.has(y))};
_.f.notifySplices=function(y,W){this.signalProxy.notifySplices(XX(y),W)};
_.f.pop=function(y){var W=this.signalProxy;y=XX(y);var c=_.z(y);y=c.next().value;c=dL(c);return FX(W,y).pop(c)};
_.f.push=function(y){var W=_.Cf.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[XX(y)].concat(_.No(W)))};
_.f.set=function(y,W,c){if(c)throw Error("Lg");y==="hidden"?this.hostElement.hidden=!!W:this.signalProxy.setWithPath(XX(y),W)};
_.f.setProperties=function(y){y=_.z(Object.entries(y));for(var W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;c=c.next().value;this[W]=c}};
_.f.splice=function(y,W,c){var Z=_.Cf.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[XX(y),W,c].concat(_.No(Z)))};
_.f.unlinkPaths=function(){};
_.f.unlisten=function(y,W,c){y=PD1(y);if(this.boundListeners){var Z=this.boundListeners.get(y);if(Z){c=W+c;var G=Z[c];G&&(gJ(y,W,G)||y.removeEventListener(W,G),delete Z[c])}}};
_.f.unshift=function(y){var W=_.Cf.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[XX(y)].concat(_.No(W)))};
_.dJ.Object.defineProperties(E0.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 dfF=[Array,Boolean,Date,Number,Object,String];var ahF=!1;var b$=function(){var y=HTMLElement.apply(this,arguments)||this;y.restamp=!1;y.notifyDomChange=!1;y.JSC$11213_didCallConnected=!1;y.JSC$11213_renderDebouncer=null;y.disableTemplateUpdateSignalImpl=NM()?void 0:_.G9(!1,void 0,"bmozBd");var W;y.getDisableTemplateUpdate=(W=y.disableTemplateUpdateSignalImpl)==null?void 0:W[0];var c;y.setDisableTemplateUpdate=(c=y.disableTemplateUpdateSignalImpl)==null?void 0:c[1];return y};
_.R(b$,HTMLElement);var F73=function(y){y.conditionSignalImpl!=null||(y.conditionSignalImpl=new tt(_.G9(!1,void 0,"NYV5Rb")));return y.conditionSignalImpl};
_.f=b$.prototype;_.f.showHideChildren=function(y){UfJ(this,y,this.if)};
_.f.attributeChangedCallback=function(y,W,c){if(this.JSC$11213_didCallConnected)throw Error("Pg`"+y);y==="notify-dom-change"?this.notifyDomChange=c!==null:y==="restamp"&&(this.restamp=c!==null)};
_.f.debounceRender=function(){this.JSC$11213_renderDebouncer=_.kj(this.JSC$11213_renderDebouncer,ln,this.JSC$11213_renderImpl.bind(this));_.j0(this.JSC$11213_renderDebouncer)};
_.f.disconnectedCallback=function(){var y=(0,_.ed)(this).parentNode;(!y||y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in y&&!y.host)&&$f5(this)};
_.f.connectedCallback=function(){var y=this;this.JSC$11213_didCallConnected=!0;jAQ?xfE():this.style.display="none";this.parentSignalProxy.effect(function(){F73(y).getWithPath([]);y.debounceRender()})};
_.f.render=function(){_.ZN()};
_.f.JSC$11213_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var y=this.if;if(y){a:{var W=(0,_.ed)(this).parentNode;if(this.hasInstance()){var c=this.instance.children;if((c==null?0:c.length)&&(0,_.ed)(this).previousSibling!==c[c.length-1])for(var Z=0;Z<c.length;Z++)(0,_.ed)(W).insertBefore(c[Z],this)}else{if(!W){W=!1;break a}K73(this,W)}W=!0}if(!W)return}else this.restamp&&$f5(this);UfJ(this,!1,y);y&&OoV(this);yjT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.f.hasInstance=function(){return!!this.instance};
var K73=function(y,W){var c=y.parentSignalProxy;if(NM()){var Z=_.z(_.G9(!0,void 0,"tGD1cf"));var G=Z.next().value;Z=Z.next().value;c=y.parentSignalProxy}else{var D;var Y=new Xq((D=g10(y))!=null?D:{},function(t){var b=FX(y.parentSignalProxy,t).getChangeRecordSignal([]);t=_.G9(void 0,void 0,"dOaz1b");var r=new tt(t);Y.effect(function(){if(y.getDisableTemplateUpdate&&!y.getDisableTemplateUpdate()){var F=b();r.notifyPath(XX(F.path),{value:F.value})}});
return r});
y.parentSignalProxy.childSignalProxies.push(Y);var u=c=Y}D=G0w(y.templateInfo,y.templateInfo.nodeInfoList,c,{eventListenerHost:y.eventListenerHost,hasInsertionPoint:y.templateInfo.hasInsertionPoint,thisCtx:y.eventListenerHost,enabledSignal:NM()?G:void 0,scope:y.parentScope,getModel:function(){return y.parentScope?iot(c.owner,y.parentScope):g10(y)}}).root;
y.instance={root:D,children:[],hidden:!1,signalProxy:u,getTemplateUpdatesEnabled:G,setTemplateUpdatesEnabled:Z};u=_.z(D.childNodes);for(G=u.next();!G.done;G=u.next())y.instance.children.push(G.value);(0,_.ed)(W).insertBefore(y.instance.root,y)},g10=function(y){if((y=y.parentSignalProxy.model)&&!y.hostElement){var W={},c;
for(c in y)y.hasOwnProperty(c)&&(W[c]=y[c]);return W}},$f5=function(y){if(y.instance){var W=y.instance.children;
if(W.length){var c=(0,_.ed)(W[0]).parentNode;if(c){c=(0,_.ed)(c);for(var Z=0;Z<W.length;Z++)c.removeChild(W[Z])}}NM()?y.instance.setTemplateUpdatesEnabled(!1):y.instance.signalProxy.dispose();y.instance=void 0}},UfJ=function(y,W,c){W=W||!c;
y.instance&&y.instance.hidden!==W&&(y.instance.hidden=W,TGh(W,y.instance.children))},OoV=function(y){if(NM()){var W=y.instance;
W&&R2(y.parentSignalProxy.owner,function(){return!W.getTemplateUpdatesEnabled()})&&W.setTemplateUpdatesEnabled(!0)}else y.setDisableTemplateUpdate(!1)};
_.dJ.Object.defineProperties(b$.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var y=this;return R2(this.parentSignalProxy.owner,function(){return F73(y).getWithPath([])})},
set:function(y){y||(NM()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));F73(this).setWithPath([],!!y)}}});
_.dJ.Object.defineProperties(b$,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",b$);var RMi=[],rU=function(){var y=HTMLElement.apply(this,arguments)||this;y.as="item";y.indexAs="index";y.itemsIndexAs="itemsIndex";y.targetFramerate=20;y.notifyDomChange=!1;y.isDetached=!1;y.JSC$11220_renderDebouncer=null;y.instances=[];y.chunkingId=null;y.chunkCount=null;y.shouldMeasureChunk=!1;y.shouldContinueChunking=!1;y.renderStartTime=null;y.JSC$11220_didCallConnected=!1;return y};
_.R(rU,HTMLElement);var lh2=function(y){y.itemSignalImpl!=null||(y.itemSignalImpl=new tt(_.G9(RMi,void 0,"uvlPIb")));return y.itemSignalImpl},E1T=function(y,W){Array.isArray(W)||(W=RMi);
lh2(y).setWithPath([],W)};
_.f=rU.prototype;_.f.showHideChildren=function(y){for(var W=_.z(this.instances),c=W.next();!c.done;c=W.next())TGh(y,c.value.children)};
_.f.notifyPath=function(y,W){y=XX(y);y[0]==="items"&&(y.length===1?E1T(this,W):lh2(this).setWithPath(y.slice(1),W))};
_.f.canNotifyPath=function(y){return y==="items"};
_.f.attributeChangedCallback=function(y,W,c){if(this.JSC$11220_didCallConnected)throw Error("Qg`"+y);y==="as"?this.as=c:y==="index-as"?this.indexAs=c:y==="items-index-as"?this.itemsIndexAs=c:y==="initial-count"?this.initialCount=Number(c):y==="notify-dom-change"?this.notifyDomChange=c!==null:y==="target-framerate"&&(this.targetFramerate=Number(c))};
_.f.disconnectedCallback=function(){this.isDetached=!0;for(var y=0;y<this.instances.length;y++)NGZ(this,y);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.f.connectedCallback=function(){var y=this,W=lh2(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var G=W(),D=XX(G.path);if(D[0]===void 0||D[0]==="splices"||D[0]==="length")y.debounceRender();else{var Y=D[0];if(Y=y.instances[typeof Y==="string"?Math.floor(Number(Y)):Y])Y.type==="legacy"?(D=[y.as].concat(_.No(D.slice(1))),Y.signalProxy.notifyPath(D,G)):(D=D.slice(1),Y.itemSignal.notifyPath(D,G))}});
this.JSC$11220_didCallConnected=!0;jAQ?xfE():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var c=(0,_.ed)((0,_.ed)(this).parentNode),Z=0;Z<this.instances.length;Z++)c.insertBefore(this.instances[Z].root,this);this.chunkingId&&this.render()}};
_.f.debounceRender=function(){this.JSC$11220_renderDebouncer=_.kj(this.JSC$11220_renderDebouncer,ln,this.JSC$11220_renderImpl.bind(this));_.j0(this.JSC$11220_renderDebouncer)};
_.f.render=function(){this.debounceRender();_.ZN()};
_.f.JSC$11220_renderImpl=function(){var y=this,W=this.items,c=IhQ(this,W.length);pVE(this,W,c);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){y.chunkingId=null;if(y.shouldMeasureChunk){var Z=performance.now()-y.renderStartTime;y.chunkCount=Math.round(Math.ceil(1E3/y.targetFramerate)/Z*y.chunkCount)||1}y.shouldContinueChunking&&y.debounceRender()}));
yjT&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var IhQ=function(y,W){var c=W,Z=y.instances.length;if(y.initialCount){if(y.chunkCount){var G=Math.min(Math.max(W-Z,0),y.chunkCount);c=Math.min(Z+G,W)}else c=Math.min(W,y.initialCount),G=Math.max(c-Z,0),y.chunkCount=G||1;y.shouldMeasureChunk=G===y.chunkCount;y.shouldContinueChunking=c<W;y.renderStartTime=performance.now()}return c},pVE=function(y,W,c){for(var Z=0;Z<c;Z++){var G=y.instances[Z],D=W[Z];
G?G.type==="legacy"?(G.signalProxy.setWithPath([y.as],D),G.signalProxy.setWithPath([y.indexAs],Z)):(G.itemSignal.setWithPath([],D),G.setIndex(Z)):PD3(y,D,Z)}for(W=y.instances.length-1;W>=Z;W--)c=y,G=W,NGZ(c,G),c=_.z(c.instances.splice(G,1)).next().value,c.type==="legacy"?c.signalProxy.dispose():c.setDisabled()},NGZ=function(y,W){y=y.instances[W];
W=(0,_.ed)(y.root);for(var c=0;c<y.children.length;c++)W.appendChild(y.children[c])},PD3=function(y,W,c){var Z={};
Z=Object.assign({},JjW(y),(Z[y.as]=W,Z[y.indexAs]=c,Z[y.itemsIndexAs]=c,Z));if(_.O("dom_repeat_use_ambient_signals")||_.O("creator_dom_repeat_use_ambient_signals")){W=new tt(_.G9(W,void 0,"g83Pb"));var G=_.z(_.G9(c,void 0,"tQRdod"));Z=G.next().value;G=G.next().value;var D=_.z(M3f());var Y=D.next().value,u=D.next().value;D={};var t={parentScope:y.parentScope,signals:(D[y.as]={type:"mutable",signal:W},D[y.indexAs]={type:"signal",getter:Z},D[y.itemsIndexAs]={type:"signal",getter:Z},D)};D=G0w(y.templateInfo,
y.templateInfo.nodeInfoList,y.parentSignalProxy,{eventListenerHost:y.eventListenerHost,getModel:function(){return iot(y.parentSignalProxy.owner,t)},
hasInsertionPoint:y.templateInfo.hasInsertionPoint,thisCtx:y.eventListenerHost,methodInvocationRequirement:cjE,enabledSignal:function(){return(y.stampingEnabled===void 0||y.stampingEnabled())&&Y()},
scope:t}).root;W={type:"ambientSignal",root:D,children:[],itemSignal:W,getIndex:Z,setIndex:G,getEnabled:Y,setDisabled:u}}else{var b=new Xq(Z,function(r){if(r!==y.as&&r!==y.indexAs){if(r===y.itemsIndexAs)return FX(b,y.indexAs);var F=FX(y.parentSignalProxy,r).getChangeRecordSignal([]);r=_.G9(void 0,void 0,"UobVm");var K=new tt(r);b.effect(function(){var l=F();K.notifyPath(XX(l.path),{value:l.value})});
return K}});
y.parentSignalProxy.childSignalProxies.push(b);D=G0w(y.templateInfo,y.templateInfo.nodeInfoList,b,{eventListenerHost:y.eventListenerHost,getModel:function(){var r={};return Object.assign({},JjW(y),(r[y.as]=b.model[y.as],r[y.indexAs]=b.model[y.indexAs],r[y.itemsIndexAs]=b.model[y.indexAs],r))},
hasInsertionPoint:y.templateInfo.hasInsertionPoint,thisCtx:y.eventListenerHost,methodInvocationRequirement:cjE,enabledSignal:y.stampingEnabled}).root;W={type:"legacy",root:D,children:[],signalProxy:b}}Z=_.z(D.childNodes);for(G=Z.next();!G.done;G=Z.next())W.children.push(G.value);Z=(Z=y.instances[c+1])?Z.children[0]:y;(0,_.ed)((0,_.ed)(y).parentNode).insertBefore(W.root,Z);y.instances[c]=W},JjW=function(y){if((y=y.parentSignalProxy.model)&&!y.hostElement){var W={},c;
for(c in y)y.hasOwnProperty(c)&&(W[c]=y[c]);return W}};
rU.prototype.itemForElement=function(y){var W=this,c=this.instances.find(function(Z){return Z.children.includes(y)});
if(c)return R2(this.parentSignalProxy.owner,function(){return c.type==="legacy"?c.signalProxy.getWithPath([W.as]):c.itemSignal.getWithPath([])})};
rU.prototype.indexForElement=function(y){var W=this.instances.findIndex(function(c){return c.children.includes(y)});
return W>=0?W:void 0};
_.dJ.Object.defineProperties(rU.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var y=this;return R2(this.parentSignalProxy.owner,function(){return lh2(y).getWithPath([])})},
set:function(y){E1T(this,y)}},
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}}});
_.dJ.Object.defineProperties(rU,{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",rU);var V3T,CD2;_.Fq=new _.Sm("STATE_STORE_TOKEN");V3T=new _.Sm("SELECT_TOKEN");CD2=new _.Sm("DISPATCH_TOKEN");var yQH={getSelectFn:function(){var y;return(y=_.U().resolve(_.xN(V3T)))!=null?y:eMg},
getDispatchFn:function(){var y;return(y=_.U().resolve(_.xN(CD2)))!=null?y:_.I5().dispatch.bind(_.I5())},
getAppStore:function(){return _.U().resolve(_.Fq)}},wVy,jBH=!1;var ZSO=void 0;var QAV=function(){};
QAV.prototype.hasAttribute=function(y){if(y==="dir")return!1;if(y==="disable-upgrade"){var W,c;return(c=(W=this.hostElement)==null?void 0:W.hasAttribute("disable-upgrade"))!=null?c:!1}throw Error("Rg`"+y);};
QAV.prototype.attributeChangedCallbackWrapper=function(y,W,c){if(y==="disable-upgrade"&&this.__isUpgradeDisabled&&c===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Z;((Z=this.hostElement)!=null?Z:this).isConnected&&this.connectedCallback()}else W===c||this.__isReflecting||this.attributeChangedCallback(y,W,c)};
QAV.prototype.getExtraMethodsToForward=function(){for(var y=this,W=[],c=_.z(AjE),Z=c.next(),G={};!Z.done;G={tagName$jscomp$52:void 0,name$jscomp$533:void 0},Z=c.next())G.name$jscomp$533=Z.value,Z=void 0,G.name$jscomp$533==="_setPendingProperty"?(G.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),Z=function(D){return function(Y,u,t){DV(D.tagName$jscomp$52,Y,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return y._setPendingProperty(Y,u,t)}}(G)):Z=function(D){return function(){return y[D.name$jscomp$533].apply(y,
_.No(_.Cf.apply(0,arguments)))}}(G),W.push([G.name$jscomp$533,
Z]);return W};
for(var zna=uQm(sA0((0,_.u_)(QAV))),u4O=["disabled","disable-upgrade"],hM3=(0,_.u_)(function(){}),BGE=new Set(Object.getOwnPropertyNames(hM3.prototype)),rQI=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.No(BGE))),nCD=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),AjE=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),HoQ=new Set([].concat(_.No(nCD),_.No(AjE),_.No(BGE))),L75=_.z(HoQ),v1Q=L75.next();!v1Q.done;v1Q=L75.next())GV1.add(v1Q.value);var bSE={created:function(){lhg(this);this.initializeInjection()}};var ECf=!1,L6=window.ShadyDOM,QBg=["appendChild","insertBefore","removeChild","replaceChild"],CaI=[Node];L6&&CaI.push(L6.Wrapper);var Laf,vCE,Tdw={};var Sj=new Set,vQ="",aAD="";var dp,Ts=new Set;var yrh=new Set("context didCallReady is info params signalProxy".split(" ")),crh="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Z9E="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var dfW=zr({entities:quw}),SrQ=new du(dfW);var TGm=function(){return _.cQ.apply(this,arguments)||this};
_.R(TGm,_.cQ);_.dJ.Object.defineProperties(TGm.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return SrQ}}});
var ahW=TGm;ahW=_.x([_.ZV()],ahW);_.Uo=[so.prototype,ahW.prototype];_.$S={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var y=this,W={};setTimeout(function(){var c;return _.Z2((c=y.hostElement)!=null?c:y,"yt-live-chat-add-tooltip-target",W)},0);
this.handler_=W.handler},
detached:function(){if(this.handler_){var y;this.handler_.removeElementFromSupportingTooltips((y=this.hostElement)!=null?y:this)}this.handler_=null}}};_.qM=new _.Sm("ICON_MANAGER_TOKEN");var xfQ=[48,20,18,16,15,13,12],l6I=new Map,UdI=new Set,b9F=new Set,FR1=new Set,XZf=new Set,rry=new Set,KRI=new Promise(function(y){var W=!1,c=!1,Z=!1,G=[],D=function(Y){if("detail"in Y)if(Y=Y.detail,Y.name==="yt-icons")$dF(Y),W=!0;else if(Y.name==="yt-sys-icons")$dF(Y),c=!0;else{var u;((u=Y.name)==null?0:u.includes("yt-sys-icons"))&&Y.size!==24&&($dF(Y,!0),G.push(Y.size),G.length===xfQ.length&&(Z=!0))}W&&c&&Z&&(window.removeEventListener("iron-iconset-added",D),y())};
window.addEventListener("iron-iconset-added",D)}),glh=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"]]);_.KA={};_.KA.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.v$,computeHref_:function(y,W){W=W===void 0?!1:W;if(!y||y.commandExecutorCommand)return null;var c=Q3H(y,W);return W||c!==null?c?_.O("enable_polymer_resin")?_.Jn(c).toString():c:null:(_.Rs(new _.ul("computeHref was null",this.is,y)),null)},
computeOptionalHref_:function(y){return this.computeHref_(y,!0)},
computeNofollow_:function(y){return y?lxw(y)?"nofollow":null:null},
computeIcon_:function(y){return y&&y.iconType?_.wp(y.iconType):""},
resolveCommand:function(y,W,c){W=W===void 0?{}:W;return _.jl(y,this.hostElement,W,c===void 0?!1:c)}};var M3E,Oo;_.ioE={};M3E=null;
Oo={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_=ViO(this.viewroot));_.O0(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var y=this;this.unobserve_();if(_.O("kevlar_vimio_use_shared_monitor"))PbI(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var W=[];this.visibilityOptionVisible_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return y.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return y.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&W.push(this.visibilityObserver.observe(this.hostElement,function(){return y.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=W}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){ElH(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 y=_.CP(this.parentNode,function(c){var Z,G=(Z=c.polymerController)!=null?Z:c;return!!G.getVisibilityObserverForChild&&G.getVisibilityObserverForChild()},!0);
if(y){var W;this.localVisibilityObserver_=((W=y.polymerController)!=null?W:y).getVisibilityObserverForChild()}else M3E||(M3E=ViO()),this.localVisibilityObserver_=M3E;return this.localVisibilityObserver_},visibilityCallback:function(y){y?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.O("kevlar_use_vimio_behavior")||(Oo={});Oo&&!_.O("kevlar_use_vimio_behavior")&&(delete Oo.attached,delete Oo.detached);_.ioE.YtVisibilityObserverBehavior=[Oo];var eM2={};eM2.YtVisualElementBehavior=[_.ioE.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.O("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.O("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var y=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportShown(this,void 0,y)}},
onHidden:function(){if(_.O("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.O("kevlar_vimio_use_shared_monitor")){var y=this.getScreenLayer&&this.getScreenLayer(),W=this.getVisibilityLogger();W&&W.reportHidden(this,void 0,y)}},
getVisibilityLogger:function(){return _.O("kevlar_use_vimio_behavior")?_.Wh():null},
shouldSkipLogging:function(){if(_.Nn("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var y=this.getParentRenderer&&this.getParentRenderer();if(!y)return!1;var W,c=(W=y.polymerController)!=null?W:y;if(!c.data)return!1;y=this.data.trackingParams;y=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:y;var Z;W=(Z=c.data)==null?void 0:Z.trackingParams;var G,D;W=((G=c.data)==null?0:G.loggingDirectives)?(D=c.data)==null?void 0:D.loggingDirectives.trackingParams:W;return y&&W&&y===
W}}];var Quw=new Map,zP;var LiI=function(y){this.layer=y},Kp=function(y){return y.layer!==void 0?y.layer:y.parent?Kp(y.parent):y.layer=0};var vlg;_.k={};vlg=0;_.k.YtRendererBehavior=[_.KA.YtComponentBehavior,eM2.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_:_.O("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var y,W;(W=(y=this.monitorScrollElement)!=null?y:this.hostElement)==null||W.removeEventListener("scroll",_.qO(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();VkD(this.hostElement);wBE(_.j_(),this.hostElement);xA.delete(this.hostElement)},
registerRenderer:function(y){var W;((W=y.polymerController)!=null?W:y).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(y),this.markDirty())},
unregisterRenderer_:function(y){this.useVimio_||(this.childCache_.delete(y),this.markDirty())},
attached:function(){var y=this,W=this.getParentRenderer();if(W){var c,Z,G;(Z=(c=(G=W.polymerController)!=null?G:W).registerRenderer)==null||Z.call(c,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var D,Y;(Y=(D=this.monitorScrollElement)!=null?D:this.hostElement)==null||Y.addEventListener("scroll",_.qO(this,this.onScroll))}_.KX.addJob(function(){ArO(y.hostElement)},8);
c=new LiI(this.screenLayer||void 0);(W=xA.get(W))&&W.layerNode&&(c.parent=W.layerNode);W={};EHh(this.hostElement,(W.isRenderer=!0,W.layerNode=c,W[vGI]=this.data,W))},
getParentRenderer:function(){for(var y=this.hostElement.parentNode,W,c;y&&((W=xA.get(y))==null||!W.isRenderer)&&!((c=y.polymerController)!=null?c:y).isRenderer_;)y=y.parentNode||y.host;return y},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.O("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.I8("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.O("debug_web_ve_data")&&this.data.trackingParams){var y="";try{y=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(c){_.OP(c)}if(y){var W=eoH(y,1);W!==void 0&&(this.hostElement.dataset.veIndex=String(W));y=eoH(y,2);
y!==void 0&&(this.hostElement.dataset.ve=String(y))}}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,_.O("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Dz(this.data.loggingDirectives.trackingParams)),this.visualElement=_.ch(_.Zz(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var y=this.data.targetId;_.kVm(_.j_(),y,this.hostElement)}else wBE(_.j_(),this.hostElement)},
onScroll:function(){var y=Date.now();y-this.lastHandledScroll_<50||(this.lastHandledScroll_=y,this.markDirty())},
markDirty:function(){_.O("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():ddE(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var y=this.getParentRenderer();if(y&&(y=xA.get(y))&&y.layerNode)return Kp(y.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.No(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var y=0;y<this.data.impressionEndpoints.length;y++)this.sendImpression(this.data.impressionEndpoints[y]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(y){y.clickTrackingParams&&delete y.clickTrackingParams;var W,c;(y==null?0:(W=y.commandMetadata)==null?0:(c=W.webCommandMetadata)==null?0:c.sendPost)?_.D2(this.hostElement,[y,{impression:!0}]):_.mq(this.hostElement,[y],this.hostElement)},
logExplicitClick:function(y){var W=_.NR(this.getScreenLayer());if(W){var c,Z=(c=y.polymerController)!=null?c:y;y=Z.visualElement;Z=Z.trackingParams||Z.clickTrackingParams;!y&&Z&&(y=_.Dz(Z));y&&_.SG(W,y)}}}];var wVJ={},qrZ=function(){return _.cQ.apply(this,arguments)||this};
_.R(qrZ,_.cQ);qrZ.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var gU=qrZ;gU.prototype.onPdgItemBehaviorClick=gU.prototype.onPdgItemBehaviorClick;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],gU.prototype,"data",void 0);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],gU.prototype,"onPdgItemBehaviorClick",null);gU=_.x([_.ZV()],gU);wVJ.YtPdgLiveChatItemBehavior=[gU.prototype,_.k.YtRendererBehavior];var k0T;var jB5;_.Rx={};_.Rx.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var l$=function(){var y=aN.apply(this,arguments)||this;y.switchTemplateAtRegistration=!1;return y};
_.R(l$,aN);l$.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||xdh(this),_.$fH(this,"doRender"),this.doRender())};
l$.prototype.debounceRender=function(){this.templatingFn&&_.gp(this,"doRender",this.doRender)};
l$.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.OP(Error("ah"))};
l$.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
var yQ0=l$;yQ0=_.x([s_F()],yQ0);var WaZ=yQ0;var cQm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Eo={},wZI=(Eo[1]={filterString:null,isUnwrappable:null,unwrap:null},Eo[2]={filterString:function(y,W,c){return iv(c)},
isUnwrappable:function(y){return y instanceof BX},
unwrap:function(y){return vX(y)}},Eo[3]={filterString:function(y,W,c){return cQm.test(c)?c:PX.toString()},
isUnwrappable:function(y){return lF(y)},
unwrap:function(y){return _.N9(y)}},Eo[4]={filterString:function(){return PX.toString()},
isUnwrappable:function(y){return y instanceof bF},
unwrap:function(y){return _.U3(y).toString()}},Eo[5]={filterString:function(y,W,c){return c},
isUnwrappable:function(y){return typeof y==="string"},
unwrap:function(y){return y.toString()}},Eo[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(y){return y instanceof _.xX},
unwrap:function(y){return x9w(y)}},Eo[8]={filterString:function(y,W,c){c=String(c).toLowerCase();
return G7I(y,W,c)?c:"zClosurez"},
isUnwrappable:null,unwrap:null},Eo[10]={filterString:null,isUnwrappable:null,unwrap:null},Eo);T5[EN["default"]]=kng;var jKH=[];var bV1=WNI("A"),r$f=WNI("BUTTON"),Yx=WNI("DIV"),F3O=WNI("LABEL");(function(){var y=Ha;Ha=function(W){y==null||y(W);sH(function(){for(var c=0;c<W.length;c++)yME(W[c])})}})();var ZSi=function(){var y=_.cQ.apply(this,arguments)||this;y.hasUnmounted=!1;return y};
_.R(ZSi,_.cQ);_.f=ZSi.prototype;_.f.beforeRegister=function(){var y=this.doIdomRender;this.templatingFn?_.OP(Error("$g")):(this.templatingFn=y,this.switchTemplateAtRegistration=!0,ebg(this))};
_.f.attached=function(){};
_.f.detached=function(){yME(this.hostElement)};
_.f.renderIdom=function(){throw Error("ch");};
_.f.doIdomRender=function(){var y=this;M8D(this.hostElement,function(){y.renderIdom()})};
var GK8=ZSi;GK8=_.x([_.ZV()],GK8);var fA8=[WaZ.prototype,GK8.prototype];var oCW,DmV=function(){return oCW!==void 0?oCW:oCW=document.createElement("template")};
document.head.appendChild(DmV().content);var zn8;var YgT,mmV=function(){return YgT!==void 0?YgT:YgT=document.createElement("template")};
document.head.appendChild(mmV().content);var sBE;var u4i=document.head,t4E=u4i.appendChild,nCZ;if(sBE===void 0){var Xm8=document.createElement("template");_.E(Xm8,"\x3c!--css-build:shady--\x3e");Xm8.content.insertBefore(mmV().content.cloneNode(!0),Xm8.content.firstChild);sBE=Xm8}nCZ=sBE;t4E.call(u4i,nCZ.content);var bSQ,rQV=function(){return bSQ!==void 0?bSQ:bSQ=document.createElement("template")};
document.head.appendChild(rQV().content);var FaE;var UmE=document.head,$m0=UmE.appendChild,KaW;if(FaE===void 0){var OSZ=document.createElement("template");_.E(OSZ,"\x3c!--css-build:shady--\x3e");OSZ.content.insertBefore(rQV().content.cloneNode(!0),OSZ.content.firstChild);FaE=OSZ}KaW=FaE;$m0.call(UmE,KaW.content);var gC5=document.head,Rn5=gC5.appendChild,lA8;if(zn8===void 0){var ECE=document.createElement("template");_.E(ECE,"\x3c!--css-build:shady--\x3e");ECE.content.insertBefore(DmV().content.cloneNode(!0),ECE.content.firstChild);zn8=ECE}lA8=zn8;Rn5.call(gC5,lA8.content);var NdQ,IAm=function(){return NdQ!==void 0?NdQ:NdQ=document.createElement("template")};
document.head.appendChild(IAm().content);var pmm;_.EH=new _.Sm("DARK_THEME_TOKEN");var MO1=new _.w("accessibilityProperties");var i1H=new _.w("layoutProperties");var eSw=new _.w("imageType");var PaE={};if("ytAttributedStringLinkHoverColor"in PaE)throw Error("fh`ytAttributedStringLinkHoverColor");(function(y,W){PaE[y]="value"in W&&"unit"in W?ova(y,W):function(c){try{return W(c)}catch(Z){throw Error("dh`"+y+"`"+Z.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var JQ0=function(y){var W=this;this.holdTime=y===void 0?500:y;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(c){var Z=new CustomEvent("LONG_PRESS"),G;(G=c.changedTouches[0].target)==null||G.dispatchEvent(Z)};
this.ontouchstart=function(c){W.longPressTimeout=_.X5(_.KX,function(){W.onlongpress(c);W.longPressOccurred=!0},W.holdTime)};
this.ontouchmove=function(){_.KX.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!0};
this.ontouchend=function(c){if(W.longPressTimeout&&!W.longPressOccurred&&!W.moveOccurred){var Z;(Z=c.changedTouches[0].target)==null||Z.dispatchEvent(new Event("click"))}_.KX.cancelJob(W.longPressTimeout);W.longPressTimeout=NaN;W.longPressOccurred=!1;W.moveOccurred=!1}};var IFD=function(y,W){JQ0.call(this,W);var c=this;this.callback=y;this.onlongpress=function(Z){var G;(G=c.callback)==null||G.call(c,Z)}};
_.R(IFD,JQ0);var p5D=function(y,W){var c=Object.assign({},W);y=_.z(new Map([["ontouchstart",y.ontouchstart],["ontouchend",y.ontouchend],["ontouchmove",y.ontouchmove]]));for(var Z=y.next(),G={};!Z.done;G={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},Z=y.next()){var D=_.z(Z.value);Z=D.next().value;D=D.next().value;G.eventName$jscomp$88=Z;G.eventHandler$jscomp$3=D;W[G.eventName$jscomp$88]=function(Y){return function(u){var t;(t=c[Y.eventName$jscomp$88])==null||t.call(c,u);(0,Y.eventHandler$jscomp$3)(u)}}(G)}};_.i1=new _.Sm("COMMAND_HANDLER_TOKEN");var zSF=new _.w("parallelCommand");var sKH=new _.w("performOnceCommand");var meI=new _.w("serialCommand");var u$g=void 0;var V43=function(){this.data=[]};
V43.prototype.push=function(y){this.data.push(y)};var q8={};_.G9(q8,void 0,"sgPmTd");_.G9(null,void 0,"jypsq");var gca=new V43;var KNa=[tVE,nWW,XJ5,r5E,b8i,um8,FQi,U38];var aFO=new _.w("bracketTextDecorator");var ls=new _.w("highlightTextDecorator");_.I9=new _.Sm("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var LNI=function(){},CaV;
(CaV=window.requestIdleCallback)==null||CaV.bind(window);var def={calledOnce:!1,state:"visible"},vvH={calledOnce:!1,state:"hidden"};var dZH=new _.Sm("ICON_RENDERER_TOKEN"),QB2=new _.Sm("ICON_WIZ_COMPONENT_TOKEN");_.Gb=_.Ax(function(y){var W=y.icon;var c=y.active;var Z=y.className;var G=y.style;var D=y.dataSelected;var Y=y.dataDisabled;var u=y.role;var t=y.animateIcon;var b=y.themeOverride;var r=y.ariaHidden;var F=y.ariaExpanded;var K=y.ariaLabel;var l=y.id;var N=y.size;var P=y.iconFilter;return _.X(_.YN,{cond:W,then:function(){var V=_.U().resolve(QB2);return _.X(V,{icon:W,dataSelected:D,dataDisabled:Y,animateIcon:t,themeOverride:b,ariaExpanded:F,id:l,active:c,size:N,role:u,className:Z,ariaHidden:r,ariaLabel:K,
style:function(){return G!=null&&G()||N==null||!N()?G==null?void 0:G():"width: "+(N==null?void 0:N())+"px;height: "+((N==null?void 0:N())+"px;")},
iconFilter:P})}})},"b");
_.Gb.idomCompat=!0;var scw=window.devicePixelRatio||1;var X9I=new Map([["yt_outline_bag_black_24","bag"]]);var N7=function(y){var W=this;this.margin=.1;this.whenInViewportWithMargin=y;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){W.requestScan()});
window.addEventListener("touchend",function(){W.requestScan()});
window.addEventListener("updateui",function(){W.requestScan()});
var c=new _.ig((0,_.$r)(this.requestScan,this),100);window.addEventListener("scroll",function(){c.fire()},!0);
window.addEventListener("resize",(0,_.$r)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){W.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.$r)(this.requestScan,this))};
N7.prototype.observe=function(y){this.observationTargets.includes(y)||this.observationTargets.push(y)};
N7.prototype.unobserve=function(y){this.observationTargets=this.observationTargets.filter(function(W){return W!==y})};
N7.prototype.requestScan=function(){var y=this;this.scanRequested||(sH(function(){AQ5(y)}),this.scanRequested=!0)};
var AQ5=function(y){var W=(1+y.margin)*(document.documentElement.clientHeight||window.innerHeight);y.observationTargets=y.observationTargets.filter(function(c){var Z=c.getBoundingClientRect();(Z=W>Z.top&&!!Z.height)&&y.whenInViewportWithMargin(c);return!Z&&c.parentNode});
y.scanRequested=!1};
N7.prototype.disconnect=function(){this.observationTargets=[]};var hnV,HSV;hnV=_.z(_.G9(UAh(),void 0,"O3X2wd"));_.Bd8=hnV.next().value;HSV=hnV.next().value;window.addEventListener("resize",function(){HSV(UAh())});var LaE={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},vCQ=void 0,dmm=window.innerWidth,SgW=window.innerHeight;window.addEventListener("resize",function(){vCQ=void 0});var TdT;if("IntersectionObserver"in window)TdT=OMw();else{if(vCQ===void 0){var aAZ;aAZ="matchMedia"in window?window.matchMedia(LaE.landscape+","+LaE.portrait).matches:void 0;vCQ=aAZ!==void 0?aAZ:dmm>=930&&SgW>=550||dmm>=550&&SgW>=930}TdT=vCQ?{observe:function(y){sH(function(){var W;(W=y.onViewportEntered)==null||W.call(y)})},
unobserve:function(){}}:new N7(function(y){sH(function(){var W;
(W=y.onViewportEntered)==null||W.call(y)})})}var $Aa=TdT;var xmW=_.Ax(function(y){var W=_.HO(),c=!1;_.$k(function(){var Z,G=(Z=y.data)==null?void 0:Z.call(y),D,Y=(D=y.getSrc)==null?void 0:D.call(y).cb,u;Z=(u=y.config)==null?void 0:u.call(y);if(u=W.value){RQI(u,Z);var t;gzt(u,G||null,function(b,r){if(!c)return Y?Y(b,r):b},Z,(t=y.lazy)==null?void 0:t.call(y))}});
_.KL(function(){c=!0});
return _.X("img",{el:W})},"c");
xmW.idomCompat=!0;_.J3=_.Ax(function(y){var W=function(){var c,Z=y.data(),G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI,sD,ED,N1,bf,Py,WJ,t5,xF;var M3={contentMode:(G=y.contentMode)==null?void 0:G.call(y),loadedClass:(D=y.loadedClass)==null?void 0:D.call(y),isPreloaded:(Y=y.isPreloaded)==null?void 0:Y.call(y),notifyOnLoaded:(u=y.notifyOnLoaded)==null?void 0:u.call(y),notifyOnUnloaded:(t=y.notifyOnUnloaded)==null?void 0:t.call(y),preferredThumbnail:(b=y.preferredThumbnail)==null?void 0:b.call(y),preserveHeight:(r=y.preserveHeight)==
null?void 0:r.call(y),preserveWidth:(F=y.preserveWidth)==null?void 0:F.call(y),objectPosition:(K=y.objectPosition)==null?void 0:K.call(y),targetWidth:(l=y.targetWidth)==null?void 0:l.call(y),targetHeight:(N=y.targetHeight)==null?void 0:N.call(y),shouldShowPlaceholder:(P=y.shouldShowPlaceholder)==null?void 0:P.call(y),useWidth:(V=y.useWidth)==null?void 0:V.call(y),alt:(Q=y.alt)==null?void 0:Q.call(y),className:(S=y.className)==null?void 0:S.call(y),onerror:y.onerror,onload:y.onload,style$:((cy=y.style$)==
null?void 0:cy.call(y))||((M=y.style)==null?void 0:M.call(y)),color:(fa=y.color)==null?void 0:fa.call(y),width:(jI=y.width)==null?void 0:jI.call(y),height:(sD=y.height)==null?void 0:sD.call(y),"aria-hidden$":(t5=(ED=y["aria-hidden$"])==null?void 0:ED.call(y))!=null?t5:(N1=y.ariaHidden)==null?void 0:N1.call(y),draggable:(bf=y.draggable)==null?void 0:bf.call(y),"data-disabled$":(xF=(Py=y["data-disabled$"])==null?void 0:Py.call(y))!=null?xF:(WJ=y.dataDisabled)==null?void 0:WJ.call(y)};return NhH(Z,M3,
(c=y.hideOn404)==null?void 0:c.call(y))};
return _.X(_.u1,null,_.X(_.sE,{when:function(){var c;return((c=W())==null?void 0:c.type)==="image"}},function(){return _.X(xmW,{data:function(){return W().image},
getSrc:{cb:function(c,Z){var G=W().image.sources,D=W().config.isPreloaded,Y=W().config.useWidth,u=W().config.targetWidth,t=W().config.targetHeight,b=W().config.preferredThumbnail;return _.udy(Z,G,D,Y,u,t,b)||""}},
config:function(){var c=W().config,Z;for(Z in c)c[Z]===void 0&&delete c[Z];return c},
lazy:y.renderLazy})}),_.X(_.sE,{when:function(){var c;
return((c=W())==null?void 0:c.type)==="icon"}},function(){return _.X(_.Gb,{icon:function(){return W().iconName},
role:function(){return W().config.role},
className:function(){return W().config.className},
style:function(){return W().config.style$+";width: "+(W().config.width+"px;height: ")+(W().config.height+"px;color: ")+(W().config.color+";")},
ariaLabel:function(){return W().config["aria-label$"]},
ariaHidden:function(){return W().config["aria-hidden$"]},
dataDisabled:function(){return W().config["data-disabled$"]}})}))},"d");
_.J3.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var iS5=function(y){return function(W){return _.X(s0g,null,function(){var c=W.data(),Z=_.gV(W.config);return _.X(dC,null,function(){return void y(c,Z)})})}}(CSw),JXE=_.Ax(function(y){var W=function(Z){var G,D=_.It1(function(K){G=ON(function(){for(var l=_.z(r()),N=l.next();!N.done;N=l.next()){N=QcO(N.value);
N=typeof N==="string"?document.createTextNode(N):N;if(!(N instanceof Node)){l=new _.ul("Part is not a node",N,typeof N);_.OP(l);break}K.appendChild(N)}})}),Y=p9f(function(){return qhE(Z())},{isEqual:PSF}),u=_.Jx(y.config),t=function(){var K,l=Y();
return!((K=u())==null||!K.ariaLabel)||!(l.commandRuns&&l.commandRuns.length!==0||l.paragraphStyleRuns&&l.paragraphStyleRuns.length!==0)},b=p9f(u,{isEqual:hQf}),r=function(){var K=w5E(Y(),b());
jcH(K,b());return Y().content?fty(Y().content,K).parts:[]},F=!0;
_.$k(function(){Y();b();if(F)F=!1;else{var K=r();Promise.resolve().then(function(){var l=D.value;if(l){l.innerText="";var N;(N=G)==null||N();G=_.nj(l,function(){return _.X(AXf,{parts:K})})}})}});
return _.X("span",{el:D,class:function(){return Y()&&QKf(Y(),u())},
dir:function(){var K;return((K=u())==null?0:K.userInput)?"auto":void 0},
"aria-label":function(){var K;return t()?(K=u())==null?void 0:K.ariaLabel:void 0},
role:function(){return t()?"text":void 0}})},c;
return((c=y.config)==null?0:c.renderedFromFormattedString)?W(y.text):_.X(_.YN,{cond:y.text,then:W})},"e");
JXE.idomCompat=!0;_.Da=_.Ax(function(y){var W=_.Jx(y.text),c=Bhh(y);y.renderedFromFormattedString!==void 0&&(c.renderedFromFormattedString=!0);return _.O("attr_string_reactive")?_.X(JXE,{text:W,config:c}):_.X(_.YN,{cond:function(){var Z;return W()&&((Z=qhE(W()))==null?void 0:Z.content)},
then:function(){return _.X(iS5,{data:y.text,config:c})},
debugInstance:"Apcuac"})},"f");
_.Da.idomCompat=!0;var LbD=function(y,W,c){W=W===void 0?"unknown":W;c=c===void 0?{}:c;_.ul.call(this,y+" ("+W+")",Object.assign({},{name:"YtWcwError",tagName:W},c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(LbD,_.ul);_.iMf=new WeakMap;_.xAH=!1;var ata,MHy,dAh,ThH;_.Ix=Symbol("hh");_.QE=Symbol("ih");ata=Symbol("jh");MHy=new Set(Object.getOwnPropertyNames(Element.prototype));dAh=!_.O("web_wcw_disable_component_function_named_child_props");ThH=Symbol("kh");var M4Q=_.Ax(function(y){return _.X("yt-attributed-string",{"aria-label":y.ariaLabel,hidden:y.hidden,id:y.id,class:y.className,"force-default-style":y.forceDefaultStyle},_.X(_.Da,{text:y.data,ariaLabel:y.ariaLabel,ellipsisTruncate:y.ellipsisTruncate,isOverlay:y.isOverlay,linkInheritColor:y.linkInheritColor,noPreWrap:y.noPreWrap,noWrap:y.noWrap,userInput:y.userInput,noEndpoints:y.noEndpoints,headerRuns:y.headerRuns}))},"g");
_.O("web_wiz_attributed_string")&&_.A3(M4Q,"yt-attributed-string",{props:{ariaHidden:_.Ix,ariaLabel:_.Ix,className:_.Ix,ellipsisTruncate:_.Ix,isOverlay:_.Ix,linkInheritColor:_.Ix,noEndpoints:_.Ix,noStyleRuns:_.Ix,noLinkColor:_.Ix,noPreWrap:_.Ix,noWrap:_.Ix,skipOnClick:_.Ix,userInput:_.Ix,headerRuns:_.Ix,id:_.Ix,data:_.Ix,hidden:_.Ix,forceDefaultStyle:_.Ix,text:_.QE,stopPropagation:_.QE,disableUpgrade:_.QE,disable:_.QE,slot:_.QE}});var en5=function(){return _.v.apply(this,arguments)||this};
_.R(en5,_.v);en5.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},CSw(this.data,this.config))};
var pA=en5;_.x([_.C(fA8),_.e("design:type",Object)],pA.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pA.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pA.prototype,"ariaLabel",void 0);_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"disable",void 0);_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"ellipsisTruncate",void 0);_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"isOverlay",void 0);
_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"linkInheritColor",void 0);_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"noPreWrap",void 0);_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"noWrap",void 0);_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"userInput",void 0);_.x([_.L(),_.e("design:type",Boolean)],pA.prototype,"noEndpoints",void 0);_.x([_.L(),_.e("design:type",Array)],pA.prototype,"headerRuns",void 0);
pA=_.x([_.n6({is:"yt-attributed-string",disableElementRegistration:!0})],pA);
_.O("web_wiz_attributed_string")||_.T(pA,"yt-attributed-string",function(){if(pmm===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
y.content.insertBefore(IAm().content.cloneNode(!0),y.content.firstChild);pmm=y}y=pmm;return y},{mode:2});var wm2,qgZ,WYh;wm2=function(){this.firstThumbnailLoaded=!1};
_.kKE=function(){qgZ||(qgZ=new wm2);return qgZ};
WYh=function(y){var W=_.kKE();W.firstThumbnailLoaded||(W.firstThumbnailLoaded=!0,_.PA("ftl",y))};
wm2.prototype.reset=function(){this.firstThumbnailLoaded=!1};var w9w=0,y0h=new WeakMap,k1H=0,Hh=new Set;var juQ,yrm=function(){return juQ!==void 0?juQ:juQ=document.createElement("template")};
document.head.appendChild(yrm().content);var WRE;var fCD,D_D,Pj;_.dZ=_.DH.caches;Pj=function(){};
Pj.prototype.open=function(y){return _.dZ.open(crm(y))};
Pj.prototype.has=function(y){return _.dZ.has(crm(y))};
Pj.prototype.delete=function(y){return _.dZ.delete(crm(y))};
Pj.prototype.match=function(y,W){var c=this,Z,G,D,Y,u,t;return _.m(function(b){switch(b.nextAddress){case 1:return _.n(b,c.keys(),2);case 2:Z=b.yieldResult,G=_.z(Z),D=G.next();case 3:if(D.done){b.jumpTo(5);break}Y=D.value;return _.n(b,c.open(Y),6);case 6:return u=b.yieldResult,_.n(b,u.match(y,W),7);case 7:if(t=b.yieldResult)return b.return(t);D=G.next();b.jumpTo(3);break;case 5:return b.return()}})};
var zwt=function(){};
_.R(zwt,Pj);var crm=function(y){if(y.includes(":"))throw Error("nh`"+y);return y+":"+_.m9("CacheStorage get")};
zwt.prototype.keys=function(){var y,W,c,Z,G,D,Y,u,t;return _.m(function(b){if(b.nextAddress==1)return y=[],W=_.m9("CacheStorage keys"),_.n(b,_.dZ.keys(),2);c=b.yieldResult;Z=_.z(c);for(G=Z.next();!G.done;G=Z.next())D=G.value,Y=_.Gzh(D),u=Y.originalName,t=Y.datasyncId,t===W&&y.push(u);return b.return(y)})};var Z9Q=function(){var y=_.v.apply(this,arguments)||this;y.objectURL=null;y.loadTime=Infinity;return y};
_.R(Z9Q,_.v);_.f=Z9Q.prototype;_.f.renderIdom=function(){Z5I(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&ltO(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.f.objectFitToContentMode=function(y){switch(y){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.f.logThumbnailFailureVe=function(){var y=_.se(197497);_.qY(_.Zz(),y);var W=_.NR();W&&y&&W&&_.vA(W,[y])};
_.f.loadImageFromCacheIfExists=function(y){var W=this,c=y.target;(c==null?0:c.src)&&m_H(c.src).then(function(Z){W.objectURL=V7(Z).toString();W.setSrc(c,W.objectURL)}).catch(function(){})};
_.f.onError=function(y){var W=this;if(_.O("web_use_cache_for_image_fallback")){var c=y.target;c&&m_H(c.src).then(function(Z){W.objectURL=V7(Z).toString();W.setSrc(c,W.objectURL)}).catch(function(){_.O("kevlar_woffle_log_thumbnail_failure_ve")&&W.logThumbnailFailureVe();
_.O("kevlar_woffle_fallback_image")&&W.setSrc(c,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.f.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.f.setConfig=function(){var y=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(W){y.loadImageFromCacheIfExists(W);y.revokeObjectURL();c0O(y.hostElement)},
onerror:function(W){y.onError(W)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.O("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.f.setSrc=function(y,W){W&&(y.src=W)};
var Jt=Z9Q;_.x([_.C(fA8),_.e("design:type",Object)],Jt.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Jt.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],Jt.prototype,"alt",void 0);_.x([_.L(),_.e("design:type",Boolean)],Jt.prototype,"ftlEligible",void 0);_.x([_.L(),_.e("design:type",Number)],Jt.prototype,"height",void 0);_.x([_.L(),_.e("design:type",Boolean)],Jt.prototype,"notifyOnLoaded",void 0);
_.x([_.L(),_.e("design:type",Boolean)],Jt.prototype,"notifyOnUnloaded",void 0);_.x([_.L(),_.e("design:type",String)],Jt.prototype,"objectFit",void 0);_.x([_.L(),_.e("design:type",String)],Jt.prototype,"objectPosition",void 0);_.x([_.L(),_.e("design:type",String)],Jt.prototype,"preferredThumbnail",void 0);_.x([_.L(),_.e("design:type",Boolean)],Jt.prototype,"preserveHeight",void 0);_.x([_.L(),_.e("design:type",Boolean)],Jt.prototype,"preserveWidth",void 0);
_.x([_.L({value:!0}),_.e("design:type",Boolean)],Jt.prototype,"useWidth",void 0);_.x([_.L({value:function(){return!_.I8("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.e("design:type",Boolean)],Jt.prototype,"shouldRenderLazy",void 0);_.x([_.L(),_.e("design:type",Number)],Jt.prototype,"width",void 0);Jt=_.x([_.n6({is:"yt-image",disableElementRegistration:!0})],Jt);
_.T(Jt,"yt-image",function(){if(WRE===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(yrm().content.cloneNode(!0),y.content.firstChild);
WRE=y}y=WRE;return y},{mode:2});var GnZ=function(){return _.v.apply(this,arguments)||this};
_.R(GnZ,_.v);GnZ.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var y=_.UH(this.data.onVisibleCommand);y&&this.ytComponentBehavior.resolveCommand(y)}};
var VN=GnZ;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],VN.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Rx.YtVisibilityBehavior),_.e("design:type",Object)],VN.prototype,"ytVisibilityBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],VN.prototype,"data",void 0);VN=_.x([_.n6({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],VN);
_.T(VN,"yt-bumper-user-edu-content-view-model",function(){if(jB5===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;k0T===void 0&&(k0T=document.createElement("template"));var Z=k0T;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);jB5=y}y=jB5;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var f6m;var olZ,DdQ=function(){if(olZ!==void 0)return olZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;f6m===void 0&&(f6m=document.createElement("template"));var Z=f6m;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return olZ=y};var zb2;_.CA={};zb2=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"]);_.CA.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var y=this.getContext_();return y?y.getTaskManager():_.KX},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var y=_.Z2(this.hostElement,"yt-get-context-provider",{});y.detail&&y.detail.contextProvider?this.cachedProviderNode_=y.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return zb2.has(this.hostElement.localName)},
getNetworkManager:function(){var y=this.getContext_();if(y)return y.getNetworkManager()}};var b5a,YFV,suV,mdZ;_.QN=function(y){var W=YFV.get(y);if(W&&(W=W.pop()))return mdZ++,W;suV++;try{var c=document.createElement(y)}catch(Z){throw new _.ul("ElementPool failed to create element",y,Z.message);}return c};
b5a=function(y){var W=y.is;if(W){var c=YFV.get(W);c||(c=[],YFV.set(W,c));var Z=_.Nn("ELEMENT_POOL_CONFIG")||{};c.length>=(Z[W]!==void 0?Z[W]:_.Nn("ELEMENT_POOL_DEFAULT_CAP",0))||c.push(y)}else _.Rs(new _.ul("Element pool should only handle custom elements:",y.nodeName))};
YFV=new Map;suV=0;mdZ=0;var Sl=new WeakMap,XYh=new WeakMap;var tk0;_.At=function(y,W,c){c=c===void 0?_.gl():c;this.JSC$11488_defaultPriority=y;this.signal=W;this.scheduler=c;this.nextJobDescriptor=0;this.JSC$11488_parkedJobs=[];this.scheduledJobs=new Map};
_.ht=function(y,W){if(W){var c=_.It();y.signal&&!_.pH(c,y.signal)?(c.addListener(y.signal,function(){y.processSignal()}),y.JSC$11488_parkedJobs.push({job:W,
priority:void 0})):uvE(y,W)}};
tk0=function(y,W){if(W!==y.JSC$11488_defaultPriority){y.JSC$11488_defaultPriority=W;for(var c=_.z(y.scheduledJobs.values()),Z=c.next();!Z.done;Z=c.next())Z=Z.value,y.scheduler.cancelJob(Z.jobId),Z.jobId=y.scheduler.addJob(Z.jobWrapper,W)}};
_.At.prototype.flushJobs=function(){tk0(this,10);this.processSignal()};
_.At.prototype.cancel=function(){for(var y=_.z(this.scheduledJobs),W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;c=c.next().value;this.scheduler.cancelJob(c.jobId);this.scheduledJobs.delete(W)}this.JSC$11488_parkedJobs=[]};
_.At.prototype.processSignal=function(){for(var y=_.z(this.JSC$11488_parkedJobs),W=y.next();!W.done;W=y.next())W=W.value,uvE(this,W.job,W.priority);this.JSC$11488_parkedJobs=[]};
var uvE=function(y,W,c){c=c||y.JSC$11488_defaultPriority;if(c===10)LN(W);else{var Z=y.nextJobDescriptor++,G=function(){W();y.scheduledJobs.delete(Z)},D=y.scheduler.addJob(G,c);
y.scheduledJobs.set(Z,{jobWrapper:G,jobId:D,priority:c})}};_.eu($_t);var KYf={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};sig({beforeVisit:function(y){if(Sj.has(y.type)){var W;(W=y.props).idomKey!=null||(W.idomKey=y.type)}else y.type.TAG_NAME&&(vQ=y.type.TAG_NAME)},
afterRender:function(y,W){var c;vQ=(c=W==null?void 0:W.type)!=null?c:""},
didPatch:function(){vQ=""}});var nl0;_.Bj={};nl0={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.Bj.YtRendererstamperBehavior=[_.CA.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 y in this.stampDom){var W=this.stampDom[y];W&&W.id&&this.addReactiveSchema({type:"observe",method:{methodName:uuO(W.id),args:[{type:"wildcard",path:y}]}})}else{(y=(this.constructor.generatedFrom||this).observers)||(y=[]);for(W in this.stampDom){var c=this.stampDom[W];c&&c.id&&y.push(uuO(c.id)+"("+W+".*)")}this.constructor.generatedFrom.observers=y}},
addStampDomObserverFns_:function(){for(var y in this.stampDom){var W=this.stampDom[y];W.id?(this[uuO(W.id)]=this.rendererStamperObserver_.bind(this,y,W.id),this.hasDataPath_[y]=!1):(W=new _.ul("Bad rendererstamper config",this.is+":"+y),_.OP(W))}},
rendererStamperObserver_:function(y,W,c){if(c.path==y){if(c.value===void 0&&!this.hasDataPath_[y])return;this.hasDataPath_[y]=c.value!==void 0}this.rendererStamperApplyChangeRecord_(y,W,c)},
rendererStamperApplyChangeRecord_:function(y,W,c){var Z=this.renderJobsMap_[W],G=null;y==c.path?(c=c.value,_.TO(c)||(c=c===void 0||c===null?[]:[c]),y=this.stampDom[y],y.mapping&&(G=this.stampDomArray_.bind(this,c,W,y.mapping,y.reuseComponents,y.events,y.stamperStableList)),Z&&Z.cancel(),c=y.usePageScheduler?this.getTaskManager():void 0,Z||y.initialRenderPriority==void 0)?y.renderPriority==void 0||Z||(Z=new _.At(y.renderPriority,y.waitForSignal,c),this.renderJobsMap_[W]=Z):(Z=new _.At(y.initialRenderPriority,
y.waitForSignal,c),this.renderJobsMap_[W]=Z,G=function(D,Y){D();tk0(Y,10)}.bind(this,G,Z)):G=y+".splices"==c.path?this.stampDomArraySplices_.bind(this,y,W,c.value):this.forwardRendererStamperChanges_.bind(this,y,W,c);
Z?_.ht(Z,G):G()},
forwardRendererStamperChanges_:function(y,W,c){var Z=c.path.slice(y.length+1),G=this.getStampContainer_(W),D=Z.indexOf("."),Y=Z.substring(0,D),u=!1,t=0,b=parseInt(Y,0);if(Y[0]=="#"){u=parseInt(Y.substring(1),0);b=this.get(y);var r=this.get([y,Y]);b[u]==r?t=u:t=b.indexOf(r);u=!0}else isNaN(b)||(t=b,u=!0);u&&(Z=Z.substring(Y.length+1),D=Z.indexOf("."));Y=_.UL(G).children[t];var F;if(G=(F=Y==null?void 0:Y.polymerController)!=null?F:Y)Z="data"+Z.slice(D),typeof G.notifyPath!=="function"?_.Rs(new _.ul("notifyPath missing",
this.is+": "+y+", "+W)):c.value?G.notifyPath(Z,c.value):G.notifyPath(Z)},
stampDomArraySplices_:function(y,W,c){if(c&&c.indexSplices){var Z=this.getStampContainer_(W);if(Z){for(var G=_.UL(Z),D=ntF(this.stampDom[y].reuseComponents),Y=c.indexSplices.length,u=0;u<Y;u++){for(var t=c.indexSplices[u],b=G.children[t.index],r=t.removed.length;r>0;r--)b&&b.parentElement&&(_.UL(b.parentElement).removeChild(b),D&&b5a(b),b=G.children[t.index]);r=this.stampDom[y].mapping;for(var F=t.index+t.addedCount,K=document.createDocumentFragment(),l=D,N=t.index;N<F;N++){var P=t.object[N],V=srF(r,
P);if(V){var Q=r[V];P=P[V];V=this.getComponentName_(Q,P);var S=b?Sl.has(b):!1;l&&b&&b.is==V&&S?(V=b,this.telemetry_.reuse++,b=b.nextElementSibling):l&&b&&S?(V=this.createComponent_(Q,P,D),S=_.UL(b).nextElementSibling,G.insertBefore(V,S),FYI(this.is,G,b,D),b=S):(l=!1,V=this.createComponent_(Q,P,D),K.appendChild(V));this.deferRenderStamperBinding_(V,Q,P)}else Q=new _.ul("Unimplemented type",y,W,Z.tagName,Object.keys(P)[0]),_.OP(Q)}G.insertBefore(K,b)}this.flushRenderStamperComponentBindings_();this.stampDom[y].events&&
_.Z2(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else y=new _.ul("Container object not found",W,this.hostElement?this.hostElement.is:""),_.OP(y)}},
stampDomArray_:function(y,W,c,Z,G,D){var Y=this.getStampContainer_(W);if(Y)if(W=_.UL(Y),Z=ntF(Z),y){var u=0,t=0,b;if(D=D===void 0?_.I8("STAMPER_STABLE_LIST",!1):D||!1)for(b=W.firstElementChild;b&&!Sl.has(b)&&y.length>t;){D=y[t];var r=srF(c,D);if(r){if(this.getComponentName_(c[r],D[r])!=b.is){var F=this.createComponent_(c[r],D[r],Z),K=_.UL(b).nextElementSibling;K?W.insertBefore(F,K):W.appendChild(F);FYI(this.is,W,b,Z);b=F}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(b,c[r],D[r]);u++;
t++;b=_.UL(b).nextElementSibling}else t++}U_f(this.is,W,u,Z);u=b;if(y.length>t){D=document.createDocumentFragment();for(r=y.length;t<r;t++)if(F=y[t],K=srF(c,F))b=this.createComponent_(c[K],F[K],Z),this.deferRenderStamperBinding_(b,c[K],F[K]),D.appendChild(b);u&&_.UL(u).parentNode&&b&&!Sl.has(b)?W.insertBefore(D,u):W.appendChild(D)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();G&&_.Z2(this.hostElement,"yt-rendererstamper-finished",{container:Y})}else U_f(this.is,W,0,
Z);else y=new _.ul("Container object not found",W,this.hostElement?this.hostElement.is:""),_.OP(y)},
getStampContainer_:function(y){return this.$&&this.$[y]||_.p(this.hostElement).querySelector("#"+y)},
getComponentName_:function(y,W){return typeof y==="string"?y:y.matcher?y.matcher.call(this,W):y.component},
createComponent_:function(y,W,c){y=this.getComponentName_(y,W);try{var Z=Ts.has(y)||Sj.has(y);if(c&&!Z){var G=_.QN(y);try{_.wM(G)}catch(D){c="Failed to clear styles for "+y+".",D.message&&(c+=" Original error: "+D.message),_.Rs(new _.ul(c))}}else G=document.createElement(y)}catch(D){return G="YtRendererStamperBehavior failed to create "+y+".",D.message&&(G+=" Original description: "+D.message),D.message="YtRendererStamperBehavior failed to create element",_.NF(D,G),nl0.hasOwnProperty(y)?_.Rs(D):_.OP(D),
document.createElement("SPAN")}this.telemetry_.create++;return G},
deferRenderStamperBinding_:function(y,W,c){this.deferredBindingTasks_.push({component:y,typeOrConfig:W,data:c})},
flushRenderStamperComponentBindings_:function(){for(var y=0,W=this.deferredBindingTasks_.length;y<W;y++){var c=this.deferredBindingTasks_[y];if(!c)break;var Z=void 0,G=void 0,D=void 0,Y=void 0,u=c.component,t=c.typeOrConfig;c=c.data;var b=(Y=u.polymerController)!=null?Y:u;Y=u.loggingStatus;try{Y&&(Y.isRendererStamper=!0);if(typeof t!=="string"){for(D in t.attributes)t.attributes[D]===!0?u.setAttribute(D,""):t.attributes[D]===!1?u.removeAttribute(D):u.setAttribute(D,t.attributes[D]);for(G in t.params)b[G]=
t.params[G],u!==b&&DV(u.localName,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(Z in t.properties){var r=t.properties[Z];if(r){var F=tJE(r);b[Z]=this.get(F);u!==b&&DV(u.localName,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(Z==="on-tap"||Z==="on-click"){var K=this.get(F);u.addEventListener("click",K);XYh.set(u,{property:Z,listener:{type:"element",eventName:"click",handler:K}})}}else{var l=new _.ul("Undefined property binding",Z);_.OP(l)}}}if(t.classListBinding){var N=tJE(t.classListBinding),
P=N?this[N]:null;if(P)for(Z=0;Z<P.length;Z++)_.i0(u,P[Z],!0)}b.data=c}finally{Y&&(Y.isRendererStamper=!1)}if(Z=Sl.get(u))u.hidden=!1,Sl.delete(u),_.KX.cancelJob(Z)}this.deferredBindingTasks_.length=0}}];_.Hj={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(y){for(var W=_.Q8.getInstance(),c=_.z(Object.keys(y)),Z=c.next();!Z.done;Z=c.next()){var G=Z.value;Z=y[G];if(this&&this[Z]){var D=W.actionRoutingMap.get(G);D||(D=new Map,W.actionRoutingMap.set(G,D));W.registerActionHandler(this,G,this[Z].bind(this),D)}else G=Error("id"),G.params=Z,_.pj(G)}},
unregisterActionMap:function(y){_.hc(_.Q8.getInstance(),y,this)}}]};var x0=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 a9;var is=new Map;var Qrh=window.matchMedia("(forced-colors: active)").matches;var XZE;var b9W;var H5f=new _.Sm("LOTTIE_LOADER_TOKEN");_.eu(LYF);_.A3(_.Ax(function(y){return _.X("ytd-lottie-player",{id:y.id,hidden:y.hidden,class:y.className,"aria-label":y.ariaLabel,style:"display: block;"},_.X(_.el,{data:y.data,animationName:function(){var W;return((W=y.data().animationConfig)==null?void 0:W.name)||""},
animationRef:function(){return y.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.Ix,
id:_.Ix,hidden:_.Ix,className:_.Ix,ariaLabel:_.Ix}});var rrJ=function(){var y=_.v.apply(this,arguments)||this;y.animationRef={};return y};
_.R(rrJ,_.v);_.f=rrJ.prototype;
_.f.handlePropertyChange=function(){var y=this.animatedIcon,W=this.active,c=this.isDarkTheme;if(y){var Z=this.previousActive!==W;this.previousActive=W;this.animationRef.lottieEl?Z&&this.toggleAnimation(W,y.totalFrames):W?this.initializeAnimationAsToggled(y.lottiePlayerProps,y.totalFrames):this.initializeAnimationAsUntoggled(y.lottiePlayerProps);y.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=y.type;this.lottiePlayerProps=this.computeLottiePlayerProps(y,c)}};
_.f.computeLottiePlayerProps=function(y,W){var c=this.deepCloneLottiePlayerProps(y);W?(W=y.nameDarkTheme,y=y.pathDarkTheme):(W=y.name,y=y.path);c.animationConfig.name=W;(W=is.get(y))?c.animationConfig.animationData=W:c.animationConfig.path=y;return c};
_.f.initializeAnimationAsToggled=function(y,W){y.animationConfig.initialSegment=[W-1,W]};
_.f.initializeAnimationAsUntoggled=function(y){y.animationConfig.initialSegment=void 0};
_.f.toggleAnimation=function(y,W){if(y){var c;(c=this.animationRef.lottieEl)==null||c.playSegments([0,W],!0)}else{var Z;(Z=this.animationRef.lottieEl)==null||Z.playSegments([0,1],!0)}};
_.f.deepCloneLottiePlayerProps=function(y){var W=Object.assign({},y.lottiePlayerProps.animationConfig);y=Object.assign({},y.lottiePlayerProps);y.animationConfig=W;return y};
var LA=rrJ;LA.prototype.handlePropertyChange=LA.prototype.handlePropertyChange;_.x([_.L(),_.e("design:type",Object)],LA.prototype,"animatedIcon",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],LA.prototype,"active",void 0);_.x([_.L(),_.e("design:type",Boolean)],LA.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],LA.prototype,"animatedIconType",void 0);_.x([_.L(),_.e("design:type",Boolean)],LA.prototype,"previousActive",void 0);
_.x([_.L(),_.e("design:type",Object)],LA.prototype,"lottiePlayerProps",void 0);_.x([_.L(),_.e("design:type",Object)],LA.prototype,"animationRef",void 0);_.x([_.H("animatedIcon","active","isDarkTheme"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],LA.prototype,"handlePropertyChange",null);LA=_.x([_.n6({is:"yt-animated-icon",disableElementRegistration:!0})],LA);
_.T(LA,"yt-animated-icon",function(){if(b9W===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;XZE===void 0&&(XZE=document.createElement("template"));var Z=XZE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);b9W=y}y=b9W;return y},{mode:2});var FR3;var UdV;var SIy=_.Ax(function(y){var W=_.LD(),c=UE(function(){return{value:null}});
_.KL(function(){var t;(t=c.value)==null||t.cancel()});
var Z=_.Yk(function(){return y.data().iconName},void 0,"dGBPh"),G=_.Yk(function(){return y.data().iconStyle},void 0,"ipXHMb"),D=_.Yk(function(){return y.data().iconSize},void 0,"oPwZue"),Y=_.Yk(function(){return y.data().iconSelected},void 0,"fKE56d"),u=_.Yk(function(){return y.data().iconSetName},void 0,"yCb9md");
_.$k(function(){var t={iconName:Z(),iconStyle:G(),iconSize:D(),iconSelected:Y(),iconSetName:u()},b,r=(b=y.options)==null?void 0:b.call(y),F;b=(F=y.iconManager)==null?void 0:F.call(y);d_t(W,c,t,r,b)});
return _.X("span",{class:"yt-icon-shape",el:W})},"i");
SIy.idomCompat=!0;var dpw=["youtube_fill","youtube_outline"];var $dW=new _.rt({type:"iconset",value:void 0}),KRV=function(){var y=_.v.apply(this,arguments)||this;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.iconName="";y.iconsetName="yt-icons";y.iconset=null;y.missingIconSet=!1;y.iconType=null;y.iconShapeDataSignal=_.G9(void 0,void 0,"RQ9kUb");y.renderingOptionsSignal=_.G9({iconWidth:"100%",iconHeight:"100%",iconFilter:y.iconFilter},void 0,"qtx8Ef");y.wizHasRendered=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(KRV,_.v);_.f=KRV.prototype;_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y)};
_.f.handlePropertyChange=function(){var y=this,W,c,Z,G,D,Y,u,t,b,r,F;return _.m(function(K){switch(K.nextAddress){case 1:if(W=!y.icon&&!y.iconName||!y.isAttached)return K.return();c=y;Z=c.icon;G=c.size;D=c.defaultToFilled;Y=c.active;u=c.targetContainer;y.toggleContainerClass(u);_.O("kevlar_use_wil_icons")&&Z&&(t=nlH(Z),t.length?_.O("kevlar_icon_type_fix_killswitch")?(b=t[1].toUpperCase(),y.iconType=hFT[b],y.iconType||(y.iconType=t[1])):y.iconType=t[1]:y.iconType=null);if(Z){K.jumpTo(2);break}y.iconsetName=
"";y.iconName="";return _.n(K,y.renderIcon(u,Z),3);case 3:return K.return();case 2:r=y.computeIcon(Z);F=nlH(r);F.length&&(y.iconsetName=F[0],y.iconName=F[1]);if(!_.O("kevlar_use_wil_icons")){K.jumpTo(4);break}return _.n(K,y.getIconShapeData(),5);case 5:y.iconShapeData=K.yieldResult;case 4:if(y.shouldRenderIconShape(u)){K.jumpTo(6);break}return _.n(K,y.determineIconSet(r,Y,D,G,u),6);case 6:return _.n(K,y.renderIcon(u,Z),0)}})};
_.f.toggleContainerClass=function(y){y?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.f.computeIcon=function(y){return!_.O("default_to_innertube_icon")||y.indexOf(":")>0?y:_.wp(y)};
_.f.determineIconSet=function(y,W,c,Z){var G=this;return _.m(function(D){return D.nextAddress==1?_.O("kevlar_system_icons")||_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.n(D,G.switchToYtSysIconset(y,W,c,Z),3):D.jumpTo(2):D.nextAddress!=2?D.return():_.n(D,G.useYtSysIconsetForMissingIcons(y,W,c,Z),0)})};
_.f.switchToYtSysIconset=function(y,W,c,Z){var G=this,D,Y,u,t,b,r,F;return _.m(function(K){switch(K.nextAddress){case 1:if(!y||G.iconsetName!=="yt-icons"&&G.iconsetName!=="yt-sys-icons"){K.jumpTo(0);break}D=nlH(y);Y=D[1];Y=_.Rbf(Y);_.O("enable_polymer_icons_replace_underscores_dash")&&Y.includes("_filled")&&(Y=Y.replace(/_filled/g,"-filled"));return _.n(K,ej(Y,!0),3);case 3:return u=K.yieldResult,_.n(K,ej(Y,!1),4);case 4:if((t=K.yieldResult)||W&&u)G.iconsetName="yt-sys-icons";G.iconName=G.getIconName(Y,
W,c,t,u);if(Z===24){K.jumpTo(0);break}b="yt-sys-icons"+Z+":"+G.iconName;return _.n(K,ej(b,!1,!0),6);case 6:return r=K.yieldResult,_.n(K,ej(b,!0,!0),7);case 7:F=K.yieldResult;G.iconName=G.getIconName(Y,W,c,r,F);if(!W&&r||W&&F)G.iconsetName="yt-sys-icons"+Z;_.F2(K)}})};
_.f.getIconName=function(y,W,c,Z,G){y.includes("-filled")&&(y=y.replace("-filled",""));return G&&(W||c)?y+"-filled":y};
_.f.useYtSysIconsetForMissingIcons=function(y,W,c,Z){var G=this,D,Y;return _.m(function(u){if(u.nextAddress==1)return G.iconsetName!=="yt-icons"?u.jumpTo(0):_.n(u,ej(G.iconName,!1,!1,!0),3);if(u.nextAddress!=4)return D=u.yieldResult,_.n(u,ej(G.iconName,!1),4);Y=u.yieldResult;if(D||!Y)return u.jumpTo(0);G.iconsetName="yt-sys-icons";return _.n(u,G.switchToYtSysIconset(y,W,c,Z),0)})};
_.f.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.f.getIconManager=function(){return _.m(function(y){try{return y.return(_.U().resolve(_.qM))}catch(W){return y.return(new Promise(function(c){_.It().parkOrScheduleJob(function(){c(_.U().resolve(_.qM))},2,"ci")}))}})};
_.f.getIconShapeData=function(){var y=this,W,c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1){if(!y.iconType)return u.return(void 0);W=y.iconType.toLowerCase();c=W.endsWith("_filled")||W.endsWith("-filled");return _.n(u,y.getIconManager(),2)}Z=u.yieldResult;G=y.active||y.defaultToFilled||c?"youtube_fill":"youtube_outline";D={iconName:W,iconStyle:G,iconSize:y.size,iconSetName:y.iconsetName};Y=!!Z.resolveIcon(D);Y||(D.iconSize=void 0,Y=!!Z.resolveIcon(D));!Y&&c&&(D.iconName=W.substring(0,W.length-
7),D.iconSize=y.size,Y=!!Z.resolveIcon(D),Y||(D.iconSize=void 0,Y=!!Z.resolveIcon(D)));Y||(D.iconStyle=void 0,Y=!!Z.resolveIcon(D));Y||_.Rs(new _.ul("Icon not supported",{iconName:D.iconName,iconStyle:D.iconStyle,iconSize:D.iconSize,iconType:W}));return u.return(Y?D:void 0)})};
_.f.shouldRenderIconShape=function(y){if(!_.O("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;y=this.getContainer(y);return!A0w(y,this.icon)};
_.f.renderIcon=function(y,W){var c=this,Z,G,D,Y,u,t,b,r;return _.m(function(F){switch(F.nextAddress){case 1:if(W&&c.icon!==W)return F.return();Z=c.getContainer(y);G=A0w(Z,c.icon);if(c.shouldRenderIconShape(y)&&c.iconType)return c.applyIconShape(G,Z),F.return();c.removeIconShape();if(!Z)return F.return();c.iconName===""&&c.iconset&&Z&&(c.removeStaticIcon(c.iconset,Z),G&&c.removeAnimatedIcon(Z));if(c.iconName===""&&c.iconset||!c.iconsetName||!$dW)return F.return();c.iconset=$dW.byKey(c.iconsetName);
if(!c.iconset)return c.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.qO(c,c.onIconsetAdded)),F.return();c.missingIconSet&&(c.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.qO(c,c.onIconsetAdded)));Y=(D=G||c.isAnimatedIcon?CJH(c.icon):void 0)&&!D.lazyLoad;t=D&&((u=D)==null?void 0:u.lazyLoad)&&(D.lottiePlayerProps.animationConfig.animationData?!0:is.get(c.isDarkTheme?D.pathDarkTheme:D.path)?!0:!1);if(Y||t)return c.applyAnimatedIcon(Z,D,c.iconset),F.return();if(t||
(b=D)==null||!b.lazyLoad){F.jumpTo(2);break}r=BAI(D,c.isDarkTheme);c.applyStaticIcon(c.iconset,Z,c.iconName,y,G);return _.n(F,r,3);case 3:return _.n(F,c.renderIcon(c.targetContainer,c.icon),4);case 4:return F.return();case 2:c.applyStaticIcon(c.iconset,Z,c.iconName,y,G),_.F2(F)}})};
_.f.getContainer=function(y){var W,c=(W=yaw(this.hostElement))==null?void 0:W.host;W=!!c&&!!c.polymerController;if(!y||W)return y?this.getTargetContainer(y,c):this.hostElement};
_.f.getTargetContainer=function(y,W){var c=_.p(W).querySelector("#"+y);c||(y=new _.ul("yt-icon container missing",W.is,y),_.OP(y));return c};
_.f.applyStaticIcon=function(y,W,c,Z,G){G&&this.removeAnimatedIcon(W);this.removeIconShape();G=G&&!!this.iconType&&!!this.iconShapeData&&_.O("kevlar_use_wil_icons");try{G?this.applyIconShape(!1,W):y.applyIcon(W,c)}catch(D){this.handleError(D,Z,W)}};
_.f.applyIconShape=function(y,W){this.iconset&&W&&(this.removeStaticIcon(this.iconset,W),y&&this.removeAnimatedIcon(W));y={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var c=_.z(this.iconShapeDataSignal);W=c.next().value;c=c.next().value;var Z=_.z(this.renderingOptionsSignal),G=Z.next().value;Z=Z.next().value;c(this.iconShapeData);Z(y);if(!this.wizHasRendered)for(this.wizHasRendered=!0,y=_.z(TAH(W,G)).next().value;y.firstChild;)_.p(this.hostElement).appendChild(y.firstChild)};
_.f.removeIconShape=function(){if(_.O("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.f.removeStaticIcon=function(y,W){y.removeIcon(W)};
_.f.applyAnimatedIcon=function(y,W,c){this.removeStaticIcon(c,y);this.removeIconShape();var Z;c=this.animatedIconElement&&((Z=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Z.type)===W.type;if(this.animatedIconElement&&c){this.animatedIconElement.polymerController.animatedIcon=W;var G;((G=this.animatedIconElement)==null?void 0:G.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(y),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=W,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.O("kevlar_use_wil_icons")?y.insertBefore(this.animatedIconElement,y.childNodes[0]):(y=_.p(y),y.insertBefore(this.animatedIconElement,y.childNodes[0]))};
_.f.removeAnimatedIcon=function(y){_.O("kevlar_use_wil_icons")?this.animatedIconElement&&y.contains(this.animatedIconElement)&&y.removeChild(this.animatedIconElement):(y=_.p(y),this.animatedIconElement&&y.contains(this.animatedIconElement)&&y.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.f.handleError=function(y,W,c){_.NF(y,this.iconName,W,c);W=A0w(c,this.icon);var Z=!1;window.location.href.includes("JpymaW6Lh2w")?Z=!0:c._svgIcon&&(c=(c=c._svgIcon.parentNode)?c.tagName:"unknown",_.NF(y,c),c==="YT-ICON"&&y.name==="NotFoundError"?Z=!0:y.name==="NotFoundError"&&W&&(Z=!0));Z?_.Rs(y):_.OP(y)};
_.dJ.Object.defineProperties(KRV,{template:{configurable:!0,enumerable:!0,get:function(){if(UdV===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;
FR3===void 0&&(FR3=document.createElement("template"));var Z=FR3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);UdV=y}y=UdV;return y}}});
var vj=KRV;vj.prototype.handlePropertyChange=vj.prototype.handlePropertyChange;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],vj.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",String)],vj.prototype,"icon",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],vj.prototype,"active",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],vj.prototype,"defaultToFilled",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],vj.prototype,"isAnimatedIcon",void 0);_.x([_.L({value:24}),_.e("design:type",Number)],vj.prototype,"size",void 0);_.x([_.L({value:""}),_.e("design:type",String)],vj.prototype,"targetContainer",void 0);_.x([_.L(),_.e("design:type",Object)],vj.prototype,"animatedIconElement",void 0);_.x([_.L(),_.e("design:type",Object)],vj.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],vj.prototype,"ariaHidden",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],vj.prototype,"ariaLabel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],vj.prototype,"role",void 0);_.x([_.L(),_.e("design:type",String)],vj.prototype,"style",void 0);_.x([_.L(),_.e("design:type",String)],vj.prototype,"iconFilter",void 0);
_.x([_.H("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],vj.prototype,"handlePropertyChange",null);vj=_.x([_.n6({is:"yt-icon",noInjection:!0})],vj);var O9T;var glm=function(){var y=document.body,W=y.appendChild;if(O9T===void 0){var c=document.createElement("template");_.E(c,'\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>');
O9T=c}c=O9T;W.call(y,c.content)};
document.body?glm():window.addEventListener("DOMContentLoaded",glm);var RbE,l6V=function(){return RbE!==void 0?RbE:RbE=document.createElement("template")};
document.head.appendChild(l6V().content);var El5,Nv0=function(){return El5!==void 0?El5:El5=document.createElement("template")};
document.head.appendChild(Nv0().content);var I6J;_.ml=new _.Sm("KEY_MANAGER_TOKEN");var ewa={duration:1E3,easing:"ease",fill:"forwards"};_.eu(MJ1);var pZZ=_.qi(_.k0);_.eu(_.k0);_.oL=_.Ax(function(y){var W=_.HO(y.ref),c=y.aTagConfig?y.aTagConfig:_.Yk(function(){var D,Y,u,t,b,r;var F=(r=_.UH((t=y.command)==null?void 0:t.call(y)))!=null?r:(b=y.command)==null?void 0:b.call(y);return _.KN({innertubeCommand:F,skipOnClick:(D=y.skipOnClick)==null?void 0:D.call(y),stopPropagation:(Y=y.dangerousStopPropagation)==null?void 0:Y.call(y),defaultTarget:(u=y.target)==null?void 0:u.call(y)})||{}},void 0,"gnrRge");
_.$k(function(){W.value._data=c()._data;W.value.params=c().params});
var Z=_.j9(function(D){var Y,u;return void((u=(Y=c()).onpointerdown)==null?void 0:u.call(Y,D))}),G=_.j9(function(D){var Y,u;
return void((u=(Y=c()).onclick)==null?void 0:u.call(Y,D))});
return _.X("a",{el:W,href:function(){return c().href$},
rel:function(){return c().rel$},
class:function(){var D,Y;return(Y=c().className)!=null?Y:(D=y.className)==null?void 0:D.call(y)},
style:function(){var D;if((D=y.style)==null?0:D.call(y))return y.style();var Y;return((Y=y.disabled)==null?0:Y.call(y))?"pointer-events:none":""},
"aria-haspopup":function(){return!!c()["aria-haspopup$"]},
"force-new-state":yf(function(){return c()["force-new-state$"]}),
title:yf(function(){var D,Y;return(Y=c().title$)!=null?Y:(D=y.title)==null?void 0:D.call(y)}),
role:yf(function(){return c().role$}),
target:yf(function(){return c().target$}),
dir:yf(function(){var D;return((D=y.dir)==null?0:D.call(y))?y.dir():c().dir}),
tabindex:function(){var D;return c().tabindex$?Number(c().tabindex$):(D=y.tabIndex)==null?void 0:D.call(y)},
"aria-hidden":function(){var D,Y;return(Y=c()["aria-hidden$"])!=null?Y:(D=y.ariaHidden)==null?void 0:D.call(y)},
"aria-label":function(){var D,Y;return(Y=c()["aria-label$"])!=null?Y:(D=y.ariaLabel)==null?void 0:D.call(y)},
"aria-current":y.ariaCurrent,"aria-labelledby":y.ariaLabelledby,"aria-describedby":y.ariaDescribedby,"aria-selected":y.ariaSelected,"tab-identifier":y.tabIdentifier,"on:pointerdown":Z,"on:click":G},y.children)},"j");var PbV=function(y,W){this.fillAnimation=new Animation(wYy(y),document.timeline);this.strokeAnimation=new Animation(qID(W),document.timeline)};
PbV.prototype.play=function(){var y,W;(W=(y=this.fillAnimation).play)==null||W.call(y);var c,Z;(Z=(c=this.strokeAnimation).play)==null||Z.call(c)};
PbV.prototype.cancel=function(){var y,W;(W=(y=this.fillAnimation).cancel)==null||W.call(y);var c,Z;(Z=(c=this.strokeAnimation).cancel)==null||Z.call(c)};_.zb=_.Ax(function(y){var W=y.model;var c=y.pointerDownEvent;var Z=y.pointerUpEvent;var G=y.pointerLeaveEvent;y=_.HO();var D=_.cF({"border-radius":function(){return W().borderRadius}}),Y=_.HO(),u=_.HO(),t=_.z(_.WF(function(){return(Z==null?0:Z())||(G==null?0:G())?!1:!(c==null||!c())||!1})),b=t.next().value,r=t.next().value,F=void 0,K=function(){!F&&u.value&&Y.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(F=new PbV(u.value,Y.value));
var Q;(Q=F)==null||Q.play()},l=function(){var Q;
(Q=F)==null||Q.cancel()},N=function(){var Q;
(Q=F)==null||Q.cancel()};
_.$k(function(){(Z==null?0:Z())&&K()});
_.$k(function(){(c==null?0:c())&&l()});
_.$k(function(){(G==null?0:G())&&N()});
t=_.j9(function(){K();r(!1)});
var P=_.j9(function(){l();r(!0)});
_.vO(y,"pointerleave",function(){N();r(!1)});
_.KL(function(){if(F){var Q;(Q=F)==null||Q.cancel();F=void 0}});
var V={};b=_.Mi("yt-spec-touch-feedback-shape",function(){return jFt(W().color)},(V["yt-spec-touch-feedback-shape--focused"]=function(){return!!W().focused&&!W().disabled},V["yt-spec-touch-feedback-shape--circular"]=function(){return!!W().circular},V["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!W().isExtended},V["yt-spec-touch-feedback-shape--down"]=b,V["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!W().triggerEvents},V));
return _.X("yt-touch-feedback-shape",{style:_.cF({"border-radius":"inherit"})},_.X("div",{el:y,class:b,style:_.cF({"margin-top":function(){return W().customTopExtend?"-"+W().customTopExtend+"px":void 0}}),
"on:mousedown":P,"on:mouseup":t,"on:touchstart":P,"on:touchend":t,"aria-hidden":!0},_.X("div",{class:"yt-spec-touch-feedback-shape__stroke",style:D,el:Y}),_.X("div",{class:"yt-spec-touch-feedback-shape__fill",style:D,el:u})))},"k");
_.zb.idomCompat=!0;var JrZ={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 dU=_.UD();dU=dU.toLowerCase();if(_.Xh(dU,"android")){var VkZ=dU.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);VkZ&&parseFloat(VkZ[1])<100||dU.match("("+Object.keys(JrZ).join("|")+")")};var Cb8=_.Ax(function(y){return _.X(_.YN,{cond:y.aTagConfig,then:function(W){return _.X(_.oL,{aTagConfig:W,disabled:y.disabled,className:y.className,style:y.style,title:y.title,ariaLabel:y.ariaLabel,ariaCurrent:function(){var c,Z;return((c=y.toggleable)==null?void 0:c.call(y))&&((Z=y.toggled)==null?void 0:Z.call(y))}},y.children)},
else:function(){return _.X("button",{"on:click":_.j9(function(W){var c;return(c=y.onClick)==null?void 0:c.call(y,W)}),
class:y.className,title:y.title,style:y.style,disabled:y.disabled,"aria-pressed":function(){var W,c;return((W=y.toggleable)==null?0:W.call(y))?!((c=y.toggled)==null||!c.call(y)):void 0},
"aria-label":y.ariaLabel,"aria-disabled":y.visiblyDisabled,"aria-hidden":y.ariaHidden,tabindex:y.tabIndex},y.children)}})},"l"),Ari=_.Ax(function(y){var W=y.data;
var c=y.hasIconLeading;var Z=y.hasIconLeadingTrailing;var G=y.hasIconTrailing;var D=y.iconButton;var Y=y.iconClassName;var u=y.secondaryIconClassName;var t=y.icon;var b=y.secondaryIcon;var r=y.textContentClassName;return _.X(S_,{className:"",style:"display: inherit; justify-content: center"},_.X(_.YN,{cond:function(){return t&&(c()||Z()||(D==null?void 0:D()))},
then:function(){return _.X(S_,null,_.X("div",{class:Y,"aria-hidden":"true"},t==null?void 0:t()))}}),_.X(_.YN,{cond:function(){return(W().buttonText||W().animatedTextProps||W().formattedButtonText)&&!(D==null?0:D())},
then:function(){return _.X(S_,null,_.X(QuT,{className:r,iconPosition:function(){return W().iconPosition},
text:function(){return W().buttonText},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}))}}),_.X(_.YN,{cond:G,
then:function(){return _.X(S_,null,_.X("div",{class:Y},t==null?void 0:t()))}}),_.X(_.YN,{cond:Z,
then:function(){return _.X(S_,null,_.X("div",{class:u},b==null?void 0:b()))}}),_.X(_.YN,{cond:function(){return!W().disabled&&!0},
then:function(){return _.X(_.zb,{model:function(){return{color:ZVH(W())}}})}}))},"m"),QuT=_.Ax(function(y){var W=function(){var c,Z;
return((c=y.iconPosition)==null?void 0:c.call(y))==="icon-with-label"||((Z=y.oneOffCustomTextWrap)==null?void 0:Z.call(y))};
return _.X("div",{class:y.className,"aria-hidden":function(){var c,Z,G;return((c=y.ariaHidden)==null?void 0:c.call(y))&&(!((Z=y.animatedTextProps)==null||!Z.call(y))||!((G=y.formattedButtonText)==null||!G.call(y)))}},_.X(_.u1,null,_.X(_.sE,{when:function(){var c;
return(c=y.animatedTextProps)==null?void 0:c.call(y)}},function(){return _.X(pZZ,{numberText:function(){return y.animatedTextProps().numberText},
numberValue:function(){return y.animatedTextProps().numberValue},
heightPx:function(){return y.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return y.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return y.animatedTextProps().shouldAnimate},
forceRollUp:function(){return y.animatedTextProps().forceRollUp}})}),_.X(_.sE,{when:function(){var c;
return(c=y.formattedButtonText)==null?void 0:c.call(y)}},function(){return _.X(_.Da,{text:function(){return Object.assign({},y.formattedButtonText(),{lineBreakMode:W()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":y.formattedButtonText().lineBreakMode,
alignment:W()?"TEXT_ALIGNMENT_CENTER":y.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!W()}})}),_.X(_.L4y,null,function(){return y.text})))},"n"),hbT=_.Ax(function(y){return _.X(_.YN,{cond:y.hasLabel,
then:function(){var W;return _.X("label",{class:y.className},y.children,(W=y.textContent)==null?void 0:W.call(y))},
else:function(){return y.children}})},"o"),S_=_.Ax(function(y){return y.children},"p");var oDO=iC("stamper-context");_.eu(tgh);var M8=_.Ax(function(y){var W=y.data;var c=y.icon;var Z=y.iconName;var G=y.secondaryIcon;var D=y.secondaryIconName;var Y=y.focusedOverride;oJI();var u=y$w(W),t=u.size,b=u.style;y=u.disabled;var r=u.onTap,F=u.alignByText,K=u.aTagConfig,l=u.customColors,N=u.segmentedPosition,P=u.toggled,V=u.toggleable,Q=u.accessibilityLabel,S=u.onToggle,cy=u.iconPosition,M=u.oneOffCustomTextWrap,fa=u.disableTextEllipsis,jI=u.tooltipText,sD=u.ariaHidden,ED=u.tabIndex,N1=u.buttonText,bf=u.formattedButtonText,Py=u.animatedTextProps,
WJ=c$a(W,c,G,Z,D,Y),t5=WJ.type;c=WJ.shouldFocus;Z=WJ.hasIconLeading;G=WJ.hasIconTrailing;D=WJ.hasIconLeadingTrailing;var xF=WJ.hasIconOnly;Y=WJ.hasIconOnly40;var M3=WJ.hasIconWithLabel;u=WJ.iconButton;var wS=WJ.visiblyDisabled,f8=WJ.overrideSmallSizeIcon,eV=WJ.iconToRender;WJ=WJ.secondaryIconToRender;var N3={},K8={};return _.X(hbT,{className:_.Mi("yt-spec-button-shape-with-label",(N3["yt-spec-button-shape-with-label--is-overlay"]=function(){return b()==="overlay"||b()==="overlay-dark"},N3)),
hasLabel:M3,textContent:function(){return _.X(QuT,{text:N1,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:M,iconPosition:cy,formattedButtonText:bf,animatedTextProps:Py})}},_.X(Cb8,{aTagConfig:K,
className:_.Mi("yt-spec-button-shape-next",function(){return DS1(t5())},function(){return wS()?void 0:ziI(b())},function(){return YJO(t())},(K8["yt-spec-button-shape-next--disabled"]=wS,K8["yt-spec-button-shape-next--focused"]=c,K8["yt-spec-button-shape-next--icon-trailing"]=G,K8["yt-spec-button-shape-next--icon-leading"]=Z,K8["yt-spec-button-shape-next--icon-leading-trailing"]=D,K8["yt-spec-button-shape-next--icon-button"]=function(){return xF()||M3()},K8["yt-spec-button-shape-next--icon-only-default"]=
Y,K8["yt-spec-button-shape-next--align-by-text"]=F,K8["yt-spec-button-shape-next--segmented-start"]=function(){return N()==="start"},K8["yt-spec-button-shape-next--segmented-end"]=function(){return N()==="end"},K8["yt-spec-button-shape-next--override-small-size-icon"]=f8,K8["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=M,K8["yt-spec-button-shape-next--disable-text-ellipsis"]=fa,K8["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=GcI(),K8)),
style:function(){return mS1(l()).style},
onClick:function(PJ){r==null||r(PJ);V()&&(S==null||S(PJ))},
disabled:y,ariaLabel:Q,toggleable:V,toggled:P,title:function(){var PJ;return(PJ=jI())!=null?PJ:""},
visiblyDisabled:wS,ariaHidden:sD,tabIndex:ED},_.X(Ari,{data:W,hasIconLeading:Z,hasIconLeadingTrailing:D,hasIconTrailing:G,iconButton:u,icon:eV,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:WJ})))},"q");
M8.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var Bv8=_.Ax(function(y){var W=y.data;var c=y.id;var Z=y.hidden;var G=y.disableUpgrade;var D=y.className;var Y=y.icon;var u=y.secondaryIcon;var t=y.iconName;var b=y.secondaryIconName;y=_.z(_.G9(!1,void 0,"O7k8w"));var r=y.next().value,F=y.next().value,K=function(){var N=_.U().resolve(_.xN(_.ml));N&&F(N.isKeyBoardInUse())},l=function(){F(!1)};
y=_.HO(function(N){if((G==null||!G())&&_.U().resolve(_.xN(_.ml)))return N.addEventListener("focusin",K),N.addEventListener("focusout",l),function(){N.removeEventListener("focusin",K);N.removeEventListener("focusout",l)}});
return _.X("yt-button-shape",{el:y,id:c,class:D,hidden:function(){return(Z==null?void 0:Z())||(G==null?void 0:G())}},_.X(_.YN,{cond:function(){return!(G==null?0:G())},
then:function(){return _.X(M8,{data:W,icon:Y,secondaryIcon:u,iconName:t,secondaryIconName:b,focusedOverride:r})}}))},"r");
_.O("web_wiz_button_shape")&&_.A3(Bv8,"yt-button-shape",{props:{data:_.Ix,id:_.Ix,hidden:_.Ix,disableUpgrade:_.Ix,className:_.Ix,icon:_.QE,secondaryIcon:_.QE,iconName:_.Ix,secondaryIconName:_.Ix},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var TI=function(){var y=_.v.apply(this,arguments)||this;y.keyboardFocused=!1;return y};
_.R(TI,_.v);TI.prototype.onFocus=function(){var y=_.U().resolve(_.xN(_.ml));y&&(this.keyboardFocused=y.isKeyBoardInUse())};
TI.prototype.onBlur=function(){this.keyboardFocused=!1};
TI.prototype.renderIdom=function(){var y=this;if(this.data){var W=nJH(this.data,!!this.iconName),c=XfE(this.data);this.data.focused=this.keyboardFocused;$SI(this.data,function(){var Z;t3("yt-icon",{icon:y.iconName,active:(Z=y.data)==null?void 0:Z.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:c},Al)},function(){var Z;
t3("yt-icon",{icon:y.secondaryIconName,active:(Z=y.data)==null?void 0:Z.toggled,size:W,style:"width: "+W+"px; height: "+W+"px;",iconFilter:c},Al)});
_.Z2(this.hostElement,"yt-renderidom-finished")}};
_.dJ.Object.defineProperties(TI,{template:{configurable:!0,enumerable:!0,get:function(){if(I6J===void 0){var y=document.createElement("template");_.E(y,"\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");
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(Nv0().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(l6V().content.cloneNode(!0),y.content.firstChild);I6J=y}y=I6J;return y}}});
var ax=TI;ax.prototype.onBlur=ax.prototype.onBlur;ax.prototype.onFocus=ax.prototype.onFocus;_.x([_.C(fA8),_.e("design:type",Object)],ax.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ax.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],ax.prototype,"iconName",void 0);_.x([_.L(),_.e("design:type",String)],ax.prototype,"secondaryIconName",void 0);_.x([_.L(),_.e("design:type",Object)],ax.prototype,"keyboardFocused",void 0);
_.x([_.B("focusin"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ax.prototype,"onFocus",null);_.x([_.B("focusout"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ax.prototype,"onBlur",null);ax=_.x([_.n6({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.O("web_wiz_button_shape")})],ax);_.A3(_.Ax(function(y){function W(){c().seconds&&D(jxE({seconds:Number(c().seconds)-Date.now()/1E3}))}
var c=y.targetTimestamp;y=y.className;var Z=_.z(_.G9("",void 0,"U1Q8Ae")),G=Z.next().value,D=Z.next().value;_.Xl(function(){W();var Y=setInterval(function(){W()},1E3);
_.KL(function(){clearInterval(Y)})});
return _.X("yt-countdown",{class:_.Mi("ytCountDownHost",y)},_.X("div",null,G))},"s"),"yt-countdown",{props:{targetTimestamp:_.Ix,
className:_.QE}});_.OV=_.Ax(function(y){var W=y.data;var c=y.className;var Z=y.style;var G=y.useOutlinedIcon;var D=y.buttonOverrides;var Y=y.animatedTextProps;var u=y.onClick;var t=_.HO(function(P){return function(){wBE(_.j_(),P)}}),b=function(){return W().iconName},r=function(){var P=W();
var V=D==null?void 0:D(),Q=Y==null?void 0:Y();if(P){var S=gJH(P.type);var cy=!!P.title||!!P.titleFormatted;var M=!(!P.iconName&&!P.iconImage);cy=M&&!cy?"icon-only":M?P.iconTrailing||P.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;cy==="icon-only-40"&&(S="text");var fa,jI=(fa=V==null?void 0:V.disabled)!=null?fa:P.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||P.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";fa=Object;M=fa.assign;var sD=P.title,ED=P.titleFormatted;Q=
Q&&Q.numberText&&!isNaN(Number(Q.numberValue))?Q:void 0;var N1=P.accessibilityText,bf=OVf(P.style),Py=RiI(P.state),WJ=lXg(P.buttonSize),t5=K3I(P,t,jI,u);jI=jI&&!P.onDisabledTap;var xF=_.KN({elementsCommand:P.onTap,forceNewState:!0});xF=Uew(xF)?xF:void 0;var M3=P.customFontColor;var wS=P.customBackgroundColor,f8=P.customBorderColor;M3={color:M3?_.KZ(M3):void 0,backgroundColor:wS?_.KZ(wS):void 0,borderColor:f8?_.KZ(f8):void 0};P=M.call(fa,{},{buttonText:sD,formattedButtonText:ED,animatedTextProps:Q,
accessibilityLabel:N1,style:bf,type:S,state:Py,size:WJ,iconPosition:cy,onTap:t5,disabled:jI,aTagConfig:xF,customColors:M3,tooltipText:P.tooltip},V)}else P={style:"mono",type:"text",state:"active",size:"M"};P.focused=N();return P},F=function(){return nJH(r(),!!W().iconName)};
y=_.z(_.G9(!1,void 0,"ioMAtf"));var K=y.next().value,l=y.next().value,N=K;y=_.j9(function(){var P=_.U().resolve(_.xN(_.ml));P&&l(P.isKeyBoardInUse());return!1});
K=_.j9(function(){l(!1);return!1});
_.$k(function(){var P,V=_.g(W==null?void 0:(P=W())==null?void 0:P.onVisible,_.Fx);V&&_.$0(V,{disableClickTracking:!0})});
_.rj(function(){t.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var P=W().targetId;P&&_.kVm(_.j_(),P,t.value)});
return _.X("button-view-model",{el:t,class:_.Mi("yt-spec-button-view-model",c),"on:focusin":y,"on:focusout":K},_.X(_.YN,{cond:function(){return W().iconImage?{sources:[W().iconImage]}:void 0},
then:function(P){return _.X(M8,{data:r,icon:function(){return _.X(_.J3,{data:P,alt:"",targetWidth:F,targetHeight:F,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.X(M8,{data:r,icon:function(){return _.X(_.Gb,{icon:b,active:function(){return(G==null?0:G())?!1:r().toggled},
animateIcon:function(){var P;return!!(Z==null?0:(P=Z())==null?0:P.animateIcon)},
size:F})}})}}))},"t");
_.OV.idomCompat={callbacks:{onClick:!0}};_.A3(_.Ax(function(y){return _.X("yt-button-view-model",{id:y.id,class:_.Mi(y.scopingClassName,y.classes),icon:function(){var W;return(W=y.icon)==null?void 0:W.call(y)},
"dialog-dismiss":function(){var W;return((W=y.dialogDismiss)==null?0:W.call(y))?"":void 0}},_.X(_.OV,{data:function(){var W;
return(W=y.data)==null?void 0:W.call(y)},
className:function(){var W;return(W=y.className)==null?void 0:W.call(y)},
style:function(){var W;return(W=y.style)==null?void 0:W.call(y)},
useOutlinedIcon:function(){var W;return(W=y.useOutlinedIcon)==null?void 0:W.call(y)},
buttonOverrides:function(){var W;return(W=y.buttonOverrides)==null?void 0:W.call(y)},
animatedTextProps:function(){var W;return(W=y.animatedTextProps)==null?void 0:W.call(y)},
onClick:function(W){var c;return(c=y.onClick)==null?void 0:c.call(y,W)}}))},"u"),"yt-button-view-model",{props:{data:_.Ix,
className:_.Ix,style:_.Ix,useOutlinedIcon:_.Ix,buttonOverrides:_.Ix,animatedTextProps:_.Ix,onClick:_.QE,scopingClassName:_.Ix,id:_.Ix,icon:_.Ix,dialogDismiss:_.Ix,classes:_.Ix}});var xS=function(){var y=_.v.apply(this,arguments)||this;y.isGoalActive=!0;return y};
_.R(xS,_.v);xS.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
xS.prototype.progressBarChanged=function(){var y=_.p(this.hostElement).querySelector("#progress-bar-progress"),W,c,Z,G=(Z=Number((W=this.creatorGoalState)==null?void 0:W.currentGoalCount)/Number((c=this.creatorGoalState)==null?void 0:c.totalGoalCount)*100)!=null?Z:0,D;y.style.width=((D=Math.min(G,100))!=null?D:0)+"%"};
xS.prototype.goalStateChanged=function(){var y;this.isGoalActive=((y=this.creatorGoalState)==null?void 0:y.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var W;y={"--yt-progress-bar-color":SFH((W=this.creatorGoalState)==null?void 0:W.progressBarColor)};_.wM(this.hostElement,y)};
xS.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.dJ.Object.defineProperties(xS.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var y;return this.isGoalActive&&!((y=this.creatorGoalState)==null||!y.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.creatorGoalState)==null?0:y.endTimestampMs){var W;y=Number((W=this.creatorGoalState)==null?void 0:W.endTimestampMs)/1E3;return{seconds:String(y)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.creatorGoalState)==null?0:y.themedTargetImage){var W;y=_.g((W=this.creatorGoalState)==null?void 0:W.themedTargetImage,KBE);return this.isAppDarkTheme()?y==null?void 0:y.imageDark:y==null?void 0:y.imageLight}}}});
_.dJ.Object.defineProperties(xS,{template:{configurable:!0,enumerable:!0,get:function(){return DdQ()}}});
var i$=xS;i$.prototype.goalStateChanged=i$.prototype.goalStateChanged;i$.prototype.progressBarChanged=i$.prototype.progressBarChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],i$.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);
_.x([_.L({selectorArgs:["data.creatorGoalEntityKey"],selector:function(y,W){return _.fq(y.entities,"creatorGoalEntity",W)}}),
_.e("design:type",Object)],i$.prototype,"creatorGoalState",void 0);_.x([_.L(),_.e("design:type",Object)],i$.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],i$.prototype,"isGoalActive",void 0);_.x([_.A("creatorGoalState","isGoalActive"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],i$.prototype,"shouldShowCountdown",null);_.x([_.A("creatorGoalState"),_.e("design:type",Object),_.e("design:paramtypes",[])],i$.prototype,"endTimestamp",null);
_.x([_.A("creatorGoalState"),_.e("design:type",Object),_.e("design:paramtypes",[])],i$.prototype,"targetIconThemedImage",null);_.x([_.H("creatorGoalState.currentGoalCount"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],i$.prototype,"progressBarChanged",null);_.x([_.H("creatorGoalState.creatorGoalState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],i$.prototype,"goalStateChanged",null);
i$=_.x([_.n6({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],i$);_.T(i$,"yt-creator-goal-progress-flow-view-model",function(){return DdQ()},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var H9V;var LRW;var vl2=function(){return _.v.apply(this,arguments)||this};
_.R(vl2,_.v);vl2.prototype.attached=function(){var y,W,c;if(this==null?0:(y=this.data)==null?0:(W=y.pdgPurchasedBumperLoggingDirectives)==null?0:(c=W.loggingDirectives)==null?0:c.trackingParams){var Z,G,D;IXH(this==null?void 0:(Z=this.data)==null?void 0:(G=Z.pdgPurchasedBumperLoggingDirectives)==null?void 0:(D=G.loggingDirectives)==null?void 0:D.trackingParams)}};
vl2.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
var M7=vl2;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],M7.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],M7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],M7.prototype,"data",void 0);M7=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],M7);
_.T(M7,"yt-live-chat-item-bumper-view-model",function(){if(LRW===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;H9V===void 0&&(H9V=document.createElement("template"));var Z=H9V;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);LRW=y}y=LRW;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var ddQ;var SF0;_.Vf=function(y,W){this.data=y;this.actions=W;this.data=y;this.actions=W};
_.RL=function(){};_.e_={};_.e_.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(y,W){pfI(this.hostElement,y,W)},
getNavigationEndpointPopupAction:function(y){return PQg(y,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(y,W){J$I(this.hostElement,y,W,this.openPopupConfig)}};var dSa=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.wU={};
_.wU.YtEndpointBehavior=[_.e_.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Nn("openPopupConfig");(this.useClickHandler=_.I8("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(y){QFD(this.hostElement,y,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(y){var W=this.hostElement,c=this.openPopupConfig,Z=this.disableCommandHandlerOverride;Z=Z===void 0?!1:Z;var G=Vg1(y);if(G){G.href&&RW(G.href);var D=y.detail;var Y=D.sourceEvent;D=D.preventer;Y=Y.button!==void 0?Y.button===0&&!uv(Y):D?!uv(D):!0;G.data&&Y&&CQI(W,G,y,c,Z)}},
onEndpointTouchEnd_:function(y){uv(y)||Vg1(y)&&y.preventDefault()},
onEndpointTapStart_:function(y){L3f(y)}}];var SJy="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),aXI=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var TvE={};TvE.YtPlaintextBehavior=[_.uO,{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(y){y.preventDefault();y=y.clipboardData.getData("text/plain");document.execCommand("insertText",!1,y)},
preventRichTextFormatting_:function(y){_.z$&&(y=y.detail.keyboardEvent,y.stopImmediatePropagation(),y.preventDefault())}}];var a6Z;var xdm;var i9E=function(){var y=_.v.apply(this,arguments)||this;y.ignoreShadyDom=!1;y.hasChange_=!1;y.hasSetTitle_=!1;y.useIOObserverForVisibilityLogging_=_.O("kevlar_use_vimio_behavior")&&_.Nn("INNERTUBE_CLIENT_NAME")==="WEB";y.ytFormattedStringObserverHandlerKeys_=void 0;return y};
_.R(i9E,_.v);_.f=i9E.prototype;_.f.created=function(){this.useIOObserverForVisibilityLogging_=_.O("kevlar_use_vimio_behavior")&&_.Nn("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.f.ready=function(){_.Nn("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_()};
_.f.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.f.detached=function(){this.unobserveIOObservers_()};
_.f.clearContents_=function(){for(var y=this.getRoot(),W=y.lastChild;W&&W.tagName!=="STYLE";){try{y.removeChild(W)}catch(c){break}W=y.lastChild}};
_.f.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var y=_.z(this.ytFormattedStringObserverHandlerKeys_),W=y.next();!W.done;W=y.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(W.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.f.resetForAttributedString=function(){var y=this.getRoot();!y.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),y.appendChild(this.ytAttributedStringElementRef))};
_.f.resetForFormattedString=function(){var y=this.getRoot(),W=y.querySelector("yt-attributed-string");W&&(this.ytAttributedStringElementRef=y.removeChild(W))};
_.f.textChanged=function(){this.textChanged_(this.text)};
_.f.textChanged_=function(y){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!y||!y.runs&&!y.simpleText;if(_.O("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var W=this.hostElement.firstChild;W&&W.nodeName==="FONT";){var c=W;W=W.nextSibling;this.hostElement.removeChild(c)}W=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
c=y.simpleText;var Z;!c&&((Z=y.runs)==null?void 0:Z.length)===1&&this.isSimpleString_(y.runs[0])&&(c=y.runs[0].text);c!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Nn("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(c!==void 0){try{W.textContent=c}catch(G){}W.textContent||(this.isEmpty=!0)}else y=y.runs,c!==void 0&&(y=[{text:c}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),y&&this.updateText_(y),
W.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.f.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)};
_.f.computeAriaLabel_=function(y){return y};
_.f.computeEllipsisTruncateStyling=function(y,W){return y&&!W};
_.f.computeUseAttributedString=function(y){return _.O("web_replace_formatted_with_attributed_string")&&fF1(y)&&!this.disableAttributedString&&!this.enableContentEditable};
_.f.setNodeStyle_=function(y,W){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.O("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?W.removeAttribute("dir"):W.setAttribute("dir","auto");W.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");W.style.color="";var c=null;this.noStyles||(y.bold&&(W.classList.add("bold"),c="bold"),y.deemphasize&&(W.classList.add("deemphasize"),c="deemphasize"),y.italics&&W.classList.add("italic"),
y.strikethrough&&W.classList.add("strikethrough"),y.errorUnderline&&(W.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),y.bracket&&W.classList.add("bracket"),y.textColor&&(W.style.color=_.$$(y.textColor)));c!==W.getAttribute("style-target")&&(c?W.setAttribute("style-target",c):W.removeAttribute("style-target"))};
_.f.setUpVisibilityLogging_=function(y,W){var c=this;this.setNodeTrackingParams_(y,W);var Z;((Z=W.data)==null?0:Z.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(y=this.ytRendererBehavior.visibilityObserver.observe(W,function(G){var D=c.ytRendererBehavior.getVisibilityLogger();D&&D.reportShown(G)},this.ytRendererBehavior.visibilityOptionVisible_),W=this.ytRendererBehavior.visibilityObserver.observe(W,function(G){var D=c.ytRendererBehavior.getVisibilityLogger();
D&&D.reportHidden(G)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(y),this.ytFormattedStringObserverHandlerKeys_.push(W))};
_.f.setNodeTrackingParams_=function(y,W){W.data||(W.data={});if((y=y.loggingDirectives?y.loggingDirectives.trackingParams:null)||W.data.trackingParams)W.data.trackingParams=y};
_.f.computeHasLinkOnly_=function(y){return!(!y||y.length!==1||this.noEndpoints||!y[0].navigationEndpoint)};
_.f.getRoot=function(){var y=this.buildScopeDomOptions();return this.enableContentEditable?_.p(_.p(this.hostElement,y).querySelector("[contenteditable]")):_.p(this.hostElement,y)};
_.f.fixContenteditableScope=function(){var y=function(W){W&&(W.nodeType===1&&W.classList&&(W.classList.add("style-scope"),W.classList.add("yt-formatted-string")),W.childNodes&&W.childNodes.forEach(function(c){y(c)}))};
y(this.getRoot())};
_.f.updateText_=function(y){for(var W=y.length,c=this.getRoot(),Z=c.firstChild;Z&&Z.nodeName==="STYLE";)Z=Z.nextSibling;for(var G=0;G<W&&Z;){var D=y[G],Y=_.O("remove_cr_char")&&D.text?D.text.replace("\r",""):D.text;if(this.isSimpleString_(D)&&!this.useMixedDirectionFormattedStrings)if(Z.nodeName==="#text"){Z.textContent!=Y&&(Z.textContent=Y);G++;Z=Z.nextSibling;continue}else break;if(_.g(D,bs))break;else if(!this.noEndpoints&&D.navigationEndpoint){if(Z.nodeName!=="A")break;this.setDataOnAnchor_(Z,
D.navigationEndpoint)}else if(Z.nodeName!=="SPAN")break;this.setNodeStyle_(D,Z);this.setUpVisibilityLogging_(D,Z);Z.textContent!=Y&&(Z.textContent=Y);G++;Z=Z.nextSibling}if(Z)for(D=c.lastChild,Z=G?Z.previousSibling:null;D&&D!=Z;){try{c.removeChild(D)}catch(u){break}D=c.lastChild}G!==W&&this.addTextNodes_(y,G)};
_.f.addTextNodes_=function(y,W){for(var c=document.createDocumentFragment(),Z=y.length;W<Z;W++){var G=y[W],D=_.O("remove_cr_char")&&G.text?G.text.replace("\r",""):G.text;if(this.isSimpleString_(G)&&!this.useMixedDirectionFormattedStrings)c.appendChild(document.createTextNode(D));else{var Y=_.g(G,bs);if(Y){if(Y.image){var u=document.createElement("img");Y.isCustomEmoji||u.classList.add("small-emoji");u.classList.add("emoji");Y.isCustomEmoji&&(u.dataset.emojiId=Y.emojiId);u.src=_.h3(Y.image.thumbnails,
this.emojiSize);(G=this.get("image.accessibility.accessibilityData.label",Y))?u.alt=G:Y.shortcuts&&Y.shortcuts.length>0?u.alt=Y.shortcuts[0]:Y.emojiId&&(u.alt=Y.emojiId);c.appendChild(u);this.hasEmoji=!0}}else!this.noEndpoints&&G.navigationEndpoint?(u=document.createElement("a"),u.classList.add("yt-simple-endpoint"),u.setAttribute("spellcheck","false"),this.setDataOnAnchor_(u,G.navigationEndpoint)):u=document.createElement("span"),this.setNodeStyle_(G,u),this.setUpVisibilityLogging_(G,u),u.appendChild(document.createTextNode(D)),
c.appendChild(u)}}this.getRoot().appendChild(c)};
_.f.isSimpleString_=function(y){return(this.noEndpoints||!y.navigationEndpoint)&&!_.g(y,bs)&&(this.noStyles||!(y.bold||y.deemphasize||y.italics||y.strikethrough||y.errorUnderline||y.bracket||y.textColor))&&!y.loggingDirectives};
_.f.getRawText=function(){return _.v$(this.text)};
_.f.getFirstRunText=function(){var y;if(((y=this.text)==null?0:y.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.f.setFirstRunText=function(y){var W;((W=this.text)==null?0:W.runs)&&this.text.runs[0]&&(this.text.runs[0].text=y,this.textChanged_(this.text))};
_.f.setDataOnAnchor_=function(y,W){var c=this;!_.O("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(W)||this.isSignalServiceEndpoint_(W)?(y.onclick=this.serviceEndpointHandler_(W),hn(y,"#")):gYy({text:this.text,command:W},function(){AzE(y,W,c.target)})};
_.f.isServiceEndpoint_=function(y){var W;return!((W=_.g(y==null?void 0:y.commandMetadata,_.kT))==null||!W.sendPost)};
_.f.isSignalServiceEndpoint_=function(y){return!!_.g(y,_.nl)};
_.f.serviceEndpointHandler_=function(y){var W=this;return function(c){_.D2(W.hostElement,[y]);c.preventDefault()}};
_.f.overrideAriaLabelChanged_=function(){var y=this.getRoot();this.enableContentEditable&&y&&y.setAttribute("aria-label",this.overrideAriaLabel)};
_.f.enableContentEditableChanged_=function(){var y=this,W=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),W=_.p(this.hostElement,W),!W.lastChild||W.lastChild instanceof HTMLElement&&W.lastChild.id!=="contenteditable-root"){var c=document.createElement("div");c.id="contenteditable-root";c.setAttribute("contenteditable","true");c.setAttribute("dir","auto");c.onfocus=function(){y.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
W.appendChild(c);this.overrideAriaLabel&&c.setAttribute("aria-label",this.overrideAriaLabel)}}else c=_.x$(this.hostElement).firstChild,c instanceof HTMLElement&&c.id==="contenteditable-root"&&_.p(this.hostElement,W).removeChild(c)};
_.f.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.f.getNodesForVisibilityLogging_=function(){return _.cN(this.getRoot().childNodes,function(y){var W;return!((W=y.data)==null||!W.trackingParams)})};
_.f.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.f.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var y=this.ytRendererBehavior.getVisibilityLogger();y&&this.getNodesForVisibilityLogging_().forEach(function(W){y.reportShown(W)})}};
_.f.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var y=this.ytRendererBehavior.getVisibilityLogger();y&&this.getNodesForVisibilityLogging_().forEach(function(W){y.reportHidden(W)})}};
_.dJ.Object.defineProperties(i9E.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.O("enable_mixed_direction_formatted_strings")}}});
var q7=i9E;q7.prototype.enableContentEditableChanged_=q7.prototype.enableContentEditableChanged_;q7.prototype.overrideAriaLabelChanged_=q7.prototype.overrideAriaLabelChanged_;q7.prototype.ellipsisTruncateChanged_=q7.prototype.ellipsisTruncateChanged_;q7.prototype.textChanged=q7.prototype.textChanged;_.x([_.C(TvE.YtPlaintextBehavior),_.e("design:type",Object)],q7.prototype,"ytPlaintextBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],q7.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],q7.prototype,"text",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"noEndpoints",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"noStyles",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],q7.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],q7.prototype,"splitLines",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],q7.prototype,"forceDefaultStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],q7.prototype,"ellipsisTruncate",void 0);_.x([_.L(),_.e("design:type",Object)],q7.prototype,"ignoreShadyDom",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.e("design:type",Boolean)],q7.prototype,"ellipsisTruncateStyling",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.e("design:type",String)],q7.prototype,"ariaLabel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],q7.prototype,"isEmpty",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.e("design:type",Boolean)],q7.prototype,"hasLinkOnly_",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"hasEmoji",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"disableAttributedString",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"isOverlay",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"linkInheritColor",void 0);
_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"noPreWrap",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"userInput",void 0);_.x([_.L({value:16}),_.e("design:type",Number)],q7.prototype,"emojiSize",void 0);_.x([_.L(),_.e("design:type",String)],q7.prototype,"target",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"enableContentEditable",void 0);_.x([_.L(),_.e("design:type",String)],q7.prototype,"overrideAriaLabel",void 0);
_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"respectHtmlDir",void 0);_.x([_.L(),_.e("design:type",Boolean)],q7.prototype,"respectLangDir",void 0);_.x([_.A("plaintextOnly"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],q7.prototype,"useMixedDirectionFormattedStrings",null);_.x([_.L({computed:"computeUseAttributedString(text)"}),_.e("design:type",Boolean)],q7.prototype,"useYtAttributedString",void 0);
_.x([_.H("text"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],q7.prototype,"textChanged",null);_.x([_.H("ellipsisTruncate"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],q7.prototype,"ellipsisTruncateChanged_",null);_.x([_.H("overrideAriaLabel"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],q7.prototype,"overrideAriaLabelChanged_",null);
_.x([_.H("enableContentEditable"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],q7.prototype,"enableContentEditableChanged_",null);q7=_.x([_.n6({is:"yt-formatted-string",disableElementRegistration:!0})],q7);
_.T(q7,"yt-formatted-string",function(){if(xdm===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;a6Z===void 0&&(a6Z=document.createElement("template"));var Z=a6Z;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);xdm=y}y=xdm;return y});var MkE;var eb2;var wZV;var qF3;var kn2=function(){var y=_.v.apply(this,arguments)||this;y.focused=!1;y.disabled=!1;y.isOverlay=!1;return y};
_.R(kn2,_.v);kn2.prototype.triggerDown=function(){if(!this.disabled){_.i0(this.hostElement,"down",!0);var y;(y=this.currentAnimation)==null||y.cancel()}};
kn2.prototype.triggerUp=function(){if(!this.disabled){_.i0(this.hostElement,"down",!1);var y=this.fillElement;var W=this.strokeElement;typeof GroupEffect==="function"?(y=new GroupEffect([wYy(y),qID(W)]),y=new Animation(y,document.timeline)):y=new PbV(y,W);this.currentAnimation=y;var c;(c=this.currentAnimation)==null||c.play()}};
var kS=kn2;_.x([_.jj(".stroke"),_.e("design:type",HTMLElement)],kS.prototype,"strokeElement",void 0);_.x([_.jj(".fill"),_.e("design:type",HTMLElement)],kS.prototype,"fillElement",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kS.prototype,"focused",void 0);_.x([_.L(),_.e("design:type",Object)],kS.prototype,"disabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kS.prototype,"isOverlay",void 0);
kS=_.x([_.n6({is:"yt-interaction",disableElementRegistration:!0})],kS);
_.T(kS,"yt-interaction",function(){if(qF3===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;wZV===void 0&&(wZV=document.createElement("template"));var Z=wZV;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);qF3=y}y=qF3;return y},{mode:2});var jK0=function(){return _.v.apply(this,arguments)||this};
_.R(jK0,_.v);_.f=jK0.prototype;_.f.ready=function(){var y=this,W=_.p(this.hostElement).querySelector("#button");W.addEventListener("focus",function(){nV2||(nV2=new t7Q);y.keyboardFocused=nV2.isKeyBoardInUse()});
W.addEventListener("blur",function(){y.keyboardFocused=!1;y.rippleUp_()})};
_.f.computeTabIndex_=function(y){return y?-1:0};
_.f.computeButtonAriaPressed_=function(y){if(this.toggleable)return y?"true":"false"};
_.f.rippleDown_=function(){_.p(this.hostElement).querySelector("#interaction").triggerDown()};
_.f.rippleUp_=function(){_.p(this.hostElement).querySelector("#interaction").triggerUp()};
_.f.onPressedChanged_=function(){var y=_.x$(_.p(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.x$(_.p(this.hostElement).querySelector("#button")).children[0];y&&(y.active=this.pressed)};
var jc=jK0;jc.prototype.onPressedChanged_=jc.prototype.onPressedChanged_;jc.prototype.rippleUp_=jc.prototype.rippleUp_;jc.prototype.rippleDown_=jc.prototype.rippleDown_;_.x([_.L(),_.e("design:type",String)],jc.prototype,"label",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],jc.prototype,"disabled",void 0);_.x([_.L(),_.e("design:type",Boolean)],jc.prototype,"pressed",void 0);_.x([_.L(),_.e("design:type",Object)],jc.prototype,"toggleable",void 0);
_.x([_.L(),_.e("design:type",Boolean)],jc.prototype,"untabbable",void 0);_.x([_.L(),_.e("design:type",Boolean)],jc.prototype,"keyboardFocused",void 0);_.x([_.B("down"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jc.prototype,"rippleDown_",null);_.x([_.B("up"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jc.prototype,"rippleUp_",null);
_.x([_.H("pressed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jc.prototype,"onPressedChanged_",null);jc=_.x([_.n6({is:"yt-icon-button",disableElementRegistration:!0})],jc);
_.T(jc,"yt-icon-button",function(){if(eb2===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;MkE===void 0&&(MkE=document.createElement("template"));var Z=MkE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);eb2=y}y=eb2;return y},{mode:2});var yMQ=_.dl(["aria-"]),yF={};yF.YtRenderButtonBehavior=[_.k.YtRendererBehavior,_.wU.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!!_.U().resolve(_.xN(_.ml))&&_.O("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 y=this.computeHref_(this.endpoint,!0);y?hn(this.elements_.endpoint,y):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){y=this.buttonClass.split(" ");y=_.z(y);for(var W=y.next();!W.done;W=y.next())W=W.value,_.i0(this.hostElement,W,!0),this.elements_.button&&_.i0(this.elements_.button,W,!0),this.elements_.text&&_.i0(this.elements_.text,W,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(y=null,this.buttonAccessibility&&(y=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=y:y?_.kX([_.yx(yMQ)],this.elements_.button,"aria-label",y):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var y=_.U().resolve(_.xN(_.ml));y&&(this.keyboardFocused=y.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.QN("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,_.UL(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.UL(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(y,W){if(W)for(y=W.split(" "),y=_.z(y),W=y.next();!W.done;W=y.next())W=W.value,_.i0(this.hostElement,W,!1),this.elements_.button&&_.i0(this.elements_.button,W,!1),this.elements_.text&&_.i0(this.elements_.text,W,!1)},
buttonIconChanged_:function(y){this.elements_.icon?y?(this.elements_.icon.icon=y,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.UL(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.MO(this.hostElement,"is-paper-button-with-icon",!1)):y&&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"&&_.UL(this.elements_.button).appendChild(this.elements_.icon):_.UL(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.MO(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(y){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,y){var W=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(y){case "yt_icon_button_with_label":W=!0;_.i0(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();y=_.UL(this.elements_.button).firstElementChild;
this.elements_.icon=y;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.UL(this.elements_.endpoint).appendChild(this.elements_.button);_.UL(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.QN("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;_.UL(this.elements_.button).appendChild(this.elements_.text);_.UL(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":W=!0,this.elements_.button=this.getYtIconButton_(),y=_.UL(this.elements_.button).firstElementChild,this.elements_.icon=y,this.setIconActive_(this.elements_.icon),
_.UL(this.elements_.endpoint).appendChild(this.elements_.button)}_.MO(this.hostElement,"is-icon-button",W);_.MO(this.hostElement,"is-paper-button",!W);_.MO(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 c;_.p((c=this.container.hostElement)!=null?c:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.UL(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(y){if(y!=void 0||this.disabled)this.disabled=y,this.elements_.button&&(this.elements_.button.disabled=y)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(y){_.O("kevlar_system_icons")&&y&&this.data&&(this.data.isSelected!==void 0?y.active=this.data.isSelected:this.data.isToggled!==void 0&&(y.active=this.data.isToggled))},
observeBasicPalette_:function(y){_.nx(this.hostElement,y)},
disabledChanged_:function(y){this.data&&this.set("data.isDisabled",y)},
onYtButtonTap_:function(y){if(this.disabled)y.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.D2(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(y=this.disableCommandHandlerOverride,!this.data||!this.data.command||y||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.O("handle_service_request_actions")||_.D2(this.hostElement,[this.serviceEndpoint]),
_.Z2(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.O("handle_service_request_actions")?(y=[],this.serviceEndpoint&&y.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&y.push(this.data.command),y.length&&_.mq(this.hostElement,y,this.hostElement)):this.data&&this.data.command&&(y=this.data.command,y.accountUnlinkCommand||y.accountLinkCommand||y.insertAdCommand||y.insertHighlightMarkerCommand||
y.createLivestreamHighlightClipCommand||y.getVideoUploadFeedbackCommand||y.musicDeletePrivatelyOwnedEntityCommand||y.ypcCancelRecurrenceEndpoint||y.getMultiSelectCommandEndpoint?_.D2(this.hostElement,[y]):_.mq(this.hostElement,[y],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 y,W=_.p((y=this.container.hostElement)!=null?y:this.container);W.lastChild&&W.lastChild.tagName!="STYLE";)try{W.removeChild(W.lastChild)}catch(c){break}},
getYtIconButton_:function(){var y=this.reuseEnabled_()?_.QN("yt-icon-button"):document.createElement("yt-icon-button"),W=_.UL(y).firstElementChild;if(W&&W.is!="yt-icon"){for(W=_.UL(y);W.lastChild;)W.removeChild(W.lastChild);W=null}W||(W=this.getIcon_(),this.setIconActive_(W),_.UL(y).appendChild(W));return y},
reuseEnabled_:function(){return _.O("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.QN("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.QN("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.WNV={};
_.WNV.YtButtonBehavior=[yF.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var y=this.data;y&&(this._setEndpoint(this.computeEndpoint_(y)),this._setServiceEndpoint(this.computeServiceEndpoint_(y)),this._setCommand(this.computeCommand_(y)),this._setButtonIcon(this.computeButtonIcon_(y)),this._setButtonText(this.computeButtonText_(y,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(y)),this._setButtonTooltip(this.computeTooltip_(y)),this._setButtonClass(this.computeButtonClass_(y)),this._setIconPositionType(this.computeIconPositionType_(y)),this.updateRenderedElements())},
setPressedState:function(y){var W;if((W=this.elements_)==null?0:W.button)this.elements_.button.pressed=!!y},
computeIconPositionType_:function(y){return y&&y.iconPosition||null},
computeEndpoint_:function(y){var W=y&&y.navigationEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.url"),Z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:y&&y.command&&y.command.modalEndpoint?y.command:c&&!Z&&y.command?y.command:null},
computeServiceEndpoint_:function(y){var W=y&&y.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:c&&y.command?y.command:null},
computeCommand_:function(y){return y&&y.command||null},
computeButtonIcon_:function(y){return y&&y.icon&&y.icon.iconType?_.wp(y.icon.iconType):null},
computeButtonText_:function(y,W){return!W&&y&&y.text||null},
computeAccessibility_:function(y){return this.get("accessibilityData.accessibilityData",y)||y&&y.accessibility||(y&&y.text?{label:this.getSimpleString(y.text)}:null)},
computeTooltip_:function(y){return y?y.isDisabled&&y.disabledTooltip||y.tooltip||null:null},
computeButtonClass_:function(y){var W=y&&y.style?y.style.toLowerCase().replace(/_/g,"-")+" ":"";W+=y&&y.size?y.size.toLowerCase().replace(/_/g,"-")+" ":"";y.colorData&&y.colorData.basicColorPaletteData&&y.colorData.basicColorPaletteData.borderColor&&(W+="palette-with-border");return W.trim()}}];var XP={};var cM0;var Z1T;var GvV,fF3=function(){return GvV!==void 0?GvV:GvV=document.createElement("template")};
document.head.appendChild(fF3().content);var ov8;var Dei,zSW=function(){return Dei!==void 0?Dei:Dei=document.createElement("template")};
document.head.appendChild(zSW().content);var Yh3;var meV,sK5=function(){return meV!==void 0?meV:meV=document.createElement("template")};
document.head.appendChild(sK5().content);var u$2;var tOJ=document.head,nvW=tOJ.appendChild,X5m;if(u$2===void 0){var b1i=document.createElement("template");_.E(b1i,"\x3c!--css-build:shady--\x3e");b1i.content.insertBefore(sK5().content.cloneNode(!0),b1i.content.firstChild);u$2=b1i}X5m=u$2;nvW.call(tOJ,X5m.content);var rM0=document.head,FNE=rM0.appendChild,UeT;if(Yh3===void 0){var $eV=document.createElement("template");_.E($eV,"\x3c!--css-build:shady--\x3e");$eV.content.insertBefore(zSW().content.cloneNode(!0),$eV.content.firstChild);Yh3=$eV}UeT=Yh3;FNE.call(rM0,UeT.content);var KN8=document.head,O15=KN8.appendChild,gvZ;if(ov8===void 0){var RSV=document.createElement("template");_.E(RSV,"\x3c!--css-build:shady--\x3e");RSV.content.insertBefore(fF3().content.cloneNode(!0),RSV.content.firstChild);ov8=RSV}gvZ=ov8;O15.call(KN8,gvZ.content);_.bv("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var lFT=_.O("web_button_rework")&&_.I8("BUTTON_REWORK")||_.O("web_button_rework_with_live"),W8=function(){return _.v.apply(this,arguments)||this};
_.R(W8,_.v);W8.prototype.created=function(){this.openPopupConfig=_.Nn("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
W8.prototype.onYtNavigate_=function(y){var W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(this.ytOpenPopupBehavior.openPopup(W),y.stopPropagation(),y.preventDefault())};
_.dJ.Object.defineProperties(W8,{template:{configurable:!0,enumerable:!0,get:function(){if(Z1T===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;cM0===void 0&&(cM0=document.createElement("template"));var Z=cM0;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Z1T=y}y=Z1T;return y}}});
_.c8=W8;_.c8.prototype.onYtNavigate_=_.c8.prototype.onYtNavigate_;_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],_.c8.prototype,"ytOpenPopupBehavior",void 0);_.x([_.C(_.WNV.YtButtonBehavior),_.e("design:type",Object)],_.c8.prototype,"ytButtonBehavior",void 0);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],_.c8.prototype,"onYtNavigate_",null);
_.c8=_.x([_.n6({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:lFT})],_.c8);var EvV;var Nm8=_.O("web_button_rework")&&_.I8("BUTTON_REWORK")||_.O("web_button_rework_with_live"),Z$=function(){var y=_.v.apply(this,arguments)||this;y.isPressed=!1;y.forceIconButton=!1;y.forceIconOnly=!1;y.forceModernIconButton=!1;y.skipCommandHandling=!1;y.alignByText=!1;y.fitToVisibleBounds=!0;y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};y.onTap=function(W){_.Z2(y.hostElement,"yt-service-request-sent-button-renderer",W)};
return y};
_.R(Z$,_.v);_.f=Z$.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.f.onClick=function(y){var W,c=this.disabled||((W=this.data)==null?void 0:W.isDisabled);W=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");c&&W&&y.stopPropagation()};
_.f.computeIcon=function(){var y,W,c=(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType;if(c)return _.wp(c)};
_.f.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.f.handleUpdateButtonAction=function(y){y=_.g(y,nbE);var W=_.g(y==null?void 0:y.updatedButton,_.RU);if(this.data&&y&&W){var c=this.data;c.targetId&&y.targetId&&c.targetId===y.targetId&&(this.data=W)}};
_.dJ.Object.defineProperties(Z$.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var y=this;if(this.data){var W=qJF({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Z2(y.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Z2(y.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});W.alignByText=this.alignByText;return W}}}});
_.dJ.Object.defineProperties(Z$,{template:{configurable:!0,enumerable:!0,get:function(){if(EvV===void 0){var y=document.createElement("template");_.E(y,'\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>');EvV=y}y=EvV;return y}}});
var G6=Z$;G6.prototype.onClick=G6.prototype.onClick;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],G6.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],G6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],G6.prototype,"isPressed",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"forceIconButton",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"forceIconOnly",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"forceModernIconButton",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"skipCommandHandling",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"alignByText",void 0);
_.x([_.L(),_.e("design:type",Object)],G6.prototype,"buttonTooltipPosition",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"fitToVisibleBounds",void 0);_.x([_.L({computed:"computeTooltip(data)"}),_.e("design:type",Object)],G6.prototype,"tooltip",void 0);_.x([_.L(),_.e("design:type",Object)],G6.prototype,"overrides",void 0);_.x([_.L(),_.e("design:type",Boolean)],G6.prototype,"disabled",void 0);
_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],G6.prototype,"onClick",null);_.x([_.A("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.e("design:type",Object),_.e("design:paramtypes",[])],G6.prototype,"computedButtonShape",null);
G6=_.x([_.n6({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Nm8,cssBuildOptOut:!0}),_.n6({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Nm8,cssBuildOptOut:!0})],G6);var IFZ;var p5Z;var P30=function(){var y=_.v.apply(this,arguments)||this;y.empty_=!0;y.loadTime=Infinity;y.pendingPaint=!1;y.hasChange_=!1;y.oldThumbnail_=null;y.oldDelayedSrc_="";y.objectURL_=null;return y};
_.R(P30,_.v);_.f=P30.prototype;_.f.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.f.ready=function(){var y=this.shouldShowPlaceholder_();_.i0(this.hostElement,"no-transition",!0);y&&this.hostElement.classList.add("with-placeholder")};
_.f.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.f.isThumbPreloaded_=function(y){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",y)};
_.f.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||JMW};
_.f.computeThumbnailSrc_=function(y){return y&&y.thumbnails?_.h3(y.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.f.computeAlt_=function(){var y=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&y||""};
_.f.thumbnailChanged_=function(){var y=_.z([this.thumbnail,this.oldThumbnail_]),W=y.next().value;y=y.next().value;this.oldThumbnail_=W;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(y=this.computeThumbnailSrc_(y),this.computeThumbnailSrc_(W)===y))return;_.O("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(W)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):W&&_.I8("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Lv(this,this.onReload_):_.Lv(this,this.onShow_):this.resetImage_();W&&(this.hostElement.style.opacity=""+W.opacity)}};
_.f.delayedSrcChanged_=function(){var y=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===y||this.resetImage_()};
_.f.setSrc_=function(y){y?(_.p(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.p(this.hostElement).querySelector("#img").src=y):(_.p(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.f.resetImage_=function(){Z5I(this.hostElement);this.empty_=!0;this.setSrc_(JMW);this.ytRendererBehavior.invalidate(!1)};
_.f.observePlaceholderColor_=function(){var y=this.thumbnail&&this.thumbnail.placeholderColor;y?this.hostElement.style.backgroundColor=_.$$(y):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.f.onLoad_=function(){_.p(this.hostElement).querySelector("#img").src&&_.p(this.hostElement).querySelector("#img").src!==JMW&&(c0O(this.hostElement),this.notifyOnLoaded&&_.Z2(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.f.onError_=function(){var y=this;if(_.O("web_use_cache_for_image_fallback"))m_H(_.p(this.hostElement).querySelector("#img").src).then(function(W){y.objectURL_=V7(W).toString();y.setSrc_(y.objectURL_)}).catch(function(){_.O("kevlar_woffle_fallback_image")&&y.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.f.onPrescanVisible=function(){this.onShow_()};
_.f.onVisible=function(){if(_.O("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.f.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var y=this.computeSrc_();y!==_.p(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(y))}};
_.f.onReload_=function(){this.empty_=!1;var y=this.computeSrc_();y!==_.p(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(y))};
_.f.shouldShowPlaceholder_=function(){return _.O("kevlar_thumbnail_bg")};
var fB=P30;fB.prototype.observePlaceholderColor_=fB.prototype.observePlaceholderColor_;fB.prototype.delayedSrcChanged_=fB.prototype.delayedSrcChanged_;fB.prototype.thumbnailChanged_=fB.prototype.thumbnailChanged_;_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],fB.prototype,"alt",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],fB.prototype,"ariaHidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],fB.prototype,"ariaLabel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],fB.prototype,"hidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],fB.prototype,"id",void 0);_.x([_.C(_.Rx.YtVisibilityBehavior),_.e("design:type",Object)],fB.prototype,"ytVisibilityBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",String)],fB.prototype,"delayedSrc",void 0);
_.x([_.L(),_.e("design:type",Object)],fB.prototype,"thumbnail",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],fB.prototype,"loaded",void 0);_.x([_.L(),_.e("design:type",Boolean)],fB.prototype,"notifyOnLoaded",void 0);_.x([_.L(),_.e("design:type",Number)],fB.prototype,"height",void 0);_.x([_.L(),_.e("design:type",Number)],fB.prototype,"width",void 0);_.x([_.L({value:function(){return"width"}}),
_.e("design:type",String)],fB.prototype,"dimension",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],fB.prototype,"fit",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],fB.prototype,"fitHeight",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],fB.prototype,"fitWidth",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],fB.prototype,"objectFit",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],fB.prototype,"objectPosition",void 0);_.x([_.L(),_.e("design:type",String)],fB.prototype,"preferredThumbnail",void 0);_.x([_.L({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.e("design:type",String)],fB.prototype,"alt_",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],fB.prototype,"sharedTooltipText",void 0);
_.x([_.L(),_.e("design:type",Boolean)],fB.prototype,"ftlEligible",void 0);_.x([_.L({value:void 0}),_.e("design:type",String)],fB.prototype,"observeHiddenOption",void 0);_.x([_.L({value:"observe_once"}),_.e("design:type",String)],fB.prototype,"observePrescanOption",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],fB.prototype,"roundedContainer",void 0);
_.x([_.Gs("thumbnail"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fB.prototype,"thumbnailChanged_",null);_.x([_.Gs("delayedSrc"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fB.prototype,"delayedSrcChanged_",null);_.x([_.H("thumbnail.placeholderColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fB.prototype,"observePlaceholderColor_",null);
fB=_.x([_.n6({is:"yt-img-shadow",disableElementRegistration:!0})],fB);var JMW=_.I8("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.a5()(fB,"yt-img-shadow",function(){if(p5Z===void 0){var y=document.createElement("template");_.E(y,'\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">');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;IFZ===void 0&&(IFZ=document.createElement("template"));var Z=IFZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);p5Z=y}y=p5Z;return y},{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 Mf1;_.oZ=new _.Sm("SCREEN_MANAGER_TOKEN");Mf1=new _.Sm("LOG_INITIAL_SCREEN_TOKEN");_.UV=_.Ax(function(y){function W(sD){return _.g(sD,_.ri)}
function c(){var sD=Z().isTogglingDisabled||K()?P():!P();V(sD);S(!1);if(!Z().isTogglingDisabled){var ED;(ED=Y)==null||ED(!!sD)}var N1;((N1=D)==null?0:N1())||_.yk(_.U().resolve(_.oZ),Z().trackingParams);var bf;if(!sD||!W(Z().defaultButtonViewModel)||(bf=D)!=null&&bf()){var Py;!W(Z().toggledButtonViewModel)||((Py=D)==null?0:Py())||_.yk(_.U().resolve(_.oZ),W(Z().toggledButtonViewModel).trackingParams)}else _.yk(_.U().resolve(_.oZ),W(Z().defaultButtonViewModel).trackingParams)}
var Z=y.data,G=y.buttonShapeOverrides,D=y.disableExplicitClickLogging,Y=y.onToggle,u=y.style,t=y.useOutlinedIcon,b=y.className,r=function(){var sD,ED;return P()?(sD=y.animatedTextPropsToggled)==null?void 0:sD.call(y):(ED=y.animatedTextPropsDefault)==null?void 0:ED.call(y)},F=_.Yk(function(){return r()?Object.assign({},r(),{shouldAnimate:Q()}):void 0},void 0,"ZKEa0b"),K=function(){var sD;
return((sD=fa())==null?void 0:sD.isToggled)!==void 0},l=_.z(_.WF(function(){var sD,ED,N1;
return K()?(sD=fa())==null?void 0:sD.isToggled:(N1=G==null?void 0:(ED=G())==null?void 0:ED.toggled)!=null?N1:Z().isToggled})),N=l.next().value;
l=l.next().value;var P=N,V=l;l=_.z(_.WF(function(){var sD,ED;return(sD=y.animatedTextPropsToggled)==null?void 0:(ED=sD.call(y))==null?void 0:ED.shouldAnimate}));
N=l.next().value;l=l.next().value;var Q=N,S=l;N=_.z(_.G9(!1,void 0,"S11hid"));var cy=N.next().value,M=N.next().value,fa=_.FP(function(sD){var ED;a:{var N1=Z().entityKey,bf=Z().toggledStateEntitySelectorType;if(bf&&N1)switch(bf){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Py;sD=(Py=_.fq(sD.entities,"sfvAudioItemCurrentlyPlayingEntity",N1))!=null?Py:void 0;Py=(ED=sD==null?void 0:sD.sfvAudioItemPlaybackState)!=null?ED:void 0;if(Py==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){ED={isToggled:!0};
break a}if(Py){ED={isToggled:!1};break a}break;default:_.Rs(new _.ul("Error: entitySelectorType defined but not matched in selector.",sD,bf))}ED=void 0}return ED});
N=_.j9(function(){var sD=_.U().resolve(_.xN(_.ml));sD&&M(sD.isKeyBoardInUse());return!1});
l=_.j9(function(){M(!1);return!1});
var jI=function(){return Object.assign({},G==null?void 0:G(),{onToggle:c,toggleable:!0,toggled:P(),focused:cy()})};
return _.X("toggle-button-view-model",{"on:focusin":N,"on:focusout":l,class:b},_.X(_.YN,{cond:function(){return P()?W(Z().toggledButtonViewModel):W(Z().defaultButtonViewModel)},
then:function(sD){return _.X(_.OV,{data:sD,className:b,style:u,useOutlinedIcon:t,buttonOverrides:jI,animatedTextProps:F})}}))},"v");
_.UV.idomCompat={callbacks:{onToggle:!0}};_.A3(_.Ax(function(y){return _.X("yt-toggle-button-view-model",{class:function(){var W;return(W=y.scopingClassName)==null?void 0:W.call(y)}},_.X(_.UV,{data:function(){var W;
return(W=y.data)==null?void 0:W.call(y)},
buttonShapeOverrides:function(){var W;return(W=y.overrides)==null?void 0:W.call(y)},
animatedTextPropsDefault:function(){var W;return(W=y.animatedTextPropsDefault)==null?void 0:W.call(y)},
animatedTextPropsToggled:function(){var W;return(W=y.animatedTextPropsToggled)==null?void 0:W.call(y)},
disableExplicitClickLogging:function(){var W;return(W=y.disableExplicitClickLogging)==null?void 0:W.call(y)},
onToggle:function(W){var c;return(c=y.onToggle)==null?void 0:c.call(y,W)},
style:function(){var W;return(W=y.style)==null?void 0:W.call(y)},
useOutlinedIcon:function(){var W;return(W=y.useOutlinedIcon)==null?void 0:W.call(y)},
className:function(){var W;return(W=y.className)==null?void 0:W.call(y)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.Ix,
buttonShapeOverrides:_.Ix,overrides:_.Ix,animatedTextPropsDefault:_.Ix,animatedTextPropsToggled:_.Ix,disableExplicitClickLogging:_.Ix,onToggle:_.QE,style:_.Ix,useOutlinedIcon:_.Ix,className:_.Ix,scopingClassName:_.Ix}});var VO2=function(){return _.v.apply(this,arguments)||this};
_.R(VO2,_.v);VO2.prototype.onTap=function(y){y.stopPropagation();y=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:y})):this.ytLiveChatReduxBehavior.dispatch(_.o3("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:y}))};
_.dJ.Object.defineProperties(VO2.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.engagementState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=_.g(this.data.toggleButton,_.F5),W;if(Number(((W=this.likeCountState)==null?void 0:W.likeCountIfIndifferentNumber)||"0")===0){var c;W=((c=this.data.likeCountPlaceholder)==null?void 0:c.content)||""}else{var Z,G,D;W=((Z=this.likeCountState)==null?void 0:(G=Z.likeCountIfIndifferent)==null?void 0:G.content)||((D=this.data.likeCountPlaceholder)==null?void 0:D.content)||""}var Y,u;c=((Y=this.likeCountState)==null?void 0:(u=
Y.likeCountIfLiked)==null?void 0:u.content)||"1";Y=_.g(y.toggledButtonViewModel,_.ri);return Object.assign({},y,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.g(y.defaultButtonViewModel,_.ri),{title:W})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Y,{title:c})}})}}}});
var D$=VO2;D$.prototype.onTap=D$.prototype.onTap;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],D$.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],D$.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],D$.prototype,"data",void 0);
_.x([_.L({selectorArgs:["data.likeCountEntityKey"],selector:kch}),_.e("design:type",Object)],D$.prototype,"likeCountState",void 0);_.x([_.L({selectorArgs:["data.engagementStateKey"],selector:EJt}),_.e("design:type",Object)],D$.prototype,"engagementState",void 0);_.x([_.A("data","engagementState"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],D$.prototype,"isLiked",null);
_.x([_.A("data","likeCountState","isLiked"),_.e("design:type",Object),_.e("design:paramtypes",[])],D$.prototype,"toggleButton",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],D$.prototype,"onTap",null);D$=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],D$);
_.T(D$,"yt-live-chat-like-button-view-model",function(){if(SF0===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;ddQ===void 0&&(ddQ=document.createElement("template"));var Z=ddQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);SF0=y}y=SF0;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var C32;var QKE;var AME=function(){return _.v.apply(this,arguments)||this};
_.R(AME,_.v);var z6=AME;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],z6.prototype,"data",void 0);z6=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],z6);
_.T(z6,"yt-live-chat-paid-message-footer-renderer",function(){if(QKE===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;C32===void 0&&(C32=document.createElement("template"));var Z=C32;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);QKE=y}y=QKE;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var hS0;var BmT;var H1V;var LNV,vv5=function(){if(LNV!==void 0)return LNV;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;H1V===void 0&&(H1V=document.createElement("template"));var Z=H1V;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return LNV=y};var Yn=function(){return _.v.apply(this,arguments)||this};
_.R(Yn,_.v);Yn.prototype.onTap=function(y){y.stopPropagation()};
_.dJ.Object.defineProperties(Yn.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=_.g(this.data.replyButton,_.ri),W,c,Z,G,D,Y,u,t=Number(((W=this.replyCountState)==null?void 0:W.replyCountNumber)||"0")===0?(c=this.data)==null?void 0:(Z=c.replyCountPlaceholder)==null?void 0:Z.content:((G=this.replyCountState)==null?void 0:(D=G.replyCount)==null?void 0:D.content)||((Y=this.data)==null?void 0:(u=Y.replyCountPlaceholder)==null?void 0:u.content)||"",b;return Object.assign({},
y,{title:t,accessibilityText:(b=this.replyCountState)==null?void 0:b.replyButtonAccessibilityText})}}}});
_.dJ.Object.defineProperties(Yn,{template:{configurable:!0,enumerable:!0,get:function(){return vv5()}}});
var mW=Yn;mW.prototype.onTap=mW.prototype.onTap;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],mW.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],mW.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mW.prototype,"data",void 0);
_.x([_.L({selectorArgs:["data.replyCountEntityKey"],selector:function(y,W){return _.fq(y.entities,"replyCountEntity",W)}}),
_.e("design:type",Object)],mW.prototype,"replyCountState",void 0);_.x([_.A("data","replyCountState"),_.e("design:type",Object),_.e("design:paramtypes",[])],mW.prototype,"buttonViewModel",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],mW.prototype,"onTap",null);mW=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],mW);
_.T(mW,"yt-live-chat-reply-button-view-model",function(){return vv5()},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var deE;var ShV;var ss=function(){var y=_.v.apply(this,arguments)||this;y.ariaLabel="";return y};
_.R(ss,_.v);
ss.prototype.dataChanged=function(){for(var y=(0,_.ed)(_.p(this.hostElement).querySelector("#image"));y.firstChild;)y.removeChild(y.firstChild);if(this.data)if(this.data.icon){var W=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(W.polymerController.icon="yt-sys-icons:shield-filled",W.polymerController.defaultToFilled=!0):W.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();y.appendChild(W)}else if(this.data.customThumbnail){W=document.createElement("img");
var c=_.eQw(this.data.customThumbnail.thumbnails,16);c?(W.src=c,y.appendChild(W),W.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Rs(new _.ul("Could not compute URL for thumbnail",this.data.customThumbnail))}};
ss.prototype.identity=function(y){return y};
ss.prototype.computeType=function(y){return i6(y||void 0)};
var uu=ss;uu.prototype.dataChanged=uu.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],uu.prototype,"data",void 0);_.x([_.L({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.e("design:type",Object)],uu.prototype,"ariaLabel",void 0);_.x([_.L({computed:"computeType(data)",reflectToAttribute:!0}),_.e("design:type",String)],uu.prototype,"type",void 0);
_.x([_.L({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.e("design:type",String)],uu.prototype,"sharedTooltipText",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("live_chat_enable_new_moderator_badge")}}),
_.e("design:type",Boolean)],uu.prototype,"enableNewModeratorBadge",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uu.prototype,"dataChanged",null);uu=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],uu);
_.T(uu,"yt-live-chat-author-badge-renderer",function(){if(ShV===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;deE===void 0&&(deE=document.createElement("template"));var Z=deE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);ShV=y}y=ShV;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var Tm2;var aFi;var xe2=function(){return _.v.apply(this,arguments)||this};
_.R(xe2,_.v);_.f=xe2.prototype;_.f.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"}}}}};
_.f.computeBadgesInsideChip=function(y){return y?y.filter(function(W){return i6(W.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.f.computeBadgesOutsideChip=function(y){return this.prependChatBadges||!y?[]:y.filter(function(W){W=i6(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"})};
_.f.computeBadgesBeforeChip=function(y){return this.prependChatBadges&&y?y.filter(function(W){W=i6(W.liveChatAuthorBadgeRenderer);return W!=="verified"&&W!=="owner"}):[]};
_.f.computeIsHighlighted=function(y,W){var c=!!olD(y,"owner"),Z=!!olD(y,"verified");y=!!olD(y,"moderator");return(c||Z&&!y)&&!W};
_.f.computeAuthorType=function(y){return f6h(y)};
_.f.computeAuthorClass=function(y,W){return W?(y?y+" ":"")+"single-line":y};
_.f.onSeedColorChanged=function(){_.O("live_chat_author_name_color_usernames")||_.O("live_chat_seed_color_usernames")||_.O("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):_.O("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
var ty=xe2;ty.prototype.onSeedColorChanged=ty.prototype.onSeedColorChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ty.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ty.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ty.prototype,"authorName",void 0);_.x([_.L(),_.e("design:type",Array)],ty.prototype,"authorBadges",void 0);
_.x([_.L({computed:"computeAuthorType(authorBadges)"}),_.e("design:type",String)],ty.prototype,"authorType",void 0);_.x([_.L({computed:"computeAuthorClass(authorType, singleLine)"}),_.e("design:type",String)],ty.prototype,"authorClass",void 0);_.x([_.L({computed:"computeBadgesInsideChip(authorBadges)"}),_.e("design:type",Array)],ty.prototype,"badgesInsideChip",void 0);_.x([_.L({computed:"computeBadgesOutsideChip(authorBadges)"}),_.e("design:type",Array)],ty.prototype,"badgesOutsideChip",void 0);
_.x([_.L({computed:"computeBadgesBeforeChip(authorBadges)"}),_.e("design:type",Array)],ty.prototype,"badgesBeforeChip",void 0);_.x([_.L({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.e("design:type",Boolean)],ty.prototype,"isHighlighted",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],ty.prototype,"singleLine",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],ty.prototype,"disableHighlighting",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],ty.prototype,"dashboardMoneyFeed",void 0);_.x([_.L({value:_.O("live_chat_prepend_badges"),reflectToAttribute:!0}),_.e("design:type",Boolean)],ty.prototype,"prependChatBadges",void 0);_.x([_.L(),_.e("design:type",String)],ty.prototype,"authorNameColor",void 0);_.x([_.jj("#author-name"),_.e("design:type",HTMLDivElement)],ty.prototype,"username",void 0);
_.x([_.H("authorNameColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ty.prototype,"onSeedColorChanged",null);ty=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],ty);
_.T(ty,"yt-live-chat-author-chip",function(){if(aFi===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Tm2===void 0&&(Tm2=document.createElement("template"));var Z=Tm2;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);aFi=y}y=aFi;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var i15;var MO3;var eST=function(){var y=_.v.apply(this,arguments)||this;y.debounceCommand=_.u5(function(W){y.ytComponentBehavior.resolveCommand(W)},1500);
return y};
_.R(eST,_.v);eST.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var y=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",W,c,Z=this.isHearted?(W=this.data)==null?void 0:W.unheartCommand:(c=this.data)==null?void 0:c.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:y}));(y=_.UH(Z))&&this.debounceCommand(y)}};
_.dJ.Object.defineProperties(eST.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var y,W;if(!((y=this.data)==null?0:(W=y.creatorThumbnail)==null?0:W.sources))return{};y={thumbnails:[]};W={};W.url=this.data.creatorThumbnail.sources[0].url;y.thumbnails.push(W);return y}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.engagementState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.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}}});
var nB=eST;nB.prototype.onTap=nB.prototype.onTap;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],nB.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],nB.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nB.prototype,"data",void 0);
_.x([_.L({selectorArgs:["data.engagementStateKey"],selector:EJt}),_.e("design:type",Object)],nB.prototype,"engagementState",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],nB.prototype,"thumbnailDetails",null);_.x([_.A("data","engagementState"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],nB.prototype,"isHearted",null);_.x([_.A("data","engagementState"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],nB.prototype,"isEditable",null);
_.x([_.A("data","engagementState"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],nB.prototype,"showCreatorView",null);_.x([_.A("data","engagementState"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],nB.prototype,"showButton",null);_.x([_.A("data","isHearted"),_.e("design:type",String),_.e("design:paramtypes",[])],nB.prototype,"label",null);_.x([_.A("data","isHearted"),_.e("design:type",Object),_.e("design:paramtypes",[])],nB.prototype,"heartHoverText",null);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],nB.prototype,"onTap",null);nB=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],nB);
_.T(nB,"yt-live-chat-creator-heart-view-model",function(){if(MO3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;i15===void 0&&(i15=document.createElement("template"));var Z=i15;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);MO3=y}y=MO3;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var X_=function(y,W){this.serviceId=new Pli(y,W)};
X_.prototype.toString=function(){return this.serviceId.toString()};var w5Q=function(){this.internalMap={}};
_.f=w5Q.prototype;_.f.contains=function(y){return Object.prototype.hasOwnProperty.call(this.internalMap,y)};
_.f.get=function(y){if(this.contains(y))return this.internalMap[y]};
_.f.set=function(y,W){this.internalMap[y]=W};
_.f.getKeys=function(){return Object.keys(this.internalMap)};
_.f.remove=function(y){delete this.internalMap[y]};var bu=function(){this.mappings=new w5Q;this.errorCallbacks=new Set};
bu.prototype.getModuleId=function(y){return y.serviceId.getModuleId()};
bu.prototype.get=function(y){var W=this.mappings.get(y.toString());return qhQ(this,W,y)};
bu.prototype.getMultipleAsync=function(){var y=_.Cf.apply(0,arguments),W=this,c=y.map(function(t){return W.getModuleId(t)}),Z=y.map(function(t){return W.mappings.get(t.toString())}).filter(function(t){return t});
if(Z.length===y.length)return _.sc(Z.map(function(t,b){return qhQ(W,t,y[b])}));
var G=lC().loadMultiple(c);Z=_.X1(c.map(function(t){return G[t]}));
var D=document.hidden,Y=-1,u=_.ey("get_async_timeout_ms",-1);u>-1&&(Y=setTimeout(function(){_.Rs(new _.ul("Module timeout.",c,D,document.hidden))},u));
return _.bU(Z.then(function(){return y.map(function(t){return qhQ(W,W.mappings.get(t.toString()),t)})}).thenCatch(function(t){for(var b=_.z(W.errorCallbacks),r=b.next();!r.done;r=b.next())r=r.value,r(t);
throw t;}),function(){clearTimeout(Y)})};
bu.prototype.registerService=function(y,W){this.mappings.set(y.toString(),{type:"mapping",value:W});return y};
var qhQ=function(y,W,c){switch(W.type){case "mapping":return W.value;case "factory":return W=W.value(),y.mappings.set(c.toString(),{type:"mapping",value:W}),W;default:return _.d2(W)}};
bu.prototype.onLoadError=function(y){var W=this;this.errorCallbacks.add(y);return function(){W.errorCallbacks.delete(y)}};
_.r$=new bu;var kvE=function(){};
_.f=kvE.prototype;
_.f.JSC$11754_getRequest=function(y,W,c){W=W===void 0?{}:W;c=c===void 0?Im3:c;var Z=W;if(this.isNavigationCommand()){var G,D=(G=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:G.url;Z=_.Vaf(y.clickTrackingParams,!0,!1,D,this.JSC$11754_getClientScreen(Z))}else Z=_.Vaf(y.clickTrackingParams,!1,this.includeCsn);Z={context:Z};if(G=this.getExtension(y))return this.JSC$11754_buildRequest(Z,G,W),G=this.getApiUrl(y),D=Object.assign({},{command:y},this.getRequestConfig(y,W)),Z={input:G,requestShell:vT(G),
innerTubeRequest:Z,config:D},Z.config.authStrategy?Z.config.authStrategy.identity=c:Z.config.authStrategy={identity:c},(y=this.JSC$11754_getRequestKey(y,W))&&!Z.config.requestKey&&(Z.config.requestKey=y),Z;y=new _.ul("Error: Failed to create Request from Command.",y);_.OP(y)};
_.f.getApiUrl=function(y){var W=_.Tx(this.getApiPaths(y)),c;(y=(c=_.g(y.commandMetadata,_.kT))==null?void 0:c.apiUrl)&&(W=y);return SSh(dDO(W))};
_.f.isNavigationCommand=function(){return!1};
_.f.JSC$11754_getClientScreen=function(){};
_.f.JSC$11754_getRequestKey=function(){};
_.f.getRequestConfig=function(){};
_.dJ.Object.defineProperties(kvE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var F_=function(){};
_.R(F_,kvE);F_.prototype.JSC$11761_getStoreKey=function(){};
F_.prototype.JSC$11754_getRequestKey=function(y,W){W=W===void 0?{}:W;return this.JSC$11761_getStoreKey(y,W)};var Us=function(){};
_.R(Us,F_);Us.prototype.JSC$11754_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:vT("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Us.prototype.getApiPaths=function(){return[]};
Us.prototype.getExtension=function(){};
Us.prototype.JSC$11754_buildRequest=function(){};var jc5={},yXE=(jc5.GET_DATASYNC_IDS=Kx(Us),jc5);var WbE,cXV,ZMT,IW0,$n,ozE,QMV,ftJ,G1Q;WbE="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");cXV=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Ee=function(y,W,c,Z,G,D,Y,u,t){this.endpointMap=y;this.networkManager=W;this.authService=c;this.responseProcessorMap=Z;this.innertubeResponseStore=G;this.contextProcessors=D;this.asyncContextProcessors=Y;this.localInnertubeRouter=u;this.requestSequencer=t;this.inflightRequests=new Map;y.signalEndpointMap||(y.signalEndpointMap={});y.signalEndpointMap=Object.assign({},yXE,y.signalEndpointMap)};
ZMT=function(y,W,c,Z,G,D,Y,u,t){if(_.Ee.instance!==void 0){if(Z=_.Ee.instance,y=[y!==Z.endpointMap,W!==Z.networkManager,c!==Z.authService,G!==Z.innertubeResponseStore,D!==Z.contextProcessors,Y!==Z.asyncContextProcessors,u!==Z.localInnertubeRouter],y.some(function(b){return b}))throw new _.ul("InnerTubeTransportService is already initialized",y);
}else _.Ee.instance=new _.Ee(y,W,c,Z,G,D,Y,u,t)};
_.IL=function(y,W,c){var Z=Z===void 0?Im3:Z;var G=QMV(y,W);return G?new _.fD(function(D,Y){var u,t,b,r,F;return _.m(function(K){switch(K.nextAddress){case 1:return _.n(K,G,2);case 2:u=K.yieldResult;t=u.JSC$11754_getRequest(W,c,Z);if(!t){Y(new _.ul("Error: Failed to build request for command.",W));K.jumpTo(0);break}RW(t.input);r=((b=t.requestShell)==null?void 0:b.mode)==="cors"?"cors":void 0;if(y.authService.syncHeaders){F=G1Q(t.config,r);K.jumpTo(4);break}return _.n(K,ftJ(t.config,r),5);case 5:F=
K.yieldResult;case 4:D(ozE(y,t,F)),_.F2(K)}})}):_.hG(new _.ul("Error: No request builder found for command.",W))};
IW0=function(y,W,c,Z){var G=G===void 0?Im3:G;var D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI;return _.m(function(sD){switch(sD.nextAddress){case 1:D=WUy(W,y.endpointMap);if(!D)throw new _.ul("Error: No streaming request builder found for command",W);Y=D.JSC$11754_getRequest(W,c,G);if(!Y)throw new _.ul("Failed to build YtRequest for streaming Command",W);if((u=y.localInnertubeRouter)==null||!u.shouldPreferLocalResponse(Y.input,Y.innerTubeRequest)){sD.jumpTo(2);break}return _.n(sD,y.localInnertubeRouter.localInnertubeResponse(Y.input,
Y.innerTubeRequest),3);case 3:return t=sD.yieldResult,b={},t.playerResponse&&($n(y,t.playerResponse,Y),b.player=t.playerResponse,(r=Z)==null||r(b,t)),t.watchNextResponse&&($n(y,t.watchNextResponse,Y),b.content=t.watchNextResponse,(F=Z)==null||F(b,t)),sD.return(b);case 2:l=((K=Y.requestShell)==null?void 0:K.mode)==="cors"?"cors":void 0;if(y.authService.syncHeaders){N=G1Q(Y.config,l);sD.jumpTo(4);break}return _.n(sD,ftJ(Y.config,l),5);case 5:N=sD.yieldResult;case 4:return Q=(V=(P=Y.requestShell)==null?
void 0:P.headers)!=null?V:{},Y.requestShell=Object.assign({},Y.requestShell,{headers:Object.assign({},Q,N)}),S=Object.assign({},Y.requestShell),cy=JSON.stringify(Y.innerTubeRequest),Y.requestShell.method==="POST"&&(S=Object.assign({},S,{body:cy})),M=function(ED,N1){$n(y,N1.playerResponse||N1.watchNextResponse||N1.reelItemWatchResponse||N1.reelWatchSequenceResponse,Y);Z==null||Z(ED,N1)},fa={},_.n(sD,DA0(y.networkManager,Y.input,S,M),6);
case 6:return fa=sD.yieldResult,((jI=Y.config)==null?0:jI.responseTick)&&_.PA(Y.config.responseTick),sD.return(fa)}})};
_.OU=function(y,W,c,Z,G){G=G===void 0?{authStrategy:{identity:Im3}}:G;var D=D===void 0?!0:D;var Y=function(){};
Y=fTa(Z7I(c));W.context||(W.context=_.Vaf(Z,D));return new _.fD(function(u){var t,b,r,F,K;return _.m(function(l){if(l.nextAddress==1)return t=dDO(c),b=_.LO(t),y.authService.syncHeaders?(r=G1Q(G,b),l.jumpTo(2)):_.n(l,ftJ(G,b),3);l.nextAddress!=2&&(r=l.yieldResult);F=SSh(dDO(c));K={input:F,requestShell:vT(F),innerTubeRequest:W,config:G};u(ozE(y,K,r,Y));_.F2(l)})})};
$n=function(y,W,c){var Z;if(W&&!(W==null?0:(Z=W.sequenceMetaData)==null?0:Z.skipProcessing)&&y.responseProcessorMap){Z=_.z(WbE);for(var G=Z.next();!G.done;G=Z.next())G=G.value,y.responseProcessorMap[G]&&y.responseProcessorMap[G].handleResponse(W,c)}};
ozE=function(y,W,c,Z){Z=Z===void 0?function(){}:Z;
var G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI,sD,ED,N1,bf,Py,WJ,t5,xF,M3,wS,f8,eV,N3,K8,PJ,cX,a$,oI,Zg,xW,dS;return _.m(function(bE){switch(bE.nextAddress){case 1:Y=(G=W.config)==null?void 0:(D=G.storeStrategy)==null?void 0:D.storeKey;if(!(Y&&y.innertubeResponseStore&&y.innertubeResponseStore.has(Y))||((u=W.config)==null?0:(t=u.storeStrategy)==null?0:t.disableCache)){bE.jumpTo(2);break}return _.n(bE,y.innertubeResponseStore.get(Y),3);case 3:if((b=bE.yieldResult)&&!b.isExpired())return bE.return(Promise.resolve(_.Zs(b)));
case 2:if(!((r=W)==null?0:(F=r.innerTubeRequest)==null?0:F.context)){bE.jumpTo(4);break}K=W.innerTubeRequest.context;if(!(y.asyncContextProcessors&&y.asyncContextProcessors.length>0)){bE.jumpTo(5);break}l=[];N=_.z(y.asyncContextProcessors);for(P=N.next();!P.done;P=N.next())V=P.value,Q=V.processContext(W),Q.wrappedPromise_&&l.push(Q.wrappedPromise_);if(!(l.length>0)){bE.jumpTo(5);break}return _.n(bE,Promise.all(l),5);case 5:S=_.z(y.contextProcessors||[]),cy=S.next();case 8:if(cy.done){bE.jumpTo(4);
break}M=cy.value;return _.n(bE,M.processContext(K),9);case 9:cy=S.next();bE.jumpTo(8);break;case 4:if((fa=y.localInnertubeRouter)==null||!fa.shouldPreferLocalResponse(W.input,W.innerTubeRequest)){bE.jumpTo(12);break}return _.n(bE,y.localInnertubeRouter.localInnertubeResponse(W.input,W.innerTubeRequest),13);case 13:return jI=bE.yieldResult,$n(y,jI,W),bE.return(jI);case 12:return(N1=(ED=W.config)==null?void 0:ED.requestKey)&&y.inflightRequests.has(N1)?sD=y.inflightRequests.get(N1):(bf=JSON.stringify(W.innerTubeRequest),
t5=(WJ=(Py=W.requestShell)==null?void 0:Py.headers)!=null?WJ:{},W.requestShell=Object.assign({},W.requestShell,{headers:Object.assign({},t5,c)}),xF=Object.assign({},W.requestShell),W.requestShell.method==="POST"&&(xF=Object.assign({},xF,{body:bf})),((M3=W.config)==null?0:M3.requestTick)&&_.PA(W.config.requestTick),wS=function(){return y.networkManager.fetch(W.input,xF,W.config)},sD=y.requestSequencer?zQQ(y.requestSequencer,W,wS):wS(),N1&&y.inflightRequests.set(N1,sD)),_.n(bE,sD,14);
case 14:if((f8=bE.yieldResult)&&"error"in f8&&((eV=f8)==null?0:(N3=eV.error)==null?0:N3.details))for(K8=f8.error.details,PJ=_.z(K8),cX=PJ.next();!cX.done;cX=PJ.next())a$=cX.value,(oI=a$["@type"])&&cXV.indexOf(oI)>-1&&(delete a$["@type"],f8=a$);N1&&y.inflightRequests.has(N1)&&y.inflightRequests.delete(N1);((Zg=W.config)==null?0:Zg.responseTick)&&_.PA(W.config.responseTick);if(f8||(xW=y.localInnertubeRouter)==null||!xW.canProvideFallbackResponse(W.input,W.innerTubeRequest)){bE.jumpTo(15);break}return _.n(bE,
y.localInnertubeRouter.localFallbackInnertubeResponse(W.input,W.innerTubeRequest),16);case 16:f8=bE.yieldResult;case 15:return $n(y,f8,W),((dS=W.config)==null?0:dS.processorTick)&&_.PA(W.config.processorTick),Z(),bE.return(f8||void 0)}})};
_.Nu=function(y,W){return ywE(W,y.endpointMap)};
QMV=function(y,W){y=cwy(W,y.endpointMap);if(y!==void 0)return Promise.resolve(y)};
ftJ=function(y,W){var c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1){G=(c=y)==null?void 0:(Z=c.authStrategy)==null?void 0:Z.sessionIndex;var u=_.sc(n$t({sessionIndex:G}));return _.n(Y,u,2)}D=Y.yieldResult;return Y.return(Promise.resolve(Object.assign({},Zmh(W),D)))})};
G1Q=function(y,W){var c;y=y==null?void 0:(c=y.authStrategy)==null?void 0:c.sessionIndex;c=n$t({sessionIndex:y});return Object.assign({},Zmh(W),c)};var YaV,mAQ,scT,udJ,tHm,nzi,rXV,Fbi,g$,UAm,$A8,bM2,KbZ;YaV=0;mAQ=/tone[1-5]/;scT=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");udJ="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
tHm=Number.MAX_SAFE_INTEGER;nzi=RegExp("\ufe0f","g");_.KB=function(y){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;y&&_.X9V(this,y)};
_.X9V=function(y,W){try{_.ZP(W,{context:y,onSuccess:function(Z,G){Array.isArray(G)?y.load(G):(Z=new _.ul("Emoji manager JSON response was not an array!",{response:G}),_.OP(Z))},
onError:function(Z){Z=new _.ul("Failed to retrieve emoji manager initial JSON data!",{url:W,statusCode:kN(Z).toString()});_.Rs(Z)}})}catch(Z){var c=new _.ul("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:W});
_.Rs(c)}};
_.KB.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.KB.prototype.load=function(y,W){if(W)if(y.length)y=y.concat(W.emojis);else{this.emojis=W.emojis;this.emojiMap=W.emojiMap;this.emojiShortcutMap=W.emojiShortcutMap;this.emojiShortcutCharMap=bM2(W);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=W.emojiRegex;return}this.emojis=[].concat(_.No(new Set(this.emojis.concat(y))));this.hasInitializedShortcutCharMap=!1;y=Array(this.emojis.length);for(W=0;W<this.emojis.length;W++){var c=this.emojis[W];if(c.emojiId){this.emojiMap[c.emojiId]=c;this.emojiMap[c.emojiId].index=
W;for(var Z=0;c.shortcuts&&Z<c.shortcuts.length;Z++)this.emojiShortcutMap[c.shortcuts[Z].toLocaleLowerCase()]=c;y[W]=c.isCustomEmoji&&c.shortcuts?c.shortcuts[0]:c.emojiId}}y.sort(function(G,D){return D.length-G.length});
if(y.length)try{this.emojiRegex=new RegExp(y.join("|").replace("*","\\*"),"gi")}catch(G){this.emojiRegex=/$./}else this.emojiRegex=/$./};
rXV=function(y,W){W=_.z(W);for(var c=W.next();!c.done;c=W.next()){var Z=c.value;if(Z.emojiId&&y.emojiMap[Z.emojiId]){c=Object.assign({},y.emojiMap[Z.emojiId],Z);y.emojiMap[Z.emojiId]=c;var G=void 0;c.index&&((G=y.emojis[c.index])==null?void 0:G.emojiId)===Z.emojiId&&(y.emojis[c.index]=c);Z=void 0;if((Z=c.shortcuts)==null?0:Z.length)for(y.hasInitializedShortcutCharMap=!1,Z=_.z(c.shortcuts),G=Z.next();!G.done;G=Z.next())y.emojiShortcutMap[G.value.toLocaleLowerCase()]=c}}};
Fbi=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.tI.getInstance(),2);if(Z.nextAddress!=3)return(W=Z.yieldResult)?_.n(Z,W.get("ytlc-emoji-pref"),3):Z.return();(c=Z.yieldResult)&&rXV(y,Object.keys(c).map(function(G){return{emojiId:G,stickyPrefId:c[G]}}).filter(function(G){return!!G.emojiId&&!!G.stickyPrefId}));
_.F2(Z)})};
_.Os=function(y,W,c){return(y=y.emojiMap[W])&&(!y.isLocked||c!==void 0&&c)?y:void 0};
g$=function(y,W,c){c=_.Os(y,W,c===void 0?!1:c);var Z=W.match("\u200d");c&&y.skinTone!==0&&(y=(Z==null?void 0:Z.length)===1?_.Os(y,W.replace("\u200d",scT[y.skinTone]+"\u200d")):_.Os(y,W+scT[y.skinTone]))&&(c=y);return c};
UAm=function(y,W){var c=y.emojiMap[W];return(c==null?0:c.stickyPrefId)?y.emojiMap[c.stickyPrefId]:g$(y,W)};
_.sd=function(y,W){y=y.emojiShortcutMap[W.toLocaleLowerCase()];return!y||y.isLocked?null:y};
$A8=function(y,W,c){return bM2(y,c===void 0?!1:c)[W]||{}};
bM2=function(y,W){W=W===void 0?!1:W;if(!y.hasInitializedShortcutCharMap){y.hasInitializedShortcutCharMap=!0;for(var c=0;c<y.emojis.length;c++){var Z=y.emojis[c];if(!(Z.isLocked||W&&Z.isCustomEmoji&&Z.emojiId&&!y.pickerCustomEmojiIds.includes(Z.emojiId)))for(var G=0;Z.shortcuts&&G<Z.shortcuts.length;G++){var D=Z.shortcuts[G];D.startsWith(":_")&&Z.isCustomEmoji&&(y.emojiShortcutCharMap[":_"]==null&&(y.emojiShortcutCharMap[":_"]=Object.create(null)),y.emojiShortcutCharMap[":_"][D]=Z);if(!(D.length<3||
!Z.isCustomEmoji&&mAQ.test(D))){var Y=D.substr(0,3).toLocaleLowerCase();y.emojiShortcutCharMap[Y]==null&&(y.emojiShortcutCharMap[Y]=Object.create(null));y.emojiShortcutCharMap[Y][D]=Z}}}}return y.emojiShortcutCharMap};
_.KB.prototype.createEmoji=function(y,W){W=W===void 0?!0:W;var c=document.createElement("img");y.isCustomEmoji||c.classList.add("small-emoji");c.classList.add("emoji");c.classList.add("yt-formatted-string");c.src=y.image?_.h3(y.image.thumbnails,this.emojiSize)||"":"";var Z=void 0;y.image&&y.image.accessibility&&y.image.accessibility.accessibilityData&&(Z=y.image.accessibility.accessibilityData.label);c.alt=Z?Z:(y.isCustomEmoji&&y.shortcuts?y.shortcuts[0]:y.emojiId)||"";y.isCustomEmoji&&(c.dataset.emojiId=
y.emojiId);_.G$&&(c.setAttribute("contenteditable","false"),c.setAttribute("unselectable","on"));W&&(y.shortcuts&&y.shortcuts.length&&c.setAttribute("shared-tooltip-text",y.shortcuts[0]),c.id="emoji-"+YaV++);return c};
_.KB.prototype.createDocumentFragment=function(y,W,c,Z){W=W===void 0?!1:W;c=c===void 0?!0:c;Z=Z===void 0?!1:Z;y=y.replace(nzi,"");for(var G=document.createDocumentFragment(),D=0,Y,u=0;(Y=this.emojiRegex.exec(y))!=null;){var t=_.Os(this,Y[0])||_.sd(this,Y[0]);!t||t.isCustomEmoji&&!W||(t=this.createEmoji(t,c),D!==Y.index&&G.appendChild(document.createTextNode(y.substring(D,Y.index))),G.appendChild(t),D=Y.index+Y[0].length,u++)}if(!Z||u)return G.appendChild(document.createTextNode(y.substr(D))),G};
KbZ=function(y,W,c){var Z,G,D,Y,u,t,b,r,F;return _.m(function(K){if(K.nextAddress==1){if(!W.emojiId||!y.emojiMap[W.emojiId])return K.return();Z=Object.assign({},y.emojiMap[W.emojiId],{stickyPrefId:c});y.emojiMap[W.emojiId]=Z;W.index&&((G=y.emojis[W.index])==null?void 0:G.emojiId)===W.emojiId&&(y.emojis[W.index]=Z);if((D=W.shortcuts)==null?0:D.length)for(y.hasInitializedShortcutCharMap=!1,Y=_.z(W.shortcuts),u=Y.next();!u.done;u=Y.next())t=u.value,y.emojiShortcutMap[t.toLocaleLowerCase()]=Z;return _.n(K,
_.tI.getInstance(),2)}if(K.nextAddress!=4)return(b=K.yieldResult)?_.n(K,b.get("ytlc-emoji-pref"),4):K.jumpTo(0);F=(r=K.yieldResult)!=null?r:{};F[W.emojiId]=c;return _.n(K,b.set("ytlc-emoji-pref",F,tHm),0)})};
_.RZ=new _.KB;var RQV;_.lu={};
RQV={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.O("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:_.O("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 B$(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 y=_.p(this.hostElement||this).querySelector("#inline-action-button-container");y&&y.setAttribute("aria-hidden","true");this.menuButton=_.p(this.hostElement).querySelector("#menu-button")},
attached:function(){var y=this.menuButton;y&&(y.addEventListener("focusin",_.qO(this,this.onMenuButtonFocus_)),y.addEventListener("focusout",_.qO(this,this.onMenuButtonBlur_)))},
detached:function(){var y=this.menuButton;y&&(y.removeEventListener("focusin",_.qO(this,this.onMenuButtonFocus_)),y.removeEventListener("focusout",_.qO(this,this.onMenuButtonBlur_)))},
identity:_.AH,truthy:function(y){return!!y},
computeTimestampString:function(y){return y?y.timestampText?this.getSimpleString(y.timestampText):this.TIME_FORMATTER.format(new Date(y.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(y){return _.O("live_chat_whole_message_clickable")&&y},
computeMenuVisible_:function(y,W){return y||W},
computeHasInlineActionButtons:function(y){if(!y)return!1;var W,c;return!((W=y.inlineActionButtons)==null||!W.length)||!((c=y.additionalInlineActionButtons)==null||!c.length)},
createDocumentFragmentFromString:function(y){var W=_.RZ.createDocumentFragment.bind(_.RZ),c;if((c=this.participantsManager)==null||!c.viewerRegex)return W(y);c=document.createDocumentFragment();for(var Z=0,G;(G=this.participantsManager.viewerRegex.exec(y))!=null;){if(G.index>0){var D=":"+G[0]+":";if((_.Os(_.RZ,D)||_.sd(_.RZ,D))&&y.indexOf(D)===G.index-1)continue}c.appendChild(W(y.substring(Z,G.index)));Z=document.createElement("span");Z.appendChild(W(G[0]));Z.classList.add("mention");c.appendChild(Z);
Z=G.index+G[0].length}c.appendChild(W(y.substring(Z)));return c},
createDocumentFragment:function(y){var W=document.createDocumentFragment();if(y.simpleText)return W.appendChild(this.createDocumentFragmentFromString(y.simpleText)),W;if(!y.runs)return W;for(var c=0;c<y.runs.length;c++){var Z=y.runs[c];if(Z.emoji)W.appendChild(_.RZ.createEmoji(Z.emoji));else if(Z.text)if(Z.navigationEndpoint){var G=document.createElement("a");G.classList.add("yt-simple-endpoint");AzE(G,Z.navigationEndpoint);_.p(G).appendChild(this.createDocumentFragmentFromString(Z.text));W.appendChild(G)}else W.appendChild(this.createDocumentFragmentFromString(Z.text))}return W},
hasModerationOverlayVisible:function(){var y;return((y=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:y.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(y){y.composedPath().some(function(W){return(W=W instanceof Element?W:null)?W.tagName&&(W.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||W.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.O("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(y)},
colorFromDecimal:function(y){return SFH(y)},
markAsDeleted:function(y,W){this.set("data.deletedStateMessage",y);this.set("data.showOriginalContentMessage",W)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(y){if(this.data.contextMenuEndpoint){var W=_.U().resolve(_.tq),c=this.data.contextMenuEndpoint,Z;(Z=_.Ee.instance)&&_.Nu(Z,c)?(W=OMT(W,c),Z=_.OU(Z,{},W)):Z=_.gzE(W,c);Z.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);y&&y.stopPropagation()}},
handleGetContextMenuResponse_:function(y){var W=_.Ee.instance;W&&_.Nu(W,{liveChatEndpoint:{}})||(y=y.response);y.liveChatItemContextMenuSupportedRenderers&&y.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(y.liveChatItemContextMenuSupportedRenderers.menuRenderer);y.actions&&_.GG(this.hostElement,"yt-live-chat-actions",[y.actions])},
handleGetContextMenuError:function(y){if(y instanceof Error||y instanceof Object||y instanceof String)var W=y;_.OP(new _.ul("Error encountered calling GetLiveChatItemContextMenu",W))},
showContextMenu_:function(y){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:y}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Z2(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Z2(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.lu.YtLiveChatItemBehavior=[RQV,_.KA.YtComponentBehavior,_.e_.YtOpenPopupBehavior];_.Es=function(){};var lti;var Ez5;var Nh0;var It3;var p9E=function(){var y=_.v.apply(this,arguments)||this;y.active=!1;y.identity=_.AH;return y};
_.R(p9E,_.v);p9E.prototype.dataChanged=function(){this.active=!1};
p9E.prototype.onClick=function(){_.Z2(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
var N0=p9E;N0.prototype.dataChanged=N0.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],N0.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],N0.prototype,"active",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],N0.prototype,"dataChanged",null);N0=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],N0);
_.T(N0,"yt-live-chat-text-input-field-suggestion",function(){if(It3===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;Nh0===void 0&&(Nh0=document.createElement("template"));var Z=Nh0;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);It3=y}y=It3;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});_.IZ=function(y,W,c){return CustomEvent.call(this,y,{detail:{value:W,path:c}})||this};
_.R(_.IZ,CustomEvent);var PSW=function(){var y=_.v.apply(this,arguments)||this;y.viewerName=null;y.actionMap={"yt-live-chat-actions":"onChatMessage_"};y.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];y.PARTICIPANT_TIME_USEC_=3E8;return y};
_.R(PSW,_.v);_.f=PSW.prototype;_.f.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.f.addParticipant=function(y){var W=_.EFO(this.participants,y,function(Z,G){Z=Z[Object.keys(Z)[0]];G=G[Object.keys(G)[0]];Z=String(_.v$(Z.authorName)).toLowerCase();G=String(_.v$(G.authorName)).toLowerCase();return Z<G?-1:Z==G?0:1}.bind(this));
if(W>=0){var c=this.participants[W];c[Object.keys(c)[0]].timestampUsec&&this.splice("participants",W,1,y)}else this.splice("participants",-W-1,0,y);y=y[Object.keys(y)[0]];W=_.v$(y.authorName).toLocaleLowerCase();c=W.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(c)||(this.allParticipantsCharMap_[c]={});this.allParticipantsCharMap_[c][W]=y};
_.f.getAuthorsFromPrefix=function(y){return this.allParticipantsCharMap_.hasOwnProperty(y)?this.allParticipantsCharMap_[y]:null};
_.f.computeViewerRegex_=function(y){if(!y)return null;y=y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("([@#]"+y.replace(/ /g,"\\s*")+"|^"+y.replace(/ /g,"\\s*")+"$|^"+y.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+y.replace(/ /g,"\\s*")+"$|(?<=\\s)"+y.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.f.checkForStaleParticipants_=function(){var y=this;this.trimOldParticipants_();this.asyncHandle_&&boh(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.O0(function(){y.checkForStaleParticipants_()},3E4))};
_.f.onChatMessage_=function(y){var W=this,c=Date.now()*1E3;y.forEach(function(Z){if(Z=_.g(Z,dDi)){Z=Z.item;var G=Object.keys(Z)[0];W.SUPPORTED_ITEM_TYPES_.indexOf(G)!=-1&&Z[G].timestampUsec>=c-W.PARTICIPANT_TIME_USEC_&&W.addParticipant(Z)}},this);
this.checkForStaleParticipants_()};
_.f.trimOldParticipants_=function(){for(var y=Date.now()*1E3,W=this.participants.length-1;W>=0;W--){var c=this.participants[W];c=c[Object.keys(c)[0]];c.timestampUsec&&c.timestampUsec<y-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",W,1)}};
_.pB=PSW;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],_.pB.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],_.pB.prototype,"viewerName",void 0);_.x([_.L({computed:"computeViewerRegex_(viewerName)"}),_.e("design:type",Object)],_.pB.prototype,"viewerRegex",void 0);_.x([_.L({value:function(){return[]},
notify:!0}),_.e("design:type",Array)],_.pB.prototype,"participants",void 0);_.pB=_.x([_.n6({is:"yt-live-chat-participants-manager",noInjection:!0})],_.pB);var JXQ=/.*([:@#].*?)$/,P8=/\u00a0/g,VHE=String.fromCharCode(160),CST={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"},Qci=function(){var y=_.v.apply(this,arguments)||this;y.disabled=!1;y.liveChatRichMessageInput=null;y.messageInput=null;y.isValidWithNoInputText=!1;y.suggestions=[];y.emojiManager=_.RZ;y.inputMethodEditorActive=
!1;y.suggestionIndex=-1;y.JSC$11809_lastSuggestionRange=null;return y};
_.R(Qci,_.v);_.f=Qci.prototype;_.f.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.f.attached=function(){_.fi&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.f.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.f.dataChanged=function(){if(!this.ignoreColorMapping){var y=!1,W={},c;for(c in CST)this.data&&this.data.hasOwnProperty(c)&&(W[CST[c]]=this.colorFromDecimal(this.data[c]),y=!0);y&&_.wM(this.hostElement,W)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.f.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.f.colorFromDecimal=function(y){y=Math.floor(Number(y));return"rgba("+[y>>16&255,y>>8&255,y&255,(y>>24&255)/255].join()+")"};
_.f.preventDrag=function(y){y.dataTransfer&&(y.dataTransfer.dropEffect="none");y.preventDefault()};
_.f.preventResize=function(y){y.returnValue=!1};
_.f.onInputChange=function(){var y=this.characterCount,W=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&W&&W.remove();if(!W&&this.characterCount>this.maxCharacterLimit){var c=window.getSelection();if(c){var Z=c.getRangeAt(0);c.removeAllRanges();c.addRange(Z)}}if(c=this.getCurrentRange())Z=this.calculateTextBeforeRange(c),this.completeEmojisInRange(c,Z,!0)||this.updateSuggestions(c,Z);Z=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Z);
_.Z2(this.hostElement,"yt-live-chat-message-input-change",Z);W&&this.characterCount===0&&W.remove();c&&c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>y):c&&!c.collapsed&&c.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(y=this.input.childNodes.length-1;y>=0;y--)this.input.childNodes[y].nodeName==="BR"&&this.input.childNodes[y].remove()};
_.f.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.f.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var y=this.getCurrentRange();y&&y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.f.mergeOverflowText=function(y){if(y){var W=document.createRange();W.selectNodeContents(y);W=W.extractContents();this.input.insertBefore(W,y)}};
_.f.checkRangeAtEndOfInput=function(){var y=this.getCurrentRange();if(y){var W=_.p(this.hostElement).querySelector("#overflow-text"),c=document.createRange();W&&W.previousSibling?W.previousSibling instanceof HTMLImageElement?c.selectNode(W.previousSibling):c.selectNodeContents(W.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?c.selectNode(this.input.lastChild):c.selectNodeContents(this.input.lastChild));c.collapse(!1);return c.isPointInRange(y.startContainer,
y.startOffset)}return!1};
_.f.handleOverflowText=function(y){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var W=_.p(this.hostElement).querySelector("#overflow-text"),c=this.getCurrentRange();this.input.normalize();y=this.checkRangeAtEndOfInput()&&y;this.mergeOverflowText(W);for(var Z,G=0,D=0,Y,u=this.input.childNodes,t=0;t<u.length;t++){var b=u[t];b instanceof Text?(D+=b.textContent.length,D>this.maxCharacterLimit&&(Z=b,G=this.maxCharacterLimit+b.textContent.length-D)):b instanceof HTMLImageElement&&
(Z=void 0,D=b.dataset.emojiId&&((Z=this.data)==null?0:Z.emojiCharacterCount)?D+this.data.emojiCharacterCount:D+b.alt.length,Z=this.input,G=t);if(D>this.maxCharacterLimit&&Z){Y=document.createRange();Y.collapse(!1);W?(D=this.input.lastChild.previousSibling,D instanceof Text?Y.setEnd(this.input.lastChild.previousSibling,D.textContent.length):D instanceof HTMLImageElement&&Y.setEnd(this.input,this.input.childNodes.length-1)):Y.selectNodeContents(this.input);Y.setStart(Z,G);break}}Y&&(Z=!1,c&&(y=Y.isPointInRange(c.startContainer,
c.startOffset-1)),W||(W=document.createElement("span"),W.id="overflow-text",W.textContent="",W.setAttribute("contenteditable","true"),_.p(_.p(this.hostElement).querySelector("#input")).appendChild(W),Z=!0),W&&(c=Y.extractContents(),W.insertBefore(c,W.firstChild),y&&W.firstChild&&(c=document.createRange(),Z?c.setStartAfter(W.lastChild):c.setStartAfter(W.firstChild),c.collapse(!0),W=window.getSelection(),W.removeAllRanges(),W.addRange(c))))}};
_.f.checkForDuplicateSpans=function(){for(var y=0;y<this.input.childNodes.length;y++){var W=this.input.childNodes[y];if(W.nodeName==="SPAN"){var c=document.createRange();c.selectNodeContents(W);c=c.extractContents();this.input.insertBefore(c,W);W.remove()}}this.handleOverflowText(!0)};
_.f.getCurrentRange=function(){var y=window.getSelection();return y&&y.rangeCount?y.getRangeAt(0).cloneRange():null};
_.f.getInputRange=function(){var y=this.getCurrentRange();if(y){for(var W=y.commonAncestorContainer,c=!1,Z=_.p(this.hostElement).querySelector("#input");W;){if(W===Z){c=!0;break}W=W.parentNode}c||(y=null)}y||(y=this.getRangeAtEnd());return y};
_.f.getRangeAtEnd=function(){var y=document.createRange(),W=_.p(this.hostElement).querySelector("#input").lastChild;!W||W.nodeName!=="#text"&&W.nodeName!=="SPAN"?(y.selectNodeContents(_.p(this.hostElement).querySelector("#input")),y.collapse(!1)):W.nodeName==="#text"?y.setStart(W,W.textContent.length):y.setStart(W,W.childNodes.length);return y};
_.f.getSuggestions=function(y){var W=[],c=y.substring(0,3),Z=$A8(_.RZ,c,!0);if(Z)for(var G in Z)if(G.toLocaleLowerCase().indexOf(y)===0){var D=Z[G];if(D&&D.emojiId){if(D=UAm(_.RZ,D.emojiId)){var Y=void 0,u=void 0,t=void 0,b=void 0,r=((Y=D.image)==null?0:(u=Y.accessibility)==null?0:(t=u.accessibilityData)==null?0:t.label)||D.isCustomEmoji?(b=D.shortcuts)==null?void 0:b[0]:D.emojiId;W.push({suggestion:{emoji:!0,image:D.image,alt:r,text:G,textToInsertWhenSelected:D.isCustomEmoji?G:r}})}if(W.length>=
64)break}}if(!this.participantsManager)return null;G=_.O("enable_web_yt_handles")||_.O("enable_live_chat_yt_handles");if(c.indexOf("@")===0||c.indexOf("#")===0)if(Z=c.charAt(0),G&&c.indexOf("@")===0?c=c.substring(0,2):(y=y.substring(1),c=c.substring(1)),c=this.participantsManager.getAuthorsFromPrefix(c))for(var F in c)if(F.indexOf(y)===0&&(G=c[F],D=_.v$(G.authorName),W.push({suggestion:{author:!0,authorType:Z,image:G.authorPhoto,alt:D,text:D}}),W.length>=64))break;return W?W.sort(function(K,l){return l.suggestion.text<
K.suggestion.text?-1:l.suggestion.text===K.suggestion.text?0:1}):null};
_.f.insertSuggestion=function(y){y.emoji?this.insertTextAtRange(this.JSC$11809_lastSuggestionRange,y.textToInsertWhenSelected||""):y.author&&this.insertTextAtRange(this.JSC$11809_lastSuggestionRange,y.authorType+y.text+VHE)};
_.f.updateSuggestionsAtCaret=function(){var y=this.getCurrentRange();y&&this.updateSuggestions(y,this.calculateTextBeforeRange(y))};
_.f.offsetStartOfRangeBy=function(y,W){for(;W>0;)if(y.startOffset-W>=0){y.setStart(y.startContainer,y.startOffset-W);break}else{W=y.startContainer instanceof HTMLImageElement?W-y.startContainer.alt.length:W-y.startOffset;var c=y.startContainer.previousSibling;if(!c){y.setStart(y.startContainer,0);break}if(_.O("live_chat_require_space_for_autocomplete_emoji")){var Z=void 0,G=void 0;y.setStart(c,((Z=c)==null?void 0:(G=Z.textContent)==null?void 0:G.length)||0)}else y.setStart(c,c.childNodes.length||
0)}};
_.f.updateSuggestions=function(y,W){var c=this;this.JSC$11809_lastSuggestionRange&&(this.JSC$11809_lastSuggestionRange.detach(),this.JSC$11809_lastSuggestionRange=null);if((W=JXQ.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2&&(this.offsetStartOfRangeBy(y,W.length),this.JSC$11809_lastSuggestionRange=y,(y=this.getSuggestions(W))&&y.length))){this.suggestions=y;_.Lv(this,function(){_.p(c.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(y.length-1);return}this.dropdown.opened=!1};
_.f.completeEmojisInRange=function(y,W,c){var Z=W.replace(/[\s\xa0]+$/,"");W=W.length-Z.length;Z=Z.split(" ");Z=Z[Z.length-1].trim().toLocaleLowerCase();var G=Z.lastIndexOf(":");if(c&&!W&&G!==Z.length-1)return!1;G!==-1&&(c=Z.lastIndexOf(":",G-1),c!==-1&&(Z=Z.substring(c)));if((c=_.sd(_.RZ,Z))&&c.emojiId){c=UAm(_.RZ,c.emojiId)||null;this.offsetStartOfRangeBy(y,Z.length+W);var D,Y,u,t;Z=(((D=c)==null?0:D.isCustomEmoji)?(Y=c)==null?void 0:(u=Y.shortcuts)==null?void 0:u[0]:(t=c)==null?void 0:t.emojiId)||
"";W&&(Z+=VHE);this.insertTextAtRange(y,Z);this.dropdown.opened=!1;return!0}return!1};
_.f.onSuggestion=function(y){this.insertSuggestion(y.detail);this.dropdown.opened=!1};
_.f.onKeyPress=function(y){y.keyCode===13&&(y.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Z2(this.hostElement,"yt-live-chat-send-message"))};
_.f.completeEmojis=function(){var y=document.createRange(),W=_.p(this.hostElement).querySelector("#input").lastChild;W?y.setStart(W,W.childNodes.length):(y.selectNodeContents(_.p(this.hostElement).querySelector("#input")),y.collapse(!1));this.completeEmojisInRange(y,this.calculateTextBeforeRange(y),_.O("live_chat_require_space_for_autocomplete_emoji"))};
_.f.maybePreventTextFormatting=function(y){!_.z$||!y.ctrlKey&&!y.metaKey||y.keyCode!==66&&y.keyCode!==73||(y.stopImmediatePropagation(),y.preventDefault())};
_.f.onKeyDown=function(y){this.maybePreventTextFormatting(y);if(this.dropdown.opened)switch(y.keyCode){case 27:this.dropdown.opened=!1;y.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;y.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);y.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),y.preventDefault()}};
_.f.onKeyUp=function(y){switch(y.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.G$)this.onInputChange()};
_.f.changeSuggestionIndex=function(y){if(this.dropdown.opened){var W=_.p(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<W.children.length&&(W.children[this.suggestionIndex].active=!1);var c=this.suggestions.length;this.suggestionIndex=(y+c)%c;y=W.children[this.suggestionIndex];y.active=!0;W.scrollTop=y.offsetTop}};
_.f.onInputPaste=function(y){y.preventDefault();(y=y.clipboardData)&&y.types&&(y=y.getData("text/plain")||"",y=y.replace(/\n/g,""),this.insertText(y));(y=this.getCurrentRange())&&y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.f.onFocus=function(){this._setFocused(!0)};
_.f.onBlur=function(){this._setFocused(!1)};
_.f.insertText=function(y){this.insertTextAtRange(this.getInputRange(),y)};
_.f.insertTextAtRange=function(y,W){if(y&&(y.collapsed||y.deleteContents(),W=_.RZ.createDocumentFragment(W,!0,!1))){for(var c=_.z((W==null?void 0:W.childNodes)||[]),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var G=void 0,D=void 0,Y=void 0,u=void 0,t=void 0;(Y=(G=window)==null?void 0:(D=G.ShadyCSS)==null?void 0:D.ScopingShim)==null||(t=(u=Y).scopeNode)==null||t.call(u,Z,this.hostElement.localName)}c=W.lastChild;y.insertNode(W);this.focused||this.input.focus();if(this.focused){y=y.cloneRange();y.selectNodeContents(c);
y.collapse(!1);if(W=window.getSelection())W.removeAllRanges(),W.addRange(y);y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}y=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(y);_.Z2(this.hostElement,"yt-live-chat-message-input-change",y)}};
_.f.setLiveChatRichMessageInput=function(y){_.p(_.p(this.hostElement).querySelector("#input")).textContent="";if(y&&y.textSegments){for(var W=0;W<y.textSegments.length;W++){var c=y.textSegments[W];c.text?_.p(_.p(this.hostElement).querySelector("#input")).appendChild(_.RZ.createDocumentFragment(c.text,!0,!1)):c.emojiId&&(c=_.Os(_.RZ,c.emojiId))&&_.p(_.p(this.hostElement).querySelector("#input")).appendChild(_.RZ.createEmoji(c,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.f.setText=function(y){this.setLiveChatRichMessageInput(y?{textSegments:[{text:y}]}:null)};
_.f.calculateTextBeforeRange=function(y){var W="",c=y.startContainer;if(c&&c instanceof Text){var Z;W=((Z=c.textContent)==null?void 0:Z.substring(0,y.startOffset))||"";c=c.previousSibling}for(;c&&c instanceof Text;)W=c.textContent+W,c=c.previousSibling;return W.replace(P8," ")};
_.f.calculateLiveChatRichMessageInput=function(){for(var y=[],W="",c=_.p(_.p(this.hostElement).querySelector("#input")).childNodes,Z=0;Z<c.length;Z++){var G=c[Z];G instanceof Text?W+=G.textContent:G instanceof HTMLImageElement&&(G.dataset.emojiId?(W&&(y.push({text:W.replace(P8," ")}),W=""),y.push({emojiId:G.dataset.emojiId})):W+=G.alt)}W&&y.push({text:W.replace(P8," ")});if(c=_.p(this.hostElement).querySelector("#overflow-text")){W="";c=c.childNodes;for(Z=0;Z<c.length;Z++)G=c[Z],G instanceof Text?
W+=G.textContent:G instanceof HTMLImageElement&&(G.dataset.emojiId?(W&&(y.push({text:W.replace(P8," ")}),W=""),y.push({emojiId:G.dataset.emojiId})):W+=G.alt);W&&y.push({text:W.replace(P8," ")})}return{textSegments:y}};
_.f.computeCharacterCount=function(y){if(!y||!y.textSegments)return 0;for(var W=0,c=0;c<y.textSegments.length;c++){var Z=y.textSegments[c];if(Z.text)W+=Z.text.length;else if(Z.emojiId){var G=void 0;if((G=this.data)==null?0:G.emojiCharacterCount)W+=this.data.emojiCharacterCount;else{var D=G=void 0,Y=void 0;W+=((D=_.Os(_.RZ,(G=Z)==null?void 0:G.emojiId))==null?void 0:(Y=D.shortcuts)==null?void 0:Y[0].length)||0}}}return W};
_.f.characterCountChanged=function(){_.Z2(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.f.focusedChanged=function(){this.hostElement.dispatchEvent(new _.IZ("focused-changed",this.focused))};
_.f.focus=function(){this.setFocus(!1)};
_.f.focusAtEnd=function(){this.setFocus(!0)};
_.f.setFocus=function(y){y=y?this.getRangeAtEnd():this.getInputRange();_.p(this.hostElement).querySelector("#input").focus();var W=window.getSelection();W&&(W.removeAllRanges(),W.addRange(y))};
_.f.insertEmoji=function(y){var W,c=((y==null?0:y.isCustomEmoji)?(W=y.shortcuts)==null?void 0:W[0]:y==null?void 0:y.emojiId)||"";this.insertText(c)};
_.f.computeText=function(y){if(!y||!y.textSegments)return"";for(var W="",c=0;c<y.textSegments.length;c++){var Z=y.textSegments[c];if(Z.text)W+=Z.text;else if(Z.emojiId){var G=void 0,D=void 0,Y=void 0;W+=((D=_.Os(_.RZ,(G=Z)==null?void 0:G.emojiId))==null?void 0:(Y=D.shortcuts)==null?void 0:Y[0])||""}}return W};
_.f.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.dJ.Object.defineProperties(Qci.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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}}});
var Jy=Qci;Jy.prototype.focusedChanged=Jy.prototype.focusedChanged;Jy.prototype.characterCountChanged=Jy.prototype.characterCountChanged;Jy.prototype.onSuggestion=Jy.prototype.onSuggestion;Jy.prototype.onMessageSet=Jy.prototype.onMessageSet;Jy.prototype.dataChanged=Jy.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Jy.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Jy.prototype,"disabled",void 0);_.x([_.A("disabled"),_.e("design:type",Number),_.e("design:paramtypes",[])],Jy.prototype,"inputTabIndex",null);
_.x([_.A("data.maxCharacterLimit"),_.L({readOnly:!0,notify:!0}),_.e("design:type",Number),_.e("design:paramtypes",[])],Jy.prototype,"maxCharacterLimit",null);_.x([_.A("liveChatRichMessageInput"),_.L({readOnly:!0,notify:!0}),_.e("design:type",Number),_.e("design:paramtypes",[])],Jy.prototype,"characterCount",null);_.x([_.A("maxCharacterLimit, characterCount"),_.L({readOnly:!0,notify:!0}),_.e("design:type",Number),_.e("design:paramtypes",[])],Jy.prototype,"remainingCharacterCount",null);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Jy.prototype,"isChatMessageInput",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Jy.prototype,"inputExpanded",void 0);_.x([_.L({readOnly:!0,notify:!0}),_.e("design:type",Object)],Jy.prototype,"liveChatRichMessageInput",void 0);_.x([_.L(),_.e("design:type",Object)],Jy.prototype,"messageInput",void 0);_.x([_.L(),_.e("design:type",Boolean)],Jy.prototype,"ignoreColorMapping",void 0);
_.x([_.A("characterCount"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Jy.prototype,"hasText",null);_.x([_.L(),_.e("design:type",Object)],Jy.prototype,"isValidWithNoInputText",void 0);_.x([_.A("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.L(),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Jy.prototype,"isInputValid",null);_.x([_.L({readOnly:!0,value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Jy.prototype,"focused",void 0);
_.x([_.L(),_.e("design:type",Array)],Jy.prototype,"suggestions",void 0);_.x([_.L(),_.e("design:type",_.KB)],Jy.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",_.pB)],Jy.prototype,"participantsManager",void 0);_.x([_.L(),_.e("design:type",Boolean)],Jy.prototype,"noUnderline",void 0);_.x([_.L(),_.e("design:type",Object)],Jy.prototype,"inputMethodEditorActive",void 0);_.x([_.jj("#dropdown"),_.e("design:type",Object)],Jy.prototype,"dropdown",void 0);
_.x([_.jj("#input"),_.e("design:type",HTMLElement)],Jy.prototype,"input",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Jy.prototype,"dataChanged",null);_.x([_.H("messageInput"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Jy.prototype,"onMessageSet",null);
_.x([_.B("yt-live-chat-select-suggestion"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Jy.prototype,"onSuggestion",null);_.x([_.H("characterCount"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Jy.prototype,"characterCountChanged",null);_.x([_.H("focused"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Jy.prototype,"focusedChanged",null);
Jy=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Jy);
_.AXE=_.T(Jy,"yt-live-chat-text-input-field-renderer",function(){if(Ez5===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;lti===void 0&&(lti=document.createElement("template"));var Z=lti;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Ez5=y}y=Ez5;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var hQE=function(){var y=_.v.apply(this,arguments)||this;y.buttonOverrides={style:"overlay",type:"filled"};y.allowAnimations=!1;y.modern=_.O("web_button_rework_with_live");y.noPadding=!1;return y};
_.R(hQE,_.v);_.f=hQE.prototype;_.f.shouldSupportInlineActionButtons=function(){return!0};
_.f.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"}}}}};
_.f.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.f.attached=function(){this.allowAnimations=!1};
_.f.dataChanged=function(){if(this.data){var y={"--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)};_.wM(this.hostElement,y);this.allowAnimations=!0}};
_.f.messageChanged=function(){var y,W=(y=this.data)==null?void 0:y.message;y=_.p(_.p(this.hostElement).querySelector("#message"));y.textContent="";W&&y.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.f.computeShowOnlyHeader=function(y,W){return!y||y.pdgLikeButton||y.replyButton||y.buyFlowButton?!1:this.isEmpty(y,W)&&!y.footer};
_.f.computeShowFooterDivider=function(y,W,c){return y?!!y.footer&&!this.isEmpty(y,W)&&!c:!1};
_.f.computeIsUserEditable=function(y){return!!y.inputField};
_.f.computeHasHeartButton=function(y){return(y==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(y==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(y==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.f.computeNoveltyImage=function(y){if(y.headerOverlayImage&&y.headerOverlayImage.thumbnails.length){var W=y.headerOverlayImage.thumbnails[0],c,Z;if((c=y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Z=c.loggingDirectives)==null?0:Z.trackingParams){var G,D;IXH((G=y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(D=G.loggingDirectives)==null?void 0:D.trackingParams)}return W.width||0}return 0};
_.f.computeAuthorPhotoSize=function(y){return(y==null?0:y.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.f.inputFocus=function(){var y=_.p(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");y&&y.focus()};
_.f.inputInsertEmoji=function(y){var W=_.p(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.insertEmoji(y)};
_.f.inputMessage=function(){var y=_.p(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),W;return y&&((W=this.data)==null?0:W.inputField)?(y.completeEmojis(),_.gI(y.liveChatRichMessageInput)):null};
_.f.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.f.isEmpty=function(y,W){return y?y.empty||!(y.message||y.inputField||W):!0};
_.f.onLowerBuyButtonClick=function(){var y,W=_.g((y=this.data)==null?void 0:y.buyButton,_.RU);W&&W.trackingParams&&!a6D(W.command)&&(y=_.Dz(W.trackingParams))&&(W=_.NR())&&_.SG(W,y)};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.dJ.Object.defineProperties(hQE.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var VF=hQE;VF.prototype.isDeletedChanged=VF.prototype.isDeletedChanged;VF.prototype.messageChanged=VF.prototype.messageChanged;VF.prototype.dataChanged=VF.prototype.dataChanged;_.x([_.C(wVJ.YtPdgLiveChatItemBehavior),_.e("design:type",Object)],VF.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],VF.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],VF.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],VF.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:EJt}),_.e("design:type",Object)],VF.prototype,"engagementState",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.e("design:type",Boolean)],VF.prototype,"isUserEditable",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.e("design:type",Boolean)],VF.prototype,"hasHeartButton",void 0);_.x([_.L({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.e("design:type",Boolean)],VF.prototype,"showOnlyHeader",void 0);
_.x([_.L({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.e("design:type",Boolean)],VF.prototype,"showFooterDivider",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Object)],VF.prototype,"allowAnimations",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],VF.prototype,"dashboardMoneyFeed",void 0);_.x([_.L({computed:"computeNoveltyImage(data)"}),_.e("design:type",Number)],VF.prototype,"noveltyWidth",void 0);
_.x([_.L({computed:"computeAuthorPhotoSize(data)"}),_.e("design:type",Number)],VF.prototype,"authorPhotoSize",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],VF.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],VF.prototype,"noPadding",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VF.prototype,"dataChanged",null);
_.x([_.H("data.message"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VF.prototype,"messageChanged",null);_.x([_.A("data","dashboardMoneyFeed"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],VF.prototype,"hideLowerBumper",null);_.x([_.H("isDeleted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VF.prototype,"isDeletedChanged",null);
VF=_.x([_.d({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],VF);
_.T(VF,"yt-live-chat-paid-message-renderer",function(){if(BmT===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;hS0===void 0&&(hS0=document.createElement("template"));var Z=hS0;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);BmT=y}y=BmT;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var Bhm;var HM8;var LbZ=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;return y};
_.R(LbZ,_.cQ);LbZ.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Nn("openPopupConfig")};
var vzE=LbZ;_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],vzE.prototype,"ytOpenPopupBehavior",void 0);vzE=_.x([_.ZV()],vzE);_.CB=[_.e_.YtOpenPopupBehavior,vzE.prototype];var dAm;var PF=[_.oW,CUW,_.KF,_.Dl,_.Sb,_.dJV,_.mv,_.iFV,_.Na,guI];_.O("web_watch_get_updated_metadata_response_processing")&&PF.push(_.mtE);_.O("web_continuation_response_processing")&&PF.push(_.$x);var KwD=new _.Sm("RESPONSE_RECEIVED_COMMANDS"),UNh=new _.Sm("RESPONSE_RECEIVED_COMMANDS");var u9I="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),smf=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],mNg=["GET_UNSEEN_NOTIFICATION_COUNT"];var QF=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;y.serviceEndpointHandlers=[];return y};
_.R(QF,_.cQ);QF.prototype.created=function(){var y=this;this.endpointHandlerActionMap={"yt-service-request":function(W,c,Z,G){var D;return Y5y(y.hostElement,W,c,Z,G,y.serviceEndpointHandlers,(D=y.onEntitiesUpdated)==null?void 0:D.bind(y))}}};
QF.prototype.attached=function(){_.Ac(_.Q8.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
QF.prototype.detached=function(){_.hc(_.Q8.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
var SaE=QF;SaE=_.x([_.ZV()],SaE);_.Th5=[SaE.prototype];var at8,xA5=function(){return at8!==void 0?at8:at8=document.createElement("template")};
document.head.appendChild(xA5().content);var iME;var MHJ=document.head,eQT=MHJ.appendChild,w9T;if(iME===void 0){var qaV=document.createElement("template");_.E(qaV,"\x3c!--css-build:shady--\x3e");qaV.content.insertBefore(xA5().content.cloneNode(!0),qaV.content.firstChild);iME=qaV}w9T=iME;eQT.call(MHJ,w9T.content);var k15,jrW=function(){return k15!==void 0?k15:k15=document.createElement("template")};
document.head.appendChild(jrW().content);var y0m;var WYm=document.head,c0i=WYm.appendChild,Z5V;if(y0m===void 0){var Gzm=document.createElement("template");_.E(Gzm,"\x3c!--css-build:shady--\x3e");Gzm.content.insertBefore(jrW().content.cloneNode(!0),Gzm.content.firstChild);y0m=Gzm}Z5V=y0m;c0i.call(WYm,Z5V.content);_.bv("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.bv("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var fCZ=_.O("web_button_rework")&&_.I8("BUTTON_REWORK")||_.O("web_button_rework_with_live"),ot8=function(){var y=_.v.apply(this,arguments)||this;y.isPressed=!1;y.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return y};
_.R(ot8,_.v);_.f=ot8.prototype;_.f.created=function(){this.showTooltips=!0};
_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.onHintIdChanged=function(){var y=this,W,c,Z=(W=this.ytButtonBehavior.data)==null?void 0:(c=W.hint)==null?void 0:c.hintRenderer;if(Z&&Z.hintId){W=_.fl(this.hostElement,"yt-get-opened-popups-action");W=(W&&W.length===1?W[0]:[]).length>0;var G=null;Z.hintId!=="sponsor-pre-purchase"||W?Z.hintId.startsWith("sponsor-post-purchase")&&!W?G=zkV("membership-manage"):Z.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!W&&(G=zkV("membership-freebie-join")):G=zkV("membership-join");G&&_.KX.addLowPriorityJob(function(){for(var D=
_.z(G),Y=D.next();!Y.done;Y=D.next())y.ytComponentBehavior.resolveCommand(Y.value)})}};
_.f.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.f.onYtNavigate=function(y){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.f.onYtServiceRequestSent=function(y,W){this.handleServiceRequestActions(W);_.Z2(this.hostElement,"yt-service-request-sent-button-renderer")};
_.f.onServiceRequestCompleted=function(y,W){this.handleServiceRequestActions(W);_.Z2(this.hostElement,"yt-service-request-completed-button-renderer")};
_.f.updateButton=function(y){var W;if(y=(W=_.g(y,nbE))==null?void 0:W.updatedButton)this.ytButtonBehavior.data=_.g(y,_.RU)};
_.f.handleUpdateButtonAction=function(y){var W=this.ytButtonBehavior.data;W.targetId&&y.updateButtonAction.targetId&&W.targetId===y.updateButtonAction.targetId&&this.updateButton(y)};
_.f.handleServiceRequestActions=function(y){if(y=y.actions)for(var W=0;W<y.length;W++)this.updateButton(y[W])};
_.dJ.Object.defineProperties(ot8,{template:{configurable:!0,enumerable:!0,get:function(){if(dAm===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);dAm=y}y=dAm;return y}}});
_.Ay=ot8;_.Ay.prototype.onServiceRequestCompleted=_.Ay.prototype.onServiceRequestCompleted;_.Ay.prototype.onYtServiceRequestSent=_.Ay.prototype.onYtServiceRequestSent;_.Ay.prototype.onYtNavigate=_.Ay.prototype.onYtNavigate;_.Ay.prototype.onPressedStateChanged=_.Ay.prototype.onPressedStateChanged;_.Ay.prototype.onHintIdChanged=_.Ay.prototype.onHintIdChanged;_.x([_.L(),_.e("design:type",Object)],_.Ay.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],_.Ay.prototype,"isPressed",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],_.Ay.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.WNV.YtButtonBehavior),_.e("design:type",Object)],_.Ay.prototype,"ytButtonBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],_.Ay.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],_.Ay.prototype,"ytComponentBehavior",void 0);
_.x([_.C(yF.YtRenderButtonBehavior),_.e("design:type",Object)],_.Ay.prototype,"ytRenderButtonBehavior",void 0);_.x([_.H("data.hint.hintRenderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],_.Ay.prototype,"onHintIdChanged",null);_.x([_.H("isPressed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],_.Ay.prototype,"onPressedStateChanged",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],_.Ay.prototype,"onYtNavigate",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],_.Ay.prototype,"onYtServiceRequestSent",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],_.Ay.prototype,"onServiceRequestCompleted",null);_.Ay=_.x([_.d({is:"ytd-button-renderer",disableElementRegistration:fCZ})],_.Ay);var D_Z=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_button_rework_with_live");y.buttonOverrides={style:"overlay",type:"filled"};return y};
_.R(D_Z,_.v);_.f=D_Z.prototype;_.f.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"}}}}};
_.f.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.f.dataChanged=function(){if(this.data&&this.data.sticker){var y=_.h3(this.data.sticker.thumbnails,this.stickerWidth);y||_.Eua(y).thenCatch(function(){_.Rs(new _.ul("Failed to load Super Sticker with url",y))})}};
_.f.computeAuthorPhotoSize=function(y){return(y==null?0:y.isV2Style)?32:40};
_.f.computeIsV2Style=function(y){return(y==null?0:y.isV2Style)?!0:!1};
_.f.onStickerLoaded=function(y){var W,c,Z;(W=_.hq(y))==null||(c=W.parentNode)==null||(Z=c.classList)==null||Z.add("sticker-loaded")};
_.f.computeNoveltyImageWidth=function(y){var W,c;if(y==null?0:(W=y.headerOverlayImage)==null?0:(c=W.thumbnails)==null?0:c.length){W=y.headerOverlayImage.thumbnails[0];var Z,G;if((Z=y.pdgPurchasedNoveltyLoggingDirectives)==null?0:(G=Z.loggingDirectives)==null?0:G.trackingParams){var D,Y;IXH((D=y.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Y=D.loggingDirectives)==null?void 0:Y.trackingParams)}return W.width||0}return 0};
_.f.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.f.updateStickerStyles=function(){var y=this.data;y&&(y={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(y.authorNameTextColor)},
_.wM(this.hostElement,y))};
_.f.onBuyButtonClick=function(){var y,W=_.g((y=this.data)==null?void 0:y.buyButton,_.RU);W&&!a6D(W.command)&&this.ytRendererBehavior.logExplicitClick(W)};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.dJ.Object.defineProperties(D_Z.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 y;return((y=this.data)==null?0:y.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var hy=D_Z;hy.prototype.updateStickerStyles=hy.prototype.updateStickerStyles;hy.prototype.isDeletedChanged=hy.prototype.isDeletedChanged;hy.prototype.onStickerLoaded=hy.prototype.onStickerLoaded;hy.prototype.dataChanged=hy.prototype.dataChanged;_.x([_.C(wVJ.YtPdgLiveChatItemBehavior),_.e("design:type",Object)],hy.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],hy.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],hy.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hy.prototype,"data",void 0);
_.x([_.L({computed:"computeAuthorPhotoSize(data)"}),_.e("design:type",Number)],hy.prototype,"authorPhotoSize",void 0);_.x([_.L(),_.e("design:type",Boolean)],hy.prototype,"isDeleted",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],hy.prototype,"dashboardMoneyFeed",void 0);_.x([_.L({computed:"computeNoveltyImageWidth(data)"}),_.e("design:type",Number)],hy.prototype,"noveltyWidth",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],hy.prototype,"modern",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.e("design:type",Boolean)],hy.prototype,"isV2Style",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hy.prototype,"dataChanged",null);_.x([_.B("yt-img-shadow-loaded"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],hy.prototype,"onStickerLoaded",null);
_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],hy.prototype,"stickerWidth",null);_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],hy.prototype,"stickerHeight",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],hy.prototype,"hasHeartButton",null);_.x([_.A("data","dashboardMoneyFeed"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],hy.prototype,"hideLowerBumper",null);
_.x([_.H("isDeleted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hy.prototype,"isDeletedChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hy.prototype,"updateStickerStyles",null);hy=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],hy);
_.T(hy,"yt-live-chat-paid-sticker-renderer",function(){if(HM8===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;Bhm===void 0&&(Bhm=document.createElement("template"));var Z=Bhm;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);HM8=y}y=HM8;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var zwE;var YI0;var m_5,srW=function(){return m_5!==void 0?m_5:m_5=document.createElement("template")};
document.head.appendChild(srW().content);var uui,tJQ=function(){return uui!==void 0?uui:uui=document.createElement("template")};
document.head.appendChild(tJQ().content);var ntW;var XYm,b58=function(){return XYm!==void 0?XYm:XYm=document.createElement("template")};
document.head.appendChild(b58().content);var r0W;var FYV=document.head,U_E=FYV.appendChild,$_E;if(r0W===void 0){var KYE=document.createElement("template");_.E(KYE,"\x3c!--css-build:shady--\x3e");KYE.content.insertBefore(b58().content.cloneNode(!0),KYE.content.firstChild);r0W=KYE}$_E=r0W;U_E.call(FYV,$_E.content);var O58=document.head,gtT=O58.appendChild,Rw3;if(ntW===void 0){var B8=document.createElement("template");_.E(B8,"\x3c!--css-build:shady--\x3e");B8.content.insertBefore(tJQ().content.cloneNode(!0),B8.content.firstChild);B8.content.insertBefore(srW().content.cloneNode(!0),B8.content.firstChild);ntW=B8}Rw3=ntW;gtT.call(O58,Rw3.content);var H8=function(){var y=_.cQ.apply(this,arguments)||this;y.focusedIndex=0;y.verticalOffset=0;y.verticalAlign="top";y.dynamicAlign=!0;return y};
_.R(H8,_.cQ);H8.prototype.emojiUrl=function(y){y=_.Os(this.emojiManager,y);if(!y)return"";var W;y=(W=y.image)==null?void 0:W.thumbnails;return _.h3(y,24)||""};
var lCV=function(y){var W;y.emojiVariants&&(W=y.data)!=null&&W.target&&_.Lv(y,function(){y.set("verticalOffset",-1*y.hostElement.clientHeight);var c=_.p(y.hostElement).querySelector("img");c&&c.focus()})};
_.f=H8.prototype;_.f.onKeyboardEnter=function(){};
_.f.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.f.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.f.onKeyDown=function(y){switch(y.keyCode){case 13:this.onKeyboardEnter();y.preventDefault();break;case 40:this.changeFocus(1);y.preventDefault();break;case 38:this.changeFocus(-1);y.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.f.onYtEmojiSelect=function(y){var W=this,c,Z,G,D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1)return Z=(c=W.data)==null?void 0:c.emoji,Y=((G=Z)==null?void 0:G.stickyPrefId)||((D=Z)==null?void 0:D.emojiId),t=(u=y.detail)==null?void 0:u.emojiId,Y&&t&&Y!==t?_.n(r,(b=W.emojiManager)==null?void 0:KbZ(b,Z,t),2):r.return();_.GG(W.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Z,t]);_.F2(r)})};
_.f.changeFocus=function(y){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+y+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(y=_.p(this.hostElement).querySelector("#variants"))&&y.children[this.focusedIndex].focus())};
_.dJ.Object.defineProperties(H8.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
var LB=H8;LB.prototype.onYtEmojiSelect=LB.prototype.onYtEmojiSelect;LB.prototype.onKeyDown=LB.prototype.onKeyDown;LB.prototype.onEmojiVariantsChanged=LB.prototype.onEmojiVariantsChanged;LB.prototype.onVerticalOffsetOrPositionTargetChanged=LB.prototype.onVerticalOffsetOrPositionTargetChanged;_.x([_.C(_.Ak),_.e("design:type",Object)],LB.prototype,"ironOverlayBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],LB.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",_.KB)],LB.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",Object)],LB.prototype,"emojiVariants",void 0);_.x([_.L(),_.e("design:type",Object)],LB.prototype,"focusedIndex",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],LB.prototype,"positionTarget",null);_.x([_.L({reflectToAttribute:!0}),_.A("verticalOffset","data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],LB.prototype,"isPositioned",null);
_.x([_.L(),_.e("design:type",Object)],LB.prototype,"verticalOffset",void 0);_.x([_.L(),_.e("design:type",Object)],LB.prototype,"verticalAlign",void 0);_.x([_.L(),_.e("design:type",Object)],LB.prototype,"dynamicAlign",void 0);_.x([_.H("verticalOffset","positionTarget"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],LB.prototype,"onVerticalOffsetOrPositionTargetChanged",null);
_.x([_.H("emojiVariants"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],LB.prototype,"onEmojiVariantsChanged",null);_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent]),_.e("design:returntype")],LB.prototype,"onKeyDown",null);_.x([_.B("yt-emoji-select"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype",Promise)],LB.prototype,"onYtEmojiSelect",null);LB=_.x([_.ZV()],LB);var EtT=[LB.prototype];var NAW;var ICm;var pYJ=/medium-light|medium-dark|light|medium|dark/,PJE=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,J0V=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),VJ3=function(){var y=_.v.apply(this,arguments)||this;y.userSelection={left:null,right:null};y.scrollAction="lock";y.isEmojiDraftInProgress=!1;return y};
_.R(VJ3,_.v);_.f=VJ3.prototype;_.f.onClick=function(y){y=_.hq(y);y instanceof HTMLImageElement&&this.selectOrUpdateEmoji(y)};
_.f.selectOrUpdateEmoji=function(y){var W=y.getAttribute("selection");W&&(W==="default"?_.Z2(this.hostElement,"yt-emoji-select",_.Os(this.emojiManager,y.id)):W==="left"?this.userSelection=Object.assign({},this.userSelection,{left:y.src}):W==="right"?this.userSelection=Object.assign({},this.userSelection,{right:y.src}):W==="user"&&this.userSelection.left&&this.userSelection.right&&_.Z2(this.hostElement,"yt-emoji-select",_.Os(this.emojiManager,y.id)))};
_.f.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.f.onMultiSelectorThumbnailRowChanged=function(){var y,W,c;((y=this.data)==null?0:(W=y.emoji)==null?0:(c=W.multiSelectorThumbnailRow)==null?0:c.length)&&this.openSelector()};
_.f.getThumbnailFromEmojiRow=function(y){var W,c;return(y==null?void 0:(W=y.thumbnails)==null?void 0:(c=W[0])==null?void 0:c.url)||""};
_.f.getEmojiAltTextForPartialSelector=function(y){var W;return((W=this.getThumbnailFromEmojiRow(y).match(PJE))==null?void 0:W[0])||""};
_.f.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.f.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.f.getRowSelection=function(y){return["left","right"][y]};
_.f.getIdFromComposedEmoji=function(y){return(y==null?void 0:y.emojiId)||""};
_.f.getEmojiFromPartialSelections=function(y,W){if(!y&&!W)return null;var c,Z,G=(c=this.data)==null?void 0:(Z=c.emoji)==null?void 0:Z.variantIds;if(!G||!G.length)return null;var D;y=(D=y.match(pYJ))==null?void 0:D[0];var Y;W=(Y=W.match(pYJ))==null?void 0:Y[0];if(!y||!W)return null;var u=J0V.get(y);Y=J0V.get(W);if(u===Y){Y=Array.from(J0V.values()).filter(function(b){return b!==u}).join("|");
var t=new RegExp("^((?!("+Y+")).)*"+u+"$")}else t=new RegExp(u+".*"+Y);return(G=G.find(function(b){return t.test(b)}))&&_.Os(this.emojiManager,G)||null};
_.f.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var y,W=this.ytEmojiSelectorBehavior.emojiUrl(((y=this.data.emoji)==null?void 0:y.emojiId)||"");_.p(this.hostElement).querySelector('[selection="user"]').src.includes(W)||(this.isEmojiDraftInProgress=!0)}};
_.f.onDomChange=function(){lCV(this.ytEmojiSelectorBehavior)};
_.f.getFocusableElements=function(){return _.p(this.hostElement).querySelectorAll("img").filter(function(y){return y.getAttribute("role")==="option"})};
_.f.changeFocus=function(y){var W=this.getFocusableElements();W!=null&&W.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+y+W.length)%W.length,this.ytEmojiSelectorBehavior.focusedIndex<W.length&&(y=W[this.ytEmojiSelectorBehavior.focusedIndex])&&y.focus())};
_.f.onKeyboardEnter=function(){var y=this.getFocusableElements();y!=null&&y.length&&(y=y[this.ytEmojiSelectorBehavior.focusedIndex])&&y instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(y),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.dJ.Object.defineProperties(VJ3.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var y=this,W,c,Z;return this.emojiManager&&((W=this.data)==null?0:(c=W.emoji)==null?0:(Z=c.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(G){return!!G&&_.Os(y.emojiManager,G)}).filter(function(G){return!!G}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var y,W=(y=this.userSelection)==null?void 0:y.left,c;y=(c=this.userSelection)==null?void 0:c.right;return W&&y?this.getEmojiFromPartialSelections(W,y):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.composedEmojiSelection)==null?0:y.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var W;y=(W=this.userSelection)==null?void 0:W.left;var c;W=(c=this.userSelection)==null?void 0:c.right;if(!y&&!W){var Z;return this.ytEmojiSelectorBehavior.emojiUrl(((Z=this.data.emoji)==null?void 0:Z.emojiId)||"")}return y&&!W?y:!y&&W?W:""}}});
var v8=VJ3;v8.prototype.onMultiSelectorThumbnailRowChanged=v8.prototype.onMultiSelectorThumbnailRowChanged;v8.prototype.onClick=v8.prototype.onClick;_.x([_.C(_.Ak),_.e("design:type",Object)],v8.prototype,"ironOverlayBehavior",void 0);_.x([_.C(EtT),_.e("design:type",Object)],v8.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],v8.prototype,"data",void 0);_.x([_.L(),_.e("design:type",_.KB)],v8.prototype,"emojiManager",void 0);
_.x([_.L(),_.e("design:type",Object)],v8.prototype,"userSelection",void 0);_.x([_.L(),_.e("design:type",Object)],v8.prototype,"scrollAction",void 0);_.x([_.L(),_.e("design:type",Object)],v8.prototype,"isEmojiDraftInProgress",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],v8.prototype,"emojiVariants",null);_.x([_.A("data","userSelection"),_.e("design:type",Object),_.e("design:paramtypes",[])],v8.prototype,"composedEmojiSelection",null);
_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[MouseEvent]),_.e("design:returntype")],v8.prototype,"onClick",null);_.x([_.H("data.emoji.multiSelectorThumbnailRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v8.prototype,"onMultiSelectorThumbnailRowChanged",null);_.x([_.A("data","userSelection","composedEmojiSelection"),_.e("design:type",String),_.e("design:paramtypes",[])],v8.prototype,"draftEmojiUrl",null);
v8=_.x([_.n6({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],v8);
_.T(v8,"yt-emoji-multi-person-selector",function(){if(ICm===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;NAW===void 0&&(NAW=document.createElement("template"));var Z=NAW;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);ICm=y}y=ICm;return y},{mode:2});var CJ5;var Qrm;var A0T=function(){var y=_.v.apply(this,arguments)||this;y.tooltip_=null;return y};
_.R(A0T,_.v);_.f=A0T.prototype;_.f.dataChanged_=function(){var y;if((y=this.data)==null?0:y.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.p(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.ed)(this.tooltip_).textContent=this.data.tooltip};
_.f.computeTargetId=function(){var y;return((y=this.data)==null?void 0:y.targetId)||""};
_.f.computeId_=function(y){return y};
_.f.computeIcon_=function(y){return _.wp(y)};
_.f.onTap_=function(){this.active=!this.active;_.Z2(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.f.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("active-changed",this.active))};
_.dJ.Object.defineProperties(A0T.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)return this.data.icon.iconType==="SUPER_STICKER";var c,Z;return((c=this.data)==null?void 0:(Z=c.icon)==null?void 0:Z.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
var d$=A0T;d$.prototype.activeChangedForBinding=d$.prototype.activeChangedForBinding;d$.prototype.dataChanged_=d$.prototype.dataChanged_;_.x([_.C(_.$S.YtLiveChatTooltipTargetingBehavior),_.e("design:type",Object)],d$.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],d$.prototype,"data",void 0);_.x([_.L({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.e("design:type",String)],d$.prototype,"id",void 0);
_.x([_.L({computed:"computeTargetId(data.targetId)"}),_.e("design:type",String)],d$.prototype,"targetId",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],d$.prototype,"active",void 0);_.x([_.L({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.e("design:type",String)],d$.prototype,"icon",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],d$.prototype,"dataChanged_",null);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],d$.prototype,"iconFilled",null);_.x([_.H("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],d$.prototype,"activeChangedForBinding",null);d$=_.x([_.n6({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],d$);
_.T(d$,"yt-emoji-picker-category-button-renderer",function(){if(Qrm===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;CJ5===void 0&&(CJ5=document.createElement("template"));var Z=CJ5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Qrm=y}y=Qrm;return y},{mode:2});var hwZ;var BAV;var H5E=function(){var y=_.v.apply(this,arguments)||this;y.ariaLabel=null;y.ariaActivedescendant=null;y.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};y.JSC$11874_ignoreNextFocus_=!1;y.longPressTimeoutId=-1;return y};
_.R(H5E,_.v);_.f=H5E.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.f.emojiChanged_=function(){this.changeFocus_(0,!1);for(var y=_.Zz(),W=0;W<this.emoji.length;W++){var c={veType:88013,elementIndex:W},Z=this.emoji[W];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(c=_.ch(y,c))&&(Z.visualElement=c)}};
_.f.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.f.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.f.emojiSkinToneChanged_=function(y){this.skinTone=y};
_.f.dataChanged=function(){this.data&&this.data.emojiData&&rXV(this.emojiManager,this.data.emojiData)};
_.f.emojiUrl=function(y){y=this.getEmoji(y);if(!y)return"";var W;y=(W=y.image)==null?void 0:W.thumbnails;return _.h3(y,24)||""};
_.f.emojiAlt=function(y){var W=this.get("image.accessibility.accessibilityData.label",y);return W?W:y.isCustomEmoji?y.shortcuts[0]:y.emojiId};
_.f.emojiAriaLabel=function(y){return y.shortcuts?y.shortcuts[0]:""};
_.f.emojiAriaSelected=function(y,W,c){return y&&c==W?"true":"false"};
_.f.getEmoji=function(y){if(this.emojiManager)return this.shouldUseStickyPreferences?UAm(this.emojiManager,y):g$(this.emojiManager,y)};
_.f.computeId_=function(y){return y.categoryId||""};
_.f.computeEmoji=function(y){var W=this;return this.emojiManager?y.emojiIds?y.emojiIds.map(function(c){return c?_.Os(W.emojiManager,c):null}).filter(NWh):y.emojiData?y.emojiData.map(function(c){var Z=!!c.emojiId&&_.Os(W.emojiManager,c.emojiId);
return Z?Object.assign({},Z,c):null}).filter(NWh):[]:[]};
_.f.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.f.computeAriaLabel_=function(y){return _.v$(y)};
_.f.computeAriaActivedescendant_=function(y,W){return y&&y[W]?y[W].emojiId||"":""};
_.f.handleLongPressEmojiWithVariants=function(y,W){this.changeFocusToEmoji(y.emojiId,!1);this.openVariantSelector(y,W)};
_.f.onMouseDown=function(y){var W=this;this.hostElement!==document.activeElement&&(this.JSC$11874_ignoreNextFocus_=!0);if(y.button===0){var c=_.hq(y);if(c instanceof HTMLImageElement){var Z=_.p(this.hostElement).querySelector("#repeat").itemForElement(c);this.emojiContainsVariants(Z)&&(this.longPressTimeoutId=setTimeout(function(){W.handleLongPressEmojiWithVariants(Z,c)},500))}}};
_.f.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.f.onFocus=function(){this.JSC$11874_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11874_ignoreNextFocus_=!1};
_.f.onBlur_=function(){this.showFocus=!1};
_.f.emojiContainsVariants=function(y){return!!(y&&y.variantIds&&y.variantIds.length)};
_.f.onClick=function(y){clearTimeout(this.longPressTimeoutId);y=_.hq(y);if(y instanceof HTMLImageElement){var W=y.id;this.changeFocusToEmoji(W,!1);var c=this.getEmoji(W),Z;if(Z=this.shouldUseStickyPreferences&&this.emojiContainsVariants(c)){var G;Z=!((G=this.emojiManager.emojiMap[W])!=null&&G.stickyPrefId)}Z?(G=_.p(this.hostElement).querySelector("#repeat").itemForElement(y),this.openVariantSelector(G,y)):_.Z2(this.hostElement,"yt-emoji-select",c)}};
_.f.isActiveEmojiWithVariants=function(y,W){return y&&W?W.stickyPrefId?y===W.stickyPrefId:y===W.emojiId:!1};
_.f.onCloseEmojiVariantSelector=function(y){this.activeEmojiWithVariantsId===y&&(this.activeEmojiWithVariantsId="")};
_.f.onMouseOver_=function(y){y=_.hq(y);y instanceof HTMLImageElement&&_.Z2(this.hostElement,"yt-emoji-hover",_.Os(this.emojiManager,y.id))};
_.f.changeFocus_=function(y,W){this.focusedIndex=(this.focusedIndex+y+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(y=this.emoji[this.focusedIndex],W&&(this.showFocus=!0,_.p(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Z2(this.hostElement,"yt-emoji-hover",y)))};
_.f.changeFocusToEmoji=function(y,W){if(y){var c=this.emoji.findIndex(function(Z){return Z.emojiId===y});
c!==-1&&this.changeFocus_(c-this.focusedIndex,W)}};
_.f.onKeyDown_=function(y){switch(y.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var W=this.emoji[this.focusedIndex];if(W&&W.emojiId){if(this.emojiContainsVariants(W)){var c=_.p(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(W,c)}else _.Z2(this.hostElement,"yt-emoji-select",g$(this.emojiManager,W.emojiId)),this.hostElement.focus();y.preventDefault()}}break;case 40:this.changeFocus_(1,!0);y.preventDefault();break;case 38:this.changeFocus_(-1,!0),y.preventDefault()}};
_.f.onEmojiStickyPreferenceChanged=function(y,W){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&y.emojiId&&y.variantIds&&y.variantIds.includes(W)&&this.activeEmojiWithVariantsId!==W&&this.setStickyEmojiPreference(y.emojiId,W)};
_.f.openVariantSelector=function(y,W){this.activeEmojiWithVariantsId=y.stickyPrefId||y.emojiId||"";_.Z2(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:y,target:W})};
_.f.setStickyEmojiPreference=function(y,W){if(this.data){var c=this.emoji.findIndex(function(G){return G.emojiId===y});
if(c!==-1){var Z=this.emoji[c];Z.stickyPrefId=W;this.set("emoji."+c,Object.assign({},Z));this.activeEmojiWithVariantsId=W}}};
var Sc=H5E;Sc.prototype.onKeyDown_=Sc.prototype.onKeyDown_;Sc.prototype.onMouseOver_=Sc.prototype.onMouseOver_;Sc.prototype.onClick=Sc.prototype.onClick;Sc.prototype.onBlur_=Sc.prototype.onBlur_;Sc.prototype.onFocus=Sc.prototype.onFocus;Sc.prototype.onMouseUp=Sc.prototype.onMouseUp;Sc.prototype.onMouseDown=Sc.prototype.onMouseDown;Sc.prototype.dataChanged=Sc.prototype.dataChanged;Sc.prototype.disableIncrementalLoadingChanged_=Sc.prototype.disableIncrementalLoadingChanged_;
Sc.prototype.emojiManagerChanged_=Sc.prototype.emojiManagerChanged_;Sc.prototype.emojiChanged_=Sc.prototype.emojiChanged_;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Sc.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Sc.prototype,"data",void 0);_.x([_.L({computed:"computeId_(data)"}),_.e("design:type",String)],Sc.prototype,"id",void 0);_.x([_.L({computed:"computeEmoji(data)"}),_.e("design:type",Array)],Sc.prototype,"emoji",void 0);
_.x([_.L(),_.e("design:type",Number)],Sc.prototype,"skinTone",void 0);_.x([_.L(),_.e("design:type",_.KB)],Sc.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",Boolean)],Sc.prototype,"disableIncrementalLoading",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],Sc.prototype,"focusedIndex",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Sc.prototype,"showFocus",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.e("design:type",Object)],Sc.prototype,"ariaLabel",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.e("design:type",Object)],Sc.prototype,"ariaActivedescendant",void 0);_.x([_.L({value:60}),_.e("design:type",Number)],Sc.prototype,"domRepeatTargetFramerate",void 0);_.x([_.L({value:1}),_.e("design:type",Number)],Sc.prototype,"domRepeatInitialCount",void 0);
_.x([_.L({value:""}),_.e("design:type",String)],Sc.prototype,"activeEmojiWithVariantsId",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Sc.prototype,"shouldUseStickyPreferences",void 0);_.x([_.H("emoji"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sc.prototype,"emojiChanged_",null);_.x([_.H("emojiManager"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sc.prototype,"emojiManagerChanged_",null);
_.x([_.H("disableIncrementalLoading"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sc.prototype,"disableIncrementalLoadingChanged_",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sc.prototype,"dataChanged",null);_.x([_.B("mousedown"),_.e("design:type",Function),_.e("design:paramtypes",[Object]),_.e("design:returntype")],Sc.prototype,"onMouseDown",null);
_.x([_.B("mouseup"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sc.prototype,"onMouseUp",null);_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sc.prototype,"onFocus",null);_.x([_.B("blur"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sc.prototype,"onBlur_",null);
_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Sc.prototype,"onClick",null);_.x([_.B("mouseover"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Sc.prototype,"onMouseOver_",null);_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Sc.prototype,"onKeyDown_",null);
Sc=_.x([_.n6({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Sc);
_.T(Sc,"yt-emoji-picker-category-renderer",function(){if(BAV===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;hwZ===void 0&&(hwZ=document.createElement("template"));var Z=hwZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);BAV=y}y=BAV;return y},{mode:2});var LYW;var vtV;var d_E;var SIJ;var TA0=function(){var y=_.v.apply(this,arguments)||this;y.ariaLabel=null;y.ariaActivedescendant=null;y.getFormattedStringRawText=_.v$;y.JSC$11880_ignoreNextFocus_=!1;return y};
_.R(TA0,_.v);_.f=TA0.prototype;_.f.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")};
_.f.emojiUrl=function(y){var W,c;y=(W=g$(this.emojiManager,y,!0))==null?void 0:(c=W.image)==null?void 0:c.thumbnails;return _.h3(y,24)||""};
_.f.emojiAlt=function(y){var W=this.get("image.accessibility.accessibilityData.label",y);return W?W:y.isCustomEmoji?y.shortcuts[0]:y.emojiId};
_.f.emojiId=function(y){return"emoji"+y};
_.f.computeId_=function(y){return y.categoryId||""};
_.f.computeAriaActivedescendant_=function(y){return this.emoji&&y<this.emoji.length?this.emojiId(y):""};
_.f.emojiChanged_=function(){this.changeFocus_(0,!1);for(var y=_.Zz(),W=0;W<this.emoji.length;W++){var c={veType:88013,elementIndex:W},Z=this.emoji[W];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(c=_.ch(y,c))&&(Z.visualElement=c)}};
_.f.computeEmoji_=function(y){var W=this;return this.emojiManager?y.emojiIds.map(function(c){return _.Os(W.emojiManager,c,!0)}).filter(IB1):[]};
_.f.titleOffsetChanged_=function(){var y=this.hostElement.getBoundingClientRect(),W=_.p(this.hostElement).querySelector("#title").getBoundingClientRect();y=Math.max(0,Math.min(this.titleOffset,y.height-W.height));_.p(this.hostElement).querySelector("#title").style.top=y+"px"};
_.f.onEmojiMouseOver_=function(y){_.Z2(this.hostElement,"yt-emoji-hover",y.model.item)};
_.f.onEmojiTap_=function(y){this.data.command&&(y=hig(_.U().resolve(_.xN(V8)),this.data.command,y),_.Z2(this.hostElement,"yt-navigate",y))};
_.f.emojiAriaLabel=function(y){return y.shortcuts[0]};
_.f.emojiAriaSelected=function(y,W,c){return y&&c==W?"true":"false"};
_.f.changeFocus_=function(y,W){var c=this.emoji.length;this.focusedIndex=(this.focusedIndex+y+c)%c;y=this.emoji[this.focusedIndex];if(W){var Z;(Z=_.p(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Z.scrollIntoView(!1);_.Z2(this.hostElement,"yt-emoji-hover",y)}};
_.f.onMouseDown_=function(){this.JSC$11880_ignoreNextFocus_=!0};
_.f.onFocus_=function(){this.JSC$11880_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11880_ignoreNextFocus_=!1};
_.f.onBlur_=function(){this.showFocus=!1};
_.f.onKeyDown_=function(y){switch(y.keyCode){case 13:this.onEmojiTap_(y);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);y.preventDefault();break;case 38:this.changeFocus_(-1,!0),y.preventDefault()}};
var T6=TA0;T6.prototype.onKeyDown_=T6.prototype.onKeyDown_;T6.prototype.onBlur_=T6.prototype.onBlur_;T6.prototype.onFocus_=T6.prototype.onFocus_;T6.prototype.onMouseDown_=T6.prototype.onMouseDown_;T6.prototype.onEmojiTap_=T6.prototype.onEmojiTap_;T6.prototype.titleOffsetChanged_=T6.prototype.titleOffsetChanged_;T6.prototype.emojiChanged_=T6.prototype.emojiChanged_;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],T6.prototype,"ytComponentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],T6.prototype,"data",void 0);_.x([_.L({computed:"computeId_(data)"}),_.e("design:type",String)],T6.prototype,"id",void 0);_.x([_.L({computed:"computeEmoji_(data)"}),_.e("design:type",Array)],T6.prototype,"emoji",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],T6.prototype,"titleOffset",void 0);_.x([_.L({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.e("design:type",Object)],T6.prototype,"ariaLabel",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.e("design:type",Object)],T6.prototype,"ariaActivedescendant",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],T6.prototype,"showFocus",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],T6.prototype,"focusedIndex",void 0);_.x([_.L(),_.e("design:type",_.KB)],T6.prototype,"emojiManager",void 0);
_.x([_.H("emoji"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T6.prototype,"emojiChanged_",null);_.x([_.H("titleOffset"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T6.prototype,"titleOffsetChanged_",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],T6.prototype,"onEmojiTap_",null);
_.x([_.B("mousedown"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T6.prototype,"onMouseDown_",null);_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T6.prototype,"onFocus_",null);_.x([_.B("blur"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T6.prototype,"onBlur_",null);
_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],T6.prototype,"onKeyDown_",null);T6=_.x([_.n6({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],T6);
_.T(T6,"yt-emoji-picker-upsell-category-renderer",function(){if(SIJ===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;d_E===void 0&&(d_E=document.createElement("template"));var Z=d_E;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);SIJ=y}y=SIJ;return y},{mode:2});var aCT;var x_V;var i5m=function(){var y=_.v.apply(this,arguments)||this;y.scrollAction="lock";y.verticalAlign="top";return y};
_.R(i5m,_.v);_.f=i5m.prototype;_.f.onClick=function(y){y=_.hq(y);y instanceof HTMLImageElement&&_.Z2(this.hostElement,"yt-emoji-select",_.Os(this.emojiManager,y.id))};
_.f.openSelector=function(){this.ironOverlayBehavior.open()};
_.f.onDomChange=function(){lCV(this.ytEmojiSelectorBehavior)};
_.f.computeIsFamilySelector=function(y){var W;return(y==null?void 0:(W=y.emoji)==null?void 0:W.emojiId)==="\ud83d\udc6a"};
_.f.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var y=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];y&&y.emojiId&&(_.Z2(this.hostElement,"yt-emoji-select",_.Os(this.emojiManager,y.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.dJ.Object.defineProperties(i5m.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var y=this,W,c,Z;return this.emojiManager&&((W=this.data)==null?0:(c=W.emoji)==null?0:(Z=c.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(G){return!!G&&_.Os(y.emojiManager,G)}).filter(function(G){return!!G}):[]}}});
var aZ=i5m;aZ.prototype.onClick=aZ.prototype.onClick;_.x([_.C(_.Ak),_.e("design:type",Object)],aZ.prototype,"ironOverlayBehavior",void 0);_.x([_.C(EtT),_.e("design:type",Object)],aZ.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aZ.prototype,"data",void 0);_.x([_.L(),_.e("design:type",_.KB)],aZ.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",Object)],aZ.prototype,"scrollAction",void 0);
_.x([_.L(),_.e("design:type",Object)],aZ.prototype,"verticalAlign",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.e("design:type",Boolean)],aZ.prototype,"isFamilySelector",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],aZ.prototype,"emojiVariants",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[MouseEvent]),_.e("design:returntype")],aZ.prototype,"onClick",null);
aZ=_.x([_.n6({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],aZ);
_.T(aZ,"yt-emoji-variant-selector",function(){if(x_V===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;aCT===void 0&&(aCT=document.createElement("template"));var Z=aCT;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);x_V=y}y=x_V;return y},{mode:2});var MJ3=/:/g,ew8=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],wYJ=function(){var y=_.v.apply(this,arguments)||this;y.emojiVariantSelector=null;y.emojiMultiPersonSelector=null;y.identity=_.AH;y.lastAnimationTime_=0;y.animationStart_=null;y.animationEnd_=null;return y};
_.R(wYJ,_.v);_.f=wYJ.prototype;
_.f.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}}};
_.f.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.RZ)};
_.f.attached=function(){_.G$&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Fbi(this.emojiManager)};
_.f.dataChanged=function(){var y;if((y=this.data)==null?0:y.categories){y=this.emojiManager;var W=this.getCustomEmojiIds();y.pickerCustomEmojiIds=[].concat(_.No(udJ),_.No(W))}};
_.f.getCustomEmojiIds=function(){var y,W=(y=this.data.categories)==null?void 0:y.find(function(D){var Y;return((Y=D.emojiPickerCategoryRenderer)==null?void 0:Y.categoryId)&&ew8.includes(D.emojiPickerCategoryRenderer.categoryId)}),c;
y=(c=this.data.categories)==null?void 0:c.find(function(D){return D.emojiPickerUpsellCategoryRenderer});
var Z,G;return[W==null?void 0:(Z=W.emojiPickerCategoryRenderer)==null?void 0:Z.emojiIds,y==null?void 0:(G=y.emojiPickerUpsellCategoryRenderer)==null?void 0:G.emojiIds].flat().filter(function(D){return!!D})};
_.f.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.f.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.f.updateCategoriesAndPlaceholderInternal=function(y,W){var c=this;y&&W&&(this.categories=y.categories||[],this.categoryButtons=y.categoryButtons||[],this.resetPlaceholder(),this.search="",_.O0(function(){c.updateButtons_()}))};
_.f.computeId_=function(y){return y.id||""};
_.f.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(y){return y.emojiPickerCategoryRenderer&&y.emojiPickerCategoryRenderer.emojiData}):!1};
_.f.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.f.onShowEmojiVariantSelector=function(y){var W=y.detail.emojiData;W.variantIds&&W.variantIds.length&&(W.multiSelectorThumbnailRow&&W.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:W,target:y.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:W,target:y.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.f.onIronOverlayClosed=function(y){var W=UAm(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");W&&y.composedPath&&(y.composedPath().includes(_.p(this.hostElement).querySelector("#emoji-variant-selector"))||y.composedPath().includes(_.p(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.GG(this.hostElement,"yt-close-emoji-variant-selector",[W.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.f.onEmojiVariantSelectorMouseup=function(y){var W=y.target.firstChild;this.variantSelectorOpened&&W&&_.O0(function(){W.noCancelOnOutsideClick=!1},100)};
_.f.onEmojiVariantSelectorMousedown=function(y){y=y.target.firstChild;this.variantSelectorOpened&&y&&(y.noCancelOnOutsideClick=!1)};
_.f.onSelectCategory_=function(y){var W=this.search!="";this.search="";for(var c=_.p(this.hostElement).querySelector("#categories").children,Z=0;Z<c.length;Z++){var G=c[Z];if(G.id==y.detail.categoryId){W?(_.p(this.hostElement).querySelector("#categories").scrollTop=G.offsetTop,this.updateButtons_()):(this.animationStart_=_.p(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=G.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.f.onEmojiHover_=function(y){this.placeholder=y.detail.shortcuts?y.detail.shortcuts[0]:""};
_.f.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.f.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.f.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.f.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.f.computeSearchCategory_=function(y){y=y.replace(MJ3,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();y=y.split(" ");for(var W=[],c=this.emojiManager.emojis,Z=0;Z<c.length;Z++){var G=c[Z];if(G.searchTerms)for(var D=0;D<G.searchTerms.length;D++){for(var Y=G.searchTerms[D].toLocaleLowerCase(),u=!1,t=0;t<y.length;t++)if(Y.indexOf(y[t])!=-1){u=!0;break}if(u&&(!G.isCustomEmoji||!G.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(G.emojiId))){W.push(G.emojiId);
break}}}return{categoryId:-1,emojiIds:W}};
_.f.computeSearchEmptyMessage_=function(y,W){return y&&W&&W.emojiIds&&W.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.f.computeSearching_=function(y){return this.emojiManager&&y.replace(MJ3,"").length>1};
_.f.computeSkinToneHidden=function(){var y;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((y=this.data)==null||!y.hideSkinTonePicker)};
_.f.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.f.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.f.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.f.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.f.selectSkinTone_=function(y){y=Number(y.target.getAttribute("tone"));this.set("emojiManager.skinTone",y);_.GG(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[y]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.f.skinToneChanged_=function(){_.p(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var y=_.p(this.hostElement).querySelector("#dropdown-content").children,W=0;W<y.length;W++)W===this.skinTone?y[W].setAttribute("selected",""):y[W].removeAttribute("selected")};
_.f.animateScroll_=function(y){this.lastAnimationTime_||(this.lastAnimationTime_=y);y-=this.lastAnimationTime_;y<200?(_.p(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*y/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.p(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.f.searchChanged_=function(){this.updateButtons_()};
_.f.updateButtons_=function(){var y=null;if(!this.search)for(var W=_.p(this.hostElement).querySelector("#categories").scrollTop,c=_.p(this.hostElement).querySelector("#categories").children,Z=0;Z<c.length;Z++){var G=c[Z];G.offsetTop<=W&&(y=G.id)}W=_.p(this.hostElement).querySelector("#category-buttons").children;for(c=0;c<W.length;c++)Z=W[c],Z.active=Z.id===y};
var xn=wYJ;xn.prototype.searchChanged_=xn.prototype.searchChanged_;xn.prototype.skinToneChanged_=xn.prototype.skinToneChanged_;xn.prototype.onEmojiHover_=xn.prototype.onEmojiHover_;xn.prototype.onSelectCategory_=xn.prototype.onSelectCategory_;xn.prototype.onShowEmojiVariantSelector=xn.prototype.onShowEmojiVariantSelector;xn.prototype.updateCategoriesAndPlaceholder_=xn.prototype.updateCategoriesAndPlaceholder_;xn.prototype.dataChanged=xn.prototype.dataChanged;
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xn.prototype,"data",void 0);_.x([_.L({value:function(){return[]}}),
_.e("design:type",Array)],xn.prototype,"categories",void 0);_.x([_.L({value:function(){return[]}}),
_.e("design:type",Array)],xn.prototype,"categoryButtons",void 0);_.x([_.L({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.e("design:type",Boolean)],xn.prototype,"disableScroll",void 0);_.x([_.L({computed:"computeId_(data)",reflectToAttribute:!0}),_.e("design:type",String)],xn.prototype,"id",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],xn.prototype,"selected",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],xn.prototype,"disableIncrementalLoading",void 0);_.x([_.L(),_.e("design:type",String)],xn.prototype,"placeholder",void 0);_.x([_.L({value:""}),_.e("design:type",String)],xn.prototype,"search",void 0);_.x([_.L({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.e("design:type",Boolean)],xn.prototype,"searching",void 0);_.x([_.L({computed:"computeSearchCategory_(search)"}),_.e("design:type",Object)],xn.prototype,"searchCategory",void 0);
_.x([_.L({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.e("design:type",Object)],xn.prototype,"searchEmptyMessage",void 0);_.x([_.L({computed:"identity(emojiManager.skinTone)"}),_.e("design:type",Number)],xn.prototype,"skinTone",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],xn.prototype,"skinToneOpened",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],xn.prototype,"variantSelectorOpened",void 0);
_.x([_.L({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.e("design:type",Boolean)],xn.prototype,"skinToneHidden",void 0);_.x([_.L(),_.e("design:type",_.KB)],xn.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",Object)],xn.prototype,"emojiVariantSelector",void 0);_.x([_.L(),_.e("design:type",Object)],xn.prototype,"emojiMultiPersonSelector",void 0);
_.x([_.L({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.e("design:type",Boolean)],xn.prototype,"shouldUseStickyPreferences",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xn.prototype,"dataChanged",null);_.x([_.H("data","selected"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xn.prototype,"updateCategoriesAndPlaceholder_",null);
_.x([_.B("yt-show-emoji-variant-selector"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],xn.prototype,"onShowEmojiVariantSelector",null);_.x([_.B("yt-emoji-picker-select-category"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],xn.prototype,"onSelectCategory_",null);_.x([_.B("yt-emoji-hover"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],xn.prototype,"onEmojiHover_",null);
_.x([_.H("skinTone"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xn.prototype,"skinToneChanged_",null);_.x([_.H("search"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xn.prototype,"searchChanged_",null);xn=_.x([_.n6({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],xn);
_.T(xn,"yt-emoji-picker-renderer",function(){if(vtV===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;LYW===void 0&&(LYW=document.createElement("template"));var Z=LYW;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);vtV=y}y=vtV;return y},{mode:2});var qIZ=function(){var y=_.v.apply(this,arguments)||this;y.emojiManager=_.RZ;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.selectedIndex=1;y.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return y};
_.R(qIZ,_.v);_.f=qIZ.prototype;_.f.handleEmojiCustomizationVisible=function(y){this.emojiPickerRenderer.selected=y;this.selectedIndex=1;y?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.f.emojiCustomizationSetChanged=function(){var y;(y=this.data)!=null&&y.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.yT(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.f.updateSaveButtonState=function(y){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.o3("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:y}))};
_.f.emojiUrl=function(y){y=_.Os(this.emojiManager,y);if(!y)return"";var W;y=(W=y.image)==null?void 0:W.thumbnails;return _.h3(y,24)||""};
_.f.emojiAlt=function(y){var W=_.Os(this.emojiManager,y);if(!W)return y;var c,Z,G,D=(W==null?void 0:(c=W.image)==null?void 0:(Z=c.accessibility)==null?void 0:(G=Z.accessibilityData)==null?void 0:G.label)||"";return D?D:W.isCustomEmoji?W.shortcuts[0]:W.emojiId||y};
_.f.emojiAriaLabel=function(y){var W,c;return((W=_.Os(this.emojiManager,y))==null?void 0:(c=W.shortcuts)==null?void 0:c[0])||y};
_.f.onEmojiClick=function(y){y.model.index!==0&&(this.selectedIndex=y.model.index)};
_.f.onEmojiSelect=function(y){y=y.detail;var W,c;((W=this.data)==null?0:W.emojiCustomizationSetEntityKey)&&((c=this.emojiCustomizationSet)==null?0:c.emojiId)&&y.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,y.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.o3("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,y.emojiId,this.selectedIndex)}))};
_.f.canEditEmoji=function(y,W,c){y=y.indexOf(W);return y===c||y===0||c===0?!1:!0};
_.f.getUpdatedEmojiIdList=function(y,W,c){var Z=y.indexOf(W);y=[].concat(_.No(y));Z>=0&&(y[Z]=y[c]);y[c]=W;return y};
_.dJ.Object.defineProperties(qIZ,{template:{configurable:!0,enumerable:!0,get:function(){if(YI0===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;zwE===void 0&&(zwE=document.createElement("template"));var Z=zwE;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);YI0=y}y=YI0;return y}}});
var iu=qIZ;iu.prototype.onEmojiSelect=iu.prototype.onEmojiSelect;_.x([_.C(_.Uo),_.e("design:type",Object)],iu.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],iu.prototype,"ytActionHandlerBehavior",void 0);_.x([_.jj("yt-emoji-picker-renderer"),_.e("design:type",Object)],iu.prototype,"emojiPickerRenderer",void 0);
_.x([_.L({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(y,W){return _.fq(y.entities,"emojiCustomizationSetEntity",W)},
observer:"emojiCustomizationSetChanged"}),_.e("design:type",Object)],iu.prototype,"emojiCustomizationSet",void 0);_.x([_.L(),_.e("design:type",Object)],iu.prototype,"originalEmojiSet",void 0);_.x([_.L(),_.e("design:type",_.KB)],iu.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",Object)],iu.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iu.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",Object)],iu.prototype,"selectedIndex",void 0);
_.x([_.B("yt-emoji-select"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],iu.prototype,"onEmojiSelect",null);iu=_.x([_.n6({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],iu);var kz5;var jFE;var y$T;var W3J;var c$8=function(){var y=_.v.apply(this,arguments)||this;y.authorBadges=[];return y};
_.R(c$8,_.v);_.f=c$8.prototype;_.f.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.f.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]]"}}}}}};
_.f.dataChanged=function(){var y=f6h(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",y)};
_.f.updateMessage=function(){var y=this.data.message,W=_.p(_.p(this.hostElement).querySelector("#message"));W.textContent="";y&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y))};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.f.onShowOriginalClick=function(y){y.preventDefault();this.showOriginal=!0};
_.f.computeShowBar=function(y,W,c){return y&&W||c};
_.f.computeAuthorBadges=function(y){return y.authorBadges||[]};
_.f.computeAuthorIsOwner=function(y){return!!olD(y.authorBadges,"owner")};
_.f.computeAuthorNameColor=function(y){var W;if(_.O("live_chat_author_name_color_usernames")&&(y==null?0:(W=y.authorName)==null?0:W.simpleText))return _.uvt(_.tkH(y.authorName.simpleText));if(_.O("live_chat_seed_color_usernames")&&(y==null?0:y.authorSeedColorArgb))return _.uvt(_.MM(y.authorSeedColorArgb));if(_.O("live_chat_colored_usernames"))return"#cc0000";var c;return _.O("live_chat_simple_color_usernames")&&(y==null?0:(c=y.authorName)==null?0:c.simpleText)&&(y==null?0:y.authorUsernameColorLight)&&
(y==null?0:y.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.MM(y.authorUsernameColorDark):_.MM(y.authorUsernameColorLight):""};
var M0=c$8;M0.prototype.updateMessage=M0.prototype.updateMessage;M0.prototype.dataChanged=M0.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],M0.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],M0.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],M0.prototype,"showOriginal",void 0);_.x([_.L({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.e("design:type",Boolean)],M0.prototype,"isDimmed",void 0);_.x([_.L({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.e("design:type",Boolean)],M0.prototype,"showBar",void 0);
_.x([_.L({computed:"computeAuthorBadges(data)"}),_.e("design:type",Array)],M0.prototype,"authorBadges",void 0);_.x([_.L({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],M0.prototype,"authorIsOwner",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],M0.prototype,"inCollapsedBanner",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],M0.prototype,"inBanner",void 0);
_.x([_.L({value:_.O("live_chat_hide_avatars"),reflectToAttribute:!0}),_.e("design:type",Boolean)],M0.prototype,"avatarHidden",void 0);_.x([_.L({computed:"computeAuthorNameColor(data)"}),_.e("design:type",String)],M0.prototype,"authorNameColor",void 0);_.x([_.L(),_.e("design:type",_.pB)],M0.prototype,"participantsManager",void 0);_.x([_.L({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.e("design:type",Object)],M0.prototype,"filledButtonOverrides",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],M0.prototype,"dataChanged",null);_.x([_.H("data.message"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],M0.prototype,"updateMessage",null);M0=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],M0);
_.T(M0,"yt-live-chat-text-message-renderer",function(){if(W3J===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;y$T===void 0&&(y$T=document.createElement("template"));var Z=y$T;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);W3J=y}y=W3J;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var ec=function(){var y=_.v.apply(this,arguments)||this;y.tonalButtonOverrides={type:"tonal",style:"overlay"};return y};
_.R(ec,_.v);
ec.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]]"}}}}}};
ec.prototype.shouldSupportInlineActionButtons=function(){return!0};
ec.prototype.shouldSupportWholeItemClick=function(){return!0};
_.dJ.Object.defineProperties(ec.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
var w$=ec;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],w$.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],w$.prototype,"data",void 0);_.x([_.L(),_.e("design:type",_.pB)],w$.prototype,"participantsManager",void 0);
_.x([_.L(),_.e("design:type",Object)],w$.prototype,"tonalButtonOverrides",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.infoDialogButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],w$.prototype,"hasInfoDialogButton",null);w$=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],w$);
_.T(w$,"yt-live-chat-auto-mod-message-renderer",function(){if(jFE===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;kz5===void 0&&(kz5=document.createElement("template"));var Z=kz5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);jFE=y}y=jFE;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var ZV5;var GcV;var fXW;var oJV=function(){return _.v.apply(this,arguments)||this};
_.R(oJV,_.v);var DS3=oJV;_.x([_.L(),_.e("design:type",Object)],DS3.prototype,"data",void 0);DS3=_.x([_.d({is:"ytd-factoid-renderer",disableElementRegistration:!0})],DS3);
_.T(DS3,"ytd-factoid-renderer",function(){if(fXW!==void 0)return fXW;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return fXW=y},{mode:1});var ziV=function(){return _.v.apply(this,arguments)||this};
_.R(ziV,_.v);ziV.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
var q0=ziV;_.x([_.L(),_.e("design:type",Object)],q0.prototype,"data",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);q0=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],q0);
_.T(q0,"yt-live-chat-channel-activity-reputation-renderer",function(){if(GcV===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;ZV5===void 0&&(ZV5=document.createElement("template"));var Z=ZV5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);GcV=y}y=GcV;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var YJi;var mS3;var sFE=function(){return _.v.apply(this,arguments)||this};
_.R(sFE,_.v);sFE.prototype.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
var kn=sFE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Boolean)],kn.prototype,"menuFocused",void 0);_.x([_.L(),_.e("design:type",Object)],kn.prototype,"data",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],kn.prototype,"ytLiveChatItemBehavior",void 0);kn=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],kn);
_.T(kn,"yt-live-chat-donation-announcement-renderer",function(){if(mS3===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;YJi===void 0&&(YJi=document.createElement("template"));var Z=YJi;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);mS3=y}y=mS3;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var bmm;var rwV,FUT=function(){if(rwV!==void 0)return rwV;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;bmm===void 0&&(bmm=document.createElement("template"));var Z=bmm;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return rwV=y};var UNm=function(){return _.v.apply(this,arguments)||this};
_.R(UNm,_.v);_.dJ.Object.defineProperties(UNm,{template:{configurable:!0,enumerable:!0,get:function(){return FUT()}}});
var ji=UNm;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ji.prototype,"data",void 0);ji=_.x([_.n6({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],ji);_.T(ji,"yt-live-chat-empty-feed-view-model",function(){return FUT()},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var $NT;var KUV;var OmW=function(){return _.v.apply(this,arguments)||this};
_.R(OmW,_.v);OmW.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"}}}}}};
_.dJ.Object.defineProperties(OmW.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var y,W;return{runs:[{text:(y=this.data)==null?void 0:(W=y.channelName)==null?void 0:W.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var y=[],W;if((W=this.data)==null||!W.channelBadges)return y;var c;W=_.z((c=this.data)==null?void 0:c.channelBadges);for(c=W.next();!c.done;c=W.next()){c=_.g(c.value,jXV);var Z=void 0,G=void 0;if((Z=c)==null?0:(G=Z.badgeImage)==null?0:G.sources)Z=void 0,G={liveChatAuthorBadgeRenderer:{tooltip:c.tooltip,accessibility:{accessibilityData:{label:(Z=_.g(c.rendererContext,_.Cp))==null?void 0:Z.label}}}},c.badgeImage.sources[0].clientResource?G.liveChatAuthorBadgeRenderer.icon=
{iconType:c.badgeImage.sources[0].clientResource.imageName}:G.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:c.badgeImage.sources},y.push(G)}return y}}});
var yW=OmW;_.x([_.L(),_.e("design:type",Object)],yW.prototype,"data",void 0);_.x([_.A("data.channelName"),_.e("design:type",Object),_.e("design:paramtypes",[])],yW.prototype,"channelName",null);_.x([_.A("data.channelBadges"),_.e("design:type",Array),_.e("design:paramtypes",[])],yW.prototype,"channelBadges",null);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);
yW=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],yW);
_.T(yW,"yt-live-chat-identity-view-model",function(){if(KUV===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;$NT===void 0&&($NT=document.createElement("template"));var Z=$NT;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);KUV=y}y=KUV;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var guV;var RjV;var lB2;var Eu8;var NWm=function(){var y=_.v.apply(this,arguments)||this;y.hidden=!1;y.supportsInlineActionButtons=!0;return y};
_.R(NWm,_.v);NWm.prototype.ready=function(){var y;((y=document.querySelector("yt-live-chat-app"))==null?0:y.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
NWm.prototype.dataChanged=function(y){var W=(0,_.ed)(_.p(this.hostElement).querySelector("#detail-text"));W.textContent="";(y==null?0:y.detailText)&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y.detailText))};
var W2=NWm;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],W2.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],W2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({observer:"dataChanged"}),_.e("design:type",Object)],W2.prototype,"data",void 0);
_.x([_.L({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.e("design:type",Object)],W2.prototype,"hidden",void 0);W2=_.x([_.d({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],W2);
_.T(W2,"yt-live-chat-legacy-paid-message-renderer",function(){if(Eu8===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;lB2===void 0&&(lB2=document.createElement("template"));var Z=lB2;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Eu8=y}y=Eu8;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var IB3;var pwV;var P28={},Jw3=function(){return _.cQ.apply(this,arguments)||this};
_.R(Jw3,_.cQ);Jw3.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var c2=Jw3;c2.prototype.onLiveChatMembershipItemBehaviorClick=c2.prototype.onLiveChatMembershipItemBehaviorClick;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],c2.prototype,"data",void 0);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],c2.prototype,"onLiveChatMembershipItemBehaviorClick",null);c2=_.x([_.ZV()],c2);
P28.YtLiveChatMembershipItemBehavior=[c2.prototype,_.k.YtRendererBehavior];var VRT=function(){var y=_.v.apply(this,arguments)||this;y.supportsInlineActionButtons=!0;y.hasPrimaryHeaderText=!1;y.showOnlyHeader=!1;y.authorBadges=[];y.modern=_.O("web_button_rework_with_live");y.buttonOverrides={style:"overlay",type:"filled"};return y};
_.R(VRT,_.v);_.f=VRT.prototype;_.f.shouldSupportInlineActionButtons=function(){return!0};
_.f.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.f.ready=function(){var y=document.querySelector("yt-live-chat-app");y&&y.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.f.messageChanged=function(){var y=this.data.message,W=(0,_.ed)(_.p(this.hostElement).querySelector("#message"));W.textContent="";y&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(y))};
_.f.computeHasPrimaryHeaderText=function(y){return!(!y||!y.headerPrimaryText)};
_.f.computeShowOnlyHeader=function(y,W){return this.isMessageEmpty(y,W)};
_.f.computeAuthorBadges=function(y){return y.authorBadges||[]};
_.f.isMessageEmpty=function(y,W){return!y||y.empty?!0:!y.message&&!y.inputField&&!W};
_.f.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.f.getInputElement=function(){return _.p(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.f.inputFocus=function(){var y=this.getInputElement();y&&y.focus()};
_.f.inputInsertEmoji=function(y){var W=this.getInputElement();W&&W.insertEmoji(y)};
_.f.inputMessage=function(){var y=this.getInputElement();return y&&this.data.inputField?(y.completeEmojis(),_.gI(y.liveChatRichMessageInput)):null};
_.f.onFooterButtonClick=function(){this.data.footerButton&&_.Z2(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.f.shouldSupportWholeItemClick=function(){return!0};
var Zf=VRT;Zf.prototype.isDeletedChanged=Zf.prototype.isDeletedChanged;Zf.prototype.messageChanged=Zf.prototype.messageChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],Zf.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.C(P28.YtLiveChatMembershipItemBehavior),_.e("design:type",Object)],Zf.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Zf.prototype,"data",void 0);_.x([_.L({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.e("design:type",Object)],Zf.prototype,"hasPrimaryHeaderText",void 0);_.x([_.L({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.e("design:type",Object)],Zf.prototype,"showOnlyHeader",void 0);
_.x([_.L({computed:"computeAuthorBadges(data)"}),_.e("design:type",Array)],Zf.prototype,"authorBadges",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Zf.prototype,"modern",void 0);_.x([_.H("data.message"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Zf.prototype,"messageChanged",null);_.x([_.H("isDeleted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Zf.prototype,"isDeletedChanged",null);
Zf=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Zf);
_.T(Zf,"yt-live-chat-membership-item-renderer",function(){if(pwV===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;IB3===void 0&&(IB3=document.createElement("template"));var Z=IB3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);pwV=y}y=pwV;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var C20;var QmE;var AwV=function(){return _.v.apply(this,arguments)||this};
_.R(AwV,_.v);AwV.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var Gp=AwV;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Gp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Gp.prototype,"data",void 0);Gp=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Gp);
_.T(Gp,"yt-live-chat-mode-change-message-renderer",function(){if(QmE===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;C20===void 0&&(C20=document.createElement("template"));var Z=C20;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);QmE=y}y=QmE;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var hj8;var BWT;var HmQ=function(){return _.v.apply(this,arguments)||this};
_.R(HmQ,_.v);var f4=HmQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],f4.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],f4.prototype,"data",void 0);f4=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],f4);
_.T(f4,"yt-live-chat-moderation-message-renderer",function(){if(BWT===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;hj8===void 0&&(hj8=document.createElement("template"));var Z=hj8;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);BWT=y}y=BWT;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var LU2;var vuE;var dNm=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_button_rework");return y};
_.R(dNm,_.v);dNm.prototype.onClick=function(){var y;if((y=this.data)!=null&&y.onClickCommand){var W;_.km.instance.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
var o6=dNm;_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],o6.prototype,"modern",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],o6.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],o6.prototype,"ytLiveChatItemBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],o6.prototype,"data",void 0);o6=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],o6);
_.T(o6,"yt-live-chat-offer-click-count-message-renderer",function(){if(vuE===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;LU2===void 0&&(LU2=document.createElement("template"));var Z=LU2;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);vuE=y}y=vuE;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var S5W;var TWW=function(){return _.v.apply(this,arguments)||this};
_.R(TWW,_.v);var aBQ=TWW;_.x([_.L(),_.e("design:type",Object)],aBQ.prototype,"data",void 0);aBQ=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],aBQ);
_.T(aBQ,"yt-live-chat-placeholder-item-renderer",function(){if(S5W===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);S5W=y}y=S5W;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var xN8;var im2;var MR8=new B$(7),ejZ=function(){var y=_.v.apply(this,arguments)||this;y.data={};return y};
_.R(ejZ,_.v);ejZ.prototype.dataChanged=function(){var y;((y=this.data)==null?0:y.class)&&_.i0(this.hostElement,this.data.class,!0);var W;((W=this.oldData)==null?0:W.class)&&_.i0(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
ejZ.prototype.computeTimestampString=function(y){return MR8.format(new Date(y/1E3))};
var Df=ejZ;Df.prototype.dataChanged=Df.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],Df.prototype,"data",void 0);_.x([_.L({computed:"computeTimestampString(data.timestampUsec)"}),_.e("design:type",String)],Df.prototype,"timestampString",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Df.prototype,"dataChanged",null);Df=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Df);
_.T(Df,"yt-live-chat-server-error-message",function(){if(im2===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;xN8===void 0&&(xN8=document.createElement("template"));var Z=xN8;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);im2=y}y=im2;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var wwQ;var q50;var kTi=function(){var y=_.v.apply(this,arguments)||this;y.defaultToFilledIcon=!1;return y};
_.R(kTi,_.v);kTi.prototype.computeHasPrimaryColorIcon=function(y){return y==="SPARK"||y==="SPONSORSHIP_STAR"};
kTi.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
var zp=kTi;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],zp.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],zp.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zp.prototype,"defaultToFilledIcon",void 0);_.x([_.L(),_.e("design:type",Object)],zp.prototype,"data",void 0);
_.x([_.L({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.e("design:type",Boolean)],zp.prototype,"hasPrimaryColorIcon",void 0);zp=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],zp);
_.T(zp,"yt-live-chat-viewer-engagement-message-renderer",function(){if(q50===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;wwQ===void 0&&(wwQ=document.createElement("template"));var Z=wwQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);q50=y}y=q50;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var ja0;var yOJ=function(){var y=_.v.apply(this,arguments)||this;y.modernUpdate=!1;y.buttonStyle="overlay";y.buttonType="filled";return y};
_.R(yOJ,_.v);yOJ.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
yOJ.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
var Ys=yOJ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ys.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ys.prototype,"modernUpdate",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],Ys.prototype,"buttonStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],Ys.prototype,"buttonType",void 0);
Ys=_.x([_.d({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Ys);
_.T(Ys,"ytd-ad-hover-text-button-renderer",function(){if(ja0!==void 0)return ja0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ja0=y},{mode:1});var W00;var cOZ=function(){var y=_.v.apply(this,arguments)||this;y.buttonOverrides={size:"XS"};y.modern=_.O("web_button_rework");return y};
_.R(cOZ,_.v);cOZ.prototype.onHelpTap=function(y){this.data&&this.data.informationDialog&&(_.Z2(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),y.preventDefault(),y.stopPropagation())};
var mK=cOZ;_.x([_.L(),_.e("design:type",Object)],mK.prototype,"buttonOverrides",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mK.prototype,"modern",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mK.prototype,"data",void 0);mK=_.x([_.d({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],mK);
_.T(mK,"ytd-live-chat-purchased-product-message-renderer",function(){if(W00!==void 0)return W00;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return W00=y},{mode:1});var ZCZ;var GXV;var fM0=function(){var y=_.v.apply(this,arguments)||this;y.isContainerDeleted=!1;return y};
_.R(fM0,_.v);fM0.prototype.onContextMenuClick=function(y){this.ytLiveChatItemBehavior.showContextMenu(y)};
fM0.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))};
var sO=fM0;sO.prototype.isContainerDeletedChanged=sO.prototype.isContainerDeletedChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],sO.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sO.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],sO.prototype,"isContainerDeleted",void 0);
_.x([_.L(),_.e("design:type",String)],sO.prototype,"deletedStateMessage",void 0);_.x([_.H("isContainerDeleted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],sO.prototype,"isContainerDeletedChanged",null);sO=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],sO);
_.T(sO,"ytd-sponsorships-live-chat-header-renderer",function(){if(GXV!==void 0)return GXV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return GXV=y},{mode:1});var uZ=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_button_rework_with_live");y.buttonOverrides={style:"overlay",type:"filled"};return y};
_.R(uZ,_.v);uZ.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]]"}}}}}};
uZ.prototype.onCtaButtonClick=function(){var y,W=_.g((y=this.data)==null?void 0:y.optInPrompt,_.RU);if(y=this.maybeGetButtonCommand(W)){var c;(c=_.Zz())==null||c.clickCommand(y)}};
uZ.prototype.maybeGetButtonCommand=function(y){return!y||!y.command||_.g(y.command,K_W)===void 0&&_.g(y.command,$tE)===void 0?null:y.command};
uZ.prototype.shouldHideOptinPrompt=function(y,W){return!y||W};
var tZ=uZ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],tZ.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tZ.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tZ.prototype,"modern",void 0);
tZ=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],tZ);
_.T(tZ,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(ZCZ!==void 0)return ZCZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ZCZ=y},{mode:1});var oq0;var DsT=function(){return _.v.apply(this,arguments)||this};
_.R(DsT,_.v);DsT.prototype.onContextMenuClick=function(y){this.ytLiveChatItemBehavior.showContextMenu(y)};
DsT.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))};
var n4=DsT;n4.prototype.isDeletedChanged=n4.prototype.isDeletedChanged;_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],n4.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],n4.prototype,"data",void 0);_.x([_.H("isDeleted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],n4.prototype,"isDeletedChanged",null);
n4=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],n4);
_.T(n4,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(oq0!==void 0)return oq0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return oq0=y},{mode:1});var zRW=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return y};
_.R(zRW,_.v);_.f=zRW.prototype;
_.f.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"}}}};
_.f.handleLiveChatAction=function(y){_.g(y,T_V)?this.handleMarkChatItemAsDeletedAction(_.g(y,T_V)):_.g(y,SSm)&&this.handleRemoveChatItemAction(_.g(y,SSm))};
_.f.handleLiveChatActions=function(y){y.forEach(this.handleLiveChatAction,this)};
_.f.handleMarkChatItemAsDeletedAction=function(y){var W=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(Z,G){var D=Object.keys(Z)[0];Object.values(Z)[0].id===y.targetItemId&&W.markAsDeleted("data.items",G,D,y.deletedStateMessage,y.showOriginalContentMessage)})};
_.f.handleRemoveChatItemAction=function(y){var W=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(Z,G){Object.values(Z)[0].id===y.targetItemId&&W.splice("data.items",G,1)})};
_.f.markAsDeleted=function(y,W,c,Z,G){y=[y,W,c].join(".");this.set(y+".deletedStateMessage",Z);this.set(y+".showOriginalContentMessage",G)};
var XK=zRW;_.x([_.L(),_.e("design:type",Object)],XK.prototype,"data",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],XK.prototype,"ytActionHandlerBehavior",void 0);XK=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],XK);
_.T(XK,"yt-live-chat-item-display-list-renderer",function(){if(RjV===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;guV===void 0&&(guV=document.createElement("template"));var Z=guV;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);RjV=y}y=RjV;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var Yv8;var msJ,sa5=function(){if(msJ!==void 0)return msJ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;Yv8===void 0&&(Yv8=document.createElement("template"));var Z=Yv8;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return msJ=y};var uLW=function(){var y=_.v.apply(this,arguments)||this;y.isHeader=!1;return y};
_.R(uLW,_.v);uLW.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.dJ.Object.defineProperties(uLW,{template:{configurable:!0,enumerable:!0,get:function(){return sa5()}}});
var bZ=uLW;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bZ.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bZ.prototype,"isHeader",void 0);bZ=_.x([_.n6({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],bZ);
_.T(bZ,"yt-live-chat-item-display-renderer",function(){return sa5()},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var tn2,nqE,UsQ,F0E;
tn2={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}};nqE={home:"eohps",search:"eosps",watch:"eowps"};_.Xx8=["watch","search","home"];
_.rY=function(){this.JSC$11991_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$11991_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Nn("PRECONSTRUCTION_DELAY",0);this.signals_=_.It();this.targetPage_=""};
_.rY.prototype.init=function(y,W){y=y===void 0?"":y;W=W===void 0?null:W;if(this.JSC$11991_isInitialized_)this.abort();else if(this.JSC$11991_isInitialized_=!0,y&&_.bC3(this,y),W){var c=_.pH(this.signals_,"pcl")?0:10,Z=function(){for(var G=0,D;D=_.Xx8[G++];)D!=y&&D!=W&&this.pendingPages_.push(D);_.rOm(this)}.bind(this);
this.signals_.parkOrScheduleJob(Z,c,"pcl")}};
_.rY.prototype.abort=function(){this.fragmentJobId_&&(_.KX.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);F0E(this)};
_.bC3=function(y,W){y.JSC$11991_isInitialized_&&!y.targetPage_&&(y.targetPage_=W,UsQ(y,W),y.isInitialPass_=!1,UsQ(y,W),y.signals_.processSignal(nqE[y.targetPage_]),F0E(y),_.rOm(y))};
_.rOm=function(y){y.pendingPages_.length&&!y.pagePreparerJobId_&&(y.pagePreparerJobId_=_.Xc(_.KX,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.bC3(this,this.pendingPages_.shift())}.bind(y),y.DEFAULT_DELAY_))};
UsQ=function(y,W){if(W=tn2[W])for(var c in W){var Z=!1,G=c;c.charAt(0)=="~"&&(Z=!0,G=c.substring(1));var D=W[c];D=typeof D=="object"?D:{count:D};W[c]=D;D.componentName=G;D.count>0&&(y.isInitialPass_?Z||y.isSeenDuringInitialPass_[G]||(y.JSC$11991_queue_.push({componentName:G,count:1,signals:D.signals}),y.isSeenDuringInitialPass_[G]=!0,D.count--):y.JSC$11991_queue_.push(D))}};
F0E=function(y){y.JSC$11991_queue_.length=0;y.targetPage_="";y.isInitialPass_=!0;y.signals_.processSignal("eop")};
_.rY.getInstance=function(){return _.WU(_.rY)};var $sV=function(){this.signals=_.It();this.init()};
$sV.prototype.startPreconstruction=function(){_.rY.getInstance().init(_.I8("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
$sV.prototype.init=function(){K02(this);window.Polymer&&tNT&&nsO();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var y=_.DH.ytcsi;if(y&&y.gt&&(y=y.gt())&&y.tick&&(y.tick.aft>0||y.tick.pbs>0)&&(_.I8("IS_HOMEPAGE_COLD")||_.I8("IS_RESULTS_PAGE_COLD")||_.I8("IS_WATCH_PAGE_COLD"))){OCE(this);break a}omt(iGw,this.onNotifications,this)}};
var K02=function(y){var W=function(){y.signals.processSignal("dl")};
document.readyState==="complete"?(_.Va(Error("th"),"WARNING"),W()):_.A3w(window,"load",W)};
$sV.prototype.onNotifications=function(y){y.timer||(_.I8("IS_HOMEPAGE_COLD")||_.I8("IS_RESULTS_PAGE_COLD")||_.I8("IS_WATCH_PAGE_COLD"))&&OCE(this)};
var OCE=function(y){y.signals.parkOrScheduleJob(function(){y.signals.processSignal("eocs")},10,"eor")};
new $sV;var FK,gqJ=function(){return _.cQ.apply(this,arguments)||this};
_.R(gqJ,_.cQ);_.f=gqJ.prototype;_.f.enableActiveViewMeasurement=function(y){if(this.isActiveViewEnabled(y)){var W=this.getUrlPrefixesFromCommand(y.viewableCommands);y=this.getUrlPrefixesFromCommand(y.endOfSessionCommands);FK||(FK=new UcH(this.getVersion()));$cf(FK,this.hostElement);K1I(FK,this.hostElement,W,y)}};
_.f.stopActiveViewMeasurement=function(){FK&&$cf(FK,this.hostElement)};
_.f.isActiveViewEnabled=function(y){return!!y&&(this.hasAtLeastOneUrl(y.viewableCommands)||this.hasAtLeastOneUrl(y.endOfSessionCommands))};
_.f.hasAtLeastOneUrl=function(y){return!!y&&y.length>0&&y[0].loggingUrls!=null&&y[0].loggingUrls.length>0};
_.f.getVersion=function(){var y=_.Nn("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(y==null?void 0:y.length)===2?y[1]:null};
_.f.getUrlPrefixesFromCommand=function(y){if(!y)return[];var W=[];y=_.z(y);for(var c=y.next();!c.done;c=y.next())if(c=c.value,c.loggingUrls){c=_.z(c.loggingUrls);for(var Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z.baseUrl&&W.push(Z.baseUrl)}return W};
var RR2=gqJ;RR2=_.x([_.ZV()],RR2);var UO=[RR2.prototype];var lMV=function(){return _.cQ.apply(this,arguments)||this};
_.R(lMV,_.cQ);_.dJ.Object.defineProperties(lMV.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.O("enable_entity_store_from_dependency_injection")?_.I5():_.Sv()}}});
var Eqm=lMV;Eqm=_.x([_.ZV()],Eqm);_.$s=[so.prototype,Eqm.prototype];var NE2=["ytd-rich-shelf-renderer"],IMW=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;y.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";y.followUpDialogPromise=null;y.followUpDialogPromiseResolve=null;y.followUpDialogPromiseReject=null;return y};
_.R(IMW,_.cQ);_.f=IMW.prototype;_.f.dismissibleItemIsDismissedChanged_=function(y){_.O("kevlar_fluid_dismiss")&&(y?_.Z2(this.hostElement,"yt-dismissible-item-dismissed"):_.Z2(this.hostElement,"yt-dismissible-item-undismissed"))};
_.f.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.f.dismissibleItemReset_=function(){var y=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 _.fD(function(W,c){y.followUpDialogPromiseResolve=W;y.followUpDialogPromiseReject=c});
_.Z2(this.hostElement,"yt-enable-lockup-interaction")};
_.f.dismissibleItemOnYtServiceRequestSent_=function(y,W){W.actions&&this.dismissibleItemProcessActions(W.actions,y)};
_.f.dismissibleItemOnRequestSent=function(y){if(_.O("web_button_rework"))for(var W=_.z(y.detail),c=W.next();!c.done;c=W.next()){var Z=void 0;(c=(Z=_.g(c.value,_.nl))==null?void 0:Z.actions)&&this.dismissibleItemProcessActions(c,y)}};
_.f.dismissibleItemOnCommandSent=function(y,W){W&&this.dismissibleItemProcessActions(W,y)};
_.f.setAndGetDismissedContentId=function(y){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+y};
_.f.replayDismissAction=function(y){this.dismissibleItemProcessActions([y])};
_.f.dismissibleItemProcessActions=function(y,W){for(var c=0;c<y.length;c++){var Z=y[c],G=void 0;((G=_.g(Z,_.uN))==null?0:G.commands)&&this.dismissibleItemProcessActions(_.g(Z,_.uN).commands,W);if(_.g(Z,_.sx)){if(G=_.g(Z,_.sx),!G.replaceParentSection||NE2.includes(this.hostElement.nodeName.toLowerCase()))_.O("web_see_fewer_shorts_reactive_dismissal")&&G.groupDismissal&&pwI(this,G.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(G),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.o3("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:Z})),Z=void 0,(Z=W)==null||Z.stopPropagation()}else if(_.g(Z,cUi))this.dismissibleItemHandleHideEnclosingAction_(),Z=void 0,(Z=W)==null||Z.stopPropagation();else if(_.g(Z,tmE))_.O("web_see_fewer_shorts_reactive_dismissal")&&(Z=_.g(Z,tmE),G=void 0,((G=Z)==null?0:G.targetGroupId)&&pwI(this,{targetGroupId:Z.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.o3("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),Z=void 0,(Z=W)==null||Z.stopPropagation();else if(_.g(Z,_.nl))(Z=_.g(Z,_.nl).actions)&&_.mq(this.hostElement,Z,this.hostElement),Z=void 0,(Z=W)==null||Z.stopPropagation();else{var D=G=void 0;((G=_.g(Z,_.Jc))==null?void 0:G.signal)!=="TELL_US_WHY"||((D=_.g(Z,_.Jc))==null?0:D.targetId)&&_.O("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Z=void 0,(Z=W)==null||Z.stopPropagation())}}};
_.f.dismissibleItemOnYtServiceRequestCompleted_=function(y,W){var c=this.get("feedbackResponses.0.followUpDialog",W.data);c?this.followUpDialogPromiseResolve(c):W.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(W.actions,y)};
_.f.dismissibleItemHandleReplaceEnclosingAction_=function(y){this.dismissedRenderer=y.item;this.isDismissed=!0;var W=null;(W=_.p(this.hostElement).querySelector("#dismissed"))&&_.Lv(this,function(){_.Bn(W)});
_.Z2(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.f.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.f.dismissibleItemHandleUndoFeedbackAction_=function(){_.Z2(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.f.dismissibleItemHandleTellUsWhySignalAction_=function(){var y=this;this.followUpDialogPromise.then(function(W){y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:W}})})};
var K4=IMW;K4.prototype.dismissibleItemOnYtServiceRequestCompleted_=K4.prototype.dismissibleItemOnYtServiceRequestCompleted_;K4.prototype.dismissibleItemOnCommandSent=K4.prototype.dismissibleItemOnCommandSent;K4.prototype.dismissibleItemOnRequestSent=K4.prototype.dismissibleItemOnRequestSent;K4.prototype.dismissibleItemOnYtServiceRequestSent_=K4.prototype.dismissibleItemOnYtServiceRequestSent_;K4.prototype.dismissibleItemDataChanged_=K4.prototype.dismissibleItemDataChanged_;
K4.prototype.dismissibleItemIsDismissedChanged_=K4.prototype.dismissibleItemIsDismissedChanged_;_.x([_.C(_.CB),_.e("design:type",Object)],K4.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],K4.prototype,"ytdReduxBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],K4.prototype,"isDismissed",void 0);_.x([_.L(),_.e("design:type",Object)],K4.prototype,"dismissedRenderer",void 0);
_.x([_.H("isDismissed"),_.e("design:type",Function),_.e("design:paramtypes",[Boolean]),_.e("design:returntype")],K4.prototype,"dismissibleItemIsDismissedChanged_",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],K4.prototype,"dismissibleItemDataChanged_",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],K4.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.x([_.B("yt-service-request-sent-button-renderer"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],K4.prototype,"dismissibleItemOnRequestSent",null);
_.x([_.B("yt-dismissible-item-action"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Array]),_.e("design:returntype")],K4.prototype,"dismissibleItemOnCommandSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],K4.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);K4=_.x([_.ZV()],K4);_.OO=[_.CB,_.$s,K4.prototype];var gY=function(){var y=_.cQ.apply(this,arguments)||this;y.disableGridStateAware=!1;y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};y.currentGridClass="";return y};
_.R(gY,_.cQ);gY.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Lv(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var y=this.gridStateAwareGetElement();_.i0(y,"grid",!0)}};
gY.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
gY.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.p(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
gY.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var y="grid-disabled";else{y=_.uS8.getInstance();var W=this.get("pageSubtype");y=W&&Y73.includes(W)?"grid-disabled":y.currentSnapState_?y.currentSnapState_.className:null}(W=this.gridStateAwareGetElement())&&y!==this.currentGridClass&&(y&&_.i0(W,y,!0),this.currentGridClass&&_.i0(W,this.currentGridClass,!1),this.currentGridClass=y)};
var R6=gY;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],R6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",String)],R6.prototype,"gridStateAwareSizingElementSelector",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],R6.prototype,"disableGridStateAware",void 0);R6=_.x([_.ZV()],R6);_.lZ=[R6.prototype,_.Hj.YtActionHandlerBehavior];_.EO=new _.Sm("GUIDE_TOKEN");var px3;_.N6={};px3=function(){var y=_.cQ.apply(this,arguments)||this;y.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 y};
_.R(px3,_.cQ);_.f=px3.prototype;_.f.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.f.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var y=_.U().resolve(_.xN(_.EO));y&&(this.guidePersistentAndVisible=y.getGuidePersistentAndVisible(),this.activeEndpoint=y.getActiveEndpoint(),this.guideOpened=y.getGuideOpened(),this.miniGuideVisible=y.getMiniGuideVisible())};
_.f.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.f.handleGuideStateAction=function(y){this.guidePersistentAndVisible=y};
_.f.handleMiniGuideStateAction=function(y){this.miniGuideVisible=y};
_.f.handleGuideOpenedAction=function(y){this.guideOpened=y};
_.f.handleActiveEndpointAction=function(y){this.activeEndpoint=y};
var I6=px3;I6.prototype.onActiveEndpointChange=I6.prototype.onActiveEndpointChange;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],I6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],I6.prototype,"guidePersistentAndVisible",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],I6.prototype,"miniGuideVisible",void 0);_.x([_.L(),_.e("design:type",Object)],I6.prototype,"activeEndpoint",void 0);
_.x([_.H("activeEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],I6.prototype,"onActiveEndpointChange",null);_.x([_.L(),_.e("design:type",Boolean)],I6.prototype,"guideOpened",void 0);I6=_.x([_.ZV()],I6);_.N6.YtdGuideStateAwareBehavior=[];_.N6.YtdGuideStateAwareBehavior.push(I6.prototype,_.Hj.YtActionHandlerBehavior);var PeE=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],JOZ=function(){var y=_.cQ.apply(this,arguments)||this;y.hoverJobId=0;y.JSC$12022_touched=!1;return y};
_.R(JOZ,_.cQ);_.f=JOZ.prototype;_.f.created=function(){this.useExpandableTooltip=!PeE.includes(this.is)};
_.f.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.f.detached=function(){this.useExpandableTooltip=!1};
_.f.lockupOnDown=function(y){this.interactionElement&&!_.Cx(_.Aq(y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.f.lockupOnUp=function(y){this.interactionElement&&!_.Cx(_.Aq(y),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.f.onTouchStart=function(){this.JSC$12022_touched=!0};
_.f.lockupOnMouseEnter=function(){var y=this,W=_.ey("kevlar_lockup_hover_delay",-1);this.JSC$12022_touched&&W>=0?(_.KX.cancelJob(this.hoverJobId),this.hoverJobId=_.KX.addJob(function(){y.lockupIsHovered=!0},8,W),this.JSC$12022_touched=!1):this.lockupIsHovered=!0};
_.f.lockupOnMouseLeave=function(){this.hoverJobId&&(_.KX.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.f.lockupOnPopupClosed=function(y,W){var c;((c=W.popupRenderer)==null?void 0:c.is)==="ytd-menu-popup-renderer"&&(y=W.popupRenderer.veData,W=_.NR(),y&&W&&_.dK(W,[y]))};
_.f.lockupOnLockupRequested=function(y){var W=y.detail.videoIds[0],c;y.detail&&W===((c=this.data)==null?void 0:c.videoId)&&(y.detail.returnValue=[this.data])};
_.f.lockupOnYtServiceRequestSent=function(y,W){if(y=W.actions)for(var c=0;c<y.length;c++){var Z=y[c];if(Z.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&W.ajaxPromise){var G=void 0,D=(G=_.g(W.endpoint,_.KF))==null?void 0:G.playlistId;G=void 0;Z=(G=Z.removedVideoId)!=null?G:"";CBQ(_.JI(),Z,D)}else Z.action==="ACTION_REMOVE_VIDEO"&&W.ajaxPromise&&(D=void 0,Z=(D=Z.setVideoId)!=null?D:"",_.Qnm(_.JI(),Z))}};
_.f.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.f.lockupOnLockupEnabled=function(){if(!this.$){var y=_.U().resolve(_.h7).getCurrentPage(),W=this.getParentRenderer?this.getParentRenderer():void 0;_.Rs(new _.ul("component not ready",this.is,this.isAttached,y==null?void 0:y.is,W==null?void 0:W.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
var p4=JOZ;p4.prototype.lockupOnLockupEnabled=p4.prototype.lockupOnLockupEnabled;p4.prototype.lockupOnLockupDisabled=p4.prototype.lockupOnLockupDisabled;p4.prototype.lockupOnYtServiceRequestSent=p4.prototype.lockupOnYtServiceRequestSent;p4.prototype.lockupOnLockupRequested=p4.prototype.lockupOnLockupRequested;p4.prototype.lockupOnPopupClosed=p4.prototype.lockupOnPopupClosed;p4.prototype.lockupOnMouseLeave=p4.prototype.lockupOnMouseLeave;p4.prototype.lockupOnMouseEnter=p4.prototype.lockupOnMouseEnter;
p4.prototype.onTouchStart=p4.prototype.onTouchStart;p4.prototype.lockupOnUp=p4.prototype.lockupOnUp;p4.prototype.lockupOnDown=p4.prototype.lockupOnDown;_.x([_.L(),_.e("design:type",Object)],p4.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],p4.prototype,"lockupIsHovered",void 0);_.x([_.L(),_.e("design:type",Boolean)],p4.prototype,"lockupTouchTriggered",void 0);_.x([_.L(),_.e("design:type",Boolean)],p4.prototype,"useExpandableTooltip",void 0);
_.x([_.jj("#interaction"),_.e("design:type",Object)],p4.prototype,"interactionElement",void 0);_.x([_.B("down"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],p4.prototype,"lockupOnDown",null);_.x([_.B("up"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],p4.prototype,"lockupOnUp",null);
_.x([_.B("touchstart"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p4.prototype,"onTouchStart",null);_.x([_.B("mouseenter"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p4.prototype,"lockupOnMouseEnter",null);_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p4.prototype,"lockupOnMouseLeave",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],p4.prototype,"lockupOnPopupClosed",null);_.x([_.B("yt-lockup-requested"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],p4.prototype,"lockupOnLockupRequested",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],p4.prototype,"lockupOnYtServiceRequestSent",null);_.x([_.B("yt-disable-lockup-interaction"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p4.prototype,"lockupOnLockupDisabled",null);
_.x([_.B("yt-enable-lockup-interaction"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p4.prototype,"lockupOnLockupEnabled",null);p4=_.x([_.ZV()],p4);_.P2=[p4.prototype];_.Vn3={YtdReduxBehavior:[]};_.Vn3.YtdReduxBehavior.push.apply(_.Vn3.YtdReduxBehavior,_.$s);var CeV=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;y.disableNowPlaying=!1;y.disableTooltips=!1;y.useHoveredProperty=!1;y.hovered=!1;y.isThumbnailHovered_=!1;y.addBackground=_.O("kevlar_thumbnail_bg");y.nowPlaying=!1;y.disableRounding=!1;y.size="small";return y};
_.R(CeV,_.cQ);_.f=CeV.prototype;_.f.computeThumbnailOverlaySidePanelWidth_=function(y,W){return y-W};
_.f.computeSize=function(y,W){if(!this.disableRounding){if(!y&&!W)return"small";y=Math.max(y||0,W||0);return y>=256?"large":y>=96?"medium":"small"}};
_.f.computeFinalHoveredState_=function(y,W,c){return this.nowPlaying?!1:_.O("kevlar_thumbnail_fluid")&&y?W:c};
_.f.computeHoverOverlays_=function(y,W){return y&&W?W:void 0};
_.f.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.f.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.f.checkMiniplayer_=function(){var y;if(((y=this.data)==null?0:y.playlistSetVideoId)&&_.O("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{y=_.GR();var W=y.currentEndpoint;!this.disableNowPlaying&&W&&_.g(W,_.Sb)&&this.data?(W=_.g(W,_.Sb),this.nowPlaying=this.data.playlistId?W.playlistId===this.data.playlistId:W.videoId===this.data.videoId,this.isVideoPlaying=y==null?void 0:y.isVideoPlaying):this.nowPlaying=!1}};
var JZ=CeV;JZ.prototype.checkMiniplayer_=JZ.prototype.checkMiniplayer_;JZ.prototype.onMouseLeave_=JZ.prototype.onMouseLeave_;JZ.prototype.onMouseEnter_=JZ.prototype.onMouseEnter_;JZ.prototype.computeHoverOverlays_=JZ.prototype.computeHoverOverlays_;JZ.prototype.computeFinalHoveredState_=JZ.prototype.computeFinalHoveredState_;JZ.prototype.computeSize=JZ.prototype.computeSize;JZ.prototype.computeThumbnailOverlaySidePanelWidth_=JZ.prototype.computeThumbnailOverlaySidePanelWidth_;
_.x([_.C(_.$s),_.e("design:type",Object)],JZ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JZ.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],JZ.prototype,"height",void 0);_.x([_.L(),_.e("design:type",Boolean)],JZ.prototype,"bottomSidePanel",void 0);_.x([_.L(),_.e("design:type",Number)],JZ.prototype,"width",void 0);_.x([_.L(),_.e("design:type",Object)],JZ.prototype,"disableNowPlaying",void 0);
_.x([_.L({selector:_.Eq}),_.e("design:type",Boolean)],JZ.prototype,"miniplayerIsActive",void 0);_.x([_.L(),_.e("design:type",Object)],JZ.prototype,"disableTooltips",void 0);_.x([_.L(),_.e("design:type",Object)],JZ.prototype,"useHoveredProperty",void 0);_.x([_.L(),_.e("design:type",Object)],JZ.prototype,"hovered",void 0);_.x([_.L(),_.e("design:type",Object)],JZ.prototype,"isThumbnailHovered_",void 0);
_.x([_.L({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.e("design:type",Boolean)],JZ.prototype,"finalHoveredState_",void 0);_.x([_.L({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.e("design:type",Number)],JZ.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],JZ.prototype,"addBackground",void 0);
_.x([_.L({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.e("design:type",Object)],JZ.prototype,"hoverOverlays_",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],JZ.prototype,"nowPlaying",void 0);_.x([_.L(),_.e("design:type",Boolean)],JZ.prototype,"isVideoPlaying",void 0);_.x([_.L(),_.e("design:type",Object)],JZ.prototype,"disableRounding",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.e("design:type",Object)],JZ.prototype,"size",void 0);_.x([_.B("mouseenter"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JZ.prototype,"onMouseEnter_",null);_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JZ.prototype,"onMouseLeave_",null);
_.x([_.H("data","disableNowPlaying","miniplayerIsActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JZ.prototype,"checkMiniplayer_",null);JZ=_.x([_.ZV()],JZ);var QaE=[JZ.prototype];_.VW={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(y,W){return y+":"+_.kF(W)},
getPlayerListener_:function(y,W,c){y=this.getPlayerListenerKey_(y,W);W=this.playerListeners_.get(y);c&&this.playerListeners_.delete(y);return W},
savePlayerListener_:function(y,W){var c=W.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(y,W),c);return c},
listenToPlayerEvent:function(y,W,c){c=this.savePlayerListener_(W,c);y.addEventListener(W,c)},
listenToPlayerEvents:function(y,W){W.forEach(function(c,Z){this.listenToPlayerEvent(y,Z,c)}.bind(this))},
unlistenFromPlayerEvent:function(y,W,c){c=this.getPlayerListener_(W,c,!0);y.removeEventListener(W,c)},
unlistenFromPlayerEvents:function(y,W){W.forEach(function(c,Z){this.unlistenFromPlayerEvent(y,Z,c)}.bind(this))}}};
_.C4=function(){};_.AOE=new _.Sm("PLAYER_API_TOKEN");var Qmt=!1,HmE,hja=!1,vut;var dI=function(y,W,c,Z,G){_.UR.call(this);var D=this;this.playerId=W;this.webPlayerContextConfig=Z;this.sop=G;this.ioe=!1;this.api={};this.qRS=this.iU=null;this.w3a=new _.fR;this.qS={};this.yEl=this.qm9=this.elementId=this.v6q=this.config=null;this.xH3=!1;this.ru=this.hC4=null;this.cin={};this.hYx=["onReady"];this.lastError=null;this.sfB=NaN;this.xs0={};this.tg0=0;this.lJ=this.targetElement=y;_.zY(this,this.w3a);hRT(this);c?this.tg0=setTimeout(function(){D.loadNewVideoConfig(c)},0):Z&&(BEi(this),
HCW(this))};
_.R(dI,_.UR);dI.prototype.getId=function(){return this.playerId};
dI.prototype.loadNewVideoConfig=function(y){if(!this.isDisposed()){this.tg0&&(clearTimeout(this.tg0),this.tg0=0);var W=y||{};W instanceof x78||(W=new x78(W));this.config=W;this.setConfig(y);HCW(this);this.isReady()&&L05(this)}};
var BEi=function(y){var W;y.webPlayerContextConfig?W=y.webPlayerContextConfig.rootElementId:W=y.config.attrs.id;y.elementId=W||y.elementId;y.elementId==="video-player"&&(y.elementId=y.playerId,y.webPlayerContextConfig?y.webPlayerContextConfig.rootElementId=y.playerId:y.config.attrs.id=y.playerId);var c;((c=y.lJ)==null?void 0:c.id)===y.elementId&&(y.elementId+="-player",y.webPlayerContextConfig?y.webPlayerContextConfig.rootElementId=y.elementId:y.config.attrs.id=y.elementId)};
dI.prototype.setConfig=function(y){this.v6q=y;this.config=vq8(y);BEi(this);if(!this.qm9){var W;this.qm9=dsT(this,((W=this.config.args)==null?void 0:W.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var c;if((c=this.config)==null?0:c.attrs)y=this.config.attrs,(W=y.width)&&this.lJ&&(this.lJ.style.width=Cd(Number(W)||W,!0)),(y=y.height)&&this.lJ&&(this.lJ.style.height=Cd(Number(y)||y,!0))};
var L05=function(y){if(y.config&&y.config.loaded!==!0)if(y.config.loaded=!0,!y.config.args||y.config.args.autoplay!=="0"&&y.config.args.autoplay!==0&&y.config.args.autoplay!==!1){var W;y.api.loadVideoByPlayerVars((W=y.config.args)!=null?W:null)}else y.api.cueVideoByPlayerVars(y.config.args)},TEW=function(y){var W=!0,c=y.getPlayerElement();
c&&y.config&&(W=c.dataset.version===SvJ(y));return W&&!!_.JW("yt.player.Application.create")},HCW=function(y){if(!y.isDisposed()&&!y.xH3){var W=TEW(y);
if(W&&(y.getPlayerElement()?"html5":null)==="html5")y.yEl="html5",y.isReady()||aMV(y);else if(xsm(y),y.yEl="html5",W&&y.ru&&y.targetElement)y.targetElement.appendChild(y.ru),aMV(y);else{y.config&&(y.config.loaded=!0);var c=!1;y.hC4=function(){c=!0;var Z=iC2(y,"player_bootstrap_method")?_.JW("yt.player.Application.createAlternate")||_.JW("yt.player.Application.create"):_.JW("yt.player.Application.create");var G=y.config?vq8(y.config):void 0;Z&&Z(y.targetElement,G,y.webPlayerContextConfig,y.sop);aMV(y)};
y.xH3=!0;W?y.hC4():(_.Vn(SvJ(y),y.hC4),(W=Mnm(y))&&t0E(W||""),eRJ(y)&&!c&&_.LR("yt.player.Application.create",null))}}};
dI.prototype.getPlayerElement=function(){var y=_.vF(document,this.elementId);!y&&this.lJ&&this.lJ.querySelector&&(y=this.lJ.querySelector("#"+this.elementId));return y};
var aMV=function(y){if(!y.isDisposed()){var W=y.getPlayerElement(),c=!1;W&&W.getApiInterface&&W.getApiInterface()&&(c=!0);if(c){y.xH3=!1;if(!iC2(y,"html5_remove_not_servable_check_killswitch")){var Z;if((W==null?0:W.isNotServable)&&y.config&&(W==null?0:W.isNotServable((Z=y.config.args)==null?void 0:Z.video_id)))return}wxJ(y)}else y.sfB=setTimeout(function(){aMV(y)},50)}},wxJ=function(y){hRT(y);
y.ioe=!0;var W=y.getPlayerElement();if(W){y.iU=qvV(y,W,"addEventListener");y.qRS=qvV(y,W,"removeEventListener");var c=W.getApiInterface();c=c.concat(W.getInternalApiInterface());for(var Z=y.api,G=0;G<c.length;G++){var D=c[G];Z[D]||(Z[D]=qvV(y,W,D))}}for(var Y in y.qS)y.qS.hasOwnProperty(Y)&&y.iU&&y.iU(Y,y.qS[Y]);L05(y);y.qm9&&y.qm9(y.api);y.w3a.publish("onReady",y.api)},qvV=function(y,W,c){var Z=W[c];
return function(){var G=_.Cf.apply(0,arguments);try{return y.lastError=null,Z.apply(W,G)}catch(D){if(c!=="sendAbandonmentPing")throw D.params=c,y.lastError=D,G=new _.ul("PlayerProxy error in method call",{error:D,method:c,playerId:y.playerId}),G.level="WARNING",G;}}},hRT=function(y){y.ioe=!1;
if(y.qRS)for(var W in y.qS)y.qS.hasOwnProperty(W)&&y.qRS(W,y.qS[W]);for(var c in y.xs0)y.xs0.hasOwnProperty(c)&&clearTimeout(Number(c));y.xs0={};y.iU=null;y.qRS=null;W=y.api;for(var Z in W)W.hasOwnProperty(Z)&&(W[Z]=null);W.addEventListener=function(G,D){y.addEventListener(G,D)};
W.removeEventListener=function(G,D){y.removeEventListener(G,D)};
W.destroy=function(){y.dispose()};
W.getLastError=function(){return y.getLastError()};
W.getPlayerType=function(){return y.getPlayerType()};
W.getCurrentVideoConfig=function(){return y.v6q};
W.loadNewVideoConfig=function(G){y.loadNewVideoConfig(G)};
W.isReady=function(){return y.isReady()}};
dI.prototype.isReady=function(){return this.ioe};
dI.prototype.addEventListener=function(y,W){var c=this;this.isDisposed();var Z=dsT(this,W);Z&&(_.Hy(this.hYx,y)||this.qS[y]||(W=kXJ(this,y),this.iU&&this.iU(y,W)),this.w3a.subscribe(y,Z),y==="onReady"&&this.isReady()&&setTimeout(function(){Z(c.api)},0))};
dI.prototype.removeEventListener=function(y,W){this.isDisposed()||(W=dsT(this,W))&&this.w3a.unsubscribe(y,W)};
var dsT=function(y,W){var c=W;if(typeof W==="string"){if(y.cin[W])return y.cin[W];c=function(){var Z=_.Cf.apply(0,arguments),G=_.JW(W);if(G)try{G.apply(_.DH,Z)}catch(D){throw Z=new _.ul("PlayerProxy error when executing callback",{error:D}),Z.level="ERROR",Z;}};
y.cin[W]=c}return c?c:null},kXJ=function(y,W){var c=function(Z){var G=function(){y.isDisposed();
if(!y.isDisposed())try{y.w3a.publish(W,Z!=null?Z:void 0)}catch(u){var Y=new _.ul("PlayerProxy error when creating global callback",{error:u.message,event:W,playerId:y.playerId,data:Z,originalStack:u.stack,componentStack:u.componentStack});Y.level="WARNING";throw Y;}};
if(iC2(y,"web_player_publish_events_immediately"))G();else{var D=setTimeout(function(){G();_.Eb.remove(y.xs0,String(D))},0);
_.Eb.add(y.xs0,String(D),!0)}};
return y.qS[W]=c};
dI.prototype.getPlayerType=function(){return this.yEl||(this.getPlayerElement()?"html5":null)};
dI.prototype.getLastError=function(){return this.lastError};
var xsm=function(y){y.cancel();hRT(y);y.yEl=null;y.config&&(y.config.loaded=!1);var W=y.getPlayerElement();W&&(TEW(y)||!eRJ(y)?y.ru=W:(W&&W.destroy&&W.destroy(),y.ru=null));y.targetElement&&_.l5(y.targetElement)};
dI.prototype.cancel=function(){this.hC4&&_.AJH(SvJ(this),this.hC4);clearTimeout(this.sfB);this.xH3=!1};
dI.prototype.disposeInternal=function(){xsm(this);if(this.ru&&this.config&&this.ru.destroy)try{this.ru.destroy()}catch(W){var y=new _.ul("PlayerProxy error during disposal",{error:W});y.level="ERROR";throw y;}this.cin=null;for(y in this.qS)this.qS.hasOwnProperty(y)&&delete this.qS[y];this.v6q=this.config=this.api=null;delete this.targetElement;delete this.lJ;_.UR.prototype.disposeInternal.call(this)};
var eRJ=function(y){var W,c;y=(W=y.config)==null?void 0:(c=W.args)==null?void 0:c.fflags;return!!y&&y.indexOf("player_destroy_old_version=true")!==-1},SvJ=function(y){return y.webPlayerContextConfig?y.webPlayerContextConfig.jsUrl:(y=y.config.assets)?y.js:""},Mnm=function(y){return y.webPlayerContextConfig?y.webPlayerContextConfig.cssUrl:(y=y.config.assets)?y.css:""},iC2=function(y,W){if(y.webPlayerContextConfig)var c=y.webPlayerContextConfig.serializedExperimentFlags;
else{var Z;if((Z=y.config)==null?0:Z.args)c=y.config.args.fflags}return(c||"").split("&").includes(W+"=true")},vq8=function(y){for(var W={},c=_.z(Object.keys(y)),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;
var G=y[Z];W[Z]=typeof G==="object"?_.Eb.clone(G):G}return W};var xNa={},aBE="player_uid_"+(Math.random()*1E9>>>0);var QW=function(y,W,c,Z,G,D){W=W===void 0?document.createElement("div"):W;this.webPlayerContextConfig=y;this.container=W;this.commandResolver=c;this.apiResolver=ejD();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.WK;Z||D?jCm(this):yNV(this);this.pendingPlayerResponse=Z;this.pendingWatchNextResponse=G;this.pendingPlayerVars=D;WFQ(this)};
QW.prototype.loadVideoWithPlayerResponse=function(y,W,c){this.loadVideo(y,W,c)};
QW.prototype.loadVideoWithPlayerVars=function(y){return this.loadVideo(void 0,void 0,y)};
QW.prototype.destroy=function(y){if(y=_.vF(document,y))y=aBE+"_"+_.kF(y),(y=xNa[y])&&y.dispose()};
var ZKJ=function(y,W){var c;_.m(function(Z){if(Z.nextAddress==1)return y.pendingWatchNextResponse=W,y.synchronousApi?(c=y.synchronousApi,Z.jumpTo(2)):_.n(Z,y.api,3);Z.nextAddress!=2&&(c=Z.yieldResult);cNi(y,c);y.pendingWatchNextResponse&&(c.updateVideoData({raw_watch_next_response:y.pendingWatchNextResponse}),y.pendingWatchNextResponse=void 0);_.F2(Z)})},cNi=function(y,W){var c;
if(!(W==null?0:(c=W.isReady)==null?0:c.call(W))){var Z;y=new _.ul("playerApi is falsey",{synchronousApi:y.synchronousApi,apiResolved:y.apiResolver.resolved,playerApiUndefined:W===void 0,playerApiNull:W===null,playerApiReady:(W==null?void 0:(Z=W.isReady)==null?void 0:Z.call(W))===!0,playerApiMethods:W?Object.keys(W):[]});_.OP(y)}},GmT=function(y,W){if(typeof y[W]==="function")return y[W]()},f5E=function(y){var W=window,c,Z=(c=W.ytplayer)==null?void 0:c.bootstrapPlayerContainer;
if((c=Z==null?void 0:Z.firstElementChild)&&_.C$(c,"html5-video-player")){var G,D,Y=(G=W.ytplayer)==null?void 0:(D=G.bootstrapWebPlayerContextConfig)==null?void 0:D.contextId;G=y.webPlayerContextConfig.contextId;if(Y&&Y===G){Z!==y.container&&(Z=!1,GmT(c,"getPlayerState")===2&&(Z=!0),y.container.appendChild(c),Z||GmT(c,"playVideo"));var u;if((u=W.ytplayer)==null?0:u.bootstrapPlayerResponse)y.bootstrapPlayerResponse=W.ytplayer.bootstrapPlayerResponse}}},WFQ=function(y){var W,c,Z,G,D;
_.m(function(Y){if(Y.nextAddress==1)return y.pageReadyOrDataAvailable?Y.jumpTo(2):_.n(Y,y.pageReadyOrDataAvailableResolver.promise,2);if(Y.nextAddress!=4)return!_.O("kevlar_player_unified_player_loading")||AwI()&&BWw()?Y.jumpTo(4):_.n(Y,S5F(),4);f5E(y);if(y.pendingPlayerResponse||y.pendingPlayerVars)W=TWF(y.pendingPlayerResponse,y.pendingWatchNextResponse,y.pendingPlayerVars),y.pendingPlayerResponse&&y.pendingPlayerResponse===y.bootstrapPlayerResponse&&(W.loaded=!0),y.bootstrapPlayerResponse=void 0;
c=MRa(y.container,W,y.webPlayerContextConfig);((Z=W)==null?0:Z.loaded)&&y.pendingWatchNextResponse?(ZKJ(y,y.pendingWatchNextResponse),y.pendingPlayerResponse=void 0,y.pendingPlayerVars=void 0):odJ(y);G=function(u){c.removeEventListener("onReady",G);y.synchronousApi=u;y.apiResolver.resolve(u)};
c.addEventListener("onReady",G);y.commandResolver!==void 0&&(D=y.commandResolver,c.addEventListener("innertubeCommand",function(u){D(u)}));
_.F2(Y)})};
QW.prototype.loadVideo=function(y,W,c){var Z=this,G,D,Y,u,t,b,r,F,K;return _.m(function(l){if(l.nextAddress==1)return Z.pendingPlayerResponse=y,Z.pendingWatchNextResponse=W,Z.pendingPlayerVars=c,jCm(Z),Z.synchronousApi?(G=Z.synchronousApi,l.jumpTo(2)):_.n(l,Z.api,3);l.nextAddress!=2&&(G=l.yieldResult);cNi(Z,G);Y=new Promise(function(N){D=N});
u=function(){var N=G.getPlayerResponse();N&&(G.removeEventListener("onVideoDataChange",u),D(N))};
G.addEventListener("onVideoDataChange",u);if(Z.pendingPlayerResponse||Z.pendingPlayerVars)Z.pendingPlayerResponse&&Z.pendingPlayerResponse===Z.bootstrapPlayerResponse?(D(Z.pendingPlayerResponse),Z.pendingWatchNextResponse&&ZKJ(Z,Z.pendingWatchNextResponse)):(t=TWF(Z.pendingPlayerResponse,Z.pendingWatchNextResponse,Z.pendingPlayerVars),(K=(b=Z.pendingPlayerResponse)==null?void 0:(r=b.playerConfig)==null?void 0:(F=r.playbackStartConfig)==null?void 0:F.startPaused)?G.cueVideoByPlayerVars(t.args):G.loadVideoByPlayerVars(t.args)),
odJ(Z),Z.bootstrapPlayerResponse=void 0;return l.return(Y)})};
var yNV=function(y){if(document.readyState==="complete"||document.readyState==="interactive")jCm(y);else{var W=function(){document.removeEventListener("DOMContentLoaded",W);jCm(y)};
document.addEventListener("DOMContentLoaded",W)}},jCm=function(y){y.pageReadyOrDataAvailable=!0;
y.pageReadyOrDataAvailableResolver.resolve()},odJ=function(y){y.pendingPlayerResponse=void 0;
y.pendingWatchNextResponse=void 0;y.pendingPlayerVars=void 0};
_.dJ.Object.defineProperties(QW.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var AZ=function(y){OS.call(this,y===void 0?"document_active":y);var W=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(c){W.transition("document_disposed",{event:c})});
window.addEventListener("beforeunload",function(c){W.transition("document_disposed_preventable",{event:c})});
window.addEventListener("unload",function(c){W.transition("document_disposed",{event:c});W.hasRun=new Map})};
_.R(AZ,OS);
AZ.prototype.runPreventableDispose=function(y,W){if(!this.hasRun.get("document_disposed_preventable")){y(W==null?void 0:W.event);var c,Z;if((W==null?0:(c=W.event)==null?0:c.defaultPrevented)||(W==null?0:(Z=W.event)==null?0:Z.returnValue)){W.event.returnValue||(W.event.returnValue=!0);W.event.defaultPrevented||W.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
AZ.prototype.runDispose=function(y,W){this.hasRun.get("document_disposed")?this.transition("document_active"):(y(W==null?void 0:W.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
AZ.prototype.runFlush=function(y,W){y(W==null?void 0:W.event);this.transition("document_active")};
AZ.prototype.runActive=function(){};var hZ=function(y){OS.call(this,y===void 0?"document_visibility_unknown":y);var W=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(c){document.visibilityState==="visible"?W.transition("document_visible",{event:c}):W.transition("document_hidden",
{event:c})});
_.O("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(c){W.transition("document_backgrounded",{event:c})}),window.addEventListener("focus",function(c){W.transition("document_foregrounded",{event:c})}))};
_.R(hZ,OS);hZ.prototype.runVisible=function(y,W){y(W==null?void 0:W.event);_.O("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
hZ.prototype.runHidden=function(y,W){y(W==null?void 0:W.event);_.O("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
hZ.prototype.runBackgrounded=function(y,W){y(W==null?void 0:W.event)};
hZ.prototype.runForegrounded=function(y,W){y(W==null?void 0:W.event)};var B2=function(){this.teardownLifecycle=new AZ;this.visibilityLifecycle=new hZ};
B2.prototype.install=function(){var y=_.Cf.apply(0,arguments),W=this;y.forEach(function(c){W.teardownLifecycle.install(c)});
y.forEach(function(c){W.visibilityLifecycle.install(c)})};var H2=function(){B2.call(this);var y={};this.install((y.document_disposed={callback:this.abortSlisAndFlush},y));_.O("combine_ve_grafts")&&(y={},this.install((y.document_disposed={callback:this.flushInteractionLoggingAttachVes},y)));y={};this.install((y.flush_logs={callback:this.logFinalPayload},y));_.O("web_log_cfg_cee_ks")||_.Xc(_.KX,DZV)};
_.R(H2,B2);var wwE=function(){H2.loggingInstance||(H2.loggingInstance=new H2);return H2.loggingInstance};
H2.prototype.logFinalPayload=function(){if(_.O("web_fp_via_jspb")){var y=new dRT,W=_.NR();W&&_.Ub(y,1,W);W=_.O("jspb_sparse_encoded_pivot")?new nD([{}]):new nD;_.tn(W,380,SLT,y);C_H("finalPayload",W);_.O("web_fp_via_jspb_and_json")&&_.$g("finalPayload",{csn:_.NR()})}else _.$g("finalPayload",{csn:_.NR()})};
H2.prototype.abortSlisAndFlush=function(){pjJ(Pv);JA!=null&&JA.flush()};
H2.prototype.flushInteractionLoggingAttachVes=function(){w2W(_.Zz())};
var DZV=function(){var y=_.Nn("CLIENT_EXPERIMENT_EVENTS");if(y){var W=MIf();y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=c.value,W(c)&&_.$g("genericClientExperimentEvent",{eventType:c});delete _.R8.CLIENT_EXPERIMENT_EVENTS}};var zm2={};
zm2.YtPlayerBehavior=[_.VW.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 y=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.WK;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;q5H(function(){y.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.RN(this,"pan-down"),_.O("kevlar_pinch_fullscreen")&&_.yN().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.O("kevlar_pinch_fullscreen")&&_.yN().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(y,W,c){var Z=this;S9(this.useUnifiedPlayer_());if(this.mainAppPlayer_)S9(!1,"MainAppPlayer already created.");else{var G=_.O("kevlar_player_container_query_killswitch")?this.$.container:_.p(this.hostElement).querySelector("#container");this.mainAppPlayer_=new QW(this.getWebPlayerContextConfig_(),G,function(D){return _.jl(D,Z.hostElement)},y,W,c);
this.mainAppPlayer_.api.then(function(D){Z.player_=D;Z.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&MaZ.resolve(D)})}},
loadVideoWithPlayerResponse:function(y,W){var c=this;if(this.useUnifiedPlayer_()){var Z=this.watchNextData,G,D=(G=y.videoDetails)==null?void 0:G.videoId,Y,u,t;(G=(Y=this.watchNextData)==null?void 0:(u=Y.currentVideoEndpoint)==null?void 0:(t=u.watchEndpoint)==null?void 0:t.videoId)&&D!=G&&(Z=void 0,_.O("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(y,Z,W):this.createMainAppPlayer_(y,Z,W);this.mainAppPlayer_.api.then(function(){_.Z2(c.hostElement,
"yt-player-updated")})}else this.update(Jw1(y,W))},
loadVideoWithPlayerVars:function(y){var W=this;this.useUnifiedPlayer_()?(_.O("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(y):this.createMainAppPlayer_(void 0,void 0,y),this.mainAppPlayer_.api.then(function(){_.Z2(W.hostElement,"yt-player-updated")})):this.update({args:y})},
update:function(y){var W=this;if(this.useUnifiedPlayer_())S9(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(y);var c=MXE(y.args);c&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==c&&Object.assign(y.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(y).then(function(Z){_.Z2(W.hostElement,"yt-player-updated",_.O("kevlar_player_updated_obsolete_player_killswitch")?
Z:void 0)})}_.gC(new _.ul("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.getPlayerPromise(),2);c=Z.yieldResult;if(!c)throw Error("vh");y&&W.updatePlayerPlaylist_(y);_.F2(Z)})},
acquireApi_:function(y){var W=this;if(this.useUnifiedPlayer_())S9(!1,"Invalid method call in kevlar_unified_player.");else return _.KX.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(S9(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(c){W.shouldAutoplay_(y)?c.loadVideoByPlayerVars(y.args):c.cueVideoByPlayerVars(y.args)})):this.initPlayerPromise_=this.initPlayerContainer_(y),this.initPlayerPromise_},
initPlayerContainer_:function(y){var W=this;if(this.useUnifiedPlayer_())S9(!1,"Invalid method call in kevlar_unified_player.");else return S9(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Rs(Error("wh")),S9(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.O("kevlar_player_container_query_killswitch")?this.$.container:_.p(this.hostElement).querySelector("#container"),S5F().then(function(){var c=W.initPlayer_(y);W.playerResolver_.resolve(c);
return c})},
onPlayerReady_:function(y,W){this.useUnifiedPlayer_()?S9(!1,"Invalid method call in kevlar_unified_player."):(y.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&MaZ.resolve(y),W(y))},
maybeCallApiMethodOnElement_:function(y,W){if(typeof y[W]==="function")return y[W]()},
maybeAdoptBootstrapPlayer_:function(){var y=window,W,c=(W=y.ytplayer)==null?void 0:W.bootstrapPlayerContainer;if((W=c==null?void 0:c.firstElementChild)&&W.classList.contains("html5-video-player")){var Z,G,D=(Z=y.ytplayer)==null?void 0:(G=Z.bootstrapWebPlayerContextConfig)==null?void 0:G.contextId;Z=this.getWebPlayerContextConfig_().contextId;if(D&&D===Z){c!==this.playerContainer_&&(c=!1,this.maybeCallApiMethodOnElement_(W,"getPlayerState")===2&&(c=!0),this.playerContainer_.appendChild(W),c||this.maybeCallApiMethodOnElement_(W,
"playVideo"));var Y;if((Y=y.ytplayer)==null?0:Y.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=y.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(y){var W=this;if(this.useUnifiedPlayer_())S9(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(c){W.maybeAdoptBootstrapPlayer_();var Z=y?VRw(y):void 0;Z&&Z==W.bootstrapPlayerResponse_&&(y.loaded=!0);Z=W.playerContainer_;var G=W.getWebPlayerContextConfig_();Z=MRa(Z,y,G);W.player_=Z;W.onPlayerReadyEvent_=W.onPlayerReady_.bind(W,W.player_,c);W.player_.addEventListener("onReady",W.onPlayerReadyEvent_);W.player_.addEventListener("innertubeCommand",
W.onPlayerInnerTubeCommand_.bind(W))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(y){y.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(y){y.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var y=_.U().resolve(_.h7).getCurrentPage();y&&y.getScrollTop()<=0?_.RN(this,"pan-down"):_.RN(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(y){y.isFullscreen()||y.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(y){y.isFullscreen()&&y.toggleFullscreen()})},
updatePlayerPlaylist_:function(y){var W=this,c,Z,G;return _.m(function(D){if(D.nextAddress==1)return c=_.U().resolve(_.xN(_.EU)),Z=!!(c&&c.playlistComponent&&c.playlistComponent.loopOn),_.n(D,W.getPlayerPromise(),2);var Y=G=D.yieldResult,u=Y.updatePlaylist,t=[];if(_.O("kevlar_player_playlist_use_local_index")){var b,r;var F=(r=(b=y.localCurrentIndex)!=null?b:y.currentIndex)!=null?r:0}else{var K;F=(K=y.currentIndex)!=null?K:0}if(y.contents)for(b=0;b<y.contents.length;b++)if((r=y.contents[b])&&r.playlistPanelVideoRenderer)if(ong(r)){r=
r.playlistPanelVideoRenderer;K="";r.shortBylineText&&(K=_.v$(r.shortBylineText));var l="";r.title?l=_.v$(r.title):r.unplayableText&&(l=_.v$(r.unplayableText));t.push({author:K,title:l,encrypted_id:r.videoId})}else b<F&&--F;u.call(Y,{index:F,list:y.playlistId?y.playlistId:"",loop:Z,playlist_title:y.title,playlist_length:t.length,video:t,fetch:0,external_list:"1",title:y.title?y.title:"",playlist_author:y.ownerName?_.v$(y.ownerName):void 0});_.F2(D)})},
focusOnPlayer:function(){_.Lv(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var y=this.playerContainer_.querySelector(".html5-video-player");y&&(_.YiT(_.U().resolve(_.t7)),y.focus())}})},
preparePlayer:function(){var y=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(W){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")W();else{var c=function(){document.removeEventListener("DOMContentLoaded",c);W()};
document.addEventListener("DOMContentLoaded",c)}})).then(function(){return S5F()}).then(function(){y.initPlayerPromise_||y.preparePlayerJobId_||(y.preparePlayerJobId_=_.Xc(_.KX,function(){y.initPlayerPromise_||(y.initPlayerPromise_=y.initPlayerContainer_())}))}):_.gC(new _.ul("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(y){this.useUnifiedPlayer_()?S9(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(y)||(y.args.autoplay="0")},
shouldAutoplay_:function(y){if(this.useUnifiedPlayer_())S9(!1,"Invalid method call in kevlar_unified_player.");else{var W=this.get("args.el",y);return W&&W!="detailpage"&&this.isMiniplayerActive_()||W&&(W=="sponsorshipsoffer"||W=="handlesclaiming")&&this.get("args.autoplay",y)=="0"?!1:(y=VRw(y))&&this.get("playerConfig.playbackStartConfig.startPaused",y)?!1:!0}},
isMiniplayerActive_:function(){return _.U().resolve(_.Cy).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var y=this.getPlayer();if(y){var W=y.getPlayerState();_.O("kevlar_player_check_ad_state_on_stop")&&(W=y.getPlayerState(y.getPresentingPlayerType()));W!=5&&y.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(y,W,c){c=c===void 0?!1:c;var Z=this,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1)return W||(W=Z.hostElement),G=Z.useUnifiedPlayer_()?!!Z.mainAppPlayer_:!!Z.initPlayerPromise_,G?_.n(t,Z.getPlayerPromise(),2):(c?y.insertBefore(W,y.firstChild):y.appendChild(W),t.return());D=t.yieldResult;Y=D.getPlayerState(D.getPresentingPlayerType());u=!1;if(Y==-1||Y==1||Y==3)u=!0;c?y.insertBefore(W,y.firstChild):y.appendChild(W);u&&D.playVideo();D.setSize(NaN,NaN);_.F2(t)})},
watchNextDataChanged_:function(y){var W=this;y&&(this.useUnifiedPlayer_()&&_.O("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&ZKJ(this.mainAppPlayer_,y):this.getPlayerPromise().then(function(c){c.updateVideoData(W.computeWatchNextPlayerVars_(y))}))},
computeWatchNextPlayerVars_:function(y){if(this.useUnifiedPlayer_()&&_.O("kevlar_unified_player_update_watch_next_killswitch"))S9(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:y}},
maybeSendAbandonmentPing_:function(){var y=this.getPlayer();y&&y.getPlayerState()!=5&&y.getPlayerState()!=0&&y.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var y=_.Nn("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(y=Object.assign({},y),y.rootElementId=this.playerId);y.serializedExperimentIds&&y.serializedExperimentFlags||_.Rs(Error("xh"));return y},
hasWebPlayerContextConfig_:function(){return!!_.Nn("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(y){this.useUnifiedPlayer_()?S9(!1,"Invalid method call in kevlar_unified_player."):_.jl(y,this.hostElement)},
useUnifiedPlayer_:function(){var y=_.O("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.O("kevlar_unified_player")||y}}];var mZi={};mZi.YtPlaylistPanelBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(y){y=y.detail;if(y.actions.loop!=void 0||y.actions["yt-icons:loop"]!=void 0)this.loopOn=y.actions.loop||y.actions["yt-icons:loop"];if(y.actions.shuffle!=void 0||y.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=y.actions.shuffle||y.actions["yt-icons:shuffle"]},
setMenuData_:function(y){if(!y||!y.playlistButtons||y.isInfinite)return null;for(var W=y.playlistButtons.menuRenderer.topLevelButtons,c=W.length,Z=0;Z<c;Z++)if(W[Z].toggleButtonRenderer){var G=W[Z].toggleButtonRenderer;G.defaultIcon.iconType=="LOOP"&&this.loopOn?G.isToggled=this.loopOn:G.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(G.isToggled=this.shuffleOn)}return y.playlistButtons}}];var sCm=function(y){kM.call(this,y,132);this.isDocument=y===document.documentElement};
_.R(sCm,kM);sCm.prototype.calculateScrollDelta=function(y,W,c){var Z=0;y<W?Z=y<W-100?-48:-8:y>W+c&&(Z=y>W+c+100?48:8);return Z};
sCm.prototype.JSC$9149_onMouseMove=function(y){this.isDocument||(y.clientX=y.event_.pageX,y.clientY=y.event_.pageY);kM.prototype.JSC$9149_onMouseMove.call(this,y)};var L4=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;y.scrollElement=document.documentElement;y.JSC$12081_dragListGroup=null;y.dragScrollSupport=null;y.onDraggerCreated=function(W){var c=W.JSC$9145_dragger;c.scrollTarget_=y.scrollElement;W=W.draggerEl;c&&W.menuOpened&&c.setEnabled(!1)};
y.onDragStart=function(W){var c=W.draggerEl;W=W.currDragItem;var Z=Object.assign({},W==null?void 0:W.data);Z.trackingParams=void 0;c.data=Z;c.style.position="absolute";c.style.width=(W==null?void 0:W.clientWidth)+"px";c.style.zIndex="2030";c.onDrag&&c.onDrag();_.O("web_owner_document_fallback_killswitch")?(W=document.querySelector("ytd-app"))&&_.p(W).appendChild(c):(W=_.Pu(c),(Z=W.querySelector("ytd-app"))?_.p(Z).appendChild(c):W.body.appendChild(c));y.dragScrollSupport=new sCm(y.scrollElement);y.dragScrollSupport.horizontalScrolling_=
!1;c=y.dragScrollSupport;c.constrainScroll_=!!c.margin_&&!1};
y.onDrop=function(W){y.handleDrop(W);y.dragScrollSupport&&(_.Mg(y.dragScrollSupport),y.dragScrollSupport=null)};
y.onReorderableScroll=function(){if(y.JSC$12081_dragListGroup){var W=y.JSC$12081_dragListGroup;C6V(W,W.currDragItem_)}};
return y};
_.R(L4,_.cQ);L4.prototype.detached=function(){_.uEZ(this)};
_.uEZ=function(y){y.JSC$12081_dragListGroup&&(_.sp(y.JSC$12081_dragListGroup,RP5,y.onDragStart),_.sp(y.JSC$12081_dragListGroup,IVZ,y.onDragStart),y.JSC$12081_dragListGroup.dispose(),y.JSC$12081_dragListGroup=null);y.dragScrollSupport&&(_.Mg(y.dragScrollSupport),y.dragScrollSupport=null);y.scrollElement.removeEventListener("scroll",y.onReorderableScroll)};
_.tY5=function(y,W,c,Z){Z=Z===void 0?"":Z;_.uEZ(y);c&&(y.scrollElement=c);y.JSC$12081_dragListGroup=new pG;y.JSC$12081_dragListGroup.hysteresisDistance_=2;P6Q(y.JSC$12081_dragListGroup,W);y.JSC$12081_dragListGroup.draggerElClasses_=_.yb("dragging").split(" ");Z&&Jxi(y.JSC$12081_dragListGroup,function(G){var D=G||document,Y=null;D.getElementsByClassName?Y=D.getElementsByClassName(Z)[0]:Y=WfQ("*",Z,G);return Y||G});
_.Y0(y.JSC$12081_dragListGroup,O6E,y.onDraggerCreated);_.Y0(y.JSC$12081_dragListGroup,RP5,y.onDragStart);_.Y0(y.JSC$12081_dragListGroup,IVZ,y.onDrop);y.JSC$12081_dragListGroup.init();y.scrollElement.addEventListener("scroll",y.onReorderableScroll,{passive:!0})};
L4.prototype.handleDrop=function(){};
_.dJ.Object.defineProperties(L4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
var ndE=L4;_.x([_.L({value:100}),_.e("design:type",Number)],ndE.prototype,"scrollMargin",void 0);ndE=_.x([_.ZV()],ndE);_.Xoi=[ndE.prototype];_.v2={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(y,W,c){var Z=this.getClickTarget_(W);if(Z&&this.isClickAllowed_(Z)){W.preventDefault();y=(0,_.Eb.unsafeClone)(y);var G=this.getContainerBoundingRect();W=this.getRelativeClickXy_(W,G);this.expandEndpointUrlMacros_(y,{NX:W[0],NY:W[1],NB:Z.code});c&&this.truncateWebCommendMetadataUrl_(y);_.Z2(this.hostElement,"yt-navigate",{endpoint:y})}},
getClickTarget_:function(y){if(!this.clickTargetMap)return null;y=_.Aq(y)||[];y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;if(W===_.p(this.hostElement).querySelector("#menu"))break;if(W=this.clickTargetMap.get(W.id))return W}return null},
getRelativeClickXy_:function(y,W){var c=y.detail.x,Z=y.detail.y;_.O("use_on_click_for_desktop_display_ad")&&y.clientX!=null&&y.clientY!=null&&(c=y.clientX,Z=y.clientY);y=Math.round(c-W.left);W=Math.round(Z-W.top);return y<0||W<0?[null,null]:[y,W]},
getContainerBoundingRect:function(){return _.p(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(y,W){for(var c=_.z(y.loggingUrls||[]),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z.baseUrl&&(Z.baseUrl=BLy(Z.baseUrl,W));y.urlEndpoint&&y.urlEndpoint.url&&(y.urlEndpoint.url=BLy(y.urlEndpoint.url,W));y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.url&&(y.commandMetadata.webCommandMetadata.url=BLy(y.commandMetadata.webCommandMetadata.url,W))},
truncateWebCommendMetadataUrl_:function(y){if(y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.url){var W=y.commandMetadata.webCommandMetadata.url,c=W.indexOf("&pp=");if(c>0){var Z=W.indexOf("&",c+1);y.commandMetadata.webCommandMetadata.url=Z>c&&Z<W.length?W.slice(0,c)+W.slice(Z):W.slice(0,c)}}},
configureClickTargets:function(y,W,c){this.containerId=y;this.clickTargetMap=new Map;y=_.z(W);for(W=y.next();!W.done;W=y.next())if(W=W.value,W.location){var Z=c.get(W.location);Z&&(_.i0(_.p(this.hostElement).querySelector("#"+Z),"yt-simple-endpoint",this.isClickAllowed_(W)),this.clickTargetMap.set(Z,W))}},
isClickAllowed_:function(y){return y.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||y.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.dY={};
_.dY.YtLazyListBehavior=[_.CA.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 y=(this.constructor.generatedFrom||this).observers;y||(y=[]);y.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
y}},
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 y=this.renderElementsOutsideVisibleArea_;y&&(tk0(y,4),y.processSignal())},
deepLazyListObserver_:function(y){var W=this;if(y){var c=y.value||[];if(this.itemsPath==y.path){var Z=this.nonDeferredItemCount;y=0;Z>-1&&c.length>Z&&(y=_.Nn("REMAINING_DOVA_DEFERRED_CHUNKS",-1));y>0?(Z>0&&(Z=c.slice(0,Z),this.setInitialItemsOnDataChanged(Z)),(Z=this.renderElementsOutsideVisibleArea_)?Z.cancel():(Z=this.renderElementsOutsideVisibleArea_=new _.At(2,"eocs"),_.A3w(window,"scroll",function(){return W.renderDeferredElements()})),_.ht(Z,function(){W.setInitialItemsOnDataChanged(c)}),_.l1("REMAINING_DOVA_DEFERRED_CHUNKS",
y-1)):this.setInitialItemsOnDataChanged(c)}else if(this.itemsPath+".splices"==y.path)this.onItemsUpdated_(c);
else Z="shownItems"+y.path.substr(this.itemsPath.length),this.useSignals&&Z==="shownItems.length"||this.notifyPath(Z,y.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(y){y&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(y),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(y){y=y.indexSplices;for(var W=0,c=y.length;W<c;W++){var Z=y[W];if(Z.index<this.shownCount&&(Z.removed&&this.splice("shownItems",Z.index,Z.removed.length),Z.addedCount)){var G=Z.object.slice(Z.index,Z.index+Z.addedCount);Z=["shownItems",Z.index,0];Z.push.apply(Z,G);this.splice.apply(this,Z)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(y){this.cancelPendingTasks_();y||(y=[]);this.items_=y;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&&(_.I8("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Lv(this,this.tryRenderChunk_)))},
fillRange_:function(y,W){this.canShowMore&&this.items_&&(y=this.items_.slice(y,W),y.unshift("shownItems"),this.push.apply(this,y),this.shownCount=W,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var y=this;this.canShowMore&&_.gp(this,"renderChunk",function(){y.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.I8("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.YY(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var y=this.renderElementsOutsideVisibleArea_;y&&(y.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var y=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(y-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=y;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(y){return Math.ceil(1E3/y)},
onCanShowMoreUpdated_:function(y){this.data&&this.items_!==null&&(y?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(y){!this.shouldUseTaskManager()&&this.data&&(!y&&this.canShowMore?(_.$fH(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):y&&this.partiallyRenderedItems_.has(this.items_)&&(_.O("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var a6;_.Si={};
a6=function(){var y=_.cQ.apply(this,arguments)||this;y.atStart=!0;y.atEnd=!0;y.startIndex=0;y.endIndex=0;y.scrollCount=0;y.initialStartIndex=0;y.disableScrollEventListener=!1;y.useFloorScrolling=!1;y.isSearch=!1;y.dragging=!1;y.dragMouseStart=0;y.dragOffsetStart=0;y.disableWheelScroll=!1;y.centerListItems=!1;y.offset=0;y.minComponentWidth=0;y.marginWidthRight=0;y.marginWidthLeft=0;y.setButtonsStateRequested=!1;y.itemsVisibilityObserver=null;y.fullyVisibleItemsIndices=[];y.JSC$12092_onWheelScroll=function(W){if(y.isSearch&&
!y.disableWheelScroll&&_.O("desktop_enable_dmpanel_wheel_scroll")){var c=W.shiftKey?Math.abs(W.deltaY)>Math.abs(W.deltaX)?W.deltaY:W.deltaX:W.deltaX;c!==0&&(W.preventDefault(),y.ytLazyListBehavior.fillRemainingListItems(),y.offset+=c,Tp(y),y.reposition_())}};
y.onPointerDown=function(W){bKJ(y)&&(y.dragMouseStart=W.clientX,y.dragOffsetStart=y.offset,y.dragging=!0)};
y.onPointerMove=function(W){bKJ(y)&&y.dragging&&(y.ytLazyListBehavior.fillRemainingListItems(),y.offset=y.dragOffsetStart-(W.clientX-y.dragMouseStart),Tp(y),y.reposition_())};
y.onPointerUp=function(){bKJ(y)&&(y.dragging=!1)};
return y};
_.R(a6,_.cQ);var rNE=function(y){var W=_.p(y.hostElement).querySelector("#items").children;if(!W)return 0;var c=0;y=_.z(y.fullyVisibleItemsIndices);for(var Z=y.next();!Z.done;Z=y.next())c+=W[Z.value].clientWidth;return c},bKJ=function(y){return y.isSearch&&_.O("desktop_enable_dmpanel_click_drag_scroll")};
a6.prototype.created=function(){this.cachedViewportWidth=_.Nn("initialInnerWidth")||window.innerWidth;this.JSC$12092_cachedViewportHeight=_.Nn("initialInnerHeight")||window.innerHeight;_.Nn("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.l1("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
a6.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.O("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();FF3(this)};
a6.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.O("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var y;(y=this.itemsVisibilityObserver)==null||y.disconnect();this.itemsVisibilityObserver=null;var W;(W=this.itemsObserver)==null||W.disconnect()};
var FF3=function(y){var W=_.p(y.hostElement).querySelector("#scroll-container");if(W){if(!y.itemsVisibilityObserver){var c=window.getComputedStyle(W).marginRight;y.itemsVisibilityObserver=new IntersectionObserver(function(Z){UZV(y,Z)},{root:W,
rootMargin:c,threshold:.98})}if(W=_.p(y.hostElement).querySelector("#items"))y.itemsObserver=new sWi(W,function(Z){$ZE(y,Z)})}},$ZE=function(y,W){KF2(y)&&(Array.from(W.addedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){y.itemsVisibilityObserver&&y.itemsVisibilityObserver.observe(c)}),Array.from(W.removedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){y.itemsVisibilityObserver&&y.itemsVisibilityObserver.unobserve(c)}))},
UZV=function(y,W){var c=new Set(y.fullyVisibleItemsIndices);
W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var G=Z.target.parentElement;G?(G=Array.from(G.children).indexOf(Z.target),Z.isIntersecting?c.add(G):c.has(G)&&c.delete(G)):_.Rs(new _.ul("Parent element not found",Z.target.nodeName))}y.fullyVisibleItemsIndices=Array.from(c).sort(function(D,Y){return D-Y});
c.size===0?_.Rs(new _.ul("No visible entries in horizontal list")):(y.startIndex=y.fullyVisibleItemsIndices[0],y.endIndex=y.fullyVisibleItemsIndices[y.fullyVisibleItemsIndices.length-1])},KF2=function(y){y.data?y=(y=y.data)&&y.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===y.itemSizeConstraint:!1:y=!1;
return y};
_.f=a6.prototype;_.f.addScrollEventListeners=function(){var y=_.p(this.hostElement).querySelector("#scroll-container");y.style.touchAction="pan-y";y.addEventListener("wheel",this.JSC$12092_onWheelScroll);y.addEventListener("pointerdown",this.onPointerDown);y.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.f.removeScrollEventListeners=function(){var y=_.p(this.hostElement).querySelector("#scroll-container");y.removeEventListener("wheel",this.JSC$12092_onWheelScroll);y.removeEventListener("pointerdown",this.onPointerDown);y.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.f.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Lv(this,this.setStartIndex,[this.initialStartIndex])};
_.f.reposition_=function(){var y=_.Nn("HTML_DIR")=="rtl"?"":"-",W=_.p(this.hostElement).querySelector("#items");W&&(W.style.transform="translateX("+y+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.f.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Lv(this,this.setButtonsState_))};
_.f.setButtonsState_=function(){this.setButtonsStateRequested=!1;var y=_.p(this.hostElement).querySelector("#items").firstElementChild;if(y){this.minComponentWidth||(this.minComponentWidth=OK8(this,y));y=_.p(this.hostElement).querySelector("#scroll-container").clientWidth;var W=_.p(this.hostElement).querySelector("#items").clientWidth,c=this.get(this.ytLazyListBehavior.itemsPath,this);if(c){var Z=Math.round(y/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Z,c.length)-1)}this.ytLazyListBehavior.canShowMore?W+this.minComponentWidth>=this.offset+y&&(this.atEnd=!1):this.atEnd=this.offset+y>=W-20?!0:!1;this.atStart=this.offset<=20}};
_.f.setStartIndex=function(y){if(!this.minComponentWidth){var W=_.p(this.hostElement).querySelector("#items").firstElementChild;if(!W)return;this.minComponentWidth=OK8(this,W)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*y;Tp(this);this.reposition_()};
_.f.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.ZN();var y=_.p(this.hostElement).querySelector("#scroll-container").clientWidth;_.O("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=OK8(this,_.p(this.hostElement).querySelector("#items").firstElementChild));y=this.useFloorScrolling?Math.floor(y/this.minComponentWidth)||1:Math.round(y/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&gd8(this);this.offset+=KF2(this)?
rNE(this):y*this.minComponentWidth;Tp(this);this.reposition_();this.scrollCount++};
_.f.prevClick_=function(){var y=_.p(this.hostElement).querySelector("#scroll-container").clientWidth;y=this.useFloorScrolling?Math.floor(y/this.minComponentWidth)||1:Math.round(y/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=KF2(this)?rNE(this):this.minComponentWidth*this.scrollCount-1):this.offset-=KF2(this)?rNE(this):y*this.minComponentWidth;this.centerListItems&&gd8(this);Tp(this);this.reposition_()};
_.f.onIronResize_=function(){this.resizeSupportEnabled&&_.Lv(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.f.onItemsTransitionEnd_=function(y){_.hq(y)===_.p(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.f.onChildElementFocus_=function(y){y=y.target.closest("#items > *");var W=_.p(this.hostElement).querySelector("#scroll-container");if(W.contains(y)){if(_.O("web_horizontal_list_behavior_focus_killswitch"))if(y.offsetLeft<this.offset)this.offset=Math.abs(y.offsetLeft)<y.clientWidth?0:y.offsetLeft;else if(y.offsetLeft+y.clientWidth>this.offset+W.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.ZN(),this.offset=y.offsetLeft+y.clientWidth-W.clientWidth;else return;else{var c=_.p(this.hostElement).querySelector("#items"),
Z=_.Nn("HTML_DIR")==="rtl",G=Z?c.clientWidth-y.offsetLeft:y.offsetLeft;c=Z?c.clientWidth-(y.offsetLeft+y.clientWidth):y.offsetLeft+y.clientWidth;var D=Z?G>this.offset+W.clientWidth:G<this.offset,Y=Z?c<this.offset:c>this.offset+W.clientWidth,u=Z?D:Y;if(Z?Y:D)W=Z?c:G,this.offset=Math.abs(W)<y.clientWidth?0:W;else if(u)this.ytLazyListBehavior.fillRemainingListItems(),_.ZN(),this.offset=(Z?G:c)-W.clientWidth;else return}Tp(this);this.reposition_()}};
_.f.observeShownItems_=function(){this.reset()};
_.f.checkComponentWidthResize=function(){var y=_.p(this.hostElement).querySelector("#items").firstElementChild;y&&(y=OK8(this,y),this.centerListItems||y!==this.minComponentWidth)&&(this.minComponentWidth=y,this.offset=y*this.scrollCount,this.centerListItems&&gd8(this),Tp(this),this.reposition_())};
var OK8=function(y,W){var c=window.getComputedStyle(W).marginRight;c=Math.floor(Number(c.replace("px","")));var Z=window.getComputedStyle(W).marginLeft;Z=Math.floor(Number(Z.replace("px","")));y.centerListItems&&!y.marginWidthRight&&(y.marginWidthRight=c,y.marginWidthLeft=Z);return y.resizeSupportEnabled?W.getBoundingClientRect().width+c:W.offsetWidth+c},Tp=function(y){var W=_.p(y.hostElement).querySelector("#scroll-container").clientWidth,c=_.p(y.hostElement).querySelector("#items").clientWidth;
y.offset<0?y.offset=0:y.offset+W>=c&&(y.offset=c-W)},gd8=function(y){y.offset-=(_.p(y.hostElement).querySelector("#scroll-container").clientWidth+y.marginWidthRight-y.minComponentWidth)/2-y.marginWidthLeft};
_.dJ.Object.defineProperties(a6.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var y=_.Nn("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(y==-1)y=this.JSC$12092_cachedViewportHeight,y=y>1320?5:y>1020?4:y>730?3:y>430?2:1;else if(y==0)return 0;_.l1("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",y-1);y=_.Nn("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(y>-1)return y;y=this.cachedViewportWidth;y=y>1600?6:y>1400?5:y>1300?4:y>1090?5:y>870?4:y>660?3:2;_.l1("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
y);return y},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.O("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
var xs=a6;xs.prototype.observeShownItems_=xs.prototype.observeShownItems_;xs.prototype.onChildElementFocus_=xs.prototype.onChildElementFocus_;xs.prototype.onItemsTransitionEnd_=xs.prototype.onItemsTransitionEnd_;xs.prototype.onIronResize_=xs.prototype.onIronResize_;xs.prototype.prevClick_=xs.prototype.prevClick_;xs.prototype.nextClick_=xs.prototype.nextClick_;xs.prototype.setButtonsState_=xs.prototype.setButtonsState_;xs.prototype.requestButtonsStateUpdate_=xs.prototype.requestButtonsStateUpdate_;
xs.prototype.reposition_=xs.prototype.reposition_;xs.prototype.reset=xs.prototype.reset;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xs.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],xs.prototype,"ytLazyListBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xs.prototype,"atStart",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xs.prototype,"atEnd",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"startIndex",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"endIndex",void 0);_.x([_.L({value:6}),_.e("design:type",Number)],xs.prototype,"initialCount",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"scrollCount",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"initialStartIndex",void 0);
_.x([_.L(),_.e("design:type",Object)],xs.prototype,"disableScrollEventListener",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"supportComponentResize",void 0);_.x([_.L({value:function(){var y=this;return function(){return y.prevClick_()}}}),
_.e("design:type",Function)],xs.prototype,"boundPrevClick",void 0);_.x([_.L({value:function(){var y=this;return function(){return y.nextClick_()}}}),
_.e("design:type",Function)],xs.prototype,"boundNextClick",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"useFloorScrolling",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"isSearch",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"dragging",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"dragMouseStart",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"dragOffsetStart",void 0);
_.x([_.L(),_.e("design:type",Object)],xs.prototype,"disableWheelScroll",void 0);_.x([_.L(),_.e("design:type",Object)],xs.prototype,"centerListItems",void 0);_.x([_.B("iron-resize"),_.H("guideOpened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xs.prototype,"onIronResize_",null);_.x([_.B("transitionend"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],xs.prototype,"onItemsTransitionEnd_",null);
_.x([_.B("focusin"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],xs.prototype,"onChildElementFocus_",null);_.x([_.H("shownItems"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xs.prototype,"observeShownItems_",null);xs=_.x([_.ZV()],xs);_.Si.YtdHorizontalListBehavior=[];_.Si.YtdHorizontalListBehavior.push(_.K7,_.k.YtRendererBehavior,_.dY.YtLazyListBehavior,_.N6.YtdGuideStateAwareBehavior,xs.prototype);var jaH=["APP_STATE","PI"];var RmT=_.dl(["about:blank"]),l5V={pushState:window.history.pushState,replaceState:window.history.replaceState};var iZ=function(y){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=y;this.internalPushState=y.pushState.bind(y);this.internalReplaceState=y.replaceState.bind(y)};
iZ.prototype.init=function(){this.initialized=!0};
iZ.prototype.pushState=function(y,W){this.initialized||this.init();this.internalPushState&&this.internalPushState(y,"",W)};
iZ.prototype.replaceState=function(y,W){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(y,"",W)};
iZ.prototype.getState=function(){return this.history&&this.history.state};var Ed5=function(y){var W=function(){var c=y.apply(this,arguments)||this;c.boundHistoryPushState=!1;c.boundHistoryReplaceState=!1;c.debugInfo={};return c};
_.R(W,y);W.prototype.init=function(){var c=_.uC("IFRAME");_.df(c,_.cu(RmT));c.sandbox="allow-same-origin";c.style.display="none";this.iframe=c;document.body.appendChild(c);this.bindHistoryStateFunctions();y.prototype.init.call(this)};
W.prototype.bindHistoryStateFunctions=function(){var c=this,Z=[],G;this.iframe&&((G=this.iframe.contentWindow)==null?0:G.history)&&(G=this.iframe.contentWindow.history)&&(Z.push(G),Object.getPrototypeOf(G)&&Z.push(Object.getPrototypeOf(G)));window.history&&Z.push(window.history);G=window.history;Object.getPrototypeOf(G)&&Z.push(Object.getPrototypeOf(G));Z.push(l5V);G=function(Y){for(var u=null,t=0;t<Z.length;t++){var b=Z[t][Y];if(typeof b==="function"){u=b.bind(window.history);c.debugInfo[Y]=t;break}}return u};
if(!this.boundHistoryReplaceState){var D=G("replaceState");D&&(this.internalReplaceState=D,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(G=G("pushState"))&&(this.internalPushState=G,this.boundHistoryPushState=!0)};
return W}(iZ),NcE=function(){return Ed5.call(this,window.history)||this};
_.R(NcE,Ed5);NcE.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var wY=function(y){this.browserHistory=y;this.initialized=!1};
wY.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
wY.prototype.pushState=function(y,W){this.initialized||this.init();this.browserHistory.pushState(y,W)};
wY.prototype.replaceState=function(y,W){this.initialized||this.init();this.browserHistory.replaceState(y,W)};
wY.prototype.handlePopstate=function(y){return y.state};_.I5W=function(y,W,c,Z,G){this.endpoint=y;this.forward=W;this.historyEntry=c;this.JSC$26266_savedComponentState=Z;this.legacyBorder=G===void 0?!1:G};var po3=function(y,W){this.rootData=y;this.scrollTop=W};var $3=new _.Sm("PAGE_REQUEST_TOKEN"),lW8=new _.Sm("FETCH_PBJ_TOKEN");_.q6=new _.Sm("EPHEMERAL_STORE_TOKEN");_.ks=function(y){this.data=Object.assign({},y);var W;(W=this.data.innertubeResponse)==null||delete W.frameworkUpdates};
_.ks.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Tj)()};
_.Zs=function(y){return Object.assign({},y.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var PYV=function(){this.maxSize=100;this.timeToDataCache=new Map};
PYV.prototype.get=function(y){var W=this.timeToDataCache.get(y);W&&(this.timeToDataCache.delete(y),this.timeToDataCache.set(y,W));if(W&&W.rootData&&(_.O("web_use_response_store_for_history_cache")||_.O("mweb_use_new_history_manager"))){var c=_.U().resolve(_.q6),Z=JNE(W),G=!!Z;if(Z){if(Z.content){var D=ja(c,Z.content);G&&D?W.rootData.response=_.Zs(D):G=!1}Z.player&&(D=ja(c,Z.player),G&&D?W.rootData.playerResponse=_.Zs(D):G=!1);Z.reelSequence&&(c=ja(c,Z.reelSequence),G&&c?W.rootData.reelWatchSequenceResponse=
_.Zs(c):G=!1)}G||(this.timeToDataCache.delete(y),W=void 0)}return W};
PYV.prototype.set=function(y,W){if(W.rootData&&(_.O("web_use_response_store_for_history_cache")||_.O("mweb_use_new_history_manager"))){var c=JNE(W),Z=Object.assign({},W.rootData);c&&(c.content&&W.rootData.response&&(VYE(this,c.content,W.rootData.response),Z.response=null),c.player&&W.rootData.playerResponse&&(VYE(this,c.player,W.rootData.playerResponse),Z.playerResponse=null),c.reelSequence&&W.rootData.reelWatchSequenceResponse&&(VYE(this,c.reelSequence,W.rootData.reelWatchSequenceResponse),Z.reelWatchSequenceResponse=
null));W=new po3(Z,W.scrollTop)}this.timeToDataCache.has(y)?this.timeToDataCache.delete(y):this.timeToDataCache.size>=this.maxSize&&(c=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(c.value));this.maxSize!==0&&this.timeToDataCache.set(y,W)};
PYV.prototype.clear=function(){this.timeToDataCache.clear()};
var JNE=function(y){var W=_.U().resolve(_.xN($3)),c;if((c=y.rootData)==null?0:c.endpoint)return W==null?void 0:XCE(W,y.rootData.endpoint);var Z;_.Rs(new _.ul("History snapshot response data does not contain endpoint",(Z=y.rootData)==null?void 0:Z.url));return null},VYE=function(y,W,c){if(y.maxSize>0){var Z;
(y=(Z=c.responseContext)==null?void 0:Z.maxAgeSeconds)&&Number(y)>0&&(Z=_.U().resolve(_.q6),c=xx(c,y),Z.put(W,new _.ks(c)))}};var CY5=function(y,W,c){this.endpoint=W;this.JSC$26271_savedComponentState=c===void 0?null:c;this.entryTime=y};var fMH=1;var yV=function(y){var W=function(){var c=y.apply(this,[].concat(_.No(_.Cf.apply(0,arguments))))||this;c.historyEntryTime=0;c.historySnapshotCache=c.createHistoryCache();return c};
_.R(W,y);W.prototype.createHistoryCache=function(){return new PYV};
W.prototype.saveAndReplace=function(c,Z,G){var D=window.location.href;var Y=Y===void 0?{}:Y;var u=(u=this.browserHistory.getState())&&u.entryTime?u.entryTime:oqH();c=this.createNewHistoryEntry(c,Y,u);this.saveSnapshot(u,Z,G);this.replaceState(c,D||window.location.href)};
W.prototype.saveAndPush=function(c,Z,G,D,Y){Y=Y===void 0?{}:Y;this.saveSnapshot(this.historyEntryTime,G,D);G=this.historySnapshotCache;D=this.historyEntryTime;var u=G.timeToDataCache.keys();u=_.z(u);for(var t=u.next();!t.done;t=u.next())t=t.value,t>D&&G.timeToDataCache.delete(t);Z=this.createNewHistoryEntry(Z,Y);this.pushState(Z,c)};
W.prototype.saveSnapshot=function(c,Z,G){this.historySnapshotCache.set(c,new po3(Z,G))};
W.prototype.createNewHistoryEntry=function(c,Z,G){G=G===void 0?oqH():G;return new CY5(G,c,Z)};
W.prototype.handlePopstate=function(c){var Z=y.prototype.handlePopstate.call(this,c),G=null,D=null,Y=!1,u=null;Z&&Z.entryTime&&(u=this.historySnapshotCache.get(Z.entryTime)||null,Y=Z.entryTime>this.historyEntryTime,this.historyEntryTime=Z.entryTime,G=Z.endpoint,D=Z.JSC$26271_savedComponentState);this.handleHistoryCacheLoad(new _.I5W(G,Y,u,D),c);return Z};
W.prototype.pushState=function(c,Z){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);y.prototype.pushState.call(this,c,Z)};
W.prototype.replaceState=function(c,Z){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);y.prototype.replaceState.call(this,c,Z)};
W.prototype.handleHistoryCacheLoad=function(){};
return W}(wY),QC3=function(){var y=yV.call(this,new NcE)||this;
y.dispatchElement=null;y.entryIndex=0;return y};
_.R(QC3,yV);_.f=QC3.prototype;_.f.init=function(y){y=y===void 0?!0:y;yV.prototype.init.call(this);this.initialized||(y||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.f.handlePopstate=function(y){var W=null;y.state||(W="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return yV.prototype.handlePopstate.call(this,y);var c=new CustomEvent("yt-history-pop",{cancelable:!0});_.GG(this.dispatchElement,"yt-history-pop",[c,{errorMsg:W}]);_.fl(this.dispatchElement,"yt-close-all-popups-action");if(!c.defaultPrevented){c=_.U().resolve(_.h7);W=c.getCurrentData();var Z=c.getCurrentPage();c=0;Z?(Z=_.GG(this.dispatchElement,"yt-get-page-offset",
[Z]),Z.length>0&&(c=Z[0])):_.Rs(new _.ul("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:W?W.page:"undefined"}));W&&(W.csn=_.NR());this.saveSnapshot(this.historyEntryTime,W,c)}return yV.prototype.handlePopstate.call(this,y)};
_.f.handleHistoryCacheLoad=function(y,W){W.state&&(y.legacyBorder=!!W.state["spf-timestamp"]||!!W.state.blazer);y.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.z(_.fl(this.dispatchElement,"yt-history-will-navigate",[W])).next().value||_.GG(this.dispatchElement,"yt-history-load",[W,y]))};
_.f.pushState=function(y,W){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var c=new _.ul("history.pushState is not a function",this.getDebugString());_.OP(c)}yV.prototype.pushState.call(this,y,W)};
_.f.replaceState=function(y,W){if(!this.browserHistory.boundHistoryReplaceState){var c=new _.ul("history.replaceState is not a function",this.getDebugString());_.OP(c)}yV.prototype.replaceState.call(this,y,W)};
_.f.saveAndPush=function(y,W,c,Z,G){G=G===void 0?{}:G;c&&(c.csn=_.NR());yV.prototype.saveAndPush.call(this,y,W,c,Z,G)};
_.f.getDebugString=function(){var y=[];this.initialized&&y.push("i");this.browserHistory.boundHistoryReplaceState&&y.push("bhr");this.browserHistory.boundHistoryPushState&&y.push("bhs");"replaceState"in this.browserHistory.debugInfo&&y.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&y.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&y.push("ei:"+String(this.entryIndex));return y.join(",")};
_.f.replaceUrl=function(y){this.init(!0);var W=this.browserHistory.getState();this.replaceState(W,aL(y))};
_.f.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.ANV=new _.Sm("DESKTOP_HISTORY_MANAGER_TOKEN");var hmQ=[10,20,30,40,50,60],Wb=function(){this.currentPartitionIndex=0},Bc0=function(y){HA8({mainAppWeb:_.Jq(),
survivalSli:{partitionMinute:y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},HK5=function(y){HA8({mainAppWeb:_.Jq(),
survivalSli:{partitionMinute:y,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},LF3=function(y){return y.currentPartitionIndex>=0&&y.currentPartitionIndex<hmQ.length?hmQ[y.currentPartitionIndex]:-1},vdi=function(y){return y.currentPartitionIndex>0&&y.currentPartitionIndex-1<hmQ.length?hmQ[y.currentPartitionIndex-1]:-1};
Wb.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var y=vdi(this);y>0&&HK5(y);y=LF3(this);y>0&&Bc0(y);dZ0(this)}};
var dZ0=function(y){var W=LF3(y);if(W>0){var c=vdi(y);c<0&&(c=0);y.intervalId=_.KX.addJob(function(){var Z=vdi(y);Z>0&&HK5(Z);Z=LF3(y);Z>0&&Bc0(Z);dZ0(y)},3,(W-c)*6E4);
y.currentPartitionIndex+=1}else y.currentPartitionIndex=-1};var Sim=function(){this.skipNextNavigation=!1},Tc5=function(y,W,c){if(!W)return!1;
if(y.skipNextNavigation)return y.skipNextNavigation=!1;if(_.g(c,_.CD))return!1;var Z,G,D;if((Z=_.g(c,_.oW))==null?0:(G=Z.browseEndpointContextSupportedConfigs)==null?0:(D=G.browseEndpointContextMainConfig)==null?0:D.skipConfirmation)return!1;var Y;return((Y=_.g(W.commandMetadata,_.kT))==null?void 0:Y.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Sim.prototype.showConfirmationDialog=function(y,W){this.navigateParams=W;this.customConfirmationCommand?_.U().resolve(_.i1).resolveCommand(this.customConfirmationCommand):(W={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Lq(_.bN("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Lq(_.bN("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Lq(_.bN("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Lq(_.bN("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Q8.getInstance().triggerAction("yt-open-popup-action",W,y))};
Sim.prototype.cancelPendingNavigation=function(){var y;((y=this.navigateParams)==null?void 0:y.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var a52=function(){},iKV=function(y,W,c,Z,G,D,Y){c=c===void 0?{}:c;
Y=Y===void 0?{}:Y;var u=_.wF.instance,t,b=(t=_.g(W,_.CD))==null?void 0:t.url;return b?x5g(u,b,c,window.location.href,function(r,F){xZT(y,r,F,!1,!0,c,D,Z)},function(){return!1}):hd(u,W,c,window.location.href,z2(W),function(r,F){xZT(y,r,F,!1,!0,c,D,Z)},G,Y)},xZT=function(y,W,c,Z,G,D,Y,u){if(!y.JSC$12150_chunkHandler)if(c.page==="watch")if(G||Z){if(_.O("kevlar_continue_playback_without_player_response")){var t;
var b=(t=_.g(u,_.Sb))==null?void 0:t.videoId}y.JSC$12150_chunkHandler=new fWE(_.HF,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Z,previousVideoId:b},tempData:D},Y)}else y.JSC$12150_chunkHandler=new y2i(_.HF);else c.page==="shorts"&&G&&!Z?y.JSC$12150_chunkHandler=new GV3(_.HF,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:D},Y):y.JSC$12150_chunkHandler=new WnZ(Y);y.JSC$12150_chunkHandler.processChunk({endpoint:W,data:c});return y.JSC$12150_chunkHandler.cg.promise},
MYE=function(y,W,c,Z,G){(c=_.Ln3(c))&&xZT(y,W,c,!1,!0,Z,void 0,G)};var emQ=function(){this.pendingNavigationPromise=null};
_.f=emQ.prototype;_.f.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.f.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.f.addEventListener=function(){throw Error("yh");};
_.f.dispatchEvent=function(){throw Error("yh");};
_.f.removeEventListener=function(){throw Error("yh");};var wo2=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],cb=function(){_.uU.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];qiE(this)};
_.R(cb,_.uU);cb.prototype.verifyUser=function(){var y=qiE(this),W=y.logout;if(!y.sessionChange)return!0;this.dispatchEvent("ytsessionchange");W&&this.dispatchEvent("ytuserinvalid");return!1};
var qiE=function(y){var W=wo2.map(function(G){var D;return(D=_.DP.get(G))!=null?D:""}),c=W.some(function(G,D){return y.sessionCookies&&y.sessionCookies[D]!==""&&G===""}),Z=W.some(function(G,D){return y.sessionCookies&&y.sessionCookies[D]!==G});
y.sessionCookies=W;return{logout:c,sessionChange:Z}};
cb.prototype.clearTimeout=function(){this.scheduledJobId&&(_.KX.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var saH=new _.Sm("POSTMESSAGE_TUNNEL_TOKEN");var zRF=["/parent_tools","/file_download","/artist_roster"],nqt=[tVE,nWW,XJ5,r5E,b8i,um8,FQi,U38];var ZZ=new _.Sm("NAVIGATION_CONFIRMATION_SERVICE");var kmT="/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(" "),jjE=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Gg=function(y){this.pendingNavigationPromise=null;this.JSC$12168_clientRoot=y;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 a52;this.debugString=y.is;y={"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};_.Ac(_.Q8.getInstance(),y,this.JSC$12168_clientRoot)},GBi,f7E,oGZ,DGQ,ZrQ;
_.R(Gg,emQ);Gg.prototype.reload=function(){_.l0(window.location.href)};
var S7T=function(y){y.currentEndpoint&&_.g(y.currentEndpoint,_.mv)?y.reload():y.currentEndpoint&&y.navigate(y.currentEndpoint,!0,void 0,{disableCache:!0})};
Gg.prototype.navigate=function(y,W,c,Z,G,D,Y,u){W=W===void 0?!1:W;c=c===void 0?{}:c;Z=Z===void 0?{}:Z;var t=_.U().resolve(ZZ),b;if(!Y&&Tc5(t,(b=this.currentEndpoint)!=null?b:void 0,y))return t.showConfirmationDialog(this.JSC$12168_clientRoot.parentElement,{endpoint:y,reload:W,params:c,tempData:Z,requestType:G,createScreenConfig:D}),!1;var r=_.It();_.pH(r,"eocs")||r.parkOrScheduleJob(function(){r.processSignal("eocs")},10,"eor");
Y=z2(y);t=Z.autonav==="1";b=_.NR();cb.instance||(cb.instance=new cb);var F=cb.instance.verifyUser(),K;if(_.O("enable_dark_theme_only_on_shorts")){var l=document.documentElement.hasAttribute("dark"),N=_.NO(!0)==="USER_INTERFACE_THEME_DARK";if(Y==="shorts"){if(!l)if(_.O("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var P;_.l0((P=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:P.url,void 0,void 0,window.top)}}else{var V;_.l0(_.BI((V=_.g(y==null?
void 0:y.commandMetadata,_.kT))==null?void 0:V.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.O("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!l){var Q;_.l0(_.BI((Q=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:Q.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(N!==l){var S;_.l0(_.BI((S=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:S.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Y==="watch"){if(y_2(_.U().resolve(_.Cy),
y)&&(F||_.O("fix_miniplayer_navigation_killswitch")))return!1;_.O("block_all_player_prefetch_requests")||(K=vVW(_.WU(_.qt),y,t))}else{var cy,M=(cy=_.g(this.currentEndpoint,_.Sb))==null?void 0:cy.videoId;M&&_.tI.getInstance().then(function(Py){Py&&Py.set("yt-miniplayer-shown-video-id",M)})}K&&(c.frags=K.missingFragments_.join(","));
P=null;var fa;V=(fa=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:fa.ignoreNavigation;if(!V)if(_.O("kevlar_command_url")){var jI;P=(jI=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:jI.url}else P=_.RNO(y,c);if(P&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&P==this.lastNavigationUrl)return _.IP({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Y3(JG(),"CANCELLED")}P&&(this.lastNavigationUrl=P);s6F();_.l1("IS_HOMEPAGE_COLD",
!1);_.l1("IS_RESULTS_PAGE_COLD",!1);_.l1("IS_WATCH_PAGE_COLD",!1);y.loggingUrls&&y.loggingUrls.forEach(function(Py){Py.baseUrl&&_.Jv(Py.baseUrl)});
_.F0t(y,D?D.layer:0)&&_.O("kevlar_flush_logs_on_away_navigation")&&_.KD();if(Xxa(y))return!1;lRV(Y,G);if(!P)return V||_.Rs(new _.ul("Can't construct url for endpoint",y)),_.Y3(JG(),"FAILURE"),!1;_.Dsw();fa=y&&_.g(y,_.oW)&&_.g(y,_.oW).browseId.startsWith("UC");c=(jI=_.O("enable_dark_theme_only_on_shorts")&&Y==="shorts"?!1:_.IW()&&document.documentElement.hasAttribute("dark")!==_.Et())?{themeRefresh:1}:{};jI&&!_.Y7()&&_.NO()==="USER_INTERFACE_THEME_DARK"&&(c.theme="dark");fa=jI||WiJ(P)&&!fa&&!_.O("kevlar_disable_url_allowlist");
F||(fa=!0);if(fa||_.Nn("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var sD;var ED=(sD=window.top)==null?void 0:sD.location.href}catch(Py){var N1;ED=(N1=Py)==null?void 0:N1.message}_.Rs(new _.ul("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:ED}))}y=_.O("kevlar_redirect_on_window_killswitch")?window.top:window;RW(P);_.l0(_.BI(P,c),void 0,void 0,y);_.Y3(JG(),"ABORTED");return!1}_.O("kevlar_early_popup_close")&&_.GG(this.JSC$12168_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12150_chunkHandler=void 0;var bf;ED=z2((bf=this.currentEndpoint)!=null?bf:void 0);(bf=Y==="shorts"&&ED==="shorts")||_.qMt();_.PI(HGa)("nr",void 0);t&&_.IP({webInfo:{navigationReason:"an"}});y.clickTrackingParams&&(Z.itct=y.clickTrackingParams,Z.csn=b);bnF(Z);Z.endpoint=JSON.stringify(y);_.O("enable_unknown_lact_fix_on_html5")&&(_.U().resolve(_.t7),Z.lact=_.MV());_.Eb.isEmpty(Z)||_.wz(P,Z);!_.O("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(D=Object.assign({},{layer:0},D,{parentLayer:3}));this.pendingNavigationPromise=D=iKV(this.pageFetcher,y,Z,this.currentEndpoint,this.JSC$12168_isNetworkPromiseStale.bind(this),D,u);D=D.then(this.handleNavigateSuccess.bind(this,D,y,K,Z),this.handleNavigateFail.bind(this,D,y));_.GR().navigationFinishPromise=D;W={endpoint:y,pageType:Y,url:aL(P),reload:!!W,noProgressBar:_.O("web_disable_page_navigation_progress")||bf};G&&(W.type=G);this.fireEvent("yt-navigate-start",W);K&&
MYE(this.pageFetcher,y,K,Z,this.currentEndpoint);return!0};
Gg.prototype.JSC$12168_isNetworkPromiseStale=function(y){return y!=this.pendingNavigationPromise};
var c_J=function(y,W,c,Z,G){var D=z2(W);W={endpoint:W,pageType:D};G&&(W.errorMessage=G);_.Rs(c);W.navigationDoneMs=_.PA("nd");W.navigationErrorReason=Z;y.fireEvent("yt-navigate-error",W)};
Gg.prototype.handleNavigateFail=function(y,W,c){var Z=void 0;c instanceof _.AG&&(Z=c,Op1(c));if(this.JSC$12168_isNetworkPromiseStale(y))return _.hG(Z);_.Y3(JG(),"FAILURE");c_J(this,W,c,"101");return _.hG(c)};
Gg.prototype.handleNavigateSuccess=function(y,W,c,Z,G){if(this.JSC$12168_isNetworkPromiseStale(y))return _.sc();this.pendingNavigationPromise=null;if(!G)return W=new _.ul("Missing data in response for navigation endpoint",W),_.hG(W);if(G.reload)return window.location.reload(!0),_.sc();c&&(y={},_.Eb.extend(y,_.Ln3(c),G),G=y);var D,Y;c=(D=G)==null?void 0:(Y=D.timing)==null?void 0:Y.responseStart;c!=null&&_.PA("srt",c);_.PA("pdc");var u,t;D=(u=G)==null?void 0:(t=u.timing)==null?void 0:t.info;D!=null&&
(u=_.PI(_.SME)(D),_.IP(u));_.Y3(JG(),"SUCCESS");ZrQ(this,W,G,1,Z);return _.sc()};
var WiJ=function(y){var W=y;_.O("kevlar_no_redirect_to_classic_2_ks")||(W=(new _.Tr(y)).getPath());if(W==="/"||W==="/red")return!1;var c=!0;kmT.forEach(function(Z){y.indexOf(Z)===0&&(c=!1)});
jjE.forEach(function(Z){var G=Z.url;_.O(Z.expFlag)&&y.indexOf(G)===0&&(c=!1)});
return c};
Gg.prototype.publishPageData=function(y){this.fireEvent("yt-page-data-fetched",{pageData:y})};
GBi=function(y,W,c,Z,G,D){var Y=null;W.page!=="watch"||Z?W.filler||_.GG(y.JSC$12168_clientRoot,"yt-stop-old-player",[W]):Y=xZT(y.pageFetcher,G,W,c,!1,D,void 0,y.currentEndpoint);if(Y)return Y.then(y.publishPageData.bind(y,W));y.publishPageData(W);return _.sc()};
f7E=function(y,W,c){var Z=null;if(!c)return Z=new _.ul("Empty data",y.debugString,W);var G=c.response;if(!G)return Z;var D={endpointType:z2(W)||"unknown"};G.responseContext?(G=G.responseContext.errors)&&(Z=new _.ul("Errors in response context",y.debugString,W,G,D)):Z=G.error||G.errorMetadata?new _.ul("Errors in response",y.debugString,W,G.error,G.errorMetadata,D):new _.ul("responseContext missing",y.debugString,W,Object.keys(G).sort().join(","),D);var Y,u,t,b;if(y=c==null?void 0:(Y=c.response)==null?
void 0:(u=Y.responseContext)==null?void 0:(t=u.webResponseContextExtensionData)==null?void 0:(b=t.webResponseContextDebugData)==null?void 0:b.debugErrorMessages)for(Y=0;Y<y.length;Y++);return Z};
oGZ=function(y){var W,c,Z,G;return y==null?void 0:(W=y.response)==null?void 0:(c=W.responseContext)==null?void 0:(Z=c.errors)==null?void 0:(G=Z.error)==null?void 0:G["0"]};
DGQ=function(y,W){var c;if(c=W.url&&!W.url.startsWith("/clip"))c=W.url,c=!_.O("webfe_parse_debug_param_in_resolveurl_service")&&y.searchDebugUrlMatcher.test(c)||I2y(c)?!0:!1;if(c)I2y(W.url)&&_.hW(window.location.href).themeRefresh?y.fireEvent("yt-navigate-redirect",{url:_.qR(W.url,"themeRefresh")}):W.url&&!ZCD(W.url)&&y.fireEvent("yt-navigate-redirect",{url:W.url});else if(W.endpoint){var Z,G,D;(c=(Z=W.endpoint)==null?void 0:(G=Z.commandMetadata)==null?void 0:(D=G.webCommandMetadata)==null?void 0:
D.url)&&!ZCD(c)&&y.fireEvent("yt-navigate-redirect",{url:c});c&&W.url&&c!=W.url&&!W.url.match("playnext=1")&&new _.ul("Response url mismatch in response data",y.debugString,c,W.url)}};
_.za5=function(y,W,c,Z,G,D,Y,u){D=D===void 0?!1:D;var t=_.U().resolve(ZZ),b;if(!u&&Tc5(t,(b=y.currentEndpoint)!=null?b:void 0,W))return t.showConfirmationDialog(y.JSC$12168_clientRoot.parentElement,{endpoint:W,data:c,navigationType:Z,tempData:G,isMiniplayer:D,isForwardHistoryNavigation:Y==null?void 0:Y.forward}),_.sc();y.pageFetcher.JSC$12150_chunkHandler=void 0;return ZrQ(y,W,c,Z,G,D)};
ZrQ=function(y,W,c,Z,G,D){D=D===void 0?!1:D;y.isMiniplayerExpansion=D;var Y=Z===2;y.currentEndpoint=W;y.numNavigations++;y.numNavigations&&(Zn1.navigationCount=y.numNavigations);_.l1("NUM_NAV",y.numNavigations);var u=f7E(y,W,c);if(u)return c_J(y,W,u,"102",oGZ(c)),_.hG(u);var t,b,r,F;u=c.rootVe||(c==null?void 0:(t=c.response)==null?void 0:(b=t.responseContext)==null?void 0:(r=b.webResponseContextExtensionData)==null?void 0:(F=r.ytConfigData)==null?void 0:F.rootVisualElementType);!Y&&c&&DGQ(y,c);var K,
l;t=c==null?void 0:(K=c.response)==null?void 0:(l=K.responseContext)==null?void 0:l.maxAgeSeconds;if(!Y&&!isNaN(t)){var N;_.O("kevlar_use_response_ttl_to_invalidate_cache")?N=(0,_.Tj)()+1E3*t:_.O("kevlar_always_invalidate_cache")&&(N=0);isNaN(N)||(c.expirationTime=N)}_.O("html5_enable_ssap_entity_id")&&Y&&c.playerResponse&&(c.playerResponse.cacheMetadata={isCacheHit:!0});_.WU(_.qt).prefetchCache_.clear();Y||c.page!=="watch"||c.type!=="reduced"&&Z!==1?Z=GBi(y,c,Y,!!D,W,G):(y.publishPageData(c),Z=_.sc());
G=Z.then(function(){var P=z2(W);P={endpoint:W,pageType:P,fromHistory:Y,response:c};P.navigationDoneMs=_.PA("nd");y.fireEvent("yt-navigate-finish",P)});
c.csn&&u&&c.clientSideGrafts&&Z.then(y.attachClientSideGrafts.bind(y,c,_.EL()));return G};
_.f=Gg.prototype;_.f.attachClientSideGrafts=function(y,W){y.clientSideGrafts&&W&&y.clientSideGrafts.forEach(function(c){if(W&&c){var Z=_.Dz(c);_.O("combine_ve_grafts")?_.Zz().graftServerVe(c,W):_.HA(y.csn,W,Z)}})};
_.f.handleSignalActionHistoryBack=function(){window.history.back()};
_.f.handleSignalActionCloseWindow=function(){window.close()};
_.f.handleSignalActionReloadPage=function(){this.reload()};
_.f.handleSignalActionSoftReloadPage=function(){S7T(this)};
_.f.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.f.fireEvent=function(y,W){y=new CustomEvent(y,{bubbles:!0,cancelable:!1,composed:!0,detail:W});this.dispatchEvent(y)};
_.f.addEventListener=function(y,W){this.JSC$12168_clientRoot.addEventListener(y,W)};
_.f.dispatchEvent=function(y){return this.JSC$12168_clientRoot.dispatchEvent(y)};
_.f.removeEventListener=function(y,W){this.JSC$12168_clientRoot.removeEventListener(y,W)};_.ciI=new X_("browse","h8y2qb");_.ZIy=new X_("search","JzFVk");_.Got=new X_("shorts","xwEKAe");_.fDD=new X_("watchFixie","nmfa2d");_.oww=new X_("watchFlexy","CF909");_.DxE=new X_("watchGrid","Tm0L3c");_.z7I=new X_("watchLearningJourney","L3n37");var Y8W;var mGJ=function(){return _.v.apply(this,arguments)||this};
_.R(mGJ,_.v);_.dJ.Object.defineProperties(mGJ,{template:{configurable:!0,enumerable:!0,get:function(){if(Y8W===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);Y8W=y}y=Y8W;return y}}});
var sjQ=mGJ;_.x([_.C(zm2.YtPlayerBehavior),_.e("design:type",Object)],sjQ.prototype,"ytPlayerBehavior",void 0);sjQ=_.x([_.d({is:"ytd-player"})],sjQ);var uT5;var t$i;var nGQ;var fn=function(){var y=_.v.apply(this,arguments)||this;y.forceModernIconButton=!1;y.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return y};
_.R(fn,_.v);fn.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]]"}}}}}};
fn.prototype.handleAccountLinkingStateChangedCommand=function(y){if(y=_.g(y,FAZ)){var W,c=(W=this.data)==null?void 0:W.providerKey;W=y.providerKey;c&&W&&c.id===W.id&&c.subject===W.subject&&(y=y.linked,y!==void 0&&(this.set("data.linked",y),this.notifyPath("data.linked"),_.O("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(y)))}};
fn.prototype.setPlayerAccountLinkState=function(y){var W=new q8I;w6a(W,kBh(new jgh,y));var c=_.HF();c&&c.getPlayerPromise().then(function(Z){Z.setAccountLinkState(_.OB(W.JSC$9915_serializeBinary(),4));Z.updateAccountLinkingConfig(y)})};
fn.prototype.handleShowAccountLinkDialog=function(){var y=this.get("button.buttonRenderer.command");y&&_.tE([y],this.hostElement)};
_.dJ.Object.defineProperties(fn.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}}}});
var ow=fn;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.x([_.C([_.Hj.YtActionHandlerBehavior]),_.e("design:type",Object)],ow.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ow.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],ow.prototype,"overrides",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ow.prototype,"forceModernIconButton",void 0);_.x([_.L({value:"bottom"}),_.e("design:type",String)],ow.prototype,"buttonTooltipPosition",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],ow.prototype,"forceIconButton",void 0);_.x([_.L(),_.e("design:type",Boolean)],ow.prototype,"disableTextTransform",void 0);
_.x([_.A("data","data.linked","data.isWarning"),_.e("design:type",Object),_.e("design:paramtypes",[])],ow.prototype,"button",null);ow=_.x([_.d({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],ow);
_.T(ow,"ytd-account-link-button-renderer",function(){if(nGQ!==void 0)return nGQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return nGQ=y},{mode:1});var X6E;var brE=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],DZ=function(){return _.v.apply(this,arguments)||this};
_.R(DZ,_.v);DZ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
DZ.prototype.updateButtonActiveState=function(){var y=this,W=!!brE.find(function(c){return y.currentState===c});
this.button&&(this.button.isPressed=W)};
_.dJ.Object.defineProperties(DZ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.playlistLoopStateEntity)==null?void 0:y.state)||((W=this.data)==null?void 0:W.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var y=void 0,W;if(this.currentState&&((W=this.data)==null?0:W.states)){W=_.z(this.data.states);for(var c=W.next();!c.done;c=W.next()){c=_.g(c.value,_.Bq2);var Z=void 0;if(((Z=c)==null?void 0:Z.state)===this.currentState){y=c;break}}}return y}}});
var zg=DZ;zg.prototype.updateButtonActiveState=zg.prototype.updateButtonActiveState;_.x([_.C(_.$s),_.e("design:type",Object)],zg.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.RRg}),_.e("design:type",Object)],zg.prototype,"playlistLoopStateEntity",void 0);_.x([_.L(),_.e("design:type",Object)],zg.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],zg.prototype,"forceIconOnly",void 0);_.x([_.jj("ytd-button-renderer"),_.e("design:type",_.Ay)],zg.prototype,"button",void 0);
_.x([_.A("data","playlistLoopStateEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],zg.prototype,"currentState",null);_.x([_.H("currentButtonStateRenderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zg.prototype,"updateButtonActiveState",null);_.x([_.A("currentState"),_.e("design:type",Object),_.e("design:paramtypes",[])],zg.prototype,"currentButtonStateRenderer",null);
zg=_.x([_.d({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],zg);
_.T(zg,"ytd-playlist-loop-button-renderer",function(){if(X6E!==void 0)return X6E;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return X6E=y},
{mode:1});var r_T;var FiT=_.bN("DOWNLOAD",{},"Download"),UGV=_.bN("DOWNLOADING",{},"Downloading"),$G0=_.bN("DOWNLOADED",{},"Downloaded"),KiT=_.bN("RETRY",{},"Retry"),OrE=function(){var y=_.v.apply(this,arguments)||this;y.forceIconButton=!1;y.forceIconOnly=!1;y.overrides=!1;y.buttonTooltipPosition=!1;y.styleActionButton=!1;y.disableTextTransform=!1;y.downloadProgress=0;y.isDownloadComplete=!1;y.isHidden=!0;y.transferState="TRANSFER_STATE_UNKNOWN";y.isVideoDeletedByUser=!1;y.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return y};
_.R(OrE,_.v);_.f=OrE.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.dataChanged=function(){var y;(y=this.data)!=null&&y.text||(y=_.Iv(_.Sv().getState(),this.videoId),this.updateButtonState(y))};
_.f.computeVideoId=function(y){return y};
_.f.showHideButton=function(){this.updateButtonVisibility()};
_.f.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};
_.f.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.f.updateButtonState=function(y){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==UGV||!_.Xj(y))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(y){case "TRANSFER_STATE_UNKNOWN":y=FiT;var W="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":y=KiT;W="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":y=$G0;W="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":y=
UGV;W="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":y=KiT;W="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;default:y=FiT,W="OFFLINE_DOWNLOAD",c="ACTION_ADD"}this.isVideoDeletedByUser&&(y=FiT,W="OFFLINE_DOWNLOAD",c="ACTION_ADD");var Z=Object.assign({},this.data);Z.text=_.Lq(y);Z.tooltip=y;Z.icon={iconType:W};Z.size="SIZE_DEFAULT";Z.style="STYLE_DEFAULT";_.g(Z.command,_.yL)&&(_.g(Z.command,_.yL).action=c);this.set("data",Z)}};
_.f.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?y="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(y="OFFLINE_PIN",this.isDownloadComplete=!0);var W;y!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.text=_.Lq(UGV),W.tooltip=UGV,W.icon={iconType:y},_.g(W.command,_.yL)&&(_.g(W.command,_.yL).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
var YZ=OrE;YZ.prototype.updateProgress=YZ.prototype.updateProgress;YZ.prototype.onTransferStateChanged=YZ.prototype.onTransferStateChanged;YZ.prototype.showHideButton=YZ.prototype.showHideButton;YZ.prototype.dataChanged=YZ.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],YZ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],YZ.prototype,"forceIconButton",void 0);
_.x([_.L(),_.e("design:type",Object)],YZ.prototype,"forceIconOnly",void 0);_.x([_.L(),_.e("design:type",Object)],YZ.prototype,"overrides",void 0);_.x([_.L(),_.e("design:type",Object)],YZ.prototype,"buttonTooltipPosition",void 0);_.x([_.L(),_.e("design:type",Object)],YZ.prototype,"styleActionButton",void 0);_.x([_.L(),_.e("design:type",Object)],YZ.prototype,"disableTextTransform",void 0);
_.x([_.L({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.e("design:type",String)],YZ.prototype,"videoId",void 0);_.x([_.L(),_.e("design:type",Object)],YZ.prototype,"data",void 0);_.x([_.L({selector:P$,selectorArgs:["videoId"]}),_.e("design:type",Object)],YZ.prototype,"downloadProgress",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],YZ.prototype,"isDownloadComplete",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],YZ.prototype,"isHidden",void 0);_.x([_.L({selector:_.Iv,selectorArgs:["videoId"]}),_.e("design:type",String)],YZ.prototype,"transferState",void 0);_.x([_.L({selector:_.MzH,selectorArgs:["videoId"]}),_.e("design:type",Object)],YZ.prototype,"isVideoDeletedByUser",void 0);_.x([_.L({selector:SUI,selectorArgs:["videoId"]}),_.e("design:type",Object)],YZ.prototype,"offlineabilityState",void 0);
_.x([_.L({value:!0}),_.e("design:type",Boolean)],YZ.prototype,"showTooltips",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],YZ.prototype,"sendCommandWhenDisabled",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],YZ.prototype,"disabled",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],YZ.prototype,"dataChanged",null);
_.x([_.Gs("offlineabilityState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],YZ.prototype,"showHideButton",null);_.x([_.Gs("transferState","isVideoDeletedByUser"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],YZ.prototype,"onTransferStateChanged",null);_.x([_.Gs("downloadProgress"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],YZ.prototype,"updateProgress",null);
YZ=_.x([_.d({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],YZ);
_.T(YZ,"ytd-download-button-renderer",function(){if(r_T!==void 0)return r_T;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return r_T=y},{mode:2});var gG2;var RaQ,l72=function(){if(RaQ!==void 0)return RaQ;var y=document.createElement("template");_.E(y,'\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 RaQ=y};var EGV=_.O("web_button_rework")&&_.I8("BUTTON_REWORK")||_.O("web_button_rework_with_live"),N0Q=_.ey("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,I7W=function(){var y=_.v.apply(this,arguments)||this;y.isPressed=!1;y.forceIconButton=!1;y.forceIconOnly=!1;y.forceModernIconButton=!1;y.alignByText=!1;y.isShorts=!1;y.animatedText=!1;y.shouldAnimate=!1;y.JSC$12206_browserSupportsAnimation=_.O("web_supports_animations_api");y.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};y.onTap=function(){var W;if((W=y.data)==null||!W.defaultNavigationEndpoint){var c;W=!((c=y.data)==null?0:c.isToggled);var Z;if((Z=y.data)==null||!Z.preventAutoToggle){y.shouldAnimate=!1;y.disableTextUpdateJobId&&_.KX.cancelJob(y.disableTextUpdateJobId);y.disableTextUpdateJobId=_.KX.addLowPriorityJob(function(){y.disableTextUpdateJobId=void 0},N0Q);
var G;y.set("data.isToggled",!((G=y.data)==null?0:G.isToggled));c=y.getInnertubeIcon();Z={toggled:W,actions:{}};c&&(Z.actions[c.toLowerCase()]=W);_.Z2(y.hostElement,"yt-toggle-button",Z)}}};
return y};
_.R(I7W,_.v);_.f=I7W.prototype;_.f.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.KX.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.toggle=function(y){var W;this.set("data.isToggled",y!==void 0?y:!((W=this.data)==null?0:W.isToggled))};
_.f.handleUpdateToggleButtonStateCommand=function(y){if(this.data){y=_.g(y,IyZ);var W,c,Z,G=(W=this.data)==null?void 0:(c=W.toggleButtonSupportedData)==null?void 0:(Z=c.toggleButtonIdData)==null?void 0:Z.id;G&&y&&G===(y==null?void 0:y.buttonId)&&this.set("data.isToggled",y.toggled)}};
_.f.handleUpdateToggleButtonTextAction=function(y){if(this.data){y=_.g(y,iH5);var W,c,Z,G=(W=this.data)==null?void 0:(c=W.toggleButtonSupportedData)==null?void 0:(Z=c.toggleButtonIdData)==null?void 0:Z.id;G&&y&&G===(y==null?void 0:y.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=y.defaultNumericalValue,this.set("data.defaultText",y.defaultText),this.set("data.toggledText",y.toggledText),this.shouldAnimate=!1)}};
_.f.getInnertubeIcon=function(){var y=this.data;if(y){var W,c,Z=((W=y.defaultIcon)==null?0:W.iconType)?(c=y.defaultIcon)==null?void 0:c.iconType:null,G,D;W=((G=y.toggledIcon)==null?0:G.iconType)?(D=y.toggledIcon)==null?void 0:D.iconType:Z;return y.isToggled?W:Z}};
_.f.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.dJ.Object.defineProperties(I7W.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y={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$12206_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var W=y.renderer;var c=y.element;var Z=y.toggled;var G=y.onTapCallback;var D=y.commandClientArgs;var Y=y.overrides;var u=y.forceIcon;var t=y.forceModernIconButton;var b=y.forceDisabled;var r=y.useAnimatedText;var F=y.animatedTextProps;y=IMF(W,Z);u=!W.defaultIcon||!u&&W.defaultText?W.defaultIcon?"leading":void 0:t?"icon-only":"icon-only-40";u==="icon-only-40"&&(y.type="text");var K;t=Object;var l=t.assign,N;a:switch((N=
W.style)==null?void 0:N.styleType){case "STYLE_COMPACT_GRAY":N={size:"S"};break a;default:N={size:"M"}}var P=!!Z;var V=(V=Z&&W.toggledText||W.defaultText)?_.Xx(V):void 0;r?(r=_.v$(Z&&W.toggledText||W.defaultText))&&F&&!isNaN(Number(F.numberValue))?(F.numberText=r,Z&&(F.numberValue+=1),r=F):r=void 0:r=void 0;var Q,S,cy,M;var fa=(F=((S=Z?W.toggledAccessibilityData||((fa=W.toggledText)==null?void 0:fa.accessibility):W.accessibilityData||((Q=W.defaultText)==null?void 0:Q.accessibility))==null?void 0:
(cy=S.accessibilityData)==null?void 0:cy.label)||((M=W.accessibility)==null?void 0:M.label))?F:_.v$(Z&&W.toggledText||W.defaultText);b=b===void 0?W.isDisabled:b;c=NEg(W,Z,G,c,D);Z=Eqh(W,Z);Z!=null&&Z.length?(Z=_.KN({innertubeCommand:FNf(Z),forceNewState:!0}),Z=Uew(Z)?Z:void 0):Z=void 0;W=l.call(t,{},y,N,{iconPosition:u},Y,{focused:!1,toggled:P,toggleable:!0,formattedButtonText:V,animatedTextProps:r,accessibilityLabel:fa,disabled:b,onTap:c,aTagConfig:Z},xSI((K=W.colorData)==null?void 0:K.basicColorPaletteData));
W.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(W.type="filled");return W}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var y=this.getInnertubeIcon();if(y)return _.wp(y)}}});
var mg=I7W;mg.prototype.resetAnimation=mg.prototype.resetAnimation;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],mg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],mg.prototype,"isPressed",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"forceIconButton",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"forceIconOnly",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"forceModernIconButton",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"alignByText",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"overrides",void 0);
_.x([_.L(),_.e("design:type",Boolean)],mg.prototype,"disabled",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"isShorts",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"buttonTooltipPosition",void 0);_.x([_.L(),_.e("design:type",Object)],mg.prototype,"animatedText",void 0);_.x([_.L(),_.e("design:type",String)],mg.prototype,"textNumberValue",void 0);_.x([_.L({computed:"computeTooltip(data, data.isToggled)"}),_.e("design:type",Object)],mg.prototype,"tooltip",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mg.prototype,"resetAnimation",null);_.x([_.A("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.e("design:type",Object),_.e("design:paramtypes",[])],mg.prototype,"computedButtonShape",null);_.x([_.A("data.*"),_.e("design:type",Object),_.e("design:paramtypes",[])],mg.prototype,"computedIcon",null);
mg=_.x([_.d({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],mg);EGV&&_.T(mg,"ytd-toggle-button-renderer",l72,{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var HCF=[],L0H=!1;_.eu(Svy);var p6E,P4E;p6E=_.Ax(function(y){function W(b){var r;return _.m(function(F){if(F.nextAddress==1)return(r=!Pet(b,u())||!u().enabled)?F.jumpTo(2):_.n(F,hRw(),3);F.nextAddress!=2&&(r=F.yieldResult);if(r)return F.return();c();setTimeout(function(){Y(!1)},1500);
_.F2(F)})}
function c(){setTimeout(function(){Y(!0);var b;(b=Z.lottieEl)==null||b.goToAndPlay(0)},150)}
var Z=_.qu(),G=_.z(_.G9(!1,void 0,"xffAp")),D=G.next().value,Y=G.next().value,u=_.Jx(y.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.rj(function(){var b,r;((b=y.settings)==null?void 0:(r=b.call(y))==null?void 0:r.uniqueId)==="this is not intended behavior"&&_.Rs(new _.ul("Smartimation Settings is undefined"))});
_.$k(function(){u().experimentEnabled&&(u().enabled?JOD(W):(Y(!1),Vn1(W)),_.KL(function(){Vn1(W)}))});
_.$k(function(){AOt(u().timings);u().experimentEnabled&&(CeI(u()),_.KL(function(){Qaf(u())}))});
var t=_.Yk(function(){return px1(Z,u())},void 0,"d96jJc");
G={};return _.X("yt-smartimation",{class:_.Mi(y.className,"smartimation",(G["smartimation--experiment-enabled"]=function(){return u().experimentEnabled},G["smartimation--active-border"]=D,G["smartimation--enable-masking"]=TEF(),G))},_.X(_.YN,{cond:function(){return u().experimentEnabled},
then:function(){return _.X("div",{class:"smartimation__border"},_.X(_.el,{className:"smartimation__border-gradient",data:t,animationName:function(){return t().animationConfig.name}}))}}),_.X("div",{class:"smartimation__content"},y.children))},"x");
_.p6t=_.O("web_enable_sink_smartimations")?p6E:Svy;P4E=_.O("web_enable_sink_smartimations")?p6E:_.qi(Svy);p6E.idomCompat=!0;_.O("web_enable_sink_smartimations")?_.A3(P4E,"yt-smartimation",{props:{className:_.Ix,settings:_.Ix}}):_.TP(_.p6t,"yt-smartimation",{propNames:["className","settings"]});var sk=function(){var y=_.v.apply(this,arguments)||this;y.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};y.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};y.shouldEnableSmartimation=!1;return y};
_.R(sk,_.v);sk.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
sk.prototype.onDataChanged=function(){var y,W;this.shouldEnableSmartimation=(((y=this.data)==null?void 0:(W=y.timedAnimationData)==null?void 0:W.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
sk.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var y=_.g(this.data.likeButton,_.lX),W=_.g(this.data.dislikeButton,_.lX);return!!((y==null?0:y.isToggled)||(W==null?0:W.isToggled))};
sk.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]]"}}}}}};
_.dJ.Object.defineProperties(sk.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var y,W,c=((y=this.data)==null?void 0:(W=y.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:this.shouldEnableSmartimation,experimentEnabled:c.length>0}}}});
var uc=sk;uc.prototype.onDataChanged=uc.prototype.onDataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],uc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uc.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],uc.prototype,"likeButtonOverride",void 0);
_.x([_.L(),_.e("design:type",Object)],uc.prototype,"dislikeButtonOverride",void 0);_.x([_.A("shouldEnableSmartimation"),_.e("design:type",Object),_.e("design:paramtypes",[])],uc.prototype,"smartimationSettings",null);_.x([_.H("data"),_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uc.prototype,"onDataChanged",null);uc=_.x([_.d({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],uc);
_.T(uc,"ytd-segmented-like-dislike-button-renderer",function(){if(gG2!==void 0)return gG2;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return gG2=y},{mode:1});var J_W;var V$T;(V$T=document.body)==null||V$T.setAttribute("rounded-container","");var C4Z={};C4Z.YtToggleButtonBehavior=[_.Hj.YtActionHandlerBehavior,yF.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 y=this.data.isToggled;if(!this.isModal_(y)){if(!this.data.preventAutoToggle){this.toggle();var W={toggled:this.data.isToggled,actions:{}};W.actions[this.buttonIcon]=this.data.isToggled;_.Z2(this.hostElement,"yt-toggle-button",W)}W=this.data.defaultServiceEndpoint||null;var c=this.data.toggledServiceEndpoint||null;if(W&&c||W&&this.data.preventAutoToggle)y=y?c:W,W=this.disableCommandHandlerOverride,_.O("killswitch_toggle_button_behavior_resolve_command")||W?_.D2(this.hostElement,
[y]):_.jl(y,this.hostElement),_.Z2(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:y})}},
stateChanged_:function(){var y=this.data;if(y){var W=y.isToggled;this._setEndpoint(this.computeEndpoint_(y));this._setServiceEndpoint(this.computeServiceEndpoint_(y));this._setButtonIcon(this.computeButtonIcon_(y,W));this._setButtonText(this.computeButtonText_(y,W));this._setButtonAccessibility(this.computeAccessibility_(y,W));this._setButtonTooltip(this.computeTooltip_(y,W));this._setButtonClass(this.computeButtonClass_(y,W));this._setIconPositionType(this.computeIconPositionType_(y));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=W):this.elements_.button.setAttribute("aria-pressed",W));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=W)}},
shouldSetIconActiveState_:function(){return _.O("kevlar_system_icons")},
toggle:function(y){this.set("data.isToggled",y!==void 0?y:!this.data.isToggled);_.O("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(y){if(y){var W,c;return!!((W=this.data)==null?0:(c=W.toggledServiceEndpoint)==null?0:c.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(y){return y&&y.defaultNavigationEndpoint||null},
computeButtonIcon_:function(y,W){var c=y&&y.defaultIcon?_.wp(y.defaultIcon.iconType):null;y=y&&y.toggledIcon?_.wp(y.toggledIcon.iconType):c;return W?y:c},
handleUpdateToggleButtonStateCommand_:function(y){y=y.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==y.buttonId&&this.toggle(y.toggled)},
computeButtonText_:function(y,W){return y?W&&y.toggledText||y.defaultText||null:null},
computeAccessibility_:function(y,W){return y?(W?this.get("toggledAccessibilityData.accessibilityData",y):this.get("accessibilityData.accessibilityData",y))||y.accessibility||null:null},
computeTooltip_:function(y,W){return y?W&&y.toggledTooltip||y.defaultTooltip||null:null},
computeButtonClass_:function(y,W){if(!y)return"";var c="",Z=y.toggledStyle||y.style;if(W=W?Z:y.style){W.styleType&&(W=W.styleType);try{c+=W.toLowerCase().replace(/_/g,"-")+" "}catch(G){_.NF(G,W,typeof W),_.Rs(G)}}if(y=y.size){y.sizeType&&(y=y.sizeType);try{c+=y.toLowerCase().replace(/_/g,"-")+" "}catch(G){_.NF(G,y,typeof y),_.Rs(G)}}return c.trim()},
computeIconPositionType_:function(y){return y&&y.iconPosition||null},
computeServiceEndpoint_:function(y){var W=y&&y.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return W?W:c&&y.command?y.command:null},
handleUpdateToggleButtonTextAction_:function(y){y=y.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==y.buttonId&&(this.set("data.defaultText",y.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",y.toggledText),this.notifyPath("data.toggledText"))}}];_.bv("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var QjJ=_.O("web_button_rework")&&_.I8("BUTTON_REWORK")||_.O("web_button_rework_with_live"),tL=function(){var y=_.v.apply(this,arguments)||this;y.systemIcons=_.O("kevlar_system_icons");y.roundedContainer=!0;return y};
_.R(tL,_.v);tL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
tL.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var y=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var W={toggled:!!this.data.isToggled,actions:{}};W.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var c,Z;W.actions.playlistId=(c=this.data.defaultServiceEndpoint)==null?void 0:(Z=c.playlistEditEndpoint)==null?void 0:Z.playlistId;_.Z2(this.hostElement,"yt-toggle-button",W)}(y=y?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(y)}};
tL.prototype.onYtNavigate=function(y){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(y.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(W))};
_.dJ.Object.defineProperties(tL,{template:{configurable:!0,enumerable:!0,get:function(){if(J_W===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);J_W=y}y=J_W;return y}}});
var nn=tL;nn.prototype.onYtNavigate=nn.prototype.onYtNavigate;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],nn.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],nn.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(C4Z.YtToggleButtonBehavior),_.e("design:type",Object)],nn.prototype,"ytToggleButtonBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],nn.prototype,"data",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],nn.prototype,"showTooltips",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],nn.prototype,"systemIcons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],nn.prototype,"roundedContainer",void 0);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],nn.prototype,"onYtNavigate",null);
nn=_.x([_.d({is:"ytd-toggle-button-renderer",disableElementRegistration:QjJ})],nn);var A_2;_.Xi=new _.Sm("PANEL_CONTROLLER_TOKEN");_.bc=new _.Sm("SHEET_CONTROLLER_TOKEN");_.rN=new _.Sm("DIALOG_CONTROLLER_TOKEN");A_2=new _.Sm("DIALOG_CONTAINER_TOKEN");var jCh=_.bN("DOWNLOAD",{},"Download"),yNI=_.bN("DOWNLOADING",{},"Downloading"),WFE=_.bN("DOWNLOADED",{},"Downloaded"),cNO=_.bN("RETRY",{},"Retry");var haZ=_.Ax(function(y){var W=mZO,c=function(){return""},Z=ody(y.data),G=DZI(y.data),D=zmg(y.data),Y=Yiw(y.data);
W=function(){var u=y.data(),t=qvI(u,Z(),G(),D(),Y()),b=!!u.videoId,r=t.text;return{title:b?r:void 0,tooltip:b?void 0:r,accessibilityText:r,onTap:t.onTap,iconName:t.iconType,style:u.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:t.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:u.buttonSize}};
c={};c=_.Mi("ytDownloadButtonViewModelHost",(c.ytDownloadButtonViewModelIsHidden=function(){var u=y.data(),t=Y();return u.playlistId||t()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||t()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},c));
return _.X("download-button-view-model",{class:c},_.X(_.OV,{data:W}))},"y");
haZ.idomCompat=!0;_.eu(tYH);_.eu(sCh);var HrT=_.Ax(function(y){var W=y.backgroundLottieRef;var c=y.foregroundLottieRef;var Z=y.children;var G=y.wrapperClass;var D=y.disableAnimation;y=function(){return(_.O("web_animated_actions")||_.O("web_animated_actions_v2"))&&!(D==null?0:D())};
return _.X("yt-animated-action",{class:_.Mi("animated-action__container",G)},_.X("div",{class:"animated-action__content-with-background"},_.X(_.YN,{cond:y,then:function(){return _.X(B0T,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:W==null?void 0:W(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(ndt()?"dark":"light")+"_v5.json"}}}})}}),Z),_.X(_.YN,{cond:y,
then:function(){return _.X(B0T,{lottiePlayerProps:function(){return{animationRef:c==null?void 0:c(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(ndt()?"dark":"light")+"_v4.json"}}}})}}))},"z");
HrT.idomCompat=!0;var a5g=_.O("web_enable_sink_animated_actions")?HrT:tYH,LiV=_.O("web_enable_sink_animated_actions")?HrT:_.qi(tYH),B0T=_.Ax(function(y){var W=y.wrapperClass;var c=y.lottieClass;var Z=y.lottiePlayerProps;return _.X("div",{class:_.Mi("animated-action__lottie",W),"aria-hidden":"true"},_.X(_.el,{className:c,data:Z,animationName:function(){return Z().animationConfig.name}}))},"A");var XoO={isOpen:!1};var rNf={isAllowed:!1};var UZI={errorMessage:"",title:"",privacy:"",isDisabled:!0};var KFg={isOpen:!1};var gda={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var vGV={response:void 0};var l5I=function(y,W){y=y===void 0?vGV:y;switch(W.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},y,{response:W.payload});default:return y}};var dG8={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var EdH=function(y,W){y=y===void 0?dG8:y;switch(W.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},y,{nextDisabled:W.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},y,{nextCommand:W.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},y,{footerSubmissionData:W.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},y,{isImpersonationValid:W.payload});default:return y}};var S83={reportFormData:void 0,reportDetailsFormData:void 0};var Nct=function(y,W){y=y===void 0?S83:y;switch(W.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},y,{reportFormData:W.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},y,{reportDetailsFormData:W.payload});default:return y}};var T0V=void 0;_.O("mweb_enable_redux_store_on_demand")||(T0V=new du(I5F()));var TcH=_.Ax(function(y){y=_.V0(y,{themeOverride:void 0,animationRef:{}});var W=y.animatedIconType,c=y.active,Z=y.themeOverride,G=y.animationRef;y=y.staticIconFn;var D=_.z(_.G9(void 0,void 0,"P5a72b")),Y=D.next().value,u=D.next().value,t=function(){a:{var V=W();var Q=Z==null?void 0:Z();var S;Q=(Q==null?void 0:Q.useDarkTheme)||((S=_.U().resolve(_.xN(_.EH)))==null?void 0:S());switch(V){case "LIKE":b:{T0V||(T0V=new du(I5F()));if((V=ICh(T0V.getState()))&&V.animationStyle)switch(V.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":V=
PYI({name:Q?"valentines25_heart_dark":"valentines25_heart_light",path:Q?"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":V=PYI({name:Q?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:Q?"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":V=
PYI({name:Q?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:Q?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}V=void 0}if(V){Q=V;break a}Q="animated_like_icon_"+(Q?"dark_v4":"light_v4");Q={lottiePlayerProps:{animationConfig:{name:Q,path:po1("animated_like_icon",Q),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":Q={lottiePlayerProps:{animationConfig:{name:Q?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(Q?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}Q=void 0}return Q},b=function(){var V,Q;
return(Q=(V=t())==null?void 0:V.lottiePlayerProps.animationConfig.name)!=null?Q:""},r=function(){if(t()){var V=t().lottiePlayerProps.animationConfig.path;
return is.get(V)||Y()}};
D=_.z(_.G9(!1,void 0,"h6xR3c"));var F=D.next().value;D=D.next().value;var K=VYf(D),l=function(){var V=t(),Q,S,cy;return(cy=V==null?void 0:(Q=V.lottiePlayerProps.animationConfig)==null?void 0:(S=Q.rendererSettings)==null?void 0:S.className)!=null?cy:""},N=void 0,P=void 0;
_.$k(function(){var V=t(),Q=b(),S=r(),cy=F(),M=c();if(V&&(P!==Q&&(P=Q,N=M,Q=G(),K.animationConfig=V.lottiePlayerProps.animationConfig,K.animationRef=Q,S&&(K.animationConfig.animationData=S,K.animationConfig.path=void 0),Q=V.lottiePlayerProps.animationConfig.path,!is.get(Q)&&V.lazyLoad&&Q&&JNf(Q,u)),!(cy||V.lazyLoad&&!S))){if(S=!G().lottieEl)M?(cy=V.totalFrames,K.animationConfig.initialSegment=[cy-1,cy]):K.animationConfig.initialSegment=void 0;if(N!==M&&!S)if(S=G(),M){var fa;(fa=S.lottieEl)==null||
fa.playSegments([0,V.totalFrames],!0)}else{var jI;(jI=S.lottieEl)==null||jI.playSegments([0,1],!0)}N=M}});
return _.X("animated-icon",{class:"ytAnimatedIconHost"},_.X(_.YN,{cond:function(){var V,Q;return!((V=t())==null||!V.lottiePlayerProps.animationConfig.path||((Q=t())==null?0:Q.lazyLoad)&&!r()||F())},
then:function(){return _.X(_.el,{data:K,animationName:b,className:l,animationRef:G})},
else:y}))},"B");_.eu(xZw);var a78,irV;a78=_.Ax(function(y){var W=_.HO(),c=_.HO(),Z=_.HO(),G=_.qu(),D=_.qu(),Y=_.qu(),u=_.Zx(_.Mu,function(){return y.data().stateEntityStoreKey}),t=_.Zx(UsE,function(){var f8,eV;
return(eV=(f8=y.data().notificationStateEntityStoreKeys)==null?void 0:f8.subsNotificationStateKey)!=null?eV:""}),b=function(){return!y.data().enableSubscribeButtonPostClickAnimation},r=_.z(_.G9(0,void 0,"LZz2ld")),F=r.next().value,K=r.next().value;
r=_.z(_.G9(0,void 0,"DTJZzd"));var l=r.next().value,N=r.next().value;r=_.z(_.G9(!1,void 0,"vYdJ9e"));var P=r.next().value,V=r.next().value;r=_.z(_.G9(!1,void 0,"HsSmhb"));var Q=r.next().value,S=r.next().value,cy=!1,M="";r=_.z(_.G9(!1,void 0,"p20o0d"));var fa=r.next().value,jI=r.next().value,sD=function(){S(!0);_.YY(_.KX,function(){S(!1)},1500)};
_.$k(function(){var f8=Q();ZS(function(){f8&&!b()&&u()&&kmw(G,D,Y)})});
_.$k(function(){var f8=u();ZS(function(){if(!b()&&f8){var eV;((eV=y.animateWidth)==null?0:eV.call(y))&&qif(W.value,!!f8.subscribed,F(),l());f8.subscribed&&f8.key===M&&sD();f8.key&&(M=f8.key)}})});
r=_.Yk(function(){var f8,eV,N3,K8=y.data(),PJ=!((f8=u())==null||!f8.subscribed);f8=!((eV=y.isOverlay)==null||!eV.call(y));eV=P()?W.value:void 0;var cX=(N3=t())==null?void 0:N3.state;N3=fa();wog(K8,cX);return GZ({model:K8,subscribed:PJ,isOverlay:f8,element:eV,notificationState:cX,disableTextEllipsis:!0,focused:N3})},void 0,"CJfYod");
var ED=function(){var f8;if(!b()&&((f8=y.animateWidth)==null?0:f8.call(y))&&(c==null?0:c.value)&&(Z==null?0:Z.value)&&!cy){f8=u();var eV=_.z((f8==null?0:f8.subscribed)?[c,Z]:[Z,c]),N3=eV.next().value;eV=eV.next().value;N3=Math.ceil(N3.value.getBoundingClientRect().width);eV=Math.ceil(eV.value.getBoundingClientRect().width);K(N3);N(eV);qif(W.value,!(f8==null||!f8.subscribed),N3,eV);cy=!0}},N1=_.j9(function(f8){ED();
var eV=u();eV&&(f8.detail.endpoint.subscribeEndpoint||f8.detail.endpoint.unsubscribeEndpoint)&&MYt(W.value,!eV.subscribed,eV)}),bf=function(){var f8=_.U().resolve(_.xN(_.ml));
f8&&jI(f8.isKeyBoardInUse())},Py=function(){jI(!1)};
_.BO("yt-player-subscribe",function(f8){var eV=u();eV&&f8===y.data().channelId&&MYt(W.value,!0,eV)});
_.BO("yt-player-unsubscribe",function(f8){var eV=u();eV&&f8===y.data().channelId&&MYt(W.value,!1,eV)});
_.BO("yt-update-subscribe-button-action",function(f8){f8=_.g(f8,Sih);var eV=u();eV&&f8&&f8.channelId===y.data().channelId&&MYt(W.value,!!f8.subscribed,eV)});
_.rj(function(){W.value&&(W.value.addEventListener("focusin",bf),W.value.addEventListener("focusout",Py));_.Xc(_.KX,function(){ED()});
V(!0);_.KL(function(){W.value&&(W.value.removeEventListener("focusin",bf),W.value.removeEventListener("focusout",Py))})});
var WJ=function(){var f8,eV,N3;if(N3=!((f8=u())==null||!f8.subscribed))f8=!!y.data().disableNotificationBell,N3=(eV=t())==null?void 0:eV.state,N3=!f8&&!!N3;return N3},t5=function(){var f8;
return!((f8=u())==null?0:f8.subscribed)},xF=function(){var f8,eV;
if(eV=t5()){eV=!!y.data().disableNotificationBell;var N3=(f8=t())==null?void 0:f8.state;eV=!eV&&!!N3}return eV},M3={},wS={};
return _.X("yt-subscribe-button-view-model",{class:_.Mi("yt-subscribe-button-view-model-wiz",(M3["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var f8,eV;return!((f8=u())==null||!f8.subscribed)&&((eV=y.animateWidth)==null?void 0:eV.call(y))&&Q()},M3["yt-subscribe-button-view-model-wiz--hidden"]=function(){var f8;
return!((f8=u())==null?0:f8.subscribed)&&y.data().hideWhenUnsubscribed},M3)),
el:W,"on:yt-service-request-sent":N1},_.X(LiV,{backgroundLottieRef:G,foregroundLottieRef:D,wrapperClass:_.Mi("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(wS["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var f8;return((f8=y.animateWidth)==null?void 0:f8.call(y))&&Q()},wS["yt-subscribe-button-view-model-wiz__static-width"]=function(){var f8;
return!((f8=y.animateWidth)==null?0:f8.call(y))},wS)),
disableAnimation:b},_.X("div",{el:c,class:"yt-subscribe-button-view-model-wiz__container"},_.X(M8,{data:r,icon:function(){return _.X(_.YN,{cond:WJ,then:function(){var f8=function(){var eV;return iKI((eV=t())==null?void 0:eV.state)};
return _.X(_.YN,{cond:function(){return b()||f8()!=="NOTIFICATIONS_NONE"},
then:function(){return _.X(_.Gb,{icon:f8})},
else:function(){return _.X(TcH,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Y})}})}})},
secondaryIconName:function(){return WJ()?"EXPAND":void 0}}))),_.X("div",{el:Z,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.X(_.YN,{cond:function(){var f8;return((f8=y.animateWidth)==null?void 0:f8.call(y))&&!b()&&!cy},
then:function(){return _.X(M8,{data:_.Yk(function(){var f8;return GZ({model:y.data(),subscribed:t5(),isOverlay:!((f8=y.isOverlay)==null||!f8.call(y)),element:W.value,disableTextEllipsis:!0})},void 0,"dfYtSe"),
iconName:function(){var f8;return xF()?iKI((f8=t())==null?void 0:f8.state):void 0},
secondaryIconName:function(){return xF()?"EXPAND":void 0}})}})))},"C");
_.xGT=_.O("web_enable_sink_yt_subscribe_button_view_model")?a78:xZw;irV=_.O("web_enable_sink_yt_subscribe_button_view_model")?a78:_.qi(xZw);a78.idomCompat=!0;var jjf=new _.Sm("RENDERER_STAMPER_OPTIONS_TOKEN");var np;_.tz=new muV;np=new Map;var X6t="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),r_w=["notificationTextRenderer","notificationMultiActionRenderer"],brt="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
nGE=DGE(function(y){return _.gV(y==null?void 0:y.targetId)}).useUpdatableData;var t$O=0;_.bg.debugName="EjJbCe";var M$J=_.Ax(function(y){var W=y.data;var c=_.Zx(_.Mu,function(){return W().subscriptionStateEntityKey});
return _.X(_.YN,{cond:function(){var Z=W(),G=c();return!Z.hideWhenUnsubscribed||(G==null?0:G.subscribed)?_.g(W().button,_.ri):void 0},
then:function(Z){return _.X("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.X(_.OV,{data:Z,buttonOverrides:function(){return{toggled:!W().isPurchasable}}}))}})},"D");var $GH=_.ug({buttonViewModel:_.OV,subscribeButtonViewModel:_.xGT,downloadButtonViewModel:haZ,toggleButtonViewModel:_.UV,subscribePlusButtonViewModel:M$J});_.eu(Orf);var eaV=_.Ax(function(y){return _.X(_.bg,{data:function(){return y.actionRow().actions}},{buttonViewModel:function(W){var c=W.data;
return _.X(Fi,{isRow:y.isRow,isIconOnlyButton:function(){return gGg(c())},
useIntrinsicWidth:y.useIntrinsicWidth},_.X(_.OV,{data:c}))},
subscribeButtonViewModel:function(W){return _.X(Fi,{isRow:y.isRow},_.X(irV,{data:W.data,isOverlay:!1,animateWidth:function(){return!y.isRow()}}))},
downloadButtonViewModel:function(W){var c=W.data;return _.X(Fi,{isRow:y.isRow,isIconOnlyButton:function(){return!!c().playlistId}},_.X(haZ,{data:c}))},
toggleButtonViewModel:function(W){var c=W.data;return _.X(Fi,{isRow:y.isRow,isIconOnlyButton:function(){var Z=c();return gGg(_.g(Z.isToggled?Z.toggledButtonViewModel:Z.defaultButtonViewModel,_.ri))}},_.X(_.UV,{data:c}))},
subscribePlusButtonViewModel:function(W){return _.X(Fi,{isRow:y.isRow},_.X(M$J,{data:W.data}))}})},"E"),Fi=_.Ax(function(y){var W={};
return _.X("div",{class:_.Mi("yt-flexible-actions-view-model-wiz__action",(W["yt-flexible-actions-view-model-wiz__action--row-action"]=y.isRow,W["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=y.useIntrinsicWidth,W["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,W["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=y.isIconOnlyButton,W))},y.children)},"F"),w68=_.Ax(function(y){var W=function(){var Z;
return((Z=y.layout)==null?void 0:Z.call(y))===1},c={};
return _.X("yt-flexible-actions-view-model",{class:_.Mi("yt-flexible-actions-view-model-wiz",y.className,(c["yt-flexible-actions-view-model-wiz--inline"]=function(){return!W()},c["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return y.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},c))},_.X(_.mC,{each:function(){return y.data().actionsRows||[]}},function(Z){return _.X(_.YN,{cond:W,
then:function(){return _.X("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.X(eaV,{actionRow:Z,isRow:W,useIntrinsicWidth:function(){return!!y.data().respectActionIntrinsicWidth}}))},
else:function(){return _.X(eaV,{actionRow:Z,isRow:W})}})}))},"G"),q8V=_.O("web_enable_sink_lockups_batch")?w68:Orf,kBm=_.O("web_enable_sink_lockups_batch")?w68:_.qi(Orf);
w68.idomCompat=!0;_.A3(kBm,"yt-flexible-actions-view-model",{props:{data:_.Ix,layout:_.Ix,justifyContentOverride:_.Ix,className:_.Ix}});_.eu(RaE);var jgm,P4t;jgm=_.Ax(function(y){var W=_.Zx(Ue,function(){var G;return(G=y.data().dislikeEntityKey)!=null?G:""}),c=_.Yk(function(){var G=W();
return G?G.likeStatus==="DISLIKE":_.g(y.data().toggleButtonViewModel,_.F5).isToggled},void 0,"D8oIFb"),Z=_.Yk(function(){return Object.assign({},_.g(y.data().toggleButtonViewModel,_.F5),{isToggled:c()})},void 0,"shaCXe");
return _.X("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.X(_.UV,{data:Z,buttonShapeOverrides:y.buttonShapeOverrideables,onToggle:function(G){var D=W();D&&G!==(D.likeStatus==="DISLIKE")&&D.key&&_.PQ(_.$Y("likeStatusEntity",D.key,{likeStatus:G?"DISLIKE":"INDIFFERENT",hadUserInteraction:G}))}}))},"H");
P4t=_.O("web_enable_sink_dislike_button_view_model")?jgm:RaE;_.ybZ=_.O("web_enable_sink_dislike_button_view_model")?jgm:_.qi(RaE);jgm.idomCompat=!0;_.Wk8=_.qi(EGI);_.eu(EGI);_.eu(J_F);_.TP(J_F,"segmented-like-dislike-button-view-model",{propNames:["data"]});var B0w=0;_.A3(ybD,"account-link-button-view-model",{props:{data:_.Ix,className:_.QE,setMinWidth:_.QE,forceIconOnly:_.QE}});_.bv("menuRenderer","menuRenderer","ytd-menu-renderer");
var cbJ={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"}},
ZYV=_.O("web_fix_missing_action_buttons")?100:200,Uk=function(){var y=_.v.apply(this,arguments)||this;y.safeArea=!_.O("kevlar_flex_menu_safe_area_killswitch");y.tonalOverride=!1;y.threeDotSize="M";y.isOverlay=!1;y.useOverlayDark=!1;y.topLevelIconsOnly=!1;y.JSC$12356_lastWidth=0;y.maybeUpdateFlexibleMenu=function(){_.O("web_fix_missing_action_buttons")?requestAnimationFrame(y.maybeUpdateFlexibleMenuImpl):y.maybeUpdateFlexibleMenuImpl()};
y.maybeUpdateFlexibleMenuImpl=function(){var W;if((W=y.data)!=null&&W.flexibleItems){y.maybeFlushDebouncer();W=y.hostElement.clientWidth;var c=W>y.JSC$12356_lastWidth,Z,G=((Z=y.topLevelButtonsContainer)==null?void 0:Z.scrollHeight)||0,D;Z=((D=y.flexibleItemButtonsContainer)==null?void 0:D.scrollHeight)||0;D=y.hostElement.scrollHeight>Math.max(G,Z)+8;c?(y.resetFlexibleItems(),y.JSC$12356_lastWidth=y.hostElement.clientWidth,y.maybeUpdateFlexibleMenu()):D&&(y.shrinkFlexibleMenu(),y.JSC$12356_lastWidth=
W)}};
y.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){y.onOverflowTap()},
iconPosition:"icon-only",style:y.isOverlay?y.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:y.threeDotSize,state:"active",accessibilityLabel:y.computeAccessibilityLabel(y.data)},y.threeDotButtonOverride)};
y.onOverflowTap=function(){if(y.data.fetchMenuCommand)_.U().resolve(_.i1).resolveCommand(y.data.fetchMenuCommand,{form:{element:y.hostElement}});else if(y.data.isDisabled&&y.data.disabledCommand)_.jl(y.data.disabledCommand,y.hostElement);else{var W=y.createMenuRendererVe(),c={items:y.items};y.data.menuPopupAccessibility&&(c.menuPopupAccessibility=y.data.menuPopupAccessibility);y.data.footer&&(c.footer=y.data.footer);W={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:c},veData:W}};_.U().resolve(_.bc).openSheet({openPopupActionCommand:W},
y.hostElement)}};
return y};
_.R(Uk,_.v);_.f=Uk.prototype;_.f.updateButtonOverrides=function(){if(!_.O("menu_renderer_label_update_upkillswitch")){var y=_.p(this.hostElement).querySelector("yt-button-view-model");y&&(y.buttonOverrides=this.buttonOverrides)}};
_.f.computeHasItems=function(){var y;return((y=this.topLevelButtonData)==null?void 0:y.length)||this.hasFlexibleItems};
_.f.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.f.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.wM(this.hostElement,{"--ytd-menu-renderer-button-color":_.$$(this.data.iconColor)}))};
_.f.onStamperFinished=function(){this.JSC$12356_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.f.setupFlexibleMenu=function(){var y=this,W;(W=this.data)!=null&&W.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.ig(this.maybeUpdateFlexibleMenu,ZYV,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){y.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))};
_.f.maybeFlushDebouncer=function(){if(_.O("web_replace_formatted_with_attributed_string")){var y;(y=this.topLevelButtons)==null||y.forEach(function(c){var Z;(c=(Z=c.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&K71(c)});
var W;(W=this.flexibleItemButtons)==null||W.forEach(function(c){var Z;(c=(Z=c.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&K71(c)})}};
_.f.resetFlexibleItems=function(){var y;if((y=this.data)!=null&&y.flexibleItems){_.O("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var W;this.flexAsTopLevelButtons=(W=this.data.flexibleItems)==null?void 0:W.map(function(c){return _.g(c,_.QUJ).topLevelButton});
_.O("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.f.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.f.shrinkFlexibleMenu=function(){var y;(y=this.flexAsTopLevelButtons)!=null&&y.length&&(this.flexAsTopLevelButtons=[].concat(_.No(this.flexAsTopLevelButtons.slice(0,-1))))};
_.f.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:cbJ,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:cbJ,events:!0}}};
_.f.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.f.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.f.detached=function(){this.icon="yt-icons:more_vert"};
_.f.computeTopLevelButtonData=function(y){if(!y)return[];var W;y=(W=y==null?void 0:y.topLevelButtons)!=null?W:[];return _.Eb.unsafeClone([].concat(_.No(y)))};
_.f.computeItems=function(y,W){if(!y)return[];var c=[];if(W){var Z=(y.flexibleItems||[]).map(function(Y){return _.g(Y,_.QUJ)});
Z=_.z(Z);for(var G=Z.next();!G.done;G=Z.next())G=G.value,W.includes(G.topLevelButton)||(G=G.menuItem)&&c.push(G)}var D;y=(D=y==null?void 0:y.items)!=null?D:[];return[].concat(_.No(c),_.No(y))};
_.f.computeMenuActive=function(y,W){return y||W};
_.f.onPopupOpened=function(){this.overlayOpen=!0;_.Z2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.f.onPopupClosed=function(){this.overlayOpen=!1;_.Z2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.f.onPopupCanceled=function(){this.overlayOpen=!1;_.Z2(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.f.computeAccessibilityLabel=function(y){return this.get("accessibility.accessibilityData.label",y)};
_.f.isHidden=function(y,W){return this.tonalOverride||!y?!0:y.fetchMenuCommand||y.isDisabled&&y.disabledCommand?!1:!(W==null?0:W.length)};
_.f.isModernOverflowHidden=function(y,W){return this.tonalOverride&&y?y.fetchMenuCommand?!1:!(W==null?0:W.length):!0};
_.f.createMenuRendererVe=function(){var y=this.data.trackingParams,W=_.NR(),c=_.EL();return y&&W&&c?(y=_.Dz(y),c=_.se(7591),_.O("combine_ve_grafts")?_.qY(_.Zz(),c,y):_.HA(W,y,c),c):null};
_.dJ.Object.defineProperties(Uk.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.flexAsTopLevelButtons)==null||!y.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Uk.prototype.onPopupCanceled=Uk.prototype.onPopupCanceled;Uk.prototype.onPopupClosed=Uk.prototype.onPopupClosed;Uk.prototype.onPopupOpened=Uk.prototype.onPopupOpened;Uk.prototype.tonalOverrideChanged=Uk.prototype.tonalOverrideChanged;Uk.prototype.resetFlexibleItems=Uk.prototype.resetFlexibleItems;Uk.prototype.setupFlexibleMenu=Uk.prototype.setupFlexibleMenu;Uk.prototype.iconButtonColorChanged=Uk.prototype.iconButtonColorChanged;Uk.prototype.updateButtonOverrides=Uk.prototype.updateButtonOverrides;
_.x([_.C(_.CB),_.e("design:type",Object)],Uk.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Uk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("#button-shape"),_.e("design:type",ax)],Uk.prototype,"buttonShape",void 0);_.x([_.jj("#button"),_.e("design:type",Object)],Uk.prototype,"button",void 0);
_.x([_.L(),_.e("design:type",Object)],Uk.prototype,"data",void 0);_.x([_.L({computed:"computeTopLevelButtonData(data)"}),_.e("design:type",Array)],Uk.prototype,"topLevelButtonData",void 0);_.x([_.L(),_.e("design:type",Array)],Uk.prototype,"flexAsTopLevelButtons",void 0);_.x([_.L({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.e("design:type",Array)],Uk.prototype,"items",void 0);_.x([_.L({value:"yt-icons:more_vert"}),_.e("design:type",String)],Uk.prototype,"icon",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Uk.prototype,"safeArea",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.e("design:type",Boolean)],Uk.prototype,"menuActive",void 0);_.x([_.L(),_.e("design:type",Boolean)],Uk.prototype,"menuFocused",void 0);_.x([_.L({value:"bottom"}),_.e("design:type",String)],Uk.prototype,"buttonTooltipPosition",void 0);_.x([_.L(),_.e("design:type",Boolean)],Uk.prototype,"overlayOpen",void 0);
_.x([_.L({value:!0}),_.e("design:type",Boolean)],Uk.prototype,"forceIconButton",void 0);_.x([_.L(),_.e("design:type",Boolean)],Uk.prototype,"styleActionButton",void 0);_.x([_.L(),_.e("design:type",Boolean)],Uk.prototype,"disableTextTransformOnButtons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Uk.prototype,"tonalOverride",void 0);_.x([_.L(),_.e("design:type",Object)],Uk.prototype,"threeDotSize",void 0);
_.x([_.L(),_.e("design:type",Object)],Uk.prototype,"threeDotButtonOverride",void 0);_.x([_.L(),_.e("design:type",Object)],Uk.prototype,"isOverlay",void 0);_.x([_.L(),_.e("design:type",Object)],Uk.prototype,"useOverlayDark",void 0);_.x([_.L({computed:"computeButtonOverride(tonalOverride)"}),_.e("design:type",Object)],Uk.prototype,"buttonOverride",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Uk.prototype,"hasCustomIconColor",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("flexAsTopLevelButtons"),_.e("design:type",Object),_.e("design:paramtypes",[])],Uk.prototype,"hasFlexibleItems",null);_.x([_.L({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.e("design:type",Boolean)],Uk.prototype,"hasItems",void 0);_.x([_.L(),_.e("design:type",Object)],Uk.prototype,"topLevelIconsOnly",void 0);
_.x([_.H("topLevelIconsOnly"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"updateButtonOverrides",null);_.x([_.A("topLevelIconsOnly"),_.e("design:type",Object),_.e("design:paramtypes",[])],Uk.prototype,"buttonOverrides",null);_.x([_.jj("#top-level-buttons-computed"),_.e("design:type",HTMLElement)],Uk.prototype,"topLevelButtonsContainer",void 0);_.x([_.y0(".top-level-buttons > *"),_.e("design:type",Array)],Uk.prototype,"topLevelButtons",void 0);
_.x([_.jj("#flexible-item-buttons"),_.e("design:type",HTMLElement)],Uk.prototype,"flexibleItemButtonsContainer",void 0);_.x([_.y0("#flexible-item-buttons > *"),_.e("design:type",Array)],Uk.prototype,"flexibleItemButtons",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"iconButtonColorChanged",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"setupFlexibleMenu",null);_.x([_.Gs("topLevelIconsOnly"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"resetFlexibleItems",null);_.x([_.H("tonalOverride"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"tonalOverrideChanged",null);
_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"onPopupOpened",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"onPopupClosed",null);_.x([_.B("yt-popup-canceled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uk.prototype,"onPopupCanceled",null);
_.T(Uk,"ytd-menu-renderer",function(){if(t$i===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);t$i=y}y=t$i;return y},{mode:_.xm("kevlar_poly_si_batch_j030")?1:2});var G4Q;var f1Q;_.TZ=_.Ax(function(y){var W=y.data;var c=function(){if(W().icon)a:{var Z={iconName:W().icon};for(var G=_.U().resolve(_.qM),D=_.z([12,24]),Y=D.next();!Y.done;Y=D.next()){var u=Y.value;Y=Object.assign({},Z,{iconStyle:"youtube_fill",iconSize:u});u=Object.assign({},Z,{iconStyle:"youtube_outline",iconSize:u});if(G.resolveIcon(Y)){Z=Y;break a}if(G.resolveIcon(u)){Z=u;break a}}Z=void 0}else Z=void 0;return Z};
y={};return _.X("badge-shape",{class:_.Mi("badge-shape-wiz",function(){return ZYI(W().type)},(y["badge-shape-wiz--overlay"]=function(){return W().isOverlay},y["badge-shape-wiz--ads-include-dot"]=function(){return W().adsIncludeDot},y["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(W().type){case 16:case 17:case 18:var Z=!0;
break a;default:Z=!1}return Z},y["badge-shape-wiz--status-badge"]=function(){a:switch(W().type){case 11:case 12:case 13:case 14:case 15:var Z=!0;
break a;default:Z=!1}return Z},y["badge-shape-wiz--no-text"]=function(){return!W().text},y["badge-shape-wiz--modern"]=function(){return W().modern},y)),
style:_.cF({"background-color":function(){var Z;return(Z=W().customColors)==null?void 0:Z.backgroundColor}}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},_.X(_.YN,{cond:function(){return W().animation},
then:function(Z){return _.X(_.el,{className:"badge-shape-wiz__icon",data:Z,animationName:function(){return Z().animationConfig.name||""}})}}),_.X(_.YN,{cond:function(){var Z;
return c()&&!((Z=W())==null?0:Z.animation)},
then:function(){return _.X("div",{class:"badge-shape-wiz__icon"},_.X(SIy,{data:function(){return c()}}))}}),_.X("div",{class:"badge-shape-wiz__text"},function(){var Z;
return(Z=W())==null?void 0:Z.text}))},"I");
_.TZ.idomCompat=!0;_.A3(_.TZ,"badge-shape",{props:{data:_.Ix}});var oB2=function(){var y=_.v.apply(this,arguments)||this;y.systemIcons=_.O("kevlar_system_icons");y.animated=_.O("animated_live_badge_icon");y.useBadgeShape=_.O("web_badge_shape_defrag");return y};
_.R(oB2,_.v);_.f=oB2.prototype;_.f.addTooltips=function(){for(var y=_.p(this.hostElement).querySelectorAll(".badge"),W=0,c;c=y[W++];){var Z=this.repeatElement.itemForElement(c);c=_.p(c);c.lastChild&&c.lastChild.is==="tp-yt-paper-tooltip"&&c.removeChild(c.lastChild);if(Z=Z.metadataBadgeRenderer&&Z.metadataBadgeRenderer.tooltip){var G=_.QN("tp-yt-paper-tooltip");(0,_.ed)(G).textContent=Z;G.setAttribute("position","top");c.appendChild(G)}}};
_.f.badgesChanged=function(){var y=this;_.It().parkOrScheduleJob(function(){y.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.f.standaloneRoundedBadgeChanged=function(){var y=this.useRoundedBadge?this.useRoundedBadge:void 0;y&&(this.useRoundedBadge=y)};
_.f.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.f.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.f.computeStyle=function(y){_.O("enable_html5_teal_ad_badge")&&y==="BADGE_STYLE_TYPE_AD"&&(y="badge-style-type-ad-alternate");_.O("kevlar_ytb_live_badges")&&y==="BADGE_STYLE_TYPE_LIVE_NOW"&&(y="badge-style-type-live-now-alternate");return y?y.toLowerCase().replace(/_/g,"-"):""};
_.f.computeRole=function(y){return this.computeAriaLabel(y)?"img":"status"};
_.f.computeAriaLabel=function(y){var W;return(y==null?void 0:(W=y.accessibilityData)==null?void 0:W.label)||(y==null?void 0:y.label)};
_.f.computeBadgeShape=function(y){var W;if(y){var c,Z=Wka(y.style),G=cby(y.style),D=y.label,Y=((c=y.accessibilityData)==null?void 0:c.label)||y.label;y=(W=y.icon)==null?void 0:W.iconType;W={type:Z,brNzRatingBadgeType:G,text:D,accessibilityText:Y,icon:y!=="PREMIUM"?y:void 0}}else W={};return W};
_.f.updateComputedBadges=function(y,W,c){var Z=this;(W=W?[W]:c?[c]:void 0)?this.computedBadges=W:this.computedBadges=y==null?void 0:y.filter(function(G){var D;if((D=G.metadataBadgeRenderer)==null?0:D.groups){D=!1;G=_.z(G.metadataBadgeRenderer.groups);for(var Y=G.next();!Y.done;Y=G.next()){Y=Y.value;var u=void 0;D=D||((u=Z.hiddenBadgeGroups)==null?void 0:u.includes(Y))}return!D}return!0})};
_.f.useFilledIcons=function(y){return _.O("kevlar_system_icons")&&(y==="AUDIO_BADGE"||y==="CHECK_CIRCLE_THICK"||y==="OFFICIAL_ARTIST_BADGE"||y==="SPONSORSHIP_STAR"||y==="PERSON_RADAR_FILLED"||y==="PERSON_RADAR")};
_.f.computeIcon=function(y){var W,c;y=y==null?void 0:(W=y.metadataBadgeRenderer)==null?void 0:(c=W.icon)==null?void 0:c.iconType;if(y!=="PREMIUM"&&y)return _.wp(y)};
_.f.computeStandaloneBadge=function(y){var W;y=y==null?void 0:(W=y.icon)==null?void 0:W.iconType;return y==="PREMIUM_STANDALONE"||y==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
var $Z=oB2;$Z.prototype.hiddenBadgeGroupsChanged=$Z.prototype.hiddenBadgeGroupsChanged;$Z.prototype.standaloneBadgeChanged=$Z.prototype.standaloneBadgeChanged;$Z.prototype.standaloneRoundedBadgeChanged=$Z.prototype.standaloneRoundedBadgeChanged;$Z.prototype.badgesChanged=$Z.prototype.badgesChanged;_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"hidden",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],$Z.prototype,"componentBehavior",void 0);
_.x([_.L(),_.e("design:type",Array)],$Z.prototype,"badges",void 0);_.x([_.L(),_.e("design:type",Object)],$Z.prototype,"topStandaloneBadge",void 0);_.x([_.L(),_.e("design:type",Object)],$Z.prototype,"bottomStandaloneBadge",void 0);_.x([_.L(),_.e("design:type",Object)],$Z.prototype,"computedBadges",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"mediumFontAdBadge",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"useRoundedBadge",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"largeFontAdBadge",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"overlayAd",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"overlayPremium",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"noDotAdBadge",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"collectionTruncate",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"isThumbnailBadge",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$Z.prototype,"wrapBadges",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$Z.prototype,"systemIcons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$Z.prototype,"animated",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$Z.prototype,"useBadgeShape",void 0);_.x([_.L({value:[]}),_.e("design:type",Array)],$Z.prototype,"hiddenBadgeGroups",void 0);_.x([_.jj("#repeat"),_.e("design:type",s0)],$Z.prototype,"repeatElement",void 0);_.x([_.Gs("badges"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$Z.prototype,"badgesChanged",null);
_.x([_.Gs("useRoundedBadge"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$Z.prototype,"standaloneRoundedBadgeChanged",null);_.x([_.Gs("topStandaloneBadge","bottomStandaloneBadge"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$Z.prototype,"standaloneBadgeChanged",null);_.x([_.Gs("hiddenBadgeGroups"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$Z.prototype,"hiddenBadgeGroupsChanged",null);
$Z=_.x([_.d({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],$Z);
var DI0=_.a5()($Z,"ytd-badge-supported-renderer",function(){if(f1Q===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);f1Q=y}y=f1Q;return y},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.xm("kevlar_poly_si_batch_j053")?1:2});var Kn,zxQ=function(){var y=_.v.apply(this,arguments)||this;y.iconType="STAR";y.standardizeIconSize=_.O("kevlar_system_icons");y.mediaHoverOverlayInitialVisibility=_.O("enable_top_landscape_image_button_command_web");y.noBottomMargin=!1;y.thumbnailObjectFit="CONTAIN";y.thumbnailFitHeight=!0;y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return y};
_.R(zxQ,_.v);_.f=zxQ.prototype;
_.f.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"}}}};
_.f.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",Kn.JSC$12368_DEFAULT_CLICK_LOCATION_BEHAVIOR,Kn.JSC$12368_CLICK_LOCATION_ID_MAP))};
_.f.onTap=function(y){if(!_.O("use_on_click_for_desktop_display_ad"))this.onTapOrClick(y)};
_.f.onClick=function(y){if(_.O("use_on_click_for_desktop_display_ad"))this.onTapOrClick(y)};
_.f.onTapOrClick=function(y){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,y,!1)};
_.f.updateMediaBackgroundImage=function(){var y=this.get("data.image.thumbnail.thumbnails");y&&(y=_.h3(y,0))&&_.wM(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+y+")"})};
_.f.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var y=0;y<this.data.impressionEndpoints.length;y++){var W=this.data.impressionEndpoints[y];W.clickTrackingParams&&delete W.clickTrackingParams;_.U().resolve(_.i1).resolveCommand(W,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var c;((c=this.data)==null?0:c.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.f.handleMuteAd=function(){};
_.f.attached=function(){var y=this;_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.O("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.dJ.Object.defineProperties(zxQ.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.titleText)return"";var W;return _.bN("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.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 y;return!((y=this.data)==null||!y.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"}}});
var Ok=Kn=zxQ;Kn.prototype.onClick=Kn.prototype.onClick;Kn.prototype.onTap=Kn.prototype.onTap;Kn.prototype.dataChanged=Kn.prototype.dataChanged;Ok.VERTICAL_CAROUSEL_ITEM_IMAGE_WIDTH=135;
Ok.JSC$12368_CLICK_LOCATION_ID_MAP=_.O("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"]]);
Ok.JSC$12368_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.O("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ok.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.OO),_.e("design:type",Object)],Ok.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Ok.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],Ok.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.C(UO),_.e("design:type",Object)],Ok.prototype,"ytdActiveViewBehavior",void 0);_.x([_.C([_.Hj.YtActionHandlerBehavior]),_.e("design:type",Object)],Ok.prototype,"actionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Ok.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Ok.prototype,"clickCommand",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],Ok.prototype,"miniMode",void 0);_.x([_.L(),_.e("design:type",String)],Ok.prototype,"iconType",void 0);_.x([_.A("data.titleText"),_.e("design:type",String),_.e("design:paramtypes",[])],Ok.prototype,"titleAriaLabel",null);
_.x([_.A("data.rating"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ok.prototype,"getRating",null);_.x([_.A("data.price"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ok.prototype,"getPrice",null);_.x([_.A("data.thirdLine"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ok.prototype,"getThirdLine",null);_.x([_.A("data.fourthLine"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ok.prototype,"getFourthLine",null);
_.x([_.A("data.fifthLine"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ok.prototype,"getFifthLine",null);_.x([_.A("getRating"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"computeRatingHidden",null);_.x([_.A("getPrice"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"computePriceHidden",null);_.x([_.A("getThirdLine"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"computeThirdLineHidden",null);
_.x([_.A("getFourthLine"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"computeFourthLineHidden",null);_.x([_.A("getFifthLine"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"computeFifthLineHidden",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.energyIcon"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"hasEnergyIcon",null);
_.x([_.A("computePriceHidden","computeRatingHidden"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"computeSecondaryTextHidden",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ok.prototype,"standardizeIconSize",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ok.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ok.prototype,"noBottomMargin",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data.layout"),_.e("design:type",String),_.e("design:paramtypes",[])],Ok.prototype,"layout",null);_.x([_.A("data.layout"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ok.prototype,"mediaThumbnailWidth",null);_.x([_.A("layout"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ok.prototype,"useRoundedBadge",null);_.x([_.L(),_.e("design:type",String)],Ok.prototype,"thumbnailObjectFit",void 0);
_.x([_.L(),_.e("design:type",Object)],Ok.prototype,"thumbnailFitHeight",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ok.prototype,"dataChanged",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ok.prototype,"onTap",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ok.prototype,"onClick",null);
Ok=Kn=_.x([_.d({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Ok);
_.T(Ok,"ytd-display-ad-renderer",function(){if(G4Q!==void 0)return G4Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return G4Q=y},{mode:1});var YTV;var mIi;var sgZ;var G4E=new Map;var u08=!1;var tKE=function(){var y=_.v.apply(this,arguments)||this;y.DEFAULT_TOOLTIP_OFFSET="10";y.TOOLTIP_OFFSET_NO_BANNER="-8";y.badges=null;y.noEndpoints=!1;y.wrapText=!1;y.forceVerified=!1;y.tooltipPosition="top";y.compactStyle=!1;y.height=0;y.lineHeight=0;return y};
_.R(tKE,_.v);_.f=tKE.prototype;_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.f.attached=function(){var y=this;this.observer=new MutationObserver(function(W,c){y.handleResized();c.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.f.detached=function(){this.observer&&this.observer.disconnect()};
_.f.logTooltipEvent=function(){_.O("kevlar_wiz_tooltip_event_killswitch")||u08||(_.f1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),u08=!0)};
_.f.handleWindowResized=function(){this.handleResized()};
_.f.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")))};
_.f.onHeightChanged=function(){if(this.verified){var y=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Nn("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=y:this.textContainerEl.style.marginRight=y}};
_.f.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Nn("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.f.handleResized=function(){var y=this;this.verified&&_.KX.addLowPriorityJob(function(){y.fitBackgroundToText();var W=getComputedStyle(y.hostElement).lineHeight;W&&(W=W.match(/\d+/))&&W.length&&(y.lineHeight=Number(W[0]));y.height=y.lineHeight&&!y.wrapText?y.lineHeight:y.textEl.offsetHeight})};
_.f.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var y=document.createRange(),W=_.p(this.textEl).children;W.length>0?y.selectNodeContents(W[0]):y.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(y.getBoundingClientRect().width)+"px"}};
_.f.computeChannelBadgeStyle=function(y){var W;if((y==null?0:(W=y.runs)==null?0:W.length)&&y.runs[0].textColor)return"--ytd-badge-icon-color:"+_.$$(y.runs[0].textColor)+";"};
_.dJ.Object.defineProperties(tKE.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"?_.Lq(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var y=this.get("badges.0.metadataBadgeRenderer.tooltip");if(y)return y}return _.v$(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
var gN=tKE;gN.prototype.onLineHeightChanged=gN.prototype.onLineHeightChanged;gN.prototype.onHeightChanged=gN.prototype.onHeightChanged;gN.prototype.onChannelNameChanged=gN.prototype.onChannelNameChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],gN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],gN.prototype,"badges",void 0);_.x([_.L(),_.e("design:type",Object)],gN.prototype,"channelName",void 0);
_.x([_.L(),_.e("design:type",Object)],gN.prototype,"noEndpoints",void 0);_.x([_.L(),_.e("design:type",Object)],gN.prototype,"wrapText",void 0);_.x([_.L(),_.e("design:type",Object)],gN.prototype,"forceVerified",void 0);_.x([_.L(),_.e("design:type",Object)],gN.prototype,"tooltipPosition",void 0);_.x([_.L(),_.e("design:type",String)],gN.prototype,"tooltip",void 0);_.x([_.L(),_.e("design:type",Boolean)],gN.prototype,"hasChannelArt",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gN.prototype,"compactStyle",void 0);_.x([_.jj("#text-container"),_.e("design:type",HTMLElement)],gN.prototype,"textContainerEl",void 0);_.x([_.jj("#text"),_.e("design:type",Object)],gN.prototype,"textEl",void 0);_.x([_.jj("#verified-tooltip"),_.e("design:type",HTMLElement)],gN.prototype,"verifiedTooltip",void 0);_.x([_.L(),_.e("design:type",Object)],gN.prototype,"height",void 0);
_.x([_.L(),_.e("design:type",Object)],gN.prototype,"lineHeight",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("badges","forceVerified"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],gN.prototype,"verified",null);_.x([_.A("badges","verified"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],gN.prototype,"hideBadges",null);_.x([_.A("channelName"),_.e("design:type",Object),_.e("design:paramtypes",[])],gN.prototype,"formattedName",null);
_.x([_.A("badges","verified","formattedName"),_.e("design:type",String),_.e("design:paramtypes",[])],gN.prototype,"tooltipText",null);_.x([_.A("hasChannelArt"),_.e("design:type",String),_.e("design:paramtypes",[])],gN.prototype,"tooltipOffset",null);_.x([_.H("channelName"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gN.prototype,"onChannelNameChanged",null);
_.x([_.H("height"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gN.prototype,"onHeightChanged",null);_.x([_.H("lineHeight","height"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gN.prototype,"onLineHeightChanged",null);gN=_.x([_.d({is:"ytd-channel-name",disableElementRegistration:!0})],gN);
_.T(gN,"ytd-channel-name",function(){if(sgZ!==void 0)return sgZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sgZ=y},{mode:_.xm("kevlar_poly_si_batch_j036")?1:2});var Rw=function(){var y=_.v.apply(this,arguments)||this;y.standardizeIconSize=_.O("kevlar_system_icons");y.enableModernCommentBadges=_.O("enable_modern_comment_badges");return y};
_.R(Rw,_.v);Rw.prototype.basicPaletteChanged=function(){var y;(y=this.data.color)!=null&&y.basicColorPaletteData&&_.nx(this.hostElement,this.data.color.basicColorPaletteData)};
Rw.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var y,W=this.get("basicColorPaletteData.backgroundColor",(y=this.data)==null?void 0:y.color),c;y=this.get("basicColorPaletteData.foregroundTitleColor",(c=this.data)==null?void 0:c.color);c={};W?(W=_.$$(W),c["--ytd-author-comment-badge-background-color"]=W):(c["--ytd-author-comment-badge-icon-background-color"]="transparent",c["--ytd-author-comment-badge-background-color"]="transparent");y?(W=_.$$(y),c["--ytd-author-comment-badge-name-color"]=
W,c["--ytd-author-comment-badge-icon-color"]=W):c["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(c).length>0&&_.wM(this.hostElement,c)}};
Rw.prototype.useFilledIcons=function(y){return _.O("kevlar_system_icons")&&(y==="CHECK_CIRCLE_THICK"||y==="OFFICIAL_ARTIST_BADGE")};
_.dJ.Object.defineProperties(Rw.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")}}});
var lc=Rw;lc.prototype.colorChanged=lc.prototype.colorChanged;lc.prototype.basicPaletteChanged=lc.prototype.basicPaletteChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],lc.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],lc.prototype,"standardizeIconSize",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],lc.prototype,"enableModernCommentBadges",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.authorUnifiedVerified"),_.e("design:type",Object),_.e("design:paramtypes",[])],lc.prototype,"verified",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],lc.prototype,"creator",null);
_.x([_.H("data.color.basicColorPaletteData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lc.prototype,"basicPaletteChanged",null);_.x([_.H("data.color"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lc.prototype,"colorChanged",null);lc=_.x([_.d({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],lc);
_.T(lc,"ytd-author-comment-badge-renderer",function(){if(mIi!==void 0)return mIi;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return mIi=y},{mode:1});var nBV;var XeT=function(){return _.v.apply(this,arguments)||this};
_.R(XeT,_.v);XeT.prototype.computeThumbnailWidth=function(y){if(y==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
var Ek=XeT;Ek.communityTabWidth=638;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ek.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ek.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",String)],Ek.prototype,"icon",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],Ek.prototype,"surface",void 0);
_.x([_.L({reflectToAttribute:!0,value:_.O("enable_shrink_image_size_on_web_posts_singleton")}),_.e("design:type",Boolean)],Ek.prototype,"searchSxsUx",void 0);Ek=_.x([_.d({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],Ek);
_.T(Ek,"ytd-backstage-image-renderer",function(){if(nBV!==void 0)return nBV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return nBV=y},{mode:1});var bY2;var rb3=function(){var y=_.v.apply(this,arguments)||this;y.isLoading=!1;y.selectedItemIndex=-1;return y};
_.R(rb3,_.v);_.f=rb3.prototype;_.f.computeIsChannelOwner=function(y){if(!y)return!0;y=y[0];return!(y&&(y.signinEndpoint||y.selectServiceEndpoint))};
_.f.computeIsImagePoll=function(y){return(y==null?void 0:y.type)==="POLL_TYPE_IMAGE"};
_.f.computeIsTotalVotesDisabled=function(y){return!(y==null?0:y.totalVotes)};
_.f.thumbnailSrc=function(y){var W,c,Z,G;return(y==null?0:(W=y.thumbnails)==null?0:(c=W[0])==null?0:c.url)?_.Jn((Z=y.thumbnails)==null?void 0:(G=Z[0])==null?void 0:G.url):void 0};
_.f.progressWidth=function(y){return"width:"+(y?y*100:0)+"%;"};
_.f.textAreaWidth=function(y){return this.isImagePoll?null:"width:"+(y?y*100:0)+"%;"};
_.f.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.f.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var y=this.data.choices,W=0;W<y.length;W++)if(y[W].selected){this.selectedItemIndex=W;break}};
_.f.onPopupClosed=function(y,W){y=Number(this.pollVotes.selected);W.confirmed&&(this.selectChoice(y,!1),_.GG(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.f.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.f.onYtCommentPollRevert=function(y,W){W&&(this.selectChoice(W.selectedChoiceIndex,!0),this.set("data.totalVotes",W.totalVotes))};
_.f.onYtServiceRequestSent=function(y,W){if(W.actions)for(y=0;y<W.actions.length;y++){var c=W.actions[y];_.g(c,Xb)&&this.set("data.totalVotes",_.g(c,Xb).totalVotes)}};
_.f.onYtServiceRequestCompleted=function(y){var W=this.get("detail.data.actionResults.0.feedback",y);y=this.get("detail.data.actionResults.0.status",y);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,y==="STATUS_FAILED"?_.Z2(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.f.getEndpoint=function(y,W){return W===y?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[y].selectServiceEndpoint||null};
_.f.selectChoice=function(y,W){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++){var Z;if(y===this.selectedItemIndex){var G=!1;var D=Z=null}else Z=(G=c===y)?this.data.choices[c].voteRatioIfSelected:this.data.choices[c].voteRatioIfNotSelected,D=G?this.data.choices[c].votePercentageIfSelected:this.data.choices[c].votePercentageIfNotSelected;this.set("data.choices."+c+".voteRatio",Z);
this.set("data.choices."+c+".votePercentage",D);this.set("data.choices."+c+".selected",G)}W||(this.isLoading=!0,(W=this.getEndpoint(y,this.selectedItemIndex))&&_.D2(this.hostElement,[W]));this.selectedItemIndex=this.selectedItemIndex===y?-1:y};
_.dJ.Object.defineProperties(rb3.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
var Nl=rb3;Nl.prototype.onYtServiceRequestCompleted=Nl.prototype.onYtServiceRequestCompleted;Nl.prototype.onYtServiceRequestSent=Nl.prototype.onYtServiceRequestSent;Nl.prototype.onYtCommentPollRevert=Nl.prototype.onYtCommentPollRevert;Nl.prototype.onPopupClosed=Nl.prototype.onPopupClosed;Nl.prototype.dataChanged=Nl.prototype.dataChanged;_.x([_.C(_.H_),_.e("design:type",Object)],Nl.prototype,"paperItemBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],Nl.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Nl.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Nl.prototype,"isLoading",void 0);_.x([_.L({computed:"computeIsChannelOwner(data.choices)"}),_.e("design:type",Boolean)],Nl.prototype,"isChannelOwner",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.e("design:type",Boolean)],Nl.prototype,"isImagePoll",void 0);_.x([_.L({computed:"computeIsTotalVotesDisabled(data)"}),_.e("design:type",Boolean)],Nl.prototype,"isTotalVotesDisabled",void 0);_.x([_.L(),_.e("design:type",Object)],Nl.prototype,"previousPollInfo",void 0);_.x([_.L(),_.e("design:type",Object)],Nl.prototype,"selectedItemIndex",void 0);_.x([_.jj("#poll-votes"),_.e("design:type",Object)],Nl.prototype,"pollVotes",void 0);
_.x([_.A("isChannelOwner"),_.e("design:type",Object),_.e("design:paramtypes",[])],Nl.prototype,"endpointStyle",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Nl.prototype,"dataChanged",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],Nl.prototype,"onPopupClosed",null);
_.x([_.B("yt-comment-poll-revert"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],Nl.prototype,"onYtCommentPollRevert",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],Nl.prototype,"onYtServiceRequestSent",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Nl.prototype,"onYtServiceRequestCompleted",null);Nl=_.x([_.d({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Nl);
_.T(Nl,"ytd-backstage-poll-renderer",function(){if(bY2!==void 0)return bY2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return bY2=y},{mode:2});var FkT;var UIJ={autoplay:!1,loop:!1},$IE={simpleText:""},Kk5=function(){var y=_.v.apply(this,arguments)||this;y.isLoading=!1;y.usesPanelLockup=!1;y.selectedItemIndex=-1;y.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},UIJ,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});y.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},UIJ,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});y.correctnessAnimationProps=[];y.correctnessAnimationRefs=[];return y};
_.R(Kk5,_.v);_.f=Kk5.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.f.computeIsChannelOwner=function(y){if(!y)return!0;y=y[0];return!(y&&(y.signinEndpoint||y.selectServiceEndpoint))};
_.f.computeIsTotalVotesDisabled=function(y){return!(y==null?0:y.totalVotes)};
_.f.computeIsImageQuiz=function(y){return(y==null?void 0:y.type)==="POLL_TYPE_IMAGE"};
_.f.onExplanationChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var y=this.data.choices;if(y){this.maybeInitializeQuizLotties(y);for(var W=0;W<y.length;W++)if(y[W].isSelected||this.isChannelOwner&&y[W].isCorrect){this.selectedItemIndex=W;return}this.selectedItemIndex=-1}}};
_.f.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var y=this.selectedItemIndex,W=Number(this.quizVotes.selected);this.selectChoice(W);this.sendVoteAction(W,y);this.quizVotes.selected=-1;var c;y=!((c=this.data)==null?0:c.enableAnimation);this.maybePlayAnswerAnimations(y)}};
_.f.onYtCommentPollRevert=function(y,W){W&&(this.selectChoice(W.selectedChoiceIndex),this.set("data.totalVotes",W.totalVotes))};
_.f.onYtServiceRequestSent=function(y,W){if(W.actions)for(y=_.z(W.actions),W=y.next();!W.done;W=y.next())(W=_.g(W.value,Xb))&&this.set("data.totalVotes",W.totalVotes)};
_.f.onYtServiceRequestCompleted=function(y){var W=this.get("detail.data.actionResults.0.feedback",y);y=this.get("detail.data.actionResults.0.status",y);if(W==="FEEDBACK_DESELECT"||W==="FEEDBACK_SELECT")this.isLoading=!1,y==="STATUS_FAILED"?_.Z2(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.f.getAnimationPropsForChoiceIndex=function(y,W){return W[y]};
_.f.maybePlayAnswerAnimations=function(y){y=y===void 0?!1:y;var W;if((W=this.data)!=null&&W.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){W=_.z(this.correctnessAnimationRefs);for(var c=W.next();!c.done;c=W.next()){var Z=void 0,G=void 0;(Z=c.value)==null||(G=Z.lottieEl)==null||G.stop()}if(!(this.selectedItemIndex<0)){W=0;y&&(W=this.isCorrect?37:25);var D,Y;(D=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Y=D.lottieEl)==null||Y.goToAndPlay(y?W:0,!0);if(!(this.isCorrect||
(D=this.data.choices.findIndex(function(r){return r.isCorrect}),D<0))){var u,t;
(t=(u=this.correctnessAnimationRefs[D])==null?void 0:u.lottieEl)==null||t.goToAndPlay(37,!0);var b;u=(b=this.fadeContainers)==null?void 0:b.item(D);!y&&u&&this.fadeIn(u)}}}};
_.f.thumbnailSrc=function(y){var W,c,Z,G;return(y==null?0:(W=y.thumbnails)==null?0:(c=W[0])==null?0:c.url)?_.Jn((Z=y.thumbnails)==null?void 0:(G=Z[0])==null?void 0:G.url):void 0};
_.f.a11yVotedText=function(y,W){var c,Z,G=((c=this.data)==null?void 0:(Z=c.correctVotedText)==null?void 0:Z.simpleText)||"",D,Y;c=((D=this.data)==null?void 0:(Y=D.votedText)==null?void 0:Y.simpleText)||"";if(!W)return"";var u,t;if((u=this.data)==null?0:(t=u.choices)==null?0:t[y].isCorrect)return G;var b,r;return((b=this.data)==null?0:(r=b.choices)==null?0:r[y].isSelected)?c:""};
_.f.getEndpoint=function(y,W){return W===y?this.data.choices[y].deselectServiceEndpoint||null:this.data.choices[y].selectServiceEndpoint||null};
_.f.sendVoteAction=function(y,W){if(y=this.getEndpoint(y,W))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(y)};
_.f.selectChoice=function(y){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var W=0;W<this.data.choices.length;W++)this.set("data.choices."+W+".isSelected",y===this.selectedItemIndex?!1:W===y);this.selectedItemIndex=this.selectedItemIndex===y?-1:y};
_.f.maybeInitializeQuizLotties=function(y){var W=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=y.map(function(c){return{animationConfig:c.isCorrect?W.baseCorrectLottiePlayerAnimationConfig:W.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){W.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(c){return c.animationRef||{}})};
_.f.fadeIn=function(y){y.classList.add("fade-in");_.vh(_.KX,function(){y.classList.remove("fade-in")},900)};
_.dJ.Object.defineProperties(Kk5.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.O("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.v$(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 y,W;return((y=this.data)==null?void 0:(W=y.choices)==null?void 0:W.some(function(c){return c.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null||!y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?$IE:this.data.choices[this.selectedItemIndex].explanation||$IE}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null||!y.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
var Iw=Kk5;Iw.prototype.onYtServiceRequestCompleted=Iw.prototype.onYtServiceRequestCompleted;Iw.prototype.onYtServiceRequestSent=Iw.prototype.onYtServiceRequestSent;Iw.prototype.onYtCommentPollRevert=Iw.prototype.onYtCommentPollRevert;Iw.prototype.dataChanged=Iw.prototype.dataChanged;Iw.prototype.onExplanationChanged=Iw.prototype.onExplanationChanged;_.x([_.C(_.H_),_.e("design:type",Object)],Iw.prototype,"paperItemBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Iw.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.CA.YtTaskEmitterBehavior),_.e("design:type",Object)],Iw.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],Iw.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Iw.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],Iw.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Object)],Iw.prototype,"usesPanelLockup",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.e("design:type",Boolean)],Iw.prototype,"isChannelOwner",void 0);_.x([_.L({computed:"computeIsTotalVotesDisabled(data)"}),_.e("design:type",Boolean)],Iw.prototype,"isTotalVotesDisabled",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.e("design:type",Boolean)],Iw.prototype,"isImageQuiz",void 0);_.x([_.L(),_.e("design:type",Object)],Iw.prototype,"previousQuizInfo",void 0);_.x([_.L(),_.e("design:type",Object)],Iw.prototype,"selectedItemIndex",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data","usesPanelLockup"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Iw.prototype,"shouldUseModernUi",null);
_.x([_.y0(".fade-container"),_.e("design:type",Object)],Iw.prototype,"fadeContainers",void 0);_.x([_.L(),_.e("design:type",Array)],Iw.prototype,"correctnessAnimationProps",void 0);_.x([_.A("explanation","showCorrectAnswer"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Iw.prototype,"showExplanation",null);_.x([_.A("isChannelOwner","isAttempted"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Iw.prototype,"showCorrectAnswer",null);
_.x([_.A("isChannelOwner","isAttempted","data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Iw.prototype,"isQuizAnsweringDisabled",null);_.x([_.A("isQuizAnsweringDisabled"),_.e("design:type",Object),_.e("design:paramtypes",[])],Iw.prototype,"endpointStyle",null);_.x([_.A("data","selectedItemIndex"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Iw.prototype,"isAttempted",null);
_.x([_.A("data","selectedItemIndex"),_.e("design:type",Object),_.e("design:paramtypes",[])],Iw.prototype,"explanation",null);_.x([_.A("data","selectedItemIndex"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Iw.prototype,"isCorrect",null);_.x([_.jj("ytd-expander"),_.e("design:type",Object)],Iw.prototype,"expander",void 0);_.x([_.jj("#quiz-votes"),_.e("design:type",Object)],Iw.prototype,"quizVotes",void 0);
_.x([_.H("explanation"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Iw.prototype,"onExplanationChanged",null);_.x([_.H("data","isChannelOwner"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Iw.prototype,"dataChanged",null);_.x([_.B("yt-comment-quiz-revert"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],Iw.prototype,"onYtCommentPollRevert",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],Iw.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Iw.prototype,"onYtServiceRequestCompleted",null);Iw=_.x([_.d({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Iw);
_.T(Iw,"ytd-backstage-quiz-renderer",function(){if(FkT!==void 0)return FkT;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return FkT=y},{mode:1});var OYT;var gB2=function(){return _.v.apply(this,arguments)||this};
_.R(gB2,_.v);var pn=gB2;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pn.prototype,"data",void 0);pn=_.x([_.d({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],pn);
_.T(pn,"ytd-post-uploaded-video-renderer",function(){if(OYT!==void 0)return OYT;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return OYT=y},{mode:1});var RxT;var l1W=function(){return _.v.apply(this,arguments)||this};
_.R(l1W,_.v);l1W.prototype.useFilledIcons=function(y){return y==="SPONSORSHIP_STAR"};
var Pb=l1W;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Pb.prototype,"data",void 0);Pb=_.x([_.d({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],Pb);
_.T(Pb,"ytd-sponsors-only-badge-renderer",function(){if(RxT!==void 0)return RxT;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return RxT=y},{mode:1});var EBV;var NwT=function(){return _.v.apply(this,arguments)||this};
_.R(NwT,_.v);var JL=NwT;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],JL.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JL.prototype,"data",void 0);JL=_.x([_.d({is:"ytd-child-video-renderer",disableElementRegistration:!0})],JL);
_.T(JL,"ytd-child-video-renderer",function(){if(EBV!==void 0)return EBV;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return EBV=y},{mode:1});var I15;var peV;var PdJ=function(){var y=_.v.apply(this,arguments)||this;y.size=0;y.enableWebModernCollectionsV2=_.O("web_modern_collections_v2");y.fallbackImageSize={height:void 0,width:9999};y.webModernCollections=!1;return y};
_.R(PdJ,_.v);_.f=PdJ.prototype;_.f.computeBlurredImageSize=function(y){return y?{height:y*2,width:y*2}:this.fallbackImageSize};
_.f.computeImageSize=function(y){return y?{height:y,width:y}:this.fallbackImageSize};
_.f.computeObjectFit=function(y){return y?"FILL":"CONTAIN"};
_.f.computePreserve=function(y){return y?!0:!1};
_.f.setBackground=function(){var y,W;_.O("web_modern_collections_v2")&&((y=this.data)==null?0:(W=y.thumbnail)==null?0:W.sampledThumbnailColor)&&(y=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+y.red+","+y.green+","+y.blue+",1)")};
var VV=PdJ;VV.prototype.setBackground=VV.prototype.setBackground;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],VV.prototype,"watchFeedThumbnail",void 0);_.x([_.L(),_.e("design:type",Object)],VV.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],VV.prototype,"size",void 0);
_.x([_.L({computed:"computeBlurredImageSize(size)"}),_.e("design:type",Object)],VV.prototype,"blurredImageSize",void 0);_.x([_.L({computed:"computeImageSize(size)"}),_.e("design:type",Object)],VV.prototype,"imageSize",void 0);_.x([_.L({computed:"computePreserve(size)"}),_.e("design:type",String)],VV.prototype,"preserve",void 0);_.x([_.L({computed:"computeObjectFit(size)"}),_.e("design:type",String)],VV.prototype,"objectFit",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],VV.prototype,"enableWebModernCollectionsV2",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],VV.prototype,"webModernCollections",void 0);_.x([_.H("data.thumbnail.sampledThumbnailColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VV.prototype,"setBackground",null);VV=_.x([_.d({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],VV);
_.T(VV,"ytd-playlist-custom-thumbnail-renderer",function(){if(peV!==void 0)return peV;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return peV=y},{mode:1});var JbE;var VK2=function(){return _.v.apply(this,arguments)||this};
_.R(VK2,_.v);var Cn=VK2;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Cn.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],Cn.prototype,"width",void 0);Cn=_.x([_.d({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Cn);
_.T(Cn,"ytd-playlist-video-thumbnail-renderer",function(){if(JbE!==void 0)return JbE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return JbE=y},{mode:1});var CdT;var Qg3=function(){return _.v.apply(this,arguments)||this};
_.R(Qg3,_.v);var QV=Qg3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],QV.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],QV.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],QV.prototype,"width",void 0);QV=_.x([_.d({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],QV);
_.T(QV,"ytd-show-custom-thumbnail-renderer",function(){if(CdT!==void 0)return CdT;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return CdT=y},{mode:1});var AbQ;var AL=function(){return _.v.apply(this,arguments)||this};
_.R(AL,_.v);AL.prototype.useFilledIcons=function(y){return y==="MUSIC"||y==="COURSE"};
AL.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Ot(this.overlayColor,"0.8");else if(this.overlayColor){var y=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+y.red+","+y.green+","+y.blue+",0.8)"}};
_.dJ.Object.defineProperties(AL.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)}}});
var hL=AL;hL.prototype.overlayColorChanged=hL.prototype.overlayColorChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hL.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],hL.prototype,"overlayColor",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.icon","data.text"),_.e("design:type",Object),_.e("design:paramtypes",[])],hL.prototype,"overlayStyle",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data.icon","data.text"),_.e("design:type",Object),_.e("design:paramtypes",[])],hL.prototype,"overlayTextStyle",null);_.x([_.H("overlayColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hL.prototype,"overlayColorChanged",null);hL=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],hL);
_.T(hL,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(AbQ!==void 0)return AbQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return AbQ=y},{mode:1});var hxZ;var BwV=function(){var y=_.v.apply(this,arguments)||this;y.active=!1;return y};
_.R(BwV,_.v);BwV.prototype.computeIsSpinnerHidden=function(y){return(y==null?void 0:y.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
BwV.prototype.computeOverlayIcon=function(y){return(y==null?void 0:y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(y==null?void 0:y.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
var Bb=BwV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Bb.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Bb.prototype,"active",void 0);Bb=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Bb);
_.T(Bb,"ytd-thumbnail-overlay-downloading-renderer",function(){if(hxZ!==void 0)return hxZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return hxZ=y},{mode:1});var HYE;var LkV=function(){return _.v.apply(this,arguments)||this};
_.R(LkV,_.v);_.dJ.Object.defineProperties(LkV.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
var Hb=LkV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Hb.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Hb.prototype,"data",void 0);_.x([_.A("data.text"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hb.prototype,"text",null);Hb=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Hb);
_.T(Hb,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(HYE!==void 0)return HYE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return HYE=y},{mode:1});var vBW,dIE=function(){if(vBW!==void 0)return vBW;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return vBW=y};var ST2=function(){return _.v.apply(this,arguments)||this};
_.R(ST2,_.v);_.dJ.Object.defineProperties(ST2,{template:{configurable:!0,enumerable:!0,get:function(){return dIE()}}});
var Tw3=ST2;_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Tw3.prototype,"animateEqualizer",void 0);Tw3=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],Tw3);_.a5()(Tw3,"ytd-thumbnail-overlay-equalizer",function(){return dIE()},{allowedProps:["animateEqualizer"],
mode:1});var a1V;var xIJ=function(){var y=_.v.apply(this,arguments)||this;y.nowPlayingBadge=_.O("web_now_playing_badge");y.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return y};
_.R(xIJ,_.v);xIJ.prototype.activeChanged=function(){var y=this;_.O("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Lv(this,function(){_.Z2(y.hostElement,"yt-playlist-lockup-now-playing-active",y)})};
xIJ.prototype.onMiniplayerPlayStateChanged=function(y){var W,c=(W=_.g(_.GR().currentEndpoint,_.Sb))==null?void 0:W.videoId;this.isVideoPlaying=y&&(_.O("web_limit_now_playing_animation_killswitch")||this.videoId===c)};
var Ln=xIJ;Ln.prototype.activeChanged=Ln.prototype.activeChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ln.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ln.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],Ln.prototype,"isVideoPlaying",void 0);_.x([_.L(),_.e("design:type",String)],Ln.prototype,"videoId",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Ln.prototype,"equalizerOnly",void 0);_.x([_.L(),_.e("design:type",Boolean)],Ln.prototype,"isActive",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ln.prototype,"nowPlayingBadge",void 0);_.x([_.H("isActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ln.prototype,"activeChanged",null);
Ln=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Ln);
_.T(Ln,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(a1V!==void 0)return a1V;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return a1V=y},{mode:1});var iYJ;var MKT=function(){return _.v.apply(this,arguments)||this};
_.R(MKT,_.v);var vb=MKT;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vb.prototype,"data",void 0);vb=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],vb);
_.T(vb,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(iYJ!==void 0)return iYJ;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return iYJ=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var exE;var weV=function(){return _.v.apply(this,arguments)||this};
_.R(weV,_.v);weV.prototype.onDurationChanged=function(){var y,W;_.p(this.hostElement).querySelector("#progress").style.width=((W=(y=this.data)==null?void 0:y.percentDurationWatched)!=null?W:0)+"%"};
var dN=weV;dN.prototype.onDurationChanged=dN.prototype.onDurationChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],dN.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],dN.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],dN.prototype,"isLive",void 0);_.x([_.H("data.percentDurationWatched"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dN.prototype,"onDurationChanged",null);
dN=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],dN);
_.T(dN,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(exE!==void 0)return exE;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return exE=y},{mode:1});var qTQ;var k4W=function(){var y=_.v.apply(this,arguments)||this;y.bottomPanel=!1;y.richGridOverlay=!1;y.watchFeedOverlay=!1;y.isCompact=!1;return y};
_.R(k4W,_.v);k4W.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.dJ.Object.defineProperties(k4W.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType)==="PLAY_ALL"&&_.O("kevlar_system_icons")}}});
var Sa=k4W;Sa.prototype.widthChanged=Sa.prototype.widthChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Sa.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],Sa.prototype,"width",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Sa.prototype,"bottomPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Sa.prototype,"richGridOverlay",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Sa.prototype,"watchFeedOverlay",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Sa.prototype,"isCompact",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Sa.prototype,"isIconFilled",null);_.x([_.H("width","watchFeedOverlay"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sa.prototype,"widthChanged",null);
Sa=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Sa);
_.T(Sa,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(qTQ!==void 0)return qTQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return qTQ=y},{mode:1});var jbW;var yFJ=["CLIP","SHORTS"],WjJ=function(){var y=_.v.apply(this,arguments)||this;y.animated=_.O("animated_live_badge_icon");y.hasIcon=!1;y.updateTimerIntervalId=0;y.timeSinceLive=0;return y};
_.R(WjJ,_.v);_.f=WjJ.prototype;_.f.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.f.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.f.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.f.hasIconOrText=function(){var y,W;return!!(((y=this.data)==null?0:y.icon)||((W=this.data)==null?0:W.text))};
_.f.initializeLiveBadgeTimer=function(){var y=this,W,c=(W=this.liveBadgeData)==null?void 0:W.startTimestampSec;if(c&&this.canShowLiveBadgeTimer()){var Z;W=Number((Z=this.liveBadgeData)==null?void 0:Z.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(c);this.updateTimerIntervalId=_.y2(function(){y.canShowLiveBadgeTimer()?y.timeSinceLive++:(y.timeSinceLive=0,window.clearInterval(y.updateTimerIntervalId))},W)}else this.timeSinceLive=0};
_.f.canShowLiveBadgeTimer=function(){var y=Date.now(),W,c;return y<(Number((W=this.liveBadgeData)==null?void 0:W.endTimestampSec)-1)*1E3&&y>Number((c=this.liveBadgeData)==null?void 0:c.startTimestampSec)*1E3};
_.dJ.Object.defineProperties(WjJ.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=this.data;var W=this.timeSinceLive;var c,Z,G,D;a:{var Y=y.style;if(Y===void 0)Y=16;else switch(Y){case "LIVE":Y=17;break a;default:Y=16}}W={type:Y,text:W?jxE({seconds:W}):_.v$(y.text),accessibilityText:(c=y.text)==null?void 0:(Z=c.accessibility)==null?void 0:(G=Z.accessibilityData)==null?void 0:G.label,icon:(D=y.icon)==null?void 0:D.iconType}}else W={};return W}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.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 yFJ.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
var Tg=WjJ;Tg.prototype.initializeLiveBadgeTimer=Tg.prototype.initializeLiveBadgeTimer;Tg.prototype.dataChanged=Tg.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Tg.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Tg.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",String)],Tg.prototype,"icon",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Tg.prototype,"animated",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.e("design:type",Boolean)],Tg.prototype,"hideTimeStatus",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Tg.prototype,"hasIcon",void 0);_.x([_.L(),_.e("design:type",Object)],Tg.prototype,"timeSinceLive",void 0);_.x([_.A("data","timeSinceLive"),_.e("design:type",Object),_.e("design:paramtypes",[])],Tg.prototype,"badgeShapeData",null);
_.x([_.A("data","overlayType"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Tg.prototype,"hideBadgeShape",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Tg.prototype,"dataChanged",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.style"),_.e("design:type",Object),_.e("design:paramtypes",[])],Tg.prototype,"overlayStyle",null);
_.x([_.A("data.liveBadgeData"),_.e("design:type",Object),_.e("design:paramtypes",[])],Tg.prototype,"liveBadgeData",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.type"),_.e("design:type",Object),_.e("design:paramtypes",[])],Tg.prototype,"overlayType",null);_.x([_.A("overlayType","overlayStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Tg.prototype,"useFilledIcon",null);
_.x([_.Gs("liveBadgeData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Tg.prototype,"initializeLiveBadgeTimer",null);Tg=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Tg);
_.T(Tg,"ytd-thumbnail-overlay-time-status-renderer",function(){if(jbW!==void 0)return jbW;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return jbW=y},{mode:_.xm("kevlar_poly_si_batch_j035")?1:2});var cFJ;var aw=function(){return _.v.apply(this,arguments)||this};
_.R(aw,_.v);aw.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"}}}}};
aw.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(y){if(this.hasPlaybackProgressBar)return{percentDurationWatched:y.percentDurationWatched}};
aw.prototype.computeHasPlaybackProgressBar=function(y){return!!y.percentDurationWatched&&y.percentDurationWatched>0};
var xZ=aw;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xZ.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.e("design:type",Boolean)],xZ.prototype,"hasPlaybackProgressBar",void 0);
xZ=_.x([_.d({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],xZ);
_.T(xZ,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(cFJ!==void 0)return cFJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return cFJ=y},{mode:1});var ZE0;_.eu(zxE);var Gl8=_.Ax(function(y){var W=y.data;var c=y.children;var Z=function(){return!!W().doubleStack};
return _.X("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!W().experimentEnabled}},_.X(_.YN,{cond:W,
then:function(){return _.X("div",null,_.X(_.YN,{cond:Z,then:function(){var G={};return _.X("div",{class:_.Mi("collections-stack-wiz__collection-stack2",function(){return W().customClassName2ndStack},(G["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return W().enableResponsiveMode},G)),
style:_.cF({"background-color":function(){return oBg(W())}})})}}),_.X("div",{class:_.Mi("collections-stack-wiz__collection-stack1",function(){return W().customClassName1stStack},function(){return DIH(W().thumbnailSize?W().thumbnailSize:"medium")}),
style:_.cF({"background-color":function(){return oBg(W())}})}),c)}}))},"J");_.A3(Gl8,"yt-collections-stack",{props:{data:_.Ix}});var fI8=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};y.webModernCollections=!1;y.isSearch=!1;y.isDoubleStack=!1;y.thumbnailSize="medium";y.enableWebModernCollectionsV2=_.O("web_modern_collections_v2");return y};
_.R(fI8,_.v);_.f=fI8.prototype;
_.f.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]]"}}}}}};
_.f.getThumbnailDetails=function(y){if(y!=null&&y.thumbnailRenderer){var W=y.thumbnailRenderer,c;if((c=W.playlistVideoThumbnailRenderer)==null?0:c.thumbnail)return W.playlistVideoThumbnailRenderer.thumbnail;var Z;if((Z=W.playlistCustomThumbnailRenderer)==null?0:Z.thumbnail)return W.playlistCustomThumbnailRenderer.thumbnail;y=y.thumbnailRenderer;var G;if((G=y.showCustomThumbnailRenderer)==null?0:G.thumbnail)return y.showCustomThumbnailRenderer.thumbnail}};
_.f.computeOverlayColor=function(y){var W,c;if((W=this.getThumbnailDetails(y))==null?0:(c=W.darkColorPalette)==null?0:c.section2Color)return this.getThumbnailDetails(y).darkColorPalette.section2Color;var Z;return(Z=this.getThumbnailDetails(y))==null?void 0:Z.sampledThumbnailColor};
_.f.computeWebModernCollections=function(y){if(y==null||!y.thumbnailOverlays)return!1;y=_.z(y.thumbnailOverlays);for(var W=y.next();!W.done;W=y.next()){var c=void 0;if((c=W.value)==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.f.computeNavigationEndpoint=function(y){return COw(y==null?void 0:y.navigationEndpoint)};
_.dJ.Object.defineProperties(fI8.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var y=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:y==null?void 0:y.sampledThumbnailColor,vibrantColorPalette:y==null?void 0:y.vibrantColorPalette,darkColorPalette:y==null?void 0:y.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
var ic=fI8;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],ic.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(QaE),_.e("design:type",Object)],ic.prototype,"ytdThumbnailBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ic.prototype,"componentBehavior",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],ic.prototype,"watchFeedThumbnail",void 0);_.x([_.L(),_.e("design:type",Number)],ic.prototype,"customThumbnailSize",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],ic.prototype,"hideAria",void 0);_.x([_.L(),_.e("design:type",Object)],ic.prototype,"data",void 0);_.x([_.L({computed:"computeOverlayColor(data)"}),_.e("design:type",Object)],ic.prototype,"overlayColor",void 0);
_.x([_.L({computed:"computeWebModernCollections(data)"}),_.e("design:type",Object)],ic.prototype,"webModernCollections",void 0);_.x([_.L({computed:"computeNavigationEndpoint(data)"}),_.e("design:type",Object)],ic.prototype,"computedNavigationEndpoint",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ic.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ic.prototype,"isDoubleStack",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],ic.prototype,"thumbnailSize",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],ic.prototype,"enableWebModernCollectionsV2",void 0);_.x([_.A("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.e("design:type",Object),_.e("design:paramtypes",[])],ic.prototype,"collectionStack",null);ic=_.x([_.d({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],ic);
_.T(ic,"ytd-playlist-thumbnail",function(){if(ZE0!==void 0)return ZE0;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ZE0=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var o9T;var Dz0=function(){var y=_.v.apply(this,arguments)||this;y.noEndpoints=!1;y.amsterdamPostMvp=_.O("web_amsterdam_post_mvp_playlists");y.badges=[];y.transferState="TRANSFER_STATE_UNKNOWN";return y};
_.R(Dz0,_.v);_.f=Dz0.prototype;_.f.getMetadata=function(y){if(!y)return[];var W=[],c=y.shortViewCountText||y.viewCountText;c&&W.push(_.v$(c));y.publishedTimeText&&W.push(_.v$(y.publishedTimeText));y.upcomingEventData&&y.upcomingEventData.upcomingEventText&&W.push(_.gi(_.v$(y.upcomingEventData.upcomingEventText),Number(y.upcomingEventData.startTime)));return W};
_.f.observeDataForBylineSeparator=function(){this.data&&_.i0(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.f.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.$$(this.metadataColor)};
_.f.getSimpleString=function(y){return _.v$(y)};
_.f.isBylineHidden=function(y){return this.noByline||!((y==null?0:y.longBylineText)||(y==null?0:y.shortBylineText))};
_.f.isMetadataHidden=function(y){var W;return((W=this.getMetadata(y))==null?void 0:W.length)===0};
_.f.isBylineMetadataSeparatorHidden=function(y){return this.isMetadataHidden(y)||!this.shouldShowVideoInfo};
_.f.isLongByline=function(y,W){return W&&!(y==null||!y.longBylineText)};
_.dJ.Object.defineProperties(Dz0.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var y;return this.amsterdamPostMvp&&!((y=this.data)==null||!y.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 _.O("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
var Ml=Dz0;Ml.prototype.metadataColorChanged=Ml.prototype.metadataColorChanged;Ml.prototype.observeDataForBylineSeparator=Ml.prototype.observeDataForBylineSeparator;_.x([_.C(_.$s),_.e("design:type",Object)],Ml.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ml.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Ml.prototype,"noEndpoints",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ml.prototype,"isSlimShort",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ml.prototype,"radioMeta",void 0);_.x([_.L({selector:_.R3}),_.e("design:type",Object)],Ml.prototype,"isGridViewEnabled",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ml.prototype,"richMeta",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ml.prototype,"amsterdamPostMvp",void 0);_.x([_.L(),_.e("design:type",Boolean)],Ml.prototype,"noByline",void 0);
_.x([_.L({computed:"isLongByline(data, radioMeta)"}),_.e("design:type",Boolean)],Ml.prototype,"longByline",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ml.prototype,"truncateMetadataLine",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ml.prototype,"miniMode",void 0);_.x([_.L(),_.e("design:type",Number)],Ml.prototype,"metadataColor",void 0);_.x([_.L(),_.e("design:type",Array)],Ml.prototype,"badges",void 0);
_.x([_.L({selector:_.Iv,selectorArgs:["data.videoId"]}),_.e("design:type",String)],Ml.prototype,"transferState",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ml.prototype,"isDownloading",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ml.prototype,"typographyBump",void 0);_.x([_.jj("#metadata-line"),_.e("design:type",HTMLElement)],Ml.prototype,"metadataLine",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ml.prototype,"observeDataForBylineSeparator",null);_.x([_.H("metadataColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ml.prototype,"metadataColorChanged",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ml.prototype,"shouldShowVideoInfo",null);
_.x([_.A("badges"),_.e("design:type",String),_.e("design:paramtypes",[])],Ml.prototype,"inlineBadgeClass",null);_.x([_.A("longByline"),_.e("design:type",String),_.e("design:paramtypes",[])],Ml.prototype,"longBylineClass",null);_.x([_.A("data","longByline"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ml.prototype,"bylineText",null);_.x([_.A("isGridViewEnabled","data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ml.prototype,"watchFeedBigThumbs",null);
Ml=_.x([_.d({is:"ytd-video-meta-block",disableElementRegistration:!0})],Ml);
_.T(Ml,"ytd-video-meta-block",function(){if(o9T!==void 0)return o9T;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return o9T=y},{mode:_.xm("kevlar_poly_si_batch_j080")?1:2});_.bv("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var zH5=function(){var y=_.v.apply(this,arguments)||this;y.displayItemCount=2;y.isBackstagePlaylist=!1;y.isPostCompactPlaylist=!1;y.shouldShowChannelThumbnail=!1;y.useModernCollectionsV2=_.O("web_modern_collections_v2");return y};
_.R(zH5,_.v);_.f=zH5.prototype;_.f.computeFirstVideos=function(y,W){return y===void 0||W===void 0?[]:y.slice(0,W)};
_.f.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var y=this.data.thumbnailRenderer;y.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",y.playlistVideoThumbnailRenderer.thumbnail);y.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",y.playlistCustomThumbnailRenderer.thumbnail)}};
_.f.computeThumbnailHeight=function(y,W,c,Z,G){return Z?G==="BIG"?280:G==="MASSIVE"?337:234:c?240:W?72:y?118:138};
_.f.computeThumbnailWidth=function(y,W,c,Z,G){return Z?G==="MEDIUM"?450:G==="BIG"?500:G==="MASSIVE"?600:420:c?360:W?128:y?210:246};
_.f.computeUseBiggerThumbs=function(y){return y&&_.O("enable_desktop_search_bigger_thumbs")};
_.f.computeShouldShowChannelThumbnail=function(y,W){return y&&!(W==null||!W.channelThumbnail)};
_.dJ.Object.defineProperties(zH5.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
var ea=zH5;ea.prototype.dataChanged=ea.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],ea.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],ea.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ea.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],ea.prototype,"displayItemCount",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ea.prototype,"isBackstagePlaylist",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ea.prototype,"isPostCompactPlaylist",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],ea.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.e("design:type",Boolean)],ea.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],ea.prototype,"biggerThumbsStyle",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],ea.prototype,"isDownloads",void 0);_.x([_.L({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.e("design:type",Object)],ea.prototype,"shouldShowChannelThumbnail",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ea.prototype,"useModernCollectionsV2",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ea.prototype,"dataChanged",null);_.x([_.A("isSearch"),_.e("design:type",String),_.e("design:paramtypes",[])],ea.prototype,"stackThumbnailSize",null);ea=_.x([_.d({is:"ytd-playlist-renderer",disableElementRegistration:!0})],ea);
_.T(ea,"ytd-playlist-renderer",function(){if(I15===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);I15=y}y=I15;return y},{mode:1});var YY2;var mzi;var wN=function(){var y=_.v.apply(this,arguments)||this;y.collections=!!_.O("web_modern_collections_v2");y.startX=0;return y};
_.R(wN,_.v);wN.prototype.onEndpointMouseDown=function(y){this.startX=y.clientX};
wN.prototype.onEndpointClick=function(y){this.startX!==y.clientX&&(y.preventDefault(),y.stopPropagation())};
wN.prototype.computeObjectFit=function(y){return y==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||y==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||y==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
wN.prototype.computeCardStyle=function(y){return y?y.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.dJ.Object.defineProperties(wN.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.collections&&((y=this.data)==null?void 0:(W=y.searchRefinementCardRendererStyle)==null?void 0:W.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
var ql=wN;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ql.prototype,"data",void 0);_.x([_.L({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.e("design:type",Number)],ql.prototype,"objectFit",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.e("design:type",String)],ql.prototype,"cardStyle",void 0);
_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],ql.prototype,"roundContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],ql.prototype,"collections",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],ql.prototype,"isAlbumCard",null);_.x([_.A("data","collections","isAlbumCard"),_.e("design:type",Object),_.e("design:paramtypes",[])],ql.prototype,"collectionStack",null);
ql=_.x([_.d({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],ql);
_.T(ql,"ytd-search-refinement-card-renderer",function(){if(mzi!==void 0)return mzi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mzi=y},{mode:1});var sb2;var ugE=function(){var y=_.v.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.R(ugE,_.v);var kZ=ugE;_.x([_.L(),_.e("design:type",Object)],kZ.prototype,"data",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],kZ.prototype,"componentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],kZ.prototype,"ytdReduxBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kZ.prototype,"isRichGrid",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],kZ.prototype,"miniMode",void 0);
kZ=_.x([_.d({is:"ytd-game-details-renderer",disableElementRegistration:!0})],kZ);
_.T(kZ,"ytd-game-details-renderer",function(){if(sb2!==void 0)return sb2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sb2=y},{mode:1});var tUm;var n9Z;var XrV=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return y};
_.R(XrV,_.v);_.f=XrV.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.currentStateData=function(y){var W=y||this.data;return W&&W.states&&W.currentStateId!=null?W.states.find(function(c){return c.stateId===W.currentStateId})||null:null};
_.f.currentStateRendererData=function(y){return(y=this.currentStateData(y))&&y.state&&y.state.buttonRenderer?y.state.buttonRenderer:null};
_.f.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())};
_.f.computeButtonIcon=function(y){y=this.currentStateRendererData(y);var W;return(y==null?0:(W=y.icon)==null?0:W.iconType)?y.icon.iconType.toLowerCase():null};
_.f.computeAccessibility=function(y){return(y=this.currentStateRendererData(y))&&y.accessibilityData?y.accessibilityData.accessibilityData||null:null};
_.f.computeButtonClass=function(y){var W=this.currentStateRendererData(y);if(!W)return"";y="";var c=W.style;c&&(y+=c.toLowerCase().replace(/_/g,"-")+" ");(W=W.size)&&(y+=W.toLowerCase().replace(/_/g,"-")+" ");return y.trim()};
_.f.computeServiceEndpoint=function(y){if(!y)return null;var W=y&&y.serviceEndpoint,c=this.get("command.commandMetadata.webCommandMetadata.sendPost",y);return W?W:c&&y.command?y.command:null};
_.f.computeBellMenuItemParams=function(y){var W;y=(W=_.g(y==null?void 0:y.command,_.uN))==null?void 0:W.commands;if(!y||y.length===0)return null;W=_.g(y[0],_.bX);var c,Z;return(W==null?0:(c=W.popup)==null?0:(Z=c.menuPopupRenderer)==null?0:Z.items)?W.popup.menuPopupRenderer.items.map(function(G){return G.menuServiceItemRenderer.trackingParams}):null};
_.f.handleBellMenuOpenSelectedAction=function(y){var W=y.trackingParams,c=this.computeBellMenuItemParams(this.data);this.data&&W&&c&&c.includes(W)&&this.ytRenderButtonBehavior._setButtonIcon(y.icon.iconType.toLowerCase())};
_.f.onYtServiceRequestCompleted=function(y,W){(y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))&&this.set("data",y)};
_.f.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.f.resetState=function(){this.set("data.currentStateId",3)};
_.f.onYtButtonTapHandler=function(){if(this.data){var y=this.currentStateRendererData(this.data);y&&this.ytRendererBehavior.logExplicitClick(y)}};
var jA=XrV;jA.prototype.onYtServiceRequestError=jA.prototype.onYtServiceRequestError;jA.prototype.onYtServiceRequestCompleted=jA.prototype.onYtServiceRequestCompleted;jA.prototype.stateChanged=jA.prototype.stateChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],jA.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(yF.YtRenderButtonBehavior),_.e("design:type",Object)],jA.prototype,"ytRenderButtonBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jA.prototype,"data",void 0);_.x([_.Gs("data","data.currentStateId"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jA.prototype,"stateChanged",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],jA.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],jA.prototype,"onYtServiceRequestError",null);jA=_.x([_.d({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],jA);
_.T(jA,"ytd-subscription-notification-toggle-button-renderer",function(){if(n9Z!==void 0)return n9Z;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return n9Z=y},{mode:1});var bE0;var rF8=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};y.tapHandler=function(){if(y.data){var W=y.currentStateRendererData();W&&y.ytRendererBehavior.logExplicitClick(W)}};
return y};
_.R(rF8,_.v);_.f=rF8.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.currentStateData=function(){var y=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(W){return W.stateId===y.data.currentStateId})||null:null};
_.f.currentStateRendererData=function(){var y=this.currentStateData();return y&&y.state&&y.state.buttonRenderer?y.state.buttonRenderer:null};
_.f.computeAccessibilityLabel=function(){var y,W,c;return(y=this.currentStateRendererData())==null?void 0:(W=y.accessibilityData)==null?void 0:(c=W.accessibilityData)==null?void 0:c.label};
_.f.computeBellMenuItemParams=function(){var y,W,c=(W=_.g((y=this.data)==null?void 0:y.command,_.uN))==null?void 0:W.commands;if(!c||c.length===0)return null;y=_.g(c[0],_.bX);var Z,G;return(y==null?0:(Z=y.popup)==null?0:(G=Z.menuPopupRenderer)==null?0:G.items)?y.popup.menuPopupRenderer.items.map(function(D){return D.menuServiceItemRenderer.trackingParams}):null};
_.f.handleBellMenuOpenSelectedAction=function(y){var W=y.trackingParams,c=this.computeBellMenuItemParams();if(this.data&&W&&c&&c.includes(W)&&(y==null||!y.isDisabled)){var Z;((Z=_.g(y.serviceEndpoint,_.nl))==null?void 0:Z.signal)!=="CLIENT_SIGNAL"&&(this.icon=y.icon.iconType)}};
_.f.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.f.onYtServiceRequestCompleted=function(y,W){if(y=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",W))this.icon=void 0,this.set("data",y)};
_.f.onYtServiceRequestError=function(){this.icon=void 0};
_.dJ.Object.defineProperties(rF8.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=this.data,W=this.textLabel,c=this.hostElement,Z=this.computeAccessibilityLabel(),G=this.tapHandler,D=this.isOverlay?"overlay":"mono",Y=(y==null?0:y.disableButton)?"disabled":"active";W=W?_.Xx(W):void 0;return{style:D,type:"tonal",state:Y,size:"M",focused:!1,formattedButtonText:W,iconPosition:"leading-trailing",onTap:sgD(y,G,c),accessibilityLabel:Z}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var y=this.currentStateRendererData(),W,c,Z=(c=this.icon)!=null?c:y==null?void 0:(W=y.icon)==null?void 0:W.iconType;if(Z)return _.wp(Z)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.data)==null?void 0:(W=y.secondaryIcon)==null?void 0:W.iconType;if(c)return _.wp(c)}}});
var yK=rF8;yK.prototype.onYtServiceRequestError=yK.prototype.onYtServiceRequestError;yK.prototype.onYtServiceRequestCompleted=yK.prototype.onYtServiceRequestCompleted;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],yK.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yK.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],yK.prototype,"textLabel",void 0);_.x([_.L(),_.e("design:type",String)],yK.prototype,"icon",void 0);_.x([_.L(),_.e("design:type",Boolean)],yK.prototype,"isOverlay",void 0);_.x([_.A("data.*","textLabel"),_.e("design:type",Object),_.e("design:paramtypes",[])],yK.prototype,"computedButtonShape",null);_.x([_.A("data.*","icon"),_.e("design:type",Object),_.e("design:paramtypes",[])],yK.prototype,"computedIcon",null);
_.x([_.A("data.*"),_.e("design:type",Object),_.e("design:paramtypes",[])],yK.prototype,"computedSecondaryIcon",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],yK.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],yK.prototype,"onYtServiceRequestError",null);
yK=_.x([_.d({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],yK);_.T(yK,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(bE0!==void 0)return bE0;var y=document.createElement("template");_.E(y,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return bE0=y},{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var FjT;_.O("web_enable_sink_animated_actions")?_.A3(LiV,"yt-animated-action",{props:{backgroundLottieRef:_.Ix,foregroundLottieRef:_.Ix,wrapperClass:_.Ix,disableAnimation:_.Ix},unsafeExternallySettableAttributes:new Set(["key"])}):_.TP(a5g,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var UzE=function(){var y=_.v.apply(this,arguments)||this;y.animatedActionEnabled=_.O("web_animated_actions");y.foregroundLottieRef={};y.backgroundLottieRef={};y.forceIconOnly=!1;y.showTextWhileAnimating=!1;y.keyboardFocused=!1;y.isAnimating=!1;y.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return y};
_.R(UzE,_.v);_.f=UzE.prototype;_.f.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.f.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]]"}}}}}};
_.f.attached=function(){this.keyboardFocused=!1};
_.f.onYtServiceRequestSent=function(y,W){(this.get("endpoint.subscribeEndpoint",W)||this.get("endpoint.unsubscribeEndpoint",W))&&this.updateSubscriptionState(!this.subscribed)};
_.f.onYtServiceRequestCompleted=function(y,W){(y=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",W.data))&&this.bellButton&&(this.bellButton.data=y)};
_.f.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.wM(this.hostElement)};
_.f.onPlayerSubscribe=function(y){this.isCompactRed()||y!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.f.onPlayerUnsubscribe=function(y){this.isCompactRed()||y!==this.data.channelId||this.updateSubscriptionState(!1)};
_.f.handleUpdateSubscribeButtonAction=function(y){y=_.g(y,Sih);var W;y&&y.channelId===((W=this.data)==null?void 0:W.channelId)&&this.updateSubscriptionState(!!y.subscribed)};
_.f.computeButtonStyle=function(y){return this.get("style.styleType",y)||null};
_.f.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.f.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.f.updateSubscriptionState=function(y){if(y!==this.subscribed){this.set("data.subscribed",y);var W,c=(W=this.data)==null?void 0:W.subscribedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.o3("subscriptionStateEntity",c,{key:c,subscribed:y}));this.isCompactRed()||_.Z2(this.hostElement,"yt-subscription-changed",y);y||(_.GG(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!y),y&&this.hasBellButton&&this.startAnimation())}};
_.f.startAnimation=function(){var y=this;if(!this.isAnimating){var W=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var c;(c=this.backgroundLottieRef.lottieEl)==null||c.goToAndPlay(0);var Z;(Z=this.foregroundLottieRef.lottieEl)==null||Z.goToAndPlay(0);_.KX.addJob(function(){y.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.KX.addJob(function(){y.updateContainerToFitContent(!!y.subscribed,!0)},2,1500);
_.KX.addJob(function(){y.isAnimating=!1},2,W)}};
_.f.maybeAnimateBellIcon=function(){var y=_.x$(this.hostElement).querySelector("yt-animated-icon");if(y){var W;(W=y.animationRef.lottieEl)==null||W.goToAndPlay(0)}};
_.f.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.f.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.f.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var y;this.unsubscribedWidth=(y=this.subscribeButtonShape)==null?void 0:y.getBoundingClientRect().width}var W;this.subscribedWidth=(W=this.bellButton)==null?void 0:W.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.f.updateContainerToFitContent=function(y,W){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(y?(y=this.subscribedWidth,W=this.isAnimating&&!W,this.subscribedIconOnlyWidth===void 0||W||(y=this.subscribedIconOnlyWidth),this.hostElement.style.width=y+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.f.clearContainerSize=function(){this.hostElement.style.width=""};
_.f.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.f.maybeSetSubscribedButtonIconOnlyWidth=function(){var y=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var W;y.subscribedIconOnlyWidth=(W=y.bellButton)==null?void 0:W.getBoundingClientRect().width;requestAnimationFrame(function(){if(y.bellButton){var c;y.bellButton.textLabel=
(c=y.data)==null?void 0:c.subscribedButtonText}})})))};
_.dJ.Object.defineProperties(UzE.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 y;return(y=this.data)==null?void 0:y.subscribedButtonText}var W;return this.forceIconOnly?void 0:(W=this.data)==null?void 0:W.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var y,W,c=((y=this.data)==null?void 0:(W=y.timedAnimationData)==null?void 0:W.animationTiming)||[];return{uniqueId:"subscribe",timings:c,enabled:c.length>0&&!this.subscribed,experimentEnabled:c.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var y;return!this.subscribed&&((y=this.data)==null?void 0:y.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 y={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var W=y.renderer;var c=y.element;var Z=y.subscribed;var G=y.commandController;var D=y.isOverlay;y=y.config;var Y=Xew(W,Z);D&&(Y.style="overlay");D=Object;var u=D.assign,t;a:switch((t=W.style)==null?void 0:t.styleType){case "COMPACT_GRAY":case "COMPACT_RED":t={size:"S"};break a;default:t={size:"M"}}var b=nBI(W,Z);var r=
(r=Z?W.subscribedButtonText:W.unsubscribedButtonText)?_.Xx(r):void 0;return u.call(D,{},Y,t,{focused:!1,toggled:Z,accessibilityLabel:b,formattedButtonText:r,onTap:tKt(W,y,Z,c,G)})}}}});
var WL=UzE;WL.prototype.onMouseDown=WL.prototype.onMouseDown;WL.prototype.onDataChanged=WL.prototype.onDataChanged;WL.prototype.observedSubscribed=WL.prototype.observedSubscribed;WL.prototype.onYtServiceRequestCompleted=WL.prototype.onYtServiceRequestCompleted;WL.prototype.onYtServiceRequestSent=WL.prototype.onYtServiceRequestSent;WL.prototype.maybeUpdateBellButtonText=WL.prototype.maybeUpdateBellButtonText;
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],WL.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],WL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],WL.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],WL.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WL.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.subscribedEntityKey"],selector:_.Mu}),_.e("design:type",Object)],WL.prototype,"subscriptionStateEntity",void 0);_.x([_.L({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.e("design:type",Boolean)],WL.prototype,"subscribed",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],WL.prototype,"branded",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WL.prototype,"animatedActionEnabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WL.prototype,"foregroundLottieRef",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WL.prototype,"backgroundLottieRef",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],WL.prototype,"overlayButton",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.e("design:type",Object)],WL.prototype,"buttonStyle",void 0);_.x([_.L(),_.e("design:type",Object)],WL.prototype,"forceIconOnly",void 0);_.x([_.L(),_.e("design:type",Object)],WL.prototype,"showTextWhileAnimating",void 0);_.x([_.L({value:function(){return!!_.U().resolve(_.xN(_.ml))&&_.O("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.e("design:type",Boolean)],WL.prototype,"useKeyboardFocused",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WL.prototype,"keyboardFocused",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WL.prototype,"isAnimating",void 0);_.x([_.A("data.notificationPreferenceButton.*"),_.e("design:type",Object),_.e("design:paramtypes",[])],WL.prototype,"hasBellButton",null);
_.x([_.H("subscribedButtonText"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WL.prototype,"maybeUpdateBellButtonText",null);_.x([_.A("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.e("design:type",Object),_.e("design:paramtypes",[])],WL.prototype,"subscribedButtonText",null);_.x([_.A("data.timedAnimationData.animationTiming","subscribed"),_.e("design:type",Object),_.e("design:paramtypes",[])],WL.prototype,"smartimationSettings",null);
_.x([_.L({reflectToAttribute:!0}),_.A("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.e("design:type",Object),_.e("design:paramtypes",[])],WL.prototype,"subscribeButtonHidden",null);_.x([_.L({reflectToAttribute:!0}),_.A("subscribed","hasBellButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],WL.prototype,"subscribeButtonInvisible",null);
_.x([_.L({reflectToAttribute:!0}),_.A("subscribed"),_.e("design:type",Object),_.e("design:paramtypes",[])],WL.prototype,"unsubscribeButtonHidden",null);_.x([_.jj("ytd-subscription-notification-toggle-button-renderer-next"),_.e("design:type",Object)],WL.prototype,"bellButton",void 0);_.x([_.jj("#subscribe-button-shape"),_.e("design:type",HTMLElement)],WL.prototype,"subscribeButtonShape",void 0);
_.x([_.A("overlayButton","subscribed","data"),_.e("design:type",Object),_.e("design:paramtypes",[])],WL.prototype,"buttonShape",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],WL.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],WL.prototype,"onYtServiceRequestCompleted",null);
_.x([_.H("subscribed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WL.prototype,"observedSubscribed",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WL.prototype,"onDataChanged",null);_.x([_.B("mousedown"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],WL.prototype,"onMouseDown",null);
WL=_.x([_.d({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],WL);
_.T(WL,"ytd-subscribe-button-renderer",function(){if(FjT!==void 0)return FjT;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return FjT=y},{mode:1});var $zW=function(){var y=_.v.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.R($zW,_.v);$zW.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"}}}};
var cL=$zW;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cL.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],cL.prototype,"isRichGrid",void 0);cL=_.x([_.d({is:"ytd-game-card-renderer",disableElementRegistration:!0})],cL);
_.T(cL,"ytd-game-card-renderer",function(){if(tUm!==void 0)return tUm;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tUm=y},{mode:1});var Zc={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.O("defer_menus")&&!GWi?0:void 0,waitForSignal:"eocs"};var Kj3;var OE2;var g95=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return y};
_.R(g95,_.v);_.f=g95.prototype;_.f.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.f.onSeriesReminderStateEntityChange=function(){var y,W,c;((y=this.eventReminderStateEntity)==null?0:y.key)&&((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.o3("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.f.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.f.onYtServiceRequestError=function(){var y;this.updateReminderStateEntitiesFromButtonState((y=this.data)==null?void 0:y.currentState)};
_.f.handleUpdateUpcomingEventReminderButtonStateCommand=function(y){if(y=_.g(y,gPE)){var W,c=(W=this.data)==null?void 0:W.targetId;c&&y.targetId===c&&_.O0(this.updateReminderStateEntitiesFromButtonState.bind(this,y.state))}};
_.f.getButtonStateFromReminderState=function(){var y;if(((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var W;if(((W=this.eventReminderStateEntity)==null?void 0:W.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var c,Z;if(((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((Z=this.eventReminderStateEntity)==
null?void 0:Z.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var G;return(G=this.data)==null?void 0:G.currentState};
_.f.updateReminderStateEntitiesFromButtonState=function(y){if(y){switch(y){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":y="UPCOMING_EVENT_REMINDER_STATE_NONE";var W="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":y="UPCOMING_EVENT_REMINDER_STATE_SINGLE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":y="UPCOMING_EVENT_REMINDER_STATE_NONE";W="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var c;
((c=this.eventReminderStateEntity)==null?0:c.key)&&this.ytdReduxBehavior.dispatch(_.o3("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:y})));var Z;((Z=this.seriesReminderStateEntity)==null?0:Z.key)&&this.ytdReduxBehavior.dispatch(_.o3("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:W})))}};
_.dJ.Object.defineProperties(g95.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var y=this.getButtonStateFromReminderState(),W,c;if(y&&((W=this.data)==null?0:(c=W.states)==null?0:c.length))for(W=_.z(this.data.states),c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0;if(((Z=_.g(c,RDT))==null?void 0:Z.state)===y)return _.g(c,RDT)}}}});
var GQ=g95;GQ.prototype.onYtServiceRequestError=GQ.prototype.onYtServiceRequestError;GQ.prototype.onYtServiceRequestCompleted=GQ.prototype.onYtServiceRequestCompleted;GQ.prototype.onSeriesReminderStateEntityChange=GQ.prototype.onSeriesReminderStateEntityChange;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],GQ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],GQ.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:$sI}),_.e("design:type",Object)],GQ.prototype,"eventReminderStateEntity",void 0);
_.x([_.L({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(y,W){return _.fq(y.entities,"sportsSeriesReminderStateEntity",W)}}),
_.e("design:type",Object)],GQ.prototype,"seriesReminderStateEntity",void 0);_.x([_.A("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],GQ.prototype,"currentButtonStateRenderer",null);_.x([_.H("seriesReminderStateEntity"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],GQ.prototype,"onSeriesReminderStateEntityChange",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],GQ.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],GQ.prototype,"onYtServiceRequestError",null);GQ=_.x([_.d({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],GQ);
_.T(GQ,"ytd-upcoming-event-reminder-button-renderer",function(){if(OE2!==void 0)return OE2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return OE2=y},{mode:1});var RH5;var lIi=function(){return _.v.apply(this,arguments)||this};
_.R(lIi,_.v);lIi.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.dJ.Object.defineProperties(lIi.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(_.O("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
var fe=lIi;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fe.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],fe.prototype,"shelfDismissal",void 0);
_.x([_.A("data.responseText"),_.e("design:type",Object),_.e("design:paramtypes",[])],fe.prototype,"text",null);_.x([_.A("data.responseText"),_.e("design:type",Object),_.e("design:paramtypes",[])],fe.prototype,"textAriaLabel",null);fe=_.x([_.d({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],fe);
_.T(fe,"ytd-notification-multi-action-renderer",function(){if(RH5!==void 0)return RH5;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return RH5=y},{mode:1});var E9i;var N6Z=function(){return _.v.apply(this,arguments)||this};
_.R(N6Z,_.v);N6Z.prototype.ready=function(){var y=this;_.p(this.hostElement).querySelector("#undo").addEventListener("tap",function(){y.onUndoTap()})};
N6Z.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
var on=N6Z;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],on.prototype,"data",void 0);on=_.x([_.d({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],on);
_.T(on,"ytd-notification-text-renderer",function(){if(E9i!==void 0)return E9i;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return E9i=y},{mode:1});var IIi;var prV=function(){var y=_.v.apply(this,arguments)||this;y.mouseOverDelayJobId=0;y.fadeInImageDelayJobId=0;y.startTimeMs=-1;y.loadingStartTimeMs=-1;y.loadingEndTimeMs=-1;y.hasVideoPreview=!1;return y};
_.R(prV,_.v);_.f=prV.prototype;_.f.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.f.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.f.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.f.showThumbnail=function(){var y=this;this.csn=_.NR();_.JE("fmth");_.KX.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.vh(_.KX,function(){y.loadingStartTimeMs=(0,_.Tj)();var W=_.p(y.hostElement).querySelector("#thumbnail");W.complete?y.displayMouseOverImage():W.addEventListener("load",_.qO(y,y.displayMouseOverImage))},150):_.i0(_.p(this.hostElement).querySelector("#play"),"show",!0)};
_.f.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.f.onTap=function(){this.removeVideoPreview()};
_.f.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var y=this.videoId,W=this.csn,c=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Z=this.startTimeMs,G=this.hasVideoPreview,D=_.Dz(this.trackingParams),Y={isMovingThumbnail:G};G&&Z>0&&(c>0&&(Y.movingThumbnailLoadingDurationMs=Math.round(c)),Y.durationHoveredMs=Math.round((0,_.Tj)()-Z));y&&(Y.videoId=y);_.TG(W,D,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Y});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.f.removeVideoPreview=function(){_.KX.cancelJob(this.mouseOverDelayJobId);_.KX.cancelJob(this.fadeInImageDelayJobId);var y=_.p(this.hostElement).querySelector("#thumbnail");_.i0(y,"fade-in",!1);y.removeEventListener("load",_.qO(this,this.displayMouseOverImage));y=_.p(this.hostElement).querySelector("#play");_.i0(y,"fade-in",!1);_.i0(y,"show",!1)};
_.f.displayMouseOverImage=function(){var y=_.p(this.hostElement).querySelector("#thumbnail"),W=_.p(this.hostElement).querySelector("#play");this.isImageAvailable(y)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Tj)(),this.startTimeMs=(0,_.Tj)(),this.fadeInImageDelayJobId=_.vh(_.KX,function(){_.i0(y,"fade-in",!0)},50)):_.i0(W,"fade-in",!0)};
_.f.computeThumbnail=function(y,W){var c;y&&y.movingThumbnailDetails&&y.movingThumbnailDetails.thumbnails&&W?c=_.h3(y.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):c=W?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(c)return _.Jn(c)};
_.f.isImageAvailable=function(y){return!(!y.src||y.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||y.naturalWidth===120)};
var Dc=prV;Dc.prototype.onTap=Dc.prototype.onTap;Dc.prototype.dataChanged=Dc.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Dc.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Dc.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Dc.prototype,"csn",void 0);
_.x([_.L(),_.e("design:type",Object)],Dc.prototype,"trackingParams",void 0);_.x([_.L(),_.e("design:type",String)],Dc.prototype,"videoId",void 0);_.x([_.L(),_.e("design:type",Boolean)],Dc.prototype,"isAttachedAndDataSet",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dc.prototype,"dataChanged",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dc.prototype,"onTap",null);
Dc=_.x([_.d({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Dc);
_.T(Dc,"ytd-moving-thumbnail-renderer",function(){if(IIi!==void 0)return IIi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return IIi=y},{mode:1});var P8Z;_.Ds=function(y){this.hostElement=y;this.eventSink=null;this.eventList=[]};
_.Ds.prototype.shouldForward=function(){var y,W;return(W=(y=this.eventSink)==null?void 0:y.isConnected)!=null?W:document.body.contains(this.eventSink)};
_.Ds.prototype.start=function(y,W){this.eventSink&&this.stop();for(var c=0;c<y.length;c++)this.hostElement.addEventListener(y[c],_.qO(this,this.forwardEvent));var Z;this.eventSink=(Z=W.hostElement)!=null?Z:W;this.eventList=y};
_.Ds.prototype.stop=function(){for(var y=0;y<this.eventList.length;y++)this.hostElement.removeEventListener(this.eventList[y],_.qO(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Ds.prototype.forwardEvent=function(y,W){this.shouldForward()&&(y.stopPropagation(),this.eventSink instanceof Element?_.Z2(this.eventSink,y.type,W):_.Rs(new _.ul("eventSink is not an element")))};_.zQ={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Ds(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(y,W){this.forwarder_.start(y,W)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var JFJ=function(){return _.v.apply(this,arguments)||this};
_.R(JFJ,_.v);_.f=JFJ.prototype;_.f.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=_.Nn("HTML_DIR")==="rtl"?"right":"left"};
_.f.dataChanged=function(){this.popupOpen=!1};
_.f.computeAriaLabel=function(y){return _.g(y,M2Q).label};
_.f.onTap=function(y){y.stopPropagation();y.preventDefault();this.data.command&&_.U().resolve(_.i1).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.f.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.f.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
var Ya=JFJ;Ya.prototype.onPopupClosed=Ya.prototype.onPopupClosed;Ya.prototype.onPopupOpened=Ya.prototype.onPopupOpened;Ya.prototype.onTap=Ya.prototype.onTap;Ya.prototype.dataChanged=Ya.prototype.dataChanged;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],Ya.prototype,"eventForwardingBehavior",void 0);_.x([_.C(_.gt),_.e("design:type",Object)],Ya.prototype,"ironButtonState",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ya.prototype,"componentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Ya.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:-1}),_.e("design:type",Number)],Ya.prototype,"tabindex",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.e("design:type",Object)],Ya.prototype,"ariaLabel",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Ya.prototype,"disableTooltips",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Ya.prototype,"popupOpen",void 0);
_.x([_.L(),_.e("design:type",Element)],Ya.prototype,"eventSink",void 0);_.x([_.jj("#tooltip"),_.e("design:type",Object)],Ya.prototype,"tooltip",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ya.prototype,"dataChanged",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ya.prototype,"onTap",null);
_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ya.prototype,"onPopupOpened",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ya.prototype,"onPopupClosed",null);Ya=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ya);
_.T(Ya,"ytd-thumbnail-overlay-button-renderer",function(){if(P8Z!==void 0)return P8Z;var y=document.createElement("template");_.E(y,'\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]]" 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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return P8Z=y},{mode:1});var VUQ;var C8i=function(){return _.v.apply(this,arguments)||this};
_.R(C8i,_.v);var Xf=C8i;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Xf.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Xf.prototype,"disableAnimation",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Xf.prototype,"rounded",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Xf.prototype,"transparentBackground",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Xf.prototype,"noPadding",void 0);Xf=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Xf);
_.T(Xf,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(VUQ!==void 0)return VUQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return VUQ=y},{mode:1});var QbZ;var bB=function(){return _.v.apply(this,arguments)||this};
_.R(bB,_.v);bB.prototype.computeIconPosition=function(y){return this.get("iconPosition",y)||null};
bB.prototype.computeIconStyle=function(y){return this.get("iconStyle",y)||null};
bB.prototype.computeIsIconStyleFilled=function(y){if(!y)return!1;var W;return y.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((W=y.icon)==null?void 0:W.iconType)==="ERROR_BLACK"};
var rx=bB;_.x([_.L(),_.e("design:type",Object)],rx.prototype,"data",void 0);_.x([_.L({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.e("design:type",Object)],rx.prototype,"iconPosition",void 0);_.x([_.L({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.e("design:type",Object)],rx.prototype,"iconStyle",void 0);_.x([_.L({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],rx.prototype,"iconStyleFilled",void 0);
rx=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],rx);
_.T(rx,"ytd-thumbnail-overlay-icon-renderer",function(){if(QbZ!==void 0)return QbZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return QbZ=y},{mode:1});var AFJ;var hHQ=function(){return _.v.apply(this,arguments)||this};
_.R(hHQ,_.v);var Ff=hHQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ff.prototype,"data",void 0);Ff=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Ff);
_.T(Ff,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(AFJ!==void 0)return AFJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return AFJ=y},{mode:1});var B6m;var HET=function(){var y=_.v.apply(this,arguments)||this;y.isPreviewLoading=!1;return y};
_.R(HET,_.v);var Um=HET;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Um.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Um.prototype,"isPreviewLoading",void 0);Um=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Um);
_.T(Um,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(B6m!==void 0)return B6m;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return B6m=y},{mode:1});var LjV;var v9W=function(){return _.v.apply(this,arguments)||this};
_.R(v9W,_.v);var $a=v9W;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$a.prototype,"data",void 0);$a=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],$a);
_.T($a,"ytd-thumbnail-overlay-pinking-renderer",function(){if(LjV!==void 0)return LjV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return LjV=y},{mode:1});var dz5;var SYZ=function(){var y=_.v.apply(this,arguments)||this;y.disableTooltips=!1;y.isLoading=!1;y.useExpandableTooltip=!1;y.toggled=!1;y.hovered=!1;y.mouseoverDelayJobId=0;y.toggleDelayJobId=0;y.expandAnimationDelayJobId=0;return y};
_.R(SYZ,_.v);_.f=SYZ.prototype;_.f.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");_.p(this.hostElement).querySelector("#tooltip").position=_.Nn("HTML_DIR")==="rtl"?"right":"left"};
_.f.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.KX.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.KX.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.KX.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.f.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.KX.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.KX.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.KX.cancelJob(this.expandAnimationDelayJobId)};
_.f.computeIcon=function(y,W,c){return(y=c?W:y)&&y.iconType?_.wp(y.iconType):void 0};
_.f.computeAriaLabel=function(y,W,c){return _.g(c?W:y,M2Q).label};
_.f.computeTooltip=function(y,W,c){return c?W:y};
_.f.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.f.computeIconOnHover=function(y,W){if((y==null?0:y.iconType)&&!W)return _.wp(y.iconType)};
_.f.onTap=function(y){var W=this;y.stopPropagation();y.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(y),this.useExpandableTooltip&&(this.toggleDelayJobId=_.vh(_.KX,function(){W.hovered=!1;W.data&&!W.data.toggledServiceEndpoint&&(W.expandAnimationDelayJobId=_.vh(_.KX,function(){W.set("data.isToggled",
!1)},200))},2E3))};
_.f.onMouseenter=function(){var y=this;this.mouseoverDelayJobId=_.vh(_.KX,function(){y.hovered=!0},300)};
_.f.onMouseleave=function(){_.KX.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.f.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.f.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.f.onServiceRequestCompleted=function(y,W){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(W)||this.set("data.isToggled",!this.data.isToggled)};
_.f.serviceRequestWasSuccessful=function(y){return _.g(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.KF)?y.data.status==="STATUS_SUCCEEDED":!0};
var Ke=SYZ;Ke.prototype.onServiceRequestCompleted=Ke.prototype.onServiceRequestCompleted;Ke.prototype.onPopupClosed=Ke.prototype.onPopupClosed;Ke.prototype.onPopupOpened=Ke.prototype.onPopupOpened;Ke.prototype.onMouseleave=Ke.prototype.onMouseleave;Ke.prototype.dataChanged=Ke.prototype.dataChanged;_.x([_.C(_.gt),_.e("design:type",Object)],Ke.prototype,"ironButtonState",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ke.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],Ke.prototype,"ytEventForwardingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ke.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.e("design:type",Object)],Ke.prototype,"ariaLabel",void 0);_.x([_.L(),_.e("design:type",Object)],Ke.prototype,"disableTooltips",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Ke.prototype,"popupOpen",void 0);_.x([_.L(),_.e("design:type",Object)],Ke.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Element)],Ke.prototype,"eventSink",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ke.prototype,"useExpandableTooltip",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.e("design:type",Object)],Ke.prototype,"toggled",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ke.prototype,"hovered",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.e("design:type",Object)],Ke.prototype,"iconOnHover",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ke.prototype,"dataChanged",null);
_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ke.prototype,"onMouseleave",null);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ke.prototype,"onPopupOpened",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ke.prototype,"onPopupClosed",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],Ke.prototype,"onServiceRequestCompleted",null);Ke=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],Ke);
_.T(Ke,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(dz5!==void 0)return dz5;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dz5=y},{mode:_.xm("kevlar_poly_si_batch_j053")?1:2});var T60;var aIJ=_.Ax(function(y){var W=y.data;var c=function(){return W().enableSegmentView};
return _.X("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.X(_.YN,{cond:c,then:function(){return _.X("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.X("div",{class:_.wZ("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+W().startPercent+"%"}}),_.X("div",{class:_.wZ("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+W().segmentDurationPercent+"%"}},_.X("div",{class:_.wZ("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.X("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.X("div",null," ",function(){return W().segmentLabel})),_.X("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.X("div",{class:_.wZ("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.X(_.YN,{cond:function(){return!c()&&W().startPercent},
then:function(){var Z={};return _.X("div",{class:_.wZ("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(Z.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.O("web_enable_modern_progress_bar_overlay"),Z))},_.X("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+W().startPercent+"%"}}))}}))},"K");
aIJ.idomCompat=!0;var xz2=_.Ax(function(y){var W=_.qu(),c=_.FP(function(G){var D,Y,u;a:{var t=(D=y.data())==null?void 0:D.animationActivationTargetId;D=((Y=y.data())==null?void 0:Y.animationActivationEntityKey)||"";Y=(u=y.data())==null?void 0:u.animationActivationEntitySelectorType;if(D&&t)switch(Y){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":G=_.fq(G.entities,"playerStateEntity",D);u=_.U().resolve(_.xN(_.Cy));t=!!(G&&G.videoId===t&&(u==null?0:u.isMiniplayerActive()));t={activated:t,playAnimation:t&&
G.playerState==="PLAYER_STATE_PLAYING"};break a}t=void 0}return t});
_.$k(function(){var G;if((G=c())==null?0:G.activated){var D;if((D=c())==null?0:D.playAnimation){var Y;(Y=W.lottieEl)==null||Y.goToAndPlay(0)}else{var u;(u=W.lottieEl)==null||u.goToAndStop(0)}}});
var Z=function(){var G,D=!((G=c())==null||!G.activated);if(y.data()){G=y.data();var Y=void 0;G.icon&&(Y=YaI(G.icon),Y=bMg(Y));var u=void 0,t;if((t=G.backgroundColor)==null?0:t.lightTheme){var b;u={backgroundColor:Ot((b=G.backgroundColor)==null?void 0:b.lightTheme,"0.8")}}if(G.text||Y||D){if(D&&G.lottieData&&W){b=G.lottieData;var r,F,K;t={animationConfig:{name:b.url,path:b.url,autoplay:(r=b.settings)==null?void 0:r.autoplay,loop:(K=(F=b.settings)==null?void 0:F.loop)!=null?K:!0},animationRef:W}}else t=
void 0;if(D)r=16;else b:switch(G.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":r=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":r=18;break b;default:r=16}D={type:r,text:D&&G.animatedText?G.animatedText:G.text,icon:Y,customColors:u,animation:t}}else D=void 0}else D=void 0;return D};
return _.X("yt-thumbnail-badge-view-model",{class:_.Mi("yt-thumbnail-badge-view-model-wiz",y.class)},_.X(_.YN,{cond:Z,then:function(){return _.X(_.TZ,{data:function(){return Z()}})}}))},"L");var iEV=_.Ax(function(y){var W={};return _.X("yt-thumbnail-bottom-overlay-view-model",{class:_.Mi("ytThumbnailBottomOverlayViewModelHost",(W.ytThumbnailBottomOverlayViewModelHostBackground=function(){return y.data().enableGradientBackground},W))},_.X("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.X(_.bg,{data:function(){return y.data().progressBar}},{thumbnailOverlayProgressBarViewModel:aIJ}),_.X(_.bg,{data:function(){return y.data().badge}},{thumbnailBadgeViewModel:function(c){return _.X(xz2,
{data:c.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.X(_.bg,{data:function(){return y.data().badges}},{thumbnailBadgeViewModel:function(c){return _.X(xz2,{data:c.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"M");
iEV.idomCompat=!0;_.A3(iEV,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.QE}});var l1F={calledOnce:!1,state:"visible"},EBI={calledOnce:!1,state:"hidden"};_.eu(peI);var MU3=_.Ax(function(y){var W=y.data;var c=y.className;y=y.alwaysShow;var Z=_.HO();_.VL(Z,function(){return W().rendererContext});
var G=_.rb1(),D={};return _.X("thumbnail-hover-overlay-view-model",{el:Z,class:_.Mi("ytThumbnailHoverOverlayViewModelHost",c,(D.ytThumbnailHoverOverlayViewModelHostForceHover=y,D)),"aria-label":function(){var Y;return(Y=_.g(W().rendererContext,_.Cp))==null?void 0:Y.label},
role:function(){return _.pp(W().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.pp(W().rendererContext)!==void 0?0:void 0},
"on:keypress":G},_.X("div",{class:_.Mi("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(W().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Y="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Y="ytThumbnailHoverOverlayViewModelStyleCover"}return Y})},_.X(_.YN,{cond:function(){return W().icon},
then:function(Y){return _.X(_.J3,{data:Y,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.X(_.YN,{cond:function(){return W().text},
then:function(Y){return _.X(_.Da,{text:Y,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"N"),eHm=_.O("web_enable_sink_lockups_batch")?MU3:peI,wrQ=_.O("web_enable_sink_lockups_batch")?MU3:_.qi(peI);
MU3.idomCompat=!0;var Az=_.Ax(function(y){var W=y.data;return _.X(_.bg,{data:function(){return W==null?void 0:W().overlays}},{thumbnailHoverOverlayViewModel:wrQ})},"O");
Az.idomCompat=!0;var qYQ={};var QL=_.Ax(function(y){var W=y.data;var c=y.image;var Z=y.state;var G=y.iconType;var D=y.overlays;var Y=y.isOverlay;var u=_.LD();y=_.z(_.G9(!0,void 0,"xOB8yb"));var t=y.next().value,b=y.next().value,r=_.Jx(G,"LIVE");_.rj(function(){requestAnimationFrame(function(){var K=W().size;var l=W().badgeText;if(u.value===null)l=!0;else{var N=Pdy(K);l in qYQ?K=qYQ[l]:(K=u.value.clientWidth,qYQ[l]=K);(l=K>N)?u.value.style.display="none":u.value.style.visibility="visible"}b(l)})});
var F=function(){var K={};return K["yt-spec-avatar-shape__image"]=!0,K["yt-spec-avatar-shape__image--ads-app"]=W().type===1,K};
G=_.j9(function(K){var l,N;return void((N=(l=W()).onTap)==null?void 0:N.call(l,K))});
return _.X("yt-avatar-shape",null,_.X("div",{class:function(){var K={};K=(K["yt-spec-avatar-shape"]=!0,K["yt-spec-avatar-shape__button"]=!0,K[VKg(W().size)]=!0,K["yt-spec-avatar-shape__button--tappable"]=!!W().onTap,K);var l=W().avatarButtonCustomClassName;l&&(K[l]=!0);return _.wZ(K)},
"on:click":G,"on:keydown":_.EV(),"aria-label":function(){return W().onTap?W().accessibilityText:""},
role:function(){return W().onTap?"button":void 0},
tabindex:function(){return W().onTap?0:void 0}},_.X("div",{class:function(){var K,l=W(),N=Z==null?void 0:Z(),P=Y==null?void 0:Y(),V=!((K=l.decorations)==null||!K.includes(2)||l.size!=="medium"&&l.size!=="large"),Q=l.size==="tiny"||l.size==="extra-small",S,cy,M,fa,jI={};
K=(jI["yt-spec-avatar-shape--live-ring"]=!!(((S=l.decorations)==null?0:S.includes(0))&&Qg1(l.size)),jI["yt-spec-avatar-shape--stories-watched"]=V&&!(N==null||!N.storiesWatched),jI["yt-spec-avatar-shape--stories-unwatched"]=V&&!(N==null?0:N.storiesWatched),jI["yt-spec-avatar-shape--background-border"]=AbE(l.decorations)&&!Q,jI["yt-spec-avatar-shape--background-border-thin"]=AbE(l.decorations)&&Q,jI["yt-spec-avatar-shape__on-select-border"]=!((cy=l.decorations)==null||!cy.includes(4)),jI["yt-spec-avatar-shape__white-border"]=
!((M=l.decorations)==null||!M.includes(5)),jI["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((fa=l.decorations)==null?0:fa.includes(5))&&Q),jI["yt-spec-avatar-shape--is-overlay"]=!!P,jI);return _.wZ(K)}},_.X("div",{class:function(){var K={};
K=(K[Jbf(W().size)]=!0,K["yt-spec-avatar-shape--no-margin"]=AbE(W().decorations),K);return _.wZ(K)}},_.X(_.J3,{data:c,
alt:function(){return!W().onTap&&W().accessibilityText?W().accessibilityText:""},
targetWidth:function(){return Cdw(W().size)},
targetHeight:function(){return Cdw(W().size)},
className:function(){return _.wZ(F())}}),_.X(_.YN,{cond:function(){var K;
return((K=W().decorations)==null?void 0:K.includes(0))&&Qg1(W().size)},
then:function(){return _.X("div",{class:function(){var K={};K=(K["yt-spec-avatar-shape__live-badge"]=!0,K["yt-spec-avatar-shape__live-badge--badge-small"]=W().size==="small",K["yt-spec-avatar-shape__live-badge--badge-medium"]=W().size==="medium"||W().size==="48",K["yt-spec-avatar-shape__live-badge--badge-large"]=W().size==="large",K["yt-spec-avatar-shape__live-badge--badge-extra-large"]=W().size==="extra-large"||W().size==="extra-extra-large"||W().size==="giant",K);return _.wZ(K)}},_.X(_.YN,{cond:function(){return W().badgeText},
then:function(K){return _.X("div",{class:"yt-spec-avatar-shape__badge-text",el:u},K)}}),_.X(_.YN,{cond:t,
then:function(){return _.X("div",{class:"yt-spec-avatar-shape__badge-icon"},_.X(_.Gb,{icon:r,size:function(){a:switch(W().size){case "extra-large":var K=16;break a;default:K=13}return K}}))}}))}}),_.X(_.YN,{cond:function(){var K,l;
return((K=W().decorations)==null?void 0:K.includes(1))||((l=W().decorations)==null?void 0:l.includes(0))&&!Qg1(W().size)},
then:function(){return _.X("div",{class:function(){var K=W(),l,N,P={};var V=(P["yt-spec-avatar-shape__live-dot"]=!((l=K.decorations)==null||!l.includes(0)||Qg1(K.size)),P["yt-spec-avatar-shape__new-content"]=!((N=K.decorations)==null||!N.includes(1)),P);return _.wZ(V)}})}}),_.TY(D,function(){return _.X("div",{class:function(){var K={};
K=Object.assign((K["yt-spec-avatar-shape__image-overlays"]=!0,K),F());return _.wZ(K)}},D==null?void 0:D())})))))},"P");
QL.idomCompat={callbacks:{overlays:!0}};var kli=_.Ax(function(y){function W(){c().endpoint&&_.OH(c().endpoint)}
var c=y.data;var Z=y.decorations;var G=y.avatarButtonCustomClassName;var D=y.isOverlay;return _.X("avatar-view-model",null,_.X(_.YN,{cond:function(){return c().image},
then:function(Y){return _.X(QL,{data:function(){return BwI({data:c(),onTap:c().endpoint?W:void 0,decorations:Z==null?void 0:Z(),badgeText:void 0,accessibilityText:c().accessibilityText,avatarButtonCustomClassName:G==null?void 0:G()})},
image:Y,iconType:"RADAR_LIVE",overlays:function(){return _.X(Az,{data:c})},
isOverlay:D})}}))},"Q");
kli.idomCompat=!0;_.Ks=_.O("mweb_enable_sink_avatar_view_model")||_.O("web_enable_sink_lockups_batch")?kli:HYf;_.Om=_.O("mweb_enable_sink_avatar_view_model")||_.O("web_enable_sink_lockups_batch")?kli:_.qi(_.Ks);_.eu(HYf);_.eu(STg);var jDW,y4W;jDW=_.Ax(function(y){var W=y.data;y=y.className;var c=_.LD(),Z=function(){return _.g(W().avatar,_.hz)},G=_.Yk(function(){var D,Y=W(),u=Z(),t=_.pp(W().rendererContext),b=(D=c.value)!=null?D:void 0;
return u?vBF({data:Y,avatar:u,onTap:t,element:b}):{size:"medium"}},void 0,"v09a6");
return _.X("yt-decorated-avatar-view-model",{class:_.Mi("yt-decorated-avatar-view-model-wiz",y),el:c},_.X(_.YN,{cond:function(){var D;return(D=Z())==null?void 0:D.image},
then:function(D){return _.X(QL,{data:G,image:D,iconType:"RADAR_LIVE",overlays:function(){return _.X(Az,{data:Z})}})}}))},"R");
y4W=_.O("web_enable_sink_lockups_batch")?jDW:STg;_.gx=_.O("web_enable_sink_lockups_batch")?jDW:_.qi(STg);jDW.idomCompat=!0;var iYy=_.ug({avatarViewModel:_.Ks,decoratedAvatarViewModel:y4W});_.eu(MKw);var WL2;WL2=_.Ax(function(y){var W=_.HO(),c=function(){return W&&_.PG(y.data().rendererContext)};
_.VL(W,function(){return y.data().rendererContext});
var Z=function(){var D=y.data().avatars,Y,u;return(u=(Y=(D==null?0:D[0])?_.g(D[0],_.hz):void 0)==null?void 0:Y.avatarImageSize)!=null?u:"AVATAR_SIZE_UNKNOWN"},G={};
return _.X("yt-avatar-stack-view-model",{el:W,class:_.Mi("yt-avatar-stack-view-model-wiz",y.className,(G["yt-avatar-stack-view-model-wiz--tappable"]=c,G["yt-avatar-stack-view-model-wiz--is-overlay"]=y.isOverlay,G["yt-avatar-stack-view-model-wiz--medium-text"]=y.useMediumText,G)),tabindex:function(){return c()?0:void 0},
role:function(){return c()?"link":void 0},
"aria-label":function(){var D,Y;return(Y=(D=_.g(y.data().rendererContext,_.Cp))==null?void 0:D.label)!=null?Y:""}},_.X(_.YN,{cond:function(){var D;
return y.data().avatars&&!((D=y.hideAvatar)==null?0:D.call(y))},
then:function(){return _.X("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.X(_.YN,{cond:function(){return y.data().decoratedText},
then:function(D){var Y={};return _.X("div",{class:_.Mi("yt-avatar-stack-view-model-wiz__text-container",(Y["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS"},Y["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var u;
return((u=y.isOverlay)==null?void 0:u.call(y))&&(Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS")},Y)),
style:_.cF({width:function(){return exf(Z())+"px"},
height:function(){return exf(Z())+"px"}})},_.X(_.Da,{text:D,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.X(_.bg,{data:function(){return y.data().avatars.slice().reverse()}},{avatarViewModel:function(D){return _.X("div",{class:function(){return weI(Z())}},_.X(_.Om,{data:D.data,
decorations:function(){var Y;if((Y=y.decorations)==null?0:Y.call(y))Y=y.decorations();else{Y=y.data();var u=0;Y.avatars&&(u+=Y.avatars.length);Y.decoratedText&&(u+=1);Y=u>1?[3]:[]}return Y},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:y.isOverlay}))},
decoratedAvatarViewModel:function(D){return _.X("div",{class:function(){return weI(Z())}},_.X(_.gx,{data:D.data}))}}))}}),_.X(_.YN,{cond:function(){return y.data().text},
then:function(D){return _.X(_.Da,{text:D,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"S");
_.c4V=_.O("web_enable_sink_lockups_batch")?WL2:MKw;_.ZJ3=_.O("web_enable_sink_lockups_batch")?WL2:_.qi(MKw);WL2.idomCompat=!0;_.A3(_.Ax(function(y){var W=y.data;var c=y.thumbnailSize;return _.X("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.X("div",{class:_.Mi("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return qTE(c==null?void 0:c())})},_.X(_.bg,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(Z){return _.X(_.ZJ3,{data:Z.data,
decorations:[5]})}})))},"T"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Ix,
thumbnailSize:_.Ix}});_.eu(k4F);var GdJ=_.Ax(function(y){y=_.V0(y,{hidden:!1});var W=y.data;return _.X("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:y.hidden},_.X(_.Da,{text:function(){return W().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.X(_.YN,{cond:function(){return W().subtitle},
then:function(){return _.X(_.Da,{text:function(){return W().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"U"),f4W=_.O("web_enable_sink_lockups_batch")?GdJ:k4F,o5Z=_.O("web_enable_sink_lockups_batch")?GdJ:_.qi(k4F);
GdJ.idomCompat=!0;_.O("web_enable_sink_lockups_batch")?_.A3(o5Z,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Ix,hidden:_.Ix}}):_.TP(f4W,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var D$2=_.Ax(function(y){y=_.V0(y,{isClip:!1});var W=y.data,c=y.thumbnailSize,Z={};return _.X("yt-thumbnail-overlay-badge-view-model",{class:_.Mi("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(W().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var G="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:G="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return G},function(){return jbF(c==null?void 0:c())},(Z["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
y.isClip,Z))},_.X(_.bg,{data:function(){return W().thumbnailBadges}},{thumbnailBadgeViewModel:function(G){return _.X(xz2,{data:G.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"V");
D$2.idomCompat=!0;_.A3(D$2,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Ix,thumbnailSize:_.Ix,isClip:_.Ix}});_.eu(yFy);_.TP(yFy,"yt-page-indicator-view-model",{propNames:["data"]});var z38=function(){var y=_.v.apply(this,arguments)||this;y.eventSink=function(){return y};
y.disableInteraction=!1;y.noRoundedCorners=!1;y.isPreviewLoading=!1;y.isOriginalAspectRatio=!1;y.computedObjectFit=!1;y.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return y};
_.R(z38,_.v);_.f=z38.prototype;
_.f.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:_.O("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"}}};
_.f.onImageLoaded=function(){this.loaded=!0};
_.f.onImageUnloaded=function(){this.loaded=!1};
_.f.computeRichThumbnail=function(y,W,c,Z){if(y&&W&&!Z&&!_.O("disable_moving_thumbs_handling")&&!c)return W};
_.f.computeImageWidth=function(y,W){return W||9999};
_.f.computeIsOriginalAspectRatio=function(y){return y};
_.f.computeIsLive=function(y){if(y==null?0:y.badges)for(var W=0;W<y.badges.length;W++){var c=y.badges[W];if(c.metadataBadgeRenderer&&c.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(y==null?0:y.thumbnailOverlays)for(W=0;W<y.thumbnailOverlays.length;W++)if(c=y.thumbnailOverlays[W],c.thumbnailOverlayTimeStatusRenderer&&c.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.f.computeObjectFit=function(y,W){return W||(y?"CONTAIN":"")};
_.f.computeNavigationEndpoint=function(y,W,c){return y?W:c};
_.f.computeHasClip=function(y){y=_.z(y||[]);for(var W=y.next();!W.done;W=y.next())if(W.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.f.computeOverlayColor=function(y){var W;return(y==null?0:(W=y.darkColorPalette)==null?0:W.section2Color)?y.darkColorPalette.section2Color:y==null?void 0:y.sampledThumbnailColor};
_.dJ.Object.defineProperties(z38.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return A7(this.width)}}});
var Rn=z38;Rn.prototype.onImageUnloaded=Rn.prototype.onImageUnloaded;Rn.prototype.onImageLoaded=Rn.prototype.onImageLoaded;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Rn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Rn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(QaE),_.e("design:type",Object)],Rn.prototype,"ytdThumbnailBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Rn.prototype,"componentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Rn.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Rn.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Rn.prototype,"circular",void 0);
_.x([_.L({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.e("design:type",Object)],Rn.prototype,"richThumbnail",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.e("design:type",Boolean)],Rn.prototype,"hasClip",void 0);_.x([_.L(),_.e("design:type",Object)],Rn.prototype,"eventSink",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Rn.prototype,"queued",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],Rn.prototype,"richGridThumbnail",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Rn.prototype,"useExpandableTooltip",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Rn.prototype,"useUntranslatedNavigationEndpoint",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Rn.prototype,"disableInteraction",void 0);
_.x([_.L({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.e("design:type",Object)],Rn.prototype,"computedNavigationEndpoint",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Rn.prototype,"nowPlayingEqualizerOnly",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Rn.prototype,"hidePlaybackStatus",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],Rn.prototype,"objectFit",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Rn.prototype,"noRoundedCorners",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Rn.prototype,"watchFeedThumbnail",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Rn.prototype,"isPreviewLoading",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.e("design:type",Object)],Rn.prototype,"isOriginalAspectRatio",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.e("design:type",Object)],Rn.prototype,"computedObjectFit",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.e("design:type",Boolean)],Rn.prototype,"isLiveVideo",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Rn.prototype,"loaded",void 0);_.x([_.L({computed:"computeOverlayColor(data.thumbnail)"}),_.e("design:type",Object)],Rn.prototype,"overlayColor",void 0);_.x([_.L({selector:_.PAt}),_.e("design:type",Boolean)],Rn.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.L(),_.e("design:type",Number)],Rn.prototype,"width",void 0);
_.x([_.A("inlinePreviewIsEnabled"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Rn.prototype,"isPreviewDisabled",null);_.x([_.A("width"),_.e("design:type",String),_.e("design:paramtypes",[])],Rn.prototype,"thumbnailSize",null);_.x([_.B("image-loaded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Rn.prototype,"onImageLoaded",null);
_.x([_.B("image-unloaded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Rn.prototype,"onImageUnloaded",null);Rn=_.x([_.d({disableElementRegistration:!0,is:"ytd-thumbnail"})],Rn);
var Y6W=_.a5()(Rn,"ytd-thumbnail",function(){if(T60===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);T60=y}y=T60;return y},{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 Gla=function(y){var W=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12638_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12638_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(c){m$Q(W,c)};
this.onLockupMouseLeaveFn=function(c){c=c.relatedTarget;var Z,G;((Z=document.getElementsByTagName("ytd-video-preview"))==null?0:(G=Z.item(0))==null?0:G.contains(c))||(W.terminateVideoPreview(),lB(W))};
this.onThumbnailMouseDownFn=function(){W.terminateVideoPreview();lB(W)};
this.onTouchStart=function(){W.JSC$12638_touched=!0};
this.mediaRenderer=y.mediaRenderer;this.thumbnailElement=y.thumbnailElement;this.lockupElement=y.lockupElement;this.videoPreviewOptsInput=y.videoPreviewOpts;sD5(this);Em(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)):
_.Rs(Error("Ch")):_.Rs(Error("Dh")):unV(this)},js=function(y){unV(y);
var W;(W=y.lockupElement)==null||W.removeEventListener("mouseenter",y.onMouseMoveFn);var c;(c=y.lockupElement)==null||c.removeEventListener("mouseleave",y.onLockupMouseLeaveFn);var Z;(Z=y.lockupElement)==null||Z.removeEventListener("touchstart",y.onTouchStart);var G;(G=y.thumbnailElement)==null||G.removeEventListener("mousedown",y.onThumbnailMouseDownFn);lB(y)},sD5=function(y){y.inlinePreviewIsEnabledForUser=_.Sv().getState().ui.inlinePreviewIsEnabled;
y.unsubscribeFromInlinePreviewIsEnabled=_.ot(_.Sv(),_.PAt,function(W){(y.inlinePreviewIsEnabledForUser=W)||lB(y)});
y.JSC$12638_unsubscribeFromInlinePreviewIsActive=_.ot(_.Sv(),_.p0O,function(W){(y.inlinePreviewIsActive=W)||lB(y)})},unV=function(y){y.unsubscribeFromInlinePreviewIsEnabled();
y.unsubscribeFromInlinePreviewIsEnabled=function(){};
y.JSC$12638_unsubscribeFromInlinePreviewIsActive();y.JSC$12638_unsubscribeFromInlinePreviewIsActive=function(){}},m$Q=function(y,W){W.buttons>0||(W=_.ey("kevlar_lockup_hover_delay",-1),y.JSC$12638_touched&&W>=0?(_.KX.cancelJob(y.videoPreviewJobId),y.videoPreviewJobId=_.vh(_.KX,function(){tpi(y)},W),y.JSC$12638_touched=!1):tpi(y))},n5T=function(y){y.videoPreviewJobId=_.vh(_.KX,function(){var W,c,Z,G;
return _.m(function(D){if(D.nextAddress==1){if(!Em(y))return D.return();W=y.getVideoPreviewOpts();return W?(Z=(c=_.fl(y.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&c[0])?_.n(D,c[0],3):D.jumpTo(2):D.return()}D.nextAddress!=2&&(Z=D.yieldResult===1);Z&&cFy((G=y.mediaRenderer)==null?void 0:G.data);_.F2(D)})},2E3)},tpi=function(y){!y.previewTriggered&&Em(y)&&(y.inlinePreviewIsActive&&y.terminateVideoPreview(),y.previewTriggered=!0,y.mediaRenderer.isInlinePreviewTriggered=!0,_.KX.cancelJob(y.videoPreviewJobId),
y.videoPreviewJobId=_.vh(_.KX,function(){var W,c,Z,G;
return _.m(function(D){if(D.nextAddress==1){if(!Em(y))return D.return();W=y.getVideoPreviewOpts();return W?(Z=(c=_.fl(y.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&c[0])?_.n(D,c[0],3):D.jumpTo(2):D.return()}D.nextAddress!=2&&(Z=D.yieldResult===1);Z&&cFy((G=y.mediaRenderer)==null?void 0:G.data);_.F2(D)})}))};
Gla.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var y,W;if((W=(y=this.videoPreviewOptsInput)==null?void 0:y.videoPreviewData)!=null)y=W;else if(y=this.mediaRenderer.data)if(Wjy(y))y={inlinePlaybackEndpoint:_.UH(y.inlinePlayerData.onVisible),navigationEndpoint:_.UH(y.onTap),thumbnail:"image"in y?y.image:y.thumbnail,thumbnailOverlays:void 0,accessibilityText:ZEH(y)};else if("multipleInlinePlaybackEndpoint"in y){var c=_.g(_.g(y.multipleInlinePlaybackEndpoint,i2m),MmV);if(c!=
null&&c.playerDescriptors){W=[];c=_.z(c.playerDescriptors);for(var Z=c.next();!Z.done;Z=c.next())Z=Z.value,W.push({inlinePlaybackEndpoint:Z.inlinePlaybackEndpoint,navigationEndpoint:Z.navigationEndpoint,thumbnail:Z.thumbnail,thumbnailOverlays:Z.thumbnailOverlays,accessibilityText:ZEH(y)});y=W}else y=void 0}else y={inlinePlaybackEndpoint:y.inlinePlaybackEndpoint,navigationEndpoint:y.navigationEndpoint,thumbnail:y.thumbnail,thumbnailOverlays:y.thumbnailOverlays,accessibilityText:ZEH(y)};else y=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:y,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Em=function(y){var W;if(W=y.inlinePreviewIsEnabledForUser)W=(y=y.mediaRenderer.data)?"inlinePlaybackEndpoint"in y&&y.inlinePlaybackEndpoint||Wjy(y)&&y.inlinePlayerData||"multipleInlinePlaybackEndpoint"in y&&y.multipleInlinePlaybackEndpoint?!0:!1:!1;return W};
Gla.prototype.terminateVideoPreview=function(){_.GG(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var lB=function(y){_.KX.cancelJob(y.videoPreviewJobId);y.inlinePreviewIsActive=!1;y.previewTriggered=!1;y.mediaRenderer.isInlinePreviewTriggered=!1};var XD3=_.dl(["#"]),bJT=function(){var y=_.v.apply(this,arguments)||this;y.isDisabled=!1;return y};
_.R(bJT,_.v);_.f=bJT.prototype;_.f.configureRendererStamper=function(){return{"data.menu":Zc,"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"}}}};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.getMetadata=function(y){var W=[];if(y.metadataText&&Object.keys(y.metadataText).length>0){var c=this.ytRendererBehavior.getSimpleString(y.metadataText);y.upcomingEventData&&y.upcomingEventData.upcomingEventText&&(c=_.gi(c,Number(y.upcomingEventData.startTime)));W.push(c)}else y.shortViewCountText&&W.push(this.ytRendererBehavior.getSimpleString(y.shortViewCountText)),y.publishedTimeText&&W.push(this.ytRendererBehavior.getSimpleString(y.publishedTimeText)),y.upcomingEventData&&y.upcomingEventData.upcomingEventText&&
(c=this.ytRendererBehavior.getSimpleString(y.upcomingEventData.upcomingEventText),W.push(_.gi(c,Number(y.upcomingEventData.startTime))));return W};
_.f.calculateBylineText=function(y){return y.shortBylineText?y.shortBylineText:y.bylineText?y.bylineText:null};
_.f.calculateIsDisabled=function(y){return!!y.isDisabled};
_.f.computeHrefWithDefault=function(y){return this.ytComponentBehavior.computeHref_(y)||_.Q7(XD3)};
_.f.onDetailsTap=function(y){var W=this.data&&this.data.navigationEndpoint;W&&!_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.O("kevlar_grid_video_renderer_killswitch")?_.Z2(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.f.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12642_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:_.p(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.p(this.hostElement).querySelector("ytd-thumbnail")})};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$12642_inlinePreviewHoverListener)==null||js(y)};
_.f.computeThumbnailWidth=function(y,W){return W&&W>0?W:y?360:210};
_.f.computeShowChannelThumbnail=function(y,W){var c;return W&&!!(y==null?0:(c=y.channelThumbnailSupportedRenderers)==null?0:c.channelThumbnailWithLinkRenderer)};
_.dJ.Object.defineProperties(bJT.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$12642_inlinePreviewHoverListener)==null?0:Em(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var NB=bJT;NB.prototype.dataChanged=NB.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],NB.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],NB.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.C(_.P2),_.e("design:type",Object)],NB.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],NB.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],NB.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],NB.prototype,"noEndpoints",void 0);_.x([_.L({computed:"calculateBylineText(data)"}),_.e("design:type",Object)],NB.prototype,"bylineText",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],NB.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],NB.prototype,"isDownloading",void 0);_.x([_.L({reflectToAttribute:!0,value:0}),_.e("design:type",Number)],NB.prototype,"width",void 0);_.x([_.L({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.e("design:type",Object)],NB.prototype,"isDisabled",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],NB.prototype,"dataChanged",null);_.x([_.A("lockupIsHovered"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],NB.prototype,"isHovered",null);NB=_.x([_.d({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],NB);
_.T(NB,"ytd-grid-video-renderer",function(){if(Kj3!==void 0)return Kj3;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Kj3=y},{mode:_.xm("kevlar_poly_si_batch_j047")?1:2});var r4W;var In=function(){var y=_.v.apply(this,arguments)||this;y.roundedContainer=!0;y.skipRoundingTop=!1;y.disableTopPadding=!1;y.amsterdamEnabled=_.O("enable_desktop_amsterdam_info_panels");return y};
_.R(In,_.v);In.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
In.prototype.onClick=function(y){var W,c=(W=this.data)==null?void 0:W.sourceEndpoint;!_.Cx(_.Aq(y),this.hostElement,["A".toString()])&&c&&_.Z2(this.hostElement,"yt-navigate",{endpoint:c})};
_.dJ.Object.defineProperties(In.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 y;return!((y=this.data)==null||!y.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.paragraphMaxLines)!=null?W:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
var pe=In;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pe.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pe.prototype,"showVerticalDividers",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pe.prototype,"roundedContainer",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pe.prototype,"skipRoundingTop",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pe.prototype,"disableTopPadding",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],pe.prototype,"amsterdamEnabled",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],pe.prototype,"showMetadataAtTop",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],pe.prototype,"showMetadataBelowTitle",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.menu"),_.e("design:type",Object),_.e("design:paramtypes",[])],pe.prototype,"hasMenu",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.truncateParagraphs"),_.e("design:type",Object),_.e("design:paramtypes",[])],pe.prototype,"truncateParagraphs",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data.paragraphMaxLines"),_.e("design:type",Number),_.e("design:paramtypes",[])],pe.prototype,"paragraphMaxLines",null);_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.background"),_.e("design:type",Object),_.e("design:paramtypes",[])],pe.prototype,"background",null);pe=_.x([_.d({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],pe);
_.T(pe,"ytd-info-panel-content-renderer",function(){if(r4W!==void 0)return r4W;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return r4W=y},{mode:_.xm("kevlar_poly_si_batch_j076")?1:2});var FLV;var U$V;var $$W;var KLJ;var OJW=function(){return _.v.apply(this,arguments)||this};
_.R(OJW,_.v);OJW.prototype.computeStyle=function(y){return y};
var PL=OJW;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],PL.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.e("design:type",String)],PL.prototype,"style_",void 0);PL=_.x([_.n6({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],PL);
_.T(PL,"yt-channel-thumbnail-with-link-renderer",function(){if(KLJ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;$$W===void 0&&($$W=document.createElement("template"));var Z=$$W;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);KLJ=y}y=KLJ;return y},{mode:2});var Ja=function(){var y=_.v.apply(this,arguments)||this;y.modernTypography=_.O("web_modern_typography");return y};
_.R(Ja,_.v);Ja.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"}}}};
Ja.prototype.computeTitleStyle=function(y){return y||null};
Ja.prototype.computeAvatarStyle=function(y){return y||null};
Ja.prototype.computeShowNavigationButton=function(y,W){return!(y==null||!y.navigationButton||W)};
var VK=Ja;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],VK.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.e("design:type",String)],VK.prototype,"titleStyle",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.e("design:type",String)],VK.prototype,"avatarStyle",void 0);_.x([_.L(),_.e("design:type",Boolean)],VK.prototype,"hideNavigationButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],VK.prototype,"isModernSd",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],VK.prototype,"modernTypography",void 0);
VK=_.x([_.d({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],VK);
_.T(VK,"ytd-rich-list-header-renderer",function(){if(U$V!==void 0)return U$V;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return U$V=y},{mode:_.xm("kevlar_poly_si_batch_j058")?1:2});var g5m=function(){return _.v.apply(this,arguments)||this};
_.R(g5m,_.v);g5m.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]]"}}}}}};
var Ce=g5m;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ce.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Ce.prototype,"isSearch",void 0);Ce=_.x([_.d({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Ce);
_.T(Ce,"ytd-preview-card-renderer",function(){if(FLV!==void 0)return FLV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return FLV=y},{mode:1});var R3i;var QK=function(){return _.v.apply(this,arguments)||this};
_.R(QK,_.v);QK.prototype.configureRendererStamper=function(){return{"data.menu":Zc}};
QK.prototype.dataChanged=function(){var y=this.get("colorExtractionPalette.section1Color",this.data);y=_.$$(y);_.wM(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":y})};
QK.prototype.computeCardStyle=function(y){return this.get("style.value",y)||null};
var Aa=QK;Aa.prototype.dataChanged=Aa.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],Aa.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Aa.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.e("design:type",String)],Aa.prototype,"cardStyle",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Aa.prototype,"dataChanged",null);Aa=_.x([_.d({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Aa);
_.T(Aa,"ytd-compact-channel-recommendation-card-renderer",function(){if(R3i!==void 0)return R3i;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return R3i=y},{mode:1});var l4T;var E5V;var N1i=function(){var y=_.v.apply(this,arguments)||this;y.alignAuto=!1;y.collapsed=!0;y.isToggled=!1;y.alwaysCollapsed=!1;y.canToggle=!0;y.collapsedHeight=80;y.disableToggle=!1;y.alwaysToggleable=!1;y.reversed=!1;y.shouldUseNumberOfLines=!1;y.recomputeOnResize=!1;y.canToggleJobId=0;y.lastReversed=!1;return y};
_.R(N1i,_.v);_.f=N1i.prototype;_.f.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.f.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.f.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var y=_.p(this.hostElement),W=y.childNodes,c=document.createDocumentFragment(),Z=y.childNodes.length-1;Z>=0;Z--)_.p(c).appendChild(W[Z]);_.O("enable_shadydom_free_scoped_node_methods")?_.x$(this.hostElement).appendChild(c):y.appendChild(c)}};
_.f.ready=function(){var y=this;_.O0(function(){y.initChildrenObserver()},1)};
_.f.detached=function(){this.detachObserver()};
_.f.toggle=function(y,W){this.canToggle&&(this.isToggled=W,_.Z2(this.hostElement,"yt-refit"),y&&y.stopPropagation())};
_.f.reset=function(){this.childrenChanged()};
_.f.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.f.computeIsMoreVisible=function(y,W){return y&&!W};
_.f.computeShouldUseNumberOfLines=function(y){try{return!!y&&window.CSS.supports("-webkit-line-clamp","1")}catch(W){}return!1};
_.f.computeIsLessVisible=function(y,W){return y&&W};
_.f.observeCollapsedHeightAndMaxLines=function(){var y=this.collapsedHeight,W=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.wM(this.hostElement,{"--ytd-expander-max-lines":""+W,"--ytd-expander-collapsed-height":""}):_.wM(this.hostElement,{"--ytd-expander-collapsed-height":y+"px","--ytd-expander-max-lines":""})};
_.f.handleMoreTap=function(y){this.disableToggle||(_.Z2(this.hostElement,"yt-expander-more-tapped"),this.toggle(y,!0))};
_.f.handleLessTap=function(y){_.Z2(this.hostElement,"yt-expander-less-tapped");this.toggle(y,!1)};
_.f.initChildrenObserver=function(){var y=this;this.observer=new MutationObserver(function(){y.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.f.childrenChanged=function(){var y=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){LN(function(){y.canToggleJobId=0;y.calculateCanCollapse()})}))};
_.f.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};
_.f.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.f.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("collapsed-changed",this.collapsed))};
_.f.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("is-toggled-changed",this.isToggled))};
_.f.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("can-toggle-changed",this.canToggle))};
_.dJ.Object.defineProperties(N1i.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
var ha=N1i;ha.prototype.canToggleChangedForBinding=ha.prototype.canToggleChangedForBinding;ha.prototype.isToggledChangedForBinding=ha.prototype.isToggledChangedForBinding;ha.prototype.collapsedChangedForBinding=ha.prototype.collapsedChangedForBinding;ha.prototype.observeCollapsedHeightAndMaxLines=ha.prototype.observeCollapsedHeightAndMaxLines;ha.prototype.onIronResize=ha.prototype.onIronResize;ha.prototype.reversedChanged=ha.prototype.reversedChanged;ha.prototype.toggledChanged=ha.prototype.toggledChanged;
ha.prototype.alwaysToggleableChanged=ha.prototype.alwaysToggleableChanged;_.x([_.C(_.K7),_.e("design:type",Object)],ha.prototype,"ironResizableBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ha.prototype,"alignAuto",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ha.prototype,"collapsed",void 0);_.x([_.L(),_.e("design:type",Object)],ha.prototype,"isToggled",void 0);_.x([_.L(),_.e("design:type",Object)],ha.prototype,"alwaysCollapsed",void 0);
_.x([_.L(),_.e("design:type",Object)],ha.prototype,"canToggle",void 0);_.x([_.L(),_.e("design:type",Object)],ha.prototype,"collapsedHeight",void 0);_.x([_.L(),_.e("design:type",Object)],ha.prototype,"disableToggle",void 0);_.x([_.L(),_.e("design:type",Object)],ha.prototype,"alwaysToggleable",void 0);_.x([_.L(),_.e("design:type",Object)],ha.prototype,"reversed",void 0);_.x([_.L(),_.e("design:type",Number)],ha.prototype,"maxNumberOfLines",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.e("design:type",Object)],ha.prototype,"shouldUseNumberOfLines",void 0);_.x([_.L(),_.e("design:type",Object)],ha.prototype,"recomputeOnResize",void 0);_.x([_.jj("#content"),_.e("design:type",HTMLDivElement)],ha.prototype,"content",void 0);_.x([_.Gs("alwaysToggleable"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"alwaysToggleableChanged",null);
_.x([_.Gs("isToggled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"toggledChanged",null);_.x([_.A("canToggleJobId"),_.e("design:type",Object),_.e("design:paramtypes",[])],ha.prototype,"isResetting",null);_.x([_.H("reversed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"reversedChanged",null);
_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"onIronResize",null);_.x([_.H("maxNumberOfLines","collapsedHeight"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"observeCollapsedHeightAndMaxLines",null);_.x([_.H("collapsed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"collapsedChangedForBinding",null);
_.x([_.H("isToggled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"isToggledChangedForBinding",null);_.x([_.H("canToggle"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ha.prototype,"canToggleChangedForBinding",null);ha=_.x([_.d({disableElementRegistration:!0,is:"ytd-expander"})],ha);
_.T(ha,"ytd-expander",function(){if(E5V!==void 0)return E5V;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return E5V=y},{mode:1});var BL=function(){return _.v.apply(this,arguments)||this};
_.R(BL,_.v);BL.prototype.computeIsCarousel=function(y){return!!y.isCarousel};
BL.prototype.observeLightsourcePalette=function(){var y,W=(y=this.data)==null?void 0:y.vibrantsourceColorPaletteData;W&&_.nx(this.hostElement,W)};
BL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var HL=BL;HL.prototype.observeLightsourcePalette=HL.prototype.observeLightsourcePalette;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],HL.prototype,"data",void 0);_.x([_.L({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],HL.prototype,"isCarousel",void 0);
_.x([_.H("data.vibrantsourceColorPaletteData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],HL.prototype,"observeLightsourcePalette",null);HL=_.x([_.d({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],HL);
_.T(HL,"ytd-media-upsell-renderer",function(){if(l4T!==void 0)return l4T;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return l4T=y},{mode:2});var I4Q;var pDT=function(){var y=_.v.apply(this,arguments)||this;y.JSC$12670_playerEvents=new Map;y.listeningToPlayer=!1;y.startX=0;y.active=!1;y.shouldShowButtons=_.O("web_buttons_hidden_killswitch");y.isHighlighted=!1;y.useHighlightStyling=_.O("web_enable_deeper_metadata_highlight_styling");y.modern=_.O("kevlar_modern_sd");y.enableProblemWalkthrough=_.O("problem_walkthrough_sd");return y};
_.R(pDT,_.v);_.f=pDT.prototype;
_.f.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}}}}}};
_.f.created=function(){this.JSC$12670_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.f.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.qO(this,this.onRepeatButtonToggle));_.O("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.qO(this,this.onActiveUpdate))};
_.f.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.qO(this,this.onRepeatButtonToggle));_.O("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.qO(this,this.onActiveUpdate))};
_.f.onDataChanged=function(){this.removePlayerListeners()};
_.f.onColorPaletteChange=function(){var y={},W;if(_.NO()==="USER_INTERFACE_THEME_DARK"&&((W=this.data)==null?0:W.darkColorPalette)){var c=this.data.darkColorPalette;y["--ytd-macro-markers-list-item-background-color"]=_.KZ(this.get("section2Color",c))}else{var Z;_.NO()==="USER_INTERFACE_THEME_LIGHT"&&((Z=this.data)==null?0:Z.lightColorPalette)&&(c=this.data.lightColorPalette,y["--ytd-macro-markers-list-item-background-color"]=_.KZ(this.get("section3Color",c)))}c?(y["--ytd-macro-markers-list-item-title-color"]=
_.KZ(this.get("primaryTitleColor",c)),y["--ytd-macro-markers-list-item-secondary-color"]=_.KZ(this.get("secondaryTitleColor",c)),y["--ytd-macro-markers-list-item-timestamp-background-color"]=_.KZ(this.get("section1Color",c)),this.customButtonProperties={customColors:{color:_.KZ(this.get("primaryTitleColor",c))}},this.useColorSampling=!0):(y["--ytd-macro-markers-list-item-background-color"]="initial",y["--ytd-macro-markers-list-item-title-color"]="initial",y["--ytd-macro-markers-list-item-secondary-color"]=
"initial",y["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.wM(this.hostElement,y)};
_.f.onEndpointMouseDown=function(y){this.startX=y.clientX};
_.f.onEndpointClick=function(y){var W=this,c,Z,G;return _.m(function(D){if(D.nextAddress==1){if(W.startX!==y.clientX)return y.preventDefault(),D.return();W.data&&W.ytRendererBehavior.logExplicitClick(W.data);if(!W.seekWithAnimationOnClick)return D.jumpTo(0);if(y.button!==0||y.shiftKey||y.altKey||y.metaKey||y.ctrlKey||_.Cx(_.Aq(y),W.hostElement,["BUTTON".toString()]))return D.return();y.stopPropagation();y.preventDefault();return W.data?_.n(D,_.Lx().getPlayerPromise(),3):D.return()}c=D.yieldResult;
G=(Z=_.g(W.data.onTap,_.Sb))==null?void 0:Z.startTimeSeconds;G!==void 0&&c.seekToTimeWithAnimation(G*1E3,_.v$(W.data.title));_.F2(D)})};
_.f.computeLayout=function(y){return y};
_.f.computeIsHighlighted=function(y){return!!y};
_.f.computeCarouselType=function(y){return y};
_.f.hideModernCarousel=function(y){return this.modern&&this.hideThumbnail(y)};
_.f.hideThumbnail=function(y){return this.enableProblemWalkthrough&&y!==null&&y==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.f.onRepeatButtonToggle=function(y){var W=this;y.detail.toggled&&_.Lx().getPlayerPromise().then(function(c){W.ytPlayerListenerBehavior.listenToPlayerEvents(c,W.JSC$12670_playerEvents);W.listeningToPlayer=!0})};
_.f.onLoopRangeChange=function(y){var W=_.p(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(W){var c=W.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",W.polymerController.data);if(c){var Z=Number(c.endTimeMs);if(Number(c.startTimeMs)!==(y==null?void 0:y.startTimeMs)||Z!==(y==null?void 0:y.endTimeMs))W.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.f.removePlayerListeners=function(){var y=this;this.listeningToPlayer&&_.Lx().getPlayerPromise().then(function(W){y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(W,y.JSC$12670_playerEvents);y.listeningToPlayer=!1})};
_.f.onActiveUpdate=function(y){this.active=y.detail.active};
var Le=pDT;Le.prototype.onColorPaletteChange=Le.prototype.onColorPaletteChange;Le.prototype.onDataChanged=Le.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],Le.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Le.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Le.prototype,"useCustomColors",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Le.prototype,"active",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Le.prototype,"shouldShowButtons",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.e("design:type",String)],Le.prototype,"layout",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.e("design:type",Object)],Le.prototype,"isHighlighted",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Le.prototype,"useHighlightStyling",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Le.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Le.prototype,"enableProblemWalkthrough",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.e("design:type",String)],Le.prototype,"carouselType",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Le.prototype,"useColorSampling",void 0);_.x([_.L(),_.e("design:type",Boolean)],Le.prototype,"seekWithAnimationOnClick",void 0);_.x([_.L(),_.e("design:type",Object)],Le.prototype,"customButtonProperties",void 0);
_.x([_.jj("#repeat-button"),_.e("design:type",HTMLElement)],Le.prototype,"repeatButton",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Le.prototype,"onDataChanged",null);_.x([_.H("data.lightColorPalette","data.darkColorPalette"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Le.prototype,"onColorPaletteChange",null);
Le=_.x([_.d({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Le);
_.T(Le,"ytd-macro-markers-list-item-renderer",function(){if(I4Q!==void 0)return I4Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return I4Q=y},{mode:1});var PkV;var J42;var VpV=function(){var y=_.v.apply(this,arguments)||this;y.modernTypography=_.O("web_modern_typography");return y};
_.R(VpV,_.v);var vL=VpV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],vL.prototype,"modernTypography",void 0);_.x([_.L(),_.e("design:type",Object)],vL.prototype,"data",void 0);vL=_.x([_.d({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],vL);
_.T(vL,"ytd-title-and-button-list-header-renderer",function(){if(J42!==void 0)return J42;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return J42=y},{mode:1});var CkE;var QDQ=new _.Sm("BUTTON_RENDERER_WIZ_TOKEN"),A4E=new _.Sm("BUTTON_RENDERER_TOKEN");_.dx=_.Ax(function(y){var W=_.U().resolve(_.xN(QDQ));if(W)return _.X(W,Object.assign({},y));var c=_.U().resolve(A4E);return c?_.X(s0g,null,function(){return _.X(dC,null,function(){var Z,G,D,Y,u,t,b,r,F,K,l,N;return void c(y.data(),{onButtonClickCallback:y.onButtonClickCallback,shouldShowIcons:(Z=y.shouldShowIcons)==null?void 0:Z.call(y),icon:(G=y.icon)==null?void 0:G.call(y),processAllEndpoints:(D=y.processAllEndpoints)==null?void 0:D.call(y),preventDefault:(Y=y.preventDefault)==null?void 0:Y.call(y),
stopPropagation:(u=y.stopPropagation)==null?void 0:u.call(y),disableButtonRendererClickHandling:(t=y.disableButtonRendererClickHandling)==null?void 0:t.call(y),className:(b=y.className)==null?void 0:b.call(y),buttonOverrides:(r=y.buttonOverrides)==null?void 0:r.call(y),forceModernIconButton:(F=y.forceModernIconButton)==null?void 0:F.call(y),isSubscribe:(K=y.isSubscribe)==null?void 0:K.call(y),alignByText:(l=y.alignByText)==null?void 0:l.call(y),forceDisabled:(N=y.forceDisabled)==null?void 0:N.call(y)})})}):
_.X(_.a2,null)},"W");
_.dx.idomCompat=!0;var h3T=_.Ax(function(y){var W=y.notification,c=_.Jx(y.useSquareAspectRatio,!1);return _.X(_.YN,{cond:function(){var Z,G;return(Z=W().responseText)==null?void 0:(G=Z.runs)==null?void 0:G.length},
then:function(){var Z={};return _.X("div",{class:_.Mi("yt-mini-game-card-view-model__dismissed-card",(Z["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!c()},Z["yt-mini-game-card-view-model--dismissed-square-card"]=c,Z))},_.X("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.X(_.YN,{cond:function(){return W().responseText.runs[0].text},
then:function(G){return _.X("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:G},G)}}),_.X(_.bg,{data:function(){return W().buttons}},{buttonRenderer:_.dx,
buttonViewModel:_.OV})))}})},"X");var S6V=_.Ax(function(y){y=_.V0(y,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var W=y.data,c=y.useFullWidth,Z=y.isDesktopWeb,G=y.addSearchResultTopMargin,D=function(){return W().layout},Y=function(){return W().title},u=function(){return W().genre},t=function(){return W().channelName},b=function(){return W().image},r=function(){return W().colorPalette},F=function(){return W().actionButton},K=function(){return W().overflowButton},l=function(){return W().avatar},
N=function(){var S={};
S=_.Mi("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(S["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Z()},S));
return _.X("div",{class:S},_.X(B1W,{imageData:b,colorPalette:r}),_.X(HJJ,{onTap:function(){return W().onTap},
imageData:b,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.X(_.YN,{cond:function(){return!Z()},
then:function(){return _.X(_.a2,null,_.X(LLW,{layout:D,colorPalette:r,isDesktopWeb:Z,overflowButton:K,avatar:l,onTap:function(){return W().onTap},
genre:u,title:Y,channelName:t,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.X(SA,{actionButton:F}))}}))},P=function(){var S={};
S=_.Mi((S["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Z()},S["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Z()},S["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return G()},S));
return _.X("div",{class:S},N(),_.X(v53,{description:function(){return W().description},
isDesktopWeb:Z,title:Y,genre:u,onTap:function(){return W().onTap},
actionButton:F,overflowButton:K,avatar:l,channelName:t}))},V=function(){var S=function(){var M;
return(M=W().entityRedesignExperiments)==null?void 0:M.changePlayablesLayoutWithCta},cy={};
cy=_.Mi("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(cy["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return S()},cy["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Z()},cy["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Z()&&W().width===135},cy["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Z()},cy["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!S()&&Z()&&W().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},cy["yt-mini-game-card-view-model--big-metadata-font"]=function(){return W().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},cy["yt-mini-game-card-view-model--use-full-width"]=function(){return c()},cy["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!F()},cy));
return _.X("div",{class:cy},_.X(_.YN,{cond:function(){return S()},
then:function(){return _.X(_.a2,null,_.X(d$Q,{entityRedesignExperiments:function(){return W().entityRedesignExperiments},
colorPalette:r,isDesktopWeb:Z,onTap:function(){return W().onTap},
accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
actionButton:F,imageData:b}),_.X(LLW,{layout:D,colorPalette:r,isDesktopWeb:Z,overflowButton:K,avatar:l,onTap:function(){return W().onTap},
genre:u,title:Y,channelName:t,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.X(_.YN,{cond:function(){return!!S()===!1&&F()},
then:function(){return _.X(SA,{actionButton:F})}}))},
else:function(){return _.X(_.a2,null,_.X(B1W,{imageData:b,colorPalette:r}),_.X(HJJ,{onTap:function(){return W().onTap},
imageData:b,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.X(LLW,{layout:D,colorPalette:r,isDesktopWeb:Z,overflowButton:K,avatar:l,onTap:function(){return W().onTap},
genre:u,title:Y,channelName:t,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}),_.X(SA,{actionButton:F}))}}))},Q=function(){var S={};
S=_.Mi("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(S["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Z()},S["yt-mini-game-card-view-model--use-full-width"]=function(){return c()},S));
return _.X("div",{class:S},_.X(HJJ,{onTap:function(){return W().onTap},
imageData:b,accessibilityText:function(){return W().accessibilityText},
overlayBadgeText:function(){return W().overlayBadgeText},
iconName:function(){return W().iconName},
unplayableInlinePlaybackIconName:function(){return W().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.X(LLW,{layout:D,colorPalette:r,isDesktopWeb:Z,overflowButton:K,avatar:l,onTap:function(){return W().onTap},
genre:u,title:Y,channelName:t,entityRedesignExperiments:function(){return W().entityRedesignExperiments}}))};
return _.X("mini-game-card-view-model",{class:y.className},_.X(_.u1,null,_.X(_.sE,{when:function(){return D()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return V()}),_.X(_.sE,{when:function(){return D()==="MINI_APP_LAYOUT_SQUARE"}},function(){return Q()}),_.X(_.sE,{when:function(){return D()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return P()})))},"Y");
S6V.idomCompat=!0;var SA=_.Ax(function(y){var W=_.Jx(y.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.X(_.bg,{data:y.actionButton},{buttonViewModel:function(c){return _.X("div",{class:W},_.X(_.OV,{data:c.data}))}})},"Z"),HJJ=_.Ax(function(y){var W=y.onTap;
var c=y.imageData;var Z=y.accessibilityText;var G=y.overlayBadgeText;var D=y.iconName;var Y=y.unplayableInlinePlaybackIconName;y=y.isDesktopWeb;return _.X(_.oL,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:W},_.X(_.J3,{data:c,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Z==null?void 0:Z())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.X(T1J,{overlayBadgeText:G,iconName:D,unplayableInlinePlaybackIconName:Y,isDesktopWeb:y}))},"$"),T1J=_.Ax(function(y){var W=y.overlayBadgeText;
var c=y.iconName;var Z=y.unplayableInlinePlaybackIconName;var G=y.isDesktopWeb;return _.X("div",{class:"yt-mini-game-card-view-model__badge-container"},_.X(_.YN,{cond:c,then:function(D){return _.X("div",{class:"yt-mini-game-card-view-model__badge"},_.X("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.X(_.Gb,{icon:D,className:"yt-mini-game-card-view-model__icon"}),_.X("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},W)))}}),_.X(_.YN,{cond:function(){return!c()&&
W()},
then:function(){return _.X("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},W)}}),_.X(_.YN,{cond:function(){return Z()&&G()},
then:function(){return _.X("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.X(_.Gb,{icon:Z,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"aa"),B1W=_.Ax(function(y){var W=y.colorPalette;
var c=y.imageData;var Z=function(){return W().vibrantColorPalette?W().vibrantColorPalette.section2Color:W().sectionTwoColor};
return _.X(_.a2,null,_.X("div",{class:"yt-mini-game-card-view-model__background-base",style:_.cF({"background-color":function(){return Ot(Z(),"1")}})}),_.X("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.cF({"background-image":function(){return"url("+c().sources[0].url+")"}})}),_.X("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.cF({background:function(){return"linear-gradient(180deg,\n    "+Ot(Z(),".8")+" 0%,\n    "+Ot(Z(),".4")+" 25%,\n    "+Ot(W().vibrantColorPalette?W().vibrantColorPalette.section4Color:W().sectionFourColor,".8")+" 100%)"}})}))},"ba"),LLW=_.Ax(function(y){var W=y.layout;
var c=y.colorPalette;var Z=y.overflowButton;var G=y.avatar;var D=y.onTap;var Y=y.title;var u=y.channelName;var t=y.entityRedesignExperiments;var b=y.genre;var r=function(){var K;return W()!=="MINI_APP_LAYOUT_SQUARE"&&((K=c())==null?0:K.textPrimaryColor)?"color: "+Ot(c().textPrimaryColor,".7"):""},F=function(){var K;
return t==null?void 0:(K=t())==null?void 0:K.changePlayablesLayoutWithCta};
return _.X("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.X(_.YN,{cond:G,then:function(){return _.X("div",{class:"yt-mini-game-card-view-model__avatar"},_.X(_.bg,{data:G},{avatarViewModel:_.Om}))}}),_.X(_.oL,{command:D,
className:"yt-mini-game-card-view-model__metadata-details"},_.X("h3",{class:"yt-mini-game-card-view-model__title",title:Y},Y),_.X(_.YN,{cond:G,then:function(){return _.X("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.X("span",{class:"yt-mini-game-card-view-model__genre",title:u,style:r},u),_.X("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:r},b))},
else:function(){return _.X(_.YN,{cond:F,then:function(){return _.X("span",{class:"yt-mini-game-card-view-model__genre",title:b},b)},
else:function(){return _.X("span",{class:"yt-mini-game-card-view-model__genre",title:b,style:r},b)}})}})),_.X("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.X(_.bg,{data:Z},{buttonViewModel:function(K){var l=K.data;
return _.X(_.OV,{data:function(){return Object.assign({},l(),{customFontColor:F()?void 0:l().customFontColor})}})}})))},"ca"),d$Q=_.Ax(function(y){var W=y.entityRedesignExperiments;
var c=y.colorPalette;var Z=y.isDesktopWeb;var G=y.onTap;var D=y.accessibilityText;var Y=y.overlayBadgeText;var u=y.iconName;var t=y.unplayableInlinePlaybackIconName;var b=y.actionButton;y=y.imageData;var r=function(){var F;return W==null?void 0:(F=W())==null?void 0:F.changePlayablesLayoutWithCta};
return _.X("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.X(B1W,{imageData:y,colorPalette:c}),_.X(HJJ,{onTap:G,imageData:y,accessibilityText:D,overlayBadgeText:Y,iconName:u,unplayableInlinePlaybackIconName:t,isDesktopWeb:Z}),_.X(_.YN,{cond:function(){return(r==null?void 0:r())&&(b==null?void 0:b())},
then:function(){return _.X(SA,{actionButton:b})}}))},"da"),v53=_.Ax(function(y){var W=y.description;
var c=y.isDesktopWeb;var Z=y.title;var G=y.genre;var D=y.onTap;var Y=y.actionButton;var u=y.overflowButton;var t=y.avatar;y=y.channelName;var b={};b=_.Mi("yt-mini-game-card-view-model--search-result-metadata-wrapper",(b["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=c,b["yt-mini-game-card-view-model--show-unplayable-on-hover"]=c,b["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!c()},b));
var r={};r=_.Mi("yt-mini-game-card-view-model__search-result-info-row",(r["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!c()},r));
return _.X("div",{class:b},_.X("div",{class:r},_.X(_.oL,{command:D,className:"yt-mini-game-card-view-model__metadata-details"},_.X("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.X("span",{class:"yt-mini-game-card-view-model__genre",title:G},G)),_.X(SA,{actionButton:Y,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.X("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.X(_.bg,{data:u},{buttonViewModel:_.OV}))),_.X("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.X("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.X("div",{class:"yt-mini-game-card-view-model__avatar"},_.X(_.bg,{data:t},{avatarViewModel:function(F){var K=F.data;return _.X(_.Om,{data:function(){return Object.assign({},K(),{avatarImageSize:c()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.X(_.oL,{command:D,
className:"yt-mini-game-card-view-model__description"},_.X("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},y)),_.X(_.oL,{command:D,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.X("div",null)))),_.X(_.YN,{cond:c,then:function(){return _.X(_.oL,{command:D,className:"yt-mini-game-card-view-model__description"},W)}}))},"ea");var a4T={isAdsVideo:!0},x$J={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},iJV={showPlayerControls:!1,videoPreviewDurationMs:15E3},kdI={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.O("web_shorts_imp_fullwidth_killswitch")},MpV={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var e32=function(){var y=_.v.apply(this,arguments)||this;y.isSearch=!1;y.isRichGrid=!1;return y};
_.R(e32,_.v);_.f=e32.prototype;_.f.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.f.dismissibleItemOnYtServiceRequestSent=function(y,W){W.actions&&this.dismissibleItemProcessActions(y,W.actions)};
_.f.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.f.dismissibleItemProcessActions=function(y,W){for(var c=0;c<W.length;c++){var Z=W[c];_.g(Z,_.sx)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.g(Z,_.sx)),y.stopPropagation())}};
_.f.dismissibleItemHandleReplaceEnclosingAction=function(y){this.dismissedRenderer=y.item;this.isDismissed=!0};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12702_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:MpV}))};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$12702_inlinePreviewHoverListener)==null||js(y)};
_.f.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.f.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var y=this.data.layout==="MINI_APP_LAYOUT_SQUARE";pN(h3T)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:y===void 0?!1:y})}else pN(S6V)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
var TQ=e32;TQ.prototype.experimentalPropertiesChanged=TQ.prototype.experimentalPropertiesChanged;TQ.prototype.dataChanged=TQ.prototype.dataChanged;TQ.prototype.dismissibleItemOnRequestSent=TQ.prototype.dismissibleItemOnRequestSent;TQ.prototype.dismissibleItemOnYtServiceRequestSent=TQ.prototype.dismissibleItemOnYtServiceRequestSent;_.x([_.C(fA8),_.e("design:type",Object)],TQ.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TQ.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],TQ.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],TQ.prototype,"isDismissed",void 0);_.x([_.L(),_.e("design:type",Object)],TQ.prototype,"dismissedRenderer",void 0);_.x([_.jj(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.e("design:type",HTMLElement)],TQ.prototype,"thumbnailWrapper",void 0);
_.x([_.jj("mini-game-card-view-model"),_.e("design:type",HTMLElement)],TQ.prototype,"miniGameCardViewModel",void 0);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],TQ.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.x([_.B("yt-service-request-sent-button-renderer"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],TQ.prototype,"dismissibleItemOnRequestSent",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TQ.prototype,"dataChanged",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],TQ.prototype,"isRichGrid",void 0);_.x([_.H("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TQ.prototype,"experimentalPropertiesChanged",null);
TQ=_.x([_.n6({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],TQ);
_.T(TQ,"ytd-mini-game-card-view-model",function(){if(CkE!==void 0)return CkE;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return CkE=y},{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var wD3;var q6E;var kdV=function(){return _.SN.apply(this,arguments)||this};
_.R(kdV,_.SN);kdV.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
kdV.prototype.getContinuationUrl=function(y){var W={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.HI(y,W)};
var jJJ=kdV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jJJ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jJJ.prototype,"data",void 0);jJJ=_.x([_.n6({is:"yt-reload-continuation",noInjection:!0})],jJJ);var yu5;var W15;var cuE=function(){var y=_.v.apply(this,arguments)||this;y.notificationData={};return y};
_.R(cuE,_.v);_.f=cuE.prototype;_.f.isMenuExpanded=function(y){return y&&y.length<=1?"undefined":"false"};
_.f.dataChanged_=function(){this.selected=void 0;var y=this.computeSelectedIndex_(this.data);y>=0&&(this.selected=y);y=this.data&&this.data.length>1;_.i0(this.hostElement,"has-items",y);_.p(this.hostElement).querySelector("#label").tabIndex=y?0:-1};
_.f.onDropdownOpen=function(){var y=_.NR();if(this.parentTrackingParams&&this.data){var W=_.Dz(this.parentTrackingParams);this.data.forEach(function(c){y&&W&&c.trackingParams&&(c=_.Dz(c.trackingParams),_.HA(y,W,c),_.vA(y,[c]))})}else this.parentTrackingParams||_.Rs(new _.ul("No parent tracking params passed in for yt-dropdown-menu."))};
_.f.hasNotification=function(y){var W;if(y.targetId&&((W=this.notificationData)==null?0:W.targetId)){var c;return y.targetId===((c=this.notificationData)==null?void 0:c.targetId)}};
_.f.computeSelectedIndex_=function(y){if(y)for(var W=0,c=y.length;W<c;W++)if(y[W].selected)return W;return-1};
_.f.computeLabel_=function(y){return this.data&&y!=void 0?this.data[y].title:""};
_.f.computeShowIcon_=function(y,W){return!W&&!!y};
_.f.computeVerticalOffset_=function(y){return y?36:0};
_.f.computeEndpoint_=function(y){return y.endpoint||y.navigationEndpoint};
_.f.onLabelClick_=function(y){this.data&&this.data.length<=1?y.stopPropagation():this.menuExpanded="true"};
_.f.onIronActivate_=function(y){y=y.detail.item;var W=_.p(this.hostElement).querySelector("#repeat").itemForElement(y);if(W&&W.trackingParams){var c=_.NR(),Z=_.Dz(W.trackingParams);c&&_.SG(c,Z)}if(W&&W.serviceEndpoint)_.O("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(W.serviceEndpoint):_.D2(this.hostElement,[W.serviceEndpoint]),_.Z2(this.hostElement,"yt-playlist-reloading");else a:{if((W=y.querySelector("yt-supported-renderers"))&&(W=
W.rendererElement)&&W.is=="yt-reload-continuation"){W.trigger();break a}(y=y.querySelector("yt-reload-continuation"))&&y.trigger()}};
_.f.onTap_=function(y){y.preventDefault()};
_.f.onItemTap_=function(y){this.ytEndpointBehavior.onEndpointTap_(y)};
_.f.onLinkFocus_=function(y){try{var W=y.target}catch(Z){}if(W){var c=W.querySelector("tp-yt-paper-item");c&&_.gp(this,"focus",function(){c.focus()})}};
_.f.onMenuClose_=function(){this.menuExpanded="false"};
_.f.isLabelIconActive_=function(y){return y==="true"};
_.f.computeHasSubtitle_=function(y){return!!y};
_.f.computeHrefForItem_=function(y){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(y))};
_.f.updateSelectedFromBinding=function(y){this.selected=y.detail.value};
var an=cuE;an.prototype.onMenuClose_=an.prototype.onMenuClose_;an.prototype.onTap_=an.prototype.onTap_;an.prototype.onIronActivate_=an.prototype.onIronActivate_;an.prototype.onDropdownOpen=an.prototype.onDropdownOpen;an.prototype.dataChanged_=an.prototype.dataChanged_;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],an.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.wU.YtEndpointBehavior),_.e("design:type",Object)],an.prototype,"ytEndpointBehavior",void 0);
_.x([_.L(),_.e("design:type",Array)],an.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],an.prototype,"parentTrackingParams",void 0);_.x([_.L(),_.e("design:type",Object)],an.prototype,"selected",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],an.prototype,"useLabel",void 0);_.x([_.L(),_.e("design:type",String)],an.prototype,"icon",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],an.prototype,"iconLabel",void 0);
_.x([_.L(),_.e("design:type",String)],an.prototype,"ariaLabel",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],an.prototype,"disabled",void 0);_.x([_.L({computed:"isMenuExpanded(data)"}),_.e("design:type",String)],an.prototype,"menuExpanded",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],an.prototype,"closeOnActivate",void 0);_.x([_.L({reflectToAttribute:!0,value:_.O("web_modern_buttons")}),_.e("design:type",Boolean)],an.prototype,"modernButtons",void 0);
_.x([_.L(),_.e("design:type",Object)],an.prototype,"notificationData",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],an.prototype,"dataChanged_",null);_.x([_.B("paper-dropdown-open"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],an.prototype,"onDropdownOpen",null);
_.x([_.B("iron-activate"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],an.prototype,"onIronActivate_",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],an.prototype,"onTap_",null);_.x([_.B("iron-overlay-closed"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],an.prototype,"onMenuClose_",null);
an=_.x([_.n6({is:"yt-dropdown-menu",disableElementRegistration:!0})],an);
_.T(an,"yt-dropdown-menu",function(){if(W15===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;yu5===void 0&&(yu5=document.createElement("template"));var Z=yu5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);W15=y}y=W15;return y},{mode:2});var xa=function(){var y=_.v.apply(this,arguments)||this;y.hasNotification=!1;return y};
_.R(xa,_.v);xa.prototype.computeId=function(y){return y};
xa.prototype.computeHorizontalAlign=function(y){return y?"right":"left"};
xa.prototype.computeAccessibilityLabel=function(y){var W,c;return((W=y.accessibility)==null?void 0:(c=W.accessibilityData)==null?void 0:c.label)||null};
xa.prototype.notificationDataChanged=function(){var y;this.hasNotification=!!this.notificationData&&!((y=this.data)==null?0:y.icon)};
var iB=xa;iB.prototype.notificationDataChanged=iB.prototype.notificationDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$S.YtLiveChatTooltipTargetingBehavior),_.e("design:type",Object)],iB.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iB.prototype,"data",void 0);
_.x([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.e("design:type",String)],iB.prototype,"id",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],iB.prototype,"isRightAligned",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],iB.prototype,"disabled",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],iB.prototype,"closeOnActivate",void 0);_.x([_.L(),_.e("design:type",Object)],iB.prototype,"notificationData",void 0);
_.x([_.L(),_.e("design:type",Object)],iB.prototype,"hasNotification",void 0);_.x([_.H("notificationData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iB.prototype,"notificationDataChanged",null);iB=_.x([_.n6({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],iB);
_.T(iB,"yt-sort-filter-sub-menu-renderer",function(){if(q6E===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;wD3===void 0&&(wD3=document.createElement("template"));var Z=wD3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);q6E=y}y=q6E;return y},{mode:2});_.eu(o9w);
var Zki=_.Ax(function(y){var W=y.children;var c=y.className;var Z=y.style;var G=y.role;var D=y.ariaSelected;var Y=y.ariaLabel;var u=y.ariaHidden;var t=y.ariaLabelledby;var b=y.ariaDescribedby;var r=y.command;var F=y.elementsCommand;var K=y.forceNewState;var l=y.tabIdentifier;var N=y.target;var P=y.tabIndex;var V=y.stopPropagation;y=_.Yk(function(){var Q=_.KN({innertubeCommand:r==null?void 0:r(),elementsCommand:F==null?void 0:F(),forceNewState:K==null?void 0:K(),stopPropagation:(V==null?void 0:V())!==
!1});Q||(Q={});Q["aria-hidden$"]=u==null?void 0:u();var S;Q.tabindex$=(S=P==null?void 0:P())!=null?S:Q.tabindex$;var cy;Q["force-new-state$"]=(cy=K==null?void 0:K())!=null?cy:Q["force-new-state$"];var M;Q.role$=(M=G==null?void 0:G())!=null?M:Q.role$;var fa;Q["aria-hidden$"]=(fa=u==null?void 0:u())!=null?fa:Q["aria-hidden$"];var jI;Q.target$=(jI=N==null?void 0:N())!=null?jI:Q.target$;return Q},void 0,"SU0Mnc");
return _.X(_.oL,{aTagConfig:y,className:c,style:Z,ariaLabel:Y,ariaLabelledby:t,ariaDescribedby:b,ariaSelected:D,tabIdentifier:l},W)},"fa");var DzH=_.O("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",Gh3=_.qi(zHH);_.eu(zHH);_.A3(Gh3,"place-data-view-model",{props:{data:_.Ix}});var fei=new _.Sm("INLINE_PLAYBACK_HOOK_TOKEN");var Kj1=function(y){this.setActiveSlideIndex=y;this.jobIds=[];this.isSlideshowPlaying=!1},g9H=function(y){if(y.isSlideshowPlaying){y.isSlideshowPlaying=!1;
for(var W=y.jobIds,c=0,Z=W.length;c<Z;c++)_.KX.cancelJob(W[c]);y.jobIds.length=0}},OEg=function(y,W){y.isSlideshowPlaying||(y.isSlideshowPlaying=!0,oUT(y),Dc0(y,W,0))},oUT=function(y){_.vh(_.KX,function(){y.setActiveSlideIndex(0)},1)},Dc0=function(y,W,c){y.jobIds.push(_.vh(_.KX,function(){var Z=c<W-1?c+1:0;
y.setActiveSlideIndex(Z);Dc0(y,W,Z)},1800))};var XrI=new _.Sm("IMAGE_ON_LOAD_HANDLER_TOKEN");var zAW=_.Ax(function(y){return _.X("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.X(_.YN,{cond:function(){var W;return(W=y.data())==null?void 0:W.thumbnail},
then:function(W){return _.X(_.J3,{data:W,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ga");_.MB=_.Ax(function(y){var W=y.data;var c=y.lockupExperiments;y={};return _.X("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.X("div",{class:_.Mi("ytThumbnailOverlayButtonViewModelButton",(y.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Z;return c&&((Z=c())==null?void 0:Z.useLegacySizedIconButton)},y))},_.X(_.bg,{data:function(){return W().overlayButton}},{buttonViewModel:function(Z){return _.X(_.OV,{data:Z.data,
buttonOverrides:function(){var G;return c&&((G=c())==null?0:G.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ha");
_.MB.idomCompat=!0;var YKT=_.Ax(function(y){var W=_.j9(function(c){c.preventDefault();return!1});
return _.X("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":W},_.X(_.bg,{data:function(){return y.data().buttons}},{toggleButtonViewModel:function(c){return _.X("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.X(_.UV,{data:c.data}))}}))},"ia");
YKT.idomCompat=!0;var mc2=_.Ax(function(y){var W=function(){var c;return((c=_.g(y.data().rendererContext,_.Cp))==null?void 0:c.label)||""};
return _.X("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.X(_.YN,{cond:function(){return y.data().image},
then:function(){return _.X("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.X(_.J3,{data:function(){return y.data().image},
alt:W}))}}),_.X(_.YN,{cond:function(){return y.data().text},
then:function(){return _.X("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return y.data().text})}}))},"ja");var bEH=_.ug({thumbnailOverlayTitleViewModel:f4W,thumbnailOverlayBadgeViewModel:D$2,thumbnailBottomOverlayViewModel:iEV,thumbnailOverlayFullViewModel:mc2,thumbnailOverlayButtonViewModel:_.MB}),rFa=_.ug({thumbnailHoverOverlayViewModel:eHm,thumbnailHoverOverlayToggleActionsViewModel:YKT}),Fjw=_.ug({animatedThumbnailOverlayViewModel:zAW});_.eu(Uzf);var sJm=_.Ax(function(y){var W=[],c=function(){var F,K;return A7((F=y.width)==null?void 0:F.call(y),(K=y.height)==null?void 0:K.call(y))},Z=_.U().resolve(_.xN(XrI)),G=_.HO(function(){W.push("elRef.value set");
var F;(F=y.playbackRef)==null||F.call(y,{thumbnailElRef:G,thumbnail:y.data().image,thumbnailOverlays:y.data().overlays,thumbnailSize:c()})});
_.rj(function(){W.push("onInit");_.KL(function(){W.push("onCleanup")})});
var D=_.FP(mzO),Y=function(){var F,K;return(K=(F=y.aspectRatio)==null?void 0:F.call(y))!=null?K:0},u=function(){return(y.data().image?_.zQE(y.data().image):Y())<=1&&Y()===0},t=function(){return u()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},b=function(){G.value||_.Rs(new _.ul("Thumbnail elRef.value is null",W.join("\n")));
Z&&G.value&&Z(G.value)},r={};
return _.X("yt-thumbnail-view-model",{class:_.Mi("yt-thumbnail-view-model",y.className,function(){return $zF(Y())},function(){var F,K;
a:{var l=c(),N=(F=y.disableRounding)==null?void 0:F.call(y);F=(K=y.isClip)==null?void 0:K.call(y);if(!N&&!F)switch(l){case "large":K="yt-thumbnail-view-model--large";break a;case "small":K="yt-thumbnail-view-model--small";break a;default:K="yt-thumbnail-view-model--medium";break a}K=void 0}return K},(r["yt-thumbnail-view-model--cinematic"]=u,r)),
style:_.cF({"background-color":function(){var F,K=u()?(F=y.data().backgroundColor)==null?void 0:F.lightTheme:void 0;return K?Ot(K,"1"):void 0}}),
el:G},_.X(_.YN,{cond:u,then:function(){return _.X("div",{class:"yt-thumbnail-view-model__blurred-image"},_.X(_.J3,{data:function(){return y.data().image},
alt:"",contentMode:t,targetWidth:y.width,onload:b}))}}),_.X("div",{class:"yt-thumbnail-view-model__image"},_.X(_.J3,{data:function(){return y.data().image},
alt:"",contentMode:t,targetWidth:y.width,onload:b}),null),_.X(_.bg,{data:function(){return y.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:o5Z,thumbnailOverlayBadgeViewModel:function(F){return _.X(D$2,{data:F.data,thumbnailSize:c,isClip:y.isClip})},
thumbnailBottomOverlayViewModel:iEV,thumbnailOverlayFullViewModel:mc2,thumbnailOverlayButtonViewModel:function(F){return _.X(_.MB,{data:F.data,lockupExperiments:y.lockupExperiments})}}),_.X(_.bg,{data:function(){var F;
return((F=y.hovered)==null?0:F.call(y))?y.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(F){return _.X(wrQ,{data:F.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:YKT}),_.X(_.bg,{data:function(){var F;return((F=y.hovered)==null?0:F.call(y))&&D()?y.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:zAW}),_.X(_.YN,{cond:y.isClip,then:function(){return tUh()}}))},"ka"),uV2=_.O("web_enable_sink_lockups_batch")?sJm:Uzf,eA=_.O("web_enable_sink_lockups_batch")?sJm:_.qi(uV2,{callbacks:{playbackRef:!0}});
sJm.idomCompat={callbacks:{playbackRef:!0}};var RHH=_.ug({thumbnailViewModel:uV2});_.eu(lIO);var tFE=_.Ax(function(y){var W=_.z(_.G9(-1,void 0,"GEkecf")),c=W.next().value,Z=W.next().value;_.rj(function(){var G=new Kj1(Z);OEg(G,y.data().thumbnails.length);_.KL(function(){g9H(G)})});
return _.X("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.X(_.bg,{data:function(){return y.data().thumbnails}},{thumbnailViewModel:function(G,D){return _.X("div",{class:function(){var Y=!y.data().primaryThumbnail,u=D(),t=c(),b=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Y&&u===0&&b.push("yt-collection-thumbnail-slideshow--first-slide");u<=t&&b.push("yt-collection-thumbnail-slideshow--show-slide");return b.join(" ")}},_.X(eA,{data:G.data,
disableRounding:y.disableRounding}))}}))},"la"),P8D=_.O("web_enable_sink_lockups_batch")?tFE:lIO,nUZ=_.O("web_enable_sink_lockups_batch")?tFE:_.qi(lIO);
tFE.idomCompat=!0;var E9O=new _.Sm("DWELL_DETECTOR_REGISTRY_TOKEN");var prI=_.ug({thumbnailViewModel:uV2});_.eu(JFy);var bk5=_.Ax(function(y){var W=IIO(y.triggeringElement),c=function(){return!!y.data().primaryThumbnail};
return _.X("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.X(X4J,{stackEnabled:c,thumbnailSize:function(){var Z,G;return A7((Z=y.width)==null?void 0:Z.call(y),(G=y.height)==null?void 0:G.call(y))},
doubleStack:y.doubleStack,stackColor:function(){return y.data().stackColor}},_.X("div",null,_.X(_.bg,{data:function(){return y.data().primaryThumbnail}},{thumbnailViewModel:function(Z){var G={};
return _.X(eA,{data:Z.data,width:y.width,height:y.height,aspectRatio:y.aspectRatio,disableRounding:y.disableRounding,className:_.Mi((G["yt-collection-thumbnail-view-model--has-stacks"]=c,G)),hovered:y.hovered,playbackRef:y.playbackRef})}}),_.X(_.YN,{cond:function(){var Z;
return W()&&((Z=y.data().thumbnails)==null?void 0:Z.length)},
then:function(){return _.X("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.X(nUZ,{data:y.data,disableRounding:function(){return!c()}}))}}))))},"ma"),ru3=_.O("web_enable_sink_lockups_batch")?bk5:_.qi(JFy,{callbacks:{playbackRef:!0}});
bk5.idomCompat={callbacks:{playbackRef:!0}};
var X4J=_.Ax(function(y){var W=y.children;var c=y.stackEnabled;var Z=y.thumbnailSize;var G=y.doubleStack;var D=y.stackColor;var Y,u=(Y=_.U().resolve(_.xN(_.EH)))==null?void 0:Y();return _.X(_.YN,{cond:c,then:function(){return _.X(Gl8,{data:function(){var t,b;return{experimentEnabled:!0,thumbnailSize:Z(),doubleStack:G==null?void 0:G(),color:u?D==null?void 0:(t=D())==null?void 0:t.darkTheme:D==null?void 0:(b=D())==null?void 0:b.lightTheme,enableResponsiveMode:!1}}},W)},
else:function(){return W}})},"na");var F1Z=new _.Sm("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var qB;_.wx={calledOnce:!0,state:"visible"};qB={calledOnce:!0,state:"hidden"};_.ka=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;var Z=y.className;var G=y.delayedClassName;y=y.animationEntityKey;var D=_.HO(),Y=_.Jx(y,""),u=_.Zx(Etw,Y),t=function(){var jI,sD;return(sD=(jI=u())==null?void 0:jI.value)!=null?sD:!1},b=function(){_.PQ(_.o3("booleanEntity",Y(),{key:Y(),
value:!0}));Q=void 0};
y=_.z(_.WF(t));var r=y.next().value,F=y.next().value;y=_.z(_.WF(t));var K=y.next().value,l=y.next().value;y=_.z(_.WF(function(){var jI;return t()?(jI=W().styleTransitionConfig)==null?void 0:jI.destinationStyle:void 0}));
var N=y.next().value,P=y.next().value,V=function(){var jI=Object.assign({},W(),N()&&{style:N()}),sD,ED,N1=jI.label,bf=(sD=jI.interaction)==null?void 0:(ED=sD.accessibility)==null?void 0:ED.label;sD=jI.iconImage?jI.label&&jI.label.content?jI.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:N1,accessibilityLabel:bf,style:AFy(jI.style),type:hHE(jI.style),state:"active",size:QbD(jI.size),iconPosition:sD,disabled:!1,aTagConfig:C8O(jI,c)}},Q;
_.MF(D,{visibilityCallback:function(jI){var sD,ED=(sD=W().interaction)==null?void 0:sD.onFirstVisible;jI&&ED&&_.OH(ED)},
showOption:_.wx});var S=function(){return nJH(V(),!!W().iconImage)};
Z=_.Mi(function(){return"ytwAdButtonViewModelHost"},function(){return W().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var jI=!!W().delayedAppearanceConfig,sD=r();
return jI?sD?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var jI=!!W().delayedAppearanceConfig,sD=K();
return jI?sD?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!W().delayedAppearanceConfig||r()?G==null?void 0:G():""},Z!=null?Z:"");
var cy=function(){var jI,sD=(jI=W().delayedAppearanceConfig)==null?void 0:jI.delayedInvisibleSeconds;sD&&(Q=_.YY(_.KX,function(){F(!0);M()},sD*1E3))},M=function(){var jI,sD=(jI=W().delayedAppearanceConfig)==null?void 0:jI.delayedVisibleSeconds;
sD&&(Q=_.YY(_.KX,function(){l(!0);fa()},sD*1E3))},fa=function(){var jI,sD=(jI=W().styleTransitionConfig)==null?void 0:jI.styleTransitionSeconds,ED,N1=(ED=W().styleTransitionConfig)==null?void 0:ED.destinationStyle;
sD&&N1?Q=_.YY(_.KX,function(){P(N1);b()},sD*1E3):b()};
_.rj(function(){var jI;((jI=W().delayedAppearanceConfig)==null?0:jI.transitionDurationSeconds)&&D.value.style.setProperty("transition-duration",W().delayedAppearanceConfig.transitionDurationSeconds+"s");cy()});
_.KL(function(){Q&&_.KX.cancelJob(Q)});
return _.X("ad-button-view-model",{class:Z,el:D},_.X(_.YN,{cond:V,then:function(){return _.X(M8,{data:V,icon:function(){return _.X(_.YN,{cond:function(){return W().iconImage},
then:function(jI){return _.X(_.J3,{data:jI,alt:"",targetWidth:S,targetHeight:S,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"oa");var Uc5=_.Ax(function(y){var W=y.data;y=_.HO();_.MF(y,{visibilityCallback:function(c){var Z,G=(Z=W().interaction)==null?void 0:Z.onFirstVisible;c&&G&&_.OH(G)},
showOption:_.wx});return _.X("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:y},_.X("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.X(_.bg,{data:function(){return W().secondaryAdButton}},{adButtonViewModel:function(c){return _.X(_.ka,{data:c.data})}})),_.X("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.X(_.bg,{data:function(){return W().primaryAdButton}},{adButtonViewModel:function(c){return _.X(_.ka,{data:c.data})}})))},"pa");var $cE=_.Ax(function(y){var W=function(){var c;return((c=y.data())==null?void 0:c.answers)||[]};
return _.X("yt-survey-icons",{class:"ytSurveyIconsHost"},_.X("div",{class:"ytSurveyIconsHeader"},_.X("div",{class:"ytSurveyIconsTitle"},function(){var c;return(c=y.data())==null?void 0:c.text}),_.X("div",null,_.X(M8,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var c;(c=y.onDismiss)==null||c.call(y)}}},
iconName:"DISMISSAL"}))),_.X("div",null,_.X("div",{class:"ytSurveyIconsAnswers"},_.X(_.mC,{each:function(){return W()},
keyBy:"INDEX"},function(c,Z){return _.X("div",null,_.X(M8,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var G;(G=y.onSelect)==null||G.call(y,c(),Z)}}},
icon:function(){return _.X(_.Gb,{icon:function(){var G,D;return(G=c())==null?void 0:(D=G.icon)==null?void 0:D.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.X("div",{class:"ytSurveyIconsAnswersText"},_.X("div",null,function(){return W().length?W()[0].text:""}),_.X("div",null,function(){return W().length?W()[W().length-1].text:""}))))},"qa");var K1V=_.Ax(function(y){var W=_.z(_.G9(!1,void 0,"s8HkOb")),c=W.next().value,Z=W.next().value,G=_.Zx(irI,function(){var u;return(u=y.data().keys)==null?void 0:u.surveyEntityKey}),D=_.Zx(M$y,function(){var u;
return(u=y.data().keys)==null?void 0:u.surveyStateEntityKey});
_.BO("ytd-slimline-survey-show-action",function(){Z(!1)});
var Y=function(){var u,t;var b=(u=D())==null?void 0:(t=u.questionStack)==null?void 0:t[0];if(b!==void 0){var r,F;return(r=G())==null?void 0:(F=r.questions)==null?void 0:F[b]}};
W={};return _.X("yt-slimline-survey-view-model",{class:_.Mi("ytSlimlineSurveyViewModelHost",(W.ytSlimlineSurveyViewModelCollapsed=function(){return c()},W))},_.X("div",{class:"ytSlimlineSurveyViewModelContainer"},_.X(_.YN,{cond:function(){var u;
return((u=Y())==null?void 0:u.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.X($cE,{data:function(){return Y()},
onSelect:function(u,t){var b,r;return _.m(function(F){Z(!0);if(r=(b=y.data())==null?void 0:b.onSelectRating)_.OH(r),_.PQ(yaT(t));_.F2(F)})},
onDismiss:function(){Z(!0)}})}})))},"ra");var OkV=_.Ax(function(y){return _.X("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.X(_.bg,{data:function(){var W;return(W=y.data())==null?void 0:W.attachments}},{flexibleActionsViewModel:function(W){return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.X(kBm,{data:W.data,
layout:function(){var c;return((c=y.lockupStyle())==null?void 0:c.arrangement)===1?0:1},
justifyContentOverride:function(){var c;return((c=y.lockupStyle())==null?void 0:c.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(W){return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.X(K1V,{data:W.data}))},
expandableMetadataViewModel:function(W){W=W.data;var c;return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},(c=_.U().resolve(_.xN(F1Z)))==null?void 0:c({data:W}))},
adButtonGroupViewModel:function(W){return _.X("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.X(Uc5,{data:W.data}))}}))},"sa");var SYD=_.ey("rich_grid_min_item_width",310),v9F=_.ey("rich_grid_max_item_width",500);var WLg=_.Ax(function(y){var W=y.data;return _.X("br-nz-badge-shape",{class:_.Mi(function(){return qYE(W().brNzRatingBadgeType)}),
role:function(){return W().accessibilityText?"img":void 0},
"aria-label":function(){return W().accessibilityText}},function(){var c;
return(c=W())==null?void 0:c.text})},"ta");_.eu(c4I);var gU2,xwF;gU2=_.Ax(function(y){var W=function(){var c=y.data(),Z,G;return c?y4F(c,!((Z=y.workaroundShortsIsThumbnailBadge)==null||!Z.call(y)),(G=y.modern)==null?void 0:G.call(y)):void 0};
return _.X("yt-badge-view-model",{class:_.Mi("yt-badge-view-model-wiz",y.class)},_.X(_.u1,null,_.X(_.sE,{when:function(){var c;return!((c=W())==null||!c.brNzRatingBadgeType)}},function(){return _.X(WLg,{data:function(){return W()}})}),_.X(_.sE,{when:function(){return!!W()&&!W().brNzRatingBadgeType}},function(){return _.X(_.TZ,{data:function(){return W()}})})))},"ua");
xwF=_.O("web_enable_sink_lockups_batch")?gU2:c4I;_.j7=_.O("web_enable_sink_lockups_batch")?gU2:_.qi(c4I);gU2.idomCompat=!0;var Gdy,ZJ1;Gdy=16/9;ZJ1=2/3;_.y9=_.Ax(function(y){var W=y.data;var c=y.className;var Z=y.imageSizeConfig;var G=y.notifyOnLoaded;y=_.HO();var D=function(){return W().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Y=function(){var r;
return _.PG((r=W())==null?void 0:r.rendererContext)},u={};
u=(u["yt-content-preview-image-view-model-wiz"]=!0,u["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return D()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},u["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Y()},u);
var t=function(){var r,F;return(F=(r=_.g(W().rendererContext,_.Cp))==null?void 0:r.label)!=null?F:""},b=function(){return o5D(W())};
_.VL(y,function(){var r;return(r=W())==null?void 0:r.rendererContext});
return _.X("yt-content-preview-image-view-model",{el:y,role:function(){return Y()?"link":void 0},
tabindex:function(){return Y()?0:void 0},
class:_.Mi(c,u,function(){var r=D();var F=Z==null?void 0:Z();r=r==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||r==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||r==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||r==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(F==null?void 0:F.size)!=null&&F.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(F==null?void 0:F.size)!=null&&F.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 r}),
style:function(){return f4F(D(),W().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Z==null?void 0:Z(),D$g(b()),W().layoutWidth,W().layoutHeight)}},_.X(_.YN,{cond:b,
then:function(r){return _.X(_.J3,{data:r,alt:t,"data-disabled$":function(){return!t()},
notifyOnLoaded:G})}}),_.X(_.bg,{data:function(){var r;
return(r=W())==null?void 0:r.overlays}},{thumbnailHoverOverlayViewModel:wrQ,
thumbnailOverlayButtonViewModel:_.MB}))},"va");
_.y9.idomCompat=!0;var leQ=_.Ax(function(y){var W=y.data;var c=y.className;var Z=y.useSmallLayout;var G=y.useMediumText;y=_.HO();var D={};G=(D["yt-attribution-view-model-wiz"]=!0,D["yt-attribution-view-model-wiz--medium-text"]=G,D);_.VL(y,function(){var Y;return(Y=W())==null?void 0:Y.rendererContext});
return _.X("yt-attribution-view-model",{el:y,class:_.Mi(c,G)},_.X(_.YN,{cond:function(){return _.PG(W().rendererContext)},
then:function(){return _.X("button",{class:"yt-attribution-view-model-wiz--tappable"},_.X(RAQ,{data:W,useSmallLayout:Z}))},
else:function(){return _.X(RAQ,{data:W,useSmallLayout:Z})}}))},"wa"),RAQ=_.Ax(function(y){var W=y.data;
var c=y.useSmallLayout;var Z=function(){return{size:(c==null?0:c())?16:24}};
return _.X(_.a2,null,_.X(_.bg,{data:function(){return W().contentPreviewImage}},{contentPreviewImageViewModel:function(G){return _.X(_.y9,{data:G.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:Z})}}),_.X(_.bg,{data:function(){return W().badge}},{badgeViewModel:function(G){return _.X(_.j7,{data:G.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.X(_.YN,{cond:function(){return W().text},
then:function(){return _.X(_.Da,{text:function(){return W().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.X(_.YN,{cond:function(){return W().suffix},
then:function(){return _.X(_.Da,{text:function(){return W().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"xa");
leQ.idomCompat=!0;var n5w=_.ug({avatarStackViewModel:_.c4V,badgeViewModel:xwF});_.eu(r4F);var EUQ,NPW,IeZ,p45,Pqm,JuE,VFQ;EUQ=_.Ax(function(y){var W=y.delimiter;var c=y.max;var Z=y.index;var G=y.isStandalone;return _.X(_.YN,{cond:function(){return c()-1>Z()},
then:function(){var D={};return _.X("span",{class:_.Mi("yt-content-metadata-view-model-wiz__delimiter",(D["yt-content-metadata-view-model-wiz__delimiter--standalone"]=G,D)),"aria-hidden":!0},W)}})},"ya");
NPW=_.Ax(function(y){var W=y.metadataPart;var c=y.maxLines;return _.X(_.Da,{text:function(){return W().text},
linkInheritColor:!0,className:function(){return FLI(c())},
userInput:!0})},"za");
IeZ=_.Ax(function(y){var W=y.metadataPart;var c=y.maxLines;return _.X(_.a2,null,_.X(_.YN,{cond:function(){return W().tooltip},
then:function(Z){return _.X("span",{title:Z,role:"tooltip"},_.X(NPW,{metadataPart:W,maxLines:c}))},
else:function(){return _.X(NPW,{metadataPart:W,maxLines:c})}}))},"Aa");
p45=_.Ax(function(y){var W=y.metadataPart;var c=y.isOverlay;var Z=y.useMediumText;var G=y.hideAvatar;var D=function(){return W().maxLines!==void 0?W().maxLines:1};
return _.X(_.a2,null,_.X(_.bg,{data:function(){return W().avatarStack}},{avatarStackViewModel:function(Y){return _.X(_.ZJ3,{data:Y.data,
isOverlay:c,useMediumText:Z,hideAvatar:G})},
badgeViewModel:_.j7}),_.X(_.YN,{cond:function(){return W().text},
then:function(){return _.X(IeZ,{metadataPart:W,maxLines:D})}}))},"Ba");
Pqm=_.Ax(function(y){var W=y.metadataRow;var c=y.isInline;var Z=y.delimiter;var G=y.isOverlay;var D=y.useMediumText;var Y=y.extensions;var u=function(){var t;return Y6F(Y==null?void 0:(t=Y())==null?void 0:t.lockupMetadata,W())};
y={};return _.X("div",{class:_.Mi("yt-content-metadata-view-model-wiz__metadata-row",(y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=c,y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var t;return m$E(Y==null?void 0:(t=Y())==null?void 0:t.lockupMetadata,W())},y["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var t;
return!!(Y==null?0:(t=Y())==null?0:t.lockupMetadata)&&W().badges},y))},_.X(_.bg,{data:function(){return W().badges}},{badgeViewModel:function(t){return _.X("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.X(_.j7,{data:t.data}))}}),_.X(_.mC,{each:function(){return W().metadataParts||[]}},function(t,b){return _.X(_.a2,null,_.X(p45,{metadataPart:t,
isOverlay:G,useMediumText:D,hideAvatar:u}),_.X(EUQ,{delimiter:Z,max:function(){return W().metadataParts.length},
index:b,isStandalone:!1}))}),_.X(_.YN,{cond:function(){return W().isSpacerRow&&!c()},
then:function(){return _.X("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ca");
JuE=_.Ax(function(y){var W=_.V0(y,{layout:0,isOverlay:!1});y=W.className;var c=W.data,Z=W.layout,G=W.isOverlay,D=W.useMediumText,Y=W.extensions;W=_.HO();var u=function(){return Z()===0};
_.VL(W,function(){return c().rendererContext});
var t={};return _.X("yt-content-metadata-view-model",{class:_.Mi(y,"yt-content-metadata-view-model-wiz",(t["yt-content-metadata-view-model-wiz--inline"]=u,t["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.PG(c().rendererContext)},t["yt-content-metadata-view-model-wiz--medium-text"]=D,t)),
el:W},_.X(_.mC,{each:function(){return c().metadataRows}},function(b,r){return _.X(_.a2,null,_.X(Pqm,{metadataRow:b,
isInline:u,delimiter:function(){return c().delimiter},
isOverlay:G,useMediumText:D,extensions:Y}),_.X(_.YN,{cond:function(){return u()&&!b.isSpacerRow},
then:function(){return _.X(EUQ,{delimiter:function(){return c().delimiter},
max:function(){return c().metadataRows.length},
index:r,isStandalone:!0})}}))}))},"Da");
VFQ=_.O("web_enable_sink_lockups_batch")?JuE:r4F;_.Cqm=_.O("web_enable_sink_lockups_batch")?JuE:_.qi(r4F);JuE.idomCompat=!0;var xY=_.ug({avatarViewModel:_.Ks,decoratedAvatarViewModel:y4W,contentMetadataViewModel:VFQ,buttonViewModel:_.OV,attributionViewModel:leQ,lockupAttachmentsViewModel:OkV});_.eu(KLy);var QJZ=_.Ax(function(y){var W={};return _.X("yt-lockup-metadata-view-model",{class:_.Mi("yt-lockup-metadata-view-model-wiz",function(){a:{var c=y.lockupStyle();if(c==null?0:c.isOverlay)c="yt-lockup-metadata-view-model-wiz--overlay";else switch(c==null?void 0:c.arrangement){case 1:c="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:c="yt-lockup-metadata-view-model-wiz--vertical"}}return c},function(){a:{var c=y.lockupStyle();
if(c==null?0:c.isTiny)c="yt-lockup-metadata-view-model-wiz--tiny";else switch(c==null?void 0:c.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":c="yt-lockup-metadata-view-model-wiz--compact";break a;default:c="yt-lockup-metadata-view-model-wiz--standard"}}return c},(W["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var c;
return(c=y.lockupStyle())==null?void 0:c.isOverlay},W["yt-lockup-metadata-view-model-wiz--card"]=function(){var c;
return(c=y.lockupStyle())==null?void 0:c.isCard},W["yt-lockup-metadata-view-model-wiz--centered"]=function(){var c;
return(c=y.lockupStyle())==null?void 0:c.isCentered},W["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var c;
return(c=y.lockupStyle())==null?void 0:c.typographyBump},W["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var c;
return(c=y.lockupStyle())==null?void 0:c.useLegacyTypography},W["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var c;
return(c=y.lockupStyle())==null?void 0:c.useRichGridLegacyTypography},W))},_.X(_.bg,{data:function(){return y.data().image}},{avatarViewModel:function(c){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.X(_.Om,{data:c.data}))},
decoratedAvatarViewModel:function(c){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.X(_.gx,{data:c.data}))}}),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.X("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var c;return(c=y.data().title)==null?void 0:c.content}},_.X(_.YN,{cond:function(){return y.data().title},
then:function(c){return _.X(_.oL,{command:y.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:y.lockupAccessibilityLabel},_.X(_.Da,{text:c}))}})),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.X(_.bg,{data:function(){return y.data().metadata}},{contentMetadataViewModel:function(c){return _.X(_.Cqm,{data:c.data,
layout:1,useMediumText:function(){var Z,G;return((Z=y.lockupStyle())==null?void 0:Z.typographyBump)||((G=y.lockupStyle())==null?void 0:G.useRichGridLegacyTypography)},
extensions:function(){var Z,G;return{lockupMetadata:{byline:{hideAvatar:((Z=y.lockupStyle())==null?void 0:Z.arrangement)===0,addPadding:((G=y.lockupStyle())==null?void 0:G.arrangement)===1}}}}})}})),_.X(_.bg,{data:function(){return y.data().attribution}},{attributionViewModel:function(c){return _.X("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.X(leQ,{data:c.data,
useSmallLayout:!0}))}}),_.X("div",null,_.X(_.bg,{data:function(){return y.data().attachmentSlot}},{lockupAttachmentsViewModel:function(c){return _.X(OkV,{data:c.data,
lockupStyle:y.lockupStyle})}}))),_.X("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.X(_.bg,{data:function(){return y.data().menuButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
buttonOverrides:function(){var Z;return((Z=y.lockupStyle())==null?0:Z.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ea"),AuQ=_.O("web_enable_sink_lockups_batch")?QJZ:_.qi(KLy);
QJZ.idomCompat=!0;var hA3=_.Ax(function(y){var W=_.HO();_.Xl(function(){requestAnimationFrame(function(){_.Bn(W.value)})});
var c={},Z={},G={};return _.X("notification-multi-action-renderer",{class:_.Mi("ytNotificationMultiActionRendererHost",(c.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var D;return(D=y.useLegacyShelfStyle)==null?void 0:D.call(y)},c)),
el:W},_.X("span",{"aria-live":"polite",class:_.Mi("ytNotificationMultiActionRendererTextContainer",(Z.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var D;return(D=y.useLegacyShelfStyle)==null?void 0:D.call(y)},Z))},_.X(_.Da,{text:function(){return y.data().responseText}})),_.X("div",{class:_.Mi("ytNotificationMultiActionRendererButtonContainer",(G.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var D;
return(D=y.useLegacyShelfStyle)==null?void 0:D.call(y)},G))},_.X(_.bg,{data:function(){var D;
return(D=y.data().buttons)==null?void 0:D.map(function(Y){if(Y=Y.buttonRenderer){var u,t=Object,b=t.assign,r=(u=Y.icon)==null?void 0:u.iconType;u=(u=Y.command||Y.serviceEndpoint||Y.navigationEndpoint)?{innertubeCommand:u}:void 0;Y={buttonViewModel:b.call(t,{},{iconName:r,onTap:u,trackingParams:Y.trackingParams,titleFormatted:Y.text?_.Xx(Y.text):void 0},OJF(Y))}}else Y=void 0;return Y}).filter(function(Y){return!!Y})}},{buttonViewModel:function(D,Y){return _.X("div",null,_.X(_.OV,{data:D.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var u;return((u=y.useModernStyles)==null?0:u.call(y))?{type:Y()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Fa");var BPQ=_.Ax(function(y){var W=_.HO();_.Xl(function(){requestAnimationFrame(function(){_.Bn(W.value)})});
return _.X("notification-text-renderer",{el:W,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.X(_.Da,{text:function(){return y.data().successResponseText}}))},"Ga");_.HkV=_.Ax(function(y){var W=_.Zx(lMI,function(){var Z;return g5h((Z=y.contentId)==null?void 0:Z.call(y))}),c=function(){var Z;
return _.g((Z=W())==null?void 0:Z.command,_.sx)};
return _.X(_.YN,{cond:function(){var Z;if(!(Z=c())){var G;Z=_.g((G=W())==null?void 0:G.command,cUi)}return Z},
then:function(){return _.X(_.YN,{cond:c,then:function(){var Z={};return _.X("div",{class:_.Mi("ytDismissibleItemReplacedContent",function(){var G;return R3O((G=y.aspectRatio)==null?void 0:G.call(y))})},_.X("div",{class:_.Mi((Z.ytDismissibleItemAspectRatioContainer=function(){var G;
return((G=y.aspectRatio)==null?void 0:G.call(y))!==void 0},Z))},_.X(_.bg,{data:function(){var G;
return(G=c())==null?void 0:G.item}},{notificationMultiActionRenderer:function(G){return _.X(hA3,{data:G.data,
useModernStyles:y.useModernStyle,useLegacyShelfStyle:y.useLegacyShelfStyle})},
notificationTextRenderer:BPQ})))}})},
else:y.children})},"Ha");_.L1i=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;y=_.LD();var Z=function(){var D;return((D=W().interaction)==null?0:D.onTap)?function(Y){var u;VUE(Y,(u=W().interaction)==null?void 0:u.onTap,c)}:void 0},G=function(){var D,Y=W(),u=Z(),t=(D=_.g(W().rendererContext,_.Cp))==null?void 0:D.label;
a:switch(Y.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":D=1;break a;default:D=0}return{size:N1O(Y.size),type:D,onTap:u,accessibilityText:t}};
_.MF(y,{visibilityCallback:function(D){var Y,u=(Y=W().interaction)==null?void 0:Y.onFirstVisible;D&&u&&_.OH(u)},
showOption:_.wx});return _.X("ad-avatar-view-model",{class:function(){var D;return((D=W().interaction)==null?0:D.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:y},_.X(_.YN,{cond:function(){return W().image},
then:function(D){return _.X(QL,{data:G,image:D})}}))},"Ia");_.WB=_.Ax(function(y){y=_.V0(y,{hasDot:!1});var W=Object.assign({},y),c=y.data,Z=y.hasDot;y=y.customCommandResolver;var G=(delete W.data,delete W.hasDot,delete W.customCommandResolver,W);W=function(){return c().style};
W!==void 0&&W!==null||_.Va(Error("Eh"));W=_.HO();_.di(W,function(){return c().interaction},y);
return _.X("ad-badge-view-model",{class:_.Mi(function(){var D;return((D=c().interaction)==null?0:D.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var D=G.adRenderingContextType();
c();return D==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:W},_.X(_.TZ,{data:function(){var D;c();var Y=(D=c().label)==null?void 0:D.content;D=Z();var u=c().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:Y,adsIncludeDot:D,isOverlay:u}}}))},"Ja");var vU0;_.cB=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;var Z=y.adRenderingContextType;y=_.HO();_.di(y,function(){return W().interaction},c);
_.MF(y,{visibilityCallback:function(G){var D,Y=(D=W().interaction)==null?void 0:D.onFirstVisible;G&&Y&&_.OH(Y)},
showOption:_.wx});return _.X("ad-details-line-view-model",{class:function(){var G;return((G=W().interaction)==null?0:G.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:y},_.X(_.YN,{cond:function(){return W().style},
then:function(G){return _.X(_.mC,{each:function(){var D;return((D=W())==null?void 0:D.attributes)||[]},
keyBy:"INDEX"},function(D){return _.X(vU0,{attribute:D,style:G,adRenderingContextType:function(){return Z()}})})}}))},"Ka");
vU0=_.Ax(function(y){var W=y.attribute;var c=y.style;var Z=y.adRenderingContextType;return _.X(_.YN,{cond:function(){return W().text},
then:function(G){return _.X(_.Da,{text:G,className:function(){var D=Z();c();return D==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"La");var dc8=_.Ax(function(y){var W=y.data;var c=function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.X(_.a2,null,_.X("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.X(_.Da,{text:function(){return W().headline},
className:function(){return c()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.X(_.YN,{cond:function(){return W().description},
then:function(Z){return _.X(_.Da,{text:Z,className:function(){return c()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.X("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.X(_.bg,{data:function(){return W().adBadge}},{adBadgeViewModel:function(Z){return _.X(_.WB,{data:Z.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.X(_.bg,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(Z){return _.X(_.cB,{data:Z.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}}))),_.X("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.X(_.bg,{data:function(){return W().menu}},{buttonViewModel:function(Z){return _.X(_.OV,{data:Z.data,
buttonOverrides:function(){a:switch(W().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var G="S";break a;default:G="M"}return{size:G}}})}})))},"Ma"),SKV=_.Ax(function(y){var W=y.data;
var c=y.noBottomMargin;var Z=y.useVideoLockupTopPadding;y={};y=_.Mi("ytwFeedAdMetadataViewModelHostMetadata",(y.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return c==null?void 0:c()},y.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},y));
var G=function(){return W().adBadge};
G!==void 0&&G!==null||_.Va(Error("Fh"));G={};return _.X(_.a2,null,_.X(_.YN,{cond:function(){return W().adAvatar},
then:function(){return _.X("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.X(_.bg,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(D){return _.X(_.L1i,{data:D.data})}}))}}),_.X("div",{class:y},_.X("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.X(_.Da,{text:function(){return W().headline},
linkInheritColor:!0})),_.X(_.YN,{cond:function(){return W().description},
then:function(D){return _.X(_.Da,{text:D,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.X("div",{class:function(){return W().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.O("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.X(_.bg,{data:function(){return W().adBadge}},
{adBadgeViewModel:function(D){return _.X(_.WB,{data:D.data,
hasDot:function(){return!!W().adDetailsLine},
adRenderingContextType:function(){return W().adRenderingContextType}})}}),_.X(_.bg,{data:function(){return W().adDetailsLine}},{adDetailsLineViewModel:function(D){return _.X(_.cB,{data:D.data,
adRenderingContextType:function(){return W().adRenderingContextType}})}})),_.X(_.YN,{cond:function(){return W().secondaryDescription},
then:function(D){return _.X(_.Da,{text:D,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.X("div",{class:_.Mi("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(G.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},G))},_.X(_.bg,{data:function(){return W().menu}},{buttonViewModel:_.OV})))},"Na"),TPV=_.Ax(function(y){var W=y.data;
var c=y.noBottomMargin;var Z=y.listenToTapEvent;var G=y.setTouchEndHandler;var D=y.useVideoLockupTopPadding;var Y=_.HO();_.di(Y,function(){return W().interaction},void 0,function(){return Z==null?void 0:Z()});
y=_.z(_.G9(!1,void 0,"rVW2Qd"));var u=y.next().value,t=y.next().value;y=_.j9(function(){(G==null?0:G())&&!u()&&(Y.value.click(),t(!0),setTimeout(function(){t(!1)},100));
return!1});
_.MF(Y,{visibilityCallback:function(b){var r,F=(r=W().interaction)==null?void 0:r.onFirstVisible;b&&F&&_.OH(F)},
showOption:_.wx});return _.X("feed-ad-metadata-view-model",{class:function(){var b;return((b=W().interaction)==null?0:b.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:Y,"on:touchend":y},_.X(_.u1,null,_.X(_.sE,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.X(dc8,{data:W})}),_.X(_.sE,{when:function(){return W().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.X(SKV,{data:W,
noBottomMargin:c,useVideoLockupTopPadding:D})})))},"Oa");var ZW=_.Ax(function(y){return _.X("yt-lockup-view-model",{class:_.Mi(y.className)},_.X(_.HkV,{contentId:function(){return y.data().contentId},
useModernStyle:!0,aspectRatio:function(){var W,c;return((W=y.containerType)==null?void 0:W.call(y))!==3?eHh(y.data().contentType,(c=y.force16By9ThumbnailAspectRatio)==null?void 0:c.call(y)):void 0}},function(){return _.X(aem,Object.assign({},y))}))},"Pa"),aem=_.Ax(function(y){y=_.V0(y,{containerLayoutConfig:void 0,
protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var W=y.data,c=y.containerLayoutConfig,Z=y.containerType,G=y.sizing,D=y.protectBackground,Y=y.typographyBump,u=y.force16By9ThumbnailAspectRatio,t=y.thumbnailFixedWidth,b=y.thumbnailTargetWidth,r=y.lockupExperiments,F=y.elementsPerRow;y=_.HO();_.VL(y,function(){var bf;return(bf=W())==null?
void 0:bf.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL"],!0);var K=_.FP(sbg),l=_.U().resolve(_.xN(fei)),N=l?{}:void 0,P=function(){var bf,Py,WJ;return(WJ=(Py=_.g((bf=W())==null?void 0:bf.rendererContext,_.Cp))==null?void 0:Py.label)!=null?WJ:void 0},V=function(){var bf=c==null?void 0:c(),Py;
if(bf==null?0:bf.containerType){var WJ=(Py=W())==null?void 0:Py.contentType;Py=r();var t5=Y(),xF=b(),M3=D();bf=Object.assign({},wrE(xzg(bf),T6H(bf.responsiveSize),t5,WJ,bf.force16By9ThumbnailAspectRatio,xF,M3,Py),{thumbnailFixedWidth:bf.contentPreviewWidth})}else bf=wrE(Z(),G(),Y(),(WJ=W())==null?void 0:WJ.contentType,u(),b(),D(),r());return bf};
l&&N&&l({enabled:function(){return K()},
itemPlaybackModel:function(){return W().itemPlayback},
thumbnailElRef:function(){return N.thumbnailElRef},
containerElRef:y,options:function(){var bf,Py=(bf=_.g(W().metadata,p0i))==null?void 0:bf.endorsement;bf=N.thumbnailOverlays||[];Py&&bf.push(Py);var WJ,t5;return{thumbnail:N.thumbnail,thumbnailOverlays:bf,accessibilityText:P(),thumbnailSize:N.thumbnailSize,enableRounding:V().isCollection,containPlayerWithinThumbnail:V().isCollection,trackingParams:(WJ=_.g(W().rendererContext,_.JrD))==null?void 0:(t5=WJ.loggingDirectives)==null?void 0:t5.trackingParams}}});
var Q=0;l=_.z(_.G9(!1,void 0,"PuJST"));var S=l.next().value,cy=l.next().value;l=_.z(_.G9(!1,void 0,"ZqQcIf"));var M=l.next().value,fa=l.next().value;l=_.j9(function(){var bf=K()&&W().itemPlayback;M()?(_.KX.cancelJob(Q),Q=_.KX.addJob(function(){cy(!bf)},8,32)):cy(!bf);
return!0});
_.vO(y,"mouseleave",function(){Q&&(_.KX.cancelJob(Q),Q=0);cy(!1)});
_.KL(function(){Q&&(_.KX.cancelJob(Q),Q=0)});
var jI=E5I(function(){fa(!0)}),sD=jI.touchFeedbackEvents,ED=jI.touchFeedbackOnPointerUp,N1=jI.touchFeedbackOnPointerDown;
_.vO(y,"pointerleave",jI.touchFeedbackOnPointerLeave);jI={};return _.X("div",{el:y,class:_.Mi("yt-lockup-view-model-wiz",function(){a:{var bf=V();if(bf.isOverlay)bf="yt-lockup-view-model-wiz--overlay";else switch(bf.arrangement){case 1:bf="yt-lockup-view-model-wiz--horizontal";break a;default:bf="yt-lockup-view-model-wiz--vertical"}}return bf},function(){a:{var bf=V();
if(bf.isOverlay)bf="yt-lockup-view-model-wiz--overlay";else{switch(bf.collectionStackNumber){case 1:bf="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:bf="yt-lockup-view-model-wiz--collection-stack-2";break a}bf=void 0}}return bf},(jI["yt-lockup-view-model-wiz--card"]=function(){return V().isCard},jI["yt-lockup-view-model-wiz--compact"]=function(){return V().isTiny||V().sizing!=="STANDARD"},jI["yt-lockup-view-model-wiz--protect-background"]=D,jI["yt-lockup-view-model-wiz--add-margins"]=
function(){return V().addMarginForFullbleed},jI["yt-lockup-view-model-wiz--centered"]=function(){return V().isCentered},jI["yt-lockup-view-model-wiz--fullbleed"]=function(){return V().fullbleed},jI["yt-lockup-view-model-wiz--single-column-grid"]=function(){return F()===1&&Z()===2},jI["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var bf;
return(bf=r())==null?void 0:bf.useRichGridLegacyMargin},jI)),
"on:mousedown":N1,"on:mouseup":ED,"on:mouseover":l,"on:touchstart":N1,"on:touchend":ED},_.X(_.oL,{command:function(){var bf;return _.pp((bf=W())==null?void 0:bf.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return t()&&V().arrangement===1?"width: "+t():""}},_.X(_.bg,{data:function(){var bf;
return(bf=W())==null?void 0:bf.contentImage}},{thumbnailViewModel:function(bf){return _.X(eA,{data:bf.data,
aspectRatio:function(){return V().aspectRatio},
disableRounding:function(){return V().disableRounding},
width:b,hovered:S,isClip:function(){var Py;return((Py=W())==null?void 0:Py.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:YYg(N),lockupExperiments:function(){return r()}})},
collectionThumbnailViewModel:function(bf){return _.X(ru3,{data:bf.data,aspectRatio:function(){return V().aspectRatio},
disableRounding:function(){return V().disableRounding},
doubleStack:function(){return V().collectionStackNumber===2},
hovered:S,playbackRef:YYg(N)})},
decoratedAvatarViewModel:_.gx})),_.X("div",{class:"yt-lockup-view-model-wiz__metadata"},_.X(_.bg,{data:function(){var bf;return(bf=W())==null?void 0:bf.metadata}},{lockupMetadataViewModel:function(bf){return _.X(AuQ,{data:bf.data,
lockupStyle:V,lockupCommand:function(){var Py;return _.pp((Py=W())==null?void 0:Py.rendererContext)},
lockupAccessibilityLabel:function(){return P()}})},
feedAdMetadataViewModel:function(bf){return _.X(TPV,{data:bf.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.X(_.bg,{data:function(){var bf;
return(bf=W())==null?void 0:bf.attachmentSlot}},{lockupAttachmentsViewModel:function(bf){return _.X(OkV,{data:bf.data,
lockupStyle:V})}})),_.X(_.zb,{model:function(){a:{switch(V().collectionStackNumber){case 1:var bf=8;
break a;case 2:bf=12;break a}bf=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:bf}},
pointerDownEvent:sD.pointerDownEvent,pointerUpEvent:sD.pointerUpEvent,pointerLeaveEvent:sD.pointerLeaveEvent}))},"Qa");
ZW.idomCompat=!0;_.A3(ZW,"yt-lockup-view-model",{props:{data:_.Ix,containerLayoutConfig:_.Ix,containerType:_.Ix,sizing:_.Ix,protectBackground:_.Ix,typographyBump:_.Ix,thumbnailFixedWidth:_.Ix,thumbnailTargetWidth:_.Ix,force16By9ThumbnailAspectRatio:_.Ix,className:_.Ix,lockupExperiments:_.Ix,elementsPerRow:_.Ix}});_.eu(Ckf);var LLF=_.ug({buttonViewModel:_.OV}),xci=_.qi(B1F);_.eu(B1F);_.eu(A4f);_.eu(h3w);_.A3(xci,"yt-video-attribute-view-model",{props:{data:_.Ix,className:_.Ix}});var ikJ=function(){var y=_.v.apply(this,arguments)||this;y.useHighlightStyling=_.O("web_enable_deeper_metadata_highlight_styling");y.isSearch=!1;y.JSC$12891_lastScrollContainerWidth=NaN;y.pageLoadingFromNavigation=!1;y.currentIndex=0;y.supportComponentResize=!1;return y};
_.R(ikJ,_.v);_.f=ikJ.prototype;
_.f.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}}}}}};
_.f.attached=function(){document.addEventListener("yt-page-type-changed",_.qO(this,this.onPageChange))};
_.f.detached=function(){document.removeEventListener("yt-page-type-changed",_.qO(this,this.onPageChange))};
_.f.getItemsPath=function(){return"data.cards"};
_.f.onIronResize=function(){this.updateListStyles()};
_.f.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var y;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(y=this.data)==null?void 0:y.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.O("problem_walkthrough_sd")&&!!this.centerItems};
_.f.computeCardListStyle=function(y){return y||null};
_.f.computeEmpty=function(y){return!this.get("cards.length",y)};
_.f.computeThumbnailStyle=function(y){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",y)||null};
_.f.computeHasSubtitle=function(y){return!!this.get("header.richListHeaderRenderer.subtitle",y)};
_.f.computeInitialCountNumber=function(y){return this.hasSquareMiniApp&&y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.f.computeUseFloorScrolling=function(y){return y==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.f.computeHasGameCard=function(y){return(y=this.get("cards",y))?y.some(function(W){return W.gameCardRenderer}):!1};
_.f.computeCenterHeaderTitle=function(y){return!(y==null||!y.centerHeaderTitle)};
_.f.computeHasPortraitMiniApp=function(y){return(y=y==null?void 0:y.cards)?y.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.f.computeHasSquareMiniApp=function(y){return(y=y==null?void 0:y.cards)?y.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.f.computeHasSkinnyWidthPortraitMiniApp=function(y){return(y=y==null?void 0:y.cards)?y.some(function(W){return W.miniGameCardViewModel&&W.miniGameCardViewModel.width===135}):!1};
_.f.computeCenterItems=function(y){return!!y};
_.f.computeHasInfoPanel=function(y){var W;return y==null?void 0:(W=y.cards)==null?void 0:W.some(function(c){return c.infoPanelContentRenderer})};
_.f.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.f.getItemByIndex=function(y){var W=this.items.children;return W&&W.length>y?W[y]:void 0};
_.f.onPageChange=function(){var y=this;this.pageLoadingFromNavigation=!0;_.KX.addJob(function(){y.pageLoadingFromNavigation=!1;_.fl(y.hostElement,"yt-terminate-video-preview-action")},8)};
_.f.updateListStyles=function(){if(_.O("problem_walkthrough_sd")&&this.JSC$12891_scrollContainer!==void 0){var y=this.JSC$12891_scrollContainer.clientWidth;y!==this.JSC$12891_lastScrollContainerWidth&&(this.JSC$12891_lastScrollContainerWidth=y,_.wM(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(y*.8,415)+"px"}),_.Z2(this.hostElement,"iron-resize"))}};
_.dJ.Object.defineProperties(ikJ.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.O("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return _.O("kevlar_modern_sd")&&!!((y=this.data)==null?0:(W=y.cards)==null?0:(c=W[0])==null?0:c.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return!!((y=this.data)==null?0:(W=y.cards)==null?0:(c=W[0])==null?0:c.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return _.O("enable_desktop_amsterdam_info_panels")&&!!((y=this.data)==null?0:(W=y.cards)==null?0:(c=W[0])==null?0:c.infoPanelContentRenderer)}}});
var GV=ikJ;GV.prototype.dataChanged=GV.prototype.dataChanged;GV.prototype.onIronResize=GV.prototype.onIronResize;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],GV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Si.YtdHorizontalListBehavior),_.e("design:type",Object)],GV.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.C(_.OO),_.e("design:type",Object)],GV.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],GV.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],GV.prototype,"useCustomColors",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GV.prototype,"useHighlightStyling",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.e("design:type",Object)],GV.prototype,"cardListStyle",void 0);_.x([_.L({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.e("design:type",Boolean)],GV.prototype,"empty",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.e("design:type",Boolean)],GV.prototype,"hasSubtitle",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.e("design:type",Boolean)],GV.prototype,"thumbnailStyle",void 0);_.x([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.e("design:type",Boolean)],GV.prototype,"hasGameCard",void 0);_.x([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.e("design:type",Boolean)],GV.prototype,"centerHeaderTitle",void 0);
_.x([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.e("design:type",Boolean)],GV.prototype,"hasPortraitMiniApp",void 0);_.x([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.e("design:type",Boolean)],GV.prototype,"hasSquareMiniApp",void 0);_.x([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.e("design:type",Boolean)],GV.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.x([_.L({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.e("design:type",Boolean)],GV.prototype,"hasInfoPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GV.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],GV.prototype,"inlineStructuredDescription",void 0);_.x([_.jj("#scroll-container"),_.e("design:type",HTMLDivElement)],GV.prototype,"JSC$12891_scrollContainer",void 0);
_.x([_.L({computed:"computeInitialCountNumber(data.style.type)"}),_.e("design:type",Number)],GV.prototype,"initialCount",void 0);_.x([_.L({computed:"computeUseFloorScrolling(data.style.type)"}),_.e("design:type",Boolean)],GV.prototype,"useFloorScrolling",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.e("design:type",Boolean)],GV.prototype,"centerItems",void 0);_.x([_.L(),_.e("design:type",Object)],GV.prototype,"pageLoadingFromNavigation",void 0);
_.x([_.L(),_.e("design:type",Object)],GV.prototype,"currentIndex",void 0);_.x([_.L(),_.e("design:type",Number)],GV.prototype,"scrollCount",void 0);_.x([_.L(),_.e("design:type",Object)],GV.prototype,"supportComponentResize",void 0);_.x([_.jj("#items"),_.e("design:type",HTMLDivElement)],GV.prototype,"items",void 0);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],GV.prototype,"onIronResize",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],GV.prototype,"dataChanged",null);_.x([_.L({reflectToAttribute:!0}),_.A("inlineStructuredDescription"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],GV.prototype,"hideNavigationButton",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],GV.prototype,"modernChapters",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],GV.prototype,"hasVideoAttributeViewModels",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],GV.prototype,"modernInfoPanels",null);GV=_.x([_.d({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],GV);
_.T(GV,"ytd-horizontal-card-list-renderer",function(){if(PkV!==void 0)return PkV;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return PkV=y},{mode:_.xm("kevlar_poly_si_batch_j072")?1:2});_.eu(d$E);var MFE=_.qi(d$E);_.TP(d$E,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var eAJ=function(){var y=_.v.apply(this,arguments)||this;var W,c;y.isExpanded=(c=(W=y.data)==null?void 0:W.isExpanded)!=null?c:!1;y.disableExpand=!1;y.showProminentLabel=!1;y.showRightSideLabel=!0;y.toggleExpandableContent=function(Z){y.disableExpand||(Z.stopPropagation(),_.Qf(_.Aq(Z),y.hostElement,["info","expanded-subtitle"])||(y.isExpanded=!y.isExpanded,y.ytRendererBehavior.logExplicitClick(y.data),y.JSC$12903_cardList&&!_.O("expandable_metadata_a11y_fix_ks")&&_.Lv(y,function(){_.hv(y.hostElement)})))};
y.useSquareThumbnail=!1;y.startX=0;return y};
_.R(eAJ,_.v);_.f=eAJ.prototype;_.f.computeUseSquareThumbnail=function(){var y;return(y=this.data)==null?void 0:y.useSquareThumbnail};
_.f.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"}}}}};
_.f.dataChanged=function(){if(this.data){var y,W;this.isExpanded=(W=(y=this.data)==null?void 0:y.isExpanded)!=null?W:!1;var c,Z,G,D;if(y=this.isDarkTheme()?(c=this.data)==null?void 0:(Z=c.colorData)==null?void 0:Z.darkColorPalette:(G=this.data)==null?void 0:(D=G.colorData)==null?void 0:D.lightColorPalette){var Y,u;if((Y=this.data)==null?0:(u=Y.colorData)==null?0:u.vibrantColorPalette)y.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.nx(this.hostElement,y)}}};
_.f.isExpandedChanged=function(){this.isExpanded&&this.JSC$12903_cardList&&_.Z2(this.JSC$12903_cardList,"iron-resize")};
_.f.computeIsExpanded=function(y){return!!y.isExpanded};
_.f.computeShowProminentLabel=function(y,W){var c;return!!(y==null?0:(c=y.header)==null?0:c.showLeadingCollapsedLabel)&&!W};
_.f.computeShowRightSideLabel=function(y,W){var c;return!(y==null?0:(c=y.header)==null?0:c.showLeadingCollapsedLabel)&&!W};
_.f.captureContentClick=function(y){if(!this.disableExpand)if(_.O("expandable_metadata_fix_killswitch")){var W=y.target;_.l3W(W,"ytd-macro-markers-list-item-renderer")||y.stopPropagation();(W==null?void 0:W.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Qf(_.Aq(y),this.hostElement,["items"])||_.Cx(_.Aq(y),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.f.timestampClick=function(y){y.stopPropagation();var W,c;(y=(W=this.data)==null?void 0:(c=W.header)==null?void 0:c.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(y)};
_.f.onDown=function(y){y.stopPropagation();this.startX=y.detail?y.detail.x:0};
_.f.onUp=function(y){this.skipKeyInteraction(y)&&y.stopPropagation()};
_.f.skipKeyInteraction=function(y){var W=y.target;if((W==null?void 0:W.id)==="scroll-container"||(W==null?void 0:W.id)==="items"||y.detail&&y.detail.x!==this.startX)return!0;y=_.Aq(y);y=_.z(y);for(W=y.next();!W.done;W=y.next()){W=W.value;if(W===this.hostElement)break;if(W.hasAttribute&&W.hasAttribute("skip-key-interaction"))return!0}return!1};
_.f.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.dJ.Object.defineProperties(eAJ.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.g((y=this.data)==null?void 0:y.expandedContent,iGT)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.g((y=this.data)==null?void 0:y.expandedContent,PAE)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.useCustomColors)&&!((W=this.data)==null||!W.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.header)==null?0:W.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.header)==null?0:W.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.header)==null?0:W.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
var fW=eAJ;fW.prototype.onUp=fW.prototype.onUp;fW.prototype.onDown=fW.prototype.onDown;fW.prototype.isExpandedChanged=fW.prototype.isExpandedChanged;fW.prototype.dataChanged=fW.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],fW.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fW.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],fW.prototype,"isExpanded",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],fW.prototype,"disableExpand",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],fW.prototype,"isSearch",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],fW.prototype,"isWatch",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.e("design:type",Object)],fW.prototype,"showProminentLabel",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.e("design:type",Object)],fW.prototype,"showRightSideLabel",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fW.prototype,"hasVideoSummary",null);_.x([_.L({value:!1,reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fW.prototype,"hasLockupViewModel",null);_.x([_.L({reflectToAttribute:!0}),_.A("data","isWatch"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fW.prototype,"useCustomColors",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data","isExpanded"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fW.prototype,"showInfoButton",null);_.x([_.A("data","isExpanded"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fW.prototype,"showTimestamp",null);_.x([_.A("data","isExpanded"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fW.prototype,"showExpandedSubtitle",null);
_.x([_.A("data","isExpanded"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fW.prototype,"showThumbnail",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],fW.prototype,"useVppShoppingDestinationStyle",null);_.x([_.L(),_.e("design:type",Object)],fW.prototype,"toggleExpandableContent",void 0);_.x([_.jj("ytd-horizontal-card-list-renderer"),_.e("design:type",Object)],fW.prototype,"JSC$12903_cardList",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.e("design:type",Object)],fW.prototype,"useSquareThumbnail",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fW.prototype,"dataChanged",null);_.x([_.H("isExpanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fW.prototype,"isExpandedChanged",null);
_.x([_.B("down"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fW.prototype,"onDown",null);_.x([_.B("up"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fW.prototype,"onUp",null);fW=_.x([_.d({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],fW);
_.T(fW,"ytd-expandable-metadata-renderer",function(){if(YY2!==void 0)return YY2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YY2=y},{mode:1});var w42,qKZ=function(){if(w42!==void 0)return w42;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return w42=y};_.bv("itemSectionRenderer","videoRenderer","ytd-video-renderer");var oM=function(){var y=_.v.apply(this,arguments)||this;y.disableExpand=!1;y.shouldShowChannelInfo=!1;y.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return y};
_.R(oM,_.v);_.f=oM.prototype;_.f.computeUseSearchUi=function(){var y,W;return this.isSearch||((y=this.data)==null?void 0:(W=y.style)==null?void 0:W.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.f.computeUseThreeLineTitle=function(){var y;return((y=this.data)==null?void 0:y.maxTitleLines)===3};
_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.O("polymer_video_renderer_defer_menu")&&!GWi?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]]"}}}}}};
_.f.attached=function(){_.i0(this.hostElement,"blue-links",_.O("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.MO(_.p(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;y&&((W=_.g(y.commandMetadata,_.rR))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(y);this.updateInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12908_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:this.JSC$12908_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$12908_inlinePreviewHoverListener)==null||js(y)};
_.f.onTextWrapperClick=function(y){var W,c,Z=this.hideTranslation?(W=this.data)==null?void 0:W.untranslatedNavigationEndpoint:(c=this.data)==null?void 0:c.navigationEndpoint;W=_.Qf(_.Aq(y),this.hostElement,["expandable-metadata"]);!Z||W&&!_.O("expandable_metadata_fix_killswitch")||_.Cx(_.Aq(y),this.hostElement,["A".toString(),"BUTTON".toString()])||_.Z2(this.hostElement,"yt-navigate",{endpoint:Z})};
_.f.computeThumbnailWidth=function(y,W,c,Z,G){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Z?G==="MASSIVE"?600:G==="BIG"?500:G==="MEDIUM"?450:420:c?360:W?128:y?210:246};
_.f.computeUseBiggerThumbs=function(y){return y&&_.O("enable_desktop_search_bigger_thumbs")};
_.f.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.f.computeVideoStyle=function(){if(_.O("enable_video_style")){var y,W;return(y=this.data)==null?void 0:(W=y.style)==null?void 0:W.value}};
_.f.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.f.handleHideItemSectionVideosByIdCommand=function(y){var W;y=(W=_.g(y,bGV))==null?void 0:W.videoId;this.data&&this.data.videoId===y&&(this.isHidden=!0)};
_.f.getMetadataSnippetContainerClass=function(y){return y?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.f.computeTitleText=function(y,W,c){return y?c:W};
_.f.computeDescriptionSnippet=function(y,W,c){return y?c:W};
_.f.computeSnippetText=function(y,W,c){return y?c:W};
_.f.computeNavigationEndpoint=function(y,W){return y?W==null?void 0:W.untranslatedNavigationEndpoint:W==null?void 0:W.navigationEndpoint};
_.f.hideInlineTitleIcon=function(y,W){return y||!W};
_.dJ.Object.defineProperties(oM.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 y;return(y=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?y:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$12908_inlinePreviewHoverListener)==null?0:Em(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.dJ.Object.defineProperties(oM,{template:{configurable:!0,enumerable:!0,get:function(){return qKZ()}}});
var DW=oM;DW.prototype.dataChanged=DW.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],DW.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],DW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],DW.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.C(_.P2),_.e("design:type",Object)],DW.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],DW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],DW.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],DW.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],DW.prototype,"isBackstageVideo",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],DW.prototype,"isPostCompactVideo",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],DW.prototype,"isHistory",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],DW.prototype,"isRichGridVideoPost",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],DW.prototype,"isHidden",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],DW.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.e("design:type",Boolean)],DW.prototype,"useSearchUi",void 0);_.x([_.L({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.e("design:type",Boolean)],DW.prototype,"useThreeLineTitle",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.e("design:type",Boolean)],DW.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.e("design:type",Object)],DW.prototype,"videoStyle",void 0);_.x([_.L({computed:"computeDisableExpand(videoStyle)"}),_.e("design:type",Object)],DW.prototype,"disableExpand",void 0);
_.x([_.L({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.e("design:type",Object)],DW.prototype,"shouldShowChannelInfo",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],DW.prototype,"biggerThumbsStyle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.e("design:type",String)],DW.prototype,"inlineTitleIcon",void 0);_.x([_.L({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.e("design:type",Object)],DW.prototype,"computedNavigationEndpoint",void 0);_.x([_.L({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(y,W){return _.fq(y.entities,"searchVideoResultEntity",W)}}),
_.e("design:type",Object)],DW.prototype,"searchVideoResultEntity",void 0);_.x([_.jj("ytd-thumbnail"),_.e("design:type",HTMLElement)],DW.prototype,"thumbnail",void 0);_.x([_.jj("#dismissible"),_.e("design:type",HTMLElement)],DW.prototype,"JSC$12908_dismissibleMedia",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],DW.prototype,"dataChanged",null);
_.x([_.A("searchVideoResultEntity"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],DW.prototype,"hideTranslation",null);_.x([_.A("searchVideoResultEntity"),_.e("design:type",Array),_.e("design:paramtypes",[])],DW.prototype,"hiddenBadgeGroups",null);_.x([_.A("lockupIsHovered"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],DW.prototype,"isHovered",null);DW=_.x([_.d({is:"ytd-video-renderer",disableElementRegistration:!0})],DW);
_.T(DW,"ytd-video-renderer",function(){return qKZ()},{mode:_.xm("kevlar_poly_si_batch_j047")?1:2});var khQ=function(){var y=_.v.apply(this,arguments)||this;y.editDialog=null;y.roundedContainer=!0;y.isLoading=!1;y.isRichGrid=!1;y.isRichGridRepost=!1;y.reduceSidePaddings=_.O("reduce_side_paddings_in_shelf");y.JSC$12914_spinnerEl=null;return y};
_.R(khQ,_.v);_.f=khQ.prototype;
_.f.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"}}}};
_.f.contentTextChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){var y=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var W=0,c=this.data.actions&&this.data.actions.length;W<c;W++)this.openEditDialog(_.g(this.data.actions[W],SpT));if((W=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(W=this.get("buttonRenderer.hint.hintRenderer.hintId",W))&&W.startsWith("share-post-hint")){var Z=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(Z){_.at.getInstance();var G=xP(_.Lq(_.bN("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.KX.addLowPriorityJob(function(){_.mq(y.hostElement,G,Z)})}}}};
_.f.updatePoll=function(y){y>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.f.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12914_spinnerEl||(this.JSC$12914_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.p(this.hostElement).appendChild(this.JSC$12914_spinnerEl));this.JSC$12914_spinnerEl&&(this.JSC$12914_spinnerEl.active=this.isLoading)};
_.f.onYtNavigate=function(y){var W=this.get("updateCommentDialogEndpoint",y.detail.endpoint);W&&(this.openEditDialog(W),y.stopPropagation())};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.onYtCommentPollRevert=function(y,W){W&&this.updatePoll(W.selectedChoiceIndex)};
_.f.onYtServiceRequestSent=function(y,W){var c;W.endpoint&&(_.g(W.endpoint,W_V)||_.g(W.endpoint,Ex)&&((c=_.g(W.endpoint,Ex))==null||!c.clientActions))&&(this.isLoading=!0);if(W.actions)for(y=0;y<W.actions.length;y++)c=W.actions[y],_.g(c,Xb)&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c==void 0&&(c=-1),this.updatePoll(c))};
_.f.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.f.openEditDialog=function(y){y&&y.dialog&&(this.editDialog=y.dialog,y=this.editDialogEl.firstElementChild)&&(y.focus(),y.openDialog&&y.openDialog())};
_.f.computeIsPostHidden=function(y,W){return!!y||W};
_.f.computeSurfaceType=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.f.computeUsesCompactLockup=function(y){return y==="BACKSTAGE_SURFACE_TYPE_HOME"||y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.f.computeShowWithoutToolbar=function(y){return!y.actionButtons&&!y.actionMenu};
_.f.computePostAttachment=function(y){if(y.backstageAttachment){if(_.g(y.backstageAttachment,AAQ))return"poll";if(_.g(y.backstageAttachment,UYm))return"quiz";if(_.g(y.backstageAttachment,_.TR8))return"video";if(_.g(y.backstageAttachment,$YT))return"uploaded-videos";if(_.g(y.backstageAttachment,rUE))return y.contentText?"image":"image-only";if(_.g(y.backstageAttachment,XvE))return"playlist"}return"none"};
_.f.computePostTabIndex=function(y){return y?0:-1};
_.f.computeButtonTooltipPosition=function(y){return this.computeUsesCompactLockup(y)?"top":"bottom"};
_.f.computeHasText=function(y){return!(y==null||!y.contentText)};
_.f.onTap=function(y){var W,c;if(((W=this.data)==null?0:W.navigationEndpoint)&&((c=this.data)==null?void 0:c.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Z;((Z=this.data)==null?0:Z.navigationEndpoint)&&!_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.dJ.Object.defineProperties(khQ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.voteCount)||_.Lq("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,AAQ))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,$YT))}}});
var zV=khQ;zV.prototype.onYtServiceRequestCompleted=zV.prototype.onYtServiceRequestCompleted;zV.prototype.onYtServiceRequestSent=zV.prototype.onYtServiceRequestSent;zV.prototype.onYtCommentPollRevert=zV.prototype.onYtCommentPollRevert;zV.prototype.onYtCommentboxDismiss=zV.prototype.onYtCommentboxDismiss;zV.prototype.onYtNavigate=zV.prototype.onYtNavigate;zV.prototype.isLoadingChanged=zV.prototype.isLoadingChanged;zV.prototype.dataChanged=zV.prototype.dataChanged;zV.prototype.contentTextChanged=zV.prototype.contentTextChanged;
_.x([_.C(_.OO),_.e("design:type",Object)],zV.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],zV.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zV.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],zV.prototype,"editDialog",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zV.prototype,"roundedContainer",void 0);_.x([_.L(),_.e("design:type",Object)],zV.prototype,"isLoading",void 0);_.x([_.L({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.e("design:type",String)],zV.prototype,"surface",void 0);
_.x([_.L({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.e("design:type",Boolean)],zV.prototype,"usesCompactLockup",void 0);_.x([_.L({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],zV.prototype,"showWithoutToolbar",void 0);_.x([_.L({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.e("design:type",String)],zV.prototype,"attachment",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zV.prototype,"isRichGrid",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zV.prototype,"isRichGridRepost",void 0);_.x([_.L({reflectToAttribute:!0,value:_.O("use_better_post_dismissals")}),_.e("design:type",Boolean)],zV.prototype,"useBetterPostDismissals",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zV.prototype,"reduceSidePaddings",void 0);
_.x([_.L({computed:"computeHasText(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],zV.prototype,"hasText",void 0);_.x([_.jj("#expander"),_.e("design:type",Object)],zV.prototype,"expander",void 0);_.x([_.jj("#action-buttons"),_.e("design:type",Object)],zV.prototype,"actionButtons",void 0);_.x([_.jj("#edit-dialog"),_.e("design:type",HTMLElement)],zV.prototype,"editDialogEl",void 0);
_.x([_.H("data.contentText"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zV.prototype,"contentTextChanged",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zV.prototype,"dataChanged",null);_.x([_.H("isLoading"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zV.prototype,"isLoadingChanged",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],zV.prototype,"onYtNavigate",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zV.prototype,"onYtCommentboxDismiss",null);_.x([_.B("yt-comment-poll-revert"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],zV.prototype,"onYtCommentPollRevert",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],zV.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],zV.prototype,"onYtServiceRequestCompleted",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],zV.prototype,"voteCount",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],zV.prototype,"commentCount",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zV.prototype,"hasPoll",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zV.prototype,"hasUploadedVideo",null);zV=_.x([_.d({is:"ytd-post-renderer",disableElementRegistration:!0})],zV);
_.T(zV,"ytd-post-renderer",function(){if(YTV!==void 0)return YTV;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return YTV=y},{mode:1});var jRJ;var yBT;var Wom=function(){return _.v.apply(this,arguments)||this};
_.R(Wom,_.v);Wom.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
var YV=Wom;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Si.YtdHorizontalListBehavior),_.e("design:type",Object)],YV.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],YV.prototype,"componentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],YV.prototype,"data",void 0);_.x([_.L({value:"$.items.children"}),_.e("design:type",String)],YV.prototype,"itemsPath",void 0);_.x([_.L({value:1}),_.e("design:type",Number)],YV.prototype,"initialCount",void 0);_.x([_.L(),_.e("design:type",String)],YV.prototype,"surface",void 0);YV=_.x([_.d({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],YV);
_.T(YV,"ytd-post-multi-image-renderer",function(){if(yBT!==void 0)return yBT;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return yBT=y},{mode:_.xm("kevlar_poly_si_batch_j079")?1:2});var cB3={"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"}}},Z35=function(){var y=_.v.apply(this,arguments)||this;y.hasInlineCommentSection=!1;y.editDialog=null;y.isLoading=!1;y.shouldHideAuthor=!1;y.shouldShowVideoTime=!1;
y.isInEngagementPanel=!1;y.hideBorder=!1;y.usesFullLockup=!1;y.shouldShowMenuInCompactView=!1;y.JSC$12930_spinnerEl=null;y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return y};
_.R(Z35,_.v);_.f=Z35.prototype;_.f.configureRendererStamper=function(){return cB3};
_.f.computeIsPollHeaderEnabled=function(y){return(y==null?void 0:y.pollMetadataIcon)!=null};
_.f.getPublishTimeStampString=function(y,W){W=new Date((Number(W)-60*((new Date).getTimezoneOffset()-(new Date(Number(W)*1E3)).getTimezoneOffset()))*1E3);W=(new B$(10)).format(W);if(y&&y.runs&&y.runs.length)for(var c=0;c<y.runs.length;c++)y.runs[c].text&&(y.runs[c].text=y.runs[c].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",W));return y};
_.f.created=function(){this.JSC$12930_spinnerEl=null};
_.f.contentTextChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var y;if((y=this.data)==null?0:y.actions){y=_.z(this.data.actions);for(var W=y.next();!W.done;W=y.next())this.openEditDialog(_.g(W.value,SpT))}};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){_.p(this.hostElement).querySelector("#action-buttons").reply()};
_.f.updatePoll=function(y,W){W&&this.set("data.pollMetadataVoteCountText",W);this.hasInlineCommentSection&&(y=y>=0,W=_.p(this.hostElement).querySelector("#action-buttons"),y?W.reply():W.hideReplyDialog())};
_.f.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12930_spinnerEl||(this.JSC$12930_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.p(this.hostElement).appendChild(this.JSC$12930_spinnerEl));this.JSC$12930_spinnerEl&&(this.JSC$12930_spinnerEl.active=this.isLoading)};
_.f.onYtNavigate=function(y){var W=this.get("updateCommentDialogEndpoint",y.detail.endpoint);W&&(this.openEditDialog(W),y.stopPropagation())};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.onYtCommentPollRevert=function(y,W){W&&this.updatePoll(W.selectedChoiceIndex,W.totalVotes)};
_.f.onYtServiceRequestSent=function(y,W){y.stopPropagation();y=_.g(W.endpoint,Ex);if(_.g(W.endpoint,W_V)||y&&!y.clientActions)this.isLoading=!0;if(W.actions)for(y=0;y<W.actions.length;y++){var c=W.actions[y],Z=_.g(c,Xb);Z&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c===void 0&&(c=-1),this.updatePoll(c,Z.totalVotes))}};
_.f.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.f.openEditDialog=function(y){y&&y.dialog&&(this.editDialog=y.dialog,y=this.editDialogElement.firstElementChild)&&(y.focus(),y.openDialog&&y.openDialog())};
_.f.computeIsBodyHidden=function(y,W){return!!y||W};
_.dJ.Object.defineProperties(Z35.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.pollMetadataIcon)==null?0:W.iconType)return _.wp(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.voteCount)||_.Lq("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,AAQ))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,UYm))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.g(this.data.backstageAttachment,$YT))}}});
var mn=Z35;mn.prototype.onYtServiceRequestCompleted=mn.prototype.onYtServiceRequestCompleted;mn.prototype.onYtServiceRequestSent=mn.prototype.onYtServiceRequestSent;mn.prototype.onYtCommentPollRevert=mn.prototype.onYtCommentPollRevert;mn.prototype.onYtCommentboxDismiss=mn.prototype.onYtCommentboxDismiss;mn.prototype.onYtNavigate=mn.prototype.onYtNavigate;mn.prototype.isLoadingChanged=mn.prototype.isLoadingChanged;mn.prototype.dataChanged=mn.prototype.dataChanged;mn.prototype.contentTextChanged=mn.prototype.contentTextChanged;
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],mn.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mn.prototype,"rendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],mn.prototype,"rendererstamperBehavior",void 0);_.x([_.jj("#contentTextExpander"),_.e("design:type",Object)],mn.prototype,"expander",void 0);
_.x([_.jj("#edit-dialog"),_.e("design:type",Element)],mn.prototype,"editDialogElement",void 0);_.x([_.L(),_.e("design:type",Object)],mn.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],mn.prototype,"hasInlineCommentSection",void 0);_.x([_.L(),_.e("design:type",Object)],mn.prototype,"editDialog",void 0);_.x([_.L(),_.e("design:type",Object)],mn.prototype,"isLoading",void 0);
_.x([_.L({computed:"computeIsPollHeaderEnabled(data)"}),_.e("design:type",Boolean)],mn.prototype,"isPollHeaderEnabled",void 0);_.x([_.L(),_.e("design:type",Object)],mn.prototype,"shouldHideAuthor",void 0);_.x([_.L(),_.e("design:type",Object)],mn.prototype,"shouldShowVideoTime",void 0);_.x([_.L(),_.e("design:type",Object)],mn.prototype,"isInEngagementPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mn.prototype,"hideBorder",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mn.prototype,"usesFullLockup",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mn.prototype,"shouldShowMenuInCompactView",void 0);_.x([_.A("isInEngagementPanel"),_.e("design:type",Number),_.e("design:paramtypes",[])],mn.prototype,"postTextMaxLines",null);_.x([_.A("data.icon.iconType"),_.e("design:type",Object),_.e("design:paramtypes",[])],mn.prototype,"pollIcon",null);
_.x([_.H("data.contentText"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mn.prototype,"contentTextChanged",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mn.prototype,"dataChanged",null);_.x([_.H("isLoading"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mn.prototype,"isLoadingChanged",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],mn.prototype,"onYtNavigate",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mn.prototype,"onYtCommentboxDismiss",null);_.x([_.B("yt-comment-poll-revert"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],mn.prototype,"onYtCommentPollRevert",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],mn.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],mn.prototype,"onYtServiceRequestCompleted",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],mn.prototype,"voteCount",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],mn.prototype,"commentCount",null);_.x([_.A("data.backstageAttachment"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],mn.prototype,"hasPoll",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],mn.prototype,"hasQuiz",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],mn.prototype,"hasUploadedVideo",null);
mn=_.x([_.d({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],mn);
_.T(mn,"ytd-backstage-post-renderer",function(){if(jRJ!==void 0)return jRJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return jRJ=y},{mode:1});var GEW;var f8V=function(){var y=_.v.apply(this,arguments)||this;y.editDialog=null;y.showExpandButton=!1;y.isRichGrid=!1;y.usesFullLockup=!1;return y};
_.R(f8V,_.v);_.f=f8V.prototype;_.f.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"}}}};
_.f.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.f.computeShowExpandButton=function(y){return this.usesCompactLockup||y&&y.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.f.computeUsesCompactLockup=function(y){return!!y.condensedContent};
_.f.computeShowFullContentText=function(y){return!y};
_.f.onYtNavigate=function(y){y=this.get("updateCommentDialogEndpoint",y.detail.endpoint);this.openEditDialog(y)};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.openEditDialog=function(y){y&&y.dialog&&(this.editDialog=y.dialog,y=this.repostEditDialogEl.firstElementChild)&&(y.focus(),y.openDialog&&y.openDialog())};
_.f.onTap=function(y){if(this.data){var W=null;this.usesCompactLockup&&!_.Cx(_.Aq(y)||[],this.hostElement,["YT-IMG-SHADOW"])?W=this.get("navigationEndpoint",this.data):y.target===this.moreButtonEl&&(W=this.get("navigationEndpoint",y.target.data));W&&_.Z2(this.hostElement,"yt-navigate",{endpoint:W})}};
var s7=f8V;s7.prototype.onYtCommentboxDismiss=s7.prototype.onYtCommentboxDismiss;s7.prototype.onYtNavigate=s7.prototype.onYtNavigate;s7.prototype.dataChanged=s7.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],s7.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],s7.prototype,"editDialog",void 0);_.x([_.L({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],s7.prototype,"usesCompactLockup",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],s7.prototype,"showExpandButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],s7.prototype,"isRichGrid",void 0);
_.x([_.L({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.e("design:type",Boolean)],s7.prototype,"showFullContentText",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],s7.prototype,"usesFullLockup",void 0);_.x([_.jj("#more"),_.e("design:type",Object)],s7.prototype,"moreButtonEl",void 0);_.x([_.jj("#repost-content-text"),_.e("design:type",HTMLElement)],s7.prototype,"repostContentTextEl",void 0);
_.x([_.jj("#repost-edit-dialog"),_.e("design:type",HTMLElement)],s7.prototype,"repostEditDialogEl",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],s7.prototype,"dataChanged",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],s7.prototype,"onYtNavigate",null);
_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],s7.prototype,"onYtCommentboxDismiss",null);s7=_.x([_.d({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],s7);
_.T(s7,"ytd-shared-post-renderer",function(){if(GEW!==void 0)return GEW;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return GEW=y},{mode:1});var oe8;var DwV;var ux=function(){return _.v.apply(this,arguments)||this};
_.R(ux,_.v);ux.prototype.attached=function(){var y=this;this.networkStatusManager||(this.networkStatusManager=new _.CX,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){y.onlineHandler()}))};
ux.prototype.detached=function(){var y=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){y.onlineHandler()}),delete this.networkStatusManager)};
ux.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
var t2=ux;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],t2.prototype,"data",void 0);t2=_.x([_.d({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],t2);
_.T(t2,"ytd-reload-page-button-renderer",function(){if(DwV!==void 0)return DwV;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return DwV=y},{mode:1});var zvW={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"},YGW=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(YGW,_.v);_.f=YGW.prototype;_.f.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.f.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.f.computeHasBodyText=function(y){return!!y.bodyText};
_.f.computeButtons=function(y){var W=[];y.ctaButton&&W.push(y.ctaButton);y.secondaryButton&&W.push(y.secondaryButton);return W};
_.f.computeRendererStyle=function(y){return y.style?y.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():y.icon?"":"no-icon"};
_.f.getIconName=function(y,W){W=W===void 0?!1:W;if(y===void 0)return"";y=this.get("icon.iconType",y);var c;_.O("enable_hlp_client_icon_pick")?c=this.getThemedIcon(y,W):c=y;(W=zvW[c])||(W="yt-icons");return[W,c].join(":")};
_.f.getThemedIcon=function(y,W){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(y)?W?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(y)?W?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":y};
_.f.isThumbnail=function(y){return!!y.thumbnail};
_.f.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
var nW=YGW;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],nW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],nW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nW.prototype,"data",void 0);
_.x([_.L({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.e("design:type",String)],nW.prototype,"rendererStyle",void 0);_.x([_.L({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.e("design:type",String)],nW.prototype,"iconName",void 0);_.x([_.L({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],nW.prototype,"thumbnail",void 0);_.x([_.L({computed:"computeButtons(data)"}),_.e("design:type",Array)],nW.prototype,"buttons",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],nW.prototype,"isDarkTheme",void 0);_.x([_.L({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],nW.prototype,"hasBodyText",void 0);nW=_.x([_.d({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],nW);
_.T(nW,"ytd-background-promo-renderer",function(){if(oe8!==void 0)return oe8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return oe8=y},{mode:1});var mw2;var sRV=function(){var y=_.v.apply(this,arguments)||this;y.collections=_.O("web_modern_collections_v2");return y};
_.R(sRV,_.v);_.dJ.Object.defineProperties(sRV.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G,D;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(Z=c.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(G=this.data)==null?void 0:(D=G.thumbnail)==null?void 0:D.darkColorPalette,experimentEnabled:this.collections}}}});
var XS=sRV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],XS.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],XS.prototype,"collections",void 0);_.x([_.A("data","collections"),_.e("design:type",Object),_.e("design:paramtypes",[])],XS.prototype,"collectionStack",null);XS=_.x([_.d({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],XS);
_.T(XS,"ytd-compact-station-renderer",function(){if(mw2!==void 0)return mw2;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return mw2=y},{mode:1});var uHE;var tPV=function(){var y=_.v.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.R(tPV,_.v);tPV.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]]"}}}}}};
var bx=tPV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bx.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bx.prototype,"isRichGrid",void 0);bx=_.x([_.d({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],bx);
_.T(bx,"ytd-grid-channel-renderer",function(){if(uHE!==void 0)return uHE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return uHE=y},{mode:1});var neQ;var XlZ=function(){return _.v.apply(this,arguments)||this};
_.R(XlZ,_.v);var rO=XlZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],rO.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],rO.prototype,"data",void 0);rO=_.x([_.d({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],rO);
_.T(rO,"ytd-grid-movie-playlist-renderer",function(){if(neQ!==void 0)return neQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return neQ=y},{mode:1});var b3E;var FS=function(){var y=_.v.apply(this,arguments)||this;y.downloadProgress=0;y.transferState="TRANSFER_STATE_UNKNOWN";y.modernButtons=_.O("web_modern_buttons");y.useModernCollectionsV2=_.O("web_modern_collections_v2");return y};
_.R(FS,_.v);FS.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
FS.prototype.configureRendererStamper=function(){return{"data.menu":Zc}};
FS.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
FS.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.O("woffle_playlist_renderer_killswitch")){var y,W=RZh(this.entityInfo,this.transferState,this.downloadProgress,(y=this.data)==null?void 0:y.playlistId,this.isOnline);y=W.viewPlaylistText;var c=W.badges;W=W.thumbnailOverlays;this.isDownloads=!!y||!!c;this.set("data.viewPlaylistText",y);c&&c.length>0&&this.set("data.badges",c);W&&W.length>0&&this.set("data.thumbnailOverlays",
W)}};
_.dJ.Object.defineProperties(FS.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 y;return!((y=this.data)==null?0:y.menu)}}});
var U7=FS;U7.prototype.transferStateChanged=U7.prototype.transferStateChanged;U7.prototype.dataChanged=U7.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],U7.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],U7.prototype,"ytdReduxBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({selector:_.L_1,selectorArgs:["data.playlistId"]}),_.e("design:type",Object)],U7.prototype,"downloadProgress",void 0);_.x([_.L({selector:_.pq,selectorArgs:["data.playlistId"]}),_.e("design:type",Object)],U7.prototype,"transferState",void 0);_.x([_.L({selector:HHO,selectorArgs:["data.playlistId"]}),_.e("design:type",Object)],U7.prototype,"entityInfo",void 0);
_.x([_.L({selector:VzE}),_.e("design:type",Boolean)],U7.prototype,"isOnline",void 0);_.x([_.L(),_.e("design:type",Object)],U7.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],U7.prototype,"downloadRenderData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],U7.prototype,"modernButtons",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],U7.prototype,"isDownloads",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],U7.prototype,"useModernCollectionsV2",void 0);_.x([_.A("transferState"),_.L({reflectToAttribute:!0}),_.e("design:type",String),_.e("design:paramtypes",[])],U7.prototype,"downloadState",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],U7.prototype,"menuHidden",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],U7.prototype,"dataChanged",null);_.x([_.Gs("transferState","downloadProgress","isOnline"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],U7.prototype,"transferStateChanged",null);U7=_.x([_.d({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],U7);
_.T(U7,"ytd-grid-playlist-renderer",function(){if(b3E!==void 0)return b3E;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return b3E=y},{mode:1});var rB2;var FoE=function(){var y=_.v.apply(this,arguments)||this;y.collections=_.O("web_modern_collections_v2");return y};
_.R(FoE,_.v);FoE.prototype.configureRendererStamper=function(){return{"data.menu":Zc,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.dJ.Object.defineProperties(FoE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G,D;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(Z=c.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(G=this.data)==null?void 0:(D=G.thumbnail)==null?void 0:D.darkColorPalette,experimentEnabled:this.collections}}}});
var $V=FoE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],$V.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],$V.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$V.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$V.prototype,"collections",void 0);_.x([_.A("data","collections"),_.e("design:type",Object),_.e("design:paramtypes",[])],$V.prototype,"collectionStack",null);$V=_.x([_.d({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],$V);
_.T($V,"ytd-grid-radio-renderer",function(){if(rB2!==void 0)return rB2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return rB2=y},{mode:1});var Uwi;var $wT=function(){var y=_.v.apply(this,arguments)||this;y.useModernCollectionsV2=_.O("web_modern_collections_v2");return y};
_.R($wT,_.v);$wT.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
$wT.prototype.computeNavigationEndpoint=function(y){return COw(y==null?void 0:y.navigationEndpoint)};
var KW=$wT;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],KW.prototype,"ytdLockupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],KW.prototype,"data",void 0);
_.x([_.L({computed:"computeNavigationEndpoint(data)"}),_.e("design:type",Object)],KW.prototype,"computedNavigationEndpoint",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KW.prototype,"useModernCollectionsV2",void 0);KW=_.x([_.d({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],KW);
_.T(KW,"ytd-grid-show-renderer",function(){if(Uwi!==void 0)return Uwi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Uwi=y},{mode:1});var KoV;_.O7=function(y){this.playerClient=y};
_.O3E=function(y,W,c){c=c===void 0?{}:c;return y.playerClient.setOption("ad",W,c)};
_.O7.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.O7.prototype.executeCommand=function(y,W){this.getOptions().includes("executeCommand")?_.O3E(this,"executeCommand",{command:y,layoutId:W}):_.e8("Calling executeCommand when adModule is not loaded")};var gem=function(){return _.v.apply(this,arguments)||this};
_.R(gem,_.v);gem.prototype.getLayoutId=function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
gem.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var y=_.HF(),W=this.getLayoutId(),c=this.data.clickthroughEndpoint;y&&W&&_.O("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?y.getPlayerPromise().then(function(Z){(new _.O7(Z)).executeCommand(c,W)}):_.Z2(this.hostElement,"yt-navigate",{endpoint:c})}};
var gO=gem;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],gO.prototype,"data",void 0);gO=_.x([_.d({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],gO);
_.T(gO,"ytd-shopping-companion-item-renderer",function(){if(KoV!==void 0)return KoV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return KoV=y},{mode:1});var RvJ;var l88=function(){var y=_.v.apply(this,arguments)||this;y.isExpandableContent=!1;return y};
_.R(l88,_.v);_.dJ.Object.defineProperties(l88.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?void 0:y.price)||((W=this.data)==null?void 0:(c=W.dealsData)==null?void 0:c.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)!=null&&y.dealsData&&((W=this.data)==null||!W.priceReplacementText)){y=this.data.dealsData;var c,Z,G;return((c=y.salesData)==null?void 0:c.originalPrice)||((Z=y.priceDropData)==null?void 0:Z.referencePrice)||((G=y.promotionData)==null?void 0:G.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var y,W;return(y=this.data)==null?void 0:(W=y.dealsData)==null?void 0:W.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
var RM=l88;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],RM.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],RM.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],RM.prototype,"isExpandableContent",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"showCta",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"ctaText",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"hasPriceTopPosition",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"hasPriceBottomPosition",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"useNewStyle",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"showPriceReplacementText",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"priceValue",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"showDeal",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"showAffiliateDisclaimer",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"useSaleStyle",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"useFromBrandCtaStyle",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"useFromVendorCtaStyle",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],RM.prototype,"useShoppingCollectionCtaStyle",null);RM=_.x([_.d({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],RM);
_.T(RM,"ytd-vertical-product-card-renderer",function(){if(RvJ!==void 0)return RvJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return RvJ=y},{mode:1});var Ee5;var N9V=function(){return _.v.apply(this,arguments)||this};
_.R(N9V,_.v);N9V.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var lx=N9V;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],lx.prototype,"ytdLockupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],lx.prototype,"data",void 0);lx=_.x([_.d({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],lx);
_.T(lx,"ytd-grid-movie-renderer",function(){if(Ee5!==void 0)return Ee5;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Ee5=y},{mode:1});var I8T;var pl3=function(){var y=_.v.apply(this,arguments)||this;y.rounded=!0;y.itemStyle="small-item";return y};
_.R(pl3,_.v);pl3.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var y,W,c,Z,G=(W=_.g((y=this.data)==null?void 0:y.buttonCommand,_.WSV))==null?void 0:(c=W.item)==null?void 0:(Z=c.notificationTextRenderer)==null?void 0:Z.successResponseText;G&&_.S6I(this.hostElement,G)}};
_.dJ.Object.defineProperties(pl3.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.isProductPlaceholder)!==void 0&&((W=this.data)==null?void 0:W.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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}}});
var E7=pl3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],E7.prototype,"rounded",void 0);_.x([_.L(),_.e("design:type",Object)],E7.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],E7.prototype,"itemStyle",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],E7.prototype,"hasPrice",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],E7.prototype,"hasPriceReplacementText",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],E7.prototype,"hasAdditionalFeesText",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],E7.prototype,"hasAffiliateDisclaimer",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],E7.prototype,"isProductPlaceholder",null);
_.x([_.L(),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],E7.prototype,"hideOpenInNewIcon",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],E7.prototype,"ariaLabel",null);E7=_.x([_.d({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],E7);
_.T(E7,"ytd-merch-shelf-item-renderer",function(){if(I8T!==void 0)return I8T;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return I8T=y},{mode:1});var PKW=_.Ax(function(y){var W=_.HO();_.VL(W,function(){return y.data().rendererContext});
return _.X("button-card-view-model",{el:W,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return y.data().title},
role:"button"},_.X(_.zb,{model:{}}),_.X("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.X("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.X(_.YN,{cond:function(){return y.data().image},
then:function(c){return _.X(_.J3,{data:c,alt:function(){var Z;return(Z=y.data().title)!=null?Z:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.X("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return y.data().title})))},"Ra");_.O("web_button_view_model_wcw_registration_killswitch")||_.A3(PKW,"button-card-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){y=_.V0(y,{className:void 0});var W=y.data;y=y.className;var c=_.Yk(function(){return W().onTapCommand},void 0,"NprDr");
return _.X("ytd-shopping-item-card",{class:_.Mi("ytdShoppingItemCardHost",y)},_.X(_.oL,{command:c,className:"ytdShoppingItemCardHostLink"},_.X("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.X(_.bg,{data:function(){return W().thumbnailViewModel}},{thumbnailViewModel:function(Z){return _.X(eA,{data:Z.data,
aspectRatio:3})}})),_.X("div",null,_.X("p",{class:"ytdShoppingItemCardHostItemTitle"},_.X(_.Da,{text:function(){return W().itemTitle}})),_.X("p",{class:"ytdShoppingItemCardHostPrice"},_.X(_.Da,{text:function(){return W().priceOrStatus}})))))},"Sa"),"ytd-shopping-item-card",{props:{data:_.Ix,
className:_.Ix}});var wi=null,T1y={};var iJI="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(" "),NT={},MpI=(NT.FEwhat_to_watch="home",NT.FEhashtag="hashtag",NT.FEtrending="trending",NT.FEhistory="history",NT.SPunlimited="premium",NT.FEmemberships_and_purchases="paid_memberships",NT.SPredeem_code="redeem",NT.SPverify_location="locate",NT.SPminor_moment="minor_moment",
NT.FEmini_app_container="mini_app",NT.FEnews_destination="news",NT.SPopen_in_app="open_in_app",NT.FEexplore="explore",NT.FEsubscriptions="subscriptions",NT.FEsfv_audio_pivot="sfv_audio_pivot",NT.FEplaylist_aggregation="playlist_aggregation",NT);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");_.sc("init");var yuH=_.ug({badgeViewModel:xwF}),q6f=function(){},JB8=_.qi(ZkO),VPV=_.Ax(function(y){var W=_.Yk(function(){var c=y.data().entityId;
return c?c.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"oz73f");
return _.X("ytm-shorts-lockup-view-model-v2",{class:_.Mi("shortsLockupViewModelHost",y.className)},_.X(_.HkV,{contentId:W,aspectRatio:function(){var c;if(((c=y.aspectRatio)==null?void 0:c.call(y))===1)return 1;var Z;return((Z=y.aspectRatio)==null?void 0:Z.call(y))===2?2:4}},function(){return _.X(JB8,Object.assign({},y))}))},"Ta");
_.eu(ZkO);_.eu(jJy);_.eu(cuf);_.eu(Gh1);_.eu(W1H);_.A3(VPV,"ytm-shorts-lockup-view-model-v2",{props:{data:_.QE,inlineMetadata:_.QE,aspectRatio:_.QE,scrimStyle:_.QE,className:_.QE,useDefaultStyle:_.QE}});var CKV=16/9*210,IM=function(){var y=_.v.apply(this,arguments)||this;y.isExpandableContent=!1;y.hideShelfHeader=!1;y.engagementPanel=!1;y.buttonClasses=["arrow"];y.isSearch=!1;y.disableScrollEventListener=!1;y.containsLockup=!1;y.overrideArrowPositionForProductCard=!1;y.overrideArrowPositionForShoppingItemCard=!1;y.overrideArrowPositionForReelItems=!1;y.overrideArrowPositionForGridMovie=!1;y.overrideArrowPositionToCenter=!1;y.isSearchPostShelf=!1;y.overrideArrowPositionForMixedShelf=!1;y.overrideArrowPositionForMixedShelfShortsOnly=
!1;y.hasBigThumbsReelItems=!1;y.shouldUseMixedListHeight=!1;y.shouldUseShortsListHeight=!1;y.gridVideoWidth=0;y.isSearchVodShelf=!1;y.disableWheelScroll=!1;y.sizing="COMPACT";y.shortsLockupAspectRatio=0;return y};
_.R(IM,_.v);_.f=IM.prototype;
_.f.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]]"}}}}};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.O("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.f.computeInitialCountNumber=function(y){if(!y)return 6;var W=y.items.some(function(D){return!!D.topicRecommendationsChipRenderer}),c=y.items.some(function(D){return!!D.displayAdRenderer}),Z=this.computeShouldListItemsHaveEqualHeight(y),G=y.items.some(function(D){return!!D.gridPlaylistRenderer});
y=y.items.some(function(D){return!!D.shoppingItemCardViewModel});
return W?9:c?8:G||Z?10:y?7:6};
_.f.computeContainsPost=function(y){return!!y&&!!y.items&&y.items.some(function(W){return!!W.postRenderer})};
_.f.computeContainsLockup=function(){if(_.O("web_horizontal_list_lockup_arrow_killswitch"))return!1;var y,W;return(y=this.data)==null?void 0:(W=y.items)==null?void 0:W.some(function(c){return!!c.lockupViewModel})};
_.f.maybeUpdateLockupAspectRatio=function(){var y,W;if(this.computeContainsLockup()&&((y=this.data)==null?0:(W=y.items)==null?0:W.length)){var c;y=eHh((c=this.data.items[0].lockupViewModel)==null?void 0:c.contentType,this.data.force16By9ThumbnailAspectRatio);c=P2a(y);c=this.computeLockupWidth()/c;_.wM(this.hostElement,{"--yt-horizontal-list-content-height":c+"px"})}};
_.f.computeOverrideArrowPositionForProductCard=function(y){if(this.isExpandableContent)return!1;var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(c){return!!c.verticalProductCardRenderer}))};
_.f.computeOverrideArrowPositionForShoppingItemCard=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(c){return!!c.shoppingItemCardViewModel}))};
_.f.computeOverrideArrowPositionForReelItemRenderer=function(y){return this.containsReelItemRenderer(y)};
_.f.computeHasBigThumbsReelItems=function(y,W){return y&&this.containsReelItemRenderer(W)};
_.f.computeShouldListItemsHaveEqualHeight=function(y){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(y==null?void 0:y.itemSizeConstraint)};
_.f.computeShouldListItemsHaveShortsHeight=function(y){return this.computeShouldListItemsHaveEqualHeight(y)&&!this.containsGridVideoRenderer(y)};
_.f.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.f.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.f.containsReelItemRenderer=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(c){return!(!c.reelItemRenderer&&!c.shortsLockupViewModel)}))};
_.f.containsGridVideoRenderer=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(c){return!!c.gridVideoRenderer||!!c.lockupViewModel}))};
_.f.computeContainsGridMovieRenderer=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(c){return!!c.gridMovieRenderer}))};
_.f.computeOverrideArrowPositionToCenter=function(y){return this.computeIsSearchPostShelf(y)};
_.f.computeIsSearchPostShelf=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(c){var Z,G;return((G=(Z=c.postRenderer)==null?void 0:Z.surface)!=null?G:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.f.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(y){var W;return!!(y==null?0:(W=y.items)==null?0:W.some(function(c){var Z,G,D;return((D=(Z=c.backgroundPromoRenderer)==null?void 0:(G=Z.style)==null?void 0:G.value)!=null?D:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.f.computeIsSearchVodShelf=function(y,W){return y&&this.containsGridVideoRenderer(W)};
_.f.computeDisableWheelScroll=function(y,W){return this.computeIsSearchVodShelf(y,W)};
_.f.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.f.computeShortsLockupAspectRatio=function(y){return y&&_.O("web_shorts_2_by_3_lockups_no_search")&&!_.O("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.f.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.wM(this.hostElement,{"--ytd-reel-item-thumbnail-height":CKV+"px"})};
IM.prototype.dataChanged=IM.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Si.YtdHorizontalListBehavior),_.e("design:type",Object)],IM.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],IM.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],IM.prototype,"isExpandableContent",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"hideShelfHeader",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"engagementPanel",void 0);_.x([_.L(),_.e("design:type",Array)],IM.prototype,"buttonClasses",void 0);_.x([_.L(),_.e("design:type",Object)],IM.prototype,"isSearch",void 0);
_.x([_.L(),_.e("design:type",Object)],IM.prototype,"disableScrollEventListener",void 0);_.x([_.L({computed:"computeInitialCountNumber(data)"}),_.e("design:type",Number)],IM.prototype,"initialCount",void 0);_.x([_.L({computed:"computeContainsPost(data)"}),_.e("design:type",Boolean)],IM.prototype,"supportComponentResize",void 0);_.x([_.L({computed:"computeContainsPost(data)"}),_.e("design:type",Boolean)],IM.prototype,"containsPost",void 0);
_.x([_.L({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"containsLockup",void 0);_.x([_.L({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],IM.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.x([_.L({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"overrideArrowPositionForProductCard",void 0);_.x([_.L({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.x([_.L({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"overrideArrowPositionForReelItems",void 0);_.x([_.L({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"overrideArrowPositionForGridMovie",void 0);
_.x([_.L({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"overrideArrowPositionToCenter",void 0);_.x([_.L({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"isSearchPostShelf",void 0);_.x([_.L({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.x([_.L({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.x([_.L({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"hasBigThumbsReelItems",void 0);
_.x([_.L({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"shouldUseMixedListHeight",void 0);_.x([_.L({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"shouldUseShortsListHeight",void 0);_.x([_.L({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"gridVideoWidth",void 0);
_.x([_.L({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"isSearchVodShelf",void 0);_.x([_.L({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.e("design:type",Object)],IM.prototype,"disableWheelScroll",void 0);_.x([_.L({computed:"computeSizing(isSearch)"}),_.e("design:type",Object)],IM.prototype,"sizing",void 0);
_.x([_.L({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.e("design:type",Object)],IM.prototype,"shortsLockupAspectRatio",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],IM.prototype,"dataChanged",null);
_.T(IM,"yt-horizontal-list-renderer",function(){if(uT5===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);uT5=y}y=uT5;return y},{mode:1});var QRE;var ABi=[10,12,14,16,18,20,24,28,32,36],hv2=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],B9i=function(){var y=_.v.apply(this,arguments)||this;y.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";y.hideOverflow=!1;y.useRoboto=!1;y.fontClass="";y.overflown=!1;y.actionMap={"yt-window-resized":"resize"};return y};
_.R(B9i,_.v);_.f=B9i.prototype;
_.f.attached=function(){var y=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();_.Lv(this,function(){y.resize()});
if(!_.G$){var W,c,Z;(W=document)==null||(c=W.fonts)==null||(Z=c.ready)==null||Z.then(function(){y.resize()})}};
_.f.dataChanged=function(){this.resize()};
_.f.guideIsExpandedChanged=function(){this.resize()};
_.f.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 y=this.getMaxNumLines(),W=this.getMinFont(),c=this.getMaxFont(),Z=this.useRoboto?ABi:hv2;for(Z=Z.filter(function(D){return D<=c&&D>=W});Z.length>1;){var G=Math.floor(Z.length/2);
this.updateFontSize(Z[G]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=y)Z=Z.slice(G,Z.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>y)Z=Z.slice(0,G);else break}this.updateFontSize(Z[Z.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(y)}};
_.f.handleOverflow=function(y){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>y&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",y.toString()))};
_.f.updateFontSize=function(y){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+y;this.textNode.classList.add(this.fontClass)};
_.f.getMaxFont=function(){var y=this.useRoboto?ABi:hv2;y=y[y.length-1];return this.maxFontSize&&this.maxFontSize<=y?this.maxFontSize:y};
_.f.getMinFont=function(){var y=(this.useRoboto?ABi:hv2)[0];return this.minFontSize&&this.minFontSize>=y?this.minFontSize:y};
_.f.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.f.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.f.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.v$(this.text).split("\n").length-1:Infinity};
_.f.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()}};
var pW=B9i;pW.prototype.guideIsExpandedChanged=pW.prototype.guideIsExpandedChanged;pW.prototype.dataChanged=pW.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],pW.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],pW.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pW.prototype,"text",void 0);
_.x([_.L(),_.e("design:type",String)],pW.prototype,"fontFamily",void 0);_.x([_.L(),_.e("design:type",Number)],pW.prototype,"maxWidth",void 0);_.x([_.L(),_.e("design:type",Number)],pW.prototype,"maxHeight",void 0);_.x([_.L(),_.e("design:type",Number)],pW.prototype,"maxFontSize",void 0);_.x([_.L(),_.e("design:type",Number)],pW.prototype,"minFontSize",void 0);_.x([_.L(),_.e("design:type",Number)],pW.prototype,"maxLines",void 0);_.x([_.L(),_.e("design:type",Object)],pW.prototype,"hideOverflow",void 0);
_.x([_.L({selector:_.EPI}),_.e("design:type",Boolean)],pW.prototype,"guideIsExpanded",void 0);_.x([_.jj("#container"),_.e("design:type",HTMLElement)],pW.prototype,"containerNode",void 0);_.x([_.jj("#text"),_.e("design:type",HTMLElement)],pW.prototype,"textNode",void 0);_.x([_.Gs("text"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pW.prototype,"dataChanged",null);
_.x([_.Gs("guideIsExpanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pW.prototype,"guideIsExpandedChanged",null);pW=_.x([_.d({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],pW);
_.T(pW,"yt-dynamic-sizing-formatted-string",function(){if(QRE!==void 0)return QRE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return QRE=y},{mode:1});var H3V;_.LoQ=function(y){_.yw.call(this,y)};
_.R(_.LoQ,_.yw);var ve3=function(y){_.yw.call(this,y)};
_.R(ve3,_.LoQ);var PB=function(){return _.v.apply(this,arguments)||this};
_.R(PB,_.v);PB.prototype.onTapSuspendedChannel=function(){var y;if((y=this.data)!=null&&y.serviceEndpoint){var W,c;(y=(c=_.g((W=this.data)==null?void 0:W.serviceEndpoint,_.CD))==null?void 0:c.url)?_.l0(y,void 0,void 0,window.top):(W=new ve3("Did not handle suspended account tap. No appealUrl."),_.OP(W))}else W=new ve3("Did not handle suspended account tap. No serviceEndpoint."),_.OP(W)};
PB.prototype.onTap=function(){var y=this,W=_.Zz(),c,Z=(c=_.ch(W,{veType:7116}))!=null?c:void 0;_.lv(W,{visualElement:Z});_.gM();this.saveRoleText();var G;if((G=this.data)==null?0:G.youtubeSuspended)this.onTapSuspendedChannel();else{var D=!1,Y,u;(W=(u=_.g((Y=this.data)==null?void 0:Y.serviceEndpoint,_.DtV))==null?void 0:u.supportedTokens)&&W.forEach(function(t){if(t.accountSigninToken)if(D=!0,y.onAccountItemTap)y.onAccountItemTap(t.accountSigninToken.signinUrl);else _.l0(t.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!D){if(Y=this.get("serviceEndpoint",this.data))D=!0,this.ytComponentBehavior.resolveCommand(Y);D||_.gC(new ve3("Did not handle account switch tap. No token."))}}};
PB.prototype.saveRoleText=function(){if(this.data){var y=this.data,W=y.channelDelegationRole;if(W){var c,Z=(c=_.g(y==null?void 0:y.serviceEndpoint,_.DtV))==null?void 0:c.supportedTokens;if(!Z){var G,D,Y,u;Z=(G=_.g(y==null?void 0:y.serviceEndpoint,_.bX))==null?void 0:(D=G.popup)==null?void 0:(Y=D.confirmDialogRenderer)==null?void 0:(u=Y.confirmButton)==null?void 0:u.buttonRenderer;var t;Z=(t=_.g(Z==null?void 0:Z.command,_.uN))==null?void 0:t.commands;if(!Z)return;var b;Z=(b=_.g(Z[1],_.DtV))==null?
void 0:b.supportedTokens}if(Z){t=void 0;b=_.z(Z);for(Z=b.next();!Z.done;Z=b.next())if(Z=Z.value,Z.datasyncIdToken){t=Z.datasyncIdToken.datasyncIdToken;break}if(t){var r;a:{if(_.YkE()&&(b=_.z4D(t+"::pom"))){b=new GI(b);break a}b=void 0}(r=b)==null||r.set("role_text",W);if((Ona?Ona:window.location).href.indexOf("studio")!==-1&&(r=ml1())){b=r.src?(new URL(r.src)).origin:"*";var F;(F=r.contentWindow)==null||F.postMessage({action:"save_pom_role",datasyncId:t,roleText:W},b)}}}}}};
_.dJ.Object.defineProperties(PB.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.data)==null?void 0:(W=y.accountPhoto)==null?void 0:W.thumbnails;return c&&c.length>0&&(c[0].height===36||c[0].height===48)?c[0].height:40}}});
var J2=PB;J2.prototype.onTap=J2.prototype.onTap;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],J2.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],J2.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!1}),_.e("design:type",Function)],J2.prototype,"onAccountItemTap",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],J2.prototype,"enableRingForActiveAccount",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],J2.prototype,"thumbnailSize",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],J2.prototype,"onTap",null);J2=_.x([_.d({is:"ytd-account-item-renderer",disableElementRegistration:!0})],J2);
_.T(J2,"ytd-account-item-renderer",function(){if(H3V!==void 0)return H3V;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return H3V=y},{mode:1});var dw8;var SG0=function(){return _.v.apply(this,arguments)||this};
_.R(SG0,_.v);SG0.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.U().resolve(_.i1).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
var V9=SG0;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],V9.prototype,"data",void 0);V9=_.x([_.d({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],V9);
_.T(V9,"ytd-identity-chip-renderer",function(){if(dw8!==void 0)return dw8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dw8=y},{mode:1});var T9Z;var a8W;var xwW;var i3J;var MPZ=function(){var y=_.v.apply(this,arguments)||this;y.richItemMinWidth=_.ey("wn_grid_min_item_width",310);y.isShorts=!1;y.isWatchNext=!1;y.isExploreHub=!1;return y};
_.R(MPZ,_.v);_.dJ.Object.defineProperties(MPZ.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var y=[],W=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.wM(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var c;if(((c=this.data)==null?0:c.rows)&&W)for(W*=this.data.rows,c=0;c<W;c++)y.push({});return y}}});
var CW=MPZ;_.x([_.C(_.$s),_.e("design:type",Object)],CW.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],CW.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.lo,value:3}),_.e("design:type",Number)],CW.prototype,"itemsPerRow",void 0);_.x([_.L({selector:_.lEO,value:6}),_.e("design:type",Number)],CW.prototype,"slimItemsPerRow",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Number)],CW.prototype,"richItemMinWidth",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],CW.prototype,"miniMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CW.prototype,"isShorts",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CW.prototype,"isWatchNext",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CW.prototype,"isExploreHub",void 0);
_.x([_.A("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.e("design:type",Array),_.e("design:paramtypes",[])],CW.prototype,"cardItems",null);CW=_.x([_.d({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],CW);
_.ev8=_.a5()(CW,"ytd-ghost-grid-renderer",function(){if(i3J===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);i3J=y}y=i3J;return y},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.A3(_.Ax(function(y){var W=_.V0(y,{numberOfComments:3}).numberOfComments,c=_.V0(y,{isInitialLoad:!1}).isInitialLoad,Z=_.FP(_.NW),G=function(){return Math.min(Number(W==null?void 0:W())||20,20)};
return _.X("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.X(_.YN,{cond:function(){return(Z==null?void 0:Z())&&(c==null?void 0:c())},
then:function(){return _.X("div",{class:"ytGhostCommentsComments"},_.X("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.X("div",{class:_.Mi("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.X("div",{class:_.Mi("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.X("div",{class:"ytGhostCommentsGhostCard"},_.X("div",{class:"ytGhostCommentsAvatar"},_.X("div",{class:"ytGhostCommentsCircle"})),_.X("div",{class:"ytGhostCommentsComments"},_.X("div",{class:"ytGhostCommentsMeta"},
_.X("div",{class:_.Mi("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.X("div",{class:_.Mi("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.X("div",{class:"ytGhostCommentsComments"},_.X(_.mC,{each:function(){return Array((G==null?void 0:G())||3)}},function(){return _.X("div",{class:"ytGhostCommentsGhostCard"},_.X("div",{class:"ytGhostCommentsAvatar"},_.X("div",{class:"ytGhostCommentsCircle"})),_.X("div",{class:"ytGhostCommentsHost"},_.X("div",{class:"ytGhostCommentsMeta"},
_.X("div",{class:_.Mi("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.X("div",{class:_.Mi("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.X("div",{class:_.Mi("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.X("div",{class:"ytGhostCommentsGhostLikeDislike"},_.X("div",{class:_.Mi("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.X("div",{class:_.Mi("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Ua"),"yt-ghost-comments",{props:{numberOfComments:_.Ix,
isInitialLoad:_.Ix}});_.bv("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var wlE=function(){var y=_.v.apply(this,arguments)||this;y.isOverridable=!1;y.spinnerActive=!1;y.showButton=!1;y.isCommentsSection=!1;y.isShortsGrid=!1;y.isShortsPage=!1;y.isWatchPage=!1;y.ghostCardExperimentEnabled=_.O("show_ghost_comments_shorts_watch")||_.O("show_ghost_comments_desktop_watch");y.originalShowButton=!1;y.endOfList=!1;return y};
_.R(wlE,_.v);_.f=wlE.prototype;_.f.resetIntersectionObserver=function(){var y;(y=this.observer)==null||y.disconnect();this.observer=void 0};
_.f.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var y,W;((y=this.data)==null?void 0:y.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((W=this.data)==null?0:W.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.f.initializeIntersectionObserver=function(){var y=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(W){W=_.z(W);for(var c=W.next();!c.done;c=W.next())c.value.isIntersecting&&(y.triggerContinuation(),y.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.f.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]]"}}}}}};
_.f.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var y;((y=this.data)==null?0:y.continuationEndpoint)&&(y=_.g(this.data.continuationEndpoint,_.$x))&&this.ytdReduxBehavior.dispatch(_.jv({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:y}}))};
_.f.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.f.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.f.onServiceRequestCompleted=function(y,W){if(!_.O("kevlar_hide_spinner_on_empty_continuation_killswitch")){var c;(c=W.actions)!=null&&c.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.f.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.f.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.f.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.f.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var y=3;if(this.isShortsPage){var W,c,Z;y=Math.floor(((((W=this.hostElement)==null?void 0:(c=W.parentElement)==null?void 0:(Z=c.parentElement)==null?void 0:Z.scrollHeight)||108)-108)/108);y=this.isInitialLoad?Math.max(y,3):3}W=[].concat(_.No(this.hostElement.querySelectorAll("yt-ghost-comments")));W=_.z(W);for(c=W.next();!c.done;c=W.next())c=c.value,c.numberOfComments=y,c.isInitialLoad=this.isInitialLoad}};
_.f.detached=function(){this.resetIntersectionObserver()};
_.dJ.Object.defineProperties(wlE.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.O("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.O("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
var Q9=wlE;Q9.prototype.numberOfGhostCommentsChanged=Q9.prototype.numberOfGhostCommentsChanged;Q9.prototype.continuationTriggerOffsetChanged=Q9.prototype.continuationTriggerOffsetChanged;Q9.prototype.showButtonChanged=Q9.prototype.showButtonChanged;Q9.prototype.onYtServiceRequestCompletedForButtonRenderer=Q9.prototype.onYtServiceRequestCompletedForButtonRenderer;Q9.prototype.onServiceRequestCompleted=Q9.prototype.onServiceRequestCompleted;Q9.prototype.onYtServiceRequestSentForButtonRenderer=Q9.prototype.onYtServiceRequestSentForButtonRenderer;
Q9.prototype.observeData=Q9.prototype.observeData;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Rx.YtVisibilityBehavior),_.e("design:type",Object)],Q9.prototype,"ytVisibilityBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],Q9.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Q9.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Q9.prototype,"isOverridable",void 0);_.x([_.L(),_.e("design:type",Object)],Q9.prototype,"spinnerActive",void 0);_.x([_.L(),_.e("design:type",Object)],Q9.prototype,"showButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Q9.prototype,"isCommentsSection",void 0);
_.x([_.L(),_.e("design:type",Object)],Q9.prototype,"isShortsGrid",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.IEt}),_.e("design:type",Object)],Q9.prototype,"isShortsPage",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.NW}),_.e("design:type",Object)],Q9.prototype,"isWatchPage",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Q9.prototype,"ghostCardExperimentEnabled",void 0);_.x([_.L(),_.e("design:type",Number)],Q9.prototype,"continuationTriggerOffset",void 0);
_.x([_.L(),_.e("design:type",Object)],Q9.prototype,"endOfList",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Q9.prototype,"isInitialLoad",void 0);_.x([_.jj("ytd-button-renderer"),_.e("design:type",_.Ay)],Q9.prototype,"buttonRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],Q9.prototype,"buttonOverrides",void 0);
_.x([_.L(),_.A("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.e("design:type",Object),_.e("design:paramtypes",[])],Q9.prototype,"isShortsCommentsSection",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Q9.prototype,"observeData",null);_.x([_.B("yt-service-request-sent-button-renderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Q9.prototype,"onYtServiceRequestSentForButtonRenderer",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],Q9.prototype,"onServiceRequestCompleted",null);_.x([_.B("yt-service-request-completed-button-renderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Q9.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);
_.x([_.Gs("showButton"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Q9.prototype,"showButtonChanged",null);_.x([_.Gs("continuationTriggerOffset"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Q9.prototype,"continuationTriggerOffsetChanged",null);_.x([_.H("isInitialLoad","isShortsPage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Q9.prototype,"numberOfGhostCommentsChanged",null);
Q9=_.x([_.d({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Q9);
_.T(Q9,"ytd-continuation-item-renderer",function(){if(xwW!==void 0)return xwW;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return xwW=y},{mode:1});var qGV;var A2=function(){var y=_.v.apply(this,arguments)||this;y.downloadProgress=0;y.transferState="TRANSFER_STATE_UNKNOWN";y.downloadState="DOWNLOAD_STATE_UNKNOWN";y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";y.offlineVideoPolicyExpirationTimestamp=0;y.downloadedVideoPlaybackPosition=0;return y};
_.R(A2,_.v);A2.prototype.dataChanged=function(){var y;this.videoData=_.g((y=this.data)==null?void 0:y.renderer,vIi);this.transferStateChanged()};
A2.prototype.downloadProgressChanged=function(){if(this.entityInfo){var y=Object.assign({},this.videoData),W=lrF(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),c=W.publishedTimeText,Z=W.badges;y.shortViewCountText=W.shortViewCountText;y.publishedTimeText=c;y.badges=Z;this.set("videoData",y)}};
A2.prototype.transferStateChanged=function(){if(this.entityInfo){var y=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",W=_.Xj(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!nq(this.entityInfo.policyEntity),c=Object.assign({},this.videoData),Z=lrF(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),G=Z.publishedTimeText,D=Z.badges;c.shortViewCountText=
Z.shortViewCountText;c.publishedTimeText=G;c.badges=D;c.isDisabled=W;c.isWatched=this.downloadedVideoPlaybackPosition>0;c.navigationEndpoint=W?void 0:JkI(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Y;y&&((Y=this.videoData)==null?0:Y.videoId)&&!_.O("dl_resume_click_killswitch")&&(c.isDisabled=!1,c.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});c.thumbnailOverlays=gSD(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",c)}};
var h2=A2;h2.prototype.transferStateChanged=h2.prototype.transferStateChanged;h2.prototype.downloadProgressChanged=h2.prototype.downloadProgressChanged;h2.prototype.dataChanged=h2.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],h2.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],h2.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],h2.prototype,"videoData",void 0);_.x([_.L({selector:P$,selectorArgs:["videoData.videoId"]}),_.e("design:type",Object)],h2.prototype,"downloadProgress",void 0);_.x([_.L(),_.e("design:type",Number)],h2.prototype,"relativeDateReference",void 0);_.x([_.L({selector:_.Iv,selectorArgs:["videoData.videoId"]}),_.e("design:type",Object)],h2.prototype,"transferState",void 0);
_.x([_.L({selector:eDO,selectorArgs:["videoData.videoId"]}),_.e("design:type",Object)],h2.prototype,"downloadState",void 0);_.x([_.L({selector:QtO,selectorArgs:["videoData.videoId"]}),_.e("design:type",Object)],h2.prototype,"offlinePolicyAction",void 0);_.x([_.L({selector:AIt,selectorArgs:["videoData.videoId"]}),_.e("design:type",Object)],h2.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.x([_.L({selector:JK,selectorArgs:["videoData.videoId"]}),_.e("design:type",Object)],h2.prototype,"downloadedVideoPlaybackPosition",void 0);_.x([_.L({selector:BFa,selectorArgs:["videoData.videoId"]}),_.e("design:type",Object)],h2.prototype,"entityInfo",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],h2.prototype,"isDownloading",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],h2.prototype,"dataChanged",null);
_.x([_.Gs("downloadProgress"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],h2.prototype,"downloadProgressChanged",null);_.x([_.Gs("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],h2.prototype,"transferStateChanged",null);
h2=_.x([_.d({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],h2);
_.T(h2,"ytd-downloaded-video-grid-video-renderer",function(){if(qGV!==void 0)return qGV;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return qGV=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var kE5;var BB=function(){};
BB.prototype.resolve=function(y,W){var c=this;return _.m(function(Z){return _.n(Z,c.resolveCommand(y,W),0)})};var jhE,HB;jhE=DGE(function(y){return y.targetId},{shouldPersist:!1});
HB=jhE.updateData;_.yV8=jhE.useUpdatableData;var Wc2,cV2;Wc2=DGE(function(y){return y.targetId});
cV2=Wc2.updateData;_.ZTV=Wc2.useUpdatableData;var G3V=feO.bind(null,HB),fjm=feO.bind(null,cV2);(function(y,W,c){var Z=_.g(c==null?void 0:c.updatedRenderer,_.bFT);return Z?y({targetId:W},function(){return Z}):!1}).bind(null,HB);var LW=function(){};
_.R(LW,BB);LW.prototype.resolveCommand=function(y){var W;return _.m(function(c){W=_.g(y,_.KUI);if(!W)return c.return();G3V(W.targetId,W);_.F2(c)})};var ohi=function(){var y=_.cQ.apply(this,arguments)||this;y.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return y};
_.R(ohi,_.cQ);_.f=ohi.prototype;_.f.configureContinuationPathMap=function(){return{}};
_.f.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.f.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.f.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.f.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.f.handleAppendContinuationItemsAction=function(y){var W=_.g(y,_.j7T);if(this.data&&this.data.targetId&&W&&this.continuationPathMap&&W.targetId===this.data.targetId){var c=IxF(y);if((y=c&&this.continuationPathMap[c])&&c){c=this.get(y,this.data);var Z;a:{for(Z=0;Z<c.length;Z++){var G=c[Z],D=void 0,Y=!!_.g((D=_.g(G,Cii))==null?void 0:D.content,_.hd0);if(_.g(G,_.yQ)||Y)break a}Z=c.length}y="data."+y;W.continuationItems?Z===c.length-1?(this.pop(y),this.push.apply(this,[y].concat(_.No(W.continuationItems)))):
Z===c.length?this.push.apply(this,[y].concat(_.No(W.continuationItems))):this.splice.apply(this,[y,Z,1].concat(_.No(W.continuationItems))):this.splice(y,Z,1);(_.O("web_enable_voting_animation")||_.O("enable_music_web_cairo_voting_animation"))&&_.Z2(this.hostElement,"yt-append-continuation-items-action-finished");_.Z2(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Rs(new _.ul("append continuation path does not exist",c))}};
_.f.handleReloadContinuationItemsCommand=function(y){var W=_.g(y,_.KUI);if(this.data&&W){if(_.O("web_explore_hub")||_.O("web_client_explore_hub"))try{_.U().resolve(LW).resolveCommand(y)}catch(D){}if(this.data.targetId&&this.continuationPathMap&&W.targetId===this.data.targetId&&(!_.O("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||W.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var c,Z=(c=W.slot)==null?void 0:c.replace("RELOAD_CONTINUATION_SLOT_","");c=(y=IxF(y)+
"-"+(Z==null?void 0:Z.toLowerCase()))&&this.continuationPathMap[y];if(!c||!y||!Z)_.Rs(new _.ul("reload continuation path does not exist",y));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(W)){if(W.replaceWithFirstItem){var G;this.set("data."+c,((G=W.continuationItems)==null?0:G.length)?W.continuationItems[0]:{})}else this.set("data."+c,W.continuationItems?W.continuationItems:[]);this.continuationIsReloading=!1;_.Z2(this.hostElement,"yt-reload-continuation-finish",
null,{bubbles:!1})}}}};
_.f.handleShowReloadUiCommand=function(y){y=_.g(y,uOW);var W;((W=this.data)==null?0:W.targetId)&&(y==null?0:y.targetId)&&y.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
var vB=ohi;vB.prototype.observeData=vB.prototype.observeData;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],vB.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],vB.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vB.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],vB.prototype,"continuationIsReloading",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vB.prototype,"observeData",null);vB=_.x([_.ZV()],vB);_.dO=[_.KA.YtComponentBehavior,_.Hj.YtActionHandlerBehavior,vB.prototype];_.S7={};_.S7.YtNextContinuationBehavior=[_.CA.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",_.qO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.qO(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(y,W){y.stopPropagation();if(this.nextContinuation.requestPath){y=this.nextContinuation.requestPath;var c={};_.O("direct_innertube_click_tracking_reporting")&&(c={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(y,W,c)}else y={locationRetrieved:function(Z,G){var D={};_.O("direct_innertube_click_tracking_reporting")&&G.clickTrackingParams&&Object.assign(D,{context:{clickTracking:{clickTrackingParams:G.clickTrackingParams}}});
this.makeNextContinuationRequest_(Z,W,D)}.bind(this)},_.Z2(this.hostElement,"yt-retrieve-location",y)},
makeNextContinuationRequest_:function(y,W,c){_.JE("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();y=W(y);var Z;this.canUseContextualNetworkManager_()&&(Z=this.getNetworkManager());Z||(Z=_.U().resolve(_.tq));W=_.Ee.instance;if(_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&W){Z=_.Tx([y.startsWith("/")?y.substr(1):y]);var G,D;c=_.OU(W,{},Z,c==null?void 0:(G=c.context)==null?void 0:(D=G.clickTracking)==null?void 0:D.clickTrackingParams).then(function(Y){return{response:Y}})}else c=
this.nextContinuation.usePost?Z.postData(y,c):Z.fetchData(y);
c.then(this.updateNextContinuationData_.bind(this,y));this.pendingContinuationRequest_=c;this.startListeningForNavigate_()},
updateNextContinuationData_:function(y,W){var c=this;_.JE("ncl");this.pendingContinuationRequest_=void 0;if(W){var Z={};this.nextContinuation&&(Z=this.nextContinuation);if(W.response&&W.response.continuationContents&&W.response.continuationContents[Z.continuationType]){y=W.response.continuationContents[Z.continuationType];var G=Z.header||"data.header",D=y[Z.responseHeaderKey||"header"];D&&this.set(G,D);G=Z.contentsArray||"data.contents";D=this.getContents_(y,Z.responseContentsKey||"contents")||[];
this.pathExists_(G)?(D.unshift(G),this.push.apply(this,D)):this.set(G,D);D&&(oUw(_.Zz(),W.response,this.hostElement,function(Y){_.GG(c.hostElement,"yt-store-grafted-ve-action",[Y])}),_.Z2(this.hostElement,"yt-next-continuation-data-updated",{continuationData:W,
page:this,contentsArray:G}));this.set(Z.continuationsArray||"data.continuations",y[Z.responseContinuationsKey||"continuations"]||[])}else W.reload?_.Rs(new _.ul("Reloading from continuation is unsupported")):W.responseContext&&W.responseContext.errors||(delete W.xsrf_token,delete W.timing,delete W.endpoint,delete W.csn,W.responseContext&&delete W.responseContext.serviceTrackingParams,G={request:_.BI(y,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(W).sort()},W.response&&(G.responseContentKeys=
Object.keys(W.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(G.continuationType=this.nextContinuation.continuationType.substr(0,256)),W=new _.ul("Malformed continuation",G),y.indexOf("/comment_service_ajax")==0?_.Rs(W):_.OP(W)),this.set(Z.continuationsArray||"data.continuations",[])}else _.gC(new _.ul("Missing continuation response",y))},
getContents_:function(y,W){W=W.split(".");return _.Eb.getValueByKeys(y,W)},
pathExists_:function(y){var W=this;y=y.toString().split(".");for(var c=0;c<y.length;c++)if(W=W[y[c]],W===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var DU5;var zCZ;var Yy3=function(){var y=_.v.apply(this,arguments)||this;y.triggered_=!1;return y};
_.R(Yy3,_.v);_.f=Yy3.prototype;_.f.attached=function(){this.maybeTriggerAutoload()};
_.f.detached=function(){this.hasBeenTriggered_=!1};
_.f.onPrescanVisible=function(){this.onShow()};
_.f.onShow=function(){this.showButton||this.trigger()};
_.f.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Z2(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.f.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.f.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.f.computeLabel_=function(y,W){return y===void 0?null:y.label||!W?y.label:this.showMoreText_};
_.f.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.f.getContinuationUrl=function(y){var W={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(W.itct=this.data.clickTrackingParams);return _.HI(y,W)};
_.f.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
var TV=Yy3;TV.prototype.showButtonChanged_=TV.prototype.showButtonChanged_;TV.prototype.observeData_=TV.prototype.observeData_;_.x([_.C(_.Rx.YtVisibilityBehavior),_.e("design:type",Object)],TV.prototype,"ytVisibilityBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TV.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],TV.prototype,"showButton",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],TV.prototype,"showIcon",void 0);_.x([_.L({computed:"computeLabel_(data, showButton)"}),_.e("design:type",Object)],TV.prototype,"label",void 0);_.x([_.L({value:_.Lq(_.bN("SHOW_MORE",void 0,"Show More"))}),_.e("design:type",Object)],TV.prototype,"showMoreText_",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],TV.prototype,"spinnerActive_",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],TV.prototype,"hasBeenTriggered_",void 0);
_.x([_.L({value:void 0}),_.e("design:type",String)],TV.prototype,"observeVisibleOption",void 0);_.x([_.L({value:void 0}),_.e("design:type",String)],TV.prototype,"observeHiddenOption",void 0);_.x([_.L({value:"observe_once"}),_.e("design:type",Object)],TV.prototype,"observePrescanOption",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TV.prototype,"observeData_",null);
_.x([_.H("showButton"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TV.prototype,"showButtonChanged_",null);TV=_.x([_.n6({is:"yt-next-continuation",disableElementRegistration:!0})],TV);
_.T(TV,"yt-next-continuation",function(){if(zCZ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;DU5===void 0&&(DU5=document.createElement("template"));var Z=DU5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);zCZ=y}y=zCZ;return y},{mode:2});var mUZ;var shJ;var utW=function(){return _.v.apply(this,arguments)||this};
_.R(utW,_.v);utW.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
var aM=utW;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aM.prototype,"data",void 0);aM=_.x([_.n6({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],aM);
_.T(aM,"yt-music-pass-small-feature-info-renderer",function(){if(shJ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;mUZ===void 0&&(mUZ=document.createElement("template"));var Z=mUZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);shJ=y}y=shJ;return y},{mode:2});_.bv("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var tB2=function(){var y=_.v.apply(this,arguments)||this;y.isCollapsible=!1;y.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return y};
_.R(tB2,_.v);_.f=tB2.prototype;_.f.computeIsCollapsible=function(y){return!!(((y==null?0:y.showMoreText)||(y==null?0:y.visibleRowCount))&&(y==null?0:y.isCollapsible))};
_.f.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"}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.f.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.f.onIronResize=function(){var y=this;_.gp(this,"updateGridInitItems",function(){y.maybeUpdateInitialItemsDisplayed()})};
_.f.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var y=this.getVisibleWidth();y!==0&&(y=Math.floor(y/214)*(this.data.visibleRowCount||2),y!==this.initialCount&&(this.initialCount=y,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.f.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.f.computeExpandVisible=function(y,W,c,Z){return y&&W&&c&&!!Z&&!!Z.showMoreText};
_.f.computeShowMoreButton=function(y){return{text:y,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.f.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.f.initCollapsed=function(){var y=this;this.ytLazyListBehavior.canShowMore=!1;var W;(this.collapsed=!((W=this.data)==null||!W.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Lv(this,function(){_.fl(y.hostElement,"yt-refit-popups-action")})};
_.f.fillRestIfNotCollapsible=function(){var y=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!y||this.ytLazyListBehavior.fillRemainingListItems()};
_.f.computeViewAllHidden=function(y,W){return y||!W.viewAllEndpoint};
var xV=tB2;xV.prototype.fillRestIfNotCollapsible=xV.prototype.fillRestIfNotCollapsible;xV.prototype.initCollapsed=xV.prototype.initCollapsed;xV.prototype.onIronResize=xV.prototype.onIronResize;xV.prototype.persistentGuideChanged=xV.prototype.persistentGuideChanged;_.x([_.C(_.K7),_.e("design:type",Object)],xV.prototype,"ironResizableBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],xV.prototype,"ytLazyListBehavior",void 0);_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],xV.prototype,"ytNextContinuationBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],xV.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.C(_.dO),_.e("design:type",Object)],xV.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xV.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],xV.prototype,"collapsed",void 0);_.x([_.L(),_.e("design:type",Number)],xV.prototype,"initialCount",void 0);_.x([_.L({computed:"computeShowMoreButton(data.showMoreText)"}),_.e("design:type",Object)],xV.prototype,"showMoreButton",void 0);
_.x([_.L({computed:"computeIsCollapsible(data)"}),_.e("design:type",Object)],xV.prototype,"isCollapsible",void 0);_.x([_.jj("#items"),_.e("design:type",HTMLElement)],xV.prototype,"items",void 0);_.x([_.Gs("guidePersistentAndVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xV.prototype,"persistentGuideChanged",null);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xV.prototype,"onIronResize",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xV.prototype,"initCollapsed",null);_.x([_.Gs("canShowMore"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xV.prototype,"fillRestIfNotCollapsible",null);xV=_.x([_.d({is:"ytd-grid-renderer",disableElementRegistration:!0})],xV);
_.T(xV,"ytd-grid-renderer",function(){if(kE5!==void 0)return kE5;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kE5=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var nhV=function(){return _.v.apply(this,arguments)||this};
_.R(nhV,_.v);
nhV.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"}}}};
var ix=nhV;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ix.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ix.prototype,"data",void 0);ix=_.x([_.d({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],ix);
_.T(ix,"ytd-carousel-ad-renderer",function(){if(a8W!==void 0)return a8W;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return a8W=y},{mode:1});var XSm;var MT,bTZ=function(){return _.v.apply(this,arguments)||this};
_.R(bTZ,_.v);_.f=bTZ.prototype;_.f.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"}}}};
_.f.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,MT.JSC$13100_CLICK_LOCATION_ID_MAP))};
_.f.onSitelinkTap=function(y){y.stopPropagation();var W,c,Z=y==null?void 0:(W=y.model)==null?void 0:(c=W.item)==null?void 0:c.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,y,!1)};
_.f.onTap=function(y){var W=this.data&&this.data.content&&this.data.content.navigationEndpoint;W&&this.ytSparklesClickLocationBehavior.handleClick(W,y,!1)};
_.f.sendImpression=function(){if(this.data&&this.data.content)for(var y=_.z(this.data.content.impressionEndpoints||[]),W=y.next();!W.done;W=y.next()){W=_.z(W.value.loggingUrls||[]);for(var c=W.next();!c.done;c=W.next())c=c.value,c.baseUrl&&VJ(c.baseUrl,c.attributionSrcMode)}};
var e7=MT=bTZ;MT.prototype.onTap=MT.prototype.onTap;MT.prototype.dataChanged=MT.prototype.dataChanged;e7.JSC$13100_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],e7.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],e7.prototype,"data",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],e7.prototype,"dataChanged",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],e7.prototype,"onTap",null);e7=MT=_.x([_.d({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],e7);
_.T(e7,"ytd-promoted-sparkles-text-search-renderer",function(){if(XSm!==void 0)return XSm;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XSm=y},{mode:1});var rVZ;var wO,Fci=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return y};
_.R(Fci,_.v);_.f=Fci.prototype;
_.f.configureRendererStamper=function(){return{"data.menu":{id:_.O("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]]"}}}}}};
_.f.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.f.computeHasAdBadge=function(y){return!(y==null||!y.adBadge)};
_.f.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",wO.JSC$13109_DEFAULT_AD_BADGE_RENDERER),_.i0(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,wO.JSC$13109_CLICK_LOCATION_ID_MAP))};
_.f.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var y;(((y=this.data)==null?void 0:y.impressionCommands)||[]).forEach(function(W){W=_.z(W.loggingUrls||[]);for(var c=W.next();!c.done;c=W.next())c=c.value,c.baseUrl&&VJ(c.baseUrl,c.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.f.onTap=function(y){var W,c=(W=this.data)==null?void 0:W.navigationEndpoint,Z;(W=(Z=this.data)==null?void 0:Z.thumbnailNavigationEndpoint)&&_.Qf(_.Aq(y),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(W,y,!1):c&&this.ytSparklesClickLocationBehavior.handleClick(c,y,!1)};
_.f.handleMuteAd=function(){this.collapsed=!0};
_.f.attached=function(){var y=this;_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.O("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.dJ.Object.defineProperties(Fci.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var y;return!(((y=this.data)==null?void 0:y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var y;return!(((y=this.data)==null?void 0:y.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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}}});
var qT=wO=Fci;wO.prototype.dataChanged=wO.prototype.dataChanged;
qT.JSC$13109_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"]]);
qT.JSC$13109_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.bN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.x([_.C(UO),_.e("design:type",Object)],qT.prototype,"ytdActiveViewBehavior",void 0);
_.x([_.C([_.Hj.YtActionHandlerBehavior]),_.e("design:type",Object)],qT.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],qT.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qT.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],qT.prototype,"collapsed",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs")}}),
_.e("design:type",Boolean)],qT.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],qT.prototype,"biggerThumbsStyle",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.e("design:type",Boolean)],qT.prototype,"fixAlignmentSmallScreens",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs_square")}}),
_.e("design:type",Boolean)],qT.prototype,"useBiggerThumbsSquare",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.mediaHoverOverlay"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qT.prototype,"hideHoverOverlay",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qT.prototype,"webSearchLayout",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qT.prototype,"webSearchLayoutLandscape",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qT.prototype,"webSearchLayoutSquare",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data.promotedSparklesWebStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qT.prototype,"sparklesCtaNoBackground",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.actionButton"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qT.prototype,"hideActionButton",null);_.x([_.L({computed:"computeButtonOverride(uiUpdate)"}),_.e("design:type",Object)],qT.prototype,"buttonOverride",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.e("design:type",Boolean)],qT.prototype,"hasNewAdBadge",void 0);_.x([_.A("data.promotedSparklesWebStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qT.prototype,"useRoundedBadge",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qT.prototype,"dataChanged",null);qT=wO=_.x([_.d({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],qT);
_.T(qT,"ytd-promoted-sparkles-web-renderer",function(){if(rVZ!==void 0)return rVZ;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return rVZ=y},{mode:1});var UUi;var kV,$UE=function(){return _.v.apply(this,arguments)||this};
_.R($UE,_.v);_.f=$UE.prototype;_.f.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]]"}}}}}};
_.f.computeShowCta=function(y){return!(y==null||!y.ctaRenderer)};
_.f.onCtaClick=function(){var y,W,c,Z=(y=this.data)==null?void 0:(W=y.ctaRenderer)==null?void 0:(c=W.buttonRenderer)==null?void 0:c.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.f.onWatchButtonClick=function(){var y,W,c,Z=(y=this.data)==null?void 0:(W=y.watchButtonRenderer)==null?void 0:(c=W.buttonRenderer)==null?void 0:c.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.f.onTap=function(){};
_.f.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",kV.JSC$13112_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",kV.JSC$13112_DEFAULT_CLICK_LOCATION_BEHAVIOR,kV.JSC$13112_CLICK_LOCATION_ID_MAP),this.thumbnail)){var y=this.thumbnail.getElementsByTagName("a");y.length>0&&(y=y.namedItem("thumbnail"))&&y.removeAttribute("href")}};
_.f.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var y=_.z(this.data.impressionUrls),W=y.next();!W.done;W=y.next())W=W.value,miH(W,uxI(W));this.data.impressionsFired=!0}};
_.f.maybeComputeHref=function(){return null};
_.f.computeIsShortDR=function(y){return!(y==null||!y.watchButtonRenderer)&&!(y==null||!y.ctaRenderer)&&!!this.enableShortDR};
_.f.computeIsNewUiOrShortDr=function(y){return!!this.enableUiUpdate||this.computeIsShortDR(y)};
_.f.computeIsNewUiAndNotShortDr=function(y){return!!this.enableUiUpdate&&!this.computeIsShortDR(y)};
_.f.computeHideAvatar=function(y){return!((y==null?0:y.channelThumbnail)&&this.computeIsNewUiOrShortDr(y))};
_.f.onClick=function(y){var W,c=(W=this.data)==null?void 0:W.navigationEndpoint;if(this.enableShortDR&&c&&(_.g(c,_.Sb)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(c,y,!!_.g(c,_.Sb)),y.stopPropagation();else if(c&&_.g(c,_.Sb))this.ytSparklesClickLocationBehavior.handleClick(c,y,!0),y.stopPropagation();else if(c){var Z,G;((Z=this.data)==null?0:Z.navigationEndpoint)&&((G=this.data)==null?0:G.adPlaybackContextParams)&&ZGy(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(c)}};
_.f.computeButtonOverride=function(y){if(this.computeIsNewUiOrShortDr(y))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.f.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.f.onThumbnailContainerClick=function(y){this.onClick(y)};
_.f.computeThumbnailWidth=function(y,W){return y?W==="MASSIVE"?600:W==="BIG"?500:W==="MEDIUM"?450:420:360};
_.f.attached=function(){var y=this;_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.O("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var jM=kV=$UE;kV.prototype.dataChanged=kV.prototype.dataChanged;kV.prototype.onTap=kV.prototype.onTap;jM.JSC$13112_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.bN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};jM.JSC$13112_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
jM.JSC$13112_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jM.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jM.prototype,"ytRendererBehavior",void 0);_.x([_.C(UO),_.e("design:type",Object)],jM.prototype,"ytdActiveViewBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],jM.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],jM.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jM.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs")}}),
_.e("design:type",Boolean)],jM.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_video_display_compact_button_group_for_desktop_search")}}),
_.e("design:type",Boolean)],jM.prototype,"enableShortDR",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_vac_ui_update_for_desktop_search")}}),
_.e("design:type",Boolean)],jM.prototype,"enableUiUpdate",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],jM.prototype,"biggerThumbsStyle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.e("design:type",Boolean)],jM.prototype,"showCta",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.e("design:type",Boolean)],jM.prototype,"isShortDr",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.e("design:type",Boolean)],jM.prototype,"isShortDrOrNewUi",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.e("design:type",Boolean)],jM.prototype,"isNewUiAndNotShortDr",void 0);_.x([_.L({computed:"computeButtonOverride(data)"}),_.e("design:type",Object)],jM.prototype,"buttonOverride",void 0);_.x([_.L({computed:"computeSecondaryButtonOverride(data)"}),_.e("design:type",Object)],jM.prototype,"secondaryButtonOverride",void 0);_.x([_.jj("ytd-thumbnail"),_.e("design:type",HTMLElement)],jM.prototype,"thumbnail",void 0);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jM.prototype,"onTap",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jM.prototype,"dataChanged",null);jM=kV=_.x([_.d({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],jM);
_.T(jM,"ytd-promoted-video-renderer",function(){if(UUi!==void 0)return UUi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return UUi=y},{mode:1});var Kcm;var yi,OTi=function(){var y=_.v.apply(this,arguments)||this;y.useRoundedBadge=!0;y.sitelinkIds=[];return y};
_.R(OTi,_.v);_.f=OTi.prototype;
_.f.configureRendererStamper=function(){return{"data.menu":{id:_.O("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]]"}}}}}};
_.f.dataChanged=function(){var y;(y=this.data)!=null&&y.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,yi.JSC$13119_CLICK_LOCATION_ID_MAP)};
_.f.onTap=function(y){var W,c=(W=this.data)==null?void 0:W.navigationCommand;c&&!_.Qf(_.Aq(y),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(c,y,!1)};
_.f.onSitelinkTap=function(y){var W,c,Z=y==null?void 0:(W=y.model)==null?void 0:(c=W.item)==null?void 0:c.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,y,!1)};
_.f.configureSitelinkClickTargets=function(){var y=this,W,c,Z=(W=this.data)==null?void 0:(c=W.clickLocationTargets)==null?void 0:c.find(function(G){return G.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Z&&_.p(this.hostElement).querySelectorAll(".sitelink").forEach(function(G){_.i0(G,"yt-simple-endpoint",!0);y.sitelinkIds.push(G.id);var D,Y;(D=y.ytSparklesClickLocationBehavior)==null||(Y=D.clickTargetMap)==null||Y.set(G.id,Z)})};
_.f.sendImpression=function(){var y,W,c=((y=this.data)==null?void 0:(W=y.impressionCommand)==null?void 0:W.loggingUrls)||[];y=_.z(c);for(W=y.next();!W.done;W=y.next())W=W.value,W.baseUrl&&VJ(W.baseUrl,W.attributionSrcMode)};
_.f.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.dJ.Object.defineProperties(OTi.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
var Wz=yi=OTi;yi.prototype.onTap=yi.prototype.onTap;yi.prototype.dataChanged=yi.prototype.dataChanged;
Wz.JSC$13119_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],Wz.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Wz.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Wz.prototype,"showFavicon",null);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs")}}),
_.e("design:type",Boolean)],Wz.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],Wz.prototype,"biggerThumbsStyle",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.e("design:type",Boolean)],Wz.prototype,"enableThumbnailScalingFix",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Wz.prototype,"dataChanged",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Wz.prototype,"onTap",null);Wz=yi=_.x([_.d({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Wz);
_.T(Wz,"ytd-text-image-no-button-layout-renderer",function(){if(Kcm!==void 0)return Kcm;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Kcm=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var ghJ;var cz,RCV=function(){var y=_.v.apply(this,arguments)||this;y.isInlinePlaybackState=!1;y.uiUpdate=_.O("web_modern_buttons");y.hideCta=_.O("hide_cta_for_home_web_video_ads");y.noBottomMargin=!1;y.animateInTimeStamp=_.ey("hide_cta_for_home_web_video_ads_animate_in_time");y.animateInCta=!1;y.isHovered=!1;y.player=null;y.JSC$13126_playerEvents=new Map;y.JSC$13126_preventProgressSaveTimer=null;y.delayedCtaJobId=null;return y};
_.R(RCV,_.v);_.f=RCV.prototype;_.f.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]]"}}}}}};
_.f.attached=function(){this.JSC$13126_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13126_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.O("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.f.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13126_playerEvents)};
_.f.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",cz.JSC$13125_DEFAULT_CLICK_LOCATION_BEHAVIOR,cz.JSC$13125_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.f.hoverChanged=function(){var y=this;this.delayedCtaJobId&&(_.KX.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.O("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.YY(_.KX,function(){y.buttonContainer.classList.add("show-delayed-buttons")},_.ey("delayed_cta_on_web_delay_milliseconds")))};
_.f.setPlayer=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return(W=_.fl(y.hostElement,"yt-get-inline-preview-player-action"))&&W[0]?_.n(c,W[0].getPlayerPromise(),3):c.jumpTo(0);y.player=c.yieldResult;y.ytPlayerListenerBehavior.listenToPlayerEvents(y.player,y.JSC$13126_playerEvents);_.F2(c)})};
_.f.onPlaybackStart=function(){var y=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13126_preventProgressSaveTimer=_.vh(_.KX,function(){y.JSC$13126_preventProgressSaveTimer=null},1E4))};
_.f.onVideoProgress=function(y){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&y>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.f.resetPreventProgressSaveTimer=function(){_.KX.cancelJob(this.JSC$13126_preventProgressSaveTimer);this.JSC$13126_preventProgressSaveTimer=null};
_.f.getSimpleString=function(y){return _.v$(y)};
_.f.onClick=function(y){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var W,c=(W=this.data)==null?void 0:W.navigationEndpoint,Z;W=(Z=this.data)==null?void 0:Z.channelEndpoint;var G,D;(Z=(D=_.g((G=this.data)==null?void 0:G.adCtaButton,_.RU))==null?void 0:D.command)&&_.Qf(_.Aq(y),this.hostElement,["call-to-action"])?_.O("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(Z,y,!1):W&&_.Qf(_.Aq(y),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(W,y,!1):!_.Qf(_.Aq(y),this.hostElement,["secondary-button"])&&c&&(_.O("enable_short_dr_for_desktop_launchable")?(G=!!_.g(c,_.Sb),this.isInlinePlaybackState&&G&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,y,G)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,y,!0)))}};
_.f.updateWatchEndpointStartTime=function(){var y,W;this.player&&((y=this.data)==null?0:y.inlinePlaybackEndpoint)&&((W=this.data)==null?0:W.navigationEndpoint)&&!this.JSC$13126_preventProgressSaveTimer&&(y=Math.floor(this.player.getCurrentTime()),_.g(this.data.navigationEndpoint,_.Sb).startTimeSeconds=y,_.g(this.data.inlinePlaybackEndpoint,_.Sb).startTimeSeconds=y)};
_.f.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.f.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.dJ.Object.defineProperties(RCV.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.watchButton)&&!((W=this.data)==null||!W.adCtaButton)}}});
var ZR=cz=RCV;cz.prototype.hoverChanged=cz.prototype.hoverChanged;cz.prototype.dataChanged=cz.prototype.dataChanged;
ZR.JSC$13125_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"]]);
ZR.JSC$13125_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],ZR.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],ZR.prototype,"ytSparklesClickLocationBehavior",void 0);
_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],ZR.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ZR.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZR.prototype,"isInlinePlaybackState",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],ZR.prototype,"miniMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZR.prototype,"uiUpdate",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZR.prototype,"hideCta",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZR.prototype,"noBottomMargin",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZR.prototype,"animateInCta",void 0);_.x([_.L({computed:"computeButtonOverride(uiUpdate)"}),_.e("design:type",Object)],ZR.prototype,"buttonOverride",void 0);
_.x([_.L({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.e("design:type",Object)],ZR.prototype,"secondaryButtonOverride",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZR.prototype,"isHovered",void 0);_.x([_.jj("#button-container"),_.e("design:type",HTMLElement)],ZR.prototype,"buttonContainer",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ZR.prototype,"dataChanged",null);
_.x([_.H("isHovered"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ZR.prototype,"hoverChanged",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ZR.prototype,"isButtonGroup",null);ZR=cz=_.x([_.d({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],ZR);
_.T(ZR,"ytd-ad-inline-playback-meta-block",function(){if(ghJ!==void 0)return ghJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ghJ=y},{mode:_.xm("kevlar_poly_si_batch_j065")?1:2});var ljm;var GW,EhE=function(){var y=_.v.apply(this,arguments)||this;y.noBottomMargin=!1;y.isInlinePreviewTriggered=!1;y.JSC$13131_activeViewMeasurementDataResolver=_.px();return y};
_.R(EhE,_.v);_.f=EhE.prototype;_.f.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.attached=function(){var y=this;this.updateInlinePreviewHoverListeners();this.JSC$13131_activeViewMeasurementDataResolver.promise.then(function(W){y.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){this.clearInlinePreviewHoverListeners();_.O("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13131_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:this.JSC$13131_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:a4T})};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$13131_inlinePreviewHoverListener)==null||js(y)};
_.f.onDataChanged=function(){var y;((y=this.data)==null?0:y.activeView)&&this.JSC$13131_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",GW.JSC$13130_DEFAULT_CLICK_LOCATION_BEHAVIOR,GW.JSC$13130_CLICK_LOCATION_ID_MAP);this.thumbnail&&(y=this.thumbnail.getElementsByTagName("a"),y.length>0&&(y=y.namedItem("thumbnail"))&&y.removeAttribute("href"));var W;if((W=this.data)==
null?0:W.hasAutoplay){var c;(c=this.JSC$13131_inlinePreviewHoverListener)==null||n5T(c)}};
_.f.onThumbnailContainerClick=function(y){if(this.data&&this.data.navigationEndpoint){var W,c=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,y,!!_.g(c,_.Sb));y.stopPropagation()}};
_.f.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.f.impressionLog=function(){var y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,c,Z=(c=_.g((W=this.data)==null?void 0:W.onImpression,_.uN))==null?void 0:c.commands;Z&&(Z.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;y.ytComponentBehavior.resolveCommand(G)}),this.data.impressionsFired=!0)}};
_.dJ.Object.defineProperties(EhE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$13131_inlinePreviewHoverListener)==null?0:Em(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var fu=GW=EhE;GW.prototype.onDataChanged=GW.prototype.onDataChanged;fu.JSC$13130_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);fu.JSC$13130_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],fu.prototype,"ytComponentBehavior",void 0);
_.x([_.C(UO),_.e("design:type",Object)],fu.prototype,"ytdActiveViewBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],fu.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],fu.prototype,"ytdLockupBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],fu.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],fu.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fu.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],fu.prototype,"noBottomMargin",void 0);_.x([_.L(),_.e("design:type",Object)],fu.prototype,"isInlinePreviewTriggered",void 0);
_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],fu.prototype,"miniMode",void 0);_.x([_.jj("ytd-thumbnail"),_.e("design:type",HTMLElement)],fu.prototype,"thumbnail",void 0);_.x([_.jj("#dismissible"),_.e("design:type",HTMLElement)],fu.prototype,"JSC$13131_dismissibleMedia",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fu.prototype,"onDataChanged",null);
_.x([_.A("lockupIsHovered"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],fu.prototype,"isHovered",null);fu=GW=_.x([_.d({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],fu);
_.T(fu,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(ljm!==void 0)return ljm;var y=document.createElement("template");_.E(y,'\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]]" 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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ljm=y},{mode:1});var N4m;var o1,Ij5=function(){var y=_.v.apply(this,arguments)||this;y.isInlinePreviewTriggered=!1;y.JSC$13134_activeViewMeasurementDataResolver=_.px();return y};
_.R(Ij5,_.v);_.f=Ij5.prototype;_.f.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.attached=function(){var y=this;this.updateInlinePreviewHoverListeners();this.JSC$13134_activeViewMeasurementDataResolver.promise.then(function(W){y.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)})};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13134_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:this.JSC$13134_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:a4T})};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$13134_inlinePreviewHoverListener)==null||js(y)};
_.f.onDataChanged=function(){var y;((y=this.data)==null?0:y.activeView)&&this.JSC$13134_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",o1.JSC$13133_DEFAULT_CLICK_LOCATION_BEHAVIOR,o1.JSC$13133_CLICK_LOCATION_ID_MAP);this.thumbnail&&(y=this.thumbnail.getElementsByTagName("a"),y.length>0&&(y=y.namedItem("thumbnail"))&&y.removeAttribute("href"))};
_.f.onThumbnailContainerClick=function(y){if(this.data&&this.data.navigationEndpoint){var W,c=(W=this.data)==null?void 0:W.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,y,!0);y.stopPropagation()}};
_.f.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.f.impressionLog=function(){var y=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var W,c,Z=(c=_.g((W=this.data)==null?void 0:W.onImpression,_.uN))==null?void 0:c.commands;Z&&(Z.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;_.U().resolve(_.i1).resolveCommand(G,{form:{element:y.hostElement}})}),this.data.impressionsFired=!0)}};
_.dJ.Object.defineProperties(Ij5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$13134_inlinePreviewHoverListener)==null?0:Em(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var DR=o1=Ij5;o1.prototype.onDataChanged=o1.prototype.onDataChanged;DR.JSC$13133_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);DR.JSC$13133_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.x([_.C(UO),_.e("design:type",Object)],DR.prototype,"ytdActiveViewBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],DR.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],DR.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],DR.prototype,"ytdReduxBehavior",void 0);
_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],DR.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],DR.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],DR.prototype,"isInlinePreviewTriggered",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],DR.prototype,"miniMode",void 0);_.x([_.jj("ytd-thumbnail"),_.e("design:type",HTMLElement)],DR.prototype,"thumbnail",void 0);
_.x([_.jj("#dismissible"),_.e("design:type",HTMLElement)],DR.prototype,"JSC$13134_dismissibleMedia",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],DR.prototype,"onDataChanged",null);_.x([_.A("lockupIsHovered"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],DR.prototype,"isHovered",null);DR=o1=_.x([_.d({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],DR);
_.T(DR,"ytd-video-display-full-buttoned-renderer",function(){if(N4m!==void 0)return N4m;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return N4m=y},{mode:1});var Gq=function(y,W,c,Z){Z=Z===void 0?!1:Z;_.yw.call(this,y);this.adsClientErrorMessage=c;this.aggressivelySample=Z;this.args=[];W&&this.args.push(W)};
_.R(Gq,_.yw);var cE=function(y,W,c,Z){Z=Z===void 0?!1:Z;_.yw.call(this,y);this.adsClientErrorMessage=c;this.aggressivelySample=Z;this.args=[];W&&this.args.push(W)};
_.R(cE,_.yw);var pSQ=function(y){_.UR.call(this);var W=this;this.initializationFunction=y;this.instance=null;this.addOnDisposeCallback(function(){_.Mg(W.instance);W.instance=null})};
_.R(pSQ,_.UR);pSQ.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.e8("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var nUD=function(){var y=new Map;[].forEach(function(W){y.set(W.JSC$26604_getType(),W)})};new Promise(function(){});var YKw=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"]]),DcH=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"}]]),PhT=function(y){this.experimentApiProvider=y;y=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=y<.1};var zW=function(y,W,c,Z){_.UR.call(this);this.adsControlFlowEventListeners=W;this.adEventLogger=c;this.experimentApiProvider=Z;this.adsControlFlowManagerHelper=y(this,this,this,this,this);_.zY(this,this.adsControlFlowManagerHelper);y=_.z(W);for(W=y.next();!W.done;W=y.next())_.zY(this,W.value)};
_.R(zW,_.UR);var JVZ=function(y,W,c,Z){YE(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",W,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z);y=_.z(y.adsControlFlowEventListeners);for(Z=y.next();!Z.done;Z=y.next())JVZ(Z.value,W,c)};
_.f=zW.prototype;_.f.onOpportunityProcessedExternallyManaged=function(y,W,c,Z){YE(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",y,c,W,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)};
_.f.onSlotReceivedExternallyManaged=function(y,W){mm(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",y,W)};
_.f.onSlotEntered=function(y){if(s1(this.adsControlFlowManagerHelper,y)!=null){mm(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",y);this.adsControlFlowManagerHelper.onSlotEntered(y);for(var W=_.z(this.adsControlFlowEventListeners),c=W.next();!c.done;c=W.next())c.value.onSlotEntered(y);if(s1(this.adsControlFlowManagerHelper,y)!=null&&s1(this.adsControlFlowManagerHelper,y).isOccupyingSlotType()&&uW(this.adsControlFlowManagerHelper,y)&&!VBT(this.adsControlFlowManagerHelper,y)){var Z;tT(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",y,(Z=uW(this.adsControlFlowManagerHelper,y))!=null?Z:void 0);y=s1(this.adsControlFlowManagerHelper,y);y.slotLifecycleStage!=="entered"&&nu(y.slot,y.slotLifecycleStage,"enterLayoutForSlot");y.slotLifecycleStage="rendering";y.registeredLayoutRenderingAdapter.startRendering(y.layout)}}};
_.f.onSlotExited=function(y){if(s1(this.adsControlFlowManagerHelper,y)!=null){mm(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",y);this.adsControlFlowManagerHelper.onSlotExited(y);for(var W=_.z(this.adsControlFlowEventListeners),c=W.next();!c.done;c=W.next())c.value.onSlotExited(y);s1(this.adsControlFlowManagerHelper,y)!=null&&s1(this.adsControlFlowManagerHelper,y).markedForUnscheduleAfterOutboundAdapterRequests&&Ch0(this,y)}};
_.f.onLayoutReceivedExternallyManaged=function(y,W,c){y.managerLayer!=="core"&&tT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",y,W,c)};
var QhZ=function(y,W,c){if(s1(y.adsControlFlowManagerHelper,W)!=null){tT(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,c);y=_.z(y.adsControlFlowEventListeners);for(var Z=y.next();!Z.done;Z=y.next())QhZ(Z.value,W,c)}};
zW.prototype.onLayoutExited=function(y,W,c){if(s1(this.adsControlFlowManagerHelper,y)!=null){tT(this.adEventLogger,zAF(c),y,W);this.adsControlFlowManagerHelper.onLayoutExited(y,W);for(var Z=_.z(this.adsControlFlowEventListeners),G=Z.next();!G.done;G=Z.next())G.value.onLayoutExited(y,W,c);(c=uW(this.adsControlFlowManagerHelper,y))&&W.layoutId===c.layoutId&&AVi(this,y)}};
zW.prototype.disposeInternal=function(){var y=hCE(this.adsControlFlowManagerHelper);y=_.z(y);for(var W=y.next();!W.done;W=y.next())Ch0(this,W.value);_.UR.prototype.disposeInternal.call(this)};
var Ch0=function(y,W){if(s1(y.adsControlFlowManagerHelper,W)!=null)if(s1(y.adsControlFlowManagerHelper,W).JSC$26635_isSlotExitRequested()||s1(y.adsControlFlowManagerHelper,W).JSC$26635_isLayoutExitRequested())s1(y.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(s1(y.adsControlFlowManagerHelper,W).isOccupyingSlotType())s1(y.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests=!0,AVi(y,W);else if(s1(y.adsControlFlowManagerHelper,W).JSC$26635_isSlotFillRequested())s1(y.adsControlFlowManagerHelper,
W).markedForUnscheduleAfterOutboundAdapterRequests=!0,s1(y.adsControlFlowManagerHelper,W)!=null&&(mm(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",W),W=s1(y.adsControlFlowManagerHelper,W),W.fulfillmentLifecycleStage="fill_cancel_requested",W.registeredFulfillmentAdapter.cancelSlotFilling());else{var c=uW(y.adsControlFlowManagerHelper,W),Z;y.experimentApiProvider.get();(Z=_.O("h5_enable_layout_unscheduling_events"))&&(c?B4V(y,W,c):_.e8(Error("Ih"),W,c,void 0,!1));mm(y.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",W);var G=s1(y.adsControlFlowManagerHelper,W),D=W.slotEntryTrigger,Y=G.registeredSlotEntryTriggerAdapters.get(D.triggerId);Y&&(Y.unregisterTrigger(D),G.registeredSlotEntryTriggerAdapters.delete(D.triggerId));D=_.z(W.slotFulfillmentTriggers);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;var u=G.registeredFulfillmentTriggerAdapters.get(Y.triggerId);u&&(u.unregisterTrigger(Y),G.registeredFulfillmentTriggerAdapters.delete(Y.triggerId))}D=_.z(W.slotExpirationTriggers);
for(Y=D.next();!Y.done;Y=D.next())if(Y=Y.value,u=G.registeredExpirationTriggerAdapters.get(Y.triggerId))u.unregisterTrigger(Y),G.registeredExpirationTriggerAdapters.delete(Y.triggerId);G.hasLayout()&&(D=G.layout,XA(G,D.layoutExitNormalTriggers),XA(G,D.layoutExitSkipTriggers),XA(G,D.layoutExitMuteTriggers),XA(G,D.layoutExitUserInputSubmittedTriggers),XA(G,D.layoutExitUserCancelledTriggers));G.registeredFulfillmentAdapter=void 0;G.registeredSlotAdapter!=null&&(G.registeredSlotAdapter.release(),G.registeredSlotAdapter=
void 0);G.registeredLayoutRenderingAdapter!=null&&(G.registeredLayoutRenderingAdapter.release(),G.registeredLayoutRenderingAdapter=void 0);G=y.adsControlFlowManagerHelper;s1(G,W)&&(G=HTJ(G,W.slotType+"_"+W.slotPhysicalPosition))&&G.delete(W.slotId);mm(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);y=_.z(y.adsControlFlowEventListeners);for(G=y.next();!G.done;G=y.next())G=G.value,G.onSlotUnscheduled(W),c&&!Z&&B4V(G,W,c)}},B4V=function(y,W,c){tT(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
W,c);
tT(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",W,c);y=_.z(y.adsControlFlowEventListeners);for(var Z=y.next();!Z.done;Z=y.next())Z=Z.value,c&&B4V(Z,W,c)},AVi=function(y,W){if(s1(y.adsControlFlowManagerHelper,W)!=null&&s1(y.adsControlFlowManagerHelper,W).isOccupyingSlotType()){var c=uW(y.adsControlFlowManagerHelper,W);
if(c&&VBT(y.adsControlFlowManagerHelper,W)){if(s1(y.adsControlFlowManagerHelper,W)!=null){var Z=y.adEventLogger,G;var D=((G=DcH.get("abandoned"))==null?void 0:G.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";tT(Z,D,W,c);y=s1(y.adsControlFlowManagerHelper,W);y.slotLifecycleStage!=="rendering"&&nu(y.slot,y.slotLifecycleStage,"exitLayout");y.slotLifecycleStage="rendering_stop_requested";y.registeredLayoutRenderingAdapter.stopRendering(c,"abandoned")}}else{mm(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
W);try{Z=s1(y.adsControlFlowManagerHelper,W);if(!Z)throw new cE("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Z.slotLifecycleStage!=="enter_requested"&&Z.slotLifecycleStage!=="entered"&&Z.slotLifecycleStage!=="rendering"&&nu(Z.slot,Z.slotLifecycleStage,"exitSlot");Z.slotLifecycleStage="exit_requested";if(Z.registeredSlotAdapter===void 0)throw Z.slotLifecycleStage="scheduled",new cE("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Z.registeredSlotAdapter.exit()}catch(Y){Y instanceof cE&&Y.adsClientErrorMessage?(Lc8(y.adEventLogger,Y.adsClientErrorMessage,W),_.e8(Y,W,void 0,void 0,Y.aggressivelySample)):(Lc8(y.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",W),_.e8(Y,W))}}}};var bW=function(y,W,c,Z,G,D){_.UR.call(this);this.registry=y;this.experimentApiProvider=D;this.slotMap=new Map};
_.R(bW,_.UR);var HTJ=function(y,W){return(y=y.slotMap.get(W))?y:new Map},s1=function(y,W){return HTJ(y,W.slotType+"_"+W.slotPhysicalPosition).get(W.slotId)},hCE=function(y){var W=[];
y.slotMap.forEach(function(c){c=_.z(c.values());for(var Z=c.next();!Z.done;Z=c.next())W.push(Z.value.slot)});
return W};
bW.prototype.onSlotEntered=function(y){y=s1(this,y);y.slotLifecycleStage!=="enter_requested"&&nu(y.slot,y.slotLifecycleStage,"onSlotEntered");y.slotLifecycleStage="entered"};
var VBT=function(y,W){y=s1(y,W);return y.hasLayout()&&y.isRendering()},uW=function(y,W){(y=s1(y,W))?y.hasLayout()&&!y.layout&&_.e8("Unexpected empty layout",W):_.e8("Unexpected undefined slotState",W);
return(y==null?void 0:y.layout)||null};
bW.prototype.onSlotExited=function(y){y=s1(this,y);y.slotLifecycleStage!=="exit_requested"&&nu(y.slot,y.slotLifecycleStage,"onSlotExited");y.slotLifecycleStage="scheduled"};
bW.prototype.onLayoutExited=function(y,W){y=s1(this,y);y.isPrimaryLayout(W)&&(y.slotLifecycleStage!=="rendering_stop_requested"&&nu(y.slot,y.slotLifecycleStage,"onLayoutExited"),y.slotLifecycleStage="entered")};
var XA=function(y,W){W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=y.registeredLayoutExitTriggerAdapters.get(c.triggerId);Z&&(Z.unregisterTrigger(c),y.registeredLayoutExitTriggerAdapters.delete(c.triggerId))}},nu=function(y,W,c){_.e8("Slot stage was "+W+" when calling method "+c,y)};var dU2=function(y){_.UR.call(this);this.deps=y;this.JSC$13183_adsControlFlowManager=vhi(this)};
_.R(dU2,_.UR);var vhi=function(y){var W=new zW(function(c,Z,G,D){return new bW(y.deps.registry,c,Z,G,D,y.deps.experimentApiProvider)},new Set(tFf(y.deps.registry).concat(y.deps.listeners)),y.deps.adEventLogger,y.deps.experimentApiProvider);
_.zY(y,W);return W};var Sy2=function(y,W){_.UR.call(this);this.experimentApiProvider=y;this.eventLoggingSettingsProvider=W;this.eventCount=0};
_.R(Sy2,_.UR);Sy2.prototype.logEvent=function(y){YE(this,y)};
var mm=function(y,W,c,Z){YE(y,W,void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,void 0,Z)},tT=function(y,W,c,Z,G){YE(y,W,void 0,void 0,void 0,c,Z?Z:void 0,void 0,void 0,c.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0,void 0,G)},Lc8=function(y,W,c){YE(y,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:W})},YE=function(y,W,c,Z,G,D,Y,u,t,b,r,F,K){K=K===void 0?0:K;
T4W(y.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+W,"slot:",D,"layout:",Y,"ping:",u,"Opportunity:",{opportunityType:c,associatedSlotId:Z,slotsFromOpportunity:G,triggerBundle:t,adSlotLoggingData:b,adLayoutLoggingData:r});try{var l=function(){y.experimentApiProvider.get();if(W!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){W||_.e8("Empty PACF event type",D,Y);var N=y.eventLoggingSettingsProvider.get();var P;(P=N.alwaysIncludeDebugData)||(N.experimentApiProvider.get(),P=
!1);N=P;P={eventType:W,eventOrder:++y.eventCount};var V={};D&&(V.slotData=sJh(N,D));if(Y){var Q={type:Y.layoutType,controlFlowManagerLayer:YKw.get(Y.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N&&(Q.debugData={layoutId:Y.layoutId});V.layoutData=Q}u&&(V.pingData={pingDispatchStatus:u.dispatchStatus,serializedAdPingMetadata:u.ping.serializedAdPingMetadata,pingIndex:u.index});t&&(V.triggerData=mcg(t.trigger,t.category));c&&(V.opportunityData=uVg(N,c,Z,G));P.adClientData=V;b&&(P.serializedSlotAdServingData=
b.serializedSlotAdServingDataEntry);r&&(P.serializedAdServingData=r.serializedAdServingDataEntry);F&&(P.errorInfo=F);_.$g("adsClientStateChange",{adsClientEvent:P})}};
K&&K>0?_.Xc(_.gl(),function(){return l()},K):l()}catch(N){T4W(y.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Xc(_.gl(),function(){_.e8(N instanceof Error?N:String(N),D,Y,{pacf_message:"exception during pacf logging"})})}};var ajE=function(y,W){Sy2.call(this,y,W)};
_.R(ajE,Sy2);var xUT=function(){},T4W=function(y,W){return _.O(W)};var MBZ=function(){var y=new iTE;this.JSC$13202_adsControlFlowManager=(new dU2(y)).JSC$13183_adsControlFlowManager},iTE=function(){_.UR.call(this);
var y=this;this.experimentApiProvider=new pSQ(function(){return new xUT});
var W=new pSQ(function(){return new PhT(y.experimentApiProvider)});
this.adEventLogger=new ajE(this.experimentApiProvider,W);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.R(iTE,_.UR);var eCV=function(){},wSV,rb=function(){wSV||(wSV=new eCV);
return wSV},FA=function(y){if(!y.JSC$13213_externallyManagedSlotAdapterCallback){var W=(new MBZ).JSC$13202_adsControlFlowManager;
y.JSC$13213_externallyManagedSlotAdapterCallback=W}return y.JSC$13213_externallyManagedSlotAdapterCallback},qyT=function(y,W,c){var Z=W.opportunityType,G=Error("Jh");
if(Z!==void 0){var D=FA(y);JVZ(D,Z,void 0,c)}else _.e8(G,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});D=[];if(W.adSlotAndLayoutMetadata!==void 0){W=_.z(W.adSlotAndLayoutMetadata);for(var Y=W.next();!Y.done;Y=W.next()){var u=Y.value;if(Y=u.adSlotMetadata)if(D.push(Y),y.onSlotReceivedExternallyManaged(Y,c),u.adLayoutMetadata){u=_.z(u.adLayoutMetadata);for(var t=u.next();!t.done;t=u.next())y.onLayoutReceivedExternallyManaged(Y,t.value,c)}else c>0&&_.e8("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else c>0&&_.e8("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else c>0&&_.e8("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Z!==void 0)y.onOpportunityProcessedExternallyManaged(Z,D,void 0,c);else _.e8(G,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
eCV.prototype.onSlotReceivedExternallyManaged=function(y,W){y=Zv(y);if(y instanceof cE)_.e8(y,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else FA(this).onSlotReceivedExternallyManaged(y,W)};
eCV.prototype.onLayoutReceivedExternallyManaged=function(y,W,c){y=Zv(y);W=X4y(W);if(y instanceof cE)_.e8(y,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(W instanceof Gq)_.e8(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else FA(this).onLayoutReceivedExternallyManaged(y,W,c)};
eCV.prototype.onOpportunityProcessedExternallyManaged=function(y,W,c,Z){var G=[];W=_.z(W);for(var D=W.next();!D.done;D=W.next())D=Zv(D.value),D instanceof cE?_.e8(D,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):G.push(D);FA(this).onOpportunityProcessedExternallyManaged(y,G,c,Z)};
var k32=function(y,W){W=Zv(W);if(W instanceof cE)_.e8(W,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var c=FA(y);mm(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",W);c=_.z(c.adsControlFlowEventListeners);for(var Z=c.next();!Z.done;Z=c.next())Z=s1(Z.value,W),Z.slotLifecycleStage!=="not_scheduled"&&nu(Z.slot,Z.slotLifecycleStage,"onSlotScheduled"),Z.slotLifecycleStage="scheduled";y=FA(y);mm(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);y=_.z(y.adsControlFlowEventListeners);
for(c=y.next();!c.done;c=y.next())c.value.onSlotEntered(W)}},jkm=function(y,W){W=Zv(W);
if(W instanceof cE)_.e8(W,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var c=FA(y);mm(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);c=_.z(c.adsControlFlowEventListeners);for(var Z=c.next();!Z.done;Z=c.next())Z.value.onSlotExited(W);y=FA(y);mm(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",W);y=_.z(y.adsControlFlowEventListeners);for(c=y.next();!c.done;c=y.next())c.value.onSlotUnscheduled(W)}},ypi=function(y,W,c){W=Zv(W);
c=X4y(c);if(W instanceof cE)_.e8(W,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(c instanceof Gq)_.e8(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Z=FA(y);tT(Z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",W,c);Z=_.z(Z.adsControlFlowEventListeners);for(var G=Z.next();!G.done;G=Z.next())G.value.onLayoutScheduled(W,c);y=FA(y);tT(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",W,c);y=_.z(y.adsControlFlowEventListeners);
for(Z=y.next();!Z.done;Z=y.next())QhZ(Z.value,W,c)}},U1=function(y,W,c){W=Zv(W);
c=X4y(c);if(W instanceof cE)_.e8(W,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(c instanceof Gq)_.e8(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Z=FA(y);tT(Z.adEventLogger,zAF("normal"),W,c);Z=_.z(Z.adsControlFlowEventListeners);for(var G=Z.next();!G.done;G=Z.next())G.value.onLayoutExited(W,c,"normal");y=FA(y);y=_.z(y.adsControlFlowEventListeners);for(Z=y.next();!Z.done;Z=y.next())B4V(Z.value,W,c)}};_.$E=_.Ax(function(y){var W=_.V0(y,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});y=Object.assign({},W);var c=W.data;W=W.customCommandResolver;var Z=(delete y.data,delete y.customCommandResolver,y),G=_.HO();_.di(G,function(){return c().interaction},W,function(){var u;
return(u=Z.listenToTapEvent)==null?void 0:u.call(Z)});
_.MF(G,{visibilityCallback:function(u){var t,b=(t=c().interaction)==null?void 0:t.onFirstVisible;u&&(b&&_.OH(b),Z.setOnErrorHandler()&&bkH(G))},
showOption:_.wx});y=_.z(_.G9(!1,void 0,"eiYvIe"));var D=y.next().value,Y=y.next().value;y=_.j9(function(){var u;((u=Z.setTouchEndHandler)==null?0:u.call(Z))&&!D()&&(G.value.click(),Y(!0),setTimeout(function(){Y(!1)},100));
return!1});
return _.X("ad-image-view-model",{class:function(){var u,t=[((u=c().interaction)==null?0:u.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],b;((b=Z.isGridViewEnabled)==null?0:b.call(Z))&&t.push("ytwAdImageViewModelHostInGridView");return t.join(" ")},
el:G,"on:touchend":y},_.X("div",{class:"ytwAdImageViewModelHostImageContainer"},_.X(_.J3,{data:function(){var u;return{sources:c().imageSources,contentMode:(u=c().imageProperties)==null?void 0:u.contentMode}},
alt:function(){var u,t;return((u=c().interaction)==null?void 0:(t=u.accessibility)==null?void 0:t.label)||""},
targetHeight:Z.targetHeight,targetWidth:Z.targetWidth,preserveHeight:Z.preserveHeight,preserveWidth:Z.preserveWidth,useWidth:Z.useWidth,style:function(){var u,t;return"vertical-align: bottom;"+(((u=c().background)==null?0:u.color)?"background-color:"+_.$$((t=c().background)==null?void 0:t.color)+";":"")},
className:function(){return Z.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var u,t;return(t=(u=Z.setDraggable)==null?void 0:u.call(Z))!=null?t:void 0}})))},"Va");var WJQ=_.Ax(function(y){var W=y.data,c=y.listenToTapEvent,Z=_.HO();_.O("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.di(Z,function(){return W().interaction},void 0,function(){return c==null?void 0:c()});
_.MF(Z,{visibilityCallback:function(D){var Y,u=(Y=W().interaction)==null?void 0:Y.onFirstVisible;D&&u&&_.OH(u)},
showOption:_.wx});y=_.j9(function(){if(_.O("enable_web_home_top_landscape_image_layout_legacy_click_command")){var D,Y=(D=W().interaction)==null?void 0:D.onTap;Y&&_.Z2(Z.value,"yt-navigate",{endpoint:_.UH(Y)})}});
var G=function(){};
return _.X("ad-button-hover-overlay-view-model",{"on:click":y,class:function(){var D;return((D=W().interaction)==null?0:D.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:Z},function(){return _.O("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.X(_.bg,{data:function(){return W().button}},{adButtonViewModel:function(D){return _.X(_.ka,{data:D.data,
customCommandResolver:G})}}):_.X(_.bg,{data:function(){return W().button}},{adButtonViewModel:_.ka})}())},"Wa");var fs;_.A3(_.Ax(function(y){var W=y.data;var c=_.HO();_.O("stop_av_measurement_on_detach")&&_.KL(function(){Dv(c)});
_.di(c,function(){return W().interaction},void 0,function(){return!0});
_.MF(c,{visibilityCallback:function(D){if(D){var Y;(D=(Y=W().interaction)==null?void 0:Y.onFirstVisible)&&_.OH(D);var u;if(Y=(u=W().adLayoutData)==null?void 0:u.activeViewData)o0(c,Y),_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.O("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.wx,hideOption:qB});y=_.z(_.G9(!1,void 0,"yzu6qe"));var Z=y.next().value,G=y.next().value;_.vO(c,"mouseenter",function(){G(!0)});
_.vO(c,"mouseleave",function(){G(!1)});
return _.X("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:c},_.X("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.cF({"max-width":function(){return _.O("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.X("div",{class:function(){var D;
a:{var Y;switch((D=_.g(W().thumbnailImage,uX))==null?void 0:(Y=D.imageProperties)==null?void 0:Y.renderingAspect){case "RENDERING_ASPECT_SQUARE":D="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":D="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}D=void 0}return D}},_.X(_.bg,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(D){return _.X(_.$E,
{data:D.data,
listenToTapEvent:!0,setTouchEndHandler:_.O("enable_top_landscape_image_experiment_dom_id_web")})}})),_.X("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.X(_.YN,{cond:function(){var D,Y,u;
return(D=_.g(W().thumbnailImage,uX))==null?void 0:(Y=D.imageProperties)==null?void 0:(u=Y.overlayIcon)==null?void 0:u.iconImage},
then:function(D){return _.X(_.J3,{data:D,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.X("div",{class:function(){return Z()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.X(_.bg,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(D){return _.X(WJQ,
{data:D.data,
listenToTapEvent:!0})}}))),_.X("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.X(_.bg,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(D){return _.X(TPV,{data:D.data,
listenToTapEvent:!0,setTouchEndHandler:_.O("enable_top_landscape_image_experiment_dom_id_web")})}})))},"Xa"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c=_.HO();_.O("stop_av_measurement_on_detach")&&_.KL(function(){Dv(c)});
var Z=_.FP(_.R3);_.di(c,function(){return W().interaction});
_.MF(c,{visibilityCallback:function(b){if(b){var r;(b=(r=W().interaction)==null?void 0:r.onFirstVisible)&&_.OH(b);var F;if(r=(F=W().adLayoutData)==null?void 0:F.activeViewData)o0(c,r),_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.O("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.wx,hideOption:qB});var G=_.j9(function(b){var r,F,K=(r=_.g(W().adImage,uX))==null?void 0:(F=r.interaction)==null?void 0:F.onTap;K&&(_.O("enable_square_image_components_ui_web_with_custom_event")?_.Z2(c.value,"yt-navigate",{endpoint:_.UH(K)}):VUE(b,K))}),D=_.j9(function(){var b,r,F=(b=_.g(W().adButton,twE))==null?void 0:(r=b.interaction)==null?void 0:r.onTap;
F&&_.Z2(c.value,"yt-navigate",{endpoint:_.UH(F)})}),Y=function(){};
y={};var u={},t={};return _.X("square-image-layout-view-model",{class:_.Mi("ytwSquareImageLayoutViewModelHost",(y.ytwSquareImageLayoutViewModelHostColumn=Z,y)),el:c},_.X("div",{class:_.Mi("ytwSquareImageLayoutViewModelHostImage",(u.ytwSquareImageLayoutViewModelHostColumnImage=Z,u))},function(){return _.O("enable_square_image_components_ui_web_with_native_img")?_.X("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var b,r,F;return((b=_.g(W().adImage,uX))==null?void 0:(r=b.imageSources)==
null?void 0:(F=r[0])==null?void 0:F.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":G}):_.X(_.bg,{data:function(){return W().adImage}},{adImageViewModel:function(b){return _.X(_.$E,{data:b.data,
isGridViewEnabled:Z,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.X("div",{class:_.Mi("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(t.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=Z,t))},_.X(_.bg,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:TPV}),function(){return _.O("enable_square_image_components_ui_web_with_float_button")?_.X("div",{"on:click":D},_.X(_.bg,{data:function(){return W().adButton}},
{adButtonViewModel:function(b){var r={};
return _.X(_.ka,{data:b.data,customCommandResolver:Y,className:_.Mi((r.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,r.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Z,r))})}})):_.X(_.bg,{data:function(){return W().adButton}},{adButtonViewModel:function(b){var r={};
return _.X(_.ka,{data:b.data,className:_.Mi((r.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,r.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Z,r))})}})}()))},"Ya"),"square-image-layout-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c=y.noBottomMargin;var Z=_.HO();_.O("stop_av_measurement_on_detach")&&_.KL(function(){Dv(Z)});
_.O("enable_web_home_top_landscape_image_layout_level_click")&&_.di(Z,function(){return W().interaction},void 0,function(){return!0});
y=function(){return W().interaction};
y!==void 0&&y!==null||_.Va(Error("Kh"));_.MF(Z,{visibilityCallback:function(t){if(t){var b;(t=(b=W().interaction)==null?void 0:b.onFirstVisible)&&_.OH(t);var r;if(b=(r=W().adLayoutData)==null?void 0:r.activeViewData)o0(Z,b),_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(Z)})}else _.O("stop_av_measurement_on_detach")&&Dv(Z)},
showOption:_.wx,hideOption:qB});var G=function(){var t,b,r;return(t=_.g(W().thumbnailImage,uX))==null?void 0:(b=t.background)==null?void 0:(r=b.backgroundImageSource)==null?void 0:r.imageSources};
y=_.z(_.G9(!1,void 0,"rWKgsf"));var D=y.next().value,Y=y.next().value;_.vO(Z,"mouseenter",function(){Y(!0)});
_.vO(Z,"mouseleave",function(){Y(!1)});
var u=function(){return D()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.X("top-landscape-image-layout-view-model",{class:function(){var t;return((t=W().interaction)==null?0:t.onTap)&&_.O("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:Z},_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.X(_.YN,{cond:function(){return G()&&G().length>0},
then:function(){return _.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.cF({top:"0","background-image":function(){return"url("+String(G()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.X(_.YN,{cond:function(){return!!W().adButtonHoverOverlay},
then:function(){return _.X("div",{class:u},_.X(_.bg,{data:function(){return W().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:WJQ}))}}),_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.X(_.bg,{data:function(){return W().thumbnailImage}},{adImageViewModel:function(t){return _.X(_.$E,{data:t.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.O("enable_web_home_top_landscape_image_layout_level_click")})}})),_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.X(_.J3,{data:{sources:[{clientResource:{imageName:"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.X("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.X(_.bg,{data:function(){return W().feedAdMetadata}},{feedAdMetadataViewModel:function(t){return _.X(TPV,{data:t.data,
noBottomMargin:function(){return c==null?void 0:c()},
listenToTapEvent:function(){return _.O("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"Za"),"top-landscape-image-layout-view-model",{props:{data:_.Ix,
noBottomMargin:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c=_.HO();_.O("stop_av_measurement_on_detach")&&_.KL(function(){Dv(c)});
_.MF(c,{visibilityCallback:function(Z){if(Z){var G;(Z=(G=W().interaction)==null?void 0:G.onFirstVisible)&&_.OH(Z);var D;if(G=(D=W().adLayoutData)==null?void 0:D.activeViewData)o0(c,G),_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.O("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.wx,hideOption:qB});return _.X("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:c},_.X("div",null,_.X(_.bg,{data:function(){return W().videoLockup}},{lockupViewModel:function(Z){return _.X(ZW,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"$a"),"video-display-button-group-layout-view-model",{props:{data:_.Ix,
noBottomMargin:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c=_.HO();_.O("stop_av_measurement_on_detach")&&_.KL(function(){Dv(c)});
_.MF(c,{visibilityCallback:function(Z){if(Z){var G;(Z=(G=W().interaction)==null?void 0:G.onFirstVisible)&&_.OH(Z);var D;if(G=(D=W().adLayoutData)==null?void 0:D.activeViewData)o0(c,G),_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Dv(c)})}else _.O("stop_av_measurement_on_detach")&&Dv(c)},
showOption:_.wx,hideOption:qB});return _.X("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:c},_.X("div",null,_.X(_.bg,{data:function(){return W().videoLockup}},{lockupViewModel:function(Z){return _.X(ZW,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"ab"),"video-display-full-layout-view-model",{props:{data:_.Ix,
noBottomMargin:_.Ix}});_.cp8=_.Ax(function(y){var W=y.data;y=_.HO();return _.X("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:y},_.X(_.YN,{cond:function(){return W().imageBadge},
then:function(c){return _.X(_.J3,{data:c,alt:""})}}))},"bb");var Zbm=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;y=_.HO();_.di(y,function(){return W().interaction},c);
_.MF(y,{visibilityCallback:function(Z){var G,D=(G=W().interaction)==null?void 0:G.onFirstVisible;Z&&D&&_.OH(D)},
showOption:_.wx});return _.X("carousel-ad-card-image-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:y,"aria-label":function(){var Z,G;return(Z=W().interaction)==null?void 0:(G=Z.accessibility)==null?void 0:G.label}},_.X(_.bg,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.X(_.$E,{data:Z.data,
customCommandResolver:c})}}),_.X("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.X(_.bg,{data:function(){return W().badge}},{adCardBadgeViewModel:_.cp8})),_.X(_.zb,{model:{color:4}}))},"cb");var GJ3=_.Ax(function(y){var W=_.z(_.G9(0,void 0,"o9Bzd")),c=W.next().value;W.next();var Z=W.next().value,G=_.z(_.G9(!1,void 0,"KLdzYe"));W=G.next().value;var D=G.next().value,Y;_.KL(function(){clearTimeout(Y)});
G=_.j9(function(){var b;((b=y.animate)==null?0:b.call(y))?(D(!0),Y=setTimeout(function(){D(!1);u()},200)):u();
return!1});
var u=function(){Z(function(b){return(b+y.numShownItems())%y.data().length})},t={};
return _.X("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.X("div",{class:_.Mi("ytwHorizontalCarouselCarouselWrapper")},_.X("div",{class:_.Mi("ytwHorizontalCarouselCarouselInnerWrapper",(t.ytwHorizontalCarouselAnimating=W,t))},_.X(_.mC,{each:y.data,keyBy:"INDEX"},function(b,r){return _.X("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.cF({"flex-basis":function(){return"calc((100% - (8px * "+(y.numShownItems()-1)+")) / "+y.numShownItems()+")"},
order:function(){var F=r-c();F<0&&(F+=y.data().length);return F}})},y.children(b,r))}))),_.X("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":G},y.nextButton()))},"db");var fkZ=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;var Z=y.expansive;y=_.HO();_.MF(y,{visibilityCallback:function(G){var D,Y=(D=W().interaction)==null?void 0:D.onFirstVisible;G&&Y&&_.OH(Y)},
showOption:_.wx});return _.X("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:y},_.X(GJ3,{data:function(){var G;return((G=W())==null?void 0:G.carouselAdCards)||[]},
nextButton:function(){return _.X(_.bg,{data:function(){return W().nextButton}},{buttonViewModel:function(G){var D=G.data;
return _.X(_.OV,{data:function(){return(Z==null?0:Z())?Object.assign({},D(),{style:"mono"}):D()},
className:_.O("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(G){return _.X(_.bg,{data:G},{carouselAdCardImageViewModel:function(D){return _.X(Zbm,{data:D.data,customCommandResolver:c})}})}))},"eb");var ocV=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;var Z=y.className;var G=y.buttonClassName;var D=y.animationEntityKey;var Y=y.expansive;return _.X("carousel-button-view-model",{class:_.Mi("ytwCarouselButtonViewModelHost",Z)},_.X(_.bg,{data:function(){return W().carousel}},{carouselAdCardCollectionViewModel:function(u){return _.X(fkZ,{data:u.data,
customCommandResolver:c,expansive:Y})}}),_.X(_.bg,{data:function(){return W().button}},{adButtonViewModel:function(u){var t=u.data;
return _.X(_.ka,{data:function(){return(Y==null?0:Y())?Object.assign({},t(),{style:"AD_BUTTON_STYLE_TONAL"}):t()},
className:G,customCommandResolver:c,animationEntityKey:D})}}))},"fb");_.DbT=_.Ax(function(y){var W=y.data;y=y.className;var c=_.HO();_.rj(function(){var Z;((Z=W())==null?0:Z.backgroundColor)&&c.value.setAttribute("data-background-color",String(W().backgroundColor))});
return _.X("pivot-button-view-model",{el:c,class:_.Mi("ytwPivotButtonViewModelHost",y)},_.X(_.oL,{command:function(){var Z=W();Z=Z.onClickCommand?_.UH(Z.onClickCommand):Z.contentDescription?_.xR(Z.contentDescription):void 0;return Z},
ariaLabel:function(){return W().contentDescription}},_.X(_.YN,{cond:function(){return W().thumbnail},
then:function(Z){return _.X(_.J3,{data:Z,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.X(_.YN,{cond:function(){return W().icon},
then:function(Z){return _.X(_.Gb,{icon:function(){return Z().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"gb");_.zcE=_.Ax(function(y){var W=y.data;var c=y.buttonShapeOverrideables;return _.X("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.X(_.bg,{data:function(){return W().buttonViewModels}},{buttonViewModel:function(Z){return _.X(_.OV,{data:Z.data,
buttonOverrides:c})},
likeButtonViewModel:function(Z){return _.X(_.Wk8,{data:Z.data,buttonShapeOverrideables:c})},
dislikeButtonViewModel:function(Z){return _.X(_.ybZ,{data:Z.data,buttonShapeOverrideables:c})}}))},"hb");var YlZ=_.Ax(function(y){var W=y.avatar;var c=y.headline;var Z=y.badge;var G=y.description;var D=y.expansive;y={};return _.X("yt-ad-metadata-shape",{class:_.Mi("ytAdMetadataShapeHost",(y.ytAdMetadataShapeHostLarge=D,y))},_.X("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.X(_.YN,{cond:W,then:function(Y){return _.X(_.L1i,{data:function(){return(D==null?0:D())?Object.assign({},Y(),{size:"AD_AVATAR_SIZE_MPLUS"}):Y()}})}}),_.X("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.X(_.Da,{text:c,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.X(_.YN,{cond:Z,then:function(Y){return _.X(_.WB,{data:function(){return(D==null?0:D())?Object.assign({},Y(),{style:"AD_BADGE_STYLE_STARK"}):Y()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.X("h2",{class:"ytAdMetadataShapeHostDescription"},_.X(_.Da,{text:G,
linkInheritColor:!0})))},"ib");var mbE=_.Ax(function(y){var W=y.data;var c=y.onShow;var Z=y.expansive;y=_.HO();_.di(y,function(){return W().interaction});
_.rj(function(){var D,Y=(D=W().animatedRenderingConfig)==null?void 0:D.delayedSecondsToVisible;if(Y){var u=setTimeout(c,Y*1E3);_.KL(function(){clearTimeout(u)})}});
var G={};return _.X("reels-ad-card-buttoned-view-model",{class:_.Mi(function(){var D;return((D=W().interaction)==null?0:D.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(G.ytwReelsAdCardButtonedViewModelHostExpansive=Z,G)),
el:y},_.X(YlZ,{avatar:function(){return _.g(W().avatar,s48)},
headline:function(){return W().headline},
badge:function(){return _.g(W().adBadge,u12)},
description:function(){return W().description},
expansive:Z}),_.X(_.bg,{data:function(){return W().ctaButton}},{adButtonViewModel:function(D){var Y=D.data;
return _.X(_.ka,{data:function(){return(Z==null?0:Z())?Object.assign({},Y(),{style:"AD_BUTTON_STYLE_FILLED"}):Y()}})}}))},"jb");var skZ=_.Ax(function(y){var W=y.data;y=y.expansive;var c=_.HO();_.O("web_ad_metadata_clickable")&&_.di(c,function(){return W().interaction});
var Z={};Z=_.wZ("ytwReelsAdMetadataViewModelHost",(Z.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.O("web_ad_metadata_clickable"),Z));return _.X("reels-ad-metadata-view-model",{class:Z,el:c},_.X(YlZ,{avatar:function(){return _.g(W().avatar,s48)},
headline:function(){return W().headline},
badge:function(){return _.g(W().adBadge,u12)},
description:function(){return W().description},
expansive:y}))},"kb");var uaV={iconPosition:"icon-with-label",size:"L"},tWZ=_.Ax(function(y){var W=y.data;y=y.overlayDensity;var c=_.HO(),Z=_.Jx(y,0);_.$k(function(){c.value.setAttribute("overlay-density",String(Z()))});
var G=function(){var F;return(F=W().reelsAdCardButtonedEntityKey)!=null?F:""},D=function(){return G()+"/ad_button"},Y=_.Zx(Etw,G),u=function(){var F,K;
return(K=(F=Y())==null?void 0:F.value)!=null?K:!1},t=_.FP(OkI),b=function(){return Object.assign({},uaV,(t()||Z()===2)&&{style:"overlay-dark"})};
y={};var r={};return _.X("reels-player-overlay-layout-view-model",{class:_.Mi("ytwReelsPlayerOverlayLayoutViewModelHost",(y.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!W().extension},y.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},y)),
el:c},_.X("div",{class:_.Mi("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(r.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},r))},_.X("div",{"aria-hidden":function(){return u()},
class:_.Mi("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.cF({"transition-duration":function(){return leE(W())}})},_.X(_.bg,{data:function(){return W().adMetadata}},{reelsAdMetadataViewModel:function(F){return _.X(skZ,{data:F.data,
expansive:function(){return Z()===1}})}}),_.X(_.YN,{cond:function(){return W().extension},
then:function(F){return _.X("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.X(_.bg,{data:F},{adButtonViewModel:function(K){return _.X(_.ka,{data:K.data,animationEntityKey:D,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(K){return _.X(ocV,{data:K.data,animationEntityKey:D,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return Z()===1}})}}))}})),_.X("div",{"aria-hidden":function(){return!u()},
class:_.Mi("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return u()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.cF({"transition-duration":function(){return leE(W())}})},_.X(_.bg,{data:function(){return W().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(F){return _.X(mbE,{data:F.data,
onShow:function(){_.PQ(_.o3("booleanEntity",G(),{key:G(),value:!0}))},
expansive:function(){return Z()===1}})}}))),_.X("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.X(_.bg,{data:function(){return W().actions}},{reelActionBarViewModel:function(F){return _.X(_.zcE,{data:F.data,
buttonShapeOverrideables:b})}}),_.X(_.bg,{data:function(){return W().menu}},{buttonViewModel:function(F){return _.X(_.OV,{data:F.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},b(),{type:"tonal"})}})}}),_.X(_.bg,{data:function(){return W().pivotButton}},{pivotButtonViewModel:function(F){return _.X(_.DbT,{data:F.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"lb");_.A3(tWZ,"reels-player-overlay-layout-view-model",{props:{data:_.Ix,overlayDensity:_.Ix}});var ncT=function(){var y=_.v.apply(this,arguments)||this;y.noBottomMargin=!1;y.overlayDensity=0;return y};
_.R(ncT,_.v);_.f=ncT.prototype;
_.f.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]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.O("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.f.ready=function(){var y=this;q5H(function(){y.isAttached&&yo(y.JSC$13255_storedAdSlotMetadata,y.JSC$13255_storedAdLayoutMetadata,y.adSlotMetadata,y.adLayoutMetadata)&&U1(rb(),y.JSC$13255_storedAdSlotMetadata,y.JSC$13255_storedAdLayoutMetadata)})};
_.f.attached=function(){yo(this.JSC$13255_storedAdSlotMetadata,this.JSC$13255_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ypi(rb(),this.JSC$13255_storedAdSlotMetadata,this.JSC$13255_storedAdLayoutMetadata)};
_.f.detached=function(){yo(this.JSC$13255_storedAdSlotMetadata,this.JSC$13255_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&U1(rb(),this.JSC$13255_storedAdSlotMetadata,this.JSC$13255_storedAdLayoutMetadata)};
_.f.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13255_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13255_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13255_storedAdLayoutMetadata!==void 0&&this.JSC$13255_storedAdSlotMetadata!==void 0&&U1(rb(),this.JSC$13255_storedAdSlotMetadata,this.JSC$13255_storedAdLayoutMetadata),ypi(rb(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13255_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13255_storedAdSlotMetadata=this.adSlotMetadata)};
_.dJ.Object.defineProperties(ncT.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.adLayoutMetadata}}});
var Ku=ncT;Ku.prototype.onAdMetadataChanged=Ku.prototype.onAdMetadataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ku.prototype,"rendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ku.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ku.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],Ku.prototype,"noBottomMargin",void 0);_.x([_.L(),_.e("design:type",Object)],Ku.prototype,"overlayDensity",void 0);_.x([_.A("data.adLayoutMetadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ku.prototype,"adLayoutMetadata",null);_.x([_.L(),_.e("design:type",Object)],Ku.prototype,"adSlotMetadata",void 0);
_.x([_.H("adLayoutMetadata","adSlotMetadata"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ku.prototype,"onAdMetadataChanged",null);Ku=_.x([_.d({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Ku);
_.T(Ku,"ytd-in-feed-ad-layout-renderer",function(){if(T9Z!==void 0)return T9Z;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return T9Z=y},
{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var XHZ;var bbJ;var rp8=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return y};
_.R(rp8,_.v);_.f=rp8.prototype;_.f.computeHasLiveDescription=function(y){return!(y==null||!y.liveDescription)};
_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.f.onYtToggleButton=function(y){var W,c=(W=this.data)==null?void 0:W.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.o3("upcomingEventReminderStateEntity",c,{key:c,state:y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.f.attached=function(){this.updateChannelBanner()};
_.f.dataChanged=function(){this.updateChannelBanner()};
_.f.videoReminderStateChanged=function(){var y;this.videoReminderState&&_.g((y=this.data)==null?void 0:y.cta,_.lX)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.f.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var y=_.h3(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);y&&(y.startsWith("//")&&(y="https:"+y),this.hostElement.classList.add("channel-banner"),_.wM(this.hostElement,{"--ytvmh-channel-banner":"url("+y+")"}))}else _.O("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.f.onPlayerReady=function(){this.onIronResize()};
_.f.maybeFlushDebouncer=function(){_.O("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(y){var W;y=(W=y.getElementsByTagName("yt-attributed-string"))==null?void 0:W[0];K71(y==null?void 0:y.polymerController)})};
_.f.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var y=_.p(this.hostElement).querySelector("#live-description"),W;y&&((W=this.data)==null?0:W.shortLiveDescription)&&y.clientWidth<y.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
var O1=rp8;O1.prototype.onIronResize=O1.prototype.onIronResize;O1.prototype.videoReminderStateChanged=O1.prototype.videoReminderStateChanged;O1.prototype.dataChanged=O1.prototype.dataChanged;O1.prototype.onYtToggleButton=O1.prototype.onYtToggleButton;_.x([_.C(_.K7),_.e("design:type",Object)],O1.prototype,"ironResizableBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],O1.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],O1.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],O1.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.videoReminderEntityKey"],selector:$sI}),_.e("design:type",Object)],O1.prototype,"videoReminderState",void 0);
_.x([_.L({reflectToAttribute:!0,value:_.O("web_modern_buttons")}),_.e("design:type",Boolean)],O1.prototype,"rounded",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.e("design:type",Boolean)],O1.prototype,"hasLiveDescription",void 0);_.x([_.L({reflectToAttribute:!0,value:_.O("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.e("design:type",Boolean)],O1.prototype,"resizableAdBannerSafariFix",void 0);
_.x([_.L({reflectToAttribute:!0,value:_.O("align_three_dot_menu_with_title_description")}),_.e("design:type",Boolean)],O1.prototype,"menuFix",void 0);_.x([_.y0("yt-formatted-string"),_.e("design:type",Array)],O1.prototype,"formattedStrings",void 0);_.x([_.jj("#cta-button"),_.e("design:type",HTMLElement)],O1.prototype,"ctaButton",void 0);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],O1.prototype,"onYtToggleButton",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],O1.prototype,"dataChanged",null);_.x([_.H("videoReminderState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],O1.prototype,"videoReminderStateChanged",null);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],O1.prototype,"onIronResize",null);
O1=_.x([_.d({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],O1);
_.T(O1,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(bbJ!==void 0)return bbJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return bbJ=y},{mode:1});var FJZ;var UbQ=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};y.isLocked=!1;return y};
_.R(UbQ,_.v);_.f=UbQ.prototype;_.f.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.f.onExpandedChanged=function(){this.expanded&&_.fl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.f.onMouseOver=function(){this.maybeExpand()};
_.f.onTap=function(){this.maybeExpand()};
_.f.onExpandableTileExpanding=function(y){y!==this&&(this.expanded=!1)};
_.f.onExpandableTileLockAndCollapse=function(y){this.isLocked=!0;y!==this&&(this.expanded=!1)};
_.f.onExpandableTileUnlock=function(){this.isLocked=!1};
var gb=UbQ;gb.prototype.onTap=gb.prototype.onTap;gb.prototype.onMouseOver=gb.prototype.onMouseOver;gb.prototype.onExpandedChanged=gb.prototype.onExpandedChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],gb.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gb.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],gb.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],gb.prototype,"expanded",void 0);_.x([_.Gs("expanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gb.prototype,"onExpandedChanged",null);_.x([_.B("mouseover"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gb.prototype,"onMouseOver",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gb.prototype,"onTap",null);
gb=_.x([_.d({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],gb);
_.T(gb,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(FJZ!==void 0)return FJZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return FJZ=y},{mode:1});var $bJ;var R1,KJE=function(){var y=_.v.apply(this,arguments)||this;y.buttonOverrides={style:"overlay"};y.useYtdPlayer=_.O("use_ytd_player_for_desktop_masthead");y.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};y.playbackFinished=!1;y.JSC$13267_playerManager=null;y.JSC$13267_mastheadCounter=new $P2;return y};
_.R(KJE,_.v);_.f=KJE.prototype;_.f.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"}}}};
_.f.created=function(){this.JSC$13267_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13267_playerManager=new fA)};
_.f.ready=function(){var y=this;this.JSC$13267_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var W=_.p(this.hostElement).querySelector("#player");this.useYtdPlayer?W.style.display="none":(this.ytdPlayer.style.display="none",Uq5(this.JSC$13267_playerManager,W,function(){y.onPlaybackEnded()}),_.p(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var c;
((c=y.data)==null?0:c.navigationEndpoint)&&_.Z2(y.hostElement,"yt-navigate",{endpoint:y.data.navigationEndpoint})}))};
_.f.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13267_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.f.attached=function(){var y=this;_.O0(function(){y.maybePlayVideo()})};
_.f.maybePlayVideo=function(){var y=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$13267_playerManager.playVideo(),this.getPlayerPromise().then(function(){y.JSC$13267_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.f.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13267_playerManager.stopVideo()};
_.f.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var y,W={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((y=this.data.playbackStartMs)!=null?y:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(W);this.setupYtdPlayer()}else Km0(this.JSC$13267_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&($qV(this.JSC$13267_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.f.getPlayerPromise=function(){return this.JSC$13267_playerManager.getPlayerPromise()};
_.f.onYtToggleButton=function(y){this.useYtdPlayer?this.toggleMute(y.detail.toggled):y.detail.toggled?this.JSC$13267_playerManager.mute():this.JSC$13267_playerManager.unMute()};
_.f.onYtNavigate=function(y){var W=RpI(y.detail.endpoint),c=lZH(this.data.clickthroughReportingData);W&&c&&(y.detail.endpoint.watchEndpoint?y.detail.tempData=c:_.wz(W,c,30))};
_.f.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.f.onExpandedChanged=function(){this.expanded?(_.fl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.f.onMouseOver=function(){this.maybeExpand()};
_.f.onTap=function(){this.maybeExpand()};
_.f.onExpandableTileExpanding=function(y){y!==this&&(this.stopVideo(),this.expanded=!1)};
_.f.onExpandableTileLockAndCollapse=function(y){y!==this&&(this.isLocked=!0,this.expanded=!1)};
_.f.onExpandableTileUnlock=function(){this.isLocked=!1};
_.f.lockAndCollapseExpandableTiles=function(){_.GG(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.f.unlockExpandableTiles=function(){_.GG(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.f.setupYtdPlayer=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.ytdPlayer.getPlayerPromise(),2);W=c.yieldResult;W.addEventListener("onStateChange",function(Z){y.onPlayerStateChange(Z)});
W.addEventListener("onCueRangeExit",function(Z){y.onCueRangeExit(Z)});
_.F2(c)})};
_.f.onPlayerStateChange=function(y){if(y===1&&(y=this.ytdPlayer.getPlayer())){var W=y.getCurrentTime(),c,Z,G=W+((Z=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?Z:0)/1E3;y.addCueRange("playback",W,G);this.JSC$13267_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.f.onCueRangeExit=function(y){y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.f.toggleMute=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.ytdPlayer.getPlayerPromise(),2);c=Z.yieldResult;y?c.mute():c.unMute();_.F2(Z)})};
var lW=R1=KJE;R1.prototype.onTap=R1.prototype.onTap;R1.prototype.onMouseOver=R1.prototype.onMouseOver;R1.prototype.onExpandedChanged=R1.prototype.onExpandedChanged;R1.prototype.onYtNavigate=R1.prototype.onYtNavigate;R1.prototype.onYtToggleButton=R1.prototype.onYtToggleButton;R1.prototype.dataChanged=R1.prototype.dataChanged;lW.JSC$13266_PLAYBACK_CUE_RANGE="playback";_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],lW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],lW.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],lW.prototype,"expanded",void 0);_.x([_.L(),_.e("design:type",Object)],lW.prototype,"buttonOverrides",void 0);
_.x([_.L(),_.e("design:type",Object)],lW.prototype,"useYtdPlayer",void 0);_.x([_.jj("#ytd-player"),_.e("design:type",Object)],lW.prototype,"ytdPlayer",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lW.prototype,"dataChanged",null);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],lW.prototype,"onYtToggleButton",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],lW.prototype,"onYtNavigate",null);_.x([_.Gs("expanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lW.prototype,"onExpandedChanged",null);_.x([_.B("mouseover"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lW.prototype,"onMouseOver",null);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lW.prototype,"onTap",null);lW=R1=_.x([_.d({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],lW);
_.T(lW,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if($bJ!==void 0)return $bJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return $bJ=y},{mode:1});var Ob0;var E1=function(){return _.v.apply(this,arguments)||this};
_.R(E1,_.v);E1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
E1.prototype.onShow=function(){var y=_.p(this.hostElement).querySelector("#live-description"),W;y&&((W=this.data)==null?0:W.shortLiveDescription)&&y.clientWidth<y.scrollWidth&&this.hostElement.classList.add("short-live-description")};
E1.prototype.onYtToggleButton=function(y){var W,c=(W=this.data)==null?void 0:W.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.o3("upcomingEventReminderStateEntity",c,{key:c,state:y.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
E1.prototype.videoReminderStateChanged=function(){var y;this.videoReminderState&&_.g((y=this.data)==null?void 0:y.cta,_.lX)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
var Nq=E1;Nq.prototype.videoReminderStateChanged=Nq.prototype.videoReminderStateChanged;Nq.prototype.onYtToggleButton=Nq.prototype.onYtToggleButton;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Nq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Nq.prototype,"ytdReduxBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Nq.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.videoReminderEntityKey"],selector:$sI}),_.e("design:type",Object)],Nq.prototype,"videoReminderState",void 0);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Nq.prototype,"onYtToggleButton",null);
_.x([_.H("videoReminderState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Nq.prototype,"videoReminderStateChanged",null);Nq=_.x([_.d({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Nq);
_.T(Nq,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Ob0!==void 0)return Ob0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Ob0=y},{mode:_.xm("kevlar_poly_si_batch_j065")?1:2});var gc8;var I1,Rc5=function(){var y=_.v.apply(this,arguments)||this;y.useYtdPlayer=_.O("use_ytd_player_for_desktop_masthead");y.buttonOverrides={style:"overlay"};y.JSC$13275_playerManager=null;y.JSC$13275_mastheadCounter=new $P2;y.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return y};
_.R(Rc5,_.v);_.f=Rc5.prototype;_.f.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"}}}};
_.f.created=function(){this.JSC$13275_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13275_playerManager=new fA)};
_.f.ready=function(){var y=this;this.JSC$13275_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var W;(W=this.embeddedPlayer)==null||W.remove()}else{var c;(c=this.ytdPlayer)==null||c.remove();Uq5(this.JSC$13275_playerManager,this.embeddedPlayer,function(){y.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){y.data&&y.data.navigationEndpoint&&_.Z2(y.hostElement,"yt-navigate",{endpoint:y.data.navigationEndpoint})})}};
_.f.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13275_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.f.dataChanged=function(){var y=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var W=!this.data.disableAutoPlayback,c,Z={autoplay:W,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((c=this.data.playbackStartMs)!=null?c:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(W?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Z);this.setupYtdPlayer()}else Km0(this.JSC$13275_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?($qV(this.JSC$13275_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13275_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.GG(y.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");y.JSC$13275_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.f.getPlayerPromise=function(){return this.JSC$13275_playerManager.getPlayerPromise()};
_.f.onYtToggleButton=function(y){this.useYtdPlayer?this.toggleMute(y.detail.toggled):y.detail.toggled?this.JSC$13275_playerManager.mute():this.JSC$13275_playerManager.unMute()};
_.f.onYtNavigate=function(y){var W=RpI(y.detail.endpoint),c=lZH(this.data.clickthroughReportingData);W&&c&&(y.detail.endpoint.watchEndpoint?y.detail.tempData=c:_.wz(W,c,30))};
_.f.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13275_playerManager.stopVideo()};
_.f.setupYtdPlayer=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.ytdPlayer.getPlayerPromise(),2);W=c.yieldResult;W.addEventListener("onStateChange",function(Z){y.onPlayerStateChange(Z)});
W.addEventListener("onCueRangeExit",function(Z){y.onCueRangeExit(Z)});
_.F2(c)})};
_.f.onPlayerStateChange=function(y){if(y===1&&(y=this.ytdPlayer.getPlayer())){var W=y.getCurrentTime(),c,Z,G=W+((Z=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?Z:0)/1E3;y.addCueRange("playback",W,G);_.GG(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13275_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.f.onCueRangeExit=function(y){y==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.f.toggleMute=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.ytdPlayer.getPlayerPromise(),2);c=Z.yieldResult;y?c.mute():c.unMute();_.F2(Z)})};
_.dJ.Object.defineProperties(Rc5.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var y,W;if(!((y=this.data)==null?0:(W=y.accessibilityData)==null?0:W.label))return"Ad primary link";var c,Z;return _.bN("AD_TITLE",{title:(c=this.data)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label})}}});
var pu=I1=Rc5;I1.prototype.onYtMastheadHidden=I1.prototype.onYtMastheadHidden;I1.prototype.onYtNavigate=I1.prototype.onYtNavigate;I1.prototype.onYtToggleButton=I1.prototype.onYtToggleButton;I1.prototype.dataChanged=I1.prototype.dataChanged;pu.JSC$13274_PLAYBACK_CUE_RANGE="playback";_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],pu.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pu.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],pu.prototype,"useYtdPlayer",void 0);_.x([_.jj("ytd-toggle-button-renderer"),_.e("design:type",Object)],pu.prototype,"muteButton",void 0);_.x([_.L(),_.e("design:type",Object)],pu.prototype,"buttonOverrides",void 0);
_.x([_.A("data.accessibilityData.label"),_.e("design:type",String),_.e("design:paramtypes",[])],pu.prototype,"titleAriaLabel",null);_.x([_.jj("#replay-button"),_.e("design:type",Object)],pu.prototype,"replayButton",void 0);_.x([_.jj("#player-container"),_.e("design:type",Object)],pu.prototype,"playerContainer",void 0);_.x([_.jj("#player"),_.e("design:type",Object)],pu.prototype,"embeddedPlayer",void 0);_.x([_.jj("#ytd-player"),_.e("design:type",Object)],pu.prototype,"ytdPlayer",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pu.prototype,"dataChanged",null);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],pu.prototype,"onYtToggleButton",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],pu.prototype,"onYtNavigate",null);
_.x([_.B("yt-masthead-hidden"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pu.prototype,"onYtMastheadHidden",null);pu=I1=_.x([_.d({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],pu);
_.T(pu,"ytd-video-masthead-ad-primary-video-renderer",function(){if(gc8!==void 0)return gc8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return gc8=y},{mode:2});var lkW;var EcE=function(){var y=_.v.apply(this,arguments)||this;y.collapsed=!1;y.impressionResolver=_.px();y.JSC$13279_activeViewMeasurementDataResolver=_.px();y.actionMap={"yt-mute-ad-action":"handleMuteAd"};return y};
_.R(EcE,_.v);_.f=EcE.prototype;_.f.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"}}}};
_.f.ready=function(){var y=this;_.p(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){y.expandAd()});
this.hostElement.addEventListener("yt-action",function(W){if(W.detail.actionName==="yt-service-request"){var c=W.detail.args[1];c.videoMastheadAdMuteCommand&&(y.collapseAd(c.videoMastheadAdMuteCommand.encryptedMastheadId),W.stopPropagation())}})};
_.f.attached=function(){var y=this;_.O0(function(){y.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(W){if(!y.collapsed){W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,VJ(c.baseUrl,c.attributionSrcMode);y.data.impressionCommand=void 0}});
this.JSC$13279_activeViewMeasurementDataResolver.promise.then(function(W){y.ytdActiveViewBehavior.enableActiveViewMeasurement(W,15)});
_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.dataChanged=function(){var y;((y=this.data.impressionCommand)==null?0:y.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13279_activeViewMeasurementDataResolver.resolve(this.data.activeView);(y=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(y.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.f.computeWidescreen=function(y){var W;return!!(y&&((W=_.g(y,opV))==null?0:W.isWidescreen))};
_.f.computeExpandable=function(y){return!!(y&&y.length>0)};
_.f.onIronResize=function(){if(this.expandable){var y=_.p(this.hostElement).querySelector("#expandable-tile-container :first-child");y&&!y.expanded&&(y.expanded=!0)}};
_.f.handleMuteAd=function(){this.collapseAd(null)};
_.f.restoreCollapsedState=function(y){this.collapsed=_.Uc().get("HIDDEN_MASTHEAD_ID")===y};
_.f.collapseAd=function(y){if(y){var W=_.Uc();W.set("HIDDEN_MASTHEAD_ID",y);W.save()}(y=_.p(this.hostElement).querySelector("#video"))&&_.Z2(y,"yt-masthead-hidden");this.collapsed=!0};
_.f.expandAd=function(){var y=_.Uc();y.set("HIDDEN_MASTHEAD_ID",!1);y.save();location.reload()};
_.f.detached=function(){_.O("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var Pz=EcE;Pz.prototype.onIronResize=Pz.prototype.onIronResize;Pz.prototype.dataChanged=Pz.prototype.dataChanged;_.x([_.C(_.K7),_.e("design:type",Object)],Pz.prototype,"ironResizableBehavior",void 0);_.x([_.C(UO),_.e("design:type",Object)],Pz.prototype,"ytdActiveViewBehavior",void 0);_.x([_.C(_.lZ),_.e("design:type",Object)],Pz.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Pz.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Pz.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.e("design:type",Boolean)],Pz.prototype,"widescreen",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.e("design:type",Boolean)],Pz.prototype,"expandable",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Pz.prototype,"collapsed",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pz.prototype,"dataChanged",null);
_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pz.prototype,"onIronResize",null);Pz=_.x([_.d({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Pz);
_.T(Pz,"ytd-video-masthead-ad-v3-renderer",function(){if(lkW!==void 0)return lkW;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lkW=y},{mode:2});var Ny0=function(){return _.v.apply(this,arguments)||this};
_.R(Ny0,_.v);_.f=Ny0.prototype;_.f.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.f.ready=function(){var y=this;q5H(function(){y.isAttached&&yo(y.JSC$13284_storedAdSlotMetadata,y.JSC$13284_storedAdLayoutMetadata,y.adSlotMetadata,y.adLayoutMetadata)&&U1(rb(),y.JSC$13284_storedAdSlotMetadata,y.JSC$13284_storedAdLayoutMetadata)})};
_.f.attached=function(){yo(this.JSC$13284_storedAdSlotMetadata,this.JSC$13284_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&ypi(rb(),this.JSC$13284_storedAdSlotMetadata,this.JSC$13284_storedAdLayoutMetadata)};
_.f.detached=function(){yo(this.JSC$13284_storedAdSlotMetadata,this.JSC$13284_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&U1(rb(),this.JSC$13284_storedAdSlotMetadata,this.JSC$13284_storedAdLayoutMetadata)};
_.f.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13284_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13284_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13284_storedAdLayoutMetadata!==void 0&&this.JSC$13284_storedAdSlotMetadata!==void 0&&U1(rb(),this.JSC$13284_storedAdSlotMetadata,this.JSC$13284_storedAdLayoutMetadata),ypi(rb(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13284_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13284_storedAdSlotMetadata=this.adSlotMetadata)};
_.dJ.Object.defineProperties(Ny0.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.adLayoutMetadata}}});
var JT=Ny0;JT.prototype.onAdMetadataChanged=JT.prototype.onAdMetadataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],JT.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JT.prototype,"data",void 0);_.x([_.A("data.adLayoutMetadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],JT.prototype,"adLayoutMetadata",null);
_.x([_.L(),_.e("design:type",Object)],JT.prototype,"adSlotMetadata",void 0);_.x([_.H("adLayoutMetadata","adSlotMetadata"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JT.prototype,"onAdMetadataChanged",null);JT=_.x([_.d({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],JT);
_.T(JT,"ytd-page-top-ad-layout-renderer",function(){if(XHZ!==void 0)return XHZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XHZ=
y},{mode:_.xm("kevlar_poly_si_batch_j070")?1:2});var IkW;var pH2=function(){var y=_.v.apply(this,arguments)||this;y.noBottomMargin=!1;y.overlayDensity=0;return y};
_.R(pH2,_.v);_.f=pH2.prototype;
_.f.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},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]]"}}}}}};
_.f.ready=function(){var y=this;q5H(function(){y.isAttached&&y.adSlotMetadata&&jkm(rb(),y.adSlotMetadata)})};
_.f.attached=function(){if(this.adSlotMetadata){var y;if(this.adSlotMetadata===((y=this.data)==null?void 0:y.adSlotMetadata))k32(rb(),this.adSlotMetadata);else{var W;_.Rs(Error("Lh`"+this.adSlotMetadata+"`"+((W=this.data)==null?void 0:W.adSlotMetadata)))}}};
_.f.detached=function(){this.adSlotMetadata&&jkm(rb(),this.adSlotMetadata)};
_.f.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&jkm(rb(),this.adSlotMetadata),k32(rb(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.dJ.Object.defineProperties(pH2.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var y,W,c=_.g((y=this.data)==null?void 0:(W=y.fulfillmentContent)==null?void 0:W.fulfilledLayout,_.zGJ),Z;return(y=(Z=_.g(c==null?void 0:c.renderingContent,DKT))==null?void 0:Z.layout)?y.toLowerCase().replace(/_/g,"-"):""}}});
var Vi=pH2;Vi.prototype.onAdSlotMetadataChanged=Vi.prototype.onAdSlotMetadataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Vi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Vi.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Vi.prototype,"rendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Vi.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],Vi.prototype,"noBottomMargin",void 0);_.x([_.L(),_.e("design:type",Object)],Vi.prototype,"overlayDensity",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],Vi.prototype,"layout",null);_.x([_.H("data.adSlotMetadata"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Vi.prototype,"onAdSlotMetadataChanged",null);
Vi=_.x([_.d({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Vi);
_.T(Vi,"ytd-ad-slot-renderer",function(){if(IkW!==void 0)return IkW;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return IkW=y},{mode:_.xm("kevlar_poly_si_batch_j077")?
1:2});var PyV;var JpV=function(){return _.v.apply(this,arguments)||this};
_.R(JpV,_.v);_.f=JpV.prototype;_.f.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"}}}};
_.f.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&ZGy(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.f.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var y=_.z(this.data.impressionUrls),W=y.next();!W.done;W=y.next())W=W.value,miH(W,uxI(W));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.f.attached=function(){var y=this;_.O("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&y.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.O("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.dJ.Object.defineProperties(JpV.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.O("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.O("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var Cu=JpV;Cu.prototype.dataChanged=Cu.prototype.dataChanged;Cu.prototype.onTap=Cu.prototype.onTap;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.x([_.C(UO),_.e("design:type",Object)],Cu.prototype,"ytdActiveViewBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Cu.prototype,"ytdReduxBehavior",void 0);
_.x([_.L({selector:_.R3}),_.e("design:type",Object)],Cu.prototype,"isGridViewEnabled",void 0);_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Cu.prototype,"watchFeedBigThumbs",null);_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",String),_.e("design:paramtypes",[])],Cu.prototype,"thumbnailWidth",null);_.x([_.L(),_.e("design:type",Object)],Cu.prototype,"data",void 0);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Cu.prototype,"onTap",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Cu.prototype,"dataChanged",null);Cu=_.x([_.d({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Cu);
_.T(Cu,"ytd-compact-promoted-video-renderer",function(){if(PyV!==void 0)return PyV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return PyV=y},{mode:1});var VWE;_.bv("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var CyJ=function(){return _.v.apply(this,arguments)||this};
_.R(CyJ,_.v);CyJ.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
var Qi=CyJ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Qi.prototype,"data",void 0);Qi=_.x([_.d({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Qi);
_.T(Qi,"ytd-search-pyv-renderer",function(){if(VWE!==void 0)return VWE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return VWE=y},{mode:1});var Qki;var ApT;var hci;var By5;var HbQ;var LJE=function(){var y=_.v.apply(this,arguments)||this;y.boundCaptureFocus=function(W){y.onCaptureFocus(W)};
return y};
_.R(LJE,_.v);_.f=LJE.prototype;_.f.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.f.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.f.onCaptureFocus=function(y){_.Aq(y).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.f.getIconType=function(y){return y?"yt-icons:"+y.toLowerCase():null};
_.f.onSelect=function(){var y;if((y=this.data)==null?0:y.onSelectCommand)if(_.O("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var W;((W=_.g(this.data.onSelectCommand.commandMetadata,_.kT))==null?0:W.url)?_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.U().resolve(_.i1).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.dJ.Object.defineProperties(LJE.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.v$(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}}});
var AT=LJE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],AT.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],AT.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],AT.prototype,"data",void 0);_.x([_.jj("#item"),_.e("design:type",HTMLElement)],AT.prototype,"item",void 0);_.x([_.A("data.label"),_.e("design:type",String),_.e("design:paramtypes",[])],AT.prototype,"label",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],AT.prototype,"value",null);AT=_.x([_.d({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],AT);
_.T(AT,"ytd-privacy-dropdown-item-renderer",function(){if(HbQ!==void 0)return HbQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return HbQ=y},{mode:1});var vcQ=function(){var y=_.v.apply(this,arguments)||this;y.value="";y.label="";y.disabled=!1;return y};
_.R(vcQ,_.v);_.f=vcQ.prototype;_.f.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"}}}};
_.f.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.f.dataChanged=function(){this.reset()};
_.f.valueChanged=function(){var y;if(this.value&&(y=this.data)!=null&&y.entries){y=_.z(this.data.entries);for(var W=y.next();!W.done;W=y.next())if((W=this.getRendererForEntry(W.value))&&this.getItemRendererValue(W)===this.value){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}}};
_.f.setInitialLabel=function(){if(this.data&&this.data.entries)for(var y=_.z(this.data.entries),W=y.next();!W.done;W=y.next())if(W=this.getRendererForEntry(W.value)){if(W.isSelected){this.label=this.ytComponentBehavior.getSimpleString(W.label);break}this.data.label&&(this.label=this.data.label)}};
_.f.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var y=_.z(this.data.entries),W=y.next();!W.done;W=y.next()){W=this.getRendererForEntry(W.value);var c=void 0;if((c=W)==null?0:c.isSelected)return this.getItemRendererValue(W)||-1}return-1};
_.f.getItemRendererValue=function(y){return"stringValue"in y||"int32Value"in y?y.stringValue||y.int32Value||null:null};
_.f.getRendererForEntry=function(y){return y.dropdownItemRenderer||y.privacyDropdownItemRenderer||y.navigationDropdownItemRenderer||null};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("value-changed",this.value))};
_.f.updateValueFromBinding=function(y){this.value=y.detail.value};
var hT=vcQ;hT.prototype.valueChangedForBinding=hT.prototype.valueChangedForBinding;hT.prototype.valueChanged=hT.prototype.valueChanged;hT.prototype.dataChanged=hT.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],hT.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hT.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],hT.prototype,"value",void 0);_.x([_.L(),_.e("design:type",Object)],hT.prototype,"label",void 0);_.x([_.jj("#entries"),_.e("design:type",Object)],hT.prototype,"entries",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],hT.prototype,"disabled",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hT.prototype,"dataChanged",null);_.x([_.Gs("value"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hT.prototype,"valueChanged",null);_.x([_.H("value"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hT.prototype,"valueChangedForBinding",null);hT=_.x([_.d({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],hT);
_.T(hT,"ytd-flat-dropdown-renderer",function(){if(By5!==void 0)return By5;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return By5=y},{mode:1});var dbQ;var SlE;var TyZ=function(){var y=_.v.apply(this,arguments)||this;y.images=[];y.selectedImageIndex=0;return y};
_.R(TyZ,_.v);_.f=TyZ.prototype;
_.f.ready=function(){_.Y0(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Y0(this.JSC$13311_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Y0(this.JSC$13311_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Y0(this.JSC$13311_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.f.onThumbnailClick=function(y){if(y=y.event_.detail)this.selectedImageIndex=this.images.indexOf(y)};
_.f.updateImageThumbnails=function(y){y=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:y.event_.detail});this.images.splice(this.selectedImageIndex,1,y);this.images=[].concat(_.No(this.images))};
_.f.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Z2(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.f.saveImageRepositions=function(){this.selectedImageIndex=0;_.Z2(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.dJ.Object.defineProperties(TyZ.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var y=this;return(this.images||[]).map(function(W,c){return{image:W,selected:c===y.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
var Bz=TyZ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("ytd-backstage-image-preview-renderer"),_.e("design:type",Object)],Bz.prototype,"JSC$13311_imagePreviewContainer",void 0);_.x([_.jj(".thumbnail-images-container"),_.e("design:type",HTMLElement)],Bz.prototype,"thumbnailImagesContainer",void 0);_.x([_.L(),_.e("design:type",Array)],Bz.prototype,"images",void 0);
_.x([_.L(),_.e("design:type",Object)],Bz.prototype,"repositionInstructions",void 0);_.x([_.L(),_.e("design:type",Object)],Bz.prototype,"selectedImageIndex",void 0);_.x([_.A("images","selectedImageIndex"),_.e("design:type",Array),_.e("design:paramtypes",[])],Bz.prototype,"thumbnailRendererDatas",null);_.x([_.A("images","selectedImageIndex"),_.e("design:type",Object),_.e("design:paramtypes",[])],Bz.prototype,"selectedImageData",null);
Bz=_.x([_.d({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Bz);
_.T(Bz,"ytd-backstage-multi-image-reposition-renderer",function(){if(SlE!==void 0)return SlE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return SlE=y},{mode:1});var Hz=function(y,W){_.uU.call(this);this.uploadUrl=y;this.channelId=W;this.imagesUploadData=[]};
_.R(Hz,_.uU);Hz.prototype.getAllUploadStatuses=function(){var y=this,W,c,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,ak2(y),2);W=G.yieldResult;c=W.get("succeed");Z=W.get("failed");return G.return(c.concat(Z))})};
var ibV=function(y){var W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,ak2(y),2);W=Z.yieldResult;c=W.get("failed");c.length>0&&xbT(y,c);return Z.return(y.getAllUploadStatuses())})},ak2=function(y){var W,c,Z,G,D,Y,u;
return _.m(function(t){if(t.nextAddress==1)return W=new Map,_.n(t,Promise.allSettled(y.imagesUploadData.map(function(b){return b.uploadPromise})),2);
c=t.yieldResult;Z=[];G=_.z(c);for(D=G.next();!D.done;D=G.next())Y=D.value,Y.status==="fulfilled"&&Z.push(Y.value);u=y.imagesUploadData.map(function(b){return b.image}).filter(function(b){return Z.every(function(r){return r.id!==b.id})});
W.set("succeed",Z);W.set("failed",u);return t.return(W)})},xbT=function(y,W){W=_.z(W);
for(var c=W.next();!c.done;c=W.next()){var Z=y;c=c.value;MWZ(Z,c.id)>=0&&Z.cancel(c.id);var G=new ecT(c),D=_.HdE(Z.uploadUrl,{"X-YouTube-ChannelId":Z.channelId},c.imageBlob);G.transfer=D;G.uploadPromise=wHV(D,c);Z.imagesUploadData.push(G);D.run()}};
Hz.prototype.cancel=function(y){var W=MWZ(this,y);W!==-1&&((W=this.imagesUploadData[W].transfer)&&W.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(c){return c.image.id!==y}))};
var MWZ=function(y,W){return y.imagesUploadData.findIndex(function(c){return c.image.id===W})},wHV=function(y,W){return new Promise(function(c,Z){y.listen("l",function(){var G=y.getResponseText();
G?(G=JSON.parse(G).encryptedBlobId,W.encryptedBlobId=G,c(W)):Z("upload failed")});
y.listen("n",function(){Z("upload failed")})})},ecT=function(y){this.image=y};var EUE=function(y,W,c,Z,G){this.id=y;this.imageBlob=W;this.localImageSrc=c;this.naturalWidth=Z;this.naturalHeight=G;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 qlm=[".jpeg",".jpg",".png"],kJ3=function(){var y=_.v.apply(this,arguments)||this;y.showImagesPreview=!1;y.pollOptions=[];y.errorMessage="";y.optionPlaceholderText="";y.optionDefaultText="";y.JSC$13322_imageId=0;y.maxFileSizeMb=0;y.maxAspectRatio=0;y.invalidFileSizeError="";y.invalidAspectRatioError="";y.invalidFileTypeError="";y.imageSelector=new Zu(null,"single_file",qlm);return y};
_.R(kJ3,_.v);_.f=kJ3.prototype;_.f.ready=function(){_.Y0(this.imageSelector,"j",this.onImageSelect,!1,this);_.Y0(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Y0(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.f.dataChanged=function(){var y,W,c=_.g((y=this.data)==null?void 0:(W=y.cellTemplate)==null?void 0:W.onEmptyCellTap,p_2);if(c&&c.uploadUrl&&c.channelId){var Z;this.maxFileSizeMb=((Z=c.imageValidationInfo)==null?void 0:Z.maxFileSizeMb)||0;var G;this.maxAspectRatio=((G=c.imageValidationInfo)==null?void 0:G.allowedMaxAspectRatio)||0;var D;this.invalidFileSizeError=this.getSimpleString((D=this.data)==null?void 0:D.invalidFileSizeError);var Y;this.invalidAspectRatioError=this.getSimpleString((Y=this.data)==
null?void 0:Y.invalidAspectRatioError);var u;this.invalidFileTypeError=this.getSimpleString((u=this.data)==null?void 0:u.invalidFileTypeError);this.uploadManager=new Hz(c.uploadUrl,c.channelId)}};
_.f.onEditorInfoChange=function(){this.optionPlaceholderText=_.v$(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.v$(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.f.observeAddImageError=function(){this.errorMessage!==""&&_.Z2(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.f.onPollOptionsChange=function(){for(var y=!1,W=[],c=0;c<this.pollOptions.length;c++){var Z=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(c+1);this.pollOptions[c].placeholderText!==Z?(y=!0,W.push(Object.assign({},this.pollOptions[c],{placeholderText:Z}))):W.push(this.pollOptions[c])}y&&(this.pollOptions=W);this.isValid()?_.Z2(this.hostElement,"yt-commentbox-post-enable"):_.Z2(this.hostElement,"yt-commentbox-post-disable")};
_.f.createPollOptions=function(y){var W=[],c;y=(c=y==null?void 0:y.minPollOptions)!=null?c:0;for(c=0;c<y;c++)W.push(this.createPollOption());return W};
_.f.onImageSelect=function(y){var W=this,c,Z,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1){if(W.selectedImageIndex===void 0)return t.jumpTo(0);c=y.files[0];W.errorMessage="";Z=W.validateImage(c);if(Z!=="")return W.errorMessage=Z,t.return();G=new Qz(W.maxAspectRatio,!1,!0);return _.n(t,G.transform(c),3)}if(t.nextAddress!=4)return D=t.yieldResult,D.transformedData?D.invalidAspectRatio?(W.errorMessage=W.invalidAspectRatioError,t.return()):_.n(t,NPF(W.JSC$13322_imageId,y.files[0],D.transformedData),
4):(W.errorMessage=W.invalidFileTypeError,t.return());Y=t.yieldResult;W.JSC$13322_imageId++;xbT(W.uploadManager,[Y]);u=Object.assign({},W.pollOptions[W.selectedImageIndex],{image:Y});W.pollOptions.splice(W.selectedImageIndex,1,u);W.refreshPollOptions();_.Z2(W.hostElement,"yt-backstage-poll-image-select");_.F2(t)})};
_.f.validateImage=function(y){return y.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.f.refreshPollOptions=function(){this.pollOptions=[].concat(_.No(this.pollOptions))};
_.f.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.No(this.pollOptions),[this.createPollOption()]))};
_.f.onRemovePollOption=function(y){var W=this.pollOptions[y.model.index];W&&W.image&&this.uploadManager.cancel(W.image.id);this.pollOptions.splice(y.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Z2(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.f.onTextInput=function(){this.refreshPollOptions()};
_.f.onImageButtonClick=function(y){this.selectedImageIndex=y.model.index;this.imageSelector.click()};
_.f.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.f.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.f.saveImageRepositions=function(y){y=y.event_.detail;for(var W=0,c=[],Z=_.z(this.pollOptions),G=Z.next();!G.done;G=Z.next())G=G.value,G.image!==void 0?(G=Object.assign({},G,{image:y[W]}),c.push(G),W++):c.push(G);this.showImagesPreview=!1;this.pollOptions=[].concat(_.No(c))};
_.f.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 y=0,W=_.z(this.pollOptions),c=W.next();!c.done;c=W.next())if(c=c.value,c.optionText.trim()!==""||c.image!==void 0){if(!c.image||this.hasCustomOptionText&&c.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;y++}return y>=Number(this.editorInfo.minPollOptions)};
_.f.getAllUploadStatuses=function(){var y=this,W,c,Z,G;return _.m(function(D){if(D.nextAddress==1)return _.n(D,y.uploadManager.getAllUploadStatuses(),2);W=D.yieldResult;c=_.z(W);for(Z=c.next();!Z.done;Z=c.next())if(G=Z.value,G.encryptedBlobId===void 0)return D.return(ibV(y.uploadManager));return D.return(W)})};
_.f.getPostCreateOptions=function(){for(var y=[],W=_.z(this.pollOptions),c=W.next();!c.done;c=W.next())c=c.value,c.image!==void 0&&y.push({text:this.hasCustomOptionText?c.optionText:c.placeholderText,image:c.image});return y};
_.f.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.f.createButtonRenderer=function(y,W){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleString(y)}},isDisabled:W}};
_.f.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.f.computeThumbnailRendererData=function(y){return y?{image:y,selected:!1}:void 0};
_.f.getSimpleString=function(y){return _.v$(y)};
_.f.updateOptionTextFromBinding=function(y){if(y.target){var W=Array.from(_.p(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(y.target);if(W>=0){var c;this.pollOptions[W].optionText=(c=y.detail.value)!=null?c:""}}};
_.dJ.Object.defineProperties(kJ3.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.pollOptions.length<((W=(y=this.editorInfo)==null?void 0:y.maxPollOptions)!=null?W:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(y){return y.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(y){return y.image}).map(function(y){return y.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(y){return y.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.addOptionButtonText;return W?this.createButtonRenderer(W,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.repositionImagesButtonLabel;return W?this.createButtonRenderer(W,!this.hasImages):void 0}}});
var Lu=kJ3;Lu.prototype.onPollOptionsChange=Lu.prototype.onPollOptionsChange;Lu.prototype.observeAddImageError=Lu.prototype.observeAddImageError;Lu.prototype.onEditorInfoChange=Lu.prototype.onEditorInfoChange;Lu.prototype.dataChanged=Lu.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.jj("ytd-backstage-multi-image-reposition-renderer"),_.e("design:type",Object)],Lu.prototype,"imageRepositionContainer",void 0);_.x([_.L(),_.e("design:type",Object)],Lu.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Lu.prototype,"editorInfo",void 0);_.x([_.L(),_.e("design:type",Hz)],Lu.prototype,"uploadManager",void 0);_.x([_.L(),_.e("design:type",Object)],Lu.prototype,"showImagesPreview",void 0);_.x([_.L(),_.e("design:type",Array)],Lu.prototype,"pollOptions",void 0);
_.x([_.L(),_.e("design:type",Object)],Lu.prototype,"errorMessage",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lu.prototype,"dataChanged",null);_.x([_.Gs("editorInfo"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lu.prototype,"onEditorInfoChange",null);_.x([_.H("errorMessage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lu.prototype,"observeAddImageError",null);
_.x([_.Gs("pollOptions"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lu.prototype,"onPollOptionsChange",null);_.x([_.A("pollOptions","editorInfo"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lu.prototype,"isAllowedToAddOption",null);_.x([_.A("pollOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lu.prototype,"hasImages",null);
_.x([_.A("pollOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lu.prototype,"imagesToReposition",null);_.x([_.A("pollOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lu.prototype,"hasCustomOptionText",null);_.x([_.A("data","isAllowedToAddOption"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lu.prototype,"addOptionButton",null);_.x([_.A("data","hasImages"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lu.prototype,"repositionImagesButton",null);
Lu=_.x([_.d({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],Lu);
_.T(Lu,"ytd-backstage-image-poll-editor-renderer",function(){if(dbQ!==void 0)return dbQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dbQ=y},{mode:2});var jzJ;var ygZ={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 WG5;var cgm;var Z0Z=function(){var y=_.v.apply(this,arguments)||this;y.a11yConfig=ygZ;y.imageDisplayOffsetTop=0;y.imageDisplayOffsetLeft=0;y.pickerDisplayOffsetTop=0;y.pickerDisplayOffsetLeft=0;y.cropCoordinatesSaved=!1;y.previewSize=0;y.startPicker=!1;y.repositionOptional=!1;return y};
_.R(Z0Z,_.v);_.f=Z0Z.prototype;_.f.created=function(){_.P_.requestAvailability()};
_.f.ready=function(){};
_.f.onArrowKeysDown=function(y){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){y.detail.keyboardEvent.preventDefault();var W=0,c=0,Z="";switch(y.detail.keyboardEvent.key){case "ArrowUp":IeD(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":IeD(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":IeD(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":IeD(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}Z&&_.bN(Z)&&_.Z2(this.hostElement,"iron-announce",{text:_.bN(Z)});if(c||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),y=_.bN(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),y=_.bN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})),y&&_.Z2(this.hostElement,"iron-announce",{text:y})}};
_.f.getPreviewPosition=function(y,W,c,Z){return Math.round(100*(y+W*.5-c)/Z)};
_.f.displayImage=function(){var y=this.JSC$13335_pickerContainer.getBoundingClientRect().width,W=this.JSC$13335_pickerContainer.getBoundingClientRect().height,c=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Z=this.JSC$13335_imageInBackground.naturalWidth,G=this.JSC$13335_imageInBackground.naturalHeight;this.displayScale=Math.max(c/Z,c/G);this.imageWidth=Z*this.displayScale;this.imageHeight=G*this.displayScale;this.pickerDisplayOffsetLeft=(y-c)/2;this.pickerDisplayOffsetTop=
(W-c)/2;this.imageDisplayOffsetLeft=G>Z?this.pickerDisplayOffsetLeft:(y-this.imageWidth)/2;this.imageDisplayOffsetTop=Z>G?this.pickerDisplayOffsetTop:(W-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.f.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13335_imageInBackground.src=this.imageData.toString(),this.JSC$13335_imageInPicker.src=this.imageData.toString(),this.JSC$13335_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.f.getSignedPosition=function(y,W,c){return W==="X"&&_.Nn("HTML_DIR")==="rtl"?c==="-"?y+"px":y*-1+"px":c==="-"?y*-1+"px":y+"px"};
_.f.pickerMove=function(y){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var W=this.pickerOffsetX-y.clientX,c=this.pickerOffsetY-y.clientY;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.f.pickerMoveStart=function(y){this.startPicker=!0;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY};
_.f.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.f.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Z2(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.f.getPreviewOffset=function(y,W,c,Z){return W&&y&&c?(Z==="X"&&_.Nn("HTML_DIR")==="rtl"?c/W*y:c/W*y*-1)+"px":"0px"};
_.f.getSimpleText=function(y){return y?_.v$(y):""};
_.f.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var y=this.cropOffsetTop/this.imageHeight,W=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,c=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Z=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.p(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Z2(this.hostElement,"yt-img-crop-coordinates-update",{top:y,right:W,bottom:c,left:Z})}};
_.dJ.Object.defineProperties(Z0Z.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.bN(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.bN(this.a11yConfig.verticalRepositionInstruction)}y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.bN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.bN(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 y,W=(y=this.learnMore.runs[0])==null?void 0:y.navigationEndpoint,c;return((c=_.g(W,_.CD))==null?void 0:c.url)||void 0}}}});
var vz=Z0Z;vz.prototype.onImageDataChange=vz.prototype.onImageDataChange;_.x([_.L(),_.e("design:type",Object)],vz.prototype,"imageData",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"instruction",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"a11yConfig",void 0);_.x([_.L(),_.e("design:type",Number)],vz.prototype,"imageWidth",void 0);_.x([_.L(),_.e("design:type",Number)],vz.prototype,"imageHeight",void 0);_.x([_.L(),_.e("design:type",Number)],vz.prototype,"displayScale",void 0);
_.x([_.L(),_.e("design:type",Object)],vz.prototype,"imageDisplayOffsetTop",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"cropCoordinatesSaved",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"previewSize",void 0);
_.x([_.L(),_.e("design:type",Object)],vz.prototype,"startPicker",void 0);_.x([_.L(),_.e("design:type",Number)],vz.prototype,"pickerOffsetX",void 0);_.x([_.L(),_.e("design:type",Number)],vz.prototype,"pickerOffsetY",void 0);_.x([_.L(),_.e("design:type",Object)],vz.prototype,"repositionOptional",void 0);_.x([_.jj("#picker-container"),_.e("design:type",HTMLElement)],vz.prototype,"JSC$13335_pickerContainer",void 0);_.x([_.jj("#picker"),_.e("design:type",HTMLElement)],vz.prototype,"picker",void 0);
_.x([_.jj("#image-in-picker-background"),_.e("design:type",HTMLImageElement)],vz.prototype,"JSC$13335_imageInBackground",void 0);_.x([_.jj("#image-in-picker"),_.e("design:type",HTMLImageElement)],vz.prototype,"JSC$13335_imageInPicker",void 0);_.x([_.jj("#image-in-preview-clipper"),_.e("design:type",HTMLImageElement)],vz.prototype,"JSC$13335_imageInPreviewClipper",void 0);_.x([_.jj("#full-image-as-preview"),_.e("design:type",HTMLImageElement)],vz.prototype,"imageAsPreview",void 0);
_.x([_.A("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],vz.prototype,"altLabelForImage",null);_.x([_.A("imageHeight","imageWidth"),_.e("design:type",Number),_.e("design:paramtypes",[])],vz.prototype,"pickerSize",null);_.x([_.A("imageHeight","imageWidth"),_.e("design:type",Object),_.e("design:paramtypes",[])],vz.prototype,"imageOrientationStyle",null);
_.x([_.A("instruction.previewInstruction.editButtonLabel"),_.e("design:type",Object),_.e("design:paramtypes",[])],vz.prototype,"editButton",null);_.x([_.A("instruction.editInstruction.saveButtonLabel"),_.e("design:type",Object),_.e("design:paramtypes",[])],vz.prototype,"saveButton",null);_.x([_.A("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.e("design:type",Number),_.e("design:paramtypes",[])],vz.prototype,"cropOffsetTop",null);
_.x([_.A("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.e("design:type",Number),_.e("design:paramtypes",[])],vz.prototype,"cropOffsetLeft",null);_.x([_.A("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],vz.prototype,"pickerBackgroundStyle",null);_.x([_.A("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],vz.prototype,"pickerDisplayStyle",null);
_.x([_.A("cropOffsetLeft","cropOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],vz.prototype,"imageInPickerStyle",null);_.x([_.A("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.e("design:type",String),_.e("design:paramtypes",[])],vz.prototype,"previewClipperStyle",null);_.x([_.H("imageData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vz.prototype,"onImageDataChange",null);
_.x([_.A("cropCoordinatesSaved"),_.e("design:type",String),_.e("design:paramtypes",[])],vz.prototype,"pickerModeStyle",null);_.x([_.A("instruction.editInstruction.learnMore"),_.e("design:type",Object),_.e("design:paramtypes",[])],vz.prototype,"learnMore",null);_.x([_.A("learnMore"),_.e("design:type",Object),_.e("design:paramtypes",[])],vz.prototype,"learnMoreUrl",null);vz=_.x([_.n6({is:"yt-img-crop-picker",disableElementRegistration:!0})],vz);
_.T(vz,"yt-img-crop-picker",function(){if(cgm===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;WG5===void 0&&(WG5=document.createElement("template"));var Z=WG5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);cgm=y}y=cgm;return y},{mode:2});var GU0=function(){var y=_.v.apply(this,arguments)||this;y.errorMessage="";y.hasPreview=!1;y.isBackstagePost=!1;y.dismissButtonOverrides={size:"XS"};return y};
_.R(GU0,_.v);_.f=GU0.prototype;_.f.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"}}}};
_.f.detached=function(){this.removeOverlay()};
_.f.setPreview=function(y){_.p(this.hostElement).querySelector("#preview-picker").imageData=y;this.hasPreview=!0;_.Z2(this.hostElement,"yt-backstage-image-select-preview")};
_.f.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var y=_.p(this.hostElement).querySelector("#dropzone");y.classList.remove("dragover");y.classList.remove("error");_.Z2(this.hostElement,"yt-backstage-image-select-cancel")};
_.f.setupOverlay=function(){var y=this.imageUploadEndpoint;this.removeOverlay();if(y&&y.imageValidationInfo){var W=_.p(this.hostElement).querySelector("#dropzone"),c=_.p(this.hostElement).querySelector("#select");this.overlay=new hA(y.uploadUrl,y.channelId,y.imageValidationInfo.maxFileSizeMb,y.imageValidationInfo.allowedMaxAspectRatio,W,c,!0);_.Y0(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Y0(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Y0(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Y0(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Y0(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.f.removeOverlay=function(){this.overlay&&(_.sp(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.sp(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.sp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.sp(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.sp(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.f.onDragOver=function(y){var W=_.p(this.hostElement).querySelector("#dropzone");_.i0(W,"dragover",y.value)};
_.f.onPreview=function(y){this.setPreview(y.value)};
_.f.onImageError=function(y){if(y.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var W;y=(W=this.data)==null?void 0:W.fileSizeError}else if(y.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var c;y=(c=this.data)==null?void 0:c.invalidError}else if(y.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Z;y=(Z=this.data)==null?void 0:Z.invalidAspectRatioError}else return;this.errorMessage=_.v$(y);_.p(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.f.onImageAlert=function(y){this.onImageError(y)};
_.f.uploadPromise=function(){var y=this,W=this.overlay&&this.overlay.uploadPromise();if(W)return W.catch(function(){throw Error(y.data?_.v$(y.data.uploadFailureError):"");})};
_.dJ.Object.defineProperties(GU0.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)return _.wp(this.data.icon.iconType)}}});
var db=GU0;db.prototype.setupOverlay=db.prototype.setupOverlay;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],db.prototype,"rendererStamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],db.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],db.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],db.prototype,"imageUploadEndpoint",void 0);_.x([_.L(),_.e("design:type",Object)],db.prototype,"errorMessage",void 0);
_.x([_.L(),_.e("design:type",hA)],db.prototype,"overlay",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],db.prototype,"hasPreview",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],db.prototype,"isBackstagePost",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],db.prototype,"selectionCancel",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],db.prototype,"previewCancel",null);
_.x([_.A("data.icon.iconType"),_.e("design:type",Object),_.e("design:paramtypes",[])],db.prototype,"icon",null);_.x([_.L(),_.e("design:type",Object)],db.prototype,"dismissButtonOverrides",void 0);_.x([_.H("imageUploadEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],db.prototype,"setupOverlay",null);db=_.x([_.d({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],db);
_.T(db,"ytd-backstage-image-select-renderer",function(){if(jzJ!==void 0)return jzJ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return jzJ=y},{mode:1});var fo5={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 oOE;var Dpi=function(){var y=_.v.apply(this,arguments)||this;y.a11yConfig=fo5;y.imageDisplayOffsetTop=0;y.imageDisplayOffsetLeft=0;y.pickerDisplayOffsetTop=0;y.pickerDisplayOffsetLeft=0;y.showPreviewContainer=!0;y.startPicker=!1;y.repositionOptional=!1;y.editOnlyMode=!1;y.savedImageDisplayOffsetTop=0;y.savedImageDisplayOffsetLeft=0;return y};
_.R(Dpi,_.v);_.f=Dpi.prototype;_.f.created=function(){_.P_.requestAvailability()};
_.f.ready=function(){};
_.f.onArrowKeysDown=function(y){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){y.detail.keyboardEvent.preventDefault();var W=0,c=0,Z="";switch(y.detail.keyboardEvent.key){case "ArrowUp":p4H(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:W=this.imageHeight*.05*-1;break;case "ArrowDown":p4H(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
W=this.imageHeight*.05;break;case "ArrowLeft":p4H(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":p4H(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}Z&&_.bN(Z)&&_.Z2(this.hostElement,"iron-announce",{text:_.bN(Z)});if(c||W)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+W)),y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),y=_.bN(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),y=_.bN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})),y&&_.Z2(this.hostElement,"iron-announce",{text:y})}};
_.f.getPreviewPosition=function(y,W,c,Z){return Math.round(100*(y+W*.5-c)/Z)};
_.f.calculateDisplayPosition=function(){var y=this.imageData.naturalWidth,W=this.imageData.naturalHeight;this.displayScale=Math.max(200/y,200/W);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var c=y*this.displayScale*this.imageData.previewCoordinates.left,Z=W*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=W>y?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-c;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=y>W?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Z;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=y*this.displayScale;this.imageHeight=W*this.displayScale};
_.f.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.f.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.f.getSignedPosition=function(y,W,c){return W==="X"&&_.Nn("HTML_DIR")==="rtl"?c==="-"?y+"px":y*-1+"px":c==="-"?y*-1+"px":y+"px"};
_.f.pickerMove=function(y){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var W=this.pickerOffsetX-y.clientX,c=this.pickerOffsetY-y.clientY;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-W))}};
_.f.pickerMoveStart=function(y){this.startPicker=!0;this.pickerOffsetX=y.clientX;this.pickerOffsetY=y.clientY};
_.f.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var y=this.generateCropPreview();y&&_.Z2(this.hostElement,"ytd-backstage-image-preview-coordinates-update",y)};
_.f.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Z2(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.f.deleteImage=function(){_.Z2(this.hostElement,"ytd-backstage-image-preview-delete")};
_.f.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.f.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var y=this.generateCropPreview();y&&_.Z2(this.hostElement,"ytd-backstage-image-preview-coordinates-save",y)};
_.f.getPreviewOffset=function(y,W,c){return W&&y?(c==="X"&&_.Nn("HTML_DIR")==="rtl"?300/W*y:300/W*y*-1)+"px":"0px"};
_.f.getSimpleText=function(y){return y?_.v$(y):""};
_.f.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}};
_.dJ.Object.defineProperties(Dpi.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var y=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.bN(this.a11yConfig.imageVerticalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.bN(this.a11yConfig.verticalRepositionInstruction)}y=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.bN(this.a11yConfig.imageHorizontalPosition,{x_percent:""+y,y_percent:""+(100-y)})+"\n"+_.bN(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 y,W,c=(y=this.instruction)==null?void 0:(W=y.previewInstruction)==null?void 0:W.editButtonLabel;return c?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G=this.editOnlyMode?(y=this.instruction)==null?void 0:(W=y.editInstruction)==null?void 0:W.saveImagesButtonLabel:(c=this.instruction)==null?void 0:(Z=c.editInstruction)==null?void 0:Z.saveButtonLabel;return G?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.instruction)==null?void 0:(W=y.previewInstruction)==null?void 0:W.deleteButtonLabel;return c?{size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.instruction)==null?void 0:(W=y.editInstruction)==null?void 0:W.cancelButtonLabel;y=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return c?{style:y,size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}: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"}}});
var SM=Dpi;SM.prototype.onEditOnlyModeUpdate=SM.prototype.onEditOnlyModeUpdate;SM.prototype.onImageChange=SM.prototype.onImageChange;_.x([_.L(),_.e("design:type",EUE)],SM.prototype,"imageData",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"instruction",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"a11yConfig",void 0);_.x([_.L(),_.e("design:type",Number)],SM.prototype,"imageWidth",void 0);_.x([_.L(),_.e("design:type",Number)],SM.prototype,"imageHeight",void 0);
_.x([_.L(),_.e("design:type",Number)],SM.prototype,"displayScale",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"imageDisplayOffsetTop",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"showPreviewContainer",void 0);
_.x([_.L(),_.e("design:type",Object)],SM.prototype,"startPicker",void 0);_.x([_.L(),_.e("design:type",Number)],SM.prototype,"pickerOffsetX",void 0);_.x([_.L(),_.e("design:type",Number)],SM.prototype,"pickerOffsetY",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"repositionOptional",void 0);_.x([_.L(),_.e("design:type",Object)],SM.prototype,"editOnlyMode",void 0);_.x([_.jj("#picker-container"),_.e("design:type",HTMLElement)],SM.prototype,"JSC$13348_pickerContainer",void 0);
_.x([_.jj("#picker"),_.e("design:type",HTMLElement)],SM.prototype,"picker",void 0);_.x([_.jj("#preview-clipper"),_.e("design:type",HTMLElement)],SM.prototype,"previewClipper",void 0);_.x([_.jj("#image-in-picker-background"),_.e("design:type",HTMLImageElement)],SM.prototype,"JSC$13348_imageInBackground",void 0);_.x([_.jj("#image-in-picker"),_.e("design:type",HTMLImageElement)],SM.prototype,"JSC$13348_imageInPicker",void 0);
_.x([_.jj("#image-in-preview-clipper"),_.e("design:type",HTMLImageElement)],SM.prototype,"JSC$13348_imageInPreviewClipper",void 0);_.x([_.A("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],SM.prototype,"altLabelForImage",null);_.x([_.A("imageHeight","imageWidth"),_.e("design:type",Number),_.e("design:paramtypes",[])],SM.prototype,"pickerSize",null);
_.x([_.A("imageHeight","imageWidth"),_.e("design:type",Object),_.e("design:paramtypes",[])],SM.prototype,"imageOrientationStyle",null);_.x([_.A("instruction"),_.e("design:type",Object),_.e("design:paramtypes",[])],SM.prototype,"editButton",null);_.x([_.A("instruction","editOnlyMode"),_.e("design:type",Object),_.e("design:paramtypes",[])],SM.prototype,"saveButton",null);_.x([_.A("instruction"),_.e("design:type",Object),_.e("design:paramtypes",[])],SM.prototype,"deleteButton",null);
_.x([_.A("instruction","editOnlyMode"),_.e("design:type",Object),_.e("design:paramtypes",[])],SM.prototype,"cancelButton",null);_.x([_.A("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.e("design:type",Number),_.e("design:paramtypes",[])],SM.prototype,"cropOffsetTop",null);_.x([_.A("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.e("design:type",Number),_.e("design:paramtypes",[])],SM.prototype,"cropOffsetLeft",null);
_.x([_.A("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],SM.prototype,"pickerBackgroundStyle",null);_.x([_.A("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],SM.prototype,"pickerDisplayStyle",null);_.x([_.A("cropOffsetLeft","cropOffsetTop"),_.e("design:type",String),_.e("design:paramtypes",[])],SM.prototype,"imageInPickerStyle",null);
_.x([_.A("cropOffsetLeft","cropOffsetTop","pickerSize"),_.e("design:type",String),_.e("design:paramtypes",[])],SM.prototype,"previewClipperStyle",null);_.x([_.Gs("imageData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SM.prototype,"onImageChange",null);_.x([_.Gs("editOnlyMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SM.prototype,"onEditOnlyModeUpdate",null);
_.x([_.A("showPreviewContainer"),_.e("design:type",String),_.e("design:paramtypes",[])],SM.prototype,"pickerModeStyle",null);SM=_.x([_.d({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],SM);
_.T(SM,"ytd-backstage-image-preview-renderer",function(){if(oOE!==void 0)return oOE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return oOE=y},{mode:1});var zuE;var YnE;var mpT=function(){var y=_.v.apply(this,arguments)||this;y.selected=!1;return y};
_.R(mpT,_.v);_.f=mpT.prototype;_.f.computeSelected=function(y){return y==null?void 0:y.selected};
_.f.computeTransform=function(y,W,c){var Z,G,D=(G=(Z=this.imageContainer)==null?void 0:Z.getBoundingClientRect())!=null?G:{width:0,height:0};Z=Math.max(D.width/W,D.height/c);c=c*Z*y.top;return"translateX("+this.getSignedPosition(W*Z*y.left,"X","-")+") translateY("+this.getSignedPosition(c,"Y","-")+")"};
_.f.getSignedPosition=function(y,W,c){return W==="X"&&_.Nn("HTML_DIR")==="rtl"?c==="-"?y+"px":y*-1+"px":c==="-"?y*-1+"px":y+"px"};
_.f.onClick=function(){var y;_.Z2(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(y=this.data)==null?void 0:y.image)};
_.f.onKeyPress=function(y){if(y.keyCode===13)this.onClick()};
_.dJ.Object.defineProperties(mpT.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.image)==null?void 0:W.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)!=null&&y.image){var W;y=(W=this.data)==null?void 0:W.image;return y.previewCoordinates.top!==0||y.previewCoordinates.left!==0?(W=this.computeTransform(y.previewCoordinates,y.naturalWidth,y.naturalHeight),y.naturalHeight>=y.naturalWidth?"width:inherit;transform:"+W+";":"height:inherit;transform:"+W+";"):y.naturalHeight>=y.naturalWidth?"width:inherit;":"height:inherit;"}}}});
var TW=mpT;TW.prototype.onKeyPress=TW.prototype.onKeyPress;_.x([_.jj(".image-container"),_.e("design:type",HTMLElement)],TW.prototype,"imageContainer",void 0);_.x([_.L(),_.e("design:type",Object)],TW.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.e("design:type",Object)],TW.prototype,"selected",void 0);_.x([_.A("data.image"),_.e("design:type",Object),_.e("design:paramtypes",[])],TW.prototype,"thumbnailUrl",null);
_.x([_.A("data.image","data.image.previewCoordinates"),_.e("design:type",Object),_.e("design:paramtypes",[])],TW.prototype,"thumbnailStyle",null);_.x([_.B("keypress"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],TW.prototype,"onKeyPress",null);TW=_.x([_.d({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],TW);
_.T(TW,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(YnE!==void 0)return YnE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return YnE=y},{mode:2});var a1=function(y,W,c){c=c===void 0?!1:c;_.uU.call(this);var Z=this;this.dropZoneOverlay=new cv(y);this.selectOverlay=c?new Zu(W,"multiple_file",["image/*"]):new Zu(W,"single_file",["image/*"]);this.handler=new _.q4(this);_.zY(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(W,"click",function(){Z.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.R(a1,_.uU);a1.prototype.onChange=function(y){var W;(W=y.files)!=null&&W.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:y.files}))};var szQ=function(){var y=_.v.apply(this,arguments)||this;y.addImageErrorMessage="";y.errorMessage="";y.images=[];y.selectedImageIndex=0;y.modern=_.O("web_modern_buttons");y.maxNumImagesPerPost=_.ey("max_num_images_per_post_web_ui");y.JSC$13361_imageId=0;return y};
_.R(szQ,_.v);_.f=szQ.prototype;_.f.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Z2(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.f.observeDragToReorder=function(){var y=this;if(this.showImagesPreview){var W,c=XBZ(_.at.getInstance(),(W=this.data)==null?void 0:W.dragToReorderTooltip);_.KX.addLowPriorityJob(function(){_.mq(y.hostElement,c,y.thumbnailDragDropArea)})}};
_.f.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}}};
_.f.computeThumbnail=function(y){return(y==null?void 0:y.localImageSrc)||void 0};
_.f.onRendererstamperFinished=function(){_.tY5(this.ytReorderableBehavior,_.p(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.p(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.f.handleDrop=function(y){var W=y.currDragItem;if(W!=null&&W.data){y=this.images[this.selectedImageIndex];var c=W.data.image,Z=this.images.indexOf(c)||0;W=_.By(W.parentNode.children,W);this.images.splice(Z,1);this.images.splice(W,0,c);this.images=[].concat(_.No(this.images));this.selectedImageIndex=this.images.indexOf(y)}};
_.f.setUpImagePicker=function(){var y=this.imageUploadEndpoint;y&&y.imageValidationInfo&&(this.uploadManager=new Hz(y.uploadUrl,y.channelId),this.initialPicker||(this.initialPicker=new a1(this.dropzone,this.selectLink,!0),_.Y0(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new a1(this.addImageButtonContainer,this.addImageSelectButton),_.Y0(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Y0(this.JSC$13361_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Y0(this.JSC$13361_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Y0(_.p(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.f.detached=function(){this.initialPicker&&(_.sp(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.sp(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.f.onInitialSelectImages=function(y){var W=this;return _.m(function(c){return _.n(c,W.onSelectImages(y,!1),0)})};
_.f.onAddImage=function(y){var W=this;return _.m(function(c){return _.n(c,W.onSelectImages(y,!0),0)})};
_.f.onSelectImages=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI;return _.m(function(sD){switch(sD.nextAddress){case 1:W?c.addImageErrorMessage="":(c.images=[],c.errorMessage="");Z=y.detail;G=c.validateImages([].concat(_.No(Z)));if(G!=="")return W?c.addImageErrorMessage=G:c.errorMessage=G,sD.return();D=[].concat(_.No(Z)).map(function(ED){return(new Qz(c.maxAspectRatio,!1,!0)).transform(ED)});
return _.n(sD,Promise.allSettled(D),2);case 2:Y=sD.yieldResult,u=_.z(Y.entries()),t=u.next();case 3:if(t.done){sD.jumpTo(5);break}b=t.value;r=_.z(b);F=r.next().value;K=r.next().value;l=F;N=K;if(N.status!=="fulfilled"){Q=V=P=void 0;W?c.addImageErrorMessage=_.v$((P=c.data)==null?void 0:P.invalidError):c.errorMessage=c.errorMessage===""?_.v$((V=c.data)==null?void 0:V.invalidError):_.v$((Q=c.data)==null?void 0:Q.multiFileError);sD.jumpTo(4);break}S=N.value;S.cropped&&_.Z2(c.hostElement,"yt-backstage-multi-image-cropped");
if(S.invalidAspectRatio){fa=M=cy=void 0;W?c.addImageErrorMessage=_.v$((cy=c.data)==null?void 0:cy.invalidAspectRatioError):c.errorMessage=c.errorMessage===""?_.v$((M=c.data)==null?void 0:M.invalidAspectRatioError):_.v$((fa=c.data)==null?void 0:fa.multiFileError);sD.jumpTo(4);break}return _.n(sD,NPF(c.JSC$13361_imageId,y.detail[l],S.transformedData),8);case 8:jI=sD.yieldResult,c.images.push(jI),c.JSC$13361_imageId++;case 4:t=u.next();sD.jumpTo(3);break;case 5:if(c.errorMessage!==""||c.addImageErrorMessage!==
"")return sD.return();W?xbT(c.uploadManager,[c.images[c.images.length-1]]):xbT(c.uploadManager,c.images);c.images=[].concat(_.No(c.images));c.selectedImageIndex=W?Math.max(c.images.length-1,0):0;_.Z2(c.hostElement,"yt-backstage-multi-image-select");_.F2(sD)}})};
_.f.onThumbnailClick=function(y){if(y=y.event_.detail)this.selectedImageIndex=this.images.indexOf(y)};
_.f.validateImages=function(y){if(y.length>this.maxNumImagesPerPost){var W;return _.v$((W=this.data)==null?void 0:W.multiImageExceedMaxImageCountError)}var c=1048576*this.maxFileSizeMb;y=y.filter(function(D){return D.size>c}).length;
if(y===0)return"";var Z,G;y=y>1?(Z=this.data)==null?void 0:Z.multiFileError:(G=this.data)==null?void 0:G.fileSizeError;return _.v$(y)};
_.f.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.No(this.images));this.selectedImageIndex=0};
_.f.repositionImage=function(y){this.images[this.selectedImageIndex].previewCoordinates=y.event_.detail;this.images=[].concat(_.No(this.images))};
_.f.getAllUploadStatuses=function(){var y=this,W,c,Z,G;return _.m(function(D){if(D.nextAddress==1)return _.n(D,y.uploadManager.getAllUploadStatuses(),2);W=D.yieldResult;c=_.z(W);for(Z=c.next();!Z.done;Z=c.next())if(G=Z.value,G.encryptedBlobId===void 0)return D.return(ibV(y.uploadManager));return D.return(W)})};
_.f.hasImages=function(){return this.images.length>0};
_.f.cancel=function(){for(var y=this.uploadManager,W=_.z(y.imagesUploadData),c=W.next();!c.done;c=W.next())y.cancel(c.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Z2(this.hostElement,"yt-backstage-multi-image-cancel")};
_.dJ.Object.defineProperties(szQ.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.imageUploadEndpoint)==null?void 0:(W=y.imageValidationInfo)==null?void 0:W.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.imageUploadEndpoint)==null?void 0:(W=y.imageValidationInfo)==null?void 0:W.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var y,W;if((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)return _.wp(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.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 y=this;return(this.images||[]).map(function(W,c){return{renderer:{image:W,selected:c===y.selectedImageIndex}}})}}});
var xE=szQ;xE.prototype.setUpImagePicker=xE.prototype.setUpImagePicker;xE.prototype.onRendererstamperFinished=xE.prototype.onRendererstamperFinished;xE.prototype.observeDragToReorder=xE.prototype.observeDragToReorder;xE.prototype.observeAddImageError=xE.prototype.observeAddImageError;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xE.prototype,"rendererStamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Xoi),_.e("design:type",Object)],xE.prototype,"ytReorderableBehavior",void 0);_.x([_.jj("#dropzone"),_.e("design:type",HTMLElement)],xE.prototype,"dropzone",void 0);_.x([_.jj("#select-link"),_.e("design:type",HTMLElement)],xE.prototype,"selectLink",void 0);_.x([_.jj("#thumbnail-drag-drop-area"),_.e("design:type",HTMLElement)],xE.prototype,"thumbnailDragDropArea",void 0);_.x([_.jj("#add-image-button-container"),_.e("design:type",HTMLElement)],xE.prototype,"addImageButtonContainer",void 0);
_.x([_.jj("#add-image-button"),_.e("design:type",HTMLElement)],xE.prototype,"addImageSelectButton",void 0);_.x([_.jj("#image-preview-container"),_.e("design:type",Object)],xE.prototype,"JSC$13361_imagePreviewContainer",void 0);_.x([_.L(),_.e("design:type",Object)],xE.prototype,"addImageErrorMessage",void 0);_.x([_.L(),_.e("design:type",Object)],xE.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],xE.prototype,"errorMessage",void 0);
_.x([_.L(),_.e("design:type",Object)],xE.prototype,"imageUploadEndpoint",void 0);_.x([_.L(),_.e("design:type",Array)],xE.prototype,"images",void 0);_.x([_.L(),_.e("design:type",a1)],xE.prototype,"initialPicker",void 0);_.x([_.L(),_.e("design:type",a1)],xE.prototype,"addImagePicker",void 0);_.x([_.L(),_.e("design:type",Hz)],xE.prototype,"uploadManager",void 0);_.x([_.L(),_.e("design:type",Object)],xE.prototype,"selectedImageIndex",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xE.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xE.prototype,"maxNumImagesPerPost",void 0);_.x([_.A("imageUploadEndpoint"),_.e("design:type",Number),_.e("design:paramtypes",[])],xE.prototype,"maxAspectRatio",null);_.x([_.A("imageUploadEndpoint"),_.e("design:type",Number),_.e("design:paramtypes",[])],xE.prototype,"maxFileSizeMb",null);
_.x([_.A("data.icon.iconType"),_.e("design:type",Object),_.e("design:paramtypes",[])],xE.prototype,"dropIcon",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],xE.prototype,"selectionCancel",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],xE.prototype,"previewCancel",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],xE.prototype,"dataForAddImageButton",null);
_.x([_.A("errorMessage"),_.e("design:type",String),_.e("design:paramtypes",[])],xE.prototype,"dropzoneClass",null);_.x([_.A("images"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],xE.prototype,"showImagesPreview",null);_.x([_.A("images"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],xE.prototype,"containMaxImages",null);_.x([_.H("addImageErrorMessage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xE.prototype,"observeAddImageError",null);
_.x([_.H("showImagesPreview"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xE.prototype,"observeDragToReorder",null);_.x([_.A("images","selectedImageIndex"),_.e("design:type",Object),_.e("design:paramtypes",[])],xE.prototype,"selectedImageData",null);_.x([_.A("images","selectedImageIndex"),_.e("design:type",Array),_.e("design:paramtypes",[])],xE.prototype,"thumbnailRenderers",null);
_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xE.prototype,"onRendererstamperFinished",null);_.x([_.H("imageUploadEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xE.prototype,"setUpImagePicker",null);xE=_.x([_.d({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],xE);
_.T(xE,"ytd-backstage-multi-image-select-renderer",function(){if(zuE!==void 0)return zuE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return zuE=y},{mode:1});var uU3;var trV=function(){var y=_.v.apply(this,arguments)||this;y.quizOptions=[];y.explanationPlaceholderText="";y.optionPlaceholderText="";y.correctAnswerIndex=-1;y.isMarkAnswerTooltipShown=!1;y.timer=0;return y};
_.R(trV,_.v);_.f=trV.prototype;_.f.dataChanged=function(){this.optionPlaceholderText=_.v$(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.v$(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.f.onMarkCorrectAnswer=function(y){var W,c=((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[y.model.index]=Object.assign({},this.quizOptions[y.model.index],{explanationText:c,isCorrect:!0});this.correctAnswerIndex=y.model.index;this.quizOptions=[].concat(_.No(this.quizOptions))};
_.f.updatePlaceholderTexts=function(){for(var y=!1,W=[],c=0;c<this.quizOptions.length;c++){var Z=this.optionPlaceholderText+" "+(c+1),G=void 0;((G=this.quizOptions[c])==null?void 0:G.placeholderText)!==Z?(y=!0,W.push(Object.assign({},this.quizOptions[c],{placeholderText:Z}))):W.push(this.quizOptions[c])}y&&(this.quizOptions=W);this.isValid()?_.Z2(this.hostElement,"yt-commentbox-post-enable"):_.Z2(this.hostElement,"yt-commentbox-post-disable")};
_.f.getSimpleString=function(y){return _.v$(y)};
_.f.createQuizOptions=function(y){var W=[],c;y=(c=y==null?void 0:y.minQuizOptions)!=null?c:0;for(c=0;c<y;c++)W.push(this.createQuizOption());return W};
_.f.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.No(this.quizOptions),[this.createQuizOption()]))};
_.f.onInput=function(){this.quizOptions=[].concat(_.No(this.quizOptions))};
_.f.onExplanationInput=function(){_.Z2(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.f.onRemoveQuizOption=function(y){this.quizOptions.splice(y.model.index,1);y.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:y.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.No(this.quizOptions));this.quizOptions.length===0&&_.Z2(this.hostElement,"yt-quiz-attachment-dismiss")};
_.f.updateHintRenderer=function(){var y=this;clearTimeout(this.timer);this.timer=setTimeout(function(){y.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.f.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var y=0,W=0,c=_.z(this.quizOptions),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var G=void 0;if(((G=Z.optionText)==null?void 0:G.trim())!==""||Z.isCorrect){Z.isCorrect&&W++;G=void 0;if(this.hasCustomOptionText&&((G=Z.optionText)==null?void 0:G.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;y++}}return y>=
Number(this.editorInfo.minQuizOptions)&&W===1};
_.f.getPostCreateOptions=function(){for(var y=[],W=_.z(this.quizOptions),c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0;((Z=c.optionText)==null?void 0:Z.trim())!==""&&y.push({pollOption:{text:c.optionText,explanation:c.explanationText},isCorrect:c.isCorrect})}return y};
_.f.getExplanationText=function(){var y;return((y=this.quizOptions[this.correctAnswerIndex])==null?void 0:y.explanationText)||""};
_.f.maybeDisplayMarkAnswerEduToolTip=function(){var y,W,c,Z,G,D,Y;this.shouldShowMarkAnswerTooltip()&&((y=this.editorInfo)==null?0:(W=y.markAnswerButton)==null?0:(c=W.buttonRenderer)==null?0:(Z=c.hint)==null?0:(G=Z.hintRenderer)==null?0:(D=G.content)==null?0:(Y=D.bubbleHintRenderer)==null?0:Y.text)&&(_.at.getInstance(),y=xP(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,(y==null?void 0:y.length)>0&&this.optionSelectors&&_.jl(y[0],this.optionSelectors[0]))};
_.f.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var y=0,W=_.z(this.quizOptions),c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0;((Z=c.optionText)==null?void 0:Z.trim())!==""&&y++;if(c.isCorrect)return!1}return y<2?!1:!0};
_.f.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.f.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.f.updateOptionTextFromBinding=function(y){if(y.target){var W=Array.from(_.p(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(y.target);if(W>=0){var c;this.quizOptions[W].optionText=(c=y.detail.value)!=null?c:""}}};
_.dJ.Object.defineProperties(trV.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.editorInfo)==null?void 0:(W=y.addOptionButton)==null?void 0:W.buttonRenderer;c&&(c.style="STYLE_SUGGESTIVE",c.size="SIZE_SMALL",c.isDisabled=!this.isAllowedToAddOption);return(c==null?0:c.text)?c:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.quizOptions.length<((W=(y=this.editorInfo)==null?void 0:y.maxQuizOptions)!=null?W:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(y){var W;return(W=y.optionText)==null?void 0:W.trim()})}}});
var iW=trV;iW.prototype.updatePlaceholderTexts=iW.prototype.updatePlaceholderTexts;iW.prototype.dataChanged=iW.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],iW.prototype,"editorInfo",void 0);_.x([_.L(),_.e("design:type",Array)],iW.prototype,"quizOptions",void 0);_.x([_.L(),_.e("design:type",Object)],iW.prototype,"explanationPlaceholderText",void 0);_.x([_.y0(".option-selector-button"),_.e("design:type",Array)],iW.prototype,"optionSelectors",void 0);
_.x([_.Gs("editorInfo"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iW.prototype,"dataChanged",null);_.x([_.A("editorInfo","isAllowedToAddOption","quizOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],iW.prototype,"addAnswerButton",null);_.x([_.A("editorInfo","quizOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],iW.prototype,"isAllowedToAddOption",null);
_.x([_.Gs("quizOptions"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iW.prototype,"updatePlaceholderTexts",null);_.x([_.A("quizOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],iW.prototype,"hasCustomOptionText",null);iW=_.x([_.d({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],iW);
_.T(iW,"ytd-backstage-quiz-editor-renderer",function(){if(uU3!==void 0)return uU3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return uU3=y},{mode:2});var nOE;var XWT=(F6.FIRSTDAYOFWEEK+1)%7;var b0E;var rgV=[],FGE=0,UpJ=0;FGE=0;UpJ=24;if(.25*(UpJ-FGE)<0)b0E=[];else{for(var $pE=FGE;$pE<UpJ;$pE+=.25)rgV.push($pE);b0E=rgV}var KG8=b0E.map(function(y){y=y*60*60;return{secondsSinceMidnight:y,text:(new B$(7)).format(new Date(0,0,0,0,0,y))}});var O05;var gOV=function(){var y=_.v.apply(this,arguments)||this;y.skipNextOpenDialog=!1;y.errorMessage="";return y};
_.R(gOV,_.v);_.f=gOV.prototype;_.f.attached=function(){var y=this,W=new MutationObserver(function(){y.JSC$13393_calendarMain.scrollHeight>0&&(W.disconnect(),y.calendarConfig&&y.calendarConfig.selectedDate&&y.scrollToDate())});
W.observe(this.JSC$13393_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){W.disconnect()},1E3)};
_.f.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.f.onDateTextChange=function(){if(this.calendarConfig){var y=this.validateDateText();y.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(y.details)):this.textbox.setAttribute("invalid","")}};
_.f.handleDayClick=function(y){y.model.day.date&&(this.commitDate(y.model.day.date),this.dialog.close())};
_.f.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var y=HkI(this.calendarConfig.selectedDate,this.renderData);y!==void 0&&this.JSC$13393_calendarMain.scrollToIndex(y)}};
_.f.scrollToNextMonth=function(){this.JSC$13393_calendarMain.scrollToIndex(this.JSC$13393_calendarMain.firstVisibleIndex+1)};
_.f.scrollToPrevMonth=function(){this.JSC$13393_calendarMain.firstVisibleIndex===0&&this.JSC$13393_calendarMain.scrollTo(0,0);this.JSC$13393_calendarMain.scrollToIndex(this.JSC$13393_calendarMain.firstVisibleIndex-1)};
_.f.onFormSubmit=function(y){y.preventDefault();this.calendarConfig&&(y=this.validateDateText(),y.isValid&&(this.commitDate(y.details),this.dialog.close()))};
_.f.onEscOrClickingOutside=function(y){y=y.detail.path&&!!y.detail.path.length&&y.detail.path[0];if(y.classList.contains("ytd-calendar-date-picker")){y===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var W=0;W<this.dropdownButton.children.length;W++)this.dropdownButton.children[W]===y&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}y=this.textbox.value!==this.dateText;W=this.validateDateText();y&&W.isValid&&this.commitDate(W.details);this.dialog.close();this.textbox.value=
this.dateText};
_.f.commitDate=function(y){this.calendarConfig&&(this.set("calendarConfig.selectedDate",y),_.Z2(this.hostElement,"ytd-calendar-date-selected",y))};
_.f.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var y=this.textbox.value;var W=new Date;y=(new GEF(2)).parse(y,W,{validate:!0})===y.length?hA1(W):void 0;if(!y)return this.errorMessage=_.bN("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};W=this.calendarConfig.start;var c=this.calendarConfig.end;if(Juf(y,W))return this.errorMessage=_.bN("ENTER_DATE_OR_LATER",{allowed_date:AuE(W)}),{isValid:!1,details:void 0};if(Juf(c,y))return this.errorMessage=
_.bN("ENTER_DATE_OR_EARLIER",{allowed_date:AuE(c)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:y}};
_.dJ.Object.defineProperties(gOV.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?AuE(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var y=this.calendarConfig,W=[],c=0;c<7;c++)W.push(F6.NARROWWEEKDAYS[(c+XWT)%7]);c=[];for(var Z=new Date(y.start.year,y.start.month);Z.getFullYear()<y.end.year||Z.getFullYear()===y.end.year&&Z.getMonth()<=y.end.month;){var G=c,D=G.push,Y=Z.getFullYear(),u=Z.getMonth(),t=y,b=void 0,r=[],F=Object.freeze({extraCssClass:"invisible",debugClass:""}),K=new Date(Y,u),l=hA1(K);K=K.getDay();for(var N=hA1(new Date);l.month===
u;){K!==XWT&&b||(b=Array.from({length:7}).fill(F),r.push(b));var P={date:{year:Y,month:u,day:l.day},extraCssClass:"",debugClass:""};t.selectedDate&&P.date&&Pqh(P.date,t.selectedDate)&&(P.extraCssClass+=" selected");if(Juf(l,t.start)||Juf(t.end,l))P.extraCssClass+=" disabled";Pqh(l,N)&&(P.extraCssClass+=" today");P.extraCssClass=P.extraCssClass.trim();b[(K-XWT+7)%7]=P;l=Cqh(l);K=(K+1)%7}D.call(G,{weeks:r,monthLabel:F6.SHORTMONTHS[u]+" "+Y,year:Y,month:u,monthLabelExtraCssClass:r[0][2]===F?"shift-down-label":
""});Z.setMonth(Z.getMonth()+1)}return{months:c,daysOfWeekLabel:W}}}}});
var Mq=gOV;Mq.prototype.onEscOrClickingOutside=Mq.prototype.onEscOrClickingOutside;Mq.prototype.scrollToDate=Mq.prototype.scrollToDate;_.x([_.L(),_.e("design:type",Object)],Mq.prototype,"calendarConfig",void 0);_.x([_.L(),_.e("design:type",Object)],Mq.prototype,"skipNextOpenDialog",void 0);_.x([_.L(),_.e("design:type",Object)],Mq.prototype,"errorMessage",void 0);_.x([_.jj("#textbox"),_.e("design:type",HTMLInputElement)],Mq.prototype,"textbox",void 0);
_.x([_.jj("#calendar-dialog"),_.e("design:type",Object)],Mq.prototype,"dialog",void 0);_.x([_.jj("#calendar-main"),_.e("design:type",Object)],Mq.prototype,"JSC$13393_calendarMain",void 0);_.x([_.jj("#date-picker"),_.e("design:type",HTMLElement)],Mq.prototype,"dropdownButton",void 0);_.x([_.A("calendarConfig.selectedDate"),_.e("design:type",String),_.e("design:paramtypes",[])],Mq.prototype,"dateText",null);
_.x([_.A("calendarConfig","calendarConfig.selectedDate"),_.e("design:type",Object),_.e("design:paramtypes",[])],Mq.prototype,"renderData",null);_.x([_.H("renderData","calendarConfig.selectedDate"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Mq.prototype,"scrollToDate",null);_.x([_.B("iron-overlay-canceled"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Mq.prototype,"onEscOrClickingOutside",null);
Mq=_.x([_.n6({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Mq);
_.T(Mq,"ytd-calendar-date-picker",function(){if(O05!==void 0)return O05;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return O05=y},{mode:2});var Ru8=_.bN("UTC_OFFSET_FORMAT",{utc_offset:(new B$("Z")).format(new Date)}),loT=(new Date).getTimezoneOffset()*-60,EOm=new Date,NoV,Ioi=hK(EOm.getTimezoneOffset());NoV=aVE(i6m(Ioi,EOm));var pWE=_.bN("LOCAL_TIME_GMT_LABEL",{gmt_text:NoV.replace("+0","+").replace("-0","-").replace(":00","")}),Pr5=function(){var y=_.v.apply(this,arguments)||this;y.selectedTimeIndex=0;y.selectedTimezoneIndex=0;y.timeOfDayOptions=KG8;return y};
_.R(Pr5,_.v);_.f=Pr5.prototype;_.f.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var y=QJD();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=y,this.selectedTimeIndex=0;else{var W=BPE(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},y,{selectedDate:W.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(c){return c.secondsSinceMidnight===W.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.f.onDatePicked=function(y){this.selectedDate=y.detail};
_.f.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Z2(this.hostElement,"ytd-date-time-selection-cancelled")};
_.f.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var y=this.selectedDate;y=new Date(y.year,y.month,y.day);_.Z2(this.hostElement,"ytd-date-time-selection-update",Math.floor(y.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+y.getTimezoneOffset()*60))}};
_.f.getTimezoneFormat=function(y){return y.localizedDisplayText?y.localizedDisplayText:_.bN("TIMEZONE_FORMAT",{utc_offset_text:""+y.localizedUtcOffset,city_name:""+y.localizedName})};
_.f.updateSelectedTimeIndexFromBinding=function(y){this.selectedTimeIndex=y.detail.value};
_.f.updateSelectedTimezoneIndexFromBinding=function(y){this.selectedTimezoneIndex=y.detail.value};
_.dJ.Object.defineProperties(Pr5.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var y=this.data.timezoneOptions;var W={name:"Etc/Unknown",localizedName:_.bN("LOCAL_TIME_LABEL"),localizedUtcOffset:Ru8,utcOffsetSec:""+loT,localizedDisplayText:pWE};y?y.length&&y[0].name!==W.name&&(y[0].localizedDisplayText||(W.localizedDisplayText=""),y.unshift(W)):y=[W];return y}}},
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]}}});
var eM=Pr5;eM.prototype.onDateTimeTimezoneChange=eM.prototype.onDateTimeTimezoneChange;eM.prototype.onDatePicked=eM.prototype.onDatePicked;eM.prototype.updateDefaultSelectedValue=eM.prototype.updateDefaultSelectedValue;_.x([_.L(),_.e("design:type",Object)],eM.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],eM.prototype,"calendarConfig",void 0);_.x([_.L(),_.e("design:type",Object)],eM.prototype,"selectedDate",void 0);
_.x([_.L(),_.e("design:type",Object)],eM.prototype,"selectedTimeIndex",void 0);_.x([_.L(),_.e("design:type",Object)],eM.prototype,"selectedTimezoneIndex",void 0);_.x([_.jj("#time-listbox"),_.e("design:type",Object)],eM.prototype,"timeListBox",void 0);_.x([_.jj("#timezone-listbox"),_.e("design:type",Object)],eM.prototype,"timezoneListBox",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],eM.prototype,"rendererStamperBehavior",void 0);
_.x([_.A("data.timezoneOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],eM.prototype,"timeZones",null);_.x([_.Gs("data","timeZones"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],eM.prototype,"updateDefaultSelectedValue",null);_.x([_.A("selectedTimezoneIndex","timeZones"),_.e("design:type",Object),_.e("design:paramtypes",[])],eM.prototype,"selectedTimezone",null);
_.x([_.A("selectedTimeIndex"),_.e("design:type",Object),_.e("design:paramtypes",[])],eM.prototype,"selectedTime",null);_.x([_.B("ytd-calendar-date-selected"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],eM.prototype,"onDatePicked",null);_.x([_.H("selectedTimezone","selectedTime","selectedDate"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],eM.prototype,"onDateTimeTimezoneChange",null);
eM=_.x([_.d({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],eM);
_.T(eM,"ytd-date-time-picker-renderer",function(){if(nOE!==void 0)return nOE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return nOE=y},{mode:1});var JgZ;var wb=function(){var y=_.v.apply(this,arguments)||this;y.boundOnTapDismissButton=function(){y.dismissTapHandler()};
y.dismissButtonOverrides={size:"XS"};return y};
_.R(wb,_.v);wb.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}}}}}};
wb.prototype.dismissTapHandler=function(){_.Z2(this.hostElement,"yt-backstage-attachment-dismissed")};
wb.prototype.computeAttachmentType=function(y){return y?y.backstageImageRenderer?"image":y.videoRenderer?"video":"none":"none"};
var qq=wb;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],qq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qq.prototype,"attachmentPreview",void 0);_.x([_.L(),_.e("design:type",Object)],qq.prototype,"dismissButton",void 0);_.x([_.L(),_.e("design:type",Object)],qq.prototype,"boundOnTapDismissButton",void 0);
_.x([_.L(),_.e("design:type",Object)],qq.prototype,"dismissButtonOverrides",void 0);_.x([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.e("design:type",String)],qq.prototype,"attachmentType",void 0);qq=_.x([_.d({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],qq);
_.T(qq,"ytd-backstage-dismissable-attachment",function(){if(JgZ!==void 0)return JgZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return JgZ=y},{mode:1});var VrQ;var Cri=function(){var y=_.v.apply(this,arguments)||this;y.selectedVideoId=void 0;y.picker=void 0;y.dismissButtonOverrides={size:"XS"};y.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return y};
_.R(Cri,_.v);_.f=Cri.prototype;_.f.onServiceRequestCompleted=function(y){y.stopPropagation()};
_.f.handleAddVideoPreviewAction=function(y){y=this.get("addVideoPreviewAction",y);this.onGetVideoPreviewSuccess(y)};
_.f.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}}}}}};
_.f.onLaunchVideoPicker=function(y){var W=this,c=_.v$(this.get("addVideoLinkAction.title",y)),Z=this.get("addVideoLinkAction.onePickHostId",y);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",y);Z&&(this.picker||(c=_.qA8(_.IfI(Z).setTitle(c).addView(iRJ()).addView(xCE()),function(G){W.onPickVideo(G)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",y)||c.addView("youtube"),this.picker=c.build()),this.picker.setVisible(!0))};
_.f.onPickVideo=function(y){if(y)if(y.action==="cancel")_.Z2(this.hostElement,"yt-video-link-button-cancel");else if(y.action==="picked"){y=y.docs;if(!y||y.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(y=(y==null?0:y.length)?y[0]:void 0)?y.id:void 0;this.setVideoPreview()}};
_.f.setVideoPreview=function(){var y=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){y.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.f.onGetVideoPreviewSuccess=function(y){if(y&&y.videoPreview&&y.cancelButton)this.videoPreview=y.videoPreview,this.cancelButton=y.cancelButton,_.Z2(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.f.onGetVideoPreviewError=function(){this.cancel()};
_.f.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Z2(this.hostElement,"yt-video-link-cancel")};
_.f.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
var kE=Cri;kE.prototype.onServiceRequestCompleted=kE.prototype.onServiceRequestCompleted;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],kE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],kE.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kE.prototype,"videoPreview",void 0);_.x([_.L(),_.e("design:type",Object)],kE.prototype,"cancelButton",void 0);_.x([_.L(),_.e("design:type",Object)],kE.prototype,"getVideoPreviewCommand",void 0);_.x([_.L(),_.e("design:type",Object)],kE.prototype,"dismissButtonOverrides",void 0);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],kE.prototype,"onServiceRequestCompleted",null);kE=_.x([_.d({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],kE);
_.T(kE,"ytd-backstage-video-link-attachment",function(){if(VrQ!==void 0)return VrQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return VrQ=y},{mode:1});var Qz0;var AgV;var huZ;var j3=function(){return _.v.apply(this,arguments)||this};
_.R(j3,_.v);j3.prototype.dataChanged=function(){this.active=!1};
j3.prototype.onTap=function(){_.Z2(this.hostElement,"yt-select-emoji-suggestion",this.data)};
j3.prototype.identity=function(y){return y};
_.dJ.Object.defineProperties(j3.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;if((y=this.data)==null?0:(W=y.image)==null?0:(c=W.thumbnails)==null?0:(Z=c[0])==null?0:Z.url)return y=this.data.image.thumbnails[0].url,y.startsWith("data:image/svg+xml")?gf(y):_.Jn(y)}}});
var yI=j3;yI.prototype.dataChanged=yI.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],yI.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],yI.prototype,"active",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yI.prototype,"dataChanged",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],yI.prototype,"imageSrc",null);
yI=_.x([_.d({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],yI);
_.T(yI,"ytd-emoji-suggestion",function(){if(huZ!==void 0)return huZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return huZ=y},{mode:1});var Bo8=/.*([:@#].*?)$/,H05=function(){var y=_.v.apply(this,arguments)||this;y.suggestions=[];y.suggestionIndex=-1;y.JSC$13421_lastSuggestionRange=null;return y};
_.R(H05,_.v);_.f=H05.prototype;_.f.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.f.getSuggestions=function(y){var W=[],c=$A8(this.emojiManager,y.substr(0,3));if(c)for(var Z in c)if(Z.toLocaleLowerCase().indexOf(y)===0){var G=c[Z];if(G&&G.emojiId){G=g$(this.emojiManager,G.emojiId);var D=void 0,Y=void 0,u=void 0,t=void 0,b=((D=G)==null?0:D.isCustomEmoji)?(Y=G)==null?void 0:(u=Y.shortcuts)==null?void 0:u[0]:(t=G)==null?void 0:t.emojiId;D=void 0;W.push({suggestion:{image:(D=G)==null?void 0:D.image,alt:b,text:Z}});if(W.length>=64)break}}return W?W.sort(function(r,F){return F.suggestion.text<
r.suggestion.text?-1:F.suggestion.text===r.suggestion.text?0:1}):null};
_.f.insertSuggestion=function(y){_.Z2(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13421_lastSuggestionRange,text:y.alt});this.dropdown.opened=!1};
_.f.updateSuggestionsAtCaret=function(y){this.updateSuggestions(y,this.retrieveTextBeforeRange(y))};
_.f.offsetStartOfRangeBy=function(y,W){y.startOffset>=W&&y.setStart(y.startContainer,y.startOffset-W)};
_.f.updateSuggestions=function(y,W){var c=this;this.JSC$13421_lastSuggestionRange&&(this.JSC$13421_lastSuggestionRange.detach(),this.JSC$13421_lastSuggestionRange=null);if((W=Bo8.exec(W))&&W.length&&(W=W[W.length-1].toLocaleLowerCase(),W.length>2||W===":_")&&(this.offsetStartOfRangeBy(y,W.length),this.JSC$13421_lastSuggestionRange=y,(y=this.getSuggestions(W))&&y.length)){this.suggestions=y;_.Lv(this,function(){c.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(y.length-1);return}this.dropdown.opened=!1};
_.f.onKeyDown=function(y){if(this.dropdown.opened)switch(y.key){case "Escape":this.dropdown.opened=!1;y.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);y.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);y.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),y.preventDefault()}};
_.f.onKeyUp=function(y,W){switch(y.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(W);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(W)}};
_.f.onKeyPress=function(y){y.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),y.preventDefault())};
_.f.changeSuggestionIndex=function(y){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(y+this.suggestions.length)%this.suggestions.length,y=this.dropdownContent.children[this.suggestionIndex],y.active=!0,this.dropdownContent.scrollTop=y.offsetTop)};
_.f.retrieveTextBeforeRange=function(y){var W=y.startContainer;return W&&W.nodeType===Node.TEXT_NODE?W.textContent.substr(0,y.startOffset):""};
var WV=H05;WV.prototype.onKeyPress=WV.prototype.onKeyPress;WV.prototype.onKeyUp=WV.prototype.onKeyUp;WV.prototype.onKeyDown=WV.prototype.onKeyDown;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Array)],WV.prototype,"suggestions",void 0);_.x([_.L(),_.e("design:type",_.KB)],WV.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",Number)],WV.prototype,"verticalSuggestionsOffset",void 0);
_.x([_.jj("#dropdown"),_.e("design:type",Object)],WV.prototype,"dropdown",void 0);_.x([_.jj("#dropdown-content"),_.e("design:type",HTMLDivElement)],WV.prototype,"dropdownContent",void 0);_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent]),_.e("design:returntype")],WV.prototype,"onKeyDown",null);_.x([_.B("keyup"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent,Range]),_.e("design:returntype")],WV.prototype,"onKeyUp",null);
_.x([_.B("keypress"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent]),_.e("design:returntype")],WV.prototype,"onKeyPress",null);WV=_.x([_.d({disableElementRegistration:!0,is:"ytd-emoji-input"})],WV);
_.T(WV,"ytd-emoji-input",function(){if(AgV!==void 0)return AgV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return AgV=y},{mode:2});var LG0;var vOW=function(){var y=_.v.apply(this,arguments)||this;y.hasMaxOptions=!1;return y};
_.R(vOW,_.v);_.f=vOW.prototype;_.f.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.f.setPrefilledChoices=function(y){var W=this;this.set("pollOptions",[]);var c;for(c=0;c<Math.min(y.length,this.data.maxPollOptions);c++)this.push("pollOptions",y[c].substring(0,this.data.maxPollOptionChars));for(;c<this.data.minPollOptions;c++)this.push("pollOptions","");this.hasMaxOptions=c>=this.data.maxPollOptions;_.Lv(this,function(){for(var Z=W.pollOptions,G=_.p(W.hostElement).querySelectorAll(".poll-option-input"),D=0;D<G.length;D++)G[D].value=Z[D]})};
_.f.focusChanged=function(){_.wM(this.hostElement)};
_.f.onInput=function(){var y=this;_.gp(this,"onInput",function(){y.isValid()?_.Z2(y.hostElement,"yt-commentbox-post-enable"):_.Z2(y.hostElement,"yt-commentbox-post-disable")},300)};
_.f.setPollOptions=function(){var y=[],W,c=((W=this.data)==null?0:W.minPollOptions)?this.data.minPollOptions:0;for(W=0;W<c;W++)y.push("");return y};
_.f.addPollOption=function(){var y=this;_.Z2(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.KX.addLowPriorityJob(function(){var W;(W=_.p(y.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||W.focus()})};
_.f.onRemovePollOption=function(y){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Z2(this.hostElement,"yt-poll-attachment-dismiss")):(y=this.repeat.indexForElement(y.target.parentNode),y!==null&&(this.splice("pollOptions",y,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Z2(this.hostElement,"yt-commentbox-post-enable"))))};
_.f.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.f.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var y=0,W=this.pollOptions.length;y<W;y++)if(this.pollOptions[y].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.f.getPollOptions=function(){return this.pollOptions};
_.f.setPollOptionsFromInputs=function(){for(var y=_.p(this.hostElement).querySelectorAll(".poll-option-input"),W=0;W<y.length;W++)this.pollOptions[W]=y[W].value.trim()};
_.f.clearPollOptions=function(){var y=_.p(this.hostElement).querySelectorAll(".poll-option-input");y=_.z(y);for(var W=y.next();!W.done;W=y.next())W.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.f.getSimpleString=function(y){return _.v$(y)};
_.f.updateValueFromBinding=function(y){if(y.target&&this.pollOptions){var W=Array.from(_.p(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(y.target);if(W>=0){var c;this.pollOptions[W]=(c=y.detail.value)!=null?c:"";this.notifyPath("pollOptions."+W)}}};
var cV=vOW;cV.prototype.dataChanged=cV.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cV.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Array)],cV.prototype,"pollOptions",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],cV.prototype,"hasMaxOptions",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],cV.prototype,"enableCreationBox",void 0);_.x([_.jj("#repeat"),_.e("design:type",s0)],cV.prototype,"repeat",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cV.prototype,"dataChanged",null);cV=_.x([_.d({disableElementRegistration:!0,is:"ytd-poll-attachment"})],cV);
_.T(cV,"ytd-poll-attachment",function(){if(LG0!==void 0)return LG0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return LG0=y},{mode:2});var dpT;var SnT;var To5;var aoV;var xpZ=function(){return _.v.apply(this,arguments)||this};
_.R(xpZ,_.v);_.dJ.Object.defineProperties(xpZ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
var Zh=xpZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Zh.prototype,"rendererBehaviors",void 0);_.x([_.L(),_.e("design:type",Object)],Zh.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Zh.prototype,"focused",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("focused"),_.e("design:type",Object),_.e("design:paramtypes",[])],Zh.prototype,"ariaSelected",null);Zh=_.x([_.n6({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Zh);
_.T(Zh,"yt-user-mention-suggestion-renderer",function(){if(aoV===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;To5===void 0&&(To5=document.createElement("template"));var Z=To5;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);aoV=y}y=aoV;return y},{mode:2});var i0i;var Mr3;var euW=function(){var y=_.v.apply(this,arguments)||this;y.focusedSuggestionIndex=-1;return y};
_.R(euW,_.v);_.f=euW.prototype;_.f.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.f.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.f.setFocusedSuggestionIndex=function(y){!this.data||!this.data.suggestions||y<0||y>=this.data.suggestions.length||(this.focusedSuggestionIndex=y,y=this.getSuggestionId(y),this._setFocusedSuggestionId(y))};
_.f.advanceSuggestion=function(y){this.focusedSuggestionIndex===-1||y!==-1&&y!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+y),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.f.ensureSuggestionVisible=function(y){y=this.getSuggestionId(y);y=_.p(this.hostElement).querySelector("[id="+y+"]");y!=null&&(y.offsetTop<this.hostElement.scrollTop?y.scrollIntoView(!0):y.offsetTop+y.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&y.scrollIntoView(!1))};
_.f.getSuggestionId=function(y){return"user-mention-suggestion-"+y};
_.f.onSuggestionTap=function(y){var W=_.g(y.model.item,UtE);this.ytRendererBehavior.logExplicitClick(W);_.Z2(this.hostElement,"yt-user-mention-suggestion-selected",{data:W,index:y.model.index})};
_.f.onSuggestionMouseMove=function(y){y.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(y.model.index)};
_.f.isSuggestionFocused=function(y,W){return y===W};
_.f.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.f.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("focused-suggestion-id-changed",this.focusedSuggestionId))};
var G0=euW;G0.prototype.focusedSuggestionIdChangedForBinding=G0.prototype.focusedSuggestionIdChangedForBinding;G0.prototype.onDomChange=G0.prototype.onDomChange;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],G0.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],G0.prototype,"focusedSuggestionIndex",void 0);_.x([_.L({readOnly:!0}),_.e("design:type",String)],G0.prototype,"focusedSuggestionId",void 0);
_.x([_.B("dom-change"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],G0.prototype,"onDomChange",null);_.x([_.H("focusedSuggestionId"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],G0.prototype,"focusedSuggestionIdChangedForBinding",null);G0=_.x([_.n6({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],G0);
_.T(G0,"yt-user-mention-suggestions-dropdown",function(){if(Mr3===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;i0i===void 0&&(i0i=document.createElement("template"));var Z=i0i;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Mr3=y}y=Mr3;return y},{mode:2});var wWT=function(){var y=_.v.apply(this,arguments)||this;y.suggestionsResponse=null;y.activeMention=null;y.selectionChangeListener=y.onSelectionChange.bind(y);y.handlesEnabled=_.O("enable_handles_in_mention_suggest_posts");y.handlesInMentionSuggestionsEnabled=_.O("handles_in_mention_suggest_posts");y.zeroPrefixMentionSuggestionEnabled=_.O("enable_zero_prefix_mention_suggestion_web");y.pendingQuery=null;y.flowNonce=null;return y};
_.R(wWT,_.v);_.f=wWT.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.f.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.f.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.f.hasSuggestions=function(y){return!!(y&&y.suggestions&&y.suggestions.length>0)};
_.f.onInput=function(){var y=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var W=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),c=this.activeMention.JSC$9101_getText().slice(-1)===" ",Z=this.activeMention.JSC$9101_getText().slice(-2,-1)===" ",G="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9101_getText().slice(-2,-1))>=
0;G=this.zeroPrefixMentionSuggestionEnabled&&G;if(this.activeMention.isCollapsed()||(W||Z||G)&&c)this.cancelActiveMention();else{var D=this.activeMention.JSC$9101_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.gp(this,"requestSuggestions",function(){y.requestSuggestions(D)},100)}}}};
_.f.onServiceRequestSent=function(y){y.stopPropagation()};
_.f.onServiceRequestCompleted=function(y){y.stopPropagation();y=y.detail.data;y.query&&(!this.pendingQuery||this.pendingQuery!==y.query)||!this.zeroPrefixMentionSuggestionEnabled&&y.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=y,this.hasSuggestions(y)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.f.onServiceRequestError=function(y){y.stopPropagation()};
_.f.onUserMentionSuggestionSelected=function(y){this.selectSuggestion(y.detail.data,y.detail.index)};
_.f.onSelectionChange=function(){if(this.activeMention){var y=_.tD(),W=this.activeMention.JSC$9101_containsRange(y);y=y&&this.containsHelper(this.dropdown,y.getContainer());W||y||this.cancelActiveMention()}};
_.f.containsHelper=function(y,W){var c;if(((c=window.ShadyDOM)==null?void 0:c.noPatch)===!0)return y.contains(W);for(;W;){if(W===y)return!0;W=W instanceof ShadowRoot?W.host:W.parentNode}return!1};
_.f.maybeStartSuggest=function(){var y=_.tD();if(y&&y.isCollapsed()){var W=y.JSC$9101_getStartNode(),c=y.JSC$9101_getStartOffset();if(W instanceof Text&&!(c<1)){var Z=W.textContent;!(Z=Z&&Z.charAt(c-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Z)<0||(this.activeMention=_.Nh(W,c-1,y.JSC$9101_getEndNode(),y.JSC$9101_getEndOffset()),this.flowNonce=Ri(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.f.updateActiveMention=function(){if(this.activeMention){var y=_.tD();y&&y.isCollapsed()&&(this.activeMention=_.Nh(this.activeMention.JSC$9101_getStartNode(),this.activeMention.JSC$9101_getStartOffset(),y.JSC$9101_getEndNode(),y.JSC$9101_getEndOffset()))}};
_.f.requestSuggestions=function(y){if(this.activeMention){var W={suggestions_query:y};this.pendingQuery=y;_.D2(this.hostElement,[this.suggestionsEndpoint,W])}};
_.f.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()};
_.f.focusPreviousSuggestion=function(y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),y.preventDefault())};
_.f.focusNextSuggestion=function(y){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),y.preventDefault())};
_.f.selectFocusedSuggestion=function(y){if(this.hasSuggestions(this.suggestionsResponse)){var W=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.g(W,UtE)&&(this.selectSuggestion(_.g(W,UtE),this.dropdown.focusedSuggestionIndex),y.preventDefault())}};
_.f.selectSuggestion=function(y,W){if(y){var c=this.activeMention;if(c){var Z=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&y.handle?_.PM(Z,"\u00a0\u2068@"+y.handle+"\u2069\u00a0"):this.handlesEnabled?_.PM(Z,"\u00a0"+y.displayName+"\u00a0"):_.PM(Z,"\u00a0@"+y.displayName+"\u00a0");hn(Z,"/channel/"+y.channelId);Z.classList.add("yt-formatted-string","yt-simple-endpoint");Z.setAttribute("spellcheck","false");c.isCollapsed()||c.JSC$9101_removeContents();c.insertNode(Z,!0);y=document.createTextNode(" ");
Z.parentNode.insertBefore(y,Z.nextSibling);window.getSelection().collapse(y,1);W={suggestionSelected:{suggestionIndex:W}};if(this.zeroPrefixMentionSuggestionEnabled){var G;W.suggestionSelected.isZeroPrefix=((G=this.suggestionsResponse)==null?void 0:G.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",W);this.cancelActiveMention();_.Z2(this.hostElement,"yt-mention-inserted")}}};
_.f.getPositionTarget=function(y){return y&&y.getBrowserRangeObject()};
_.f.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.f.onFocusedSuggestionIdChanged=function(y){var W=_.BxI(this.hostElement)[0];W&&(y.detail.value?W.setAttribute("aria-activedescendant",y.detail.value):W.removeAttribute("aria-activedescendant"))};
_.f.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.f.logGELEvent=function(y,W){y={eventType:y,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};W&&(y=Object.assign(y,W));_.$g("userMentionAutoCompleteBoxEvent",y)};
var fo=wWT;fo.prototype.onDomChange=fo.prototype.onDomChange;fo.prototype.onUserMentionSuggestionSelected=fo.prototype.onUserMentionSuggestionSelected;fo.prototype.onServiceRequestError=fo.prototype.onServiceRequestError;fo.prototype.onServiceRequestCompleted=fo.prototype.onServiceRequestCompleted;fo.prototype.onServiceRequestSent=fo.prototype.onServiceRequestSent;fo.prototype.onInput=fo.prototype.onInput;_.x([_.C(_.uO),_.e("design:type",Object)],fo.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],fo.prototype,"suggestionsEndpoint",void 0);_.x([_.L(),_.e("design:type",Object)],fo.prototype,"suggestionsResponse",void 0);_.x([_.L(),_.e("design:type",Object)],fo.prototype,"activeMention",void 0);_.x([_.jj("#dropdown"),_.e("design:type",Object)],fo.prototype,"dropdown",void 0);_.x([_.jj("#iron-dropdown"),_.e("design:type",Object)],fo.prototype,"ironDropdown",void 0);
_.x([_.B("input"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],fo.prototype,"onInput",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fo.prototype,"onServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fo.prototype,"onServiceRequestCompleted",null);
_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fo.prototype,"onServiceRequestError",null);_.x([_.B("yt-user-mention-suggestion-selected"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fo.prototype,"onUserMentionSuggestionSelected",null);
_.x([_.B("dom-change"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fo.prototype,"onDomChange",null);fo=_.x([_.n6({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],fo);
_.T(fo,"yt-user-mention-autosuggest-input",function(){if(SnT===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;dpT===void 0&&(dpT=document.createElement("template"));var Z=dpT;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);SnT=y}y=SnT;return y},{mode:2});var oA=null;
_.mD({is:"ytd-commentbox",_template:function(){if(Qz0!==void 0)return Qz0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Qz0=y},
behaviors:[_.OWa.YtHostElementBehavior,_.uO,_.Hj.YtActionHandlerBehavior,_.KA.YtComponentBehavior,_.Bj.YtRendererstamperBehavior,_.Vn3.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(y,W){return _.fq(y.entities,"aadcGuidelinesStateEntityPayload",W)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(y,W){return _.fq(y.entities,"commentboxStateEntity",W)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.RZ}},
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:_.O("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.O("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",_.qO(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(y){this.fire(y?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(y){this.set("submitButtonDisabled",void 0);this.clear();y&&this.computeIsEmojiButtonDisplayed_(y)&&(y=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&y.updateEmojiCategories()},
observePrefilledImage_:function(y,W,c){this.isValidPrefilledImage_(y,W,c)&&(this.prefilledAttachment_="image",this.prefilledImageData_=W,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(y,W){this.isValidPrefilledVideo_(y,W)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(y){y&&y.pollData&&y.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(y.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.ZN();this.focus()},
detached:function(){document.removeEventListener("tap",_.qO(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(y){y=y.detail;y=y.isCustomEmoji?y.shortcuts[0]:y.emojiId;var W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,y);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var y=_.tD();if(y){y=y.getBrowserRangeObject();for(var W=y.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return y;W=W.parentNode}}y=this.getEditableTextArea_();y=_.EM(y,y.childNodes.length);y.select();return y.getBrowserRangeObject()},
insertTextWithEmojis_:function(y,W,c){(W=this.emojiManager.createDocumentFragment(W,!0,!1,c===void 0?!0:c))&&W.childNodes.length!==0&&(y.collapsed||y.deleteContents(),c=W.lastChild,y.insertNode(W),_.uXi(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var y=_.tD();if(y){var W=y.JSC$9101_getStartNode(),c=y.JSC$9101_getEndNode();if(L1O(W)&&L1O(c)){var Z=y.JSC$9101_getStartOffset(),G;if(_.Dq&&W.nodeType===Node.ELEMENT_NODE&&(G=_.cnW(W)))_.EM(G,0).select();else{G=mt(W)?W:_.CP(W,mt);var D=mt(c)?c:_.CP(c,mt);if(G||D)if(y.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){y=!0;Z===W.length&&(y=!1);if(oA==="end"||oA==="right")y=!1;W=W.parentNode;y=[].concat(_.No(W.parentNode.childNodes)).indexOf(W)+(y?0:1);_.EM(W.parentNode,y).select()}}else G?
G.previousSibling&&G.previousSibling.length>0?_.Nh(c,y.JSC$9101_getEndOffset(),G.previousSibling,G.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),G.parentNode.insertBefore(W,G),_.Nh(c,y.JSC$9101_getEndOffset(),W,0).select()):D&&(D.nextSibling&&D.nextSibling.length>0?_.Nh(W,y.JSC$9101_getStartOffset(),D.nextSibling,1).select():(c=document.createTextNode("\u200b"),D.parentNode.insertBefore(c,D.nextSibling),_.Nh(W,y.JSC$9101_getStartOffset(),c,c.length).select()));oA=null}}else oA=
null}else oA=null},
leftKeyPressed_:function(){oA="left"},
rightKeyPressed_:function(){oA="right"},
endKeyPressed_:function(){oA="end"},
maybeDeleteChip_:function(){var y=xcO(!0);if(y){var W=_.tD(),c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();_.KG(c,W,y,y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var y=xcO(!1);if(y){var W=_.tD(),c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();_.KG(c,W,y,0).select()}},
maybeBackspaceChipWordMode_:function(y){var W=_.tD();if(W.isCollapsed()){var c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();var Z=iky(c,W,!0);Z&&(_.KG(c,W,Z,0).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(y){var W=_.tD();if(W.isCollapsed()){var c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();var Z=iky(c,W,!1);Z&&(_.KG(c,W,Z,Z.childNodes.length).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
onTap_:function(y){if(!y.defaultPrevented&&(y.currentTarget.tagName==="YTD-COMMENTBOX"&&mt(y.target)&&y.preventDefault(),this.isEmojiPickerDisplayed)){var W=this.$$("#emojis"),c=this.$$("#emoji-button"),Z=this.getEditableTextArea_();if((y=y.path?y.path:y.composedPath&&y.composedPath())&&!y.includes(W)&&!y.includes(Z)&&!y.includes(c))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(y,W,c){return y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W!==void 0&&W.encryptedBlobId!==null&&W.sourceExternalVideoId!==null&&c!==void 0&&c.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(y,W){return y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!W&&!!W.videoRenderer&&!!W.videoRenderer.videoId},
isValidPrefilledAttachment_:function(y,W,c){return this.isValidPrefilledImage_(y,W,c)||this.isValidPrefilledVideo_(y,c)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.O("enable_multi_image_post_creation")){var y=this.$$("ytd-backstage-multi-image-select-renderer");y&&y.hasImages()&&y.cancel()}else(y=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&y.cancel();(y=this.$["poll-attachment"])&&this.hasPoll_&&y.clearPollOptions();(y=this.$["image-poll-attachment"])&&this.hasImagePoll_&&y.resetPollOptions();(y=this.$["quiz-attachment"])&&this.hasQuiz_&&y.resetQuizOptions();
(y=this.$["video-link-attachment"])&&this.hasVideo_&&y.cancel();(y=this.$["access-restrictions-selector"].firstElementChild)&&y.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 _.p(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.p(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(y,W){y=dca(y,this.emojiManager,W).cloneNode(!0);for(W=y.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var c=_.gT();_.m9E(c,W);W=c.nextSibling;break;case "DIV":(c=W.lastChild)&&W.nextSibling&&_.I_(_.gT(),c);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.NL(_.gT(),W);c&&c.nodeName==="BR"&&_.to(c);c=W;W.hasChildNodes()?(W=W.firstChild,
_.s$W(c)):(W=W.nextSibling,_.to(c));break;default:W=W.nextSibling}return MFf(y)},
onAddImageError_:function(y){y.stopPropagation();this.errorMessage_=_.Lq(y.detail)},
setTextAreaValue_:function(y){y||(y="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof y==="string"&&(y={runs:[{text:y}]});W.text=y},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();oA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var y=this.getEditableTextArea_();y&&(_.EM(y,y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Nn("HTML_DIR")==="rtl"){var y=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";y.setAttribute("dir",W)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var y;return kHg((y=this.$["quiz-attachment"])==null?void 0:y.getExplanationText())||kHg(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var y=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(y=this.emojiInput.retrieveTextBeforeRange(W))}this.insertText_(y,!0);this.updateCharCount_();this.setSubmitButton_();y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=y.scrollHeight>y.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:y})},
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(y){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(y)},
onPasteEmoji_:function(y){y.preventDefault();y.stopImmediatePropagation();y=y.clipboardData.getData("text/plain");this.insertText_(y,!1,!1)},
insertText_:function(y,W,c){W=W===void 0?!1:W;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&y){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(W&&this.emojiInput.offsetStartOfRangeBy(Z,y.length),this.insertTextWithEmojis_(Z,y,c),vUH(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,y),this.updateSuggestionOffset_(Z)))}},
setSubmitButton_:function(){if(this.data){var y=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",W=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(y||W){var c=this.getTextAreaValue().trim();W=c===this.previousText_;c=!c||this.aboveCharLimit_;y&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(c=this.aboveCharLimit_);this.submitButtonDisabled=
W||c||!this.getTextLength();y&&_.O("enable_post_scheduling")&&(this.submitButtonDisabled=W&&!this.scheduledPublishTimeSec_||c)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.v$,computeCreationBoxClass_:function(y){return y?"focused":"not-focused"},
computeFooterMessageClass_:function(y,W){return W?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(y,W){return W?W:y},
computeFooterMessageHidden_:function(y,W){return!W&&!y},
computePlaceholderText_:function(y,W,c){return(c==="video"||c==="image")&&(y==null?0:y.prefilledPlaceholderText)?y==null?void 0:y.prefilledPlaceholderText:W==="poll"||W==="image-poll"?y==null?void 0:y.pollPostPlaceholderText:W==="quiz"?y==null?void 0:y.quizPostPlaceholderText:W==="image"?y==null?void 0:y.imagePostPlaceholderText:y==null?void 0:y.placeholderText},
computeHideAttachmentButtons_:function(y,W,c,Z){return y===void 0?!1:Z&&this.getSimpleString(Z)===this.getSimpleString(y.rateLimitErrorMessage)?!0:W!=="none"||c!=="none"||!y.videoLinkButton&&!y.pollButton&&!y.imagePollButton&&!y.quizButton&&!y.imageButton},
computeHideDismissableAttachment_:function(y){return y!=="image"&&y!=="video"},
computeHasVideo_:function(y){return y==="video"},
computeHasImage_:function(y){return y==="image"},
computeHasPoll_:function(y){return y==="poll"},
computeHasImagePoll_:function(y){return y==="image-poll"},
computeHasQuiz_:function(y){return y==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(y){return y&&y.backstageAttachment?y.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!y.backstageAttachment.quizRenderer&&!y.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(y){if(this.isValidPrefilledAttachment_(y.purpose,y.prefilledImageData,y.backstageAttachment))return y.backstageAttachment},
computeEditAttachment_:function(y){if(this.computePrefilledContent_(y)===void 0)return y.backstageAttachment},
computeAuthorThumbnailDimension_:function(y,W){return y&&!W?24:40},
computeImageUploadEndpoint_:function(y){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",y)},
computeRateLimitErrorCommands_:function(y){var W,c;return y==null?void 0:(W=y.advancedTierFeatures)==null?void 0:(c=W.rateLimit)==null?void 0:c.rateLimitCommands},
computeIsBackstageComment_:function(y){return!(!y||y!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(y){return this.get("submitButton.buttonRenderer.serviceEndpoint",y)||this.get("replyButton.buttonRenderer.serviceEndpoint",y)||this.get("postButton.buttonRenderer.serviceEndpoint",y)},
computeSubmitButtonOverride:function(){if(_.O("web_modern_buttons")){var y,W;return{segmentedPosition:this.dropdownSchedulePanel_||!((y=this.data)==null?0:(W=y.postOptionsMenu)==null?0:W.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.O("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(y,W){y=this.get("submitButton.buttonRenderer",y)||this.get("replyButton.buttonRenderer",y)||this.get("postButton.buttonRenderer",y);W&&(y=W);y&&(y=Object.assign({},y),y.serviceEndpoint=void 0,y.isDisabled=this.submitButtonDisabled);return y},
computeHasExternalLinksAccess_:function(y){if(_.O("enable_rfa_external_links")){var W,c,Z;return(Z=y==null?void 0:(W=y.advancedTierFeatures)==null?void 0:(c=W.externalLinks)==null?void 0:c.allowExternalLinks)!=null?Z:!0}return!0},
computeIsEmojiButtonDisplayed_:function(y){return y.emojiButton&&y.emojiPicker&&y.emojiPicker.emojiPickerRenderer&&y.emojiPicker.emojiPickerRenderer.categories?y.emojiPicker.emojiPickerRenderer.categories.find(function(W){return W.emojiPickerCategoryRenderer?W.emojiPickerCategoryRenderer.emojiIds&&W.emojiPickerCategoryRenderer.emojiIds.length>0:W.emojiPickerUpsellCategoryRenderer?W.emojiPickerUpsellCategoryRenderer.emojis&&W.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(y){return y.charLimit?y.charLimit:null},
computeDropdownSchedulingPanel_:function(y,W){if(y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&W)return W},
computeInlineSchedulingPanel_:function(y,W){if(y==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&W)return W},
computeHideAuthorThumbnail_:function(y,W){return y||this.computeUseIdentityChip_(W)},
computeHideIdentityChipRenderer_:function(y,W){return y||!this.computeUseIdentityChip_(W)},
computeUseIdentityChip_:function(y){return!!y&&!!y.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(y){var W,c,Z,G;(y==null?0:(W=y.detail)==null?0:(c=W.endpoint)==null?0:c.ypcGetOffersEndpoint)||(y==null?0:(Z=y.detail)==null?0:(G=Z.endpoint)==null?0:G.ypcOffersEndpoint)?(y.stopPropagation(),_.D2(this,[y.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",y)&&(y.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(y){this.addedAttachment="video";this.selectedVideoId_=y.detail.videoId},
commentboxStateEntityChanged_:function(y){var W=this;(y==null?void 0:y.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(y==null?void 0:y.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){W.focus()})},
onYtServiceRequestSent_:function(y,W){if(W.actions)for(y=_.z(W.actions),W=y.next();!W.done;W=y.next())W.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(y){this.isLoading=!1;var W=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",y),c,Z,G,D=y==null?void 0:(c=y.detail)==null?void 0:(Z=c.data)==null?void 0:(G=Z.actionResult)==null?void 0:G.commentboxStateEntityKey;if(W)this.errorMessage_=W;else if(D){var Y;this.dismissData_=y==null?void 0:(Y=y.detail)==null?void 0:Y.data;this.commentboxStateKey_=D}else{this.clear();var u;this.fire("yt-commentbox-dismiss",y==null?void 0:(u=y.detail)==
null?void 0:u.data)}},
onYtServiceRequestError_:function(y){y.stopPropagation();this.isLoading=!1;var W,c;if(((W=this.data)==null?void 0:W.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(W=this.get("detail.error.args",y)||[],W.length>1&&W[1].message){this.handlePostsServiceRequestError_(W[1].message);return}(y=this.get("detail.error.message",y))?this.errorMessage_=this.data.errorMessage||_.Lq(y):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(y){if(_.O("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var W=_.z(this.rateLimitErrorCommands),c=W.next();!c.done;c=W.next())if(c=c.value,c.errorLabel===y){_.jl(c.command,this.hostElement);return}this.errorMessage_=_.Lq(y)},
submitIfNotBackstagePost_:function(y){if(!this.isBackstagePost)this.onSubmit_(y)},
onSubmit_:function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V;return _.m(function(Q){switch(Q.nextAddress){case 1:y.stopPropagation();if(!W.serviceEndpoint||!W.isValidInput_())return Q.return();if(W.shouldShowPostAadcNotice_())return W.showPostAadcNotice_(),Q.return();if(W.shouldShowCommentAadcNotice_())return W.showCommentAadcNotice_(),Q.return();if(!(W.$$("ytd-backstage-multi-image-select-renderer")&&W.hasImage_&&_.O("enable_multi_image_post_creation"))){Q.jumpTo(2);break}c=W.$$("ytd-backstage-multi-image-select-renderer");
return _.n(Q,c.getAllUploadStatuses(),3);case 3:Z=Q.yieldResult;if(!Z)return Q.return();G=_.z(Z);for(D=G.next();!D.done;D=G.next())if(Y=D.value,Y.encryptedBlobId===void 0)return W.isLoading=!1,t=u=void 0,W.errorMessage_=(t=(u=W.imageUploadEndpoint_)==null?void 0:u.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?t:null,Q.return();return Q.return(W.submitForm_(void 0,void 0,void 0,void 0,c.images,W.taggedVideoId_));case 2:if(!W.hasImagePoll_||!W.$["image-poll-attachment"]){Q.jumpTo(4);
break}return _.n(Q,W.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:b=Q.yieldResult;if(!b)return Q.return();r=_.z(b);for(F=r.next();!F.done;F=r.next())if(K=F.value,!K.encryptedBlobId)return W.isLoading=!1,l=void 0,W.errorMessage_=(l=W.data.errorMessage)!=null?l:null,Q.return();case 4:P=(N=W.$$("ytd-backstage-image-select-renderer"))&&N.uploadPromise(),V=W.getSharedPostId_(),P?P.then(function(){W.submitForm_.apply(W,_.No(_.Cf.apply(0,arguments)))}).catch(function(S){W.isLoading=!1;
W.errorMessage_=_.Lq(S.message)}):W.selectedVideoId_?W.submitForm_(void 0,W.selectedVideoId_):W.prefilledAttachment_==="image"?W.submitForm_(W.prefilledImageData_.encryptedBlobId,void 0,void 0,W.prefilledImageData_.sourceExternalVideoId,void 0,W.taggedVideoId_):W.prefilledAttachment_==="video"?W.submitForm_(void 0,W.data.backstageAttachment.videoRenderer.videoId):V?W.submitForm_(void 0,void 0,V):W.taggedVideoId_!==void 0?W.submitForm_(void 0,void 0,void 0,void 0,void 0,W.taggedVideoId_):W.submitForm_(),
_.F2(Q)}})},
openSchedulingPanel:function(y){y&&y.scheduleButton&&y.scheduleButton.buttonRenderer&&(this.scheduleButton_=y.scheduleButton.buttonRenderer);y&&y.dateTimePicker&&this.set("data.schedulingDateTimePicker",y.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(y){y.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(y){y.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(y){y.stopPropagation();y.detail.alertMessage&&(this.alertMessage_=y.detail.alertMessage)},
onImageSelected_:function(y){y.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(y){y.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(y){y.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(y.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(y){y.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(y){var W=this.$["video-link-attachment"];W&&W.onLaunchVideoPicker(y)},
onAttachmentDismiss_:function(y){y.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"&&_.O("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.O("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 y;if(this.addedAttachment==="image-poll"&&((y=this.$["image-poll-attachment"])==null||!y.isValid()))return!1;var W;if(this.addedAttachment==="quiz"&&((W=this.$["quiz-attachment"])==null||!W.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;y=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(y=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")y=!0;return y||!!this.getTextAreaValue().trim()},
submitForm_:function(y,W,c,Z,G,D){var Y=this.getTextAreaValue().trim(),u={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Y===this.previousText_&&(Y=void 0);Y!==void 0&&(u.comment_text=Y);this.isLoading=!0;D!=void 0&&(u.tagged_video_id=D);y?(u.image_blob_id=y,this.imagePreviewCoordinates_&&(u.image_preview_coordinates=this.imagePreviewCoordinates_)):W?u.attached_video_id=W:c?u.shared_post_id=c:G&&G.length>0&&(u.images_data=G.map(function(t){return{encryptedBlobId:t.encryptedBlobId,
previewCoordinates:t.previewCoordinates}}));
Z&&(u.source_video_id=Z);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(u.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(u.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(u.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.O("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(u.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.O("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(u.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.D2(this,[this.serviceEndpoint,u])},
onIsInputFocusChanged_:function(y,W){y?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(y){var W=this.getEditableTextArea_();[].concat(_.No(y.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(Z){W.appendChild(document.createTextNode(Z))})});
y.preventDefault()},
preventDefault_:function(y){y.preventDefault()},
onSuggestionInsert_:function(y){this.insertTextWithEmojis_(y.detail.range,y.detail.text)},
onEmojiSuggestionClick_:function(y){this.emojiInput.insertSuggestion(y.detail)},
computeSubmitButtonClass_:function(y,W){return!W||y?"":"with-options"},
updateSuggestionOffset_:function(y){if(this.emojiInput&&_.p(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,c=y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-c)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;y=y.getBoundingClientRect().left-W;_.p(this.emojiInput).querySelector("#dropdown").style.marginLeft=y+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(y){if(_.O("enable_post_scheduling")&&this.data&&this.data.purpose){y=y.detail;if(Math.floor(Date.now()/1E3)>=y)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var W=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(W)||W!==y?this.scheduledPublishTimeSec_=y:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=y;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var y=["image-button","image-poll-button","poll-button"];_.O("enable_quiz_creation")&&y.push("quiz-button");_.O("auto_convert_posts_video_tag")||y.push("video-link-button");return y},
getButtonRenderer:function(y,W){if(y)switch(W){case "video-link-button":var c;return((c=y.videoLinkButton)==null?void 0:c.buttonRenderer)||void 0;case "image-button":var Z;return((Z=y.imageButton)==null?void 0:Z.buttonRenderer)||void 0;case "poll-button":var G;return((G=y.pollButton)==null?void 0:G.buttonRenderer)||void 0;case "image-poll-button":var D;return((D=y.imagePollButton)==null?void 0:D.buttonRenderer)||void 0;case "quiz-button":var Y;return((Y=y.quizButton)==null?void 0:Y.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var y;return(y=this.data)==null||!y.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var y,W;return!((y=this.data)==null||!y.openAadcDialog)&&!((W=this.aadcGuidelinesState_)==null||!W.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Nn("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var y;((y=this.data)==null?0:y.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.EW("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(y){y.clickTrackingParams&&_.Zz().clickCommand(y);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.GG(this,"yt-close-popup-action")},
onHideIdentityChip:function(y){var W;this.set("data.placeholderText",(W=y.hideIdentityChipAction)==null?void 0:W.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var qn5=function(){var y=_.v.apply(this,arguments)||this;y.isOpen=!1;y.modern=_.O("web_modern_buttons");y.roundedContainer=!0;y.dropdownButtonOverride=_.O("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;y.inPopupContainer=!1;y.isCommentboxLoading=!1;var W=["image-button","image-poll-button","poll-button"];_.O("enable_quiz_creation")&&W.push("quiz-button");_.O("auto_convert_posts_video_tag")||W.push("video-link-button");y.attachmentButtonIds=W;y.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 y};
_.R(qn5,_.v);_.f=qn5.prototype;_.f.computeButtonOverride=function(){var y;return((y=this.data)==null?0:y.postOptionsMenu)&&_.O("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.f.configureRendererStamper=function(){var y={"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]]"}}}}};_.O("auto_convert_posts_video_tag")||(y["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return y};
_.f.ready=function(){var y=this,W=_.p(this.hostElement).querySelector("#placeholder-area"),c=function(Z){y.onOpen(Z)};
W.addEventListener("tap",c);W.addEventListener("keypress",c)};
_.f.showButtonEduTooltip=function(){var y,W,c,Z,G,D,Y;if(_.O("enable_quiz_creation")&&((y=this.data)==null?0:(W=y.quizButton)==null?0:(c=W.buttonRenderer)==null?0:(Z=c.hint)==null?0:(G=Z.hintRenderer)==null?0:(D=G.content)==null?0:(Y=D.bubbleHintRenderer)==null?0:Y.text)&&(_.at.getInstance(),y=xP(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(y==null?void 0:
y.length)>0)){this.ytComponentBehavior.resolveCommand(y[0],{form:{element:this.quizButton}});return}var u;if((u=this.data)==null?0:u.imagePollButtonTooltip)if(_.at.getInstance(),u=xP(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(u==null?void 0:u.length)>0){this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.imagePollButton}});return}var t;_.O("enable_multi_image_post_creation")&&
((t=this.data)==null?0:t.multiImageButtonTooltip)&&(_.at.getInstance(),t=xP(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(t==null?void 0:t.length)>0&&this.ytComponentBehavior.resolveCommand(t[0],{form:{element:this.imageButton}}))};
_.f.onCreatePollAction=function(y){_.g(y,vpT)&&(this.JSC$13476_commentbox.addedAttachment="poll",this.openDialog())};
_.f.onAddVideoLinkAction=function(y){if(_.g(y,LS0))this.JSC$13476_commentbox.onAddVideoLink(y)};
_.f.onShowSchedulingPanelCommand=function(y){(y=_.g(y,XP5))&&this.openSchedulingPanel(y)};
_.f.onCreateImagePollCommand=function(y){_.g(y,rAi)&&(this.JSC$13476_commentbox.openImagePollComponent(),this.openDialog())};
_.f.onCreateQuizCommand=function(y){_.g(y,FuE)&&(this.JSC$13476_commentbox.openQuizComponent(),this.openDialog())};
_.f.openSchedulingPanel=function(y){_.O("enable_post_scheduling")&&(this.openDialog(),this.JSC$13476_commentbox.openSchedulingPanel(y))};
_.f.onCreateCommentAction=function(y){this.get("createCommentAction.contents",y)&&(this.JSC$13476_commentbox.clear(),this.closeDialog())};
_.f.onOpen=function(y){y instanceof KeyboardEvent&&y.type==="keypress"&&y.keyCode!==13&&y.keyCode!==32||(this.data.prepareAccountEndpoint?_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.f.onYtCommentboxDismiss=function(){this.closeDialog()};
_.f.onYtCommentboxLoadingStart=function(y){y.stopPropagation();this.isCommentboxLoading=!0};
_.f.onYtCommentboxLoadingEnd=function(y){y.stopPropagation();this.isCommentboxLoading=!1};
_.f.onYtVideoLinkButtonCancel=function(y){y.stopPropagation();this.onOpen(y)};
_.f.onYtVideoLinkSelected=function(y){y.stopPropagation();this.onOpen(y)};
_.f.onIronSelect=function(y){y.stopPropagation();y.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=y.detail.item.value&&(this.accessRestriction?(this.accessRestriction=y.detail.item.value,this.onOpen(y)):this.accessRestriction=y.detail.item.value)};
_.f.onYtNavigate=function(y){this.get("detail.endpoint.backstageImageUploadEndpoint",y)&&(this.JSC$13476_commentbox.addedAttachment="image",this.JSC$13476_commentbox.submitButtonDisabled=!0,this.onOpen(y))};
_.f.onRequestSent=function(y){if(_.O("web_button_rework"))for(var W=_.z(y.detail),c=W.next();!c.done;c=W.next())_.g(c.value,p_2)&&(this.JSC$13476_commentbox.addedAttachment="image",this.JSC$13476_commentbox.submitButtonDisabled=!0,this.onOpen(y))};
_.f.openDialog=function(){this.JSC$13476_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13476_commentbox.focus()};
_.f.onPopupClosed=function(){_.at.getInstance()};
_.f.computeCreationDisabled=function(y){return!!y};
_.f.computeIsCreationDialog=function(y){return!!y&&y==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.f.computeDisabledPostButton=function(y){if(!y)return null;y.isDisabled=!0;return y};
_.f.computeIsCreationDialogWithHeader=function(y){return!this.inPopupContainer&&!!y&&!!y.authorText&&y.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.f.computeIsHeaderHidden=function(y,W){return!y||W};
_.f.computeDropdownRendererClasses=function(y){return y?["text-secondary-style"]:[]};
_.f.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var y=_.p(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;y&&y.reset()};
var Dh=qn5;Dh.prototype.onPopupClosed=Dh.prototype.onPopupClosed;Dh.prototype.onRequestSent=Dh.prototype.onRequestSent;Dh.prototype.onYtNavigate=Dh.prototype.onYtNavigate;Dh.prototype.onIronSelect=Dh.prototype.onIronSelect;Dh.prototype.onYtVideoLinkSelected=Dh.prototype.onYtVideoLinkSelected;Dh.prototype.onYtVideoLinkButtonCancel=Dh.prototype.onYtVideoLinkButtonCancel;Dh.prototype.onYtCommentboxLoadingEnd=Dh.prototype.onYtCommentboxLoadingEnd;Dh.prototype.onYtCommentboxLoadingStart=Dh.prototype.onYtCommentboxLoadingStart;
Dh.prototype.onYtCommentboxDismiss=Dh.prototype.onYtCommentboxDismiss;Dh.prototype.showButtonEduTooltip=Dh.prototype.showButtonEduTooltip;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Dh.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Dh.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Dh.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Dh.prototype,"isOpen",void 0);_.x([_.L({computed:"computeButtonOverride(data)"}),_.e("design:type",Object)],Dh.prototype,"buttonOverride",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Dh.prototype,"modern",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Dh.prototype,"roundedContainer",void 0);_.x([_.L(),_.e("design:type",Object)],Dh.prototype,"dropdownButtonOverride",void 0);_.x([_.L({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.e("design:type",Boolean)],Dh.prototype,"creationDisabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Dh.prototype,"enableCreationBox",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.e("design:type",Boolean)],Dh.prototype,"isCreationDialog",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Dh.prototype,"inPopupContainer",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.e("design:type",Boolean)],Dh.prototype,"isCreationDialogWithHeader",void 0);_.x([_.L(),_.e("design:type",Object)],Dh.prototype,"accessRestriction",void 0);
_.x([_.L({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.e("design:type",Array)],Dh.prototype,"dropdownRendererClasses",void 0);_.x([_.L(),_.e("design:type",Object)],Dh.prototype,"isCommentboxLoading",void 0);_.x([_.L(),_.e("design:type",Array)],Dh.prototype,"attachmentButtonIds",void 0);_.x([_.jj("#image-button"),_.e("design:type",HTMLElement)],Dh.prototype,"imageButton",void 0);
_.x([_.jj("#image-poll-button"),_.e("design:type",HTMLElement)],Dh.prototype,"imagePollButton",void 0);_.x([_.jj("#quiz-button"),_.e("design:type",HTMLElement)],Dh.prototype,"quizButton",void 0);_.x([_.jj("#commentbox"),_.e("design:type",Object)],Dh.prototype,"JSC$13476_commentbox",void 0);_.x([_.H("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dh.prototype,"showButtonEduTooltip",null);
_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onYtCommentboxDismiss",null);_.x([_.B("yt-commentbox-loading-start"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onYtCommentboxLoadingStart",null);
_.x([_.B("yt-commentbox-loading-end"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onYtCommentboxLoadingEnd",null);_.x([_.B("yt-video-link-button-cancel"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onYtVideoLinkButtonCancel",null);
_.x([_.B("yt-video-link-selected"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onYtVideoLinkSelected",null);_.x([_.B("iron-select"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onIronSelect",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onYtNavigate",null);
_.x([_.B("yt-service-request-sent-button-renderer"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dh.prototype,"onRequestSent",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dh.prototype,"onPopupClosed",null);Dh=_.x([_.d({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Dh);
_.T(Dh,"ytd-backstage-post-dialog-renderer",function(){if(hci!==void 0)return hci;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return hci=y},{mode:1});var kU5;var jqJ;var yCm=function(){return _.v.apply(this,arguments)||this};
_.R(yCm,_.v);_.f=yCm.prototype;_.f.computeHeartButtonStyle=function(y){return(y==null?0:y.styleType)?y.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onYtButtonTap=function(){if(this.data.isEnabled){var y=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(y=this.getEndpoint(y))&&(_.O("web_ytd_creator_heart_renderer_command_resolver_ks")?_.D2(this.hostElement,[y]):_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}}))}else(y=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(y)};
_.f.toggle=function(y){this.set("data.isHearted",y!==void 0?y:!this.data.isHearted)};
_.f.getEndpoint=function(y){var W,c=(W=this.data)==null?void 0:W.heartEndpoint,Z;W=(Z=this.data)==null?void 0:Z.unheartEndpoint;if(c&&W)return y?W:c};
_.f.computeButtonAccessibility=function(y,W){var c,Z,G=y==null?void 0:(c=y.heartedAccessibility)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label,D,Y;y=y==null?void 0:(D=y.unheartedAccessibility)==null?void 0:(Y=D.accessibilityData)==null?void 0:Y.label;return W?G:y};
_.dJ.Object.defineProperties(yCm.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 y;return _.O("kevlar_system_icons")&&!((y=this.data)==null||!y.isHearted)}}});
var z0=yCm;z0.prototype.onYtButtonTap=z0.prototype.onYtButtonTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],z0.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],z0.prototype,"data",void 0);_.x([_.A("data.isHearted"),_.e("design:type",Object),_.e("design:paramtypes",[])],z0.prototype,"heartTooltip",null);
_.x([_.A("data.isHearted"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],z0.prototype,"iconFilled",null);_.x([_.L({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.e("design:type",String)],z0.prototype,"buttonAccessibility",void 0);_.x([_.L({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.e("design:type",String)],z0.prototype,"heartButtonStyle",void 0);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],z0.prototype,"onYtButtonTap",null);z0=_.x([_.d({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],z0);
_.T(z0,"ytd-creator-heart-renderer",function(){if(jqJ!==void 0)return jqJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return jqJ=y},{mode:1});var WPV=function(){var y=_.v.apply(this,arguments)||this;y.hasCreatorReply=!1;y.buttonOverrides={size:"S",iconPosition:"icon-only"};y.replyButtonOverrides={size:"S",type:"text"};y.forceIconButton=!_.O("web_modern_buttons");y.modern=_.O("web_modern_buttons");y.buttonTooltipPosition="bottom";y.systemIcons=_.O("kevlar_system_icons");y.replyDialog=null;return y};
_.R(WPV,_.v);_.f=WPV.prototype;
_.f.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]]"}}}}}};
_.f.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.f.dataChange=function(){this.replyDialog&&_.p(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var y,W,c;this.isLiked=this.systemIcons&&!!((y=this.data)==null?0:(W=y.likeButton)==null?0:(c=W.toggleButtonRenderer)==null?0:c.isToggled)};
_.f.computeShowVoteCountBeginning=function(y,W){return y===void 0||W===void 0?!0:y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.f.computeShowVoteCountEnd=function(y,W){return y===void 0||W===void 0?!0:y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.f.computeShowCommentCount=function(y,W){return y===void 0||W===void 0?!0:y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!W&&this.ytRendererBehavior.getSimpleString(W)!=="0"};
_.f.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.f.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.f.showReplyDialog=function(y){y&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.p(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=y,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.f.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.f.onRequestSent=function(y){if(_.O("web_button_rework")){y=_.z(y.detail);for(var W=y.next();!W.done;W=y.next())(W=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",W.value))&&this.showReplyDialog(W)}};
_.f.onYtNavigate=function(y){var W,c;(y=(W=_.g(y.detail.endpoint,_.JkV))==null?void 0:(c=W.dialog)==null?void 0:c.commentReplyDialogRenderer)&&this.showReplyDialog(y)};
_.f.onYtServiceRequestSent=function(y,W){y.stopPropagation();if(W.actions)for(y=0;y<W.actions.length;y++){var c=_.g(W.actions[y],TaE);c&&this.handleUpdateCommentVoteAction(c)}};
_.f.handleUpdateCommentVoteAction=function(y){this.voteCount=y.voteCount||_.Lq("0");y.voteStatus==="LIKE"?this.JSC$13487_ytdDislikeToggleButtonRenderer.toggle(!1):y.voteStatus==="DISLIKE"?this.JSC$13487_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13487_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13487_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.f.computeReplyButtonHidden=function(y){return y};
_.f.computeReplyButtonBeginning=function(y){return(y==null?0:y.replyButton)&&y.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?y.replyButton:void 0};
_.f.computeReplyButtonEnd=function(y){return(y==null?0:y.replyButton)&&y.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?y.replyButton:void 0};
_.f.computeActionButtonStyle=function(y){return(y==null?0:y.style)?y.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.f.onYtToggleButton=function(y){var W,c;this.isLiked=this.systemIcons&&!!((W=y.detail)==null?0:(c=W.actions)==null?0:c.like)};
var Y1=WPV;Y1.prototype.onYtToggleButton=Y1.prototype.onYtToggleButton;Y1.prototype.onButtonTooltipPositionChanged=Y1.prototype.onButtonTooltipPositionChanged;Y1.prototype.onYtServiceRequestSent=Y1.prototype.onYtServiceRequestSent;Y1.prototype.onYtNavigate=Y1.prototype.onYtNavigate;Y1.prototype.onRequestSent=Y1.prototype.onRequestSent;Y1.prototype.onYtCommentboxDismiss=Y1.prototype.onYtCommentboxDismiss;Y1.prototype.dataChange=Y1.prototype.dataChange;
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Y1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"voteCount",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"commentCount",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"replyThumbnail",void 0);
_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"hasCreatorReply",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Y1.prototype,"enableCreationBox",void 0);_.x([_.L({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.e("design:type",String)],Y1.prototype,"actionButtonsStyle",void 0);_.x([_.L({computed:"computeReplyButtonBeginning(data)"}),_.e("design:type",Object)],Y1.prototype,"replyButtonBeginning",void 0);
_.x([_.L({computed:"computeReplyButtonEnd(data)"}),_.e("design:type",Object)],Y1.prototype,"replyButtonEnd",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"buttonOverrides",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"replyButtonOverrides",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"forceIconButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Y1.prototype,"useCommentIcon",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Y1.prototype,"modern",void 0);_.x([_.L(),_.e("design:type",Object)],Y1.prototype,"buttonTooltipPosition",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Y1.prototype,"systemIcons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Y1.prototype,"isLiked",void 0);_.x([_.jj("ytd-button-renderer"),_.e("design:type",Object)],Y1.prototype,"ytdReplyButtonRenderer",void 0);
_.x([_.jj("#like-button"),_.e("design:type",Object)],Y1.prototype,"JSC$13487_ytdLikeToggleButtonRenderer",void 0);_.x([_.jj("#dislike-button"),_.e("design:type",Object)],Y1.prototype,"JSC$13487_ytdDislikeToggleButtonRenderer",void 0);_.x([_.jj("#reply-dialog"),_.e("design:type",HTMLElement)],Y1.prototype,"replyDialogElement",void 0);_.x([_.jj("#reply-button"),_.e("design:type",HTMLElement)],Y1.prototype,"replyButtonElement",void 0);
_.x([_.jj("#reply-button-end"),_.e("design:type",HTMLElement)],Y1.prototype,"replyButtonEndElement",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Y1.prototype,"dataChange",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Y1.prototype,"onYtCommentboxDismiss",null);
_.x([_.B("yt-service-request-sent-button-renderer"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Y1.prototype,"onRequestSent",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Y1.prototype,"onYtNavigate",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],Y1.prototype,"onYtServiceRequestSent",null);_.x([_.H("buttonTooltipPosition"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Y1.prototype,"onButtonTooltipPositionChanged",null);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Y1.prototype,"onYtToggleButton",null);
Y1=_.x([_.d({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Y1);
_.T(Y1,"ytd-comment-action-buttons-renderer",function(){if(kU5!==void 0)return kU5;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kU5=y},{mode:1});var cCQ;var Zwi=function(){return _.v.apply(this,arguments)||this};
_.R(Zwi,_.v);Zwi.prototype.focus=function(){_.p(this.hostElement).querySelector("#commentbox").focus()};
var m7=Zwi;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],m7.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],m7.prototype,"zeroStepChannelCreationRenderer",void 0);m7=_.x([_.d({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],m7);
_.T(m7,"ytd-comment-dialog-renderer",function(){if(cCQ!==void 0)return cCQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return cCQ=y},{mode:1});var GNm;var fOW=function(){return _.v.apply(this,arguments)||this};
_.R(fOW,_.v);var sr=fOW;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sr.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sr.prototype,"data",void 0);sr=_.x([_.d({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],sr);
_.T(sr,"ytd-comment-inline-thumbnail-renderer",function(){if(GNm!==void 0)return GNm;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return GNm=y},{mode:1});var ooE;var Dy5;var zLJ=function(){var y=_.v.apply(this,arguments)||this;y.isOpen=!1;return y};
_.R(zLJ,_.v);_.f=zLJ.prototype;_.f.dataChanged=function(){this.isOpen=!1};
_.f.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.f.focus=function(){this.JSC$13497_commentbox.focus()};
_.f.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.f.openDialog=function(){this.isOpen=!0;this.JSC$13497_commentbox.focus();this.JSC$13497_commentbox.maybeHeightChanged()};
var uD=zLJ;uD.prototype.onYtCommentboxDismiss=uD.prototype.onYtCommentboxDismiss;uD.prototype.dataChanged=uD.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uD.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],uD.prototype,"isOpen",void 0);_.x([_.jj("#commentbox"),_.e("design:type",Object)],uD.prototype,"JSC$13497_commentbox",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uD.prototype,"dataChanged",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],uD.prototype,"onYtCommentboxDismiss",null);uD=_.x([_.d({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],uD);
_.T(uD,"ytd-comment-reply-dialog-renderer",function(){if(Dy5!==void 0)return Dy5;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Dy5=y},{mode:1});var Y_2;var myE=function(){return _.v.apply(this,arguments)||this};
_.R(myE,_.v);_.dJ.Object.defineProperties(myE.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType;return c?"yt-icons:"+c.toLowerCase():null}}});
var tj=myE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tj.prototype,"data",void 0);_.x([_.L(),_.A("data.icon"),_.e("design:type",Object),_.e("design:paramtypes",[])],tj.prototype,"icon",null);tj=_.x([_.d({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],tj);
_.T(tj,"ytd-pinned-comment-badge-renderer",function(){if(Y_2!==void 0)return Y_2;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Y_2=y},{mode:1});var sqV;var uIm={},t1V={input:!0,meta:!0,br:!0,link:!0,img:!0},no=null;uIm.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(){no==null&&(no=document.createElement("tp-yt-paper-tooltip"),no.offset=8,no.fitToVisibleBounds=!0)},
onMouseOver_:function(y){if(y=_.CP(y.target,function(G){return G==this||G.getAttribute&&G.getAttribute("shared-tooltip-text")}.bind(this),!0)){var W=y.getAttribute("shared-tooltip-text");
if(W){var c=this,Z=null;y!=this&&(y.tagName.toLowerCase()in t1V?c=y.parentElement:c=y,y.id&&(Z=y.id));this.polymerController.createTooltipIfRequired_();if(no.parentElement!=c||no.for!=Z)(0,_.ed)(no).textContent=W,_.p(c).appendChild(no),no.for=Z,no.animationDelay=this.polymerController.sharedTooltipAnimationDelay,no.position=this.polymerController.sharedTooltipPosition}}}};var XQ=function(){return _.v.apply(this,arguments)||this};
_.R(XQ,_.v);XQ.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]]"}}}}}};
XQ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
XQ.prototype.colorChanged=function(){var y,W,c,Z=(y=this.data)==null?void 0:(W=y.color)==null?void 0:(c=W.basicColorPaletteData)==null?void 0:c.foregroundBodyColor;Z&&(this.rgbBadgeColor=_.$$(Z));_.p(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
XQ.prototype.tooltipChanged=function(){var y;((y=this.data)==null?0:y.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
var bD=XQ;bD.prototype.tooltipChanged=bD.prototype.tooltipChanged;bD.prototype.colorChanged=bD.prototype.colorChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(uIm.YtSharedTooltipBehavior),_.e("design:type",Object)],bD.prototype,"ytSharedTooltipBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],bD.prototype,"data",void 0);_.x([_.L({value:"#4285F4"}),_.e("design:type",String)],bD.prototype,"rgbBadgeColor",void 0);_.x([_.H("data.color"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],bD.prototype,"colorChanged",null);_.x([_.H("data.tooltip"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],bD.prototype,"tooltipChanged",null);
bD=_.x([_.d({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],bD);
_.T(bD,"ytd-sponsor-comment-badge-renderer",function(){if(sqV!==void 0)return sqV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sqV=y},{mode:1});var no2;var XtV;var rG=function(){var y=_.v.apply(this,arguments)||this;y.defaultIconToFilled=!_.O("kevlar_fill_comment_chip_icon_killswitch");return y};
_.R(rG,_.v);rG.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
rG.prototype.dataChanged=function(){if(this.data){var y,W;((y=this.data.chipColorPalette)==null?0:y.backgroundColor)&&((W=this.data.chipColorPalette)==null?0:W.foregroundTitleColor)&&_.wM(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.KZ(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.KZ(this.data.chipColorPalette.foregroundTitleColor)});var c;((c=this.data)==null?0:c.command)?(_.wM(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.wM(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}};
rG.prototype.onTap=function(){var y;if(this.data&&(y=this.data)!=null&&y.command){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.command)}};
rG.prototype.getIconSize=function(){return _.O("kevlar_fill_comment_chip_icon_killswitch")?24:12};
var FQ=rG;FQ.prototype.onTap=FQ.prototype.onTap;FQ.prototype.dataChanged=FQ.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],FQ.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.uO),_.e("design:type",Object)],FQ.prototype,"ironA11yKeysBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],FQ.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],FQ.prototype,"basePriceText",void 0);_.x([_.L(),_.e("design:type",Object)],FQ.prototype,"chipIcon",void 0);_.x([_.L(),_.e("design:type",Object)],FQ.prototype,"defaultIconToFilled",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],FQ.prototype,"dataChanged",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],FQ.prototype,"onTap",null);
FQ=_.x([_.n6({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],FQ);
_.T(FQ,"yt-pdg-comment-chip-renderer",function(){if(XtV===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;no2===void 0&&(no2=document.createElement("template"));var Z=no2;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);XtV=y}y=XtV;return y},{mode:2});var bwV=function(){var y=_.v.apply(this,arguments)||this;y.isReply=!1;y.isCreatorReply=!1;y.useSmallAvatarsEngagementPanelOnly=_.O("small_avatars_for_comments_ep");y.useSmallAvatars=_.O("small_avatars_for_comments");y.editDialog=null;y.hasPendingRequest=!1;y.linkedBadgeEl=null;y.shouldShowReadMoreInitially=!1;y.JSC$13517_spinnerEl=null;y.attachedResolver=_.px();return y};
_.R(bwV,_.v);_.f=bwV.prototype;
_.f.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.pinnedCommentBadge":{id:"pinned-comment-badge",mapping:{pinnedCommentBadgeRenderer:"ytd-pinned-comment-badge-renderer"}},"data.sponsorCommentBadge":{id:"sponsor-comment-badge",mapping:{sponsorCommentBadgeRenderer:"ytd-sponsor-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",
mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer",commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.f.contentTextChanged=function(){var y;(y=this.expander)==null||y.reset()};
_.f.attached=function(){this.attachedResolver.resolve()};
_.f.detached=function(){this.editDialog=null};
_.f.dataChanged=function(){if(this.data&&(this.hasPendingRequest=!1,this.editDialog=null,this.linkedBadgeEl&&(this.linkedCommentBadge.removeChild(this.linkedBadgeEl),this.linkedBadgeEl=null),this.data.hiddenByDefault&&(this.hostElement.hidden=!0),this.data.actions))for(var y=0,W=this.data.actions.length;y<W;y++)this.openEditDialog(_.g(this.data.actions[y],SpT))};
_.f.hasPendingRequestChanged=function(){!this.hasPendingRequest||this.editDialog||this.JSC$13517_spinnerEl||(this.JSC$13517_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.p(this.hostElement).appendChild(this.JSC$13517_spinnerEl));this.JSC$13517_spinnerEl&&(this.JSC$13517_spinnerEl.active=this.hasPendingRequest)};
_.f.backgroundExtendedDetailsChanged=function(){var y,W;((y=this.data)==null?0:(W=y.backgroundExtendedDetails)==null?0:W.backgroundColorArgb)?(y={"--ytd-comment-paid-background-color":_.KZ(this.data.backgroundExtendedDetails.backgroundColorArgb),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"},_.wM(this.hostElement,y)):_.wM(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.f.linkedCommentBadgeChanged=function(){var y=this,W;if((W=this.data)!=null&&W.linkedCommentBadge){this.linkedBadgeEl||(this.linkedBadgeEl=document.createElement("ytd-badge-supported-renderer"));this.linkedBadgeEl.topStandaloneBadge=this.data.linkedCommentBadge;this.linkedCommentBadge.appendChild(this.linkedBadgeEl);if(!_.O("disable_pause_on_linked_comment_nav"))try{var c=_.HF();c&&c.pause()}catch(Z){}this.attachedResolver.promise.then(this.afterNextRender).then(function(){var Z,G=(Z=_.U().resolve(_.xN(_.h7)))==
null?void 0:Z.getCurrentPage();G&&G.getScrollTop()===0&&G.setScrollTop(y.hostElement.offsetTop+y.hostElement.offsetHeight-document.documentElement.clientHeight+32)})}};
_.f.onShow=function(){_.JE("cmv",void 0,"wn_comments")};
_.f.onYtNavigate=function(y){y=y.detail.endpoint;this.openEditDialog(_.g(y,_.VeZ)||_.g(y,_.COT))};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null;_.wM(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.f.onYtCommentboxResize=function(y){var W;(y==null?0:(W=y.detail)==null?0:W.height)&&_.wM(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":y.detail.height+"px"})};
_.f.onYtServiceRequestSent=function(y,W){y.stopPropagation();y=W==null?void 0:W.endpoint;W=_.O("enable_profile_cards_on_comments")&&(_.g(y,YUT)||_.g(y,lEi)||_.g(y,esT)||_.g(y,_.$I)||_.g(y,_.$x));if(_.g(y,cAV)||W)this.hasPendingRequest=!1;else{var c;if(_.g(y,W_V)||_.g(y,cIT)||(c=_.g(y,Ex))==null||!c.clientActions||_.g(y,Wzi))this.hasPendingRequest=!0}};
_.f.onAuthorThumbnailClicked=function(){var y=this;if(_.O("enable_profile_cards_on_comments")){var W;(W=this.data)!=null&&W.authorEndpoint&&this.componentBehavior.resolveCommand(this.data.authorEndpoint,{commandController:{onSuccess:function(c,Z){y.onAuthorEndpointSuccess(Z)},
onServerError:function(c,Z){_.Rs(new _.ul("Failed to resolve the command",Z))}}})}};
_.f.onAuthorEndpointSuccess=function(y){if(y=y==null?void 0:y.popupCommand){this.componentBehavior.resolveCommand(y,{form:{element:this.authorThumbnail}});this.logScreenVe();y=y==null?void 0:y.clickTrackingParams;var W=_.EL();y&&W&&_.Zz().graftServerVe(y,W)}};
_.f.logScreenVe=function(){_.wR(_.Zz(),66557)};
_.f.onYtServiceRequestCompleted=function(){this.hasPendingRequest=!1};
_.f.openEditDialog=function(y){this.data&&y&&y.dialog&&(this.editDialog=y.dialog,this.JSC$13517_editReplyDialogContainer?this.JSC$13517_editReplyDialogContainer.openDialog():this.JSC$13517_editCommentDialogContainer&&this.JSC$13517_editCommentDialogContainer.focus())};
_.f.computeAuthorTextClass=function(y){return y.authorIsChannelOwner?"channel-owner":""};
_.f.computeIsBodyHidden=function(y,W){return!!y||W};
_.f.computeCommentStyle=function(y){return y.style?y.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onYtExpanderMoreTapped=function(){var y,W,c=(y=this.data)==null?void 0:(W=y.expandButton)==null?void 0:W.buttonRenderer;c&&this.ytRendererBehavior.logExplicitClick(c)};
_.f.afterNextRender=function(){var y=this;return new Promise(function(W){_.Lv(y,W)})};
_.dJ.Object.defineProperties(bwV.prototype,{optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.O("web_watch_compact_comments")||_.O("optimal_reading_width_comments_ep")&&this.engagementPanel}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.voteCount)||_.Lq("0")}},
replyThumbnail:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.currentUserReplyThumbnail}},
hasCreatorReply:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return!!(((y=this.data)==null?0:(W=y.creatorReply)==null?0:W.commentRenderer)||((c=this.data)==null?0:c.containsCreatorReply))}},
authorTextCommand:{configurable:!0,enumerable:!0,get:function(){var y;if(_.O("enable_profile_cards_on_comments")&&((y=this.data)==null?0:y.channelPageEndpoint)){var W;return(W=this.data)==null?void 0:W.channelPageEndpoint}var c;return(c=this.data)==null?void 0:c.authorEndpoint}},
hidePaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null?0:y.paidCommentChipRenderer)}}});
var Ur=bwV;Ur.prototype.onYtExpanderMoreTapped=Ur.prototype.onYtExpanderMoreTapped;Ur.prototype.onYtServiceRequestCompleted=Ur.prototype.onYtServiceRequestCompleted;Ur.prototype.onYtServiceRequestSent=Ur.prototype.onYtServiceRequestSent;Ur.prototype.onYtCommentboxResize=Ur.prototype.onYtCommentboxResize;Ur.prototype.onYtCommentboxDismiss=Ur.prototype.onYtCommentboxDismiss;Ur.prototype.onYtNavigate=Ur.prototype.onYtNavigate;Ur.prototype.linkedCommentBadgeChanged=Ur.prototype.linkedCommentBadgeChanged;
Ur.prototype.backgroundExtendedDetailsChanged=Ur.prototype.backgroundExtendedDetailsChanged;Ur.prototype.hasPendingRequestChanged=Ur.prototype.hasPendingRequestChanged;Ur.prototype.dataChanged=Ur.prototype.dataChanged;Ur.prototype.contentTextChanged=Ur.prototype.contentTextChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ur.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ur.prototype,"componentBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ur.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Rx.YtVisibilityBehavior),_.e("design:type",Object)],Ur.prototype,"ytVisibilityBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ur.prototype,"data",void 0);_.x([_.L({computed:"computeCommentStyle(data)",reflectToAttribute:!0}),_.e("design:type",String)],Ur.prototype,"commentStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ur.prototype,"isReply",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ur.prototype,"isCreatorReply",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ur.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ur.prototype,"useSmallAvatars",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Ur.prototype,"engagementPanel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data","engagementPanel"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ur.prototype,"optimalReadingWidthComments",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ur.prototype,"voteCount",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ur.prototype,"replyThumbnail",null);_.x([_.L(),_.e("design:type",Object)],Ur.prototype,"editDialog",void 0);
_.x([_.A("data","data.containsCreatorReply"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ur.prototype,"hasCreatorReply",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ur.prototype,"authorTextCommand",null);_.x([_.L(),_.e("design:type",Object)],Ur.prototype,"hasPendingRequest",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Ur.prototype,"noActions",void 0);_.x([_.L(),_.e("design:type",Object)],Ur.prototype,"linkedBadgeEl",void 0);
_.x([_.L(),_.e("design:type",Object)],Ur.prototype,"shouldShowReadMoreInitially",void 0);_.x([_.jj("ytd-expander"),_.e("design:type",Object)],Ur.prototype,"expander",void 0);_.x([_.jj("#linked-comment-badge"),_.e("design:type",HTMLElement)],Ur.prototype,"linkedCommentBadge",void 0);_.x([_.jj("#body"),_.e("design:type",HTMLElement)],Ur.prototype,"body",void 0);_.x([_.jj("#author-thumbnail > a"),_.e("design:type",HTMLElement)],Ur.prototype,"authorThumbnail",void 0);
_.x([_.jj("ytd-comment-dialog-renderer"),_.e("design:type",Object)],Ur.prototype,"JSC$13517_editCommentDialogContainer",void 0);_.x([_.jj("ytd-comment-reply-dialog-renderer"),_.e("design:type",Object)],Ur.prototype,"JSC$13517_editReplyDialogContainer",void 0);_.x([_.H("data.contentText"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ur.prototype,"contentTextChanged",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ur.prototype,"dataChanged",null);_.x([_.H("hasPendingRequest"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ur.prototype,"hasPendingRequestChanged",null);_.x([_.H("data.backgroundExtendedDetails"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ur.prototype,"backgroundExtendedDetailsChanged",null);
_.x([_.H("data.linkedCommentBadge"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ur.prototype,"linkedCommentBadgeChanged",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ur.prototype,"onYtNavigate",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ur.prototype,"onYtCommentboxDismiss",null);
_.x([_.B("yt-commentbox-resize"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ur.prototype,"onYtCommentboxResize",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],Ur.prototype,"onYtServiceRequestSent",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ur.prototype,"hidePaidCommentChipRenderer",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ur.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-expander-more-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ur.prototype,"onYtExpanderMoreTapped",null);Ur=_.x([_.d({is:"ytd-comment-renderer",disableElementRegistration:!0})],Ur);
_.T(Ur,"ytd-comment-renderer",function(){if(ooE!==void 0)return ooE;var y=document.createElement("template");_.E(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-renderer--\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-renderer"></div>\n<div id="linked-comment-badge" hidden="[[!data.linkedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-comment-renderer">\n  <div id="author-thumbnail" class="style-scope ytd-comment-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" on-click="onAuthorThumbnailClicked" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-comment-renderer">\n    <div id="header" class="style-scope ytd-comment-renderer">\n      <div id="pinned-comment-badge" hidden="[[!data.pinnedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n      <div id="header-author" class="style-scope ytd-comment-renderer">\n        <h3 class="style-scope ytd-comment-renderer">\n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(authorTextCommand)]]" data="[[authorTextCommand]]" hidden="[[data.authorCommentBadge]]">\n            <yt-formatted-string class$="[[computeAuthorTextClass(data)]] style-scope ytd-comment-renderer" respect-lang-dir="" text="[[data.authorText]]">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <span id="sponsor-comment-badge" hidden="[[!data.sponsorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <yt-formatted-string class="published-time-text style-scope ytd-comment-renderer" link-inherit-color="" text="[[data.publishedTimeText]]">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-comment-renderer"></span>\n      </div>\n    </div>\n    <div id="comment-content" class="style-scope ytd-comment-renderer">\n      \n      <ytd-comment-inline-thumbnail-renderer id="inline-thumbnail-renderer" data="[[data.videoThumbnail.commentVideoThumbnailRenderer]]" hidden="[[!data.videoThumbnail]]" class="style-scope ytd-comment-renderer">\n      </ytd-comment-inline-thumbnail-renderer>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-renderer">\n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[data.paidCommentChipRenderer.pdgCommentChipRenderer]]" hidden="[[hidePaidCommentChipRenderer]]" class="style-scope ytd-comment-renderer">\n      </yt-pdg-comment-chip-renderer>\n      <yt-formatted-string id="content-text" slot="content" split-lines="" text="[[data.contentText]]" user-input="" class="style-scope ytd-comment-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-comment-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-comment-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n  </div>\n    <ytd-comment-action-buttons-renderer id="action-buttons" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" reply-thumbnail="[[replyThumbnail]]" vote-count="[[voteCount]]" class="style-scope ytd-comment-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n  <div id="action-menu" class="style-scope ytd-comment-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-renderer"></div>\n\n');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ooE=y},{mode:1});var rCQ=function(){var y=_.v.apply(this,arguments)||this;y.hasSpam=!1;y.showButton=!0;y.actionMap={"yt-approve-comment-action":"approveCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-load-next-continuation":"onLoadNextContinuation"};y.nextContinuation={contentsArray:"data.contents",continuationType:"commentModerationPanelContinuation",requestPath:"/comment_service_ajax?action_get_comment_replies=1&pbj=1",
usePost:!0};return y};
_.R(rCQ,_.v);_.f=rCQ.prototype;_.f.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}}},"data.contents":{id:"held-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}},"data.likelySpamContents":{id:"likely-spam-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}}}};
_.f.ready=function(){var y=this,W=_.p(this.hostElement).querySelector("#moderation-contents");W&&W.addEventListener("scroll",function(){y.onPanelScroll()})};
_.f.dataChanged=function(){this.expander.collapsed=!0};
_.f.computeSettingsButton=function(y){var W,c,Z;return(Z=y==null?void 0:(W=y.expander)==null?void 0:(c=W.commentModerationPanelExpanderRenderer)==null?void 0:c.settingsButton)==null?void 0:Z.buttonRenderer};
_.f.onPanelScroll=function(){var y=this;_.gp(this,"onPanelScroll",function(){var W=_.p(y.hostElement).querySelector("#moderation-contents");if(W){W=W.scrollTop===0;var c,Z;_.i0((Z=(c=y.expander.children[1])==null?void 0:c.offsetParent)!=null?Z:y.hostElement,"scrolling",W)}},50)};
_.f.onNextContinuationDataUpdated=function(y,W){y=W.continuationData.response;var c,Z;if(!((c=y.continuationContents)==null?0:(Z=c.commentModerationPanelContinuation)==null?0:Z.contents)){var G,D;if((G=y.continuationContents)==null?0:(D=G.commentModerationPanelContinuation)==null?0:D.likelySpamContents){var Y;this.data.spamHeaderText=(Y=y.continuationContents)==null?void 0:Y.commentModerationPanelContinuation.spamHeaderText;var u;this.set("data.likelySpamContents",(u=y.continuationContents)==null?
void 0:u.commentModerationPanelContinuation.likelySpamContents);this.nextContinuation={contentsArray:"data.likelySpamContents",continuationType:"commentModerationPanelContinuation",responseContentsKey:"likelySpamContents",usePost:!0};this.hasSpam=!0}}};
_.f.computeHasContinuation=function(y){return!!y};
_.f.hideSpamDivider=function(y){return!y||y&&this.data.contents.length===0};
_.f.computeSpamHeaderText=function(y,W){return y?W:_.Lq("")};
_.f.triggerContinuation=function(){this.hostElement.querySelector("yt-next-continuation").trigger();this.showButton=!1};
_.f.approveCommentAction=function(y){(y=this.get("approveCommentAction.commentId",y))&&this.removeComment(y)};
_.f.banAuthorAction=function(y){(y=this.get("banAuthorAction.commentId",y))&&this.removeComment(y)};
_.f.removeCommentAction=function(y){(y=this.get("removeCommentAction.commentId",y))&&this.removeComment(y)};
_.f.hideReportedCommentAction=function(y){(y=this.get("hideReportedCommentAction.commentId",y))&&this.removeComment(y)};
_.f.removeComment=function(y){var W=this.commentIdToHeldCommentsIndex(y);y=this.commentIdToLikelySpamCommentsIndex(y);W>=0?this.splice("data.contents",W,1):y>=0&&this.splice("data.likelySpamContents",y,1);this.data.contents&&this.data.contents.length!==0||this.data.likelySpamContents&&this.data.likelySpamContents.length!==0||_.Z2(this.hostElement,"ytd-comment-moderation-panel-empty")};
_.f.commentIdToHeldCommentsIndex=function(y){var W;if((W=this.data)==null||!W.contents)return-1;for(W=0;W<this.data.contents.length;W++)if(this.data.contents[W].commentRenderer.commentId===y)return W;return-1};
_.f.commentIdToLikelySpamCommentsIndex=function(y){var W;if((W=this.data)==null||!W.likelySpamContents)return-1;for(W=0;W<this.data.likelySpamContents.length;W++)if(this.data.likelySpamContents[W].commentRenderer.commentId===y)return W;return-1};
var $1=rCQ;$1.prototype.onNextContinuationDataUpdated=$1.prototype.onNextContinuationDataUpdated;$1.prototype.dataChanged=$1.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],$1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],$1.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],$1.prototype,"ytNextContinuationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$1.prototype,"data",void 0);_.x([_.L({computed:"computeSettingsButton(data)"}),_.e("design:type",Object)],$1.prototype,"settingsButton",void 0);_.x([_.L(),_.e("design:type",Object)],$1.prototype,"hasSpam",void 0);_.x([_.L({computed:"computeHasContinuation(data.continuations)"}),_.e("design:type",Boolean)],$1.prototype,"hasContinuation",void 0);
_.x([_.L(),_.e("design:type",Object)],$1.prototype,"showButton",void 0);_.x([_.jj("#expander"),_.e("design:type",Object)],$1.prototype,"expander",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$1.prototype,"dataChanged",null);_.x([_.B("yt-next-continuation-data-updated"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],$1.prototype,"onNextContinuationDataUpdated",null);
$1=_.x([_.d({is:"ytd-comment-moderation-panel-renderer",disableElementRegistration:!0})],$1);
_.T($1,"ytd-comment-moderation-panel-renderer",function(){if(ApT!==void 0)return ApT;var y=document.createElement("template");_.E(y,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-moderation-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-expander id="expander" align-auto="" always-toggleable="" collapsed-height="0" reversed="" class="style-scope ytd-comment-moderation-panel-renderer">\n  <div class="more-button style-scope ytd-comment-moderation-panel-renderer" slot="more-button" on-click="triggerContinuation">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-more" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div class="less-button style-scope ytd-comment-moderation-panel-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-less" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="moderation-contents" slot="content" class="style-scope ytd-comment-moderation-panel-renderer">\n    <div id="held-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="likely-spam-divider" hidden="[[hideSpamDivider(hasSpam)]]" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <yt-formatted-string id="likely-spam-header" text="[[computeSpamHeaderText(data.likelySpamContents, data.spamHeaderText)]]" class="style-scope ytd-comment-moderation-panel-renderer">\n    </yt-formatted-string>\n    <div id="likely-spam-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="continuation" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n  </div>\n</ytd-expander>\n');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ApT=y},{mode:1});_.bv("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var FPJ=function(){var y=_.v.apply(this,arguments)||this;y.roundedContainer=!0;y.JSC$13540_handleOpenPostCommentDialogActionAfterStamp=!1;y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return y};
_.R(FPJ,_.v);_.f=FPJ.prototype;
_.f.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.moderationPanel":{id:"moderation-panel",mapping:{commentModerationPanelRenderer:"ytd-comment-moderation-panel-renderer"}},"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.f.onStampFinished=function(){this.JSC$13540_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){var y=_.p(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");y?y.openDialog():this.JSC$13540_handleOpenPostCommentDialogActionAfterStamp=!0};
_.f.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.f.computeHideBorder=function(){return this.isInEngagementPanel};
_.f.computeIsCompact=function(){return this.isInEngagementPanel};
_.f.computeUsesCompactLockup=function(y){return y==="BACKSTAGE_SURFACE_TYPE_HOME"||y==="BACKSTAGE_SURFACE_TYPE_SEARCH"||y==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||y==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||y==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||y==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.f.computeUsesFullLockup=function(){var y,W=(y=this.data)==null?void 0:y.post,c;y=(c=_.g(W,FSW))==null?void 0:c.surface;var Z;c=(Z=_.g(W,$KW))==null?void 0:Z.originalPost;var G;if(Z=y||((G=_.g(c,FSW))==null?void 0:G.surface))return!this.computeUsesCompactLockup(Z)&&this.useUpdatedRepostUi;var D;return((D=_.g(W,$KW))==null?void 0:D.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.dJ.Object.defineProperties(FPJ.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var y,W;return((W=_.g((y=this.data)==null?void 0:y.post,FSW))==null?void 0:W.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.useUpdatedRepostUi}}});
var Ko=FPJ;Ko.prototype.onYtCommentModerationPanelEmpty=Ko.prototype.onYtCommentModerationPanelEmpty;Ko.prototype.onStampFinished=Ko.prototype.onStampFinished;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ko.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Ko.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ko.prototype,"roundedContainer",void 0);_.x([_.L({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Ko.prototype,"hideBorder",void 0);_.x([_.L({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Ko.prototype,"isCompact",void 0);
_.x([_.L({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Ko.prototype,"usesFullLockup",void 0);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ko.prototype,"onStampFinished",null);
_.x([_.B("ytd-comment-moderation-panel-empty"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ko.prototype,"onYtCommentModerationPanelEmpty",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ko.prototype,"isInEngagementPanel",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ko.prototype,"useUpdatedRepostUi",null);
Ko=_.x([_.d({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Ko);
_.T(Ko,"ytd-backstage-post-thread-renderer",function(){if(Qki!==void 0)return Qki;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Qki=y},{mode:1});var Uyi;var Or=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(Or,_.v);Or.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
Or.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var y=this.data.thumbnail.thumbnails;this.isDarkTheme&&(y=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(y=_.h3(y,24,void 0,"height"))?y:void 0}};
Or.prototype.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
Or.prototype.computeHasText=function(){var y;return!((y=this.data)==null||!y.text)};
_.dJ.Object.defineProperties(Or.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Jn(this.bannerImageUrl))+'");'}}});
var gG=Or;gG.prototype.computeHasText=gG.prototype.computeHasText;gG.prototype.computeBannerImageUrl=gG.prototype.computeBannerImageUrl;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],gG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],gG.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],gG.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],gG.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",String)],gG.prototype,"bannerImageUrl",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.e("design:type",Boolean)],gG.prototype,"hasText",void 0);_.x([_.H("data","isDarkTheme"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gG.prototype,"computeBannerImageUrl",null);
_.x([_.H("data.text"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gG.prototype,"computeHasText",null);_.x([_.A("bannerImageUrl"),_.e("design:type",Object),_.e("design:paramtypes",[])],gG.prototype,"bannerStyle",null);gG=_.x([_.d({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],gG);
_.T(gG,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Uyi!==void 0)return Uyi;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Uyi=y},{mode:1});var $yQ;var KPZ=function(){return _.v.apply(this,arguments)||this};
_.R(KPZ,_.v);var RA=KPZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],RA.prototype,"data",void 0);RA=_.x([_.d({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],RA);
_.T(RA,"ytd-backstage-zero-state-renderer",function(){if($yQ!==void 0)return $yQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return $yQ=y},{mode:1});var Ow2;var gom=function(){return _.v.apply(this,arguments)||this};
_.R(gom,_.v);var lD=gom;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],lD.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",String)],lD.prototype,"icon",void 0);lD=_.x([_.d({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],lD);
_.T(lD,"ytd-post-filter-zero-state-renderer",function(){if(Ow2!==void 0)return Ow2;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Ow2=y},{mode:1});var RL8;var lOE={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Eo3=function(){return _.v.apply(this,arguments)||this};
_.R(Eo3,_.v);Eo3.prototype.configureRendererStamper=function(){return lOE};
var Er=Eo3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Er.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Er.prototype,"rendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Er.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",String)],Er.prototype,"icon",void 0);Er=_.x([_.d({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Er);
_.T(Er,"ytd-post-scheduling-zero-state-renderer",function(){if(RL8!==void 0)return RL8;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return RL8=y},{mode:1});var N3V;var Nf=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return y};
_.R(Nf,_.v);Nf.prototype.onTabsActivate=function(y){this.data&&this.data.tabs&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[y.detail.selected].navigationEndpoint})};
Nf.prototype.shouldShowTotalCount=function(y){return y&&y.totalCount!==void 0};
Nf.prototype.handleUpdatePostsTotalCountAction=function(y){var W=this.get(["data.tabs",1,"totalCount"]),c=this.get("updatePostsTotalCountAction.updateType",y);y=this.get("updatePostsTotalCountAction.number",y);W!==void 0&&c!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&y&&(c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(W)+y):c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(W)-y))};
_.dJ.Object.defineProperties(Nf.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var y=0,W=this.data.tabs.length;y<W;y++)if(this.data.tabs[y].selected)return y;return 0}}});
var IA=Nf;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],IA.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],IA.prototype,"rendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],IA.prototype,"data",void 0);_.x([_.A("data.tabs"),_.e("design:type",Number),_.e("design:paramtypes",[])],IA.prototype,"selected",null);IA=_.x([_.d({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],IA);
_.T(IA,"ytd-post-stream-filter-renderer",function(){if(N3V!==void 0)return N3V;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return N3V=y},{mode:1});var IOZ;var ptW=function(){return _.v.apply(this,arguments)||this};
_.R(ptW,_.v);var po=ptW;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],po.prototype,"kevlarBehaviors",void 0);_.x([_.L(),_.e("design:type",Object)],po.prototype,"data",void 0);po=_.x([_.d({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],po);
_.T(po,"ytd-channel-age-gate-renderer",function(){if(IOZ!==void 0)return IOZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return IOZ=y},{mode:1});var PjV;_.bv("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var JCm=function(){var y=_.v.apply(this,arguments)||this;y.data=null;return y};
_.R(JCm,_.v);JCm.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.dJ.Object.defineProperties(JCm.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?0:(W=y.title)==null?0:(c=W.runs)==null?0:c.length)?147:160}}});
var PV=JCm;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],PV.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],PV.prototype,"imageSizePx",null);PV=_.x([_.d({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],PV);
_.T(PV,"ytd-channel-owner-empty-state-renderer",function(){if(PjV!==void 0)return PjV;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return PjV=y},{mode:1});var V1V;var CjW;var QqE=function(){var y=_.v.apply(this,arguments)||this;y.boundSubmitSearch=function(){y.submitSearch()};
y.boundClearSearch=function(){y.clearSearch()};
return y};
_.R(QqE,_.v);_.f=QqE.prototype;_.f.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]]"}}}}}};
_.f.toggleClearButton=function(){this.hideClearButton=Ot1||!this.input.value};
_.f.submitOnEnterKeyUp=function(y){y.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.f.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.f.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.f.submit=function(){_.Z2(this.hostElement,"search-query-changed",this.input.value)};
var Jj=QqE;Jj.prototype.toggleClearButton=Jj.prototype.toggleClearButton;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Jj.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Jj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Jj.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Jj.prototype,"hideClearButton",void 0);_.x([_.L(),_.e("design:type",Object)],Jj.prototype,"boundSubmitSearch",void 0);_.x([_.L(),_.e("design:type",Object)],Jj.prototype,"boundClearSearch",void 0);_.x([_.jj("#input"),_.e("design:type",Object)],Jj.prototype,"input",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Jj.prototype,"toggleClearButton",null);
Jj=_.x([_.d({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Jj);
_.T(Jj,"ytd-channel-switcher-search-box-renderer",function(){if(CjW!==void 0)return CjW;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return CjW=y},{mode:1});var ACV;var hLJ=function(){var y=_.v.apply(this,arguments)||this;y.boundSubmit=function(){y.submit()};
return y};
_.R(hLJ,_.v);_.f=hLJ.prototype;_.f.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"}}}}};
_.f.ready=function(){var y=this;this.form.addEventListener("submit",function(W){return y.onSubmit(W)})};
_.f.onSubmit=function(y){y.preventDefault();return!1};
_.f.toggleClearButton=function(){this.hideClearButton=Ot1||!this.input.value};
_.f.submitOnEnterKeyUp=function(y){y.keyCode===13&&this.submit()};
_.f.submit=function(){var y=this.data.endpoint,W=(0,_.Eb.unsafeClone)(y);_.g(W,_.oW)?_.g(W,_.oW).query=this.input.value:_.g(W,_.Dl)&&(_.g(W,_.Dl).query=this.input.value);var c=_.g(W.commandMetadata,_.kT);(c==null?0:c.url)?(c.url=_.pD(c.url,"query",this.input.value),_.Z2(this.hostElement,"yt-navigate",{endpoint:W})):_.g(W,yUi)?(_.g(W,yUi).channelSwitcherQuery=this.input.value,_.U().resolve(_.i1).resolveCommand(W,{form:{element:this.hostElement}})):(y=Error("Mh`"+JSON.stringify(y)),_.OP(y))};
_.f.getUrl=function(y){return this.get("commandMetadata.webCommandMetadata.url",y)};
var VI=hLJ;VI.prototype.toggleClearButton=VI.prototype.toggleClearButton;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],VI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],VI.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],VI.prototype,"hideClearButton",void 0);
_.x([_.L(),_.e("design:type",Object)],VI.prototype,"boundSubmit",void 0);_.x([_.jj("#form"),_.e("design:type",HTMLFormElement)],VI.prototype,"form",void 0);_.x([_.jj("#input"),_.e("design:type",Object)],VI.prototype,"input",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VI.prototype,"toggleClearButton",null);VI=_.x([_.d({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],VI);
_.T(VI,"ytd-search-box-renderer",function(){if(ACV!==void 0)return ACV;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ACV=y},{mode:2});var B3E=function(){var y=_.v.apply(this,arguments)||this;y.showSearchBox=!0;return y};
_.R(B3E,_.v);B3E.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
var Co=B3E;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Co.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Co.prototype,"showSearchBox",void 0);Co=_.x([_.d({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Co);
_.T(Co,"ytd-channel-switcher-header-renderer",function(){if(V1V!==void 0)return V1V;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return V1V=y},{mode:1});var Hwi;var LPJ;var voT=function(){var y=_.v.apply(this,arguments)||this;y.isDisplayed=!0;return y};
_.R(voT,_.v);_.f=voT.prototype;_.f.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.dataChanged=function(){this.isDisplayed=!0};
_.f.computeType=function(y){return y||"UNKNOWN"};
_.f.onYtServiceRequestCompleted=function(y){y.stopPropagation();this.isDisplayed=!1};
_.f.onClose=function(){this.isDisplayed=!1};
var QI=voT;QI.prototype.onYtServiceRequestCompleted=QI.prototype.onYtServiceRequestCompleted;QI.prototype.dataChanged=QI.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],QI.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],QI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],QI.prototype,"data",void 0);
_.x([_.L({computed:"computeType(data.type)",reflectToAttribute:!0}),_.e("design:type",String)],QI.prototype,"type",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],QI.prototype,"isDisplayed",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QI.prototype,"dataChanged",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QI.prototype,"onYtServiceRequestCompleted",null);QI=_.x([_.d({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],QI);
_.T(QI,"ytd-alert-with-button-renderer",function(){if(LPJ!==void 0)return LPJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return LPJ=y},{mode:1});var dy3=function(){var y=_.v.apply(this,arguments)||this;y.noResult=!1;y.enableAlertBanner=!1;y.dismissedAlertBanner=!1;y.hideCreateChannelButton=!1;y.boundDismissAlertBanner=function(){y.dismissAlertBanner()};
y.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return y};
_.R(dy3,_.v);_.f=dy3.prototype;_.f.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.f.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.f.updateChannelSwitcherAction=function(y){var W;y=(W=_.g(y,Vm8))==null?void 0:W.page;_.g(y,Jh2)!==void 0&&(this.data=_.g(y,Jh2))};
_.f.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]]"}}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f.searchQueryChanged=function(y,W){if(this.data&&this.data.contents&&this.data.contents.length){y=[];var c=[];this.hideCreateChannelButton=this.noResult=!1;for(var Z=document.querySelectorAll("ytd-account-item-renderer"),G=_.z(Z),D=G.next();!D.done;D=G.next())D=D.value,c.push(D),D.style.display="block";this.resetRightBorder(c);if(W){this.hideCreateChannelButton=!0;for(c=1;c<this.data.contents.length;c++)if(D=this.data.contents[c],_.g(D,qfQ)){var Y=void 0,u=void 0;G=(Y=_.g(D,qfQ))==null?void 0:(u=
Y.accountName)==null?void 0:u.simpleText;u=Y=void 0;D=(Y=_.g(D,qfQ))==null?void 0:(u=Y.channelHandle)==null?void 0:u.simpleText;(Y=Z[c-1])&&G&&_.Fh(G,W)?y.push(Y):_.O("enable_handle_search_on_channel_switcher")&&Y&&D&&_.Fh(D.toString(),W.toString())?y.push(Y):Y.style.display="none"}y.length===0&&(this.noResult=!0);this.resetRightBorder(y)}}};
_.f.resetRightBorder=function(y){for(var W=0;W<y.length;W++)y[W].style.borderRight=!this.hideCreateChannelButton&&(W+2)%3===0||this.hideCreateChannelButton&&(W+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.f.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.f.setShowSearchBox=function(y){if(y&&y.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var W=0;W<y.contents.length;W++)_.g(y.contents[W],_.yQ)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.f.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.dJ.Object.defineProperties(dy3.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null?0:y.contents)}}});
var Aj=dy3;Aj.prototype.onContinuationItemsUpdated=Aj.prototype.onContinuationItemsUpdated;Aj.prototype.searchQueryChanged=Aj.prototype.searchQueryChanged;Aj.prototype.onDataChanged=Aj.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Aj.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],Aj.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Aj.prototype,"data",void 0);_.x([_.jj("ytd-channel-switcher-header-renderer"),_.e("design:type",Object)],Aj.prototype,"channelSwitcherHeaderRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],Aj.prototype,"noResult",void 0);
_.x([_.L(),_.e("design:type",Object)],Aj.prototype,"enableAlertBanner",void 0);_.x([_.L(),_.e("design:type",Object)],Aj.prototype,"dismissedAlertBanner",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Aj.prototype,"hideCreateChannelButton",void 0);_.x([_.A("data.contents"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Aj.prototype,"isLoading",null);_.x([_.L(),_.e("design:type",Object)],Aj.prototype,"boundDismissAlertBanner",void 0);
_.x([_.L({computed:"computeButtonOverride()"}),_.e("design:type",Object)],Aj.prototype,"buttonOverride",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Aj.prototype,"onDataChanged",null);_.x([_.B("search-query-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,String]),_.e("design:returntype")],Aj.prototype,"searchQueryChanged",null);
_.x([_.B("yt-next-continuation-data-updated"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Aj.prototype,"onContinuationItemsUpdated",null);Aj=_.x([_.d({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Aj);
_.T(Aj,"ytd-channel-switcher-page-renderer",function(){if(Hwi!==void 0)return Hwi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Hwi=y},{mode:1});var S_J;var T3m=function(){var y=_.v.apply(this,arguments)||this;y.buttonOverrides={size:"S",iconPosition:"icon-only"};y.replyButtonOverrides={size:"S",type:"text"};return y};
_.R(T3m,_.v);_.f=T3m.prototype;_.f.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.f.detached=function(){this.replyBox&&this.replyBox.remove()};
_.f.showReplyDialog=function(y){if(y){var W=this.replyBox;W||(W=document.createElement("ytd-comment-reply-dialog-renderer"),W.id="replybox",_.p(this.replyDialogDiv).appendChild(W));W.data=y;this.replyDialogDiv.hidden=!1;W.openDialog()}};
_.f.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.f.onYtServiceRequestSent=function(y,W){y.stopPropagation();if(W.actions)for(var c=0;c<W.actions.length;c++){var Z=_.g(W.actions[c],TaE);Z?this.handleUpdateCommentVoteAction(Z):y.target===this.heartButton&&this.toggleHeartState()}};
_.f.handleUpdateCommentVoteAction=function(y){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:y.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":y.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.f.toggleHeartState=function(){var y;(y=this.toolbarState)!=null&&y.key&&this.ytdReduxBehavior.dispatch(_.$Y("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.dJ.Object.defineProperties(T3m.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return(((y=this.toolbarState)==null?void 0:y.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(W=this.toolbarData)==null?void 0:W.likeCountLiked:(c=this.toolbarData)==null?void 0:c.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.toolbarSurface)==null?void 0:y.prepareAccountCommand)!==void 0&&!_.O("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W=_.g((y=this.toolbarSurface)==null?void 0:y.prepareAccountCommand,_.Fx),c,Z,G,D,Y,u,t,b,r;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:W!=null?W:_.g((G=this.toolbarSurface)==null?void 0:G.likeCommand,_.Fx),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.g((D=this.toolbarSurface)==null?void 0:D.unlikeCommand,_.Fx),defaultCommand:this.isVisiblyDisabled?_.g((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.Fx):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.likeInactiveTooltip,toggledTooltip:(t=this.toolbarData)==null?void 0:t.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(b=this.toolbarData)==null?void 0:b.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(r=this.toolbarSharedData)==null?void 0:r.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W=_.g((y=this.toolbarSurface)==null?void 0:y.prepareAccountCommand,_.Fx),c,Z,G,D,Y,u,t,b,r,F;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.g((G=this.toolbarSurface)==null?void 0:G.dislikeCommand,_.Fx),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:W!=null?W:_.g((D=this.toolbarSurface)==null?void 0:D.undislikeCommand,_.Fx),defaultCommand:this.isVisiblyDisabled?_.g((Y=this.toolbarSurface)==null?void 0:Y.commentDisabledActionCommand,_.Fx):void 0,defaultTooltip:(u=this.toolbarData)==null?void 0:u.dislikeInactiveTooltip,toggledTooltip:(t=this.toolbarData)==null?void 0:
t.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(b=this.toolbarSharedData)==null?void 0:b.dislikeReplyButtonA11y:(r=this.toolbarSharedData)==null?void 0:r.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(F=this.toolbarSharedData)==null?void 0:F.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W,c;if(((y=this.toolbarState)==null?void 0:y.heartState)!==void 0&&((W=this.toolbarState)==null?void 0:W.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Z,G,D,Y,u,t,b,r,F,K,l,N,P,V;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Z=this.toolbarData)==null?void 0:Z.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((G=this.toolbarState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((D=this.toolbarState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Y=this.toolbarState)==null?void 0:Y.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((u=this.toolbarState)==null?void 0:u.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.g((t=this.toolbarSurface)==null?void 0:t.heartCommand,
_.Fx),unheartEndpoint:this.isVisiblyDisabled?void 0:_.g((b=this.toolbarSurface)==null?void 0:b.unheartCommand,_.Fx),disabledEndpoint:this.isVisiblyDisabled?_.g((r=this.toolbarSurface)==null?void 0:r.commentDisabledActionCommand,_.Fx):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(F=this.toolbarData)==null?void 0:F.heartActiveTooltip,unheartedTooltip:(K=this.toolbarData)==null?void 0:K.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((l=
this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(N=this.toolbarSharedData)==null?void 0:N.unheartButtonA11y:(P=this.toolbarSharedData)==null?void 0:P.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(V=this.toolbarSharedData)==null?void 0:V.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.toolbarSurface)==null||!y.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(y=this.commentStrings)==null?void 0:y.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.g((W=this.toolbarSurface)==null?void 0:W.replyCommand,_.Fx),command:this.isVisiblyDisabled?_.g((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.Fx):void 0}}}});
var hj=T3m;hj.prototype.onYtServiceRequestSent=hj.prototype.onYtServiceRequestSent;hj.prototype.hideReplyDialogDiv=hj.prototype.hideReplyDialogDiv;_.x([_.L(),_.e("design:type",Object)],hj.prototype,"commentStrings",void 0);_.x([_.L(),_.e("design:type",Boolean)],hj.prototype,"isReply",void 0);_.x([_.L(),_.e("design:type",Object)],hj.prototype,"toolbarData",void 0);_.x([_.L(),_.e("design:type",Object)],hj.prototype,"toolbarSharedData",void 0);
_.x([_.L(),_.e("design:type",String)],hj.prototype,"toolbarStateKey",void 0);_.x([_.L(),_.e("design:type",String)],hj.prototype,"toolbarSurfaceKey",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],hj.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],hj.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.jj("#reply-dialog"),_.e("design:type",HTMLElement)],hj.prototype,"replyDialogDiv",void 0);_.x([_.jj("#replybox"),_.e("design:type",Object)],hj.prototype,"replyBox",void 0);_.x([_.jj("ytd-creator-heart-renderer"),_.e("design:type",Object)],hj.prototype,"heartButton",void 0);_.x([_.L({selector:function(y,W){return _.fq(y.entities,"engagementToolbarStateEntityPayload",W)},
selectorArgs:["toolbarStateKey"]}),_.e("design:type",Object)],hj.prototype,"toolbarState",void 0);_.x([_.L({selector:K0g,selectorArgs:["toolbarSurfaceKey"]}),_.e("design:type",Object)],hj.prototype,"toolbarSurface",void 0);_.x([_.L(),_.e("design:type",Object)],hj.prototype,"buttonOverrides",void 0);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hj.prototype,"hideReplyDialogDiv",null);
_.x([_.A("toolbarData","toolbarState"),_.e("design:type",String),_.e("design:paramtypes",[])],hj.prototype,"likeCount",null);_.x([_.A("likeCount"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],hj.prototype,"showLikeCount",null);_.x([_.A("toolbarSurface"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],hj.prototype,"isVisiblyDisabled",null);_.x([_.A("toolbarSurface"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],hj.prototype,"hasPrepareAccountCommand",null);
_.x([_.A("toolbarData","toolbarState","toolbarSurface"),_.e("design:type",Object),_.e("design:paramtypes",[])],hj.prototype,"likeToggleButtonRenderer",null);_.x([_.A("isReply","toolbarData","toolbarState","toolbarSurface"),_.e("design:type",Object),_.e("design:paramtypes",[])],hj.prototype,"dislikeToggleButtonRenderer",null);_.x([_.A("toolbarData","toolbarState","toolbarSurface"),_.e("design:type",Object),_.e("design:paramtypes",[])],hj.prototype,"creatorHeartSupportedRenderer",null);
_.x([_.A("toolbarSurface"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],hj.prototype,"hasReplyCommand",null);_.x([_.A("toolbarSurface","commentStrings","isVisiblyDisabled"),_.e("design:type",Object),_.e("design:paramtypes",[])],hj.prototype,"replyButtonRenderer",null);_.x([_.L(),_.e("design:type",Object)],hj.prototype,"replyButtonOverrides",void 0);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],hj.prototype,"onYtServiceRequestSent",null);hj=_.x([_.d({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],hj);
_.T(hj,"ytd-comment-engagement-bar",function(){if(S_J!==void 0)return S_J;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return S_J=y},{mode:1});var aO0;var xyV=function(){return _.v.apply(this,arguments)||this};
_.R(xyV,_.v);var iwQ=xyV;_.x([_.L(),_.e("design:type",Object)],iwQ.prototype,"data",void 0);iwQ=_.x([_.d({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],iwQ);
_.T(iwQ,"ytd-comment-pause-composer-renderer",function(){if(aO0!==void 0)return aO0;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return aO0=y},{mode:1});var M1i;var eLm;var wti;var BV=function(){return _.v.apply(this,arguments)||this};
_.R(BV,_.v);BV.prototype.computeState=function(y){switch(y==null?void 0:y.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"}};
BV.prototype.updateStateIdentifier=function(y){if(this.viewModel.triStateKey){var W=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.$Y("triStateButtonStateEntityPayload",W,{key:W,stateIdentifier:y}))}};
BV.prototype.onClick=function(){var y=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(){y.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){y.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.dJ.Object.defineProperties(BV.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 y;return((y=this.data)==null?void 0:y.buttonText)||""}}});
var HV=BV;_.x([_.L(),_.e("design:type",Object)],HV.prototype,"viewModel",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],HV.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],HV.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);
_.x([_.L({selector:OCt,selectorArgs:["viewModel.triStateKey"]}),_.e("design:type",Object)],HV.prototype,"triStateButtonStateEntity",void 0);_.x([_.L({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.e("design:type",String)],HV.prototype,"state",void 0);_.x([_.A("viewModel","state"),_.e("design:type",Object),_.e("design:paramtypes",[])],HV.prototype,"data",null);_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],HV.prototype,"buttonText",null);
HV=_.x([_.d({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],HV);
_.T(HV,"ytd-tri-state-button-view-model",function(){if(wti!==void 0)return wti;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return wti=y},{mode:1});var q_W=function(){var y=_.v.apply(this,arguments)||this;y.useSmallAvatars=_.O("small_avatars_for_comments");y.webWatchCompactComments=_.O("web_watch_compact_comments");y.editDialog=null;return y};
_.R(q_W,_.v);_.f=q_W.prototype;_.f.onShow=function(){_.JE("cmv",void 0,"wn_comments")};
_.f.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"}}}};
_.f.detached=function(){this.editDialog=null;this.expander.reset()};
_.f.updateBackgroundColor=function(){if(this.backgroundColor){var y={"--ytd-comment-paid-background-color":_.KZ(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.wM(this.hostElement,y)}else _.wM(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.f.resetExpander=function(){var y;(y=this.expander)==null||y.reset()};
_.f.openEditDialog=function(y){y.dialog&&(this.editDialog=y.dialog,this.JSC$13608_editReplyDialogContainer?this.JSC$13608_editReplyDialogContainer.openDialog():this.JSC$13608_editCommentDialogContainer&&this.JSC$13608_editCommentDialogContainer.focus())};
_.f.onYtNavigate=function(y){var W=y.detail.endpoint;if(W=_.g(W,_.VeZ)||_.g(W,_.COT))y.stopPropagation(),this.openEditDialog(W)};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null;_.wM(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.f.onAuthorThumbnailClicked=function(){var y=this;_.O("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(W,c){y.onAuthorThumbnailEndpointSuccess(c)},
onServerError:function(W,c){_.Rs(new _.ul("Failed to resolve the command",c))}}})};
_.f.onAuthorThumbnailEndpointSuccess=function(y){if((y=y==null?void 0:y.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(y,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();y=y==null?void 0:y.clickTrackingParams;var W=_.EL();y&&W&&_.Zz().graftServerVe(y,W)}};
_.f.logScreenVe=function(){_.wR(_.Zz(),66557)};
_.f.onYtCommentboxResize=function(y){var W;(y==null?0:(W=y.detail)==null?0:W.height)&&_.wM(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":y.detail.height+"px"})};
_.dJ.Object.defineProperties(q_W.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 y,W=(y=this.commentEntity)==null?void 0:y.author;return W&&(W.isCreator||W.isVerified||W.isArtist)?{renderer:{authorEndpoint:W.channelPageEndpoint?_.g(W.channelPageEndpoint,_.Fx):_.g(W.channelCommand,_.Fx),authorText:{runs:[{text:W.displayName}]},color:W.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:W.isArtist?{iconType:"AUDIO_BADGE"}:
W.isVerified?{iconType:W.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:W.isArtist||W.isVerified?W.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.commentEntity)==null?void 0:y.author;return W!=null&&W.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:W.sponsorBadgeUrl}]},tooltip:W.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var y;return _.g((y=this.commentSurfaceEntity)==null?void 0:y.pdgCommentChip,_.zdV)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var y;return this.voiceReplyContainerViewModel&&((y=this.voiceReplyContainerViewModel)==null?void 0:y.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var y;return _.g((y=this.commentSurfaceEntity)==null?void 0:y.voiceReplyContainerViewModel,qpV)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var y;return this.voiceReplyContainerViewModel&&(y=this.voiceReplyContainerViewModel)!=null&&y.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.commentSurfaceEntity)==null?void 0:y.commentBackgroundColor)!=null?W:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.O("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var y,W;return(((y=this.commentEntity)==null?void 0:(W=y.properties)==null?void 0:W.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var y,W;if(_.O("enable_profile_cards_on_comments")&&((y=this.commentEntity)==null?0:(W=y.author)==null?0:W.profileCardEndpoint)&&this.viewModel.allowProfileCard){var c,Z;return _.g((c=this.commentEntity)==null?void 0:(Z=c.author)==null?void 0:Z.profileCardEndpoint,_.Fx)}var G,D;return _.g((G=this.commentEntity)==null?void 0:(D=G.avatar)==null?void 0:D.endpoint,_.Fx)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var y,W;if(_.O("enable_profile_cards_on_comments")&&((y=this.commentEntity)==null?0:(W=y.author)==null?0:W.channelPageEndpoint)){var c,Z;return _.g((c=this.commentEntity)==null?void 0:(Z=c.author)==null?void 0:Z.channelPageEndpoint,_.Fx)}var G,D;return _.g((G=this.commentEntity)==null?void 0:(D=G.avatar)==null?void 0:D.endpoint,_.Fx)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G=(y=this.commentEntity)==null?void 0:(W=y.avatar)==null?void 0:(c=W.image)==null?void 0:(Z=c.sources)==null?void 0:Z[0];return G?{thumbnails:[{url:G.url,width:G.width,height:G.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentEntity)==null?0:(W=y.author)==null?0:W.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentEntity)==null?void 0:(W=y.author)==null?void 0:W.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentEntity)==null?void 0:(W=y.properties)==null?void 0:W.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var y;return _.g((y=this.commentSurfaceEntity)==null?void 0:y.publishedTimeCommand,_.Fx)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var y,W;if(((y=this.commentEntity)==null?0:y.translatedContent)&&((W=this.translateButtonState)==null?void 0:W.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var c;if((c=this.voiceReplyContainerViewModel)==null?0:c.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Z,G;return((Z=this.commentEntity)==null?void 0:(G=Z.properties)==null?void 0:G.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentSharedEntity)==null?void 0:(W=y.strings)==null?void 0:W.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.commentSharedEntity)==null?void 0:(W=y.strings)==null?void 0:W.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.commentEntity)==null||!y.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var y,W,c=(W=_.g((y=this.viewModel)==null?void 0:y.translateButton,wP0))!=null?W:{},Z,G,D,Y,u,t,b,r,F,K,l;return Object.assign({},c,{untoggledStateData:Object.assign({},c.untoggledStateData,{buttonText:(Z=this.commentEntity)==null?void 0:(G=Z.translateData)==null?void 0:G.text}),togglingStateData:Object.assign({},c.togglingStateData,{buttonText:(D=this.commentSharedEntity)==null?
void 0:(Y=D.strings)==null?void 0:Y.translatingText}),toggledStateData:Object.assign({},c.toggledStateData,{buttonText:(u=this.commentSharedEntity)==null?void 0:(t=u.strings)==null?void 0:t.seeOriginalText}),transitionCommand:((b=this.commentEntity)==null?0:b.translatedContent)?void 0:_.g((r=this.commentEntity)==null?void 0:(F=r.translateData)==null?void 0:F.translateComment,_.Fx),triStateKey:(K=this.commentEntity)==null?void 0:(l=K.properties)==null?void 0:l.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((W=_.g(_.g((y=this.toolbarSurface)==null?void 0:y.menuCommand,_.Fx),QYE))==null?void 0:(c=W.menu)==null?void 0:c.menuRenderer)||null}}});
var Lo=q_W;Lo.prototype.onYtCommentboxResize=Lo.prototype.onYtCommentboxResize;Lo.prototype.onYtCommentboxDismiss=Lo.prototype.onYtCommentboxDismiss;Lo.prototype.onYtNavigate=Lo.prototype.onYtNavigate;Lo.prototype.resetExpander=Lo.prototype.resetExpander;Lo.prototype.updateBackgroundColor=Lo.prototype.updateBackgroundColor;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],Lo.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("#author-thumbnail > button"),_.e("design:type",HTMLElement)],Lo.prototype,"authorThumbnailAnchor",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("viewModel"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Lo.prototype,"linked",null);_.x([_.A("viewModel","linked"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"linkedCommentBadge",null);_.x([_.L({reflectToAttribute:!0}),_.A("viewModel"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Lo.prototype,"pinned",null);
_.x([_.A("viewModel","pinned"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"pinnedCommentBadge",null);_.x([_.A("commentEntity","commentSharedEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"authorCommentBadge",null);_.x([_.L({reflectToAttribute:!0}),_.A("authorCommentBadge"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"hasAuthorBadge",null);
_.x([_.A("commentEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"sponsorCommentBadge",null);_.x([_.L({reflectToAttribute:!0}),_.A("sponsorCommentBadge"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"hasSponsorBadge",null);_.x([_.A("commentSurfaceEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"pdgCommentChipRenderer",null);
_.x([_.L({reflectToAttribute:!0}),_.A("voiceReplyContainerViewModel"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"hasVoiceReply",null);_.x([_.A("commentSurfaceEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"voiceReplyContainerViewModel",null);_.x([_.A("voiceReplyContainerViewModel"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"voiceReplyUnavailableText",null);_.x([_.L(),_.e("design:type",Object)],Lo.prototype,"data",void 0);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"viewModel",null);_.x([_.L({selector:function(y,W){return _.fq(y.entities,"commentSharedEntityPayload",W)},
selectorArgs:["viewModel.sharedKey"]}),_.e("design:type",Object)],Lo.prototype,"commentSharedEntity",void 0);_.x([_.L({selector:function(y,W){return _.fq(y.entities,"commentEntityPayload",W)},
selectorArgs:["viewModel.commentKey"]}),_.e("design:type",Object)],Lo.prototype,"commentEntity",void 0);_.x([_.L({selector:function(y,W){return _.fq(y.entities,"commentSurfaceEntityPayload",W)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.e("design:type",Object)],Lo.prototype,"commentSurfaceEntity",void 0);_.x([_.L({selector:K0g,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.e("design:type",Object)],Lo.prototype,"toolbarSurface",void 0);_.x([_.L({selector:OCt,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.e("design:type",Object)],Lo.prototype,"translateButtonState",void 0);
_.x([_.A("commentSurfaceEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"backgroundColor",null);_.x([_.L({reflectToAttribute:!0}),_.A("viewModel"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Lo.prototype,"optimalReadingWidthComments",null);_.x([_.jj("ytd-expander"),_.e("design:type",Object)],Lo.prototype,"expander",void 0);
_.x([_.H("backgroundColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lo.prototype,"updateBackgroundColor",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Lo.prototype,"useSmallAvatars",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Lo.prototype,"webWatchCompactComments",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("commentEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"isReply",null);
_.x([_.A("commentEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"authorThumbnailEndpoint",null);_.x([_.A("commentEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"authorNameEndpoint",null);_.x([_.A("commentEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"authorThumbnail",null);_.x([_.A("commentEntity"),_.e("design:type",String),_.e("design:paramtypes",[])],Lo.prototype,"authorTextClass",null);
_.x([_.A("commentEntity"),_.e("design:type",String),_.e("design:paramtypes",[])],Lo.prototype,"authorChannelName",null);_.x([_.A("commentEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"publishedTime",null);_.x([_.A("commentSurfaceEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"publishedTimeCommand",null);
_.x([_.A("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"contentText",null);_.x([_.H("contentText"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lo.prototype,"resetExpander",null);_.x([_.A("commentEntity"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Lo.prototype,"shouldShowReadMoreInitially",null);
_.x([_.A("commentSharedEntity"),_.e("design:type",String),_.e("design:paramtypes",[])],Lo.prototype,"expandText",null);_.x([_.A("commentSharedEntity"),_.e("design:type",String),_.e("design:paramtypes",[])],Lo.prototype,"collapseText",null);_.x([_.A("commentEntity"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Lo.prototype,"shouldShowTranslateButton",null);
_.x([_.A("commentEntity","commentSharedEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"translateButton",null);_.x([_.A("toolbarSurface"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lo.prototype,"overflowMenuRenderer",null);_.x([_.L(),_.e("design:type",Object)],Lo.prototype,"editDialog",void 0);_.x([_.jj("ytd-comment-dialog-renderer"),_.e("design:type",Object)],Lo.prototype,"JSC$13608_editCommentDialogContainer",void 0);
_.x([_.jj("ytd-comment-reply-dialog-renderer"),_.e("design:type",Object)],Lo.prototype,"JSC$13608_editReplyDialogContainer",void 0);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Lo.prototype,"onYtNavigate",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Lo.prototype,"onYtCommentboxDismiss",null);
_.x([_.B("yt-commentbox-resize"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Lo.prototype,"onYtCommentboxResize",null);Lo=_.x([_.d({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Lo);
_.T(Lo,"ytd-comment-view-model",function(){if(eLm!==void 0)return eLm;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return eLm=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var kNT=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_modern_buttons");y.isWatchGrid=_.O("kevlar_watch_grid");y.buttonOverrides={style:"call-to-action"};y.JSC$13625_spinnerEl=null;y.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return y};
_.R(kNT,_.v);_.f=kNT.prototype;_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.f.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"data.teaserContents":{id:"teaser-replies",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"},
continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.f.attached=function(){this.isShowRepliesVisible=!0};
_.f.created=function(){this.domRepeatInitialCount=10};
_.f.dataChanged=function(){var y=this.expanderContents;y&&(y.hidden=!0);this.isLoading=!1};
_.f.onContentsDomChange=function(){this.domRepeatInitialCount=_.p(this.hostElement).querySelectorAll("ytd-comment-renderer").length};
_.f.onRetrieveLocation=function(y,W){W.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);y.stopPropagation()};
_.f.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.f.isLoadingChanged=function(){this.isLoading&&!this.JSC$13625_spinnerEl&&(this.JSC$13625_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.p(this.expanderContents).appendChild(this.JSC$13625_spinnerEl));this.JSC$13625_spinnerEl&&(this.JSC$13625_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var y;(y=this.contents)==null||y.classList.remove("reloading")}};
_.f.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var y=_.g(this.data.viewReplies,_.RU);y&&this.ytRendererBehavior.logExplicitClick(y)};
_.f.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var y=_.g(this.data.hideReplies,_.RU);y&&this.ytRendererBehavior.logExplicitClick(y)};
_.f.isShowMoreChanged=function(){var y=_.p(this.hostElement).querySelector("#expander-contents");y&&(y.hidden=this.isShowRepliesVisible)};
_.f.computeAlign=function(){if(this.modern){var y;return!((y=this.data)==null?0:y.viewRepliesCreatorThumbnail)}};
_.dJ.Object.defineProperties(kNT.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.contents,c;return!((c=this.data)==null||!c.continuations)||!!W&&W.length>0&&!!W[W.length-1].continuationItemRenderer}}});
var vV=kNT;vV.prototype.isShowMoreChanged=vV.prototype.isShowMoreChanged;vV.prototype.isLoadingChanged=vV.prototype.isLoadingChanged;vV.prototype.triggerFirstContinuation=vV.prototype.triggerFirstContinuation;vV.prototype.onRetrieveLocation=vV.prototype.onRetrieveLocation;vV.prototype.dataChanged=vV.prototype.dataChanged;_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],vV.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],vV.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vV.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],vV.prototype,"modern",void 0);
_.x([_.L(),_.e("design:type",Boolean)],vV.prototype,"isLoading",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],vV.prototype,"isShowRepliesVisible",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],vV.prototype,"useNewFormatting",void 0);_.x([_.L({value:10}),_.e("design:type",Number)],vV.prototype,"domRepeatInitialCount",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],vV.prototype,"isWatchGrid",void 0);
_.x([_.L(),_.e("design:type",Object)],vV.prototype,"buttonOverrides",void 0);_.x([_.jj("#expander-contents"),_.e("design:type",HTMLElement)],vV.prototype,"expanderContents",void 0);_.x([_.jj("yt-next-continuation"),_.e("design:type",Object)],vV.prototype,"continuation",void 0);_.x([_.jj("ytd-continuation-item-renderer"),_.e("design:type",Object)],vV.prototype,"continuationItemRenderer",void 0);_.x([_.jj("#contents"),_.e("design:type",HTMLElement)],vV.prototype,"contents",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vV.prototype,"dataChanged",null);_.x([_.A("data.continuations","data.contents"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],vV.prototype,"hasContinuation",null);_.x([_.B("yt-retrieve-location"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],vV.prototype,"onRetrieveLocation",null);
_.x([_.B("yt-expander-more-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vV.prototype,"triggerFirstContinuation",null);_.x([_.H("isLoading"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vV.prototype,"isLoadingChanged",null);_.x([_.H("isShowRepliesVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vV.prototype,"isShowMoreChanged",null);
vV=_.x([_.d({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],vV);
_.T(vV,"ytd-comment-replies-renderer",function(){if(M1i!==void 0)return M1i;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return M1i=y},{mode:1});var jGJ;var yR0=function(){var y=_.v.apply(this,arguments)||this;y.isOpen=!1;y.commentDialog=null;y.useSmallAvatars=_.O("small_avatars_for_comments");y.useSmallAvatarsEngagementPanelOnly=_.O("small_avatars_for_comments_ep");y.placeholderFocusListener=null;y.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return y};
_.R(yR0,_.v);_.f=yR0.prototype;_.f.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]]"}}}}}};
_.f.ready=function(){var y=this,W=_.p(this.hostElement).querySelector("#placeholder-area"),c=_.p(this.hostElement).querySelector("#simplebox-placeholder"),Z=function(G){G.stopPropagation();G instanceof KeyboardEvent&&G.type==="keypress"&&G.keyCode!==13&&G.keyCode!==32||y.openDialog()};
this.placeholderFocusListener=Z;c.addEventListener("focus",this.placeholderFocusListener);W.addEventListener("tap",Z);W.addEventListener("keypress",Z)};
_.f.maybeRemoveFocusEventListener=function(){var y;(y=this.data)!=null&&y.prepareAccountEndpoint&&!_.O("web_comments_simplebox_modal_focus_on_tap_ks")&&(y=_.p(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(y.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.f.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.f.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.O("web_comment_simplebox_resolve_polymer_command_ks")?_.km.instance.resolveCommand(this.data.prepareAccountEndpoint):_.jl(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.p(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.f.onYtCommentboxDismiss=function(y){y.stopPropagation();this.isOpen=!1};
_.f.onCreateCommentAction=function(y){this.get("createCommentAction.contents",y)&&(this.isOpen=!1)};
_.f.computeCommentDialog=function(y){return{placeholderText:y.placeholderText,authorThumbnail:y.authorThumbnail,submitButton:y.submitButton,imageButton:y.imageButton,cancelButton:y.cancelButton,emojiButton:y.emojiButton,emojis:y.emojis,emojiPicker:y.emojiPicker,aadcGuidelinesStateEntityKey:y.aadcGuidelinesStateEntityKey,openAadcDialog:y.openAadcDialog,unicodeEmojisUrl:y.unicodeEmojisUrl}};
_.f.onHideIdentityChip=function(y){_.g(y,dKi)&&this.set("data.placeholderText",_.g(y,dKi).placeholderText)};
var dG=yR0;dG.prototype.onYtCommentboxDismiss=dG.prototype.onYtCommentboxDismiss;dG.prototype.dataChanged=dG.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],dG.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],dG.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],dG.prototype,"isOpen",void 0);_.x([_.L(),_.e("design:type",Object)],dG.prototype,"commentDialog",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],dG.prototype,"engagementPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dG.prototype,"useSmallAvatars",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dG.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],dG.prototype,"enableCreationBox",void 0);_.x([_.L(),_.e("design:type",Boolean)],dG.prototype,"showCreateDialog",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dG.prototype,"dataChanged",null);
_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],dG.prototype,"onYtCommentboxDismiss",null);dG=_.x([_.d({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],dG);
_.T(dG,"ytd-comment-simplebox-renderer",function(){if(jGJ!==void 0)return jGJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return jGJ=y},{mode:1});var Wrm;_.bv("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var S3=function(){var y=_.v.apply(this,arguments)||this;y.addHoverEffect=_.O("swatcheroo_comments_hover_effect");return y};
_.R(S3,_.v);S3.prototype.onTap=function(y){if(this.addHoverEffect&&!this.engagementPanel&&!_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||_.jl({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
S3.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.dJ.Object.defineProperties(S3.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)!=null&&y.commentViewModel)return _.g(this.data.commentViewModel,eGE)}}});
var T0=S3;T0.prototype.onTap=T0.prototype.onTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],T0.prototype,"addHoverEffect",void 0);_.x([_.L(),_.e("design:type",Object)],T0.prototype,"data",void 0);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],T0.prototype,"commentViewModel",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],T0.prototype,"engagementPanel",void 0);_.x([_.B("tap"),_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],T0.prototype,"onTap",null);T0=_.x([_.d({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],T0);
_.T(T0,"ytd-comment-thread-renderer",function(){if(Wrm!==void 0)return Wrm;var y=document.createElement("template");_.E(y,'\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<template is="dom-if" if="[[data.comment.commentRenderer]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-renderer id="comment" data="[[data.comment.commentRenderer]]" engagement-panel="[[engagementPanel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-renderer>\n</template>\n<template is="dom-if" if="[[data.commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</template>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Wrm=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var cRi;var Zh8=function(){var y=_.v.apply(this,arguments)||this;y.modernTypography=_.O("web_modern_typography");y.compactHeader=_.O("web_watch_compact_comments_header");y.hidePanelButton=!1;y.isPostSchedulingEnabled=_.O("enable_post_scheduling");y.hasFinishedStamping=!1;y.JSC$13643_handleOpenPostCommentDialogActionAfterStamp=!1;y.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return y};
_.R(Zh8,_.v);_.f=Zh8.prototype;
_.f.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"}}}};
_.f.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.f.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13643_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.f.onYtServiceRequestSent=function(y,W){if(!_.O("kevlar_command_handler")&&W.actions)for(y=0;y<W.actions.length;y++){var c=W.actions[y];_.g(c,XP5)&&_.p(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.g(c,XP5))}};
_.f.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var y;if(this.getPrefilledBackstagePostDialog((y=this.data)==null?void 0:y.actions)){_.p(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var W=_.p(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;W&&_.Lv(this,function(){W.focus();W.openDialog&&W.openDialog()})}}else this.hasActionsChange=!0};
_.f.computeIsBackstage=function(y){return y};
_.f.onYtCommentboxDismiss=function(){_.p(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.f.removePrefilledDialog=function(y){if(y==null?0:y.actions){for(var W=y.actions.length-1;W>=0;W--){var c=void 0;((c=_.g(y.actions[W],PO8))==null?0:c.dialog)&&delete y.actions[W]}this.set("data",void 0);this.set("data",y)}};
_.f.getPrefilledBackstagePostDialog=function(y){if(y)for(var W=0;W<y.length;W++){var c=y[W],Z=void 0;if((Z=_.g(c,PO8))==null?0:Z.dialog)return _.g(c,PO8).dialog}return null};
_.f.computeBackstagePostDialog=function(y){return y&&(this.getPrefilledBackstagePostDialog(y.actions)||y.createRenderer)};
_.f.dataChanged=function(){if(this.data){var y=this.data.customEmojis,W=this.data.unicodeEmojisUrl;_.RZ.clear();W&&_.X9V(_.RZ,W);y&&_.RZ.load(y)}};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){var y=_.p(this.hostElement).querySelector("ytd-comment-simplebox-renderer");y?y.openDialog():this.JSC$13643_handleOpenPostCommentDialogActionAfterStamp=!0};
_.dJ.Object.defineProperties(Zh8.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.O("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G,D,Y;return!this.hidePanelButton&&_.O("kevlar_watch_comments_panel_button")&&((Y=_.g((y=this.data)==null?void 0:(W=y.sortMenu)==null?void 0:(c=W.sortFilterSubMenuRenderer)==null?void 0:(Z=c.subMenuItems)==null?void 0:(G=Z[0])==null?void 0:(D=G.serviceEndpoint)==null?void 0:D.commandMetadata,_.kT))==null?void 0:Y.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.bN("MINIPLAYER_EXPAND_LABEL"),text:_.Lq(_.bN("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
var aA=Zh8;aA.prototype.dataChanged=aA.prototype.dataChanged;aA.prototype.onYtCommentboxDismiss=aA.prototype.onYtCommentboxDismiss;aA.prototype.observePrefilledBackstagePostDialog=aA.prototype.observePrefilledBackstagePostDialog;aA.prototype.onYtServiceRequestSent=aA.prototype.onYtServiceRequestSent;aA.prototype.onStampFinished=aA.prototype.onStampFinished;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],aA.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aA.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],aA.prototype,"modernTypography",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],aA.prototype,"compactHeader",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],aA.prototype,"engagementPanel",void 0);_.x([_.L(),_.e("design:type",Object)],aA.prototype,"hidePanelButton",void 0);_.x([_.L({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.e("design:type",Boolean)],aA.prototype,"isBackstage",void 0);_.x([_.L({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.e("design:type",Object)],aA.prototype,"backstagePostDialog",void 0);
_.x([_.L(),_.e("design:type",Object)],aA.prototype,"isPostSchedulingEnabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data","showCommentsPanelButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],aA.prototype,"useSpaceBetween",null);_.x([_.L({reflectToAttribute:!0}),_.A("data","hidePanelButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],aA.prototype,"showCommentsPanelButton",null);
_.x([_.A("data","showCommentsPanelButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],aA.prototype,"commentsPanelButtonData",null);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],aA.prototype,"onStampFinished",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],aA.prototype,"onYtServiceRequestSent",null);
_.x([_.H("data.actions"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],aA.prototype,"observePrefilledBackstagePostDialog",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],aA.prototype,"onYtCommentboxDismiss",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],aA.prototype,"dataChanged",null);
aA=_.x([_.d({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],aA);
_.T(aA,"ytd-comments-header-renderer",function(){if(cRi!==void 0)return cRi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return cRi=y},{mode:1});var G8m;var fQm=function(){return _.v.apply(this,arguments)||this};
_.R(fQm,_.v);var x1=fQm;_.x([_.L(),_.e("design:type",Object)],x1.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);x1=_.x([_.d({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],x1);
_.T(x1,"ytd-destination-button-renderer",function(){if(G8m!==void 0)return G8m;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return G8m=y},{mode:1});var ofQ;var D5V=function(){var y=_.v.apply(this,arguments)||this;y.isRichGrid=!1;y.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};y.modernTypography=_.O("web_modern_typography");return y};
_.R(D5V,_.v);_.f=D5V.prototype;_.f.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.f.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.f.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.f.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var y;if((y=this.data)==null||!y.isExpanded){y=this.hostElement.clientWidth;var W;if(y&&(W=this.data)!=null&&W.destinationButtons){W=Math.floor((y+4)/214);y=this.data.destinationButtons.length;var c=Math.ceil(y/W);this.fullyVisibleRows=y%W===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}}}};
_.f.updateRichGridDestinationButtonsVisibility=function(){var y,W;if(this.isRichGrid&&((y=this.data)==null||!y.isExpanded)&&(W=this.data)!=null&&W.destinationButtons){y=this.richGridItemsPerRow+1;W=this.data.destinationButtons.length;var c=Math.ceil(W/y);this.fullyVisibleRows=W%y===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
_.f.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var iD=D5V;iD.prototype.updateRichGridDestinationButtonsVisibility=iD.prototype.updateRichGridDestinationButtonsVisibility;_.x([_.L(),_.e("design:type",Object)],iD.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Number)],iD.prototype,"fullyVisibleRows",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],iD.prototype,"isShowMoreVisible",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iD.prototype,"isRichGrid",void 0);
_.x([_.L({selector:_.lo,value:0}),_.e("design:type",Number)],iD.prototype,"richGridItemsPerRow",void 0);_.x([_.L(),_.e("design:type",Object)],iD.prototype,"gridStateActionMap",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],iD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],iD.prototype,"ytdReduxBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iD.prototype,"modernTypography",void 0);_.x([_.H("data","richGridItemsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iD.prototype,"updateRichGridDestinationButtonsVisibility",null);
iD=_.x([_.d({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],iD);
_.T(iD,"ytd-destination-shelf-renderer",function(){if(ofQ!==void 0)return ofQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ofQ=y},{mode:1});var zOZ;var Yz3=function(){return _.v.apply(this,arguments)||this};
_.R(Yz3,_.v);Yz3.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"}}}};
var Mf=Yz3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Mf.prototype,"data",void 0);Mf=_.x([_.d({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Mf);
_.T(Mf,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(zOZ!==void 0)return zOZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return zOZ=y},{mode:1});var m5T;var sG5=function(){var y=_.v.apply(this,arguments)||this;y.disableAnimation=!1;y.isSlimlineSurvey=!1;y.isSlimlineSurveyFollowUp=!1;y.isShortsStyle=!1;return y};
_.R(sG5,_.v);sG5.prototype.onTap=function(y){y.preventDefault();this.data&&_.Z2(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.dJ.Object.defineProperties(sG5.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 y,W,c,Z,G;return((y=this.data)==null?0:y.checked)?(W=this.data)==null?void 0:(c=W.onStateIcon)==null?void 0:c.iconType:(Z=this.data)==null?void 0:(G=Z.defaultStateIcon)==null?void 0:G.iconType}}});
var e3=sG5;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],e3.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],e3.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],e3.prototype,"disableAnimation",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],e3.prototype,"isSlimlineSurvey",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],e3.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],e3.prototype,"isShortsStyle",void 0);_.x([_.A("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],e3.prototype,"isAnimatedIcon",null);
_.x([_.A("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.e("design:type",Number),_.e("design:paramtypes",[])],e3.prototype,"iconSize",null);_.x([_.A("isShortsStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],e3.prototype,"isDarkTheme",null);_.x([_.A("data.checked"),_.e("design:type",Object),_.e("design:paramtypes",[])],e3.prototype,"icon",null);e3=_.x([_.d({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],e3);
_.T(e3,"ytd-rating-survey-option-renderer",function(){if(m5T!==void 0)return m5T;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return m5T=y},{mode:2});var uR2;var tf3=function(){var y=_.v.apply(this,arguments)||this;y.firstResponseText=null;y.lastResponseText=null;y.selectedNonStarOption=null;y.hideOptions=!1;y.hideUndoButton=!0;y.disableAnimation=!1;y.showResponseRangeText=!1;y.selectedRatingIndex=-1;y.isSlimlineSurvey=!1;y.isSlimlineSurveyFollowUp=!1;y.isShortsStyle=!1;y.slimlineSurveyRatingSelectedIndex=-1;return y};
_.R(tf3,_.v);_.f=tf3.prototype;_.f.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.f.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.f.onOptionChange=function(y,W){var c=this;y=W.onStateIcon&&W.defaultStateIcon&&W.onStateIcon.iconType===W.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Y,u){Y.responseText===W.responseText?c.isSlimlineSurvey?(c.selectedRatingIndex=u,c.ytdReduxBehavior.dispatch(yaT(u))):(c.setSurveyOptionValue(u,!0,"checked"),c.setSurveyOptionValue(u,!0,"selected")):(c.setSurveyOptionValue(u,!1,"checked"),c.setSurveyOptionValue(u,
!1,"selected"))});
else if(y)this.selectedNonStarOption=W,this.hideOptions=!0;else{var Z=this.ytRendererBehavior.getSimpleString(W.responseText),G=!0;this.getOptionRenderers().forEach(function(Y,u){c.setSurveyOptionValue(u,G,"checked");c.setSurveyOptionValue(u,!1,"selected");c.ytRendererBehavior.getSimpleString(Y.responseText)===Z&&(G=!1,c.setSurveyOptionValue(u,!0,"selected"))})}y=W.responseEndpoint;
var D;W.followUpCommand&&(D=_.g(W.followUpCommand,ojZ));this.isSlimlineSurvey?(this.resetComponent(),_.GG(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.GG(this.hostElement,"ytd-inline-survey-rating-select-action",[y,D])};
_.f.showSelectedOption=function(){var y=this;_.KX.addJob(function(){var W=y.getOptionRenderers()[y.slimlineSurveyRatingSelectedIndex];y.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),W)},8,100)};
_.f.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(y){var W;return(W=_.g(y,zF5))!=null?W:{}}):[]};
_.f.onUndoClick=function(){this.resetComponent();_.GG(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.f.setSurveyOptionValue=function(y,W,c){this.notifyPath("data.ratings."+y+".ratingSurveyOptionRenderer."+c);this.set("data.ratings."+y+".ratingSurveyOptionRenderer."+c,W)};
_.f.resetComponent=function(){var y=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var W=this.getOptionRenderers(),c,Z;this.firstResponseText=(Z=(c=W[0])==null?void 0:c.responseText)!=null?Z:null;var G,D;this.lastResponseText=(D=(G=W[W.length-1])==null?void 0:G.responseText)!=null?D:null;W.forEach(function(Y,u){y.setSurveyOptionValue(u,!1,"checked");y.setSurveyOptionValue(u,!1,"selected")})};
_.dJ.Object.defineProperties(tf3.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
var wG=tf3;wG.prototype.onOptionChange=wG.prototype.onOptionChange;wG.prototype.dataChanged=wG.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],wG.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wG.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],wG.prototype,"firstResponseText",void 0);_.x([_.L(),_.e("design:type",Object)],wG.prototype,"lastResponseText",void 0);_.x([_.L(),_.e("design:type",Object)],wG.prototype,"selectedNonStarOption",void 0);_.x([_.L(),_.e("design:type",Object)],wG.prototype,"hideOptions",void 0);_.x([_.L(),_.e("design:type",Object)],wG.prototype,"hideUndoButton",void 0);_.x([_.L(),_.e("design:type",Object)],wG.prototype,"disableAnimation",void 0);
_.x([_.L(),_.e("design:type",Object)],wG.prototype,"showResponseRangeText",void 0);_.x([_.L(),_.e("design:type",Object)],wG.prototype,"selectedRatingIndex",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],wG.prototype,"isSlimlineSurvey",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],wG.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],wG.prototype,"isShortsStyle",void 0);_.x([_.L({selector:function(y){return y.ui.slimlineSurveyRatingSelectedIndex}}),
_.e("design:type",Object)],wG.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.x([_.A("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],wG.prototype,"isSingleSelect",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wG.prototype,"dataChanged",null);
_.x([_.B("ytd-rating-survey-option-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],wG.prototype,"onOptionChange",null);wG=_.x([_.d({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],wG);
_.T(wG,"ytd-rating-survey-renderer",function(){if(uR2!==void 0)return uR2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return uR2=y},{mode:1});var nfE;var XcE;var bh0;var Woh=(F6.FIRSTDAYOFWEEK+1)%7,rR5=function(y,W,c,Z){var G="";if(Z.selection&&qKD(Z.selection))X6(y,Z.selection)&&(G+=" selected");else if(Z.selection&&khE(Z.selection)){var D=Z.selection.selectionState||"START_DATE";X6(y,Z.selection.start)&&(G+=" period-start ",D==="START_DATE"&&(G+="selected"));X6(y,Z.selection.end)&&(G+=" period-end ",D==="END_DATE"&&(G+="selected"));bL(y,Z.selection.start)||bL(Z.selection.end,y)||(G+=" highlighted")}if(bL(W,Z.start)||bL(Z.end,W))G+=" disabled";Z.circleToday&&
X6(W,c)&&(G+=" today");return G};var FrE=function(){return _.v.apply(this,arguments)||this};
_.R(FrE,_.v);_.f=FrE.prototype;_.f.attached=function(){var y=this;_.Lv(this,function(){y.JSC$13677_calendarMain.scrollHeight>0&&(y.calendarConfig.selection?y.scrollToDate(jRy(y.calendarConfig.selection)):y.scrollToDate(y.calendarConfig.end))})};
_.f.updateSelection=function(y){y=cB1(Object.assign({},this.calendarConfig,{selection:y}),rR5);this.splice.apply(this,["renderData.months",0,y.length].concat(_.No(y)))};
_.f.scrollToDate=function(y){this.renderData&&(y=Z3H(y,this.renderData),y!==void 0&&this.JSC$13677_calendarMain.scrollToIndex(y))};
_.f.scrollToNextMonth=function(){this.JSC$13677_calendarMain.scrollToIndex(this.JSC$13677_calendarMain.firstVisibleIndex+1)};
_.f.scrollToPrevMonth=function(){this.JSC$13677_calendarMain.firstVisibleIndex===0&&this.JSC$13677_calendarMain.scrollTo(0,0);this.JSC$13677_calendarMain.scrollToIndex(this.JSC$13677_calendarMain.firstVisibleIndex-1)};
_.f.handleDayClick=function(y){_.GG(this.hostElement,"ytd-calendar-date-clicked",[y.model.day.date])};
_.f.handleDayMouseDown=function(y){y.preventDefault();_.GG(this.hostElement,"ytd-calendar-date-mousedown",[y.model.day.date])};
_.f.handleDayMouseUp=function(y){_.GG(this.hostElement,"ytd-calendar-date-mouseup",[y.model.day.date])};
_.f.handleDayMouseEnter=function(y){y.preventDefault();_.GG(this.hostElement,"ytd-calendar-date-mouseenter",[y.model.day.date])};
_.f.handleDayMouseLeave=function(y){_.GG(this.hostElement,"ytd-calendar-date-mouseleave",[y.model.day.date])};
_.dJ.Object.defineProperties(FrE.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var y=this.calendarConfig,W=rR5;W=W===void 0?rR5:W;for(var c=[],Z=0;Z<7;Z++)c.push(F6.NARROWWEEKDAYS[(Z+Woh)%7]);return{months:cB1(y,W),daysOfWeekLabel:c}}}});
var qf=FrE;_.x([_.L(),_.e("design:type",Object)],qf.prototype,"calendarConfig",void 0);_.x([_.jj("#calendar-main"),_.e("design:type",Object)],qf.prototype,"JSC$13677_calendarMain",void 0);_.x([_.A("calendarConfig"),_.e("design:type",Object),_.e("design:paramtypes",[])],qf.prototype,"renderData",null);qf=_.x([_.d({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],qf);
_.T(qf,"ytd-scrollable-calendar",function(){if(bh0!==void 0)return bh0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return bh0=y},{mode:2});var U5J;var $52;var Kri=function(){var y=_.v.apply(this,arguments)||this;y.hideCharCounter=!1;y.hideLabel=!1;y.noLabelFloat=!1;y.autoValidate=!0;y.invalid=!1;y.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return y};
_.R(Kri,_.v);_.f=Kri.prototype;_.f.reset=function(y){this.value=y&&this.data?this.data.value=y:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.f.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.f.focusTextInput=function(){this.input.focus()};
_.f.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()};
_.f.valueChanged=function(){var y,W;if(((y=this.data)==null?0:y.value)||((W=this.data)==null?void 0:W.value)==="")this.value=this.data.value;else{var c;((c=this.data)==null?void 0:c.value)!==void 0||this.value||(this.value="")}};
_.f.computeLabel=function(y,W){return W?"":_.v$(y)};
_.f.computeAriaLabel=function(y,W){return W?_.v$(y):""};
_.f.computeErrorMessage=function(y,W,c,Z){!y&&W?y=c||this.strings.REQUIRED_LABEL:(y=_.v$(Z),y=_.Xh(y,"&")?"document"in _.DH?EWJ(y):N2Q(y):y);return y};
_.f.computeType=function(y){return y==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.f.onTextValueChanged=function(y){this.value=y.detail.value;var W;(W=this.onValueChanged)==null||W.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.f.handleUpdateTextInputFormFieldRendererCommand=function(y){(y=_.g(y,NqV))&&this.data&&this.data.id===y.id&&(y.invalid!==void 0&&(this.invalid=y.invalid),y.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",y.invalidValueErrorMessage))};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("value-changed",this.value))};
_.f.updateInvalidFromBinding=function(y){this.invalid=y.detail.value};
_.dJ.Object.defineProperties(Kri.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var y;return!((y=this.data)==null||!y.isMultiline)}}});
var k1=Kri;k1.prototype.valueChangedForBinding=k1.prototype.valueChangedForBinding;k1.prototype.valueChanged=k1.prototype.valueChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],k1.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],k1.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],k1.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],k1.prototype,"value",void 0);_.x([_.L(),_.e("design:type",String)],k1.prototype,"pattern",void 0);_.x([_.L(),_.e("design:type",String)],k1.prototype,"errorMessage",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],k1.prototype,"componentStyle",void 0);_.x([_.L(),_.e("design:type",Object)],k1.prototype,"hideCharCounter",void 0);
_.x([_.L(),_.e("design:type",Object)],k1.prototype,"hideLabel",void 0);_.x([_.L(),_.e("design:type",Object)],k1.prototype,"noLabelFloat",void 0);_.x([_.L(),_.e("design:type",Function)],k1.prototype,"onValueChanged",void 0);_.x([_.L(),_.e("design:type",Boolean)],k1.prototype,"isMultilineOverride",void 0);_.x([_.L(),_.e("design:type",Object)],k1.prototype,"autoValidate",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k1.prototype,"invalid",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],k1.prototype,"enableOverlayTheme",void 0);_.x([_.L({value:{REQUIRED_LABEL:_.bN("REQUIRED_LABEL",void 0,"Required")}}),_.e("design:type",Object)],k1.prototype,"strings",void 0);_.x([_.jj("#input"),_.e("design:type",Object)],k1.prototype,"input",void 0);_.x([_.A("data","isMultilineOverride"),_.e("design:type",Object),_.e("design:paramtypes",[])],k1.prototype,"isMultiline",null);
_.x([_.Gs("data.value"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],k1.prototype,"valueChanged",null);_.x([_.H("value"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],k1.prototype,"valueChangedForBinding",null);k1=_.x([_.n6({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],k1);
_.T(k1,"yt-text-input-form-field-renderer",function(){if($52===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;U5J===void 0&&(U5J=document.createElement("template"));var Z=U5J;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);$52=y}y=$52;return y},{mode:2});var Oh2=function(){var y=_.v.apply(this,arguments)||this;y.data=void 0;y.selectionState="START_DATE";y.isStartDateInvalid=!1;y.isEndDateInvalid=!1;y.autoapply=!1;y.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 y};
_.R(Oh2,_.v);_.f=Oh2.prototype;_.f.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"}}}}};
_.f.focus=function(){this.startDateInput.focus()};
_.f.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:re(this.data.selection.start),end:re(this.data.selection.end)})};
_.f.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.f.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.d2(this.selectionState)}};
_.f.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.f.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.f.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.f.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var y=this.calendar.calendarConfig,W=y.end;y=f8I({start:y.start,end:this.endDate||W},this.startDateInput.value||"");this.isStartDateInvalid=!y.isValid;y.isValid&&(y=y.value,this.selection=this.endDate?{start:y,end:this.endDate}:y,this.calendar.scrollToDate(y));this.updateInvalidState()}};
_.f.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var y=this.calendar.calendarConfig,W=y.start;y=f8I({start:this.startDate||W,end:y.end},this.endDateInput.value||"");this.isEndDateInvalid=!y.isValid;y.isValid&&(y=y.value,this.selection={start:this.startDate,end:y},this.calendar.scrollToDate(y));this.updateInvalidState()}};
_.f.handleCalendarDateClicked=function(y){var W=this.selection&&jRy(this.selection),c=this.selection&&yBw(this.selection);W&&!bL(y,W)&&this.selectionState==="END_DATE"?(this.selection={start:W,end:y},this.selectionState="START_DATE"):(c&&!bL(c,y)?this.selection={start:y,end:c}:this.selection=y,this.selectionState="END_DATE")};
_.f.handleCalendarDateMouseDown=function(y){this.selection&&!qKD(this.selection)&&(this.dragPivot=X6(y,this.selection.start)?this.selection.end:X6(y,this.selection.end)?this.selection.start:y)};
_.f.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.f.handleCalendarDateMouseEnter=function(y){this.dragPivot&&(this.selection={start:function(W,c){return bL(W,c)?W:c}(this.dragPivot,y),
end:function(W,c){return bL(W,c)?c:W}(this.dragPivot,y)},this.dragPivot||(this.selectionState="START_DATE"))};
_.f.handleCalendarDateMouseLeave=function(){};
_.f.handleCalendarSubmitDateRange=function(){this.selection&&!qKD(this.selection)&&_.GG(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.f.updateInvalidState=function(){var y=function(W,c){c?W.setAttribute("invalid",""):W.removeAttribute("invalid")};
y(this.startDateInput,this.isStartDateInvalid);y(this.endDateInput,this.isEndDateInvalid)};
_.f.updateDateStrings=function(){this.selection&&(qKD(this.selection)?w4g(this.selection):(w4g(this.selection.start),w4g(this.selection.end)))};
_.f.updateCalendarSelection=function(y){this.calendar.updateSelection(Object.assign({},y,{selectionState:this.selectionState}))};
_.f.updateIsStartDateInvalidFromBinding=function(y){this.isStartDateInvalid=y.detail.value};
_.f.updateIsEndDateInvalidFromBinding=function(y){this.isEndDateInvalid=y.detail.value};
_.f.updateStartDateStringFromBinding=function(){};
_.f.updateEndDateStringFromBinding=function(){};
_.dJ.Object.defineProperties(Oh2.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:re(this.data.dateRangeStart),end:re(this.data.dateRangeEnd),selection:{start:re(this.data.selection.start),end:re(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&jRy(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&yBw(this.selection)}}});
var j4=Oh2;j4.prototype.resetTextboxes=j4.prototype.resetTextboxes;j4.prototype.observeSelection=j4.prototype.observeSelection;j4.prototype.dataChanged=j4.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],j4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("#calendar"),_.e("design:type",Object)],j4.prototype,"calendar",void 0);
_.x([_.jj("#start-date"),_.e("design:type",Object)],j4.prototype,"startDateInput",void 0);_.x([_.jj("#end-date"),_.e("design:type",Object)],j4.prototype,"endDateInput",void 0);_.x([_.L(),_.e("design:type",Object)],j4.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],j4.prototype,"selection",void 0);_.x([_.L(),_.e("design:type",String)],j4.prototype,"selectionState",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],j4.prototype,"calendarConfig",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],j4.prototype,"errorMessage",null);_.x([_.A("selection"),_.e("design:type",Object),_.e("design:paramtypes",[])],j4.prototype,"startDate",null);_.x([_.A("selection"),_.e("design:type",Object),_.e("design:paramtypes",[])],j4.prototype,"endDate",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],j4.prototype,"dataChanged",null);
_.x([_.H("selection","selectionState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],j4.prototype,"observeSelection",null);_.x([_.H("selectionState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],j4.prototype,"resetTextboxes",null);j4=_.x([_.d({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],j4);
_.T(j4,"ytd-date-period-picker-renderer",function(){if(XcE!==void 0)return XcE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XcE=y},{mode:1});var gfJ=function(){var y=_.v.apply(this,arguments)||this;var W={};y.actionMap=(W["ytd-date-period-picker-apply"]="handleDateRangeUpdated",W);return y};
_.R(gfJ,_.v);gfJ.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
gfJ.prototype.handleDateRangeUpdated=function(){};
var ym=gfJ;_.x([_.L(),_.e("design:type",Object)],ym.prototype,"data",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],ym.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ym.prototype,"rendererstamperBehavior",void 0);ym=_.x([_.d({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],ym);
_.T(ym,"ytd-report-history-section-header-renderer",function(){if(nfE!==void 0)return nfE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return nfE=y},{mode:1});var RO0;var lQm;var EfZ;var Nn5=function(){return _.v.apply(this,arguments)||this};
_.R(Nn5,_.v);_.dJ.Object.defineProperties(Nn5.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?0:(W=y.icon)==null?0:W.iconType)?_.wp(this.data.icon.iconType):""}}});
var Wm=Nn5;_.x([_.L(),_.e("design:type",Object)],Wm.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],Wm.prototype,"icon",null);Wm=_.x([_.d({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],Wm);
_.T(Wm,"ytd-report-history-table-text-cell-renderer",function(){if(EfZ!==void 0)return EfZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return EfZ=y},{mode:1});var IQ0=function(){return _.v.apply(this,arguments)||this};
_.R(IQ0,_.v);IQ0.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
var cm=IQ0;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cm.prototype,"data",void 0);cm=_.x([_.d({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],cm);
_.T(cm,"ytd-report-history-table-reason-cell-renderer",function(){if(lQm!==void 0)return lQm;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lQm=y},{mode:1});var pc2=function(){return _.v.apply(this,arguments)||this};
_.R(pc2,_.v);pc2.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"}}}};
var ZA=pc2;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ZA.prototype,"rendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ZA.prototype,"data",void 0);ZA=_.x([_.d({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],ZA);
_.T(ZA,"ytd-report-history-table-cell-renderer",function(){if(RO0!==void 0)return RO0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return RO0=y},{mode:1});var PP0;var GK=function(){var y=_.v.apply(this,arguments)||this;y.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 y};
_.R(GK,_.v);GK.prototype.onDataChanged=function(){var y;if((y=this.data)==null?0:y.style)this.componentStyle=this.getStyleName(this.data.style)};
GK.prototype.getCellForColumn=function(y){return this.cells.find(function(W){var c;return((c=_.g(W==null?void 0:W.cell,sOE)||_.g(W==null?void 0:W.cell,mDm))==null?void 0:c.columnId)===y.type})};
GK.prototype.getClassForColumn=function(y){switch(y){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
GK.prototype.getStyleName=function(y){switch(y){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.dJ.Object.defineProperties(GK.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.cells)||[]).map(function(W){return _.g(W,YSi)})}}});
var fS=GK;fS.prototype.onDataChanged=fS.prototype.onDataChanged;_.x([_.L(),_.e("design:type",Object)],fS.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Array)],fS.prototype,"columnRenderData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],fS.prototype,"componentStyle",void 0);_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],fS.prototype,"cells",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fS.prototype,"onDataChanged",null);fS=_.x([_.d({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],fS);
_.T(fS,"ytd-report-history-table-row-renderer",function(){if(PP0!==void 0)return PP0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return PP0=y},{mode:1});var JR0;var Vf5;var oea={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},DwI={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var oB=function(){return _.v.apply(this,arguments)||this};
_.R(oB,_.v);oB.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"}}}}}};
oB.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.dJ.Object.defineProperties(oB.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.columns)?uHt(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return mwg(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var y=this.tableSpec,W=oea;W=W===void 0?DwI:W;W=sRI(y.columnDimensions,y.columnsToShow||[],W);y=0;W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,y+=c.minWidth+c.paddingLeft+c.paddingRight;return y}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
var DA=oB;_.x([_.C(_.dO),_.e("design:type",Object)],DA.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],DA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],DA.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],DA.prototype,"tableSpec",null);_.x([_.A("tableSpec"),_.e("design:type",Array),_.e("design:paramtypes",[])],DA.prototype,"columnRenderData",null);
_.x([_.A("tableSpec"),_.e("design:type",Number),_.e("design:paramtypes",[])],DA.prototype,"totalMinWidth",null);_.x([_.A("totalMinWidth"),_.e("design:type",String),_.e("design:paramtypes",[])],DA.prototype,"tableWidthStyle",null);DA=_.x([_.d({is:"ytd-table-renderer",disableElementRegistration:!0})],DA);
_.T(DA,"ytd-table-renderer",function(){if(Vf5!==void 0)return Vf5;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Vf5=y},{mode:1});var CPZ=function(){return _.v.apply(this,arguments)||this};
_.R(CPZ,_.v);CPZ.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}}}}}};
var zK=CPZ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zK.prototype,"data",void 0);zK=_.x([_.d({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],zK);
_.T(zK,"ytd-report-reason-history-modal-renderer",function(){if(JR0!==void 0)return JR0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return JR0=y},{mode:1});var QGJ;var ARE;var hO8;var BnW=function(){return _.v.apply(this,arguments)||this};
_.R(BnW,_.v);var YC=BnW;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],YC.prototype,"data",void 0);YC=_.x([_.d({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],YC);
_.T(YC,"ytd-profile-column-stats-entry-renderer",function(){if(hO8!==void 0)return hO8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return hO8=y},{mode:1});var HhZ;var Lr0=function(){return _.v.apply(this,arguments)||this};
_.R(Lr0,_.v);Lr0.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
var ma=Lr0;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ma.prototype,"data",void 0);ma=_.x([_.d({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],ma);
_.T(ma,"ytd-profile-column-stats-renderer",function(){if(HhZ!==void 0)return HhZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return HhZ=y},{mode:1});var vf8;var d5Z=function(){return _.v.apply(this,arguments)||this};
_.R(d5Z,_.v);_.dJ.Object.defineProperties(d5Z.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.useThumbnailSize)return 80;var W,c;y=(W=this.data)==null?void 0:(c=W.thumbnail)==null?void 0:c.thumbnails;var Z;return y&&((Z=y[0])==null?void 0:Z.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.useThumbnailSize)return 80;var W,c;y=(W=this.data)==null?void 0:(c=W.thumbnail)==null?void 0:c.thumbnails;var Z;return y&&((Z=y[0])==null?void 0:Z.height)||80}}});
var sg=d5Z;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sg.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sg.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],sg.prototype,"componentStyle",void 0);_.x([_.A("data.useThumbnailSize"),_.e("design:type",Object),_.e("design:paramtypes",[])],sg.prototype,"thumbnailWidth",null);
_.x([_.A("data.useThumbnailSize"),_.e("design:type",Object),_.e("design:paramtypes",[])],sg.prototype,"thumbnailHeight",null);sg=_.x([_.d({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],sg);
_.T(sg,"ytd-profile-column-user-info-renderer",function(){if(vf8!==void 0)return vf8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vf8=y},{mode:1});var SzE=function(){return _.v.apply(this,arguments)||this};
_.R(SzE,_.v);SzE.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]]"}}}}}};
var ua=SzE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ua.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],ua.prototype,"componentStyle",void 0);ua=_.x([_.d({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],ua);
_.T(ua,"ytd-profile-column-renderer",function(){if(ARE!==void 0)return ARE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ARE=y},{mode:1});var Tn3=function(){var y=_.v.apply(this,arguments)||this;y.componentStyle="NON_CENTERED_PROFILE";return y};
_.R(Tn3,_.v);Tn3.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Tn3.prototype.getIcon=function(y){return y?"settings:"+y.toLowerCase():null};
var tQ=Tn3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tQ.prototype,"data",void 0);tQ=_.x([_.d({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],tQ);
_.T(tQ,"ytd-page-introduction-renderer",function(){if(QGJ!==void 0)return QGJ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return QGJ=y},{mode:1});var aQQ;var x52=function(){return _.v.apply(this,arguments)||this};
_.R(x52,_.v);var nS=x52;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nS.prototype,"data",void 0);nS=_.x([_.d({is:"ytd-report-description-renderer",disableElementRegistration:!0})],nS);
_.T(nS,"ytd-report-description-renderer",function(){if(aQQ!==void 0)return aQQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return aQQ=y},{mode:1});var ihV;var Mf3;var eO2=function(){return _.v.apply(this,arguments)||this};
_.R(eO2,_.v);eO2.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
var X4=eO2;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],X4.prototype,"data",void 0);X4=_.x([_.d({is:"ytd-video-report-renderer",disableElementRegistration:!0})],X4);
_.T(X4,"ytd-video-report-renderer",function(){if(Mf3!==void 0)return Mf3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Mf3=y},{mode:1});var wcV;_.bv("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.bv("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var ba=function(){return _.v.apply(this,arguments)||this};
_.R(ba,_.v);ba.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]]"}}}}}};
ba.prototype.computeMessageStyle=function(y){return y};
ba.prototype.computeButtonOverride=function(y){var W;if((y==null?0:(W=y.style)==null?0:W.value)&&y.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
var rd=ba;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],rd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],rd.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],rd.prototype,"shelf",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],rd.prototype,"panel",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.e("design:type",Boolean)],rd.prototype,"componentStyle",void 0);_.x([_.L({computed:"computeButtonOverride(data)"}),_.e("design:type",Object)],rd.prototype,"buttonOverride",void 0);rd=_.x([_.d({is:"ytd-message-renderer",disableElementRegistration:!0})],rd);
_.T(rd,"ytd-message-renderer",function(){if(wcV!==void 0)return wcV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return wcV=y},{mode:1});var F4=function(){return _.v.apply(this,arguments)||this};
_.R(F4,_.v);F4.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"}}}};
F4.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
F4.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.dJ.Object.defineProperties(F4.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!(((y=this.data)==null?0:y.header)&&((W=this.data)==null?0:W.table))}}});
var Ug=F4;Ug.prototype.onRequestError=Ug.prototype.onRequestError;_.x([_.C(_.dO),_.e("design:type",Object)],Ug.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ug.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ug.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ug.prototype,"data",void 0);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ug.prototype,"isUnifiedReportHistory",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ug.prototype,"onRequestError",null);Ug=_.x([_.d({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],Ug);
_.T(Ug,"ytd-report-history-section-renderer",function(){if(ihV!==void 0)return ihV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ihV=y},{mode:1});var qzm;var k83=function(){var y=_.v.apply(this,arguments)||this;y.answerExpanded=!1;return y};
_.R(k83,_.v);k83.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
var $C=k83;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$C.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$C.prototype,"answerExpanded",void 0);$C=_.x([_.d({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],$C);
_.T($C,"ytd-handles-claiming-faq-renderer",function(){if(qzm!==void 0)return qzm;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return qzm=y},{mode:1});var jp5;var y8Z=function(){return _.v.apply(this,arguments)||this};
_.R(y8Z,_.v);var W50=y8Z;_.x([_.L(),_.e("design:type",Object)],W50.prototype,"data",void 0);W50=_.x([_.d({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],W50);
_.T(W50,"ytd-handles-claiming-faq-section-renderer",function(){if(jp5!==void 0)return jp5;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return jp5=y},{mode:1});var c8Q;var Zz3=function(){var y=_.v.apply(this,arguments)||this;y.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";y.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";y.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";y.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";y.leftSquiggly=y.leftSquigglyLight;y.rightSquiggly=y.rightSquigglyLight;
y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};y.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return y};
_.R(Zz3,_.v);_.f=Zz3.prototype;_.f.updateLeftSquigglyStyle=function(){_.wM(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.f.updateRightSquigglyStyle=function(){_.wM(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.f.ready=function(){var y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(y)};
_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.set("isDarkTheme",y),y?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
var KS=Zz3;KS.prototype.updateRightSquigglyStyle=KS.prototype.updateRightSquigglyStyle;KS.prototype.updateLeftSquigglyStyle=KS.prototype.updateLeftSquigglyStyle;_.x([_.L(),_.e("design:type",Object)],KS.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],KS.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",String)],KS.prototype,"leftSquiggly",void 0);_.x([_.L(),_.e("design:type",String)],KS.prototype,"rightSquiggly",void 0);
_.x([_.H("leftSquiggly"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KS.prototype,"updateLeftSquigglyStyle",null);_.x([_.H("rightSquiggly"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KS.prototype,"updateRightSquigglyStyle",null);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],KS.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],KS.prototype,"actionButtonOverride",void 0);KS=_.x([_.d({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],KS);
_.T(KS,"ytd-handles-claiming-header-renderer",function(){if(c8Q!==void 0)return c8Q;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return c8Q=y},{mode:1});var G_2;var fwT=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};y.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";y.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";y.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";y.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
y.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";y.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";y.image0SquigglyBackground=y.image0LightSquigglyBackground;y.image1SquigglyBackground=y.image1LightSquigglyBackground;y.image3SquigglyBackground=y.image3LightSquigglyBackground;return y};
_.R(fwT,_.v);_.f=fwT.prototype;_.f.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.f.onDataChanged=function(){this.updateTitleAndImages()};
_.f.onThemeChanged=function(){this.updateTitleAndImages()};
_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y)};
_.f.updateImage0SquigglyBackground=function(){_.wM(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.f.updateImage1SquigglyBackground=function(){_.wM(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.f.updateImage3SquigglyBackground=function(){_.wM(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.f.updateTitleAndImages=function(){var y,W;((y=this.data)==null?void 0:(W=y.titleImages)==null?void 0:W.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
var Og=fwT;Og.prototype.updateImage3SquigglyBackground=Og.prototype.updateImage3SquigglyBackground;Og.prototype.updateImage1SquigglyBackground=Og.prototype.updateImage1SquigglyBackground;Og.prototype.updateImage0SquigglyBackground=Og.prototype.updateImage0SquigglyBackground;Og.prototype.onThemeChanged=Og.prototype.onThemeChanged;Og.prototype.onDataChanged=Og.prototype.onDataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Og.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Og.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"title0",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"title1",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"title2",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"title3",void 0);
_.x([_.L(),_.e("design:type",Object)],Og.prototype,"title4",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"image0",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"image1",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"image2",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"image3",void 0);_.x([_.L(),_.e("design:type",Object)],Og.prototype,"image4",void 0);_.x([_.L(),_.e("design:type",String)],Og.prototype,"image0SquigglyBackground",void 0);
_.x([_.L(),_.e("design:type",String)],Og.prototype,"image1SquigglyBackground",void 0);_.x([_.L(),_.e("design:type",String)],Og.prototype,"image3SquigglyBackground",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Og.prototype,"onDataChanged",null);_.x([_.H("isDarkTheme"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Og.prototype,"onThemeChanged",null);
_.x([_.H("image0SquigglyBackground"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Og.prototype,"updateImage0SquigglyBackground",null);_.x([_.H("image1SquigglyBackground"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Og.prototype,"updateImage1SquigglyBackground",null);
_.x([_.H("image3SquigglyBackground"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Og.prototype,"updateImage3SquigglyBackground",null);Og=_.x([_.d({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Og);
_.T(Og,"ytd-handles-claiming-title-images-section-renderer",function(){if(G_2!==void 0)return G_2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return G_2=y},{mode:1});var o8E;var gd=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(gd,_.v);gd.prototype.ready=function(){var y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(y)};
gd.prototype.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y)};
gd.prototype.onCopyButtonClick=function(){var y=this,W,c,Z;return _.m(function(G){return(W=y.data)!=null&&W.primaryChannelUrl?_.n(G,navigator.clipboard.writeText(((c=y.data)==null?0:c.encodedChannelUrl)?y.data.encodedChannelUrl:"https://"+_.v$((Z=y.data)==null?void 0:Z.primaryChannelUrl)),0):G.jumpTo(0)})};
var RB=gd;_.x([_.L(),_.e("design:type",Object)],RB.prototype,"data",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],RB.prototype,"ytComponentBehavior",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],RB.prototype,"isDarkTheme",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);RB=_.x([_.d({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],RB);
_.T(RB,"ytd-handles-claiming-update-social-renderer",function(){if(o8E!==void 0)return o8E;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return o8E=y},{mode:1});var DXW;var la=function(){var y=_.v.apply(this,arguments)||this;y.JSC$13772_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";y.JSC$13772_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};y.squigglyBackground=y.JSC$13772_squigglyBackgroundLight;return y};
_.R(la,_.v);la.prototype.updateSquigglyBackgroundStyle=function(){_.wM(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
la.prototype.ready=function(){var y=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",y);this.squigglyBackground=y?this.JSC$13772_squigglyBackgroundDark:this.JSC$13772_squigglyBackgroundLight};
la.prototype.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.set("isDarkTheme",y),this.squigglyBackground=y?this.JSC$13772_squigglyBackgroundDark:this.JSC$13772_squigglyBackgroundLight)};
var Eg=la;Eg.prototype.updateSquigglyBackgroundStyle=Eg.prototype.updateSquigglyBackgroundStyle;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Eg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Eg.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Eg.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",String)],Eg.prototype,"squigglyBackground",void 0);_.x([_.H("squigglyBackground"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Eg.prototype,"updateSquigglyBackgroundStyle",null);Eg=_.x([_.d({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Eg);
_.T(Eg,"ytd-handles-claiming-vanity-info-renderer",function(){if(DXW!==void 0)return DXW;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return DXW=y},{mode:1});var zB8;var Yw3=function(){var y=_.v.apply(this,arguments)||this;y.JSC$13775_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";y.JSC$13775_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";y.squigglyBackground=y.JSC$13775_squigglyBackgroundLight;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(Yw3,_.v);_.f=Yw3.prototype;_.f.ready=function(){var y=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(y)};
_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.set("isDarkTheme",y),this.squigglyBackground=y?this.JSC$13775_squigglyBackgroundDark:this.JSC$13775_squigglyBackgroundLight)};
_.f.updateSquigglyBackgroundStyle=function(){_.wM(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.f.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.f.detached=function(){this.stop()};
_.f.stop=function(){this.playerElement.stop()};
_.f.setupVideoPlayer=function(){var y=this,W,c;return _.m(function(Z){W=y.data.videoId;c="http://i1.ytimg.com/vi/"+W+"/maxresdefault.jpg";y.playerElement.loadVideoWithPlayerVars({video_id:W,iurlhq:c});_.F2(Z)})};
var Nm=Yw3;Nm.prototype.onDataChanged=Nm.prototype.onDataChanged;Nm.prototype.updateSquigglyBackgroundStyle=Nm.prototype.updateSquigglyBackgroundStyle;_.x([_.L({value:!1}),_.e("design:type",Boolean)],Nm.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",String)],Nm.prototype,"squigglyBackground",void 0);_.x([_.jj("#player"),_.e("design:type",Object)],Nm.prototype,"playerElement",void 0);_.x([_.L(),_.e("design:type",Object)],Nm.prototype,"data",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Nm.prototype,"ytActionHandlerBehavior",void 0);_.x([_.H("squigglyBackground"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Nm.prototype,"updateSquigglyBackgroundStyle",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Nm.prototype,"onDataChanged",null);
Nm=_.x([_.d({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Nm);
_.T(Nm,"ytd-handles-claiming-video-item-renderer",function(){if(zB8!==void 0)return zB8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return zB8=y},{mode:1});var mXi;var pS=function(){var y=_.cQ.apply(this,arguments)||this;y.dragging=!1;y.dragMouseStart=0;y.dragOffsetStart=0;y.containerWidthDiff=0;y.boundPrevClick=function(){y.set("offset",IB(y,y.offset-(y.scrollDistance||320)))};
y.boundNextClick=function(){y.set("offset",IB(y,y.offset+(y.scrollDistance||320)))};
y.boundScrollContainerMouseDown=function(W){y.dragMouseStart=W.clientX;y.dragOffsetStart=y.offset;y.dragging=!0};
y.boundScrollContainerDrag=function(W){y.dragging&&y.set("offset",IB(y,y.dragOffsetStart-(W.clientX-y.dragMouseStart)))};
y.boundMouseUp=function(){y.onMouseUp()};
y.boundWheelScroll=function(W){var c=0;Math.abs(W.deltaX)>=Math.abs(W.deltaY)?c=W.deltaX:W.shiftKey&&(c=W.deltaY);c!==0&&(y.offset+=c,W.stopPropagation(),W.preventDefault())};
y.boundChipCloudChipScrollIntoView=function(W){(W=W.detail)&&y.scrollChipIntoView(W)};
return y};
_.R(pS,_.cQ);pS.prototype.attached=function(){var y=_.p(this.hostElement).querySelector("#scroll-container");y.addEventListener("wheel",this.boundWheelScroll);y.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);y.style.touchAction="pan-y";y.addEventListener("pointerdown",this.boundScrollContainerMouseDown);y.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
pS.prototype.detached=function(){var y=_.p(this.hostElement).querySelector("#scroll-container");y.removeEventListener("wheel",this.boundWheelScroll);y.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);y.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);y.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
pS.prototype.reset=function(){this.set("offset",0);_.Lv(this,this.setContainerWidthDiff);Pm(this)};
var IB=function(y,W){return Math.min(Math.max(W,0),y.containerWidthDiff)};
pS.prototype.onMouseUp=function(){this.dragging=!1};
pS.prototype.transformContainer=function(){this.offset=IB(this,this.offset);var y=_.Nn("HTML_DIR")==="rtl"?"":"-";_.p(this.hostElement).querySelector("#chips").style.transform="translateX("+y+this.offset+"px)";Pm(this)};
var Pm=function(y){_.Lv(y,y.setButtonsState)};
pS.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=IB(this,this.offset));this.atStart=this.offset<=0};
pS.prototype.setContainerWidthDiff=function(){var y=_.p(this.hostElement).querySelector("#scroll-container"),W=_.p(this.hostElement).querySelector("#chips");y&&W&&(this.containerWidthDiff=W.clientWidth-y.clientWidth)};
pS.prototype.scrollChipIntoView=function(y){var W=_.p(this.hostElement).querySelector("#scroll-container");if(W){var c=this.atStart?0:106,Z=this.atEnd?0:106;y.offsetLeft<this.offset+c?this.offset=IB(this,y.offsetLeft-c):y.offsetLeft+y.clientWidth>this.offset+W.clientWidth-Z&&(this.offset=IB(this,y.offsetLeft+y.clientWidth+Z-W.clientWidth))}};
var JQ=pS;JQ.prototype.transformContainer=JQ.prototype.transformContainer;_.x([_.L({value:0}),_.e("design:type",Number)],JQ.prototype,"offset",void 0);_.x([_.L({value:!0,reflectToAttribute:!0}),_.e("design:type",Boolean)],JQ.prototype,"atStart",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],JQ.prototype,"atEnd",void 0);_.x([_.L(),_.e("design:type",Number)],JQ.prototype,"scrollDistance",void 0);
_.x([_.H("offset"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JQ.prototype,"transformContainer",null);JQ=_.x([_.ZV()],JQ);var spV;var u78;var XdW=_.Ax(function(y){var W=y.data;y=_.z(_.G9(!1,void 0,"icHmSe"));var c=y.next().value,Z=y.next().value;y={};y=_.Mi("ytChipShapeChip",function(){a:switch(W==null?void 0:W().state){case 0:var u="ytChipShapeActive";break a;case 1:u="ytChipShapeDisabled";break a;default:u="ytChipShapeInactive"}return u},function(){var u=W().type===1||W().type===2,t=W();
return u||t!=null&&t.startIcon?t==null||!t.startIcon||t!=null&&t.text?u?"ytChipShapeEndIconPadding":(t==null?0:t.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(y.ytChipShapeFocused=function(){var u;
return c()&&((u=W())==null?void 0:u.state)!==1},y));
var G=function(u){if((W==null?void 0:W().state)!==1){var t,b;(b=(t=W()).onTap)==null||b.call(t,u)}},D=_.j9(function(){var u=_.U().resolve(_.xN(_.ml));
if(u){Z(u.isKeyBoardInUse());var t,b;(b=(t=W()).onFocusIn)==null||b.call(t)}return!1}),Y=_.j9(function(){Z(!1);
return!1});
return _.X("chip-shape",{class:"ytChipShapeHost","on:focusin":D,"on:focusout":Y},_.X(tCm,{shouldWrapInButton:function(){return W().type!==2},
selected:function(){return W().state===0},
onClick:G,isDropdown:function(){return W().type===1},
accessibilityLabel:function(){return W().accessibilityLabel}},_.X("div",{class:y},_.X(_.YN,{cond:function(){return W().startIcon},
then:function(){return _.X(_.Gb,{icon:function(){var u;return(u=W())==null?void 0:u.startIcon},
className:function(){return W().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return W().text},_.X(n8W,{shape:W,
onClick:G}))))},"mb");
XdW.idomCompat=!0;var tCm=_.Ax(function(y){var W=_.j9(function(c){y.onClick(c);return!1});
return _.X(_.YN,{cond:y.shouldWrapInButton,then:function(){return _.X("button",{class:"ytChipShapeButtonReset","on:click":W,role:function(){return y.isDropdown()?"combobox":"tab"},
"aria-label":y.accessibilityLabel,"aria-selected":y.selected},y.children)},
else:function(){return y.children}})},"nb"),n8W=_.Ax(function(y){var W=y.shape;
var c=y.onClick;var Z=_.j9(function(G){c(G);return!1});
return _.X(_.u1,null,_.X(_.sE,{when:function(){return W().type===1}},function(){return _.X(_.Gb,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.X(_.sE,{when:function(){return W().type===2}},function(){return _.X("button",{class:"ytChipShapeButtonReset",
"on:click":Z},_.X(_.Gb,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.X(_.sE,{when:function(){return W().type===0}},function(){return _.X(_.a2,null)}))},"ob");_.A3(XdW,"chip-shape",{props:{data:_.Ix}});var bz8=function(){var y=_.v.apply(this,arguments)||this;y.disableDeselectEvent=!1;y.modern=_.O("web_modern_typography");y.useChipShape=_.O("web_chip_shape_defrag");y.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return y};
_.R(bz8,_.v);_.f=bz8.prototype;_.f.beforeRegister=function(){_.O("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.f.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.f.onSelectChipCommand=function(y){if(!this.selected&&this.data&&(y=_.g(y,Fz2),y.targetId&&y.targetId===this.data.targetId))this.onTap()};
_.f.onFilterChipTransformCommand=function(y){if(!this.selected&&this.data){var W;(y=(W=_.g(y,RGV))==null?void 0:W.chipUniqueId)&&y===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.f.dataChanged=function(){var y=this;_.Lv(this,function(){y.data&&y.data.isSelected&&!y.selected&&(y.scrollChipIntoView(),y.onTap())})};
_.f.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.f.computeChipStyle=function(y){return y!=null?y:"STYLE_DEFAULT"};
_.f.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.GG(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.GG(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.f.onFocus=function(){var y=_.U().resolve(_.xN(_.ml));y&&y.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.f.scrollChipIntoView=function(){_.Z2(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.dJ.Object.defineProperties(bz8.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Fof({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
var Vm=bz8;Vm.prototype.onFocus=Vm.prototype.onFocus;Vm.prototype.onTap=Vm.prototype.onTap;Vm.prototype.selectionChanged=Vm.prototype.selectionChanged;Vm.prototype.dataChanged=Vm.prototype.dataChanged;_.x([_.C(_.XB),_.e("design:type",Object)],Vm.prototype,"ironButtonState",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Vm.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Vm.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.uO),_.e("design:type",Object)],Vm.prototype,"ironA11yKeysBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Vm.prototype,"disableDeselectEvent",void 0);_.x([_.L(),_.e("design:type",Object)],Vm.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.icon"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Vm.prototype,"hasIcon",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data.uniqueId"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Vm.prototype,"isGnomeChip",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Vm.prototype,"modern",void 0);_.x([_.L({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.e("design:type",String)],Vm.prototype,"chipStyle",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Vm.prototype,"selected",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Vm.prototype,"useChipShape",void 0);_.x([_.A("data","selected"),_.e("design:type",Object),_.e("design:paramtypes",[])],Vm.prototype,"chipShapeData",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Vm.prototype,"dataChanged",null);_.x([_.H("selected"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Vm.prototype,"selectionChanged",null);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Vm.prototype,"onTap",null);_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Vm.prototype,"onFocus",null);Vm=_.x([_.n6({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Vm);
_.T(Vm,"yt-chip-cloud-chip-renderer",function(){if(u78===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;spV===void 0&&(spV=document.createElement("template"));var Z=spV;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);u78=y}y=u78;return y},{mode:2});var r88=function(){var y=_.v.apply(this,arguments)||this;y.isDarkTheme=!1;y.notSticky=!1;y.transparentBackground=!1;y.shouldHide=!1;y.disableSticky=!1;y.fluidWidth=!1;y.isClipList=!1;y.defaultChipIndex=0;y.isPlaylist=!1;y.playlistVotingAnimationEnabled=_.O("web_enable_voting_animation");y.toolbarHeight=0;y.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return y};
_.R(r88,_.v);_.f=r88.prototype;
_.f.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}}}}}};
_.f.attached=function(){var y=this;document.addEventListener("scroll",_.qO(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var W;this.toolbarHeight=((W=document.querySelector("ytd-masthead"))==null?void 0:W.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(c){y.handleIntersect(c)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){y.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.f.detached=function(){var y;(y=this.intersectionObserver)==null||y.disconnect();var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("scroll",_.qO(this,this.updateChipBarWidthAndTop))};
_.f.dataChanged=function(){var y=this,W,c,Z;((Z=_.g((W=this.data)==null?void 0:(c=W.contents)==null?void 0:c[0],HFJ))==null?void 0:Z.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var G=this.findSelectedChipIndex();this.selectedIndex!==G&&(this.selectedIndex=-1);_.Lv(this,function(){y.selectedIndex=G;y.updating=!1;y.ytScrollableChipCloudBehavior.reset()})};
_.f.findSelectedChipIndex=function(){var y;if((y=this.data)==null||!y.contents)return 0;y=this.data.contents;for(var W=0;W<y.length;W++){var c=void 0;if((c=_.g(y[W],HFJ))==null?0:c.isSelected)return W}return 0};
_.f.computeStyle=function(y){return y};
_.f.handleChipCloudChipSelectAction=function(y){y=this.JSC$13794_chipsSelector.indexOf(y);y>-1&&this.JSC$13794_chipsSelector.selectIndex(y)};
_.f.handleChipCloudChipDeselectAction=function(){if(_.O("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],HFJ))==null?void 0:c.navigationEndpoint;Z&&_.GG(this.hostElement,"yt-browse-section-list-reload-endpoint",[Z]);this.JSC$13794_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.f.onGuideIsExpandedChanged=function(){var y=this.ytScrollableChipCloudBehavior;_.Lv(y,y.setContainerWidthDiff);Pm(this.ytScrollableChipCloudBehavior)};
_.f.onResize=function(){var y=this.ytScrollableChipCloudBehavior;_.Lv(y,y.setContainerWidthDiff);Pm(this.ytScrollableChipCloudBehavior)};
_.f.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.f.handleIntersect=function(y){_.O("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||y[0].intersectionRatio===1)};
_.f.updateDimensions=function(){var y=this.ytRendererBehavior.parentComponent;if(y){var W,c=(W=y.headerElement)!=null?W:y;_.wM(this.hostElement,{"--ytd-rich-grid-chips-bar-width":c.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.f.updateSelectedIndexFromBinding=function(y){this.selectedIndex=y.detail.value};
_.f.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var y;(y=this.sortFilterHeaderRendererElement)==null||y.setAttribute("is-playlist-page-with-filters","")}};
_.f.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.jv({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.dJ.Object.defineProperties(r88.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 y,W,c=(y=this.data)==null?void 0:(W=y.contents)==null?void 0:W.find(function(Z){return _.g(Z,Sx3)});
return{sortFilterHeaderRenderer:_.g(c,Sx3)}}}});
var CS=r88;CS.prototype.dispatchChipBarIsSticky=CS.prototype.dispatchChipBarIsSticky;CS.prototype.isPlaylistPageChanged=CS.prototype.isPlaylistPageChanged;CS.prototype.updateChipBarWidthAndTop=CS.prototype.updateChipBarWidthAndTop;CS.prototype.onResize=CS.prototype.onResize;CS.prototype.onGuideIsExpandedChanged=CS.prototype.onGuideIsExpandedChanged;CS.prototype.dataChanged=CS.prototype.dataChanged;
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],CS.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],CS.prototype,"ironResizableBehavior",void 0);_.x([_.C(),_.e("design:type",JQ)],CS.prototype,"ytScrollableChipCloudBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],CS.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],CS.prototype,"data",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],CS.prototype,"selectedIndex",void 0);_.x([_.L({value:320}),_.e("design:type",Number)],CS.prototype,"scrollDistance",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"isDarkTheme",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"notSticky",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"transparentBackground",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.e("design:type",String)],CS.prototype,"componentStyle",void 0);_.x([_.L({selector:_.EPI}),_.e("design:type",Boolean)],CS.prototype,"guideIsExpanded",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"shouldHide",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"disableSticky",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"fluidWidth",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"isClipList",void 0);_.x([_.L(),_.e("design:type",Object)],CS.prototype,"defaultChipIndex",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CS.prototype,"isPlaylist",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],CS.prototype,"playlistVotingAnimationEnabled",void 0);_.x([_.jj("#chips"),_.e("design:type",Object)],CS.prototype,"JSC$13794_chipsSelector",void 0);_.x([_.jj("ytd-sort-filter-header-renderer"),_.e("design:type",HTMLElement)],CS.prototype,"sortFilterHeaderRendererElement",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],CS.prototype,"updating",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],CS.prototype,"dataChanged",null);_.x([_.H("guideIsExpanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],CS.prototype,"onGuideIsExpandedChanged",null);
_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],CS.prototype,"onResize",null);_.x([_.Gs("isChannelPageGrid","disableSticky","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],CS.prototype,"updateChipBarWidthAndTop",null);_.x([_.A("componentStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],CS.prototype,"isChannelPageGrid",null);
_.x([_.A("componentStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],CS.prototype,"isHashtagLandingPage",null);_.x([_.H("isPlaylistPage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],CS.prototype,"isPlaylistPageChanged",null);_.x([_.A("componentStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],CS.prototype,"isPlaylistPage",null);
_.x([_.A("componentStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],CS.prototype,"isDisableDeselectEvent",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],CS.prototype,"sortFilterHeaderRendererData",null);_.x([_.L({reflectToAttribute:!0,selector:_.CAO}),_.e("design:type",String)],CS.prototype,"frostedGlassMode",void 0);
_.x([_.H("notSticky"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],CS.prototype,"dispatchChipBarIsSticky",null);CS=_.x([_.d({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],CS);
_.T(CS,"ytd-feed-filter-chip-bar-renderer",function(){if(mXi!==void 0)return mXi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mXi=y},{mode:1});var F55;var UXJ=_.Ax(function(y){var W=y.data;var c=y.buttonIndex;var Z=y.selectedIndex;var G=y.onSelect;var D=function(){return c()===Z()},Y=function(){var t,b;
return(b=(t=W().text)==null?void 0:t.content)!=null?b:""};
_.j9(function(){});
y=_.EV();var u=_.j9(function(){G(W().onSubmitCommand);return!1});
return _.X("yt-toggleable-image-button-view-model",{class:function(){var t={};t=(t["toggleable-image-button-view-model-wiz"]=!0,t[""]=!0,t["toggleable-image-button-view-model-wiz__semi-transparent"]=Z()!==-1&&!D(),t);return _.wZ(t)},
tabindex:0,"aria-label":Y,"aria-pressed":D,role:"button","on:keydown":y,"on:click":u},_.X(_.YN,{cond:function(){return W().logo},
then:function(t){return _.X(_.J3,{data:t,className:function(){var b={};b=(b["toggleable-image-button-view-model-wiz__image"]=!0,b["toggleable-image-button-view-model-wiz__circular-radius"]=!(!W().backgroundColor||!W().backgroundColorDarkMode),b["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(D()&&W().backgroundColor&&W().backgroundColorDarkMode),b);return _.wZ(b)},
alt:Y,useWidth:!1,style:function(){if(D()&&W().backgroundColor&&W().backgroundColorDarkMode){var b=Ot(Number(W().backgroundColorDarkMode),"1");var r=Ot(Number(W().backgroundColor),"1");b="background: linear-gradient(180deg,"+b+","+r+") border-box;"}else b="";return b}})}}),_.X(_.zb,{model:{borderRadius:"16px"}}),_.X("p",{class:function(){var t={};
t=(t["toggleable-image-button-view-model-wiz__label"]=!0,t["toggleable-image-button-view-model-wiz__bold-text"]=D(),t);return _.wZ(t)}},_.X(_.Da,{text:function(){return W().text}})))},"pb");
UXJ.idomCompat=!0;var K5V=_.Ax(function(y){var W=y.data;y=_.z(_.G9({index:-1,command:{}},void 0,"Zcqtsb"));var c=y.next().value,Z=y.next().value;return _.X("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.X("div",{class:"nudge-form-view-model-wiz__form-options"},_.X(_.bg,{data:function(){return W().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(G,D){return _.X(UXJ,{data:G.data,buttonIndex:D,selectedIndex:function(){return c().index},
onSelect:function(Y){Z({index:D(),command:Y})}})}})),_.X(_.Da,{text:function(){return W().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.X("div",{class:"nudge-form-view-model-wiz__submit"},_.X(_.bg,{data:function(){return W().submitButton}},{buttonViewModel:function(G){return _.X($X0,{data:G.data,
isDisabled:function(){return c().index===-1},
onClick:function(){_.OH(c().command)}})}})))},"qb");
K5V.idomCompat=!0;var $X0=_.Ax(function(y){var W=_.Yk(function(){return Object.assign({},y.data(),{state:y.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.X(_.OV,{data:W,onClick:y.onClick})},"rb");_.A3(K5V,"yt-nudge-form-view-model",{props:{data:_.Ix}});var Oz5=function(){var y=_.v.apply(this,arguments)||this;y.roundedContainer=!0;y.buttonUpdate=_.O("web_modern_buttons");y.isDarkMode=!1;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return y};
_.R(Oz5,_.v);_.f=Oz5.prototype;_.f.computeNudgeStyle=function(y){return y?"modernized-nudge":""};
_.f.handleDarkModeToggledAction=function(y){this.isDarkMode=y};
_.f.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.f.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"}}}};
_.f.computeIsHorizontalButtons=function(y){return y?!!y.applyModernizedStyle&&!!y.enableHorizontalButtons&&!!y.secondaryButton:!1};
_.dJ.Object.defineProperties(Oz5.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.backgroundStyle)!=null?W:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.contentsLocation)!=null?W:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null?0:y.lightIconImage)}}});
var Qm=Oz5;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],Qm.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Qm.prototype,"actionHandlerBehavior",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("isHideEnclosingAction"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Qm.prototype,"isHidden",null);_.x([_.L(),_.e("design:type",Object)],Qm.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Qm.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Qm.prototype,"buttonUpdate",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.e("design:type",String)],Qm.prototype,"nudgeStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.trimStyle"),_.e("design:type",String),_.e("design:paramtypes",[])],Qm.prototype,"trimStyle",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.backgroundStyle"),_.e("design:type",String),_.e("design:paramtypes",[])],Qm.prototype,"backgroundStyle",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data.contentsLocation"),_.e("design:type",String),_.e("design:paramtypes",[])],Qm.prototype,"contentsLocation",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.disableDropShadow"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Qm.prototype,"noShadow",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.lightIconImage"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Qm.prototype,"noIcon",null);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.e("design:type",Boolean)],Qm.prototype,"isHorizontalButtons",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Object)],Qm.prototype,"isDarkMode",void 0);Qm=_.x([_.d({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Qm);
_.T(Qm,"ytd-feed-nudge-renderer",function(){if(F55!==void 0)return F55;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return F55=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var g8V;var RBi;var AQ=function(){var y=_.v.apply(this,arguments)||this;y.collapsed=!1;y.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return y};
_.R(AQ,_.v);AQ.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"}}}};
AQ.prototype.handleRatingSelect=function(){var y;((y=this.data)==null?0:y.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
AQ.prototype.handleShowSurvey=function(){this.collapsed=!1};
var hQ=AQ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],hQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],hQ.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],hQ.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.OO),_.e("design:type",Object)],hQ.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hQ.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],hQ.prototype,"collapsed",void 0);hQ=_.x([_.d({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],hQ);
_.T(hQ,"ytd-slimline-survey-renderer",function(){if(RBi!==void 0)return RBi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return RBi=y},{mode:1});var lwJ;var E8i=function(){return _.v.apply(this,arguments)||this};
_.R(E8i,_.v);E8i.prototype.maybeGetBackgroundColor=function(y){return this.isDarkMode?y.section2Color:y.section3Color};
E8i.prototype.colorPaletteChanged=function(){var y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;y&&(y==null?0:y.secondaryTitleColor)&&this.maybeGetBackgroundColor(y)?(this.hostElement.style.backgroundColor=_.$$(this.maybeGetBackgroundColor(y)),this.hostElement.style.color=_.$$(y.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
var Bm=E8i;Bm.prototype.colorPaletteChanged=Bm.prototype.colorPaletteChanged;_.x([_.C(_.$s),_.e("design:type",Object)],Bm.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Bm.prototype,"data",void 0);_.x([_.L({selector:function(y){return y.ui.darkModeIsEnabled}}),
_.e("design:type",Boolean)],Bm.prototype,"isDarkMode",void 0);_.x([_.L(),_.e("design:type",Object)],Bm.prototype,"lightColorPalette",void 0);_.x([_.L(),_.e("design:type",Object)],Bm.prototype,"darkColorPalette",void 0);_.x([_.H("darkColorPalette","lightColorPalette","data","isDarkMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Bm.prototype,"colorPaletteChanged",null);Bm=_.x([_.d({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Bm);
_.T(Bm,"ytd-endorsement-header-renderer",function(){if(lwJ!==void 0)return lwJ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return lwJ=y},{mode:1});_.A3(_.gx,"yt-decorated-avatar-view-model",{props:{data:_.Ix,className:_.Ix}});var NBm=function(){var y=_.v.apply(this,arguments)||this;y.fullHeight=_.O("web_rich_grid_media_full_height");y.showChannelAvatar=!0;y.hasPlaylistThumbnail=!1;y.prepareThumbnailForPageTransition=function(){_.O("web_thumbnail_to_watch_transition")&&(y.thumbnail.style.viewTransitionName="thumbnail-to-watch",y.cleanupThumbnailAfterPageTransition(y.thumbnail))};
return y};
_.R(NBm,_.v);_.f=NBm.prototype;
_.f.configureRendererStamper=function(){return{lazyLoadMenu:Zc,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"}}}};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.shouldLazyLoadMenu=function(){var y=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.O("kevlar_modern_downloads_page")||!y};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13820_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:this.JSC$13820_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.f.getVideoPreviewOpts=function(){var y={},W;if((W=this.data)==null?0:W.multipleInlinePlaybackEndpoint)y=iJV;this.isRadio&&(y=x$J);return _.O("web_thumbnail_to_watch_transition")?Object.assign({},y,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):y};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$13820_inlinePreviewHoverListener)==null||js(y)};
_.f.getOwner=function(){var y,W,c;return((y=this.data)==null?void 0:(W=y.channelThumbnailSupportedRenderers)==null?void 0:W.channelThumbnailWithLinkRenderer)||_.g((c=this.data)==null?void 0:c.showProviderChannelThumbnail,AUW)};
_.f.updateLockupSize=function(){var y;((y=this.getOwner())==null?0:y.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.f.getFeedbackEndpoint=function(y){if(_.g(y,_.Na))return y;var W,c;y=(c=(W=_.g(y,_.uN))==null?void 0:W.commands)!=null?c:[];W=_.z(y);for(c=W.next();!c.done;c=W.next())if(c=this.getFeedbackEndpoint(c.value))return c;return null};
_.f.computeNavigationEndpoint=function(y){return COw(y==null?void 0:y.navigationEndpoint)};
_.f.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var y=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(y)!==JSON.stringify(this.data)&&this.set("data",y)}};
_.f.onDataChanged=function(){var y=this,W=this.getOwner();if(W){this.set("data.owner",W);var c,Z,G,D,Y,u=((c=this.data)==null?void 0:(Z=c.shortBylineText)==null?void 0:(G=Z.runs)==null?void 0:(D=G[0])==null?void 0:D.text)||((Y=W.name)==null?void 0:Y.simpleText);this.set("data.owner.title",u)}var t,b,r,F,K,l;W=((t=this.data)==null?void 0:(b=t.thumbnailRenderer)==null?void 0:b.playlistVideoThumbnailRenderer)||((r=this.data)==null?void 0:(F=r.thumbnailRenderer)==null?void 0:F.playlistCustomThumbnailRenderer)||
((K=this.data)==null?void 0:(l=K.thumbnailRenderer)==null?void 0:l.showCustomThumbnailRenderer);var N;((N=this.data)==null?0:N.thumbnail)||!W||this.set("data.thumbnail",W.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){y.updateLockupSize()});
var P;if(t=((P=this.data)==null?void 0:P.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(t);var V;((V=this.dismissActionToReplayEntity)==null?0:V.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.f.onHiddenChanged=function(){this.updateLockupSize()};
_.f.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.GG(this.hostElement,"yt-terminate-video-preview-action");else{var y;(y=this.videoTitleLink)==null||y.focus()}};
_.f.metadataColorChanged=function(){var y;if(this.metadataColor&&((y=this.videoTitle)==null?0:y.style))this.videoTitle.style.color=_.$$(this.metadataColor);else{var W,c;!this.metadataColor&&((W=this.videoTitle)==null?0:(c=W.style)==null?0:c.color)&&(this.videoTitle.style.color="")}};
_.f.onDetailsClick=function(y){var W=this.computedNavigationEndpoint;W&&(_.Cx(_.Aq(y),this.hostElement,["A","BUTTON"])||_.Z2(this.hostElement,"yt-navigate",{endpoint:W}))};
_.f.cleanupThumbnailAfterPageTransition=function(y){_.A3w(document,"yt-page-type-changed",function(){y.style.viewTransitionName=""})};
_.f.onRendererTap=function(){this.prepareThumbnailForPageTransition();var y,W,c=((y=this.data)==null?void 0:y.serviceEndpoint)||this.getFeedbackEndpoint((W=this.data)==null?void 0:W.navigationEndpoint);c&&_.g(c,_.Na)&&this.ytComponentBehavior.resolveCommand(c)};
_.f.onMouseDown=function(y){var W=y.target,c=this.computedNavigationEndpoint,Z;y=W.href||((Z=_.g(c==null?void 0:c.commandMetadata,_.kT))==null?void 0:Z.url);Z=W.data||c;y&&Z&&vJI(y,Z)};
_.f.computeVideoTitleText=function(){var y;if((y=this.data)==null?0:y.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.f.computeHasPlaylistThumbnail=function(y){var W,c,Z,G,D;if((((W=y.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((c=y.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer)||((Z=y.thumbnailRenderer)==null?0:Z.showCustomThumbnailRenderer)||((G=y.thumbnailRenderer)==null?0:G.playlistVideoThumbnailRenderer)||((D=y.thumbnailRenderer)==null?0:D.playlistCustomThumbnailRenderer))&&y.thumbnailOverlays)for(W=0;W<y.thumbnailOverlays.length;W++)if(c=void 0,(c=y.thumbnailOverlays[W])==
null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.dJ.Object.defineProperties(NBm.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.O("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var y;return(y=this.data)==null?void 0:y.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var y;return(y=this.data)==null?void 0:y.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$13820_inlinePreviewHoverListener)==null?0:Em(y))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.b4a(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.videoId)||((W=this.data)==null?void 0:W.playlistId)||""}}});
var Hm=NBm;Hm.prototype.onMouseDown=Hm.prototype.onMouseDown;Hm.prototype.metadataColorChanged=Hm.prototype.metadataColorChanged;Hm.prototype.onIsDismissedChanged=Hm.prototype.onIsDismissedChanged;Hm.prototype.onHiddenChanged=Hm.prototype.onHiddenChanged;Hm.prototype.onDataChanged=Hm.prototype.onDataChanged;Hm.prototype.handleReloadDownloadsInfo=Hm.prototype.handleReloadDownloadsInfo;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Hm.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],Hm.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],Hm.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Hm.prototype,"ytdReduxBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Hm.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],Hm.prototype,"entitySelectorType",void 0);_.x([_.L(),_.e("design:type",Boolean)],Hm.prototype,"noEndpoints",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Hm.prototype,"isRadio",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],Hm.prototype,"miniMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Hm.prototype,"fullHeight",void 0);
_.x([_.L(),_.e("design:type",Boolean)],Hm.prototype,"showDarkVideoMetadata",void 0);_.x([_.L(),_.e("design:type",Boolean)],Hm.prototype,"showLightVideoMetadata",void 0);_.x([_.L(),_.e("design:type",Number)],Hm.prototype,"metadataColor",void 0);_.x([_.L(),_.e("design:type",Object)],Hm.prototype,"showChannelAvatar",void 0);_.x([_.L(),_.e("design:type",Boolean)],Hm.prototype,"hidden",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],Hm.prototype,"showYtInteraction",void 0);
_.x([_.L(),_.e("design:type",String)],Hm.prototype,"dismissedContentId",void 0);_.x([_.L({selectorArgs:["dismissedContentId"],selector:lMI}),_.e("design:type",Object)],Hm.prototype,"dismissActionToReplayEntity",void 0);
_.x([_.L({selectorArgs:["entitySelectorType","mediaId"],selector:function(y,W,c){if(_.O("kevlar_modern_downloads_page")&&c&&W&&W!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Z=BFa(y,c);if(Z){W=_.Iv(y,c);var G=P$(y,c),D=eDO(y,c);y=JK(y,c);var Y=lrF(Z,W,G,D);G=Y.shortViewCountText;var u=Y.publishedTimeText;Y=Y.badges;var t=y>0;D=gSD(Z,W,D,y);Z=_.Xj(W)||W==="TRANSFER_STATE_FAILED"||W==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!nq(Z.policyEntity)?
void 0:JkI(c,y,Z.videoEntity.lengthSeconds);W==="TRANSFER_STATE_PAUSED_BY_USER"&&c&&!_.O("dl_resume_click_killswitch")&&(Z={offlineVideoEndpoint:{videoId:c,action:"ACTION_RESUME"}});c={shortViewCountText:G,publishedTimeText:u,badges:Y,isWatched:t,navigationEndpoint:Z,thumbnailOverlays:D}}else c=void 0;return c;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(W=HHO(y,c))if(Z=_.pq(y,c),D=_.L_1(y,c),Z!=="TRANSFER_STATE_UNKNOWN"){c=RZh(W,Z,D,c,VzE(y));break a}c=void 0}return c;default:_.Rs(new _.ul("Error: entitySelectorType defined but not matched in selector.",
y,W))}}}),
_.e("design:type",Object)],Hm.prototype,"entityDrivenState",void 0);_.x([_.L({computed:"computeVideoTitleText(data)"}),_.e("design:type",Object)],Hm.prototype,"videoTitleText",void 0);_.x([_.L({computed:"computeHasPlaylistThumbnail(data)"}),_.e("design:type",Object)],Hm.prototype,"hasPlaylistThumbnail",void 0);_.x([_.L({computed:"computeNavigationEndpoint(data)"}),_.e("design:type",Object)],Hm.prototype,"computedNavigationEndpoint",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Hm.prototype,"typographyBump",void 0);_.x([_.A("typographyBump"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Hm.prototype,"typographyBumpV2",null);_.x([_.jj("#video-title"),_.e("design:type",HTMLElement)],Hm.prototype,"videoTitle",void 0);_.x([_.jj("#video-title-link"),_.e("design:type",HTMLElement)],Hm.prototype,"videoTitleLink",void 0);
_.x([_.jj("#thumbnail"),_.e("design:type",HTMLElement)],Hm.prototype,"thumbnail",void 0);_.x([_.jj("#dismissible"),_.e("design:type",HTMLElement)],Hm.prototype,"JSC$13820_dismissibleMedia",void 0);_.x([_.A("data.menu"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hm.prototype,"lazyLoadMenu",null);_.x([_.A("data.menu"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hm.prototype,"immediateLoadMenu",null);
_.x([_.Gs("entityDrivenState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Hm.prototype,"handleReloadDownloadsInfo",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Hm.prototype,"onDataChanged",null);_.x([_.Gs("hidden"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Hm.prototype,"onHiddenChanged",null);
_.x([_.H("isDismissed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Hm.prototype,"onIsDismissedChanged",null);_.x([_.H("metadataColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Hm.prototype,"metadataColorChanged",null);_.x([_.B("mousedown"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Hm.prototype,"onMouseDown",null);
_.x([_.A("lockupIsHovered"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Hm.prototype,"isHovered",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Hm.prototype,"useAvatar",null);_.x([_.A("data","entitySelectorType"),_.e("design:type",String),_.e("design:paramtypes",[])],Hm.prototype,"mediaId",null);Hm=_.x([_.d({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Hm);
var IwE=_.a5()(Hm,"ytd-rich-grid-media",function(){if(g8V!==void 0)return g8V;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return g8V=y},{mode:_.xm("kevlar_poly_si_batch_j072")?1:2});var pdZ;var PHT=function(){var y=_.v.apply(this,arguments)||this;y.removeMaxWidth=!0;y.insetMetadata=!1;return y};
_.R(PHT,_.v);_.f=PHT.prototype;_.f.configureRendererStamper=function(){return{innerMenu:Zc,outerMenu:Object.assign({},Zc,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.onDataChanged=function(){var y,W=((y=this.data)==null?void 0:y.trackingParams)||"";W&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(W));var c;((c=this.dismissActionToReplayEntity)==null?0:c.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13826_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:this.JSC$13826_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:kdI})};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$13826_inlinePreviewHoverListener)==null||js(y)};
_.f.onRendererTap=function(){var y,W,c=(y=this.data)==null?void 0:(W=y.serviceEndpoints)==null?void 0:W[0];_.g(c,_.Na)&&this.componentBehavior.resolveCommand(c)};
_.f.onDetailsClick=function(y){var W,c=(W=this.data)==null?void 0:W.navigationEndpoint;c&&(_.Cx(_.Aq(y),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(c))};
_.f.onShow=function(){var y=this.data;y.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(y.onFirstVisibleCommand),delete y.onFirstVisibleCommand)};
_.dJ.Object.defineProperties(PHT.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var y;return this.insetMetadata?void 0:(y=this.data)==null?void 0:y.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var y;return this.insetMetadata?(y=this.data)==null?void 0:y.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var y=this.data;if(y!=null&&y.badge&&(y=_.g(y.badge,JAZ))){var W,c,Z;return[{metadataBadgeRenderer:{label:((W=y.label)==null?void 0:(c=W.runs)==null?void 0:c[0].text)||((Z=y.label)==null?void 0:Z.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var y=this.data;return Object.assign({},y.headline,{accessibility:y.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return this.isSlimShort?(y=this.computedTitle)==null?void 0:(W=y.accessibility)==null?void 0:(c=W.accessibilityData)==null?void 0:c.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$13826_inlinePreviewHoverListener)==null?0:Em(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var LS=PHT;LS.prototype.onDataChanged=LS.prototype.onDataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],LS.prototype,"componentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],LS.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.OO),_.e("design:type",Object)],LS.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],LS.prototype,"ytdReduxBehavior",void 0);_.x([_.jj("ytd-thumbnail"),_.e("design:type",HTMLElement)],LS.prototype,"thumbnail",void 0);_.x([_.jj("#dismissible"),_.e("design:type",HTMLElement)],LS.prototype,"JSC$13826_dismissibleMedia",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],LS.prototype,"removeMaxWidth",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],LS.prototype,"insetMetadata",void 0);_.x([_.L(),_.e("design:type",String)],LS.prototype,"dismissedContentId",void 0);_.x([_.L({selectorArgs:["dismissedContentId"],selector:lMI}),_.e("design:type",Object)],LS.prototype,"dismissActionToReplayEntity",void 0);_.x([_.A("insetMetadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],LS.prototype,"thumbnailObjectFit",null);
_.x([_.A("data","insetMetadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],LS.prototype,"innerMenu",null);_.x([_.A("data","insetMetadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],LS.prototype,"outerMenu",null);_.x([_.L(),_.e("design:type",Object)],LS.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],LS.prototype,"miniMode",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],LS.prototype,"onDataChanged",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],LS.prototype,"shortsBadges",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],LS.prototype,"isShort",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],LS.prototype,"isSlimShort",null);
_.x([_.A("data","isShort"),_.e("design:type",Object),_.e("design:paramtypes",[])],LS.prototype,"computedTitle",null);_.x([_.A("isSlimShort","computedTitle"),_.e("design:type",Object),_.e("design:paramtypes",[])],LS.prototype,"computedAccessibilityLabel",null);_.x([_.A("lockupIsHovered"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],LS.prototype,"isHovered",null);LS=_.x([_.d({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],LS);
_.T(LS,"ytd-rich-grid-slim-media",function(){if(pdZ!==void 0)return pdZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return pdZ=y},{mode:_.xm("kevlar_poly_si_batch_j063")?1:2});var J8T;var VCW;var vm=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(vm,_.v);vm.prototype.computeIcon=function(y){return y&&y.iconType?"yt-sys-icons:"+y.iconType.toLowerCase():""};
vm.prototype.onMouseEnter=function(){this.isHovered=!0};
vm.prototype.onMouseLeave=function(){this.isHovered=!1};
var dd=vm;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],dd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],dd.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],dd.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],dd.prototype,"isHovered",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dd.prototype,"darkerDarkTheme",void 0);dd=_.x([_.d({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],dd);
_.T(dd,"ytd-expand-on-hover-card-renderer",function(){if(VCW!==void 0)return VCW;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return VCW=y},{mode:1});var CHm,QpV=function(){if(CHm!==void 0)return CHm;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return CHm=y};_.bv("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var A8V=function(){var y=_.v.apply(this,arguments)||this;y.compactStyle=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(A8V,_.v);_.f=A8V.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.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"}}}};
_.f.computeHideDot=function(y){return!(y&&y.subscriberCountText&&y.videoCountText)||this.compactStyle};
_.f.hasDualButtons=function(y){return y&&y.purchaseButton&&y.subscribeButton};
_.f.backgroundColorChanged=function(){if(this.data!==void 0){var y=this.data.backgroundColor;this.isDarkTheme&&(y=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=y!=null?_.$$(y):"transparent"}};
_.f.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.onTap=function(y){var W,c,Z=((W=this.data)==null?void 0:W.navigationEndpoint)||((c=this.data)==null?void 0:c.serviceEndpoint);_.g(Z,_.kY)&&(Z&&_.U().resolve(_.i1).resolveCommand(Z,{form:{element:this.hostElement}}),y.preventDefault())};
_.f.computeChannelEndpoint=function(y){return _.g(y,_.kY)?null:y};
_.f.computeHrefEndpoint=function(y){return _.g(y,_.kY)?null:this.componentBehavior.computeHref_(y)};
_.f.computeChannelRendererStyle=function(y){return y};
_.f.computeIconSize=function(y){return y?108:136};
_.dJ.Object.defineProperties(A8V,{template:{configurable:!0,enumerable:!0,get:function(){return QpV()}}});
var S4=A8V;S4.prototype.backgroundColorChanged=S4.prototype.backgroundColorChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],S4.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],S4.prototype,"componentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],S4.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],S4.prototype,"isDarkTheme",void 0);_.x([_.L({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.e("design:type",String)],S4.prototype,"channelRendererStyle",void 0);_.x([_.L({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],S4.prototype,"dualButtons",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs")}}),
_.e("design:type",Boolean)],S4.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],S4.prototype,"biggerThumbStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],S4.prototype,"compactStyle",void 0);_.x([_.H("data","isDarkTheme"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],S4.prototype,"backgroundColorChanged",null);S4=_.x([_.d({is:"ytd-channel-renderer",disableElementRegistration:!0})],S4);_.T(S4,"ytd-channel-renderer",function(){return QpV()},{mode:1});var hBQ;var BB8;_.bv("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Hz5=function(){var y=_.v.apply(this,arguments)||this;y.displayItemCount=2;y.collections=_.O("web_modern_collections_v2");y.hasPlaylistThumbnail=!1;y.stackThumbnailSize="large";return y};
_.R(Hz5,_.v);_.f=Hz5.prototype;_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.f.computeFirstVideos=function(y,W){return y&&W?y.slice(0,W):[]};
_.f.computeThumbnailWidth=function(y,W){return y?W==="BIG"?500:W==="MASSIVE"?600:W==="MEDIUM"?450:420:360};
_.f.computeThumbnailHeight=function(y,W){return y?W==="BIG"?280:W==="MASSIVE"?337:234:202};
_.f.clearInlinePreviewHoverListeners=function(){var y;(y=this.JSC$13839_inlinePreviewHoverListener)==null||js(y)};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13839_inlinePreviewHoverListener=BG({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:iJV,thumbnailElement:this.thumbnail})};
_.f.computeHasPlaylistThumbnail=function(y){var W,c;if((((W=y.thumbnailRenderer)==null?0:W.playlistVideoThumbnailRenderer)||((c=y.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer))&&y.thumbnailOverlays)for(W=0;W<y.thumbnailOverlays.length;W++)if(c=void 0,(c=y.thumbnailOverlays[W])==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.dJ.Object.defineProperties(Hz5.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.JSC$13839_inlinePreviewHoverListener)==null?0:Em(y))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var TK=Hz5;TK.prototype.dataChanged=TK.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],TK.prototype,"ytdLockupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TK.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],TK.prototype,"displayItemCount",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs")}}),
_.e("design:type",Boolean)],TK.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],TK.prototype,"biggerThumbsStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],TK.prototype,"collections",void 0);_.x([_.L({computed:"computeHasPlaylistThumbnail(data)"}),_.e("design:type",Object)],TK.prototype,"hasPlaylistThumbnail",void 0);_.x([_.L(),_.e("design:type",String)],TK.prototype,"stackThumbnailSize",void 0);_.x([_.jj("ytd-thumbnail"),_.e("design:type",HTMLElement)],TK.prototype,"thumbnail",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TK.prototype,"dataChanged",null);_.x([_.A("lockupIsHovered"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],TK.prototype,"isHovered",null);TK=_.x([_.d({is:"ytd-radio-renderer",disableElementRegistration:!0})],TK);
_.T(TK,"ytd-radio-renderer",function(){if(BB8!==void 0)return BB8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return BB8=y},{mode:_.xm("kevlar_poly_si_batch_j058")?1:2});var L5Q;_.bv("itemSectionRenderer","showRenderer","ytd-show-renderer");var aB=function(){return _.v.apply(this,arguments)||this};
_.R(aB,_.v);aB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
aB.prototype.computeThumbnailWidth=function(y){return y?360:246};
aB.prototype.computeUseProminentThumbs=function(y){return y};
var xC=aB;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xC.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],xC.prototype,"isSearch",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.e("design:type",Boolean)],xC.prototype,"useProminentThumbs",void 0);xC=_.x([_.d({is:"ytd-show-renderer",disableElementRegistration:!0})],xC);
_.T(xC,"ytd-show-renderer",function(){if(L5Q!==void 0)return L5Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return L5Q=y},{mode:1});_.bv("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var v8J=function(){var y=_.v.apply(this,arguments)||this;y.isRichGrid=!1;return y};
_.R(v8J,_.v);v8J.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"}}}}}};
var ia=v8J;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ia.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ia.prototype,"isRichGrid",void 0);ia=_.x([_.d({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],ia);
_.T(ia,"ytd-feed-entry-renderer",function(){if(hBQ!==void 0)return hBQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return hBQ=y},{mode:1});var dXE;var Swm=function(){return _.v.apply(this,arguments)||this};
_.R(Swm,_.v);Swm.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
var Mm=Swm;_.x([_.C(_.$s),_.e("design:type",Object)],Mm.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Mm.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Mm.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.lo,value:3}),_.e("design:type",Number)],Mm.prototype,"itemsPerRow",void 0);
Mm=_.x([_.d({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Mm);
_.T(Mm,"ytd-link-card-renderer",function(){if(dXE!==void 0)return dXE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dXE=y},{mode:1});var TBE;var awQ=function(){return _.v.apply(this,arguments)||this};
_.R(awQ,_.v);_.f=awQ.prototype;_.f.configureRendererStamper=function(){return{"data.menu":Zc,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.onRendererTap=function(y){if(!this.ytdDismissibleItemBehavior.isDismissed){var W,c=(W=this.data)==null?void 0:W.navigationEndpoint;c&&!_.Cx(_.Aq(y),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(c)?_.Cx(_.Aq(y),this.hostElement,["A"])||_.Z2(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c,{}))}};
_.f.maybeComputeHref=function(y){return this.ytComponentBehavior.computeHref_(y,!0)};
_.f.getNavigationCommand=function(y){return this.isNavigationCommand(y)?y:null};
_.f.isNavigationCommand=function(y){return y?_.g(y,_.oW)||_.g(y,_.Sb)||_.g(y,_.CD)?!0:!1:!1};
var e4=awQ;e4.prototype.onRendererTap=e4.prototype.onRendererTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],e4.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],e4.prototype,"data",void 0);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],e4.prototype,"onRendererTap",null);e4=_.x([_.d({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],e4);
_.T(e4,"ytd-lumiere-promo-item-image-renderer",function(){if(TBE!==void 0)return TBE;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return TBE=y},{mode:1});var xXV;var izQ=function(){return _.v.apply(this,arguments)||this};
_.R(izQ,_.v);izQ.prototype.computeLandscapeThumbnail=function(){var y;return((y=this.data)==null?void 0:y.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
var wd=izQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],wd.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wd.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],wd.prototype,"miniMode",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.lo}),_.e("design:type",Number)],wd.prototype,"itemsPerRow",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.e("design:type",Boolean)],wd.prototype,"landscapeThumbnail",void 0);wd=_.x([_.d({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],wd);
_.T(wd,"ytd-lumiere-shelf-details-renderer",function(){if(xXV!==void 0)return xXV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return xXV=y},{mode:_.xm("kevlar_poly_si_batch_j076")?1:2});var MCi;var eB8=function(){return _.v.apply(this,arguments)||this};
_.R(eB8,_.v);eB8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var qm=eB8;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qm.prototype,"data",void 0);qm=_.x([_.d({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],qm);
_.T(qm,"ytd-primetime-promo-details-renderer",function(){if(MCi!==void 0)return MCi;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return MCi=y},{mode:1});var wd0;var qw8=function(){return _.v.apply(this,arguments)||this};
_.R(qw8,_.v);var kC=qw8;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kC.prototype,"data",void 0);kC=_.x([_.d({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],kC);
_.T(kC,"ytd-panel-show-style-metadata-renderer",function(){if(wd0!==void 0)return wd0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return wd0=y},{mode:1});var k_5;var jyi=function(){return _.v.apply(this,arguments)||this};
_.R(jyi,_.v);_.f=jyi.prototype;_.f.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.f.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.f.computeThumbnail=function(y){if(y)return y.smallFormFactorBackgroundThumbnail||y.largeFormFactorBackgroundThumbnail};
_.f.maybeComputeHref=function(y){return this.ytComponentBehavior.computeHref_(y,!0)};
_.f.isNavigationCommand=function(y){return y?_.g(y,_.oW)||_.g(y,_.Sb)||_.g(y,_.CD)?!0:!1:!1};
_.f.getNavigationCommand=function(y){return this.isNavigationCommand(y)?y:null};
var jk=jyi;jk.prototype.onPanelTap=jk.prototype.onPanelTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],jk.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jk.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],jk.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0,value:_.O("web_modern_buttons")}),_.e("design:type",Boolean)],jk.prototype,"modernButtons",void 0);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jk.prototype,"onPanelTap",null);jk=_.x([_.d({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],jk);
_.T(jk,"ytd-primetime-promo-panel-renderer",function(){if(k_5!==void 0)return k_5;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return k_5=y},{mode:1});_.A3(_.Ax(function(y){y=_.V0(y,{data:{},useFullWidth:!1});var W=y.data,c=y.useFullWidth,Z=function(){return W().caption},G=function(){return W().image},D=function(){return _.UH(W().onTap)};
y={};y=_.Mi("ytTeaserCardViewModelHost",(y.ytTeaserCardViewModelUseFullWidth=function(){return c()},y));
return _.X("teaser-card-view-model",{class:y},_.X(_.YN,{cond:function(){return D()},
then:function(){return _.X(Zki,{className:"ytTeaserCardViewModelLink",command:D,forceNewState:!0,useATagConfig:!0},_.X("div",{class:"ytTeaserCardViewModelImageContainer"},_.X(_.YN,{cond:G,then:function(Y){return _.X(_.J3,{data:Y,className:"ytTeaserCardViewModelImage",alt:""})}})),_.X("p",{class:"ytTeaserCardViewModelCaption"},Z))}}))},"sb"),"teaser-card-view-model",{props:{data:_.Ix,
useFullWidth:_.Ix}});var yi8=new _.Sm("RICH_GRID_VIDEO_RENDERER_TOKEN");_.A3(_.Ax(function(y){var W=y.data;var c=y.showYtInteractionInContent;var Z=function(){return!!W().selectableFeedback};
y=_.z(_.G9(!1,void 0,"nblDw"));var G=y.next().value,D=y.next().value;_.rj(function(){var K=_.g(W().primaryButton,_.F5);(K==null?0:K.isToggled)&&D(K.isToggled)});
y=_.j9(function(K){if(!Z())return!1;if(G()){var l;var N=(l=W().selectableFeedback)==null?void 0:l.onDeselect}else{var P;N=(P=W().selectableFeedback)==null?void 0:P.onSelect}N&&_.OH(N,{form:{element:K.target}});D(!G());if(K=_.g(W().primaryButton,_.F5))K.isToggled=G();return!1});
var Y=function(){if(!Z()){var K,l=(K=W().loggingDirectives)==null?void 0:K.trackingParams;l&&_.yk(_.U().resolve(_.oZ),l)}},u=_.rb1(),t=function(){var K;
return Z()?(K=W().selectableFeedback)==null?void 0:K.a11yLabel:void 0},b=function(){return Z()?{toggled:G()}:{}},r=_.U().resolve(_.xN(yi8)),F={};
return _.X("yt-feedback-item-renderer",{class:_.Mi("ytFeedbackItemRendererHost",(F.ytFeedbackItemRendererSelectableFeedback=Z,F)),"on:click":y,"on:keydown":u,title:t,"aria-label":t,"aria-pressed":function(){return Z()?G():void 0},
tabindex:function(){return Z()?0:void 0},
role:function(){return Z()?"button":void 0}},_.X("div",{class:"ytFeedbackItemRendererContentContainer"},_.X(_.bg,{data:function(){return W().content}},{videoRenderer:function(K){return _.X(r,{data:K.data,
showYtInteraction:c})},
lockupViewModel:function(K){return _.X(ZW,{data:K.data,containerType:2})}})),_.X("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.X(_.bg,{data:function(){return W().primaryButton}},{toggleButtonViewModel:function(K){return _.X(_.UV,{data:K.data,
buttonShapeOverrides:b,disableExplicitClickLogging:!0,onToggle:Y})}})))},"tb"),"yt-feedback-item-renderer",{props:{data:_.Ix,
showYtInteractionInContent:_.Ix}});var Ww0=function(){var y=_.v.apply(this,arguments)||this;y.isShortsGrid=!1;y.isCompactGrid=!1;y.isShortsPanelGrid=!1;y.renderedFromRichGrid=!1;y.isInFirstColumn=!1;y.noGutterMargins=!1;y.isInlineGroupItem=!1;y.insetMetadata=!1;y.noBottomMarginInAds=_.O("web_no_bottom_margin_for_home_ad_buttons");y.force16By9ThumbnailAspectRatio=!1;y.useCompactList=!1;y.containerType=2;y.thumbnailTargetWidth=9999;y.isResponsiveGrid=!1;y.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};
y.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};y.hoverListener=y.hover.bind(y);y.leaveListener=y.leave.bind(y);y.highlighted=!1;y.JSC$13874_unsubscribeFromInlinePreviewIsActive=function(){};
return y};
_.R(Ww0,_.v);_.f=Ww0.prototype;_.f.computeContainerType=function(){return this.useCompactList?3:2};
_.f.computeThumbnailTargetWidth=function(){var y;return(y=this.itemWidth)!=null?y:9999};
_.f.updateIsInFirstColumn=function(){var y;this.isInFirstColumn=((y=this.data)==null?void 0:y.colIndex)===0};
_.f.observerContainerType=function(){if(this.lockup){var y=this.lockup;y.containerType=this.containerType;y.sizing=this.sizing;y.typographyBump=this.typographyBump;y.itemWidth=this.itemWidth}this.richGridMedia&&_.O("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump)};
_.f.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]]"}},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]]"}}}}}};
_.f.leave=function(y){y=y.relatedTarget;var W=document.querySelector("ytd-video-preview");y&&W&&_.x$(W).contains(y)||this.removeAndCleanupHighlight()};
_.f.hover=function(){var y;if(!this.highlighted&&(!_.O("web_enable_rich_item_on_focus_effect")||(y=this.data)!=null&&y.onFocusEffect)){var W,c;((W=this.data)==null?void 0:(c=W.onFocusEffect)==null?void 0:c.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(y=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:y,boxShadow:"0 0 0 10px "+y}));var Z,G;((Z=this.data)==null?void 0:(G=Z.onFocusEffect)==null?void 0:
G.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.f.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};
_.f.registerHoverHighlightListeners=function(){var y=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13874_unsubscribeFromInlinePreviewIsActive=_.ot(_.Sv(),_.p0O,function(W){y.highlighted&&!W&&y.removeAndCleanupHighlight()})};
_.f.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13874_unsubscribeFromInlinePreviewIsActive()};
_.f.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.f.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.f.getBackgroundColor=function(){var y,W,c=(y=this.data)==null?void 0:(W=y.onFocusEffect)==null?void 0:W.onFocusColor;if(c){if(document.documentElement.hasAttribute("dark")&&(c==null?0:c.darkTheme))return _.$$(c==null?void 0:c.darkTheme);if(c==null?0:c.lightTheme)return _.$$(c==null?void 0:c.lightTheme)}};
_.f.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var y=_.NR(),W,c,Z;y&&((W=this.data)==null?0:W.trackingParams)&&((c=this.data)==null?void 0:c.colIndex)!=null&&((Z=this.data)==null?void 0:Z.rowIndex)!=null&&_.aP(y,_.Dz(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.f.isSlimMediaRenderer=function(y){return!!_.g(y==null?void 0:y.content,_.z8W)||!!_.g(y==null?void 0:y.content,DEE)||!!_.g(y==null?void 0:y.content,_.gR)||!!_.g(y==null?void 0:y.content,IuV)};
_.f.isPostRenderer=function(){var y,W;return!!_.g((y=this.data)==null?void 0:y.content,UKE)||!!_.g((W=this.data)==null?void 0:W.content,$KW)};
_.f.computeIsGameCardShelf=function(){var y;return!!_.g((y=this.data)==null?void 0:y.content,rJi)};
_.f.computeIsMiniGameCardShelf=function(){var y,W;return!!_.g((y=this.data)==null?void 0:y.content,VXW)||!!_.g((W=this.data)==null?void 0:W.content,CpE)};
_.f.computeIsTeaserCard=function(){var y;return!!_.g((y=this.data)==null?void 0:y.content,CpE)};
_.f.computeIsSelectableFeedbackItem=function(){var y,W;return!((W=_.g((y=this.data)==null?void 0:y.content,_.AJ5))==null||!W.selectableFeedback)};
_.f.computeContainsLumierePosters=function(){var y,W;return((W=_.g((y=this.data)==null?void 0:y.content,PU5))==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.f.computeIsExpandOnHoverCardShelf=function(){var y;return!!_.g((y=this.data)==null?void 0:y.content,pPT)};
_.f.computeIsLinkCardShelf=function(){var y;return!!_.g((y=this.data)==null?void 0:y.content,U7Q)};
_.f.computeIsReelItemStyleAvatarCircle=function(y){var W;return((W=_.g(y==null?void 0:y.content,_.gR))==null?void 0:W.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.f.computeIsLinkCardFullWidth=function(y,W){var c;return((c=_.g(y==null?void 0:y.content,U7Q))==null?void 0:c.useFullWidth)||W<=2};
_.dJ.Object.defineProperties(Ww0.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&&_.O("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.O("web_enable_rich_item_on_focus_effect")||_.O("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.O("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.O("web_shorts_2_by_3_lockups_study")||_.O("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
var yG=Ww0;yG.prototype.richGridHoverHighlightChanged=yG.prototype.richGridHoverHighlightChanged;yG.prototype.observerContainerType=yG.prototype.observerContainerType;yG.prototype.updateIsInFirstColumn=yG.prototype.updateIsInFirstColumn;_.x([_.C(_.$s),_.e("design:type",Object)],yG.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],yG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],yG.prototype,"ytdLockupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yG.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.e("design:type",Boolean)],yG.prototype,"isPost",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.e("design:type",Boolean)],yG.prototype,"containsLumierePosters",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.e("design:type",Boolean)],yG.prototype,"isSlimMedia",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.e("design:type",Boolean)],yG.prototype,"isGameCardShelf",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.e("design:type",Boolean)],yG.prototype,"isMiniGameCardShelf",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.e("design:type",Boolean)],yG.prototype,"isTeaserCard",void 0);_.x([_.L({computed:"computeIsSelectableFeedbackItem(data)"}),_.e("design:type",Boolean)],yG.prototype,"isSelectableFeedbackItem",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"isShortsGrid",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],yG.prototype,"isSlimGrid",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"isCompactGrid",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"isShortsPanelGrid",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.e("design:type",Boolean)],yG.prototype,"isExpandOnHoverCardShelf",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.e("design:type",Boolean)],yG.prototype,"isLinkCardShelf",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.lo,value:3}),_.e("design:type",Number)],yG.prototype,"itemsPerRow",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"renderedFromRichGrid",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"isInFirstColumn",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"noGutterMargins",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"isInlineGroupItem",void 0);_.x([_.L(),_.e("design:type",Object)],yG.prototype,"insetMetadata",void 0);
_.x([_.L(),_.e("design:type",Object)],yG.prototype,"noBottomMarginInAds",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],yG.prototype,"isShelfItem",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.e("design:type",Boolean)],yG.prototype,"isReelItemStyleAvatarCircle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.e("design:type",Boolean)],yG.prototype,"isLinkCardFullWidth",void 0);
_.x([_.L(),_.e("design:type",Object)],yG.prototype,"force16By9ThumbnailAspectRatio",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"useCompactList",void 0);_.x([_.L(),_.e("design:type",String)],yG.prototype,"sizing",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],yG.prototype,"typographyBump",void 0);_.x([_.L(),_.e("design:type",Number)],yG.prototype,"itemWidth",void 0);_.x([_.L(),_.e("design:type",Boolean)],yG.prototype,"isHomeShelf",void 0);
_.x([_.jj("yt-lockup-view-model"),_.e("design:type",HTMLElement)],yG.prototype,"lockup",void 0);_.x([_.jj("ytd-rich-grid-media"),_.e("design:type",HTMLElement)],yG.prototype,"richGridMedia",void 0);_.x([_.L({computed:"computeContainerType(useCompactList)"}),_.e("design:type",Object)],yG.prototype,"containerType",void 0);_.x([_.L({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.e("design:type",Object)],yG.prototype,"thumbnailTargetWidth",void 0);
_.x([_.A("showYtInteractionOnRichItem"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],yG.prototype,"showYtInteractionOnRichGridMedia",null);_.x([_.A("isSelectableFeedbackItem","richGridHoverHighlight"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],yG.prototype,"showYtInteractionOnRichItem",null);_.x([_.A("typographyBump"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],yG.prototype,"richTypographyBump",null);
_.x([_.L({reflectToAttribute:!0}),_.A("isShortsGrid","isCompactGrid"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],yG.prototype,"richGridHoverHighlight",null);_.x([_.A("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.e("design:type",Number),_.e("design:paramtypes",[])],yG.prototype,"shortsLockupViewModelAspectRatio",null);_.x([_.A("isInlineGroupItem"),_.e("design:type",Number),_.e("design:paramtypes",[])],yG.prototype,"shortsLockupViewModelScrimStyle",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yG.prototype,"updateIsInFirstColumn",null);_.x([_.H("containerType","sizing","typographyBump"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yG.prototype,"observerContainerType",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yG.prototype,"isResponsiveGrid",void 0);_.x([_.L(),_.e("design:type",Object)],yG.prototype,"lockupExperiments",void 0);
_.x([_.H("richGridHoverHighlight"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yG.prototype,"richGridHoverHighlightChanged",null);yG=_.x([_.d({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],yG);
_.ciV=_.a5()(yG,"ytd-rich-item-renderer",function(){if(J8T===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);J8T=y}y=J8T;return y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var N9I={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var ABO=_.Lq(_.bN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var ZIJ;var GoE=function(){var y=_.v.apply(this,arguments)||this;y.useResponsiveGrid=!1;y.hidden=!1;y.standardShelfMargins=_.O("web_rich_grid_standard_shelf_margins");y.isShowMoreHidden=!1;y.isExpanded=!1;y.isInnerShelf=!1;y.allVideosCount=0;y.allPlaylistCount=0;y.haveSmartDownloadsCompleted=!1;y.isShowLessHidden=!0;y.restrictContentsOverflow=!1;y.firstShownIndex=0;y.horizontalOffset=0;y.atEnd=!0;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};y.nextClick=function(){var W;(W=y.data)!=null&&W.contents&&(y.firstShownIndex+=y.currentElementsPerRow,y.updateHorizontalOffset(),y.updateHorizontalItemVisibility())};
y.previousClick=function(){var W;(W=y.data)!=null&&W.contents&&(y.firstShownIndex-=y.currentElementsPerRow,y.updateHorizontalOffset(),y.updateHorizontalItemVisibility())};
return y};
_.R(GoE,_.v);_.f=GoE.prototype;
_.f.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:_.Nn("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.f.attached=function(){this.requestElementsPerRow()};
_.f.refreshGridLayoutNew=function(){var y;if((y=this.data)!=null&&y.contents&&this.containerWidth){var W;((W=this.data.responsiveContainerConfiguration)==null?0:W.responsiveSize)?(y=_.H3I(this.data.responsiveContainerConfiguration,this.containerWidth),y=_.S8(Object.assign({},y,{standardUnitMinWidth:this.standardUnitMinWidth}))):y=_.S8({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=y.typographyBump;if(this.elementsPerRow!==
y.numItems||this.gutter!==y.gutter)this.elementsPerRow=y.numItems,this.gutter=y.gutter,this.itemWidth=y.itemWidth,_.wM(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":y.gutter+"px"})}};
_.f.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.O("web_use_layout_library_for_rich_grid_disable_shorts"))){var y=_.aIy(this.data);if(y)return y;if(_.O("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.f.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.O("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.f.computeButton=function(y){var W=_.g(y,_.RU);y=Object.assign({},_.g(y,_.RU));return W?(y.text||(y.text={simpleText:y.tooltip}),y.style="STYLE_MONO_OUTLINE",y.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",y):W};
_.f.onRowIndexChange=function(){var y=_.NR(),W,c;((W=this.data)==null?0:W.trackingParams)&&((c=this.data)==null?void 0:c.rowIndex)!=null&&y&&_.aP(y,_.Dz(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.f.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var y,W=((y=this.getRichItemRenderers()[0])==null?void 0:y.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*W;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.f.requestElementsPerRow=function(){_.Z2(this.hostElement,"yt-request-elements-per-row")};
_.f.onUpdateElementsPerRowAction=function(y,W,c,Z,G,D){if(this.containerWidth!==D&&(this.containerWidth=D,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&y&&W&&c&&Z&&G&&(this.elementsPerRow!==y||this.postsPerRow!==W||this.slimItemsPerRow!==c||this.gameCardsPerRow!==Z||this.miniGameCardsPerRow!==G)&&(this.elementsPerRow=y,this.postsPerRow=W,this.slimItemsPerRow=c,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=G,this.updateItemVisibility())};
_.f.getRichItemRenderers=function(){return _.p(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.f.updateItemVisibility=function(){var y=this;if(this.data&&this.data.contents){var W=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Z,G){var D;((D=y.data)==null?0:D.isExpanded)?(Z.hidden=G>W-1,Z.ytRendererBehavior.markDirty()):Z.hidden=G>y.currentElementsPerRow-1||G>W-1});
var c=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||c||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||c||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.f.setHeightToSingleRow=function(){var y=this.getRichItemRenderers(),W=Number.parseInt(getComputedStyle(y[0]).marginBottom,10)||0;y=y.slice(0,this.currentElementsPerRow).reduce(function(c,Z){return Math.max(c,Z.getBoundingClientRect().height+W)},0);
this.contents.style.height=y+"px"};
_.f.focusNextExpandedItem=function(){var y;((y=this.data)==null?0:y.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.f.focusItem=function(y,W){var c=this.getRichItemRenderers();if(c[y]&&(y=c[y].querySelector(".focus-on-expand"))){if(W){var Z;(Z=c[this.currentElementsPerRow])==null||Z.scrollIntoView({behavior:"smooth",block:"center"})}y.focus({preventScroll:!0})}};
_.f.onDataChange=function(){var y=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.Lv(this,function(){y.updateItemVisibility()});
var W;if((W=this.data)==null?0:W.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.wM(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),W=0;W<this.data.contents.length;W++){var c=_.g(this.data.contents[W],_.Fb)||{};c.colIndex=W;c.rowIndex=this.data.rowIndex}};
_.f.handleRerenderDownloadsData=function(){_.O("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())};
_.f.blockInlinePreview=function(y){var W=this,c;return _.m(function(Z){(c=W.inlinePreviewIsEnabled)&&W.ytdReduxBehavior.dispatch(_.ca8(!1));return Z.return(new Promise(function(G){y(function(){c&&W.ytdReduxBehavior.dispatch(_.ca8(!0));G()})}))})};
_.f.expandShelf=function(){var y=this;if(this.data){var W,c=(W=_.g(this.data.showMoreButton,_.RU))==null?void 0:W.trackingParams;c&&_.yk(_.Zz(),c);this.data.isExpanded=!0;this.blockInlinePreview(function(Z){y.setHeightToSingleRow();y.updateItemVisibility();y.contents.style.height=y.contents.scrollHeight+"px";_.KX.addJob(function(){y.contents.style.height="auto";y.focusNextExpandedItem();Z()},2,200)})}};
_.f.collapseShelf=function(){var y=this;return _.m(function(W){if(W.nextAddress==1){if(!y.data)return W.return();y.data.isExpanded=!1;return _.n(W,y.blockInlinePreview(function(c){y.contents.style.height=y.contents.scrollHeight+"px";y.setHeightToSingleRow();_.KX.addJob(function(){y.updateItemVisibility();y.contents.style.height="auto";c()},2,200)}),2)}_.Z2(y.hostElement,"yt-rich-shelf-renderer-collapse",y.data.trackingParams);
y.focusItem(0,!1);_.F2(W)})};
_.f.updateArrowButtonStatus=function(){var y=this.getRichItemRenderers().length;if(!_.O("web_rich_shelf_renderer_use_data_contents_killswitch")){var W,c;y=((W=this.data)==null?void 0:(c=W.contents)==null?void 0:c.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=y};
_.f.onChildElementFocus=function(y){this.hasChevronButtons&&(y=y.target.closest("#contents > *"),this.contents.contains(y)&&(y.offsetLeft<this.horizontalOffset?this.previousClick():y.offsetLeft+y.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.f.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Nn("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.f.updateHorizontalOffset=function(){var y=this.getRichItemRenderers(),W=y.length;if(!_.O("web_rich_shelf_renderer_use_data_contents_killswitch")){var c,Z;W=((c=this.data)==null?void 0:(Z=c.contents)==null?void 0:Z.length)||0}var G;y=((G=y[0])==null?void 0:G.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>W?this.firstShownIndex=W-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*y};
_.f.isSlimMediaShelfRenderer=function(){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb))==null?void 0:c.content;return!!(_.g(Z,_.z8W)||_.g(Z,DEE)||_.g(Z,_.gR)||_.g(Z,IuV))};
_.f.isGameCardShelf=function(){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb))==null?void 0:c.content;return!!_.g(Z,rJi)};
_.f.isGnomeShelf=function(){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb))==null?void 0:c.content;return!!_.g(Z,_.AJ5)};
_.f.isMiniGameCardShelf=function(){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb))==null?void 0:c.content;return!!_.g(Z,VXW)||!!_.g(Z,CpE)};
_.f.hasGameBoxArtAvatarStyle=function(){var y;return((y=this.data)==null?void 0:y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.f.hasRoundedGameBoxArtAvatarStyle=function(){var y;return((y=this.data)==null?void 0:y.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.f.isShortsShelf=function(){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb))==null?void 0:c.content;return!!_.g(Z,_.gR)||!!_.g(Z,IuV)};
_.f.isPostShelfRenderer=function(){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb))==null?void 0:c.content;return!(!_.g(Z,UKE)&&!_.g(Z,$KW))};
_.f.isLumiereShelf=function(){var y,W,c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb);return!!_.g(c==null?void 0:c.content,PU5)};
_.f.isLumiereShelfWithPosters=function(){var y,W,c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb),Z;return((Z=_.g(c==null?void 0:c.content,PU5))==null?void 0:Z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.f.isExpandOnHoverCardShelf=function(){var y,W,c,Z=(c=_.g((y=this.data)==null?void 0:(W=y.contents)==null?void 0:W[0],_.Fb))==null?void 0:c.content;return!!_.g(Z,pPT)};
_.f.computeHasFeaturedBadge=function(){var y,W,c=_.g((y=this.data)==null?void 0:(W=y.badges)==null?void 0:W[0],_.AhT);return c?c.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.f.computeHasPaygatedFeaturedBadge=function(){var y,W,c=_.g((y=this.data)==null?void 0:(W=y.badges)==null?void 0:W[0],_.AhT);return c?(c==null?void 0:c.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.f.computeHeaderHidden=function(){var y,W,c,Z,G,D;return!((y=this.data)==null?0:y.icon)&&!((W=this.data)==null?0:W.title)&&!((c=this.data)==null?0:c.subtitle)&&!((Z=this.data)==null?0:Z.thumbnail)&&!((G=this.data)==null?0:G.badges)&&!((D=this.data)==null?0:D.menu)};
_.f.showCtaButton=function(){var y;return!((y=this.data)==null||!y.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.f.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.f.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.f.computeForce16By9ThumbnailAspectRatio=function(){var y,W;return((y=this.data)==null?void 0:(W=y.responsiveContainerConfiguration)==null?void 0:W.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.f.onSectionReactiveDismissal=function(y,W,c){var Z,G;var D=(Z=this.data)==null?void 0:(G=Z.targetingContext)==null?void 0:G.targetGroupId;this&&D&&W.targetGroupId&&D.includes(W.targetGroupId)?(Z=this.rowIndex,y=Z===void 0?!1:!(W.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Z<=y)):y=!1;y&&(this.hidden=c)};
_.dJ.Object.defineProperties(GoE.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var y=this.elementsPerRow;this.isPostShelfRenderer()?y=this.postsPerRow:this.isSlimMediaShelfRenderer()?y=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?y=this.slimItemsPerRow-1:this.isGameCardShelf()?y=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(y=this.miniGameCardsPerRow);return y}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.O("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.previousButton)&&!((W=this.data)==null||!W.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var y;return((y=_.U().resolve(_.h7).getCurrentPage())==null?void 0:y.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;return!((y=this.data)==null?0:(W=y.thumbnail)==null?0:(c=W.accessibility)==null?0:(Z=c.accessibilityData)==null?0:Z.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
var WZ=GoE;WZ.prototype.onChildElementFocus=WZ.prototype.onChildElementFocus;WZ.prototype.handleRerenderDownloadsData=WZ.prototype.handleRerenderDownloadsData;WZ.prototype.onDataChange=WZ.prototype.onDataChange;WZ.prototype.onRowIndexChange=WZ.prototype.onRowIndexChange;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],WZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WZ.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.OO),_.e("design:type",Object)],WZ.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],WZ.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],WZ.prototype,"ytdReduxBehavior",void 0);_.x([_.L({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.e("design:type",Object)],WZ.prototype,"useResponsiveGrid",void 0);_.x([_.L(),_.e("design:type",Object)],WZ.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Number)],WZ.prototype,"standardUnitMinWidth",void 0);_.x([_.L({reflectToAttribute:!0,value:3}),_.e("design:type",Number)],WZ.prototype,"elementsPerRow",void 0);_.x([_.L({value:3}),_.e("design:type",Number)],WZ.prototype,"postsPerRow",void 0);_.x([_.L({value:6}),_.e("design:type",Number)],WZ.prototype,"slimItemsPerRow",void 0);_.x([_.L({value:6}),_.e("design:type",Number)],WZ.prototype,"gameCardsPerRow",void 0);
_.x([_.L({value:6}),_.e("design:type",Number)],WZ.prototype,"miniGameCardsPerRow",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WZ.prototype,"hidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WZ.prototype,"standardShelfMargins",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WZ.prototype,"isShowMoreHidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WZ.prototype,"isExpanded",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WZ.prototype,"isInnerShelf",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.e("design:type",Boolean)],WZ.prototype,"isShorts",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.e("design:type",Boolean)],WZ.prototype,"isLumiere",void 0);_.x([_.L({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.e("design:type",Boolean)],WZ.prototype,"hasBoxArtThumbnailStyle",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.e("design:type",Boolean)],WZ.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.e("design:type",Boolean)],WZ.prototype,"hasFeaturedBadge",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.e("design:type",Boolean)],WZ.prototype,"hasPaygatedFeaturedBadge",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.e("design:type",Boolean)],WZ.prototype,"isHeaderHidden",void 0);_.x([_.L({selector:_.hDH}),_.e("design:type",Object)],WZ.prototype,"allVideosCount",void 0);_.x([_.L({selector:B9O}),_.e("design:type",Object)],WZ.prototype,"allPlaylistCount",void 0);_.x([_.L({selector:iHH}),_.e("design:type",Object)],WZ.prototype,"haveSmartDownloadsCompleted",void 0);
_.x([_.L({selectorArgs:["entitySelectorType"],selector:function(y,W){if(_.O("kevlar_modern_downloads_page")&&W&&W!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var c=y.entities;switch(W){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":W=_.Kq(c);y=$D(W);var Z=_.bo(W);c=_.gu(c);c=_.wK(pl1(Z,c,W.length));return{contents:y,subtitle:c};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return c=_.Kq(c),{contents:$D(c)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return c=
_.Oq(c),{contents:$D(c)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return c=_.nPI(c),{contents:$D(c)};default:_.Rs(new _.ul("Error: entitySelectorType defined but not matched in selector.",y,W))}}}}),
_.e("design:type",Object)],WZ.prototype,"entityDrivenRichShelfData",void 0);_.x([_.L({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.e("design:type",Boolean)],WZ.prototype,"hasTopCtaButton",void 0);_.x([_.L({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.e("design:type",Boolean)],WZ.prototype,"hasBottomCtaButton",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.e("design:type",Boolean)],WZ.prototype,"force16By9ThumbnailAspectRatio",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WZ.prototype,"isShowLessHidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WZ.prototype,"restrictContentsOverflow",void 0);_.x([_.L({selector:_.PAt}),_.e("design:type",Boolean)],WZ.prototype,"inlinePreviewIsEnabled",void 0);
_.x([_.L({computed:"computeSizing(data)"}),_.e("design:type",String)],WZ.prototype,"sizing",void 0);_.x([_.L(),_.e("design:type",Boolean)],WZ.prototype,"typographyBump",void 0);_.x([_.L(),_.e("design:type",Number)],WZ.prototype,"itemWidth",void 0);_.x([_.L(),_.e("design:type",Object)],WZ.prototype,"firstShownIndex",void 0);_.x([_.L(),_.e("design:type",Object)],WZ.prototype,"horizontalOffset",void 0);_.x([_.L(),_.e("design:type",Object)],WZ.prototype,"atEnd",void 0);
_.x([_.jj("#contents"),_.e("design:type",HTMLElement)],WZ.prototype,"contents",void 0);_.x([_.H("data.rowIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WZ.prototype,"onRowIndexChange",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WZ.prototype,"onDataChange",null);
_.x([_.H("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WZ.prototype,"handleRerenderDownloadsData",null);_.x([_.B("focusin"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],WZ.prototype,"onChildElementFocus",null);_.x([_.L({reflectToAttribute:!0}),_.A("data","isHomePage"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WZ.prototype,"isTruncated",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WZ.prototype,"hideBottomDivider",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],WZ.prototype,"hasChevronButtons",null);_.x([_.A("firstShownIndex"),_.e("design:type",Object),_.e("design:paramtypes",[])],WZ.prototype,"previousButtonOverride",null);
_.x([_.A("atEnd"),_.e("design:type",Object),_.e("design:paramtypes",[])],WZ.prototype,"nextButtonOverride",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WZ.prototype,"isHomePage",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WZ.prototype,"thumbnailAriaHidden",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WZ.prototype,"initiallyIsExpanded",null);
_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],WZ.prototype,"entitySelectorType",null);WZ=_.x([_.d({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],WZ);
_.fDZ=_.a5()(WZ,"ytd-rich-shelf-renderer",function(){if(ZIJ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);ZIJ=y}y=ZIJ;return y},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var owT;var DxQ=function(){var y=_.v.apply(this,arguments)||this;y.tileLottieAnimationRef={};y.backgroundLottieAnimationRef={};y.isOnHoverBehaviorForLottieEnabled=!0;y.useBiggerShowcaseImage=_.O("enable_desktop_search_bigger_thumbs");y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return y};
_.R(DxQ,_.v);_.f=DxQ.prototype;_.f.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.f.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"}}}};
_.f.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var y=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);y!==this.hasTile&&this.set("hasTile",y);y=this.hasLogo(this.data)||!!this.data.badgeText;y!==this.hasMetadata&&this.set("hasMetadata",y);y=this.data.overflowButton?!1:y;y!==this.showLogoImage&&this.set("showLogoImage",y);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.f.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.f.currentColorChanged=function(){this.updateButtonPalette()};
_.f.computeBackgroundStyle=function(y){if(y&&this.data){var W=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Bh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&W.push('background-image: url("'+c+'");')}var Z;((Z=y.basicColorData)==null?void 0:Z.backgroundColor)!==void 0&&W.push("background-color: "+_.KZ(y.basicColorData.backgroundColor)+";");return W.join("")}};
_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y)};
_.f.getCurrentLogo=function(y,W){if(y)return W?y.darkLogoImage:y.lightLogoImage};
_.f.getCurrentStaticTileImage=function(y,W){if(this.hasStaticTile(y))return y.darkTileImage?W?y.darkTileImage:y.tileImage:y.tileImage};
_.f.computeTitleStyle=function(y){if(this.data&&this.data.title&&y&&y.basicColorData&&y.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.$$(y.basicColorData.foregroundTitleColor)+";"};
_.f.computeSubtitleStyle=function(y){if(this.data&&this.data.subtitle&&y&&y.basicColorData&&y.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.$$(y.basicColorData.foregroundBodyColor)+";"};
_.f.computeSupplementalStyle=function(y){if(this.data&&this.data.supplementalText&&y&&y.supplementalTextColor!==void 0)return y=_.$$(y.supplementalTextColor),"color:"+y+";--yt-endpoint-color:"+y+";--yt-endpoint-hover-color:"+y+";--yt-endpoint-visited-color:"+y+";--yt-formatted-string-bold-font-weight:700;"};
_.f.computeBadgeStyle=function(y){if(this.data&&this.data.badgeText&&y&&y.basicColorData&&y.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.$$(y.basicColorData.foregroundActivatedColor)+";"};
_.f.computeDismissIconStyle=function(y){var W,c;if((y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(y==null?0:(c=y.dismissButtonColorData)==null?0:c.backgroundColor))return"--yt-button-color:"+_.KZ(y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.KZ(y.dismissButtonColorData.backgroundColor)+";"};
_.f.computeOverflowIconStyle=function(y){var W,c;if((y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor)&&(y==null?0:(c=y.dismissButtonColorData)==null?0:c.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.KZ(y.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.KZ(y.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.KZ(y.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBannerStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.f.computeLocation=function(y){switch(y==null?void 0:y.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.f.shouldShowTileSection=function(y,W,c){return!this.shouldExpandLogo(y,W,c)&&W};
_.f.shouldShowExpandedLogoSection=function(y,W,c){return this.shouldExpandLogo(y,W,c)&&y!==void 0&&this.hasLogo(y)};
_.f.shouldExpandLogo=function(y,W,c){return y&&W?!1:c>=2};
_.f.hasStaticTile=function(y){return!(y==null||!y.tileImage)};
_.f.hasTileLottie=function(y){var W;return!!(y==null?0:(W=y.tileLottie)==null?0:W.url)};
_.f.hasLogo=function(y){return this.getCurrentLogo(y,this.isDarkTheme)!==void 0};
_.f.getLogoHeight=function(y){return this.logoWithPadding(y)?"26":"20"};
_.f.getExpandedLogoHeight=function(y){return this.logoWithPadding(y)?"31":"24"};
_.f.getLogoImageId=function(y){return this.logoWithPadding(y)?"logo-image-with-padding":"logo-image"};
_.f.hasBackgroundLottie=function(y){var W;return!!(y==null?0:(W=y.backgroundLottie)==null?0:W.url)};
_.f.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var y,W;(y=this.tileLottieAnimationRef)==null||(W=y.lottieEl)==null||W.play();var c,Z;(c=this.backgroundLottieAnimationRef)==null||(Z=c.lottieEl)==null||Z.play()}};
_.f.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var y,W;(y=this.tileLottieAnimationRef)==null||(W=y.lottieEl)==null||W.pause();var c,Z;(c=this.backgroundLottieAnimationRef)==null||(Z=c.lottieEl)==null||Z.pause()}};
_.f.pauseLottie=function(){var y,W;(y=this.tileLottieAnimationRef)==null||(W=y.lottieEl)==null||W.pause();var c,Z;(c=this.backgroundLottieAnimationRef)==null||(Z=c.lottieEl)==null||Z.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.f.performPrimaryButtonAction=function(){var y,W,c;((y=this.data)==null?0:(W=y.primaryButton)==null?0:(c=W.buttonRenderer)==null?0:c.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.f.requestElementsPerRow=function(){_.Z2(this.hostElement,"yt-request-elements-per-row")};
_.f.updateButtonPalette=function(){if(this.data&&this.currentColorData){var y;((y=this.data.dismissButton)==null?0:y.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var c;if((c=this.data.secondaryButton)==
null?0:c.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 Z;((Z=this.data.primaryButton)==null?0:Z.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var G;((G=this.data.secondaryButton)==null?0:G.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.f.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var y=this.getTileLottieDataBasedOnTheme(),W,c;if(y.url!==((W=this.tileLottiePlayerProps)==null?void 0:(c=W.animationConfig)==null?void 0:c.path)){var Z,G;(Z=this.tileLottieAnimationRef)==null||(G=Z.lottieEl)==null||G.destroy();var D;this.isOnHoverBehaviorForLottieEnabled=!((D=y.settings)==null?0:D.autoplay);var Y,u;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(u=(Y=y.settings)==null?void 0:Y.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof y.url==="string"?this.tileLottiePlayerProps.animationConfig.path=y.url:this.tileLottiePlayerProps.animationConfig.animationData=y.url}}};
_.f.getOverflowButton=function(y){return _.g(y.overflowButton,CXm)};
_.f.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var y=this.getBackgroundLottieDataBasedOnTheme(),W,c;if(y.url!==((W=this.backgroundLottiePlayerProps)==null?void 0:(c=W.animationConfig)==null?void 0:c.path)){var Z,G;(Z=this.backgroundLottieAnimationRef)==null||(G=Z.lottieEl)==null||G.destroy();var D;this.isOnHoverBehaviorForLottieEnabled=!((D=y.settings)==null?0:D.autoplay);var Y,u;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(u=(Y=y.settings)==null?void 0:Y.autoplay)!=null?u:!1,loop:this.getLottieLoopValue(y.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof y.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=y.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
y.url}}};
_.f.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var y;((y=this.tileLottieAnimationRef)==null?void 0:y.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var W;((W=this.backgroundLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.f.getTileLottieDataBasedOnTheme=function(){var y;if(this.isDarkTheme&&((y=this.data)==null?0:y.darkThemeTileLottie))return this.data.darkThemeTileLottie;var W;return((W=this.data)==null?0:W.tileLottie)?this.data.tileLottie:{}};
_.f.getBackgroundLottieDataBasedOnTheme=function(){var y;if(this.isDarkTheme&&((y=this.data)==null?0:y.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var W;return((W=this.data)==null?0:W.backgroundLottie)?this.data.backgroundLottie:{}};
_.f.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y)};
_.f.getLottieLoopValue=function(y){return y?y.loop!==void 0?y.loop:y.loopCount?y.loopCount-1:!0:!0};
_.f.logoWithPadding=function(y){var W,c,Z;return(y=(W=this.getCurrentLogo(y,this.isDarkTheme))==null?void 0:(c=W.thumbnails)==null?void 0:(Z=c[0])==null?void 0:Z.height)&&y%31===0?!0:!1};
var cZ=DxQ;cZ.prototype.currentColorChanged=cZ.prototype.currentColorChanged;cZ.prototype.themeChanged=cZ.prototype.themeChanged;cZ.prototype.dataChanged=cZ.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],cZ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],cZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],cZ.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],cZ.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"primaryButton",void 0);_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"secondaryButton",void 0);
_.x([_.L({reflectToAttribute:!0,value:3}),_.e("design:type",Number)],cZ.prototype,"elementsPerRow",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],cZ.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],cZ.prototype,"hasTile",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],cZ.prototype,"hasMetadata",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],cZ.prototype,"showLogoImage",void 0);_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"currentColorData",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.e("design:type",String)],cZ.prototype,"bannerStyle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.e("design:type",String)],cZ.prototype,"location",void 0);
_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"tileLottiePlayerProps",void 0);_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"tileLottieAnimationRef",void 0);_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"backgroundLottiePlayerProps",void 0);_.x([_.L(),_.e("design:type",Object)],cZ.prototype,"backgroundLottieAnimationRef",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],cZ.prototype,"useBiggerShowcaseImage",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],cZ.prototype,"isHideEnclosingAction",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cZ.prototype,"dataChanged",null);_.x([_.Gs("isDarkTheme"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cZ.prototype,"themeChanged",null);
_.x([_.Gs("currentColorData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cZ.prototype,"currentColorChanged",null);cZ=_.x([_.d({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],cZ);
_.T(cZ,"ytd-statement-banner-renderer",function(){if(owT!==void 0)return owT;var y=document.createElement("template");_.E(y,'\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="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="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return owT=y},{mode:1});var z7V;var YCZ=function(){var y=_.v.apply(this,arguments)||this;y.isSearch=!1;y.hideShelfHeader=!1;y.engagementPanel=!1;y.disableMouseScroll=!0;y.useFloorScrolling=!0;y.modernTypography=_.O("web_modern_typography");return y};
_.R(YCZ,_.v);YCZ.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.bN("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.bN("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
YCZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var Z6=YCZ;Z6.prototype.onDataChanged=Z6.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Z6.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Z6.prototype,"hideShelfHeader",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Z6.prototype,"engagementPanel",void 0);_.x([_.L(),_.e("design:type",Object)],Z6.prototype,"disableMouseScroll",void 0);_.x([_.L(),_.e("design:type",Object)],Z6.prototype,"useFloorScrolling",void 0);_.x([_.L(),_.e("design:type",Object)],Z6.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Z6.prototype,"modernTypography",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Z6.prototype,"onDataChanged",null);Z6=_.x([_.d({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Z6);
_.T(Z6,"ytd-reel-shelf-renderer",function(){if(z7V!==void 0)return z7V;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return z7V=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var mxT;var sy2=_.Ax(function(y){var W=y.data;y=y.useSmallFont;var c={},Z={};return _.X("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.X(_.YN,{cond:function(){return W().favicon},
then:function(G){return _.X(_.J3,{data:G,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.X("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.X(_.Da,{text:function(){return W().title},
className:_.Mi("yt-channel-external-link-view-model-wiz__title",(c["yt-channel-external-link-view-model-wiz__title--title-small-font"]=y,c)),ellipsisTruncate:!0,userInput:!0}),_.X(_.Da,{text:function(){return W().link},
className:_.Mi("yt-channel-external-link-view-model-wiz__link",(Z["yt-channel-external-link-view-model-wiz__link--link-small-font"]=y,Z)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"ub");
sy2.idomCompat=!0;_.A3(sy2,"yt-channel-external-link-view-model",{props:{data:_.Ix,useSmallFont:_.Ix}});_.bv("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var uJ2=function(){var y=_.v.apply(this,arguments)||this;y.revealButtonClass="button";y.businessEmailDisplayState="HIDE_SECTION";return y};
_.R(uJ2,_.v);_.f=uJ2.prototype;_.f.refit=function(){var y=this;_.O0(function(){_.fl(y.hostElement,"yt-refit-popups-action")});
_.Lv(this,function(){_.fl(y.hostElement,"yt-refit-popups-action")})};
_.f.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Vn("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.f.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"};
_.f.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.f.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"}}}};
_.f.computeEmailHref=function(y){return"mailto:"+y};
_.f.computeSafeUrl=function(y){if(y)return _.Jn(y)};
_.f.linkEndpoint=function(y){return _.g(y.onTap,_.Fx)};
_.f.linkEndpointToHref=function(y){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(y))};
_.f.onYtServiceRequestCompleted=function(y){var W;if((W=y.detail.data)==null?0:W.businessEmail)this.businessEmail=y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=y.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.f.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var y=this.JSC$13977_captchaTextarea.value;if(y){y={recaptcha_response_token:y,channel_id:this.metadata.channelId};var W=_.g(this.metadata.onBusinessEmailRevealClickCommand,_.Fx);W&&this.ytComponentBehavior.resolveCommand(W,{form:y})}}};
_.f.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.dJ.Object.defineProperties(uJ2.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var y;return _.g((y=this.data)==null?void 0:y.metadata,Q42)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.g(this.metadata.businessEmailRevealButton,_.ri)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var y=new URL(this.metadata.canonicalChannelUrl);return y.host+y.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 _.g(this.metadata.learnMoreOnTap,_.Fx)}}});
var Gn=uJ2;Gn.prototype.onYtServiceRequestCompleted=Gn.prototype.onYtServiceRequestCompleted;Gn.prototype.businessEmailMetadataChanged=Gn.prototype.businessEmailMetadataChanged;Gn.prototype.refit=Gn.prototype.refit;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Gn.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("#g-recaptcha-response"),_.e("design:type",HTMLTextAreaElement)],Gn.prototype,"JSC$13977_captchaTextarea",void 0);_.x([_.L(),_.e("design:type",Object)],Gn.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Gn.prototype,"revealButtonClass",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Gn.prototype,"metadata",null);
_.x([_.A("metadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],Gn.prototype,"revealButton",null);_.x([_.A("metadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],Gn.prototype,"channelDisplayUrl",null);_.x([_.Gs("metadata"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Gn.prototype,"refit",null);_.x([_.A("metadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],Gn.prototype,"formattedDescription",null);
_.x([_.A("metadata","learnMoreCommand"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Gn.prototype,"shouldRendereVerifiedPhoneStatus",null);_.x([_.A("metadata"),_.e("design:type",Object),_.e("design:paramtypes",[])],Gn.prototype,"learnMoreCommand",null);_.x([_.L(),_.e("design:type",String)],Gn.prototype,"businessEmailDisplayState",void 0);_.x([_.L(),_.e("design:type",String)],Gn.prototype,"businessEmail",void 0);
_.x([_.L(),_.e("design:type",String)],Gn.prototype,"businessEmailErrorMessage",void 0);_.x([_.Gs("metadata"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Gn.prototype,"businessEmailMetadataChanged",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Gn.prototype,"onYtServiceRequestCompleted",null);
Gn=_.x([_.d({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Gn);
_.T(Gn,"ytd-about-channel-renderer",function(){if(mxT!==void 0)return mxT;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mxT=y},{mode:1});var thE;var nw2=function(){return _.v.apply(this,arguments)||this};
_.R(nw2,_.v);var f9=nw2;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],f9.prototype,"data",void 0);f9=_.x([_.d({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],f9);
_.T(f9,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(thE!==void 0)return thE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return thE=y},{mode:1});var XCQ;var bIV=function(){return _.v.apply(this,arguments)||this};
_.R(bIV,_.v);bIV.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
var ou=bIV;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ou.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],ou.prototype,"aligment",void 0);ou=_.x([_.d({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ou);
_.T(ou,"ytd-channel-list-sub-menu-renderer",function(){if(XCQ!==void 0)return XCQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XCQ=
y},{mode:1});var rii;var FwV=function(){return _.v.apply(this,arguments)||this};
_.R(FwV,_.v);FwV.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}}}}}};
var D6=FwV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],D6.prototype,"data",void 0);D6=_.x([_.d({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],D6);
_.T(D6,"ytd-channel-sub-menu-renderer",function(){if(rii!==void 0)return rii;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return rii=y},{mode:1});var UxT;var $xm;var KwZ=function(){var y=_.v.apply(this,arguments)||this;y.isCompact=!1;return y};
_.R(KwZ,_.v);_.dJ.Object.defineProperties(KwZ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var y,W;return((W=_.g((y=this.data)==null?void 0:y.endpoint,_.CD))==null?void 0:W.target)==="TARGET_NEW_WINDOW"}}});
var zn=KwZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],zn.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zn.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zn.prototype,"isCompact",void 0);_.x([_.A("isCompact"),_.e("design:type",Number),_.e("design:paramtypes",[])],zn.prototype,"thumbnailWidth",null);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zn.prototype,"openNewWindow",null);zn=_.x([_.d({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],zn);
_.T(zn,"ytd-media-lockup-renderer",function(){if($xm!==void 0)return $xm;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return $xm=y},{mode:1});var OIT;var gwV=function(){return _.v.apply(this,arguments)||this};
_.R(gwV,_.v);var Yl=gwV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Yl.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Yl.prototype,"data",void 0);Yl=_.x([_.d({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Yl);
_.T(Yl,"ytd-structured-description-channel-lockup-renderer",function(){if(OIT!==void 0)return OIT;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return OIT=y},{mode:1});var R7V;var lDE=function(){var y=_.v.apply(this,arguments)||this;y.isCompact=!1;y.collections=_.O("web_modern_collections_v2");y.collectionsStackColor=_.O("modernize_structured_description_playlist_lockups_v2");return y};
_.R(lDE,_.v);lDE.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:_.O("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.dJ.Object.defineProperties(lDE.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G,D;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(c=this.data)==null?void 0:(Z=c.thumbnail)==null?void 0:Z.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(G=this.data)==null?void 0:(D=G.thumbnail)==
null?void 0:D.vibrantColorPalette:void 0}}}});
var mR=lDE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],mR.prototype,"componentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mR.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],mR.prototype,"showSidePanelThumbnailOverlay",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mR.prototype,"isCompact",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],mR.prototype,"collections",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mR.prototype,"collectionsStackColor",void 0);
_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],mR.prototype,"twoLineTitle",null);_.x([_.A("data","collections","collectionsStackColor"),_.e("design:type",Object),_.e("design:paramtypes",[])],mR.prototype,"collectionStack",null);mR=_.x([_.d({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],mR);
_.T(mR,"ytd-structured-description-playlist-lockup-renderer",function(){if(R7V!==void 0)return R7V;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return R7V=y},{mode:1});var Ewi;var NDQ=function(){return _.v.apply(this,arguments)||this};
_.R(NDQ,_.v);var sF=NDQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sF.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],sF.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sF.prototype,"data",void 0);sF=_.x([_.d({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],sF);
_.T(sF,"ytd-structured-description-video-lockup-renderer",function(){if(Ewi!==void 0)return Ewi;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Ewi=y},{mode:2});var IDm=function(){return _.v.apply(this,arguments)||this};
_.R(IDm,_.v);
IDm.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}}}}}};
var ub=IDm;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ub.prototype,"data",void 0);ub=_.x([_.d({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],ub);
_.T(ub,"ytd-compact-infocard-renderer",function(){if(UxT!==void 0)return UxT;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return UxT=y},{mode:1});var pCi;var PwE=function(){var y=_.v.apply(this,arguments)||this;y.useModernCollectionsV2=_.O("web_modern_collections_v2");return y};
_.R(PwE,_.v);PwE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.dJ.Object.defineProperties(PwE.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.O("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.O("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.O("kevlar_watch_feed_big_thumbs")?"":"94"}}});
var tr=PwE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],tr.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],tr.prototype,"ytdReduxBehavior",void 0);_.x([_.L({selector:_.R3}),_.e("design:type",Object)],tr.prototype,"isGridViewEnabled",void 0);
_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],tr.prototype,"watchFeedBigThumbs",null);_.x([_.A("isGridViewEnabled","data"),_.L({reflectToAttribute:!0,value:"168"}),_.e("design:type",String),_.e("design:paramtypes",[])],tr.prototype,"thumbnailWidth",null);_.x([_.A("isGridViewEnabled","data"),_.L({reflectToAttribute:!0,value:"94"}),_.e("design:type",String),_.e("design:paramtypes",[])],tr.prototype,"customThumbnailSize",null);
_.x([_.L(),_.e("design:type",Object)],tr.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tr.prototype,"useModernCollectionsV2",void 0);tr=_.x([_.d({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],tr);
_.T(tr,"ytd-compact-playlist-renderer",function(){if(pCi!==void 0)return pCi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return pCi=y},{mode:1});var JiJ;var VhV=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.roundedContainer=!0;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return y};
_.R(VhV,_.v);_.f=VhV.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.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"}}}};
_.f.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.f.computeViewStyle=function(y){return y.style?y.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.f.onUpdateElementsPerRowAction=function(y){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&y===1};
_.f.requestElementsPerRow=function(){_.Z2(this.hostElement,"yt-request-elements-per-row")};
var n9=VhV;n9.prototype.dataChanged=n9.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],n9.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],n9.prototype,"actionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],n9.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],n9.prototype,"hideThumbnail",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.e("design:type",String)],n9.prototype,"viewStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],n9.prototype,"darkerDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],n9.prototype,"roundedContainer",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],n9.prototype,"dataChanged",null);n9=_.x([_.d({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],n9);
_.T(n9,"ytd-compact-promoted-item-renderer",function(){if(JiJ!==void 0)return JiJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return JiJ=y},{mode:1});var CwV;var Xv=function(){var y=_.v.apply(this,arguments)||this;y.collections=_.O("web_modern_collections_v2");return y};
_.R(Xv,_.v);Xv.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Xv.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Xv.prototype.onYtNavigate=function(y,W){var c=this;if(W.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",W)){var Z=this.get("watchEndpoint.videoId",W.endpoint),G=_.fl(this.hostElement,"yt-get-current-video-id-action")[0];_.O("kevlar_mix_handle_first_endpoint_different")&&Z&&G&&Z!==G||(y.stopPropagation(),_.Lx().getPlayerPromise().then(function(D){if(D.getPlayerState()===0&&c.data.secondaryNavigationEndpoint)var Y=c.data.secondaryNavigationEndpoint;else{Y=
Object.assign({},W.endpoint);var u=_.g(Y.commandMetadata,_.kT);u&&(D=Math.floor(D.getCurrentTime()),u.url=_.HI(u.url,{t:D}),!_.O("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(u=_.g(Y,_.Sb)))&&(u.startTimeSeconds=D)}_.Z2(c.hostElement,"yt-navigate",{endpoint:Y})}))}};
_.dJ.Object.defineProperties(Xv.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.O("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.O("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G,D;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(y=this.data)==null?void 0:(W=y.thumbnail)==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(Z=c.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(G=this.data)==null?void 0:(D=G.thumbnail)==null?void 0:D.darkColorPalette,experimentEnabled:this.collections}}}});
var bb=Xv;bb.prototype.onYtNavigate=bb.prototype.onYtNavigate;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.wU.YtEndpointBehavior),_.e("design:type",Object)],bb.prototype,"ytEndpointBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],bb.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.C(_.P2),_.e("design:type",Object)],bb.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],bb.prototype,"ytdReduxBehavior",void 0);_.x([_.L({selector:_.R3}),_.e("design:type",Object)],bb.prototype,"isGridViewEnabled",void 0);_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],bb.prototype,"watchFeedBigThumbs",null);
_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",String),_.e("design:paramtypes",[])],bb.prototype,"thumbnailWidth",null);_.x([_.L(),_.e("design:type",Object)],bb.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],bb.prototype,"collections",void 0);_.x([_.A("data","collections"),_.e("design:type",Object),_.e("design:paramtypes",[])],bb.prototype,"collectionStack",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],bb.prototype,"onYtNavigate",null);bb=_.x([_.d({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],bb);
_.T(bb,"ytd-compact-radio-renderer",function(){if(CwV!==void 0)return CwV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return CwV=y},{mode:1});var QyV;var Ai2=function(){return _.v.apply(this,arguments)||this};
_.R(Ai2,_.v);Ai2.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Ai2.prototype.computeRendererStyle=function(y){return y.style?y.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
var rv=Ai2;_.x([_.L(),_.e("design:type",Object)],rv.prototype,"data",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],rv.prototype,"rendererBehavior",void 0);_.x([_.L({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.e("design:type",String)],rv.prototype,"rendererStyle",void 0);
rv=_.x([_.d({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],rv);
_.T(rv,"ytd-compact-text-promo-renderer",function(){if(QyV!==void 0)return QyV;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return QyV=y},{mode:1});var h7W;var BDT=function(){var y=_.v.apply(this,arguments)||this;y.isShortsStyle=!1;return y};
_.R(BDT,_.v);_.f=BDT.prototype;_.f.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"}}}};
_.f.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Z2(this.hostElement,"yt-disable-lockup-interaction"):_.Z2(this.hostElement,"yt-enable-lockup-interaction"))};
_.f.isMetaBlockEmpty=function(y){return!y||!y.longBylineText&&!y.shortBylineText&&!y.shortViewCountText&&!y.viewCountText};
_.f.computeHasOneLineTitle=function(y){return this.forceOneLineTitle||!(y==null||!y.buttons)};
_.f.computeDisableInteraction=function(){var y;return!((y=this.data)==null?0:y.navigationEndpoint)};
_.f.hasSingularTopStandaloneBadge=function(){var y;return!((y=this.data)==null||!y.topStandaloneBadge)};
_.dJ.Object.defineProperties(BDT.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.O("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.O("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 y;return this.hasSingularTopStandaloneBadge()?[(y=this.data)==null?void 0:y.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var y;return this.shouldShowTopBadges?((y=this.data)==null?void 0:y.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
var Fv=BDT;Fv.prototype.disableInteractionChanged=Fv.prototype.disableInteractionChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],Fv.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],Fv.prototype,"ytdLockupBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],Fv.prototype,"ytdReduxBehavior",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.e("design:type",Boolean)],Fv.prototype,"metaBlockEmpty",void 0);_.x([_.L({selector:_.R3}),_.e("design:type",Object)],Fv.prototype,"isGridViewEnabled",void 0);_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Fv.prototype,"watchFeedBigThumbs",null);
_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",String),_.e("design:paramtypes",[])],Fv.prototype,"thumbnailWidth",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Fv.prototype,"isShortsStyle",void 0);_.x([_.L(),_.e("design:type",Object)],Fv.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.e("design:type",Boolean)],Fv.prototype,"hasOneLineTitle",void 0);
_.x([_.L(),_.e("design:type",Boolean)],Fv.prototype,"hideThumbnail",void 0);_.x([_.L(),_.e("design:type",Boolean)],Fv.prototype,"forceOneLineTitle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.e("design:type",Boolean)],Fv.prototype,"disableInteraction",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Fv.prototype,"musicMetadataVideoLockup",void 0);
_.x([_.H("disableInteraction"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Fv.prototype,"disableInteractionChanged",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Fv.prototype,"shouldShowTopBadges",null);_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],Fv.prototype,"topBadges",null);
_.x([_.A("shouldShowTopBadges","data"),_.e("design:type",Array),_.e("design:paramtypes",[])],Fv.prototype,"inlineMetadataBadges",null);_.x([_.A("shouldShowTopBadges"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Fv.prototype,"shouldShowBadgesBelowMetadata",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fv.prototype,"compactTitleClass",null);Fv=_.x([_.d({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Fv);
_.T(Fv,"ytd-compact-video-renderer",function(){if(h7W!==void 0)return h7W;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return h7W=y},{mode:_.xm("kevlar_poly_si_batch_j067")?1:2});var HIQ;_.bv("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var LwJ=function(){return _.v.apply(this,arguments)||this};
_.R(LwJ,_.v);var UF=LwJ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],UF.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],UF.prototype,"data",void 0);UF=_.x([_.d({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],UF);
_.T(UF,"ytd-counterfactual-renderer",function(){if(HIQ!==void 0)return HIQ;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return HIQ=y},{mode:1});var vwE;var $l=function(){var y=_.v.apply(this,arguments)||this;y.hidden=!1;return y};
_.R($l,_.v);$l.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.U().resolve(_.i1).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
$l.prototype.computeHidden=function(y){return!!y};
_.dJ.Object.defineProperties($l.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}}});
var K9=$l;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],K9.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.e("design:type",Object)],K9.prototype,"hidden",void 0);_.x([_.A("data.label"),_.e("design:type",String),_.e("design:paramtypes",[])],K9.prototype,"label",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],K9.prototype,"value",null);K9=_.x([_.d({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],K9);
_.T(K9,"ytd-dropdown-item-renderer",function(){if(vwE!==void 0)return vwE;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vwE=y},{mode:1});var dx3;var SCV;var TD0=function(){return _.v.apply(this,arguments)||this};
_.R(TD0,_.v);var OF=TD0;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],OF.prototype,"data",void 0);_.x([_.L({computed:"getSimpleString(data.label)"}),_.e("design:type",String)],OF.prototype,"label",void 0);OF=_.x([_.d({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],OF);
_.T(OF,"ytd-navigation-dropdown-item-renderer",function(){if(SCV!==void 0)return SCV;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return SCV=y},{mode:1});var aDV=function(){var y=_.v.apply(this,arguments)||this;y.disabled=!1;y.value="";y.noLabelFloat=!1;y.noUnderline=!1;y.usePrimaryColor=!1;y.hasBackground=!1;y.verticalAlign="top";y.autosize=!1;y.minAutosizeWidth=100;y.autosizeFont="14px Roboto";return y};
_.R(aDV,_.v);_.f=aDV.prototype;_.f.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"}}}};
_.f.open=function(){this.inputEl.open()};
_.f.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.f.dataChanged=function(){this.reset()};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("value-changed",this.value))};
_.f.stopPropagation=function(y){y.stopPropagation()};
_.f.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var y=this.canvas.getContext("2d");y&&(y.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(y.measureText(this.inputEl.value).width)+24)+"px")}};
_.f.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var y=0,W=this.data.entries.length;y<W;y++){var c=this.data.entries[y],Z;for(Z in c)if(c.hasOwnProperty(Z)){var G=c[Z];if("isSelected"in G&&G.isSelected)return"stringValue"in G?G.stringValue||"":"int32Value"in G?G.int32Value||0:0}}return null};
_.f.updateValueFromBinding=function(y){this.value=y.detail.value};
_.dJ.Object.defineProperties(aDV.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 y=0,W=this.data.entries.length;y<W;y++){var c=this.data.entries[y],Z;for(Z in c)if(c.hasOwnProperty(Z)){var G=c[Z];if("isSelected"in G&&G.isSelected&&"label"in G)return this.ytRendererBehavior.getSimpleString(G.label)}}return null}}});
var gv=aDV;gv.prototype.autoSizeLabel=gv.prototype.autoSizeLabel;gv.prototype.stopPropagation=gv.prototype.stopPropagation;gv.prototype.valueChangedForBinding=gv.prototype.valueChangedForBinding;gv.prototype.dataChanged=gv.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],gv.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],gv.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gv.prototype,"disabled",void 0);_.x([_.L(),_.e("design:type",Object)],gv.prototype,"value",void 0);_.x([_.L(),_.e("design:type",Object)],gv.prototype,"noLabelFloat",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gv.prototype,"noUnderline",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],gv.prototype,"theme",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gv.prototype,"usePrimaryColor",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gv.prototype,"hasBackground",void 0);_.x([_.L(),_.e("design:type",Object)],gv.prototype,"verticalAlign",void 0);_.x([_.L(),_.e("design:type",Object)],gv.prototype,"autosize",void 0);_.x([_.L(),_.e("design:type",Object)],gv.prototype,"minAutosizeWidth",void 0);_.x([_.L(),_.e("design:type",Object)],gv.prototype,"autosizeFont",void 0);
_.x([_.jj("#entries"),_.e("design:type",Object)],gv.prototype,"entries",void 0);_.x([_.jj("#input"),_.e("design:type",Object)],gv.prototype,"inputEl",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gv.prototype,"dataChanged",null);_.x([_.Gs("value"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gv.prototype,"valueChangedForBinding",null);
_.x([_.B("iron-overlay-opened"),_.B("iron-overlay-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],gv.prototype,"stopPropagation",null);_.x([_.B("iron-select"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gv.prototype,"autoSizeLabel",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],gv.prototype,"label",null);
gv=_.x([_.d({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],gv);
_.T(gv,"ytd-dropdown-renderer",function(){if(dx3!==void 0)return dx3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dx3=y},{mode:1});var xxT;var Ru=function(){var y=_.v.apply(this,arguments)||this;y.isConstrainedList=!1;return y};
_.R(Ru,_.v);Ru.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"}}}};
Ru.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Ru.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Ru.prototype.computeViewAllHidden=function(y,W){return y||!W.viewAllEndpoint};
var lb=Ru;lb.prototype.fillRestIfNoShowMore=lb.prototype.fillRestIfNoShowMore;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],lb.prototype,"ytLazyListBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],lb.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],lb.prototype,"isConstrainedList",void 0);_.x([_.Gs("data","canShowMore"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lb.prototype,"fillRestIfNoShowMore",null);lb=_.x([_.d({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],lb);
_.T(lb,"ytd-expanded-shelf-contents-renderer",function(){if(xxT!==void 0)return xxT;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return xxT=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var iI8;var MhV=function(){return _.v.apply(this,arguments)||this};
_.R(MhV,_.v);MhV.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}}}}}};
var EF=MhV;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],EF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],EF.prototype,"data",void 0);EF=_.x([_.d({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],EF);
_.T(EF,"ytd-feed-channel-filter-header-renderer",function(){if(iI8!==void 0)return iI8;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return iI8=y},{mode:1});var e7i;var wC5;var qC2;var ko2=function(){return _.v.apply(this,arguments)||this};
_.R(ko2,_.v);_.f=ko2.prototype;_.f.onClick=function(y){var W,c=(W=this.data)==null?void 0:W.sectionEndpoint;!_.Cx(_.Aq(y),this.hostElement,["A".toString()])&&c&&_.Z2(this.hostElement,"yt-navigate",{endpoint:c})};
_.f.computeHasSectionEndpoint=function(y){return(y==null?void 0:y.sectionEndpoint)!==void 0};
_.f.computeShowHeaderAsLink=function(y){return(y==null?void 0:y.header)!==void 0&&(y==null?void 0:y.sectionEndpoint)!==void 0};
_.f.computeShowSubheaderAsLink=function(y){return(y==null?void 0:y.subheader)!==void 0&&(y==null?void 0:y.sectionEndpoint)!==void 0&&(y==null?void 0:y.header)===void 0};
_.f.getHeaderAsLinkClass=function(y){var W=[],c;(y==null?0:(c=y.headerIcon)==null?0:c.iconType)&&W.push("header-link-active");return W.join(" ")};
var Nd=ko2;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Nd.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Nd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Nd.prototype,"data",void 0);
_.x([_.L({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Nd.prototype,"hasSectionEndpoint",void 0);_.x([_.L({computed:"computeShowHeaderAsLink(data)"}),_.e("design:type",Boolean)],Nd.prototype,"showHeaderAsLink",void 0);_.x([_.L({computed:"computeShowSubheaderAsLink(data)"}),_.e("design:type",Boolean)],Nd.prototype,"showSubheaderAsLink",void 0);Nd=_.x([_.d({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Nd);
_.T(Nd,"ytd-medical-panel-section-renderer",function(){if(qC2!==void 0)return qC2;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return qC2=y},{mode:1});var jo5=function(){var y=_.v.apply(this,arguments)||this;y.isExpanded=!1;y.roundedContainer=!0;y.skipRoundingTop=!1;y.toggleExpandableSection=function(){y.isExpanded=!y.isExpanded};
return y};
_.R(jo5,_.v);
jo5.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]]"}}}}}};
jo5.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
var Iu=jo5;Iu.prototype.dataChanged=Iu.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Iu.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Iu.prototype,"isExpanded",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Iu.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Iu.prototype,"skipRoundingTop",void 0);_.x([_.L(),_.e("design:type",Object)],Iu.prototype,"toggleExpandableSection",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Iu.prototype,"dataChanged",null);
Iu=_.x([_.d({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Iu);
_.T(Iu,"ytd-medical-panel-content-renderer",function(){if(wC5!==void 0)return wC5;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return wC5=y},{mode:1});_.bv("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var p9=function(){var y=_.v.apply(this,arguments)||this;y.roundedContainer=!0;y.amsterdamEnabled=_.O("enable_desktop_amsterdam_info_panels");y.hasTitle=!1;y.linkIcon="OPEN_IN_NEW";y.isDismissed=!1;return y};
_.R(p9,_.v);
p9.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"}}}};
p9.prototype.computeHasTitle=function(y){return!(y==null||!y.title)};
p9.prototype.onClick=function(y){var W,c=(W=this.data)==null?void 0:W.headerEndpoint;!_.Cx(_.Aq(y),this.hostElement,["BUTTON".toString()])&&c&&this.ytComponentBehavior.resolveCommand(c)};
_.dJ.Object.defineProperties(p9.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 y;return((y=this.data)==null?void 0:y.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.disableBottomDivider)||!((W=this.data)==null?0:W.title)}}});
var PZ=p9;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],PZ.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],PZ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],PZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],PZ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],PZ.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],PZ.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],PZ.prototype,"amsterdamEnabled",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.e("design:type",Object)],PZ.prototype,"hasTitle",void 0);
_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.background"),_.e("design:type",Object),_.e("design:paramtypes",[])],PZ.prototype,"background",null);_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.titleStyle"),_.e("design:type",Object),_.e("design:paramtypes",[])],PZ.prototype,"titleStyle",null);
_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.A("data.titleStyle"),_.e("design:type",Object),_.e("design:paramtypes",[])],PZ.prototype,"showLinkIcon",null);_.x([_.L(),_.e("design:type",String)],PZ.prototype,"linkIcon",void 0);_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],PZ.prototype,"hideDivider",null);
_.x([_.L({selectorArgs:["data.dismissStateEntityKey"],selector:function(y,W){y=_.fq(y.entities,"dismissState",W);return(y==null?void 0:y.isDismissed)||(y==null?void 0:y.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(y==null?void 0:y.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.e("design:type",Object)],PZ.prototype,"isDismissed",void 0);PZ=_.x([_.d({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],PZ);
_.T(PZ,"ytd-info-panel-container-renderer",function(){if(e7i!==void 0)return e7i;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return e7i=y},{mode:1});var yY0;_.bv("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var WOE=function(){var y=_.v.apply(this,arguments)||this;y.modernTypography=_.O("web_modern_typography");return y};
_.R(WOE,_.v);WOE.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WOE.prototype.computeStyle=function(y){return y?y:""};
var Jr=WOE;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Jr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Jr.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.e("design:type",String)],Jr.prototype,"titleStyle",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Jr.prototype,"modernTypography",void 0);Jr=_.x([_.d({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],Jr);
_.T(Jr,"ytd-item-section-header-renderer",function(){if(yY0!==void 0)return yY0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return yY0=y},{mode:1});var cY3;var ZtJ,GL8=function(){return ZtJ!==void 0?ZtJ:ZtJ=document.createElement("template")};
document.head.appendChild(GL8().content);var fbZ;_.VG=new _.Sm("VOTING_ANIMATION_CONTROLLER_TOKEN");var DjW=_.Ax(function(y){var W=y.data;var c=_.HO(),Z=_.HO();y=_.z(_.G9("VOTE_STATUS_NONE",void 0,"FVF7mc"));var G=y.next().value,D=y.next().value,Y=_.Zx(LoE,function(){var K;return(K=W())==null?void 0:K.entityKey}),u=_.O("web_enable_voting_animation")||_.O("enable_music_web_cairo_voting_animation");
_.rj(function(){var K;((K=W().initialState)==null?0:K.status)&&D(W().initialState.status)});
var t=function(){var K,l,N=(l=(K=W().initialState)==null?void 0:K.votes)!=null?l:0,P;K=(P=W().initialState)==null?void 0:P.status;return K==="VOTE_STATUS_UPVOTED"?N-1:K==="VOTE_STATUS_DOWNVOTED"?N+1:N},b=function(){return G()==="VOTE_STATUS_UPVOTED"?t()+1:G()==="VOTE_STATUS_DOWNVOTED"?t()-1:t()},r=function(K){var l=K?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
D(l);var N=b(),P=_.U().resolve(_.xN(_.VG)),V=Y();V&&(K&&(V==null?0:V.upvoteDefaultButtonOnTap)?_.OH(V.upvoteDefaultButtonOnTap,{form:{element:c.value},disableClickTracking:!0}):(V==null?0:V.upvoteToggledButtonOnTap)&&_.OH(V.upvoteToggledButtonOnTap,{form:{element:c.value},disableClickTracking:!0}));var Q;K=(Q=V==null?void 0:V.enableOptimisticReordering)!=null?Q:W().enableOptimisticReordering;u&&P&&W().itemId&&K&&oLV(P,W().itemId,N,l)},F=function(K){var l=K?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
D(l);var N=b(),P=_.U().resolve(_.xN(_.VG)),V=Y();V&&(K&&(V==null?0:V.downvoteDefaultButtonOnTap)?_.OH(V.downvoteDefaultButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}):(V==null?0:V.downvoteToggledButtonOnTap)&&_.OH(V.downvoteToggledButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}));var Q;K=(Q=V==null?void 0:V.enableOptimisticReordering)!=null?Q:W().enableOptimisticReordering;u&&P&&W().itemId&&K&&oLV(P,W().itemId,N,l)};
y={};y=_.Mi("ytVotingViewModelVoteCount",(y.ytVotingViewModelVoteCountDisabled=function(){return W().isDisabled},y));
return _.X("voting-view-model",{class:"ytVotingViewModelHost"},_.X("div",{el:c},_.X(_.bg,{data:function(){var K=_.g(W().upvoteButton,_.F5);return{toggleButtonViewModel:Object.assign({},K,{isToggled:G()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(K){return _.X(_.UV,{data:K.data,
onToggle:r})}})),_.X("div",{class:y},function(){var K,l,N;
return G()==="VOTE_STATUS_UPVOTED"?(K=W().initialState)==null?void 0:K.compactVotesUpvoted:G()==="VOTE_STATUS_DOWNVOTED"?(l=W().initialState)==null?void 0:l.compactVotesDownvoted:(N=W().initialState)==null?void 0:N.compactVotes}),_.X("div",{el:Z},_.X(_.bg,{data:function(){var K=_.g(W().downvoteButton,_.F5);
return{toggleButtonViewModel:Object.assign({},K,{isToggled:G()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(K){return _.X(_.UV,{data:K.data,
onToggle:F})}})))},"vb");_.A3(_.Ax(function(y){var W=y.data;return _.X("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.X("div",{class:_.Mi("ytEngagementBarViewModelEngagementBarWrapper",y.className)},_.X(_.bg,{data:function(){return W().actions}},{votingViewModel:DjW})))},"wb"),"engagement-bar-view-model",{props:{data:_.Ix,
className:_.Ix}});var zf5=function(){var y=_.v.apply(this,arguments)||this;y.amsterdamPostMvp=_.O("web_amsterdam_post_mvp_playlists");y.cairoCollabPlaylistPostMvp=_.O("web_collab_playlist_thumbnail_size");y.playlistVotingAnimationEnabled=_.O("web_enable_voting_animation");y.downloadProgress=0;y.transferState="TRANSFER_STATE_UNKNOWN";y.downloadState="DOWNLOAD_STATE_UNKNOWN";y.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";y.offlineVideoPolicyExpirationTimestamp=0;return y};
_.R(zf5,_.v);_.f=zf5.prototype;_.f.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"}}}};
_.f.canReorderChanged=function(){this.persistentDragHandle=_.O("kevlar_playlist_drag_handles")&&this.canReorder};
_.f.onDrag=function(){if(this.thumbnail){var y=_.p(this.thumbnail).querySelector("yt-image");y&&(y.shouldRenderLazy=!1)}};
_.f.onMenuOverlayChanged=function(y,W){this.menuOpened=W};
_.f.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.f.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.f.onContentsTap=function(y){var W,c=(W=this.data)==null?void 0:W.serviceEndpoints;if(c&&c.length===1&&_.g(c[0],e3g)&&!_.Cx(_.Aq(y),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(c[0]);else{var Z;(W=(Z=this.data)==null?void 0:Z.navigationEndpoint)&&_.O("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Y4V(_.U().resolve(_.Cy),W):(_.GR().playlistSuggestionsShelfActivation=
!0,_.mj8(_.U().resolve(_.Cy),W)):W&&!_.Cx(_.Aq(y),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.O("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Z2(this.hostElement,"yt-navigate",{endpoint:W}):this.ytComponentBehavior.resolveCommand(W))}};
_.f.computeStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.f.computeThumbnailWidth=function(y){return y==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.f.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=lrF(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))}};
_.f.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.f.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.f.dataChanged=function(){if(this.data){var y,W,c,Z=((y=this.downloadRenderData)==null?void 0:y.badges)&&((W=this.downloadRenderData)==null?void 0:W.badges)!==((c=this.data)==null?void 0:c.badges),G,D,Y;y=((G=this.downloadRenderData)==null?void 0:G.thumbnailOverlays)&&((D=this.downloadRenderData)==null?void 0:D.thumbnailOverlays)!==((Y=this.data)==null?void 0:Y.thumbnailOverlays);(!this.downloadRenderData||Z||y)&&this.downloadStateChanged()}};
_.f.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var y,W,c=(y=this.data.menu)==null?void 0:(W=y.menuRenderer)==null?void 0:W.items;if(c)for(y=_.z(c),W=y.next();!W.done;W=y.next())if(W=W.value,c=void 0,_.g((c=W.menuServiceItemRenderer)==null?void 0:c.serviceEndpoint,_.KF)){var Z=c=void 0,G=void 0;W=(c=W)==null?void 0:(Z=c.menuServiceItemRenderer)==null?void 0:(G=Z.serviceEndpoint)==null?void 0:G.playlistEditEndpoint;G=Z=void 0;if(c=(Z=W)==null?void 0:(G=Z.actions)==null?void 0:
G[0])Z=void 0,c.setVideoId=(Z=this.data)==null?void 0:Z.setVideoId;G=Z=c=void 0;if(W=(c=W)==null?void 0:(Z=c.clientActions)==null?void 0:(G=Z[0])==null?void 0:G.playlistRemoveVideosAction)c=void 0,W.setVideoIds=[(c=this.data)==null?void 0:c.setVideoId]}}};
_.dJ.Object.defineProperties(zf5.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
var C9=zf5;C9.prototype.setVideoIdChanged=C9.prototype.setVideoIdChanged;C9.prototype.dataChanged=C9.prototype.dataChanged;C9.prototype.downloadStateChanged=C9.prototype.downloadStateChanged;C9.prototype.onMenuOverlayChanged=C9.prototype.onMenuOverlayChanged;C9.prototype.canReorderChanged=C9.prototype.canReorderChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],C9.prototype,"ytdReduxBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],C9.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],C9.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],C9.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],C9.prototype,"amsterdamPostMvp",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],C9.prototype,"canReorder",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],C9.prototype,"menuOpened",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],C9.prototype,"handleIsHovered",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],C9.prototype,"persistentDragHandle",void 0);
_.x([_.L(),_.e("design:type",Object)],C9.prototype,"downloadRenderData",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.e("design:type",String)],C9.prototype,"styleType",void 0);_.x([_.L({computed:"computeThumbnailWidth(data.style)"}),_.e("design:type",Number)],C9.prototype,"thumbnailWidth",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],C9.prototype,"isDownloads",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],C9.prototype,"cairoCollabPlaylistPostMvp",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],C9.prototype,"playlistVotingAnimationEnabled",void 0);_.x([_.L({selector:P$,selectorArgs:["data.videoId"]}),_.e("design:type",Object)],C9.prototype,"downloadProgress",void 0);_.x([_.L(),_.e("design:type",Number)],C9.prototype,"relativeDateReference",void 0);
_.x([_.L({selector:_.Iv,selectorArgs:["data.videoId"]}),_.e("design:type",Object)],C9.prototype,"transferState",void 0);_.x([_.L({selector:eDO,selectorArgs:["data.videoId"]}),_.e("design:type",Object)],C9.prototype,"downloadState",void 0);_.x([_.L({selector:QtO,selectorArgs:["data.videoId"]}),_.e("design:type",Object)],C9.prototype,"offlinePolicyAction",void 0);_.x([_.L({selector:AIt,selectorArgs:["data.videoId"]}),_.e("design:type",Object)],C9.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.x([_.L({selector:BFa,selectorArgs:["data.videoId"]}),_.e("design:type",Object)],C9.prototype,"entityInfo",void 0);_.x([_.L({selector:_.Eq}),_.e("design:type",Boolean)],C9.prototype,"miniplayerIsActive",void 0);_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],C9.prototype,"playlistVideoId",null);_.x([_.jj("#thumbnail"),_.e("design:type",Object)],C9.prototype,"thumbnail",void 0);
_.x([_.Gs("canReorder"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],C9.prototype,"canReorderChanged",null);_.x([_.B("yt-menu-overlay-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Boolean]),_.e("design:returntype")],C9.prototype,"onMenuOverlayChanged",null);
_.x([_.Gs("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],C9.prototype,"downloadStateChanged",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],C9.prototype,"dataChanged",null);
_.x([_.Gs("data.setVideoId"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],C9.prototype,"setVideoIdChanged",null);C9=_.x([_.d({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],C9);
_.T(C9,"ytd-playlist-video-renderer",function(){if(fbZ!==void 0)return fbZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);y.content.insertBefore(GL8().content.cloneNode(!0),y.content.firstChild);return fbZ=y},{mode:1});var soi;var uCQ=function(){return _.v.apply(this,arguments)||this};
_.R(uCQ,_.v);var QG=uCQ;_.x([_.L(),_.e("design:type",Object)],QG.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],QG.prototype,"rendererBehavior",void 0);QG=_.x([_.d({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],QG);
_.T(QG,"ytd-premium-browse-footer-renderer",function(){if(soi!==void 0)return soi;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return soi=y},{mode:1});var tEE;var nL5=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return y};
_.R(nL5,_.v);_.f=nL5.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.handleDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.computeHeaderLogoThumbnail=function(y,W){if(y)return W?y.darkLogo:y.lightLogo};
_.f.computeHeaderLogoHeight=function(y,W){var c,Z,G;return(y=(c=this.computeHeaderLogoThumbnail(y,W))==null?void 0:(Z=c.thumbnails)==null?void 0:(G=Z[0])==null?void 0:G.height)&&y%31===0?"31":"24"};
_.f.computeHeaderLogoMarginBottom=function(y,W){return this.computeHeaderLogoHeight(y,W)==="24"?"0":"-7"};
var Ar=nL5;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ar.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ar.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],Ar.prototype,"isDarkTheme",void 0);_.x([_.L({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.e("design:type",Object)],Ar.prototype,"themeLogo",void 0);
_.x([_.L({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.e("design:type",String)],Ar.prototype,"logoHeight",void 0);_.x([_.L({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.e("design:type",String)],Ar.prototype,"logoMarginBottom",void 0);Ar=_.x([_.d({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Ar);
_.T(Ar,"ytd-primetime-promo-header-renderer",function(){if(tEE!==void 0)return tEE;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tEE=y},{mode:1});var XqW;_.eu(SGH);var eva;eva=_.ug({flexibleActionsViewModel:q8V});_.hr=_.qi(wlt);_.eu(wlt);_.A3(_.hr,"yt-section-header-view-model",{props:{data:_.Ix,className:_.Ix,disableHorizontalPadding:_.Ix,disableVerticalPadding:_.Ix,forceSmallLayout:_.Ix,useResponsiveLayout:_.Ix,isOverlay:_.Ix}});_.bv("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var btQ=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return y};
_.R(btQ,_.v);_.f=btQ.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.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"}}}};
_.f.onDataChange=function(){var y=this;_.Lv(this,function(){y.updateItemVisibility()})};
_.f.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y,this.updateItemVisibility())};
_.f.updateItemVisibility=function(){var y=this;this.data&&this.data.panels&&_.p(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(W,c){W.hidden=c>y.elementsPerRow-1})};
_.f.requestElementsPerRow=function(){_.Z2(this.hostElement,"yt-request-elements-per-row")};
var BZ=btQ;BZ.prototype.onDataChange=BZ.prototype.onDataChange;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],BZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],BZ.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],BZ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],BZ.prototype,"actionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],BZ.prototype,"data",void 0);_.x([_.L({value:3}),_.e("design:type",Number)],BZ.prototype,"elementsPerRow",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],BZ.prototype,"onDataChange",null);BZ=_.x([_.d({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],BZ);
_.T(BZ,"ytd-primetime-promo-renderer",function(){if(XqW!==void 0)return XqW;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return XqW=y},{mode:1});var rY2;var HZ=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return y};
_.R(HZ,_.v);HZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
HZ.prototype.handleButtonRefreshAction=function(y){if(y=_.g(y,_.Z$5))this.set("data.button",y.membershipButton),this.notifyPath("data.button")};
_.dJ.Object.defineProperties(HZ.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.avatars)==null?void 0:W.slice(0,8))||[]}}});
var L9=HZ;_.x([_.L(),_.e("design:type",Object)],L9.prototype,"data",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],L9.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],L9.prototype,"rendererBehavior",void 0);_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],L9.prototype,"avatars",null);
L9=_.x([_.d({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],L9);
_.T(L9,"ytd-recognition-shelf-renderer",function(){if(rY2!==void 0)return rY2;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return rY2=y},{mode:1});var FO8;var UjZ;var $jJ=function(){var y=_.v.apply(this,arguments)||this;y.modernButtons=_.O("web_modern_buttons");return y};
_.R($jJ,_.v);_.f=$jJ.prototype;
_.f.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]]"}}}}}};
_.f.dataChanged=function(){this.collapsed=!0};
_.f.computeVisibleItems=function(y,W){return y!==void 0&&y.items?W?y.items.slice(0,this.data.collapsedItemCount):y.items:[]};
_.f.computeHideShowMore=function(y,W,c){return y>=W||!c};
_.f.computeHideShowAll=function(y,W,c){return!(y&&W)||c};
_.f.onMoreClick=function(){this.collapsed=!1};
_.dJ.Object.defineProperties($jJ.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.O("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
var vZ=$jJ;vZ.prototype.dataChanged=vZ.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vZ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],vZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vZ.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],vZ.prototype,"isSearch",void 0);
_.x([_.L({computed:"computeVisibleItems(data,collapsed)"}),_.e("design:type",Array)],vZ.prototype,"visibleItems",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],vZ.prototype,"collapsed",void 0);_.x([_.L({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.e("design:type",Boolean)],vZ.prototype,"hideShowMore",void 0);
_.x([_.L({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.e("design:type",Boolean)],vZ.prototype,"hideShowAll",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],vZ.prototype,"modernButtons",void 0);_.x([_.A("isSearch"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],vZ.prototype,"typographyBump",null);
_.x([_.A("isSearch"),_.e("design:type",String),_.e("design:paramtypes",[])],vZ.prototype,"thumbnailWidth",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vZ.prototype,"dataChanged",null);vZ=_.x([_.d({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],vZ);
_.T(vZ,"ytd-vertical-list-renderer",function(){if(UjZ!==void 0)return UjZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return UjZ=y},{mode:1});var KOJ=_.dl(["#"]);_.bv("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Ot3=function(){var y=_.v.apply(this,arguments)||this;y.isConstrainedList=!1;y.modernTypography=_.O("web_modern_typography");return y};
_.R(Ot3,_.v);_.f=Ot3.prototype;
_.f.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"}}}};
_.f.computeThumbnailStyle=function(y){return y||""};
_.f.computePlaceAnnotationUnderTitle=function(){var y;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((y=this.data)==null?void 0:y.thumbnailStyle)||"")};
_.f.computeHrefWithDefault=function(y){return this.ytComponentBehavior.computeHref_(y)||_.Q7(KOJ)};
_.f.computeIsPromoShelf=function(y){var W;return(y=y==null?void 0:(W=y[0])==null?void 0:W.metadataBadgeRenderer)?y.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.f.computePlaceBadgeBesideTitle=function(y){var W;return(y==null?0:(W=y[0])==null?0:W.metadataBadgeRenderer)?!this.computeIsPromoShelf(y):!1};
_.f.computeMenuIcon=function(y){return this.computeIsPromoShelf(y)?"yt-icons:more_vert":"yt-icons:more"};
_.f.onDataChange=function(){var y,W;((y=this.data)==null?0:(W=y.content)==null?0:W.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.f.onLockupRequested=function(y){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&y.detail&&y.detail.videoIds){for(var W=this.data.content.gridRenderer.items,c=new Set,Z=_.z(y.detail.videoIds),G=Z.next();!G.done;G=Z.next())c.add(G.value);y.detail.returnValue=W.filter(function(D){return D.gridVideoRenderer&&D.gridVideoRenderer.videoId&&c.has(D.gridVideoRenderer.videoId)}).map(function(D){return D.gridVideoRenderer})}};
_.f.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
var dv=Ot3;dv.prototype.onLockupRequested=dv.prototype.onLockupRequested;dv.prototype.onDataChange=dv.prototype.onDataChange;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],dv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],dv.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],dv.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],dv.prototype,"ironResizableBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],dv.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],dv.prototype,"isSearch",void 0);_.x([_.L(),_.e("design:type",Object)],dv.prototype,"isConstrainedList",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("kevlar_fluid_dismiss")}}),
_.e("design:type",Boolean)],dv.prototype,"enableFluidDismiss",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.e("design:type",String)],dv.prototype,"thumbnailStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dv.prototype,"modernTypography",void 0);_.x([_.L({computed:"computeMenuIcon(data.badges)"}),_.e("design:type",String)],dv.prototype,"menuIcon",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dv.prototype,"onDataChange",null);_.x([_.B("yt-lockup-requested"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],dv.prototype,"onLockupRequested",null);dv=_.x([_.d({is:"ytd-shelf-renderer",disableElementRegistration:!0})],dv);
_.T(dv,"ytd-shelf-renderer",function(){if(FO8!==void 0)return FO8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return FO8=y},{mode:1});var gLJ;var RfV=function(){return _.v.apply(this,arguments)||this};
_.R(RfV,_.v);RfV.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.dJ.Object.defineProperties(RfV.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
var Sk=RfV;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Sk.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Sk.prototype,"isPlaylist",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Sk.prototype,"isClipList",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Sk.prototype,"isPlaylistPageWithFilters",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Sk.prototype,"hasTitle",null);_.x([_.L(),_.A("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.e("design:type",Object),_.e("design:paramtypes",[])],Sk.prototype,"isRightAligned",null);
Sk=_.x([_.d({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Sk);
_.T(Sk,"ytd-sort-filter-header-renderer",function(){if(gLJ!==void 0)return gLJ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return gLJ=y},{mode:1});var lbQ;var Tn=function(){return _.v.apply(this,arguments)||this};
_.R(Tn,_.v);
Tn.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]]"}}}}}};
Tn.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.dJ.Object.defineProperties(Tn.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.O("enable_creator_details_shelf_m2")){var y=[],W;((W=this.data)==null?0:W.creatorVideosButton)&&y.push(this.data.creatorVideosButton);var c;((c=this.data)==null?0:c.creatorAboutButton)&&y.push(this.data.creatorAboutButton);W=_.z(this.data.creatorCustomUrlButtons||[]);for(c=W.next();!c.done;c=W.next())y.push(c.value);return y}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.O("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
var au=Tn;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Si.YtdHorizontalListBehavior),_.e("design:type",Object)],au.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],au.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],au.prototype,"engagementPanel",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],au.prototype,"creatorCustomUrlButtons",null);_.x([_.L({reflectToAttribute:!0}),_.A("data","creatorCustomUrlButtons"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],au.prototype,"showCreatorCustomUrlButtons",null);
_.x([_.A("showCreatorCustomUrlButtons"),_.e("design:type",Number),_.e("design:paramtypes",[])],au.prototype,"channelAvatarSize",null);au=_.x([_.d({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],au);
_.T(au,"ytd-video-description-infocards-section-renderer",function(){if(lbQ!==void 0)return lbQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lbQ=y},{mode:_.xm("kevlar_poly_si_batch_j067")?1:2});var ELm;var N7Q=function(){return _.v.apply(this,arguments)||this};
_.R(N7Q,_.v);var xl=N7Q;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xl.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.infoIcon)"}),_.e("design:type",Object)],xl.prototype,"infoIcon",void 0);
xl=_.x([_.d({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],xl);
_.T(xl,"ytd-eom-settings-disclaimer-renderer",function(){if(ELm!==void 0)return ELm;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ELm=y},{mode:1});var Ib8;var pq8=function(){return _.v.apply(this,arguments)||this};
_.R(pq8,_.v);_.dJ.Object.defineProperties(pq8.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.suppressPaddingDisclaimer)}}});
var ib=pq8;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ib.prototype,"componentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ib.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ib.prototype,"suppressPaddingDisclaimer",null);ib=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],ib);
_.T(ib,"ytd-product-list-header-renderer",function(){if(Ib8!==void 0)return Ib8;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Ib8=y},{mode:1});var PVZ;var JYi=function(){return _.v.apply(this,arguments)||this};
_.R(JYi,_.v);JYi.prototype.computeThumbnailStyle=function(y){if(y&&(y=_.$$(y)))return"background-color:"+y+";"};
var Md=JYi;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Md.prototype,"rendererBehaviors",void 0);_.x([_.L(),_.e("design:type",Object)],Md.prototype,"data",void 0);Md=_.x([_.d({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Md);
_.T(Md,"ytd-hashtag-tile-renderer",function(){if(PVZ!==void 0)return PVZ;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return PVZ=y},{mode:1});var VEW;var CVJ=function(){return _.v.apply(this,arguments)||this};
_.R(CVJ,_.v);CVJ.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}}}}}};
var ek=CVJ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ek.prototype,"data",void 0);ek=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ek);
_.T(ek,"ytd-sponsorships-alert-renderer",function(){if(VEW!==void 0)return VEW;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return VEW=y},{mode:1});var QoE;var AYE=function(){return _.v.apply(this,arguments)||this};
_.R(AYE,_.v);AYE.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.dJ.Object.defineProperties(AYE.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.O("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.O("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var wv=AYE;_.x([_.C(_.OO),_.e("design:type",Object)],wv.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],wv.prototype,"ytdLockupBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.x([_.L({selector:_.R3}),_.e("design:type",Object)],wv.prototype,"isGridViewEnabled",void 0);
_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],wv.prototype,"watchFeedBigThumbs",null);_.x([_.A("isGridViewEnabled"),_.L({reflectToAttribute:!0}),_.e("design:type",String),_.e("design:paramtypes",[])],wv.prototype,"thumbnailWidth",null);_.x([_.L(),_.e("design:type",Object)],wv.prototype,"data",void 0);wv=_.x([_.d({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],wv);
_.T(wv,"ytd-compact-movie-renderer",function(){if(QoE!==void 0)return QoE;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return QoE=y},{mode:1});var hfV;var B7i;var HtV=_.Nn("HTML_DIR")==="rtl",LOV=function(){var y=_.v.apply(this,arguments)||this;y.engagementPanel=!1;y.maxLines=2;y.expandButtonOffset=0;y.showExpandButton=!1;y.isTruncated=!1;y.isExpanded=!1;y.currentSnippetType=2;y.alwaysShowExpandButton=!1;y.JSC$14125_lastWidth=NaN;y.observer=null;y.left=0;y.right=0;y.mid=0;y.longestSnippetLength=0;y.isFinalSnippet=!1;y.isFirstMutation=!1;y.isResetMutation=!1;y.OVERFLOW_THRESHOLD=5;return y};
_.R(LOV,_.v);_.f=LOV.prototype;_.f.onClick=function(y){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;if((W=window.getSelection())==null||!W.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.f.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.f.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.f.updateTextOnSnippetTypeChange=function(){_.O("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.f.setUpBinarySearch=function(y){y=y*this.maxLines/8;this.left=0;var W,c;this.right=Math.min(y*2,(c=(W=this.simpleText)==null?void 0:W.length)!=null?c:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.f.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.f.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Rs(new _.ul("AttributedSnippet is empty when the description is not empty",this.text))};
_.f.mutationCallback=function(){if(this.observer!=null){var y=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var W=Math.floor(y*this.maxLines/8);this.setSnippetText(this.text,W);W!==0||this.attributedTextIsEmpty()||_.Rs(new _.ul("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;y=y*this.maxLines/8;this.left=0;var c;this.right=Math.min(y*2,(c=(W=this.simpleText)==null?void 0:W.length)!=null?c: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)}}};
_.f.mutationObserve=function(y){var W=this;this.observer||(this.observer=new MutationObserver(function(){W.mutationCallback()}));
this.observer.observe(y,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.f.attached=function(){var y=this;_.Lv(this,function(){y.resize()})};
_.f.isExpandedChanged=function(){_.Z2(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.f.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)};
_.f.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var y="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((HtV?"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",y);this.snippetContainer.style.setProperty("mask-image",
y)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(HtV?"right":"left",this.expandButtonOffset+"px")};
_.f.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.f.setSnippetText=function(y,W){y||(y={});if(_.Ni(y)){var c=H1I(y,W);c.attachmentRuns||c.commandRuns||c.decorationRuns||c.styleRuns||c.alignment||c.lineBreakMode?this.attributedSnippetTextEl?(_.O("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=H1I(y,W),this.attributedSnippetTextEl.headerRuns=Bmw(W,this.headerRuns)):this.attributedSnippetText={data:H1I(y,W),headerRuns:Bmw(W,this.headerRuns)},this.currentSnippetType=0):_.Rs(new _.ul("Tried to set snippet text when HTML element was null",
y)):(this.plainSnippetText.textContent=R9(y.content||"",W),this.currentSnippetType=2)}else{a:{c=qGI(y,W);if(c.runs){c=_.z(c.runs);for(var Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,Z.bold||Z.deemphasize||Z.italics||Z.strikethrough||Z.textColor||Z.navigationEndpoint||_.g(Z,bs)){c=!0;break a}}c=!1}c?this.formattedSnippetText?(this.formattedSnippetText.text=qGI(y,W),this.currentSnippetType=1):_.Rs(new _.ul("Tried to set snippet text when HTML element was null",y)):(this.plainSnippetText.textContent=
R9(_.v$(y),W),this.currentSnippetType=2)}};
_.f.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.f.attributedTextIsEmpty=function(){var y=this.text;if(!_.Ni(y))return!0;var W;return((W=y.content)==null?void 0:W.length)===0?!0:!1};
_.f.resize=function(y){if(this.snippetText){if(y===void 0?0:y)this.JSC$14125_lastWidth=NaN;var W=this.hostElement.offsetWidth;if(W!==this.JSC$14125_lastWidth&&!this.isExpanded)if(this.JSC$14125_lastWidth=W,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;y=0;var c,Z;W=Math.min(W*this.maxLines/8*2,(Z=(c=this.simpleText)==null?void 0:c.length)!=null?Z:0)-1;for(c=0;y<=W;)Z=Math.floor(y+(W-y)/2),this.setSnippetText(this.text,Z),this.isOverflowing()?W=Z-1:(y=Z+1,c=Z);this.setSnippetText(this.text,c);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.f.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.f.onExpandClick=function(){var y=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.O("inline_expander_reset_focus_killswitch")||_.Lv(this,function(){var W;((W=_.U().resolve(_.xN(_.ml)))==null?0:W.isKeyBoardInUse())&&_.hv(y.hostElement)});
_.Z2(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.f.onCollapseClick=function(){this.collapse();_.Z2(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.f.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.f.computeExpandButtonOffset=function(){var y=this.expandSizer;return y?HtV?y.offsetParent?y.offsetParent.offsetWidth-y.offsetWidth-y.offsetLeft:0:y.offsetLeft:0};
_.dJ.Object.defineProperties(LOV.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Ni(this.text)?this.text.content||"":_.v$(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 _.Ni(this.text)?!0:this.text&&_.O("web_replace_formatted_with_attributed_string")&&fF1(this.text)?(this.text=_.Xx(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}}});
var qd=LOV;qd.prototype.onTextChanged=qd.prototype.onTextChanged;qd.prototype.updateMaskAndExpandButtonOffset=qd.prototype.updateMaskAndExpandButtonOffset;qd.prototype.updateSnippetContainerMaxHeight=qd.prototype.updateSnippetContainerMaxHeight;qd.prototype.isExpandedChanged=qd.prototype.isExpandedChanged;qd.prototype.updateTextOnSnippetTypeChange=qd.prototype.updateTextOnSnippetTypeChange;qd.prototype.updateIsFormattedExpanded=qd.prototype.updateIsFormattedExpanded;
qd.prototype.updateIsAttributedExpanded=qd.prototype.updateIsAttributedExpanded;qd.prototype.onClick=qd.prototype.onClick;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],qd.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qd.prototype,"text",void 0);_.x([_.L(),_.e("design:type",Array)],qd.prototype,"headerRuns",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qd.prototype,"engagementPanel",void 0);
_.x([_.L(),_.e("design:type",Object)],qd.prototype,"maxLines",void 0);_.x([_.L(),_.e("design:type",String)],qd.prototype,"expandLabel",void 0);_.x([_.L(),_.e("design:type",String)],qd.prototype,"collapseLabel",void 0);_.x([_.L(),_.e("design:type",Object)],qd.prototype,"expandCommand",void 0);_.x([_.L(),_.e("design:type",Object)],qd.prototype,"expandButtonOffset",void 0);_.x([_.A("text"),_.e("design:type",String),_.e("design:paramtypes",[])],qd.prototype,"simpleText",null);
_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],qd.prototype,"onClick",null);_.x([_.A("text","isExpanded"),_.e("design:type",Object),_.e("design:paramtypes",[])],qd.prototype,"expandedText",null);_.x([_.A("headerRuns","isExpanded"),_.e("design:type",Object),_.e("design:paramtypes",[])],qd.prototype,"expandedHeaderRuns",null);
_.x([_.A("text"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qd.prototype,"hasAttributedStringText",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qd.prototype,"showExpandButton",void 0);_.x([_.A("collapseLabel","isExpanded"),_.e("design:type",Object),_.e("design:paramtypes",[])],qd.prototype,"showCollapseButton",null);_.x([_.L(),_.e("design:type",Object)],qd.prototype,"isTruncated",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qd.prototype,"isExpanded",void 0);_.x([_.L(),_.e("design:type",Boolean)],qd.prototype,"isAttributedExpanded",void 0);_.x([_.H("isExpanded","hasAttributedStringText"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qd.prototype,"updateIsAttributedExpanded",null);_.x([_.L(),_.e("design:type",Boolean)],qd.prototype,"isFormattedExpanded",void 0);
_.x([_.H("isExpanded","hasAttributedStringText"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qd.prototype,"updateIsFormattedExpanded",null);_.x([_.L(),_.e("design:type",Number)],qd.prototype,"currentSnippetType",void 0);_.x([_.A("currentSnippetType"),_.e("design:type",Object),_.e("design:paramtypes",[])],qd.prototype,"useAttributedSnippet",null);
_.x([_.A("currentSnippetType"),_.e("design:type",Object),_.e("design:paramtypes",[])],qd.prototype,"useFormattedSnippet",null);_.x([_.A("currentSnippetType"),_.e("design:type",Object),_.e("design:paramtypes",[])],qd.prototype,"usePlainSnippet",null);_.x([_.L(),_.e("design:type",Object)],qd.prototype,"alwaysShowExpandButton",void 0);_.x([_.H("currentSnippetType"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qd.prototype,"updateTextOnSnippetTypeChange",null);
_.x([_.L(),_.e("design:type",Object)],qd.prototype,"attributedSnippetText",void 0);_.x([_.jj("#snippet"),_.e("design:type",HTMLElement)],qd.prototype,"snippetContainer",void 0);_.x([_.jj("#snippet-text"),_.e("design:type",HTMLElement)],qd.prototype,"snippetText",void 0);_.x([_.jj("#plain-snippet-text"),_.e("design:type",HTMLElement)],qd.prototype,"plainSnippetText",void 0);_.x([_.jj("#formatted-snippet-text"),_.e("design:type",Object)],qd.prototype,"formattedSnippetText",void 0);
_.x([_.jj("#attributed-snippet-text"),_.e("design:type",Object)],qd.prototype,"attributedSnippetTextEl",void 0);_.x([_.jj("#expand"),_.e("design:type",HTMLElement)],qd.prototype,"expandButton",void 0);_.x([_.jj("#expand-sizer"),_.e("design:type",HTMLElement)],qd.prototype,"expandSizer",void 0);_.x([_.Gs("isExpanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qd.prototype,"isExpandedChanged",null);
_.x([_.H("isExpanded","maxLines"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qd.prototype,"updateSnippetContainerMaxHeight",null);_.x([_.H("isTruncated","showExpandButton","expandButtonOffset"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qd.prototype,"updateMaskAndExpandButtonOffset",null);
_.x([_.Gs("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qd.prototype,"onTextChanged",null);qd=_.x([_.d({is:"ytd-text-inline-expander",disableElementRegistration:!0})],qd);
_.T(qd,"ytd-text-inline-expander",function(){if(B7i===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);B7i=y}y=B7i;return y},{mode:2});var kl=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return y};
_.R(kl,_.v);kl.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
kl.prototype.handleUpdateDescriptionAction=function(y){if(y=_.g(y,_.xtE))if(y.attributedDescription)this.set("data.attributedDescriptionBodyText",y.attributedDescription);else if(y.description){var W;((W=this.data)==null?0:W.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.Xx(y.description)):this.set("data.descriptionBodyText",y.description)}};
_.dJ.Object.defineProperties(kl.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.attributedDescriptionBodyText)||!((W=this.data)==null||!W.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.collapsedLineCount){var W;return(W=this.data)==null?void 0:W.collapsedLineCount}y=_.ey("web_watch_description_collapsed_default_lines",12);if(_.O("ww_desc_line_page_size_ks"))return y;W=Math.round(_.Y$().height*_.ey("web_watch_description_screen_height_percentage",.5)/20);return Math.max(W,y)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return(c=(y=this.data)==null?void 0:y.descriptionBodyText)!=null?c:(W=this.data)==null?void 0:W.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.sourceAttributions}}});
var jO=kl;jO.prototype.panelContentVisibleChanged=jO.prototype.panelContentVisibleChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],jO.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],jO.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jO.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Boolean)],jO.prototype,"panelContentVisible",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],jO.prototype,"engagementPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],jO.prototype,"shortsPanel",void 0);_.x([_.jj("#inline-expander"),_.e("design:type",Object)],jO.prototype,"inlineExpander",void 0);
_.x([_.H("panelContentVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jO.prototype,"panelContentVisibleChanged",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],jO.prototype,"hasDescriptionText",null);_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],jO.prototype,"collapsedLines",null);
_.x([_.A("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.e("design:type",Object),_.e("design:paramtypes",[])],jO.prototype,"descriptionText",null);_.x([_.A("data","data.headerRuns"),_.e("design:type",Object),_.e("design:paramtypes",[])],jO.prototype,"headerRuns",null);_.x([_.A("data","data.sourceAttributions"),_.e("design:type",Object),_.e("design:paramtypes",[])],jO.prototype,"sourceAttributions",null);
jO=_.x([_.d({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],jO);
_.T(jO,"ytd-expandable-video-description-body-renderer",function(){if(hfV!==void 0)return hfV;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return hfV=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var vLQ;var dj2=_.Ax(function(y){var W=y.data;return _.X("factoid-renderer",{class:"ytwFactoidRendererHost"},_.X("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return W().accessibilityText}},_.X("span",{class:"ytwFactoidRendererValue"},_.X(_.Da,{text:function(){return W().value}})),_.X("span",{class:"ytwFactoidRendererLabel"},_.X(_.Da,{text:function(){return W().label}}))))},"xb");_.A3(dj2,"factoid-renderer",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;return _.X("upload-time-factoid-renderer",null,_.X(_.bg,{data:function(){return W().factoid}},{factoidRenderer:dj2}))},"yb"),"upload-time-factoid-renderer",{props:{data:_.QE}});_.A3(_.Ax(function(y){var W=y.data;return _.X("view-count-factoid-renderer",null,_.X(_.bg,{data:function(){return W().factoid}},{factoidRenderer:dj2}))},"zb"),"view-count-factoid-renderer",{props:{data:_.QE}});var S4V=function(){var y=_.v.apply(this,arguments)||this;y.shortsPanel=!1;y.engagementPanel=!1;y.watchWhileSdp=_.O("shorts_desktop_watch_while_sdp");return y};
_.R(S4V,_.v);S4V.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"}}}}};
_.dJ.Object.defineProperties(S4V.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var y;return(y=this.data)==null?void 0:y.channel}}});
var yc=S4V;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],yc.prototype,"componentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yc.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yc.prototype,"shortsPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yc.prototype,"engagementPanel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yc.prototype,"watchWhileSdp",void 0);_.x([_.A("shortsPanel","engagementPanel","data.channel"),_.e("design:type",Object),_.e("design:paramtypes",[])],yc.prototype,"showChannelInfo",null);yc=_.x([_.d({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],yc);
_.T(yc,"ytd-video-description-header-renderer",function(){if(vLQ!==void 0)return vLQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vLQ=y},{mode:1});var T7i;var abQ=function(){return _.v.apply(this,arguments)||this};
_.R(abQ,_.v);var W5=abQ;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],W5.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],W5.prototype,"noPadding",void 0);_.x([_.L(),_.e("design:type",Object)],W5.prototype,"data",void 0);W5=_.x([_.d({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],W5);
_.T(W5,"ytd-list-item-view-model",function(){if(T7i!==void 0)return T7i;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return T7i=y},{mode:1});var xjT;var itE;var MEZ;var ef5;var c5=function(){var y=_.v.apply(this,arguments)||this;y.adaptiveFullWidth=!1;y.modernButtons=_.O("web_modern_buttons");y.buttonOverrides={style:"call-to-action",type:"filled"};y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return y};
_.R(c5,_.v);c5.prototype.handleSetTimestamp_=function(y){this.data&&this.data.shortUrl&&(_.p(this.hostElement).querySelector("#share-url").value=y.isSet?_.tP(this.data.shortUrl,"t",y.timestamp):this.data.shortUrl)};
c5.prototype.handleSignalActionCopyShareUrl_=function(y,W){(_.O("killswitch_copy_link_target_check")||_.p(this.hostElement).querySelector("#copy-button")===W)&&this.copyUrlToClipboard()};
c5.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.p(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
c5.prototype.computeStyle_=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
var ZF=c5;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],ZF.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ZF.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.e("design:type",String)],ZF.prototype,"rendererStyle",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZF.prototype,"adaptiveFullWidth",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ZF.prototype,"modernButtons",void 0);_.x([_.L(),_.e("design:type",Object)],ZF.prototype,"buttonOverrides",void 0);ZF=_.x([_.n6({is:"yt-copy-link-renderer",disableElementRegistration:!0})],ZF);
_.T(ZF,"yt-copy-link-renderer",function(){if(ef5===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;MEZ===void 0&&(MEZ=document.createElement("template"));var Z=MEZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);ef5=y}y=ef5;return y},{mode:2});_.bv("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var wqE=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return y};
_.R(wqE,_.v);_.f=wqE.prototype;_.f.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.f.attached=function(){this.keyboardFocused=!1};
_.f.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var y=_.U().resolve(_.xN(_.ml));y&&(this.keyboardFocused=y.isKeyBoardInUse())}};
_.f.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.f.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}};
_.f.onChange_=function(){if(this.data){var y=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;y&&this.ytComponentBehavior.resolveCommand(y);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.f.handleUpdateToggleAction_=function(y){(y=_.g(y,Xgm))&&this.data&&y.targetId==this.data.targetId&&this.set("data.toggled",y.toggled)};
_.f.toBoolean_=function(y){return!!y};
_.f.reset=function(){};
_.f.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("data-changed",this.data))};
_.f.updateDataToggledFromBinding=function(y){this.set("data.toggled",y.detail.value)};
var Gv=wqE;Gv.prototype.dataChangedForBinding=Gv.prototype.dataChangedForBinding;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Gv.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Gv.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Gv.prototype,"data",void 0);_.x([_.L({computed:"computeDescription_(data.*)"}),_.e("design:type",Object)],Gv.prototype,"description_",void 0);_.x([_.L({value:function(){return!!_.U().resolve(_.xN(_.ml))&&_.O("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.e("design:type",Boolean)],Gv.prototype,"useKeyboardFocused",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Gv.prototype,"keyboardFocused",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Gv.prototype,"dataChangedForBinding",null);Gv=_.x([_.n6({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Gv);
_.T(Gv,"yt-toggle-form-field-renderer",function(){if(itE===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;xjT===void 0&&(xjT=document.createElement("template"));var Z=xjT;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);itE=y}y=itE;return y},{mode:2});var q42;var kLV;var jdE=function(){var y=_.v.apply(this,arguments)||this;y.isDarkTheme=!1;y.isSearch=!1;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.noTopMargin=_.O("kevlar_watch_no_top_margin");y.maskFade=_.O("web_watch_chips_mask_fade");y.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 y};
_.R(jdE,_.v);_.f=jdE.prototype;_.f.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}}}}}};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.f.dataChanged=function(){var y=this.getSelectedIndex();if(y>0)this.selected=y;else{this.selected=0;var W,c;(W=this.ytScrollableChipCloudBehavior)==null||(c=W.reset)==null||c.call(W)}};
_.f.getSelectedIndex=function(){var y;if((y=this.data)==null||!y.chips)return-1;y=-1;for(var W,c=0;c<((W=this.data)==null?void 0:W.chips.length);c++){var Z=void 0,G=void 0;if((Z=this.data)==null?0:(G=Z.chips[c].chipCloudChipRenderer)==null?0:G.isSelected){y=c;break}}return y};
_.f.onResize=function(){var y=this.ytScrollableChipCloudBehavior;_.Lv(y,y.setContainerWidthDiff);Pm(this.ytScrollableChipCloudBehavior)};
_.f.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.handleRelatedChipCommand=function(y,W){y=this.JSC$14152_chipsSelector.indexOf(W);y!==-1&&this.JSC$14152_chipsSelector.selectIndex(y)};
_.f.handleChipCloudChipSelectAction=function(y){y=this.JSC$14152_chipsSelector.indexOf(y);y>-1&&this.JSC$14152_chipsSelector.selectIndex(y)};
_.f.handleChipCloudChipDeselectAction=function(){var y=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14152_chipsSelector&&((y==null?0:y.continuationCommand)?_.D2(this.hostElement,[y]):(y==null?0:y.searchEndpoint)?this.ytComponentBehavior.resolveCommand(y):y&&_.mq(this.hostElement,[y],this.hostElement),this.JSC$14152_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.f.updateSelectedFromBinding=function(y){this.selected=y.detail.value};
var f1=jdE;f1.prototype.onResize=f1.prototype.onResize;f1.prototype.dataChanged=f1.prototype.dataChanged;f1.prototype.isSearchChanged=f1.prototype.isSearchChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],f1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],f1.prototype,"actionHandlerBehavior",void 0);
_.x([_.C(_.K7),_.e("design:type",Object)],f1.prototype,"ironResizableBehavior",void 0);_.x([_.C(),_.e("design:type",JQ)],f1.prototype,"ytScrollableChipCloudBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],f1.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],f1.prototype,"data",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],f1.prototype,"selected",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],f1.prototype,"isDarkTheme",void 0);_.x([_.L({value:160}),_.e("design:type",Number)],f1.prototype,"scrollDistance",void 0);_.x([_.L(),_.e("design:type",Object)],f1.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],f1.prototype,"darkerDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],f1.prototype,"noTopMargin",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],f1.prototype,"maskFade",void 0);_.x([_.jj("#chips"),_.e("design:type",Object)],f1.prototype,"JSC$14152_chipsSelector",void 0);_.x([_.H("isSearch"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],f1.prototype,"isSearchChanged",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],f1.prototype,"dataChanged",null);
_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],f1.prototype,"onResize",null);f1=_.x([_.n6({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],f1);
_.T(f1,"yt-chip-cloud-renderer",function(){if(kLV===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;q42===void 0&&(q42=document.createElement("template"));var Z=q42;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);kLV=y}y=kLV;return y},{mode:2});var y1m,Wd5=function(){return y1m!==void 0?y1m:y1m=document.createElement("template")};
document.head.appendChild(Wd5().content);var c1V;var Z_V=document.head,GDi=Z_V.appendChild,fp5;if(c1V===void 0){var o4Q=document.createElement("template");_.E(o4Q,"");o4Q.content.insertBefore(Wd5().content.cloneNode(!0),o4Q.content.firstChild);c1V=o4Q}fp5=c1V;GDi.call(Z_V,fp5.content);var DkJ=_.Ax(function(y){var W=y.data;return _.X("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.X("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.X("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.X(_.YN,{cond:function(){return _.a3(W().image)},
then:function(c){return _.X("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.X(_.J3,{data:c,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.X("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.X(_.Da,{text:function(){return W().title}})),_.X("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.X(_.Da,{text:function(){return W().subtitle}})))),_.X(_.YN,{cond:function(){var c;
return(c=W())==null?void 0:c.hasBottomDivider},
then:function(){return _.X("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ab");var zqZ=_.Ax(function(y){var W=y.data;return _.X("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.X("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.X(_.bg,{data:function(){var c;return(c=W().offerPlanDetailsItem)!=null?c:[]}},{offerPlanDetailsItemViewModel:function(c){return _.X("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.X(DkJ,{data:c.data}))}})),_.X("div",null,_.X(_.YN,{cond:function(){return W().hasBottomDivider},
then:function(){return _.X("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.X("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.X("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.X("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.X("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Bb");var YjJ=_.Ax(function(y){var W=y.data;y=_.z(_.G9(!1,void 0,"SpEGQd"));var c=y.next().value,Z=y.next().value,G=_.j9(function(){Z(!c());return!1}),D=function(){var Y;
return(Y=W().offerPlanDetailsContainer)!=null?Y:[]};
return _.X("lp-complex-offer-card-details-view-model",null,_.X("div",null,_.X(_.YN,{cond:function(){return c()},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.X("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":G,"aria-expanded":c},_.X(_.Da,{text:function(){return W().expandedTitle}})),_.X("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.X(_.bg,{data:D},{offerPlanDetailsContainerViewModel:function(Y){return _.X("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.X(zqZ,{data:Y.data}))}})),_.X("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.X(_.Da,{text:function(){return W().legalText}})))},
else:function(){return _.X("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":G,"aria-expanded":c},_.X(_.Da,{text:function(){return W().collapsedTitle}}),_.X("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.X(_.Gb,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Cb");var mkm=_.Ax(function(y){var W=y.data;return _.X("lp-complex-offer-card-option-view-model",null,_.X(_.YN,{cond:function(){return W().primaryButton},
then:function(){return _.X("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.X(_.bg,{data:function(){return W().primaryButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}}))},"Db");var sd5=_.Ax(function(y){var W=y.data;var c=function(){var D;return((D=W())==null?void 0:D.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
y={};var Z={},G={};return _.X("ytm-lp-complex-offer-card-view-model",null,_.X("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.X("div",{class:_.Mi((y.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=c,y),"ytmLpComplexOfferCardViewModelCardContainer")},_.X(_.YN,{cond:function(){var D;return(D=W())==null?void 0:D.bannerText},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.X("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.X(_.Da,{text:function(){return W().bannerText}})))}}),_.X(_.YN,{cond:function(){return _.a3(W().logo)},
then:function(D){var Y={};return _.X("div",{class:_.Mi((Y.ytmLpComplexOfferCardViewModelLogoAlignLeft=c,Y),"ytmLpComplexOfferCardViewModelLogo")},_.X(_.J3,{data:D,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.X("div",{class:_.Mi((Z.ytmLpComplexOfferCardViewModelTitleAlignLeft=c,Z),"ytmLpComplexOfferCardViewModelTitle")},_.X(_.Da,{text:function(){return W().title}})),_.X(_.YN,{cond:function(){var D;
return(D=W())==null?void 0:D.subtitle},
then:function(){var D={};return _.X("div",{class:_.Mi((D.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=c,D),"ytmLpComplexOfferCardViewModelSubtitle")},_.X(_.Da,{text:function(){return W().subtitle}}))}}),_.X(_.YN,{cond:function(){return W().planPricingPrimary},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.X(_.Da,{text:function(){return W().planPricingPrimary}}))}}),_.X(_.YN,{cond:function(){return W().planPricingSecondary},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.X(_.Da,{text:function(){return W().planPricingSecondary}}))}}),_.X(_.YN,{cond:function(){return W().purchaseButton},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.X(_.bg,{data:function(){return W().purchaseButton}},{buttonViewModel:function(D){return _.X(_.OV,{data:D.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.X(_.YN,{cond:function(){var D;
return(D=W())==null?void 0:D.offerOptions},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.X(_.bg,{data:function(){return W().offerOptions}},{lpComplexOfferCardOptionViewModel:mkm}))}}),_.X("div",{class:_.Mi((G.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=c,G),"ytmLpComplexOfferCardViewModelLegalText")},_.X(_.Da,{text:function(){return W().legalText}})),_.X(_.YN,{cond:function(){var D;
return(D=W())==null?void 0:D.offerCardDetails},
then:function(){return _.X("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.X(_.bg,{data:function(){return W().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:YjJ}))}}))))},"Eb");var ukm=_.Ax(function(y){var W=y.data;var c=function(){var Y;return((Y=W())==null?void 0:Y.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
y={};var Z={},G={},D={};return _.X("ytm-lp-complex-offer-card-section-view-model",null,_.X("div",{class:_.Mi("ytmLpComplexOfferCardSectionViewModelHost")},_.X("div",{class:_.Mi((y.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=c,y),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.X("div",{class:_.Mi((Z.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=c,Z),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.X("h2",{class:_.Mi((G.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
c,G),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.X(_.Da,{text:function(){return W().title}}))),_.X(_.YN,{cond:function(){var Y;
return(Y=W())==null?void 0:Y.subtitle},
then:function(){var Y={},u={};return _.X("div",{class:_.Mi((Y.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=c,Y),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.X("div",{class:_.Mi((u.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=c,u),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.X(_.Da,{text:function(){return W().subtitle}})))}}),_.X("div",{class:_.Mi((D.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=c,D),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.X(_.bg,{data:function(){var Y;
return(Y=W().offerPlans)!=null?Y:[]}},{lpComplexOfferCardViewModel:function(Y){return _.X("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.X(sd5,{data:Y.data}))}})))))},"Fb");_.Ed=HXW.getInstance();var tTZ=_.Ax(function(y){return _.X("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":y.shouldAriaHideContent},_.X("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:y.questionId},_.X(_.Da,{text:y.question})))},"Gb"),n48=_.Ax(function(y){var W=y.data;
var c=y.themeOverride;y=_.z(_.G9(!1,void 0,"ljTVPd"));var Z=y.next().value,G=y.next().value;y=_.j9(function(){G(!Z());return!1});
var D=function(){return Z()?"EXPAND_LESS":"EXPAND_MORE"},Y=("faq-container"+_.lL(_.Ed)).toString(),u="faq-question-and-answers-section-question"+_.lL(_.Ed),t={},b={};
return _.X("faq-entry-view-model-c3",null,_.X("div",{class:_.Mi("yt-lp-faq-entry-view-model",(t["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return c==null?void 0:c().useDarkTheme},t))},_.X("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":y,role:"button","aria-expanded":Z,"aria-labelledby":u.toString(),"tab-index":"0"},_.X(tTZ,{question:function(){return W().question},
questionId:u,shouldAriaHideContent:!0}),_.X(_.YN,{cond:function(){return Z()!==void 0},
then:function(){return _.X("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.X(_.Gb,{icon:D,ariaHidden:!0}),_.X("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.X("div",{class:_.Mi("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(b["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!Z()},b))},_.X("div",{id:Y},_.X(_.mC,{each:function(){return W().answers||[]}},function(r){return _.X("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.X(_.Da,{text:r}))})))))},"Hb");
n48.idomCompat=!0;var X13=_.Ax(function(y){var W=y.data;var c=y.themeOverride;y={};return _.X("lp-faq-section-view-model-c3",null,_.X("div",{class:_.Mi("yt-lp-faq-section-view-model",(y["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},y["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},y))},_.X("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.X(_.YN,{cond:function(){return W().header},
then:function(Z){return _.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.X(_.Da,{text:Z}))}}),_.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.X(_.bg,{data:function(){return W().faqs}},{faqEntryViewModel:function(Z){return _.X(n48,{data:Z.data,
themeOverride:c})}})),_.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.X(_.mC,{each:function(){return W().footers||[]}},function(Z){return _.X(_.Da,{text:Z})})),_.X(_.YN,{cond:function(){return W().legal},
then:function(Z){return _.X("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.X(_.Da,{text:Z}))}}))))},"Ib");
X13.idomCompat=!0;var b_V=_.Ax(function(y){var W=y.data;var c=y.themeOverride;_.rj(function(){var Y=W().gtmId;Y&&_.zI(Y,_.Nn("GL",""))});
var Z={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,u,t;return(t=(Y=W().logo)==null?void 0:(u=Y.accessibilityData)==null?void 0:u.label)!=null?t:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},G=_.U().resolve(_.xN(_.EH)),D=function(){return G&&G()||(c==null?void 0:c().useDarkTheme)};
return _.X("lp-header-section-view-model",null,_.X("div",{class:function(){var Y=W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",u=W().marginType==="LP_SECTION_MARGIN_TYPE_TOP",t=c==null?void 0:c().useDarkTheme,b=["lp-header-section-view-model"];Y&&b.push("lp-header-section-view-model--ptc-layout-type");u&&b.push("lp-header-section-view-model__lp-header-section-margin");t&&b.push("lp-header-section-view-model--premium-force-dark-mode");return b.join(" ")}},_.X(_.YN,{cond:function(){return W().logo},
then:function(){return _.X("div",null,_.X(_.YN,{cond:D,then:function(){return _.X(_.YN,{cond:function(){var Y;return(Y=W().logo)==null?void 0:Y.imageDark},
then:function(Y){return _.X(_.J3,Object.assign({},{data:Y},Z))}})},
else:function(){return _.X(_.YN,{cond:function(){var Y;return(Y=W().logo)==null?void 0:Y.imageLight},
then:function(Y){return _.X(_.J3,Object.assign({},{data:Y},Z))}})}}))}}),_.X(_.YN,{cond:function(){return W().title},
then:function(Y){return _.X("div",{class:"lp-header-section-view-model__lp-header-title"},_.X(_.Da,{text:Y}))}}),_.X("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.X(_.YN,{cond:function(){return W().subtitles},
then:function(Y){return _.X(_.mC,{each:Y},function(u){return _.X("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.X(_.Da,{text:u}))})}})),_.X(_.YN,{cond:function(){return W().additionalInfo},
then:function(Y){return _.X("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.X(_.Da,{text:Y}))}}),_.X("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.X(_.YN,{cond:function(){return W().primaryButton},
then:function(Y){return _.X("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.X(_.bg,{data:Y},{buttonViewModel:_.OV}))}}),_.X(_.YN,{cond:function(){return W().secondaryButton},
then:function(Y){return _.X("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.X(_.bg,{data:Y},{buttonViewModel:_.OV}))}})),_.X(_.YN,{cond:function(){return W().otherOffersInfo},
then:function(Y){return _.X("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.X(_.Da,{text:Y}))}}),_.X("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.X(_.YN,{cond:function(){return W().billingInfo},
then:function(Y){return _.X(_.mC,{each:Y},function(u){return _.X("div",null,_.X(_.Da,{text:u}))})}}))))},"Jb");
b_V.idomCompat=!0;var r12=_.Ax(function(y){var W=y.data;var c=_.Jx(y.themeOverride,{useDarkTheme:!1});y={};y=_.Mi("ytm-lp-headline-section-view-model",(y["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return c().useDarkTheme},y));
return _.X("lp-headline-section-view-model",null,_.X("div",{class:y},_.X("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.X(_.Da,{text:function(){return W().title}})),_.X(_.YN,{cond:function(){return W().subtitle},
then:function(Z){return _.X("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.X(_.Da,{text:Z}))}})))},"Kb");var FdJ=_.Ax(function(y){var W=y.data;var c=y.themeOverride;var Z=_.U().resolve(_.xN(_.EH)),G=function(){return Z&&Z()||(c==null?void 0:c().useDarkTheme)},D=function(){var b,r;
var F=G()?(b=W().textBackgroundImage)==null?void 0:b.imageDark:(r=W().textBackgroundImage)==null?void 0:r.imageLight;return DAH((F==null?void 0:F.sources)||[])},Y=function(){var b,r;
return G()?(b=W().featureImage)==null?void 0:b.imageDark:(r=W().featureImage)==null?void 0:r.imageLight},u=function(){return W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},t=function(){var b,r;
return G()?(b=W().logo)==null?void 0:b.imageDark:(r=W().logo)==null?void 0:r.imageLight};
return _.X("ytm-lp-large-feature-section-view-model",null,_.X("div",{class:function(){var b=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",r=W().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",F=(W().index||0)%2===1,K=c==null?void 0:c().useDarkTheme,l=["yt-lp-large-feature-section-view-model"];b?l.push("yt-lp-large-feature-section-view-model--music-feature-type"):r?l.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):F||l.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
K&&l.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return l.join(" ")}},_.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.X(_.YN,{cond:Y,
then:function(){return _.X(_.J3,{data:function(){return Y()},
alt:function(){var b,r,F;return(F=(b=W().featureImage)==null?void 0:(r=b.accessibilityData)==null?void 0:r.label)!=null?F:""},
contentMode:u})}})),_.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var b;return((b=D())==null?0:b.url)?"background-image: url("+_.Jn(D().url)+");":""}},_.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.X(_.YN,{cond:t,
then:function(){return _.X(_.J3,{data:function(){return t()},
alt:function(){var b,r,F;return(F=(b=W().logo)==null?void 0:(r=b.accessibilityData)==null?void 0:r.label)!=null?F:""},
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"})}}),_.X(_.YN,{cond:function(){return W().eyebrowText},
then:function(){return _.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.X(_.Da,{text:function(){return W().eyebrowText}}))}}),_.X(_.YN,{cond:function(){return W().title},
then:function(){return _.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.X(_.Da,{text:function(){return W().title}}))}}),_.X(_.YN,{cond:function(){return W().subtitles},
then:function(){return _.X("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.X(_.mC,{each:function(){return W().subtitles||[]}},function(b){return _.X(_.Da,{text:b})}))}})))))},"Lb");
FdJ.idomCompat=!0;var Uk2=_.Ax(function(y){return _.X("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.X("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.X(_.Gb,{icon:function(){var W;return(W=y.data())==null?void 0:W.iconType},
className:function(){var W;return((W=y.data())==null?void 0:W.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.X("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.X(_.Da,{text:function(){var W;
return(W=y.data())==null?void 0:W.text}}))))},"Mb");var $ki=_.Ax(function(y){y=_.V0(y,{config:void 0,themeOverride:void 0});var W=y.data,c=y.config,Z=y.themeOverride;y={};y=_.Mi("ytm-lp-offer-card-option-view-model",(y["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var t;return(t=Z())==null?void 0:t.useDarkTheme},y));
var G=_.j9(function(){var t,b;(t=c())==null||(b=t.handleRadioButtonClick)==null||b.call(t,W());return!1}),D=function(){var t;
return(t=c())==null?void 0:t.shouldDisplayRadioButton},Y=_.j9(function(){if(D()){var t,b;
(t=c())==null||(b=t.handleRadioButtonClick)==null||b.call(t,W())}return!1}),u=function(){var t;
return(t=W().featureListItems)!=null?t:[]};
return _.X("ytm-lp-offer-card-option-view-model",null,_.X("div",{class:y,"on:click":Y},_.X(_.YN,{cond:D,then:function(){return _.X("div",null,_.X("input",{type:"radio","on:click":G,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var t;return!((t=c())==null||!t.isOptionSelected)}}))}}),_.X("div",null,_.X("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.X(_.Da,{text:function(){return W().eyebrowText}})),_.X("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.X(_.Da,{text:function(){return W().title}})),_.X("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.X(_.Da,{text:function(){return W().subtitle}})),_.X(_.YN,{cond:function(){return u().length>0},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.X(_.bg,{data:u},{lpFeatureListItemViewModel:Uk2}))}}),_.X("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.X(_.Da,{text:function(){return W().description}})))))},"Nb");
$ki.idomCompat=!0;var KdW=_.Ax(function(y){var W=y.data;var c=y.themeOverride;y=_.z(_.WF(function(){var D,Y=(D=W().offerOptions)==null?void 0:D[0];return _.g(Y,OFV)||{}}));
var Z=y.next().value,G=y.next().value;y={};return _.X("ytm-lp-offer-card-view-model",null,_.X("div",{class:_.Mi("ytm-lp-offer-card-view-model",(y["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},y))},_.X("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.X(_.YN,{cond:function(){return W().titleIconType},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.X(_.Gb,{icon:function(){var D;return((D=W().titleIconType)==null?void 0:D.toString())||""}}))}}),_.X("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.X(_.Da,{text:function(){return W().title}})),_.X(_.bg,{data:function(){return W().titleBadge}},{badgeViewModel:function(D){return _.X("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.X(_.j7,{data:D.data}))}})),_.X("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.X(_.bg,{data:function(){return W().offerOptions}},{lpOfferCardOptionViewModel:function(D){var Y=D.data;
return _.X(_.a2,null,_.X("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.X($ki,{data:Y,config:function(){var u;return{shouldDisplayRadioButton:(W().offerOptions||[]).length>1,isOptionSelected:Y().id===((u=Z())==null?void 0:u.id),handleRadioButtonClick:function(t){return void G(t)}}},
themeOverride:c}))}})),_.X("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.X(_.bg,{data:function(){var D;
return(D=Z())==null?void 0:D.purchaseButtonOverride}},{buttonViewModel:_.OV}))))},"Ob");
KdW.idomCompat=!0;var O_2=_.Ax(function(y){var W=y.data;var c=y.themeOverride;y={};y=_.Mi("ytm-lp-offer-card-section-view-model",(y["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var Z;return c==null?void 0:(Z=c())==null?void 0:Z.useDarkTheme},y));
return _.X("ytm-lp-offer-card-section-view-model",null,_.X("div",{class:y},_.X(_.YN,{cond:function(){return W().title!==void 0},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.X("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.X(_.Da,{text:function(){return W().title}})),_.X(_.YN,{cond:function(){return W().subtitle},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.X(_.Da,{text:function(){return W().subtitle}}))}}))}}),_.X("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.X(_.bg,{data:function(){return W().offerCards}},{lpOfferCardViewModel:function(Z){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.X(KdW,{data:Z.data,
themeOverride:c}))}})),_.X(_.YN,{cond:function(){return W().footer},
then:function(){return _.X("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.X(_.Da,{text:function(){return W().footer}}))}})))},"Pb");var g4T=_.Ax(function(y){var W=y.data;return _.X("lp-offer-table-cell-content-view-model",null,_.X("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.X(_.u1,null,_.X(_.sE,{when:function(){return W().title}},function(){return _.X(_.Da,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return W().title}})}),_.X(_.sE,{when:function(){return W().subTitle}},function(){return _.X(_.Da,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return W().subTitle}})}),_.X(_.sE,{when:function(){return W().featureDescription}},function(){return _.X(_.Da,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return W().featureDescription}})}),_.X(_.sE,{when:function(){return W().description}},function(){return _.X(_.Da,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return W().description}})}),_.X(_.sE,{when:function(){return W().iconType}},function(){return _.X("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.X(_.Gb,{icon:function(){return W().iconType.toString()}}))}),_.X(_.sE,{when:function(){return W().purchaseButton}},function(){return _.X(_.bg,{data:function(){return W().purchaseButton}},{buttonViewModel:function(c){return _.X("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.X(_.OV,{data:c.data}))}})}),_.X(_.sE,{when:function(){return W().note}},function(){return _.X(_.Da,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return W().note}})}),_.X(_.sE,{when:function(){return W().featureDetail}},function(){return _.X(_.Da,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return W().featureDetail}})}),_.X(_.sE,{when:function(){return W().badge}},function(){return _.X(_.bg,{data:function(){return W().badge}},{badgeViewModel:_.j7})}))))},"Qb");
g4T.idomCompat=!0;var RqW=_.Ax(function(y){var W=y.data;return _.X("lp-offer-table-cell-view-model",null,_.X("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(W().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.X(_.bg,{data:function(){return W().contents}},{lpOfferTableCellContentViewModel:g4T})))},
"Rb");
RqW.idomCompat=!0;var lpW=_.Ax(function(y){var W=y.data;var c=y.lpTableIsFirstRow;var Z=y.lpTableIsLastRow;var G=function(){return(c==null?0:c())?"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"},D=function(){return(c==null?0:c())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(Z==null?0:Z())?"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 _.X("ytm-lp-offer-table-row-view-model",null,_.X("div",{class:"yt-lp-offer-table-row-view-model"},_.X(_.bg,{data:function(){return W().rowHeaderCell}},{lpOfferTableCellViewModel:function(Y){return _.X("div",{class:G},_.X(RqW,{data:Y.data}))}}),_.X(_.bg,{data:function(){return W().contentCells}},{lpOfferTableCellViewModel:function(Y){return _.X("div",{class:D},_.X(RqW,{data:Y.data}))}})))},"Sb");
lpW.idomCompat=!0;var E4i=_.Ax(function(y){var W=y.data;var c=y.themeOverride;var Z=_.U().resolve(_.xN(_.EH)),G=function(){return _.g(W().logo,KBE)||{}};
y={};return _.X("ytm-lp-offer-table-section-view-model",null,_.X("div",{class:"yt-lp-offer-table-view-model"},_.X(_.YN,{cond:function(){var D,Y;return Z&&Z()||(c==null?0:c().useDarkTheme)?(D=G())==null?void 0:D.imageDark:(Y=G())==null?void 0:Y.imageLight},
then:function(D){return _.X(_.J3,{data:D,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Y,u,t;return(t=(Y=G())==null?void 0:(u=Y.accessibilityData)==null?void 0:u.label)!=null?t:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.X(_.Da,{text:function(){return W().title}})),_.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.X(_.Da,{text:function(){return W().subtitle}})),_.X(_.YN,{cond:function(){return W().disclaimers},
then:function(D){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.X(_.mC,{each:D},function(Y){return _.X("div",null,_.X(_.Da,{text:Y}))}))}}),_.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.X(_.bg,{data:function(){return W().rows}},{lpOfferTableRowViewModel:function(D,Y){return _.X(lpW,{data:D.data,
lpTableIsFirstRow:function(){return Y()===0},
lpTableIsLastRow:function(){return Y()===W().rows.length-1}})}})),_.X("div",{class:_.Mi((y["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return W().hasFooterBackground},y))},_.X(_.YN,{cond:function(){return W().footer},
then:function(){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.X(_.Da,{text:function(){return W().footer}}))}}),_.X(_.YN,{cond:function(){return W().footerTitle},
then:function(){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.X(_.Da,{text:function(){return W().footerTitle}}))}}),_.X(_.YN,{cond:function(){return W().footerDescription},
then:function(){return _.X("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.X(_.Da,{text:function(){return W().footerDescription}}))}}))))},"Tb");
E4i.idomCompat=!0;var N8J=_.Ax(function(y){var W=y.data;var c=y.themeOverride;var Z=_.U().resolve(_.xN(_.EH)),G=function(){var u;return c==null?void 0:(u=c())==null?void 0:u.useDarkTheme},D=function(){var u,t;
return Z&&Z()||G()?(u=W().image)==null?void 0:u.imageDark:(t=W().image)==null?void 0:t.imageLight};
y={};y=_.Mi("ytm-lp-small-feature-section-view-model",(y["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=G,y));var Y=function(){var u,t,b;return(b=(u=W().image)==null?void 0:(t=u.accessibilityData)==null?void 0:t.label)!=null?b:""};
return _.X("ytm-lp-small-feature-section-view-model",{class:y},_.X(_.YN,{cond:function(){return D()&&!UwO},
then:function(){return _.X("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.X(_.J3,{data:function(){return D()},
alt:Y,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.X("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.X("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.X(_.YN,{cond:function(){return W().title},
then:function(u){return _.X(_.Da,{text:u})}})),_.X("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.X(_.Da,{text:function(){return W().description}}))))},"Ub");
N8J.idomCompat=!0;var IpV=_.Ax(function(y){var W=y.data;var c=y.themeOverride;y={};return _.X("ytm-lp-small-feature-section-group-view-model",null,_.X("div",{class:_.Mi("ytm-lp-small-feature-section-group-view-model",(y["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},y))},_.X("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.X(_.bg,{data:function(){return W().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Z){return _.X("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.X(N8J,{data:Z.data,
themeOverride:c}))}}))))},"Vb");
IpV.idomCompat=!0;_.A3(_.Ax(function(y){var W=y.data;var c=function(){return W().forcedTheme==="USER_INTERFACE_THEME_DARK"},Z=function(){return W().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},G=function(){var Y="",u,t;
var b=_.U().resolve(_.xN(_.EH));b=c()||(b==null?0:b())?(u=W().themedImageViewModel)==null?void 0:u.imageDark:(t=W().themedImageViewModel)==null?void 0:t.imageLight;(u=DAH((b==null?void 0:b.sources)||[]))&&u.url&&(Y=Z()?"background-image: linear-gradient(to bottom, transparent, "+(W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Jn(u.url)+");":"background-image: url("+_.Jn(u.url)+");");return Y},D=function(){return{useDarkTheme:c()}};
y={};return _.X("yt-section-group-view-model",null,_.X("div",{class:_.Mi("yt-lp-section-group-view-model",(y["yt-lp-section-group-view-model--premium-force-dark-mode"]=c,y["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return W().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},y))},_.X(_.YN,{cond:function(){return G().length},
then:function(){var Y={};return _.X("div",{class:_.Mi("yt-lp-section-group-view-model__bg-image",(Y["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Z,Y)),style:G})}}),_.X("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.X(_.bg,{data:function(){return W().sections}},{lpFaqSectionViewModel:function(Y){return _.X(X13,{data:Y.data,
themeOverride:D})},
lpHeaderSectionViewModel:function(Y){return _.X(b_V,{data:Y.data,themeOverride:D})},
lpHeadlineSectionViewModel:function(Y){return _.X(r12,{data:Y.data,themeOverride:D})},
lpLargeFeatureSectionViewModel:function(Y){return _.X(FdJ,{data:Y.data,themeOverride:D})},
lpOfferCardSectionViewModel:function(Y){return _.X(O_2,{data:Y.data,themeOverride:D})},
lpComplexOfferCardSectionViewModel:function(Y){return _.X(ukm,{data:Y.data})},
lpOfferTableSectionViewModel:function(Y){return _.X(E4i,{data:Y.data,themeOverride:D})},
lpSmallFeatureSectionGroupViewModel:function(Y){return _.X(IpV,{data:Y.data,themeOverride:D})}}))))},"Wb"),"yt-section-group-view-model",{props:{data:_.Ix}});var yVa=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.p13=_.Ax(function(y){function W(){if(yVa.has(y.data().displayType)){var b=!Z(),r;if((r=y.disableDeselection)==null||!r.call(y)||b){y.data().selected=b;r=Object.assign({},Y(),{selected:b});u(r);var F;(F=y.callback)==null||F.call(y,r,b)}}}
var c=_.HO(),Z=function(){var b,r;return!!(((b=y.selected)==null?void 0:b.call(y))!==void 0?(r=y.selected)==null?0:r.call(y):Y().selected)},G=_.z(_.WF(y.data)),D=G.next().value;
G=G.next().value;var Y=D,u=G,t=_.Zx(jht,function(){return y.data().chipEntityKey||""});
return _.X("chip-view-model",{class:"ytChipViewModelHost",el:c},_.X(XdW,{data:function(){var b,r=Object.assign({},Y(),{selected:Z()}),F=t(),K=(b=y.disableDeselection)==null?void 0:b.call(y);a:switch(r.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":b=1;break a;default:b=0}return{text:(F==null?void 0:F.text)||r.text,state:r.disabled?1:r.selected?0:2,type:b,onTap:Wcg(r,c,W,K),accessibilityLabel:r.accessibilityLabel||r.text}}}))},"Xb");
_.p13.idomCompat={callbacks:{callback:!0}};_.A3(_.Ax(function(y){var W=_.Zx(kEH,function(){var Y;return(Y=y.data())==null?void 0:Y.chipBarStateEntityKey}),c=function(){return y.data().disableDeselection},Z=_.z(_.WF(function(){var Y;
if(((Y=W())==null?void 0:Y.selectedIndex)!=void 0)return W().selectedIndex;var u,t;Y=_.z(((u=y.data())==null?void 0:(t=u.chips)==null?void 0:t.entries())||[]);for(u=Y.next();!u.done;u=Y.next()){u=_.z(u.value);t=u.next().value;u=u.next().value;var b=void 0;if((b=_.g(u,_.IU))==null?0:b.selected)return t}return-1})),G=Z.next().value,D=Z.next().value;
return _.X("chip-bar-view-model",{class:_.Mi("ytChipBarViewModelHost",y.className),role:"tablist"},_.X(_.bg,{data:function(){return y.data().chips}},{chipViewModel:function(Y,u){return _.X("div",{class:"ytChipBarViewModelChipWrapper"},_.X(_.p13,{data:Y.data,
selected:function(){return u()===G()},
callback:function(t,b){t=!!b;b=u();D(t?b:-1);var r,F=(r=y.data())==null?void 0:r.chipBarStateEntityKey;F&&t&&_.PQ(_.o3("chipBarStateEntity",F,{key:F,selectedIndex:b}))},
disableDeselection:y.disableDeselection||c}))}}))},"Yb"),"chip-bar-view-model",{props:{data:_.QE,
className:_.QE,disableDeselection:_.QE}});var ge=new Map,Od=new Map,G3I=0,R0;var shy=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],nhI={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var PIV,J1J;PIV=function(y){return function(W){return function(){return String(W())+y}}};
_.oK=PIV("px");J1J=PIV("s");var CIJ=_.Ax(function(y){function W(M){return function(){var fa=l().numItemsPerGridRow,jI=M()*fa;fa=jI+fa;var sD,ED;return(ED=(sD=Z().contents)==null?void 0:sD.slice(jI,fa))!=null?ED:[]}}
var c=_.V0(y,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),Z=c.data,G=c.layoutContainerWidth,D=c.shouldUseOwnContainerSize,Y=c.marginSettings;c=_.z(_.G9(!0,void 0,"qgr2Je"));var u=c.next().value,t=c.next().value,b=function(){var M,fa=(M=_.g(Z().showMoreButton,_.ri))==null?void 0:M.trackingParams;fa&&_.yk(_.Zz(),fa);t(!1)},r=function(){var M,fa=(M=_.g(Z().showLessButton,_.ri))==null?void 0:M.trackingParams;
fa&&_.yk(_.Zz(),fa);t(!0)};
c=_.HO();var F=bTD(c),K=function(){var M;return(M=Z().contentAspectRatio)!=null?M:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},l=_.Yk(function(){var M=_.S8({containerWidth:D()&&F.width()>0?F.width()||G():G(),
sizing:"EXTRA_COMPACT",marginSettings:Y(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:M.maxContainerWidth,numItemsPerGridRow:M.numItems,contentPadding:D()?M.margin:M.contentMargin,itemWidth:M.itemWidth,itemMargin:M.gutter/2}},void 0,"pqVdjc"),N=function(){if(Z().enableVerticalExpansion){if(u())return 1;
var M,fa,jI=(fa=(M=Z().contents)==null?void 0:M.length)!=null?fa:0;return Math.ceil(jI/l().numItemsPerGridRow)}return l().numItemsPerGridRow<=2?2:1},P=function(){return Z().enableVerticalExpansion&&Z().showLessButton&&!u()&&N()>1},V=function(){var M,fa;
return Z().enableVerticalExpansion&&Z().showMoreButton&&u()&&((fa=(M=Z().contents)==null?void 0:M.length)!=null?fa:0)>l().numItemsPerGridRow},Q=function(){return!P()},S=function(){return!V()},cy={};
return _.X("grid-shelf-view-model",{class:_.Mi("ytGridShelfViewModelHost",y.className,(cy.ytGridShelfViewModelHostHasBottomButton=function(){return P()||V()},cy)),
el:c,style:_.cF({"margin-left":(0,_.oK)(function(){return l().contentPadding}),
"margin-right":(0,_.oK)(function(){return l().contentPadding})})},_.X(_.YN,{cond:function(){return _.g(Z().header,Qti)},
then:function(M){return _.X(_.hr,{data:M,disableHorizontalPadding:!0})}}),_.X("div",null,_.X(_.mC,{each:function(){return Array(N())}},function(M,fa){return _.X(VTV,{className:y.className,
items:W(fa),responsiveGridShelfLayout:l,contentAspectRatio:K})})),_.X("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.X(_.bg,{data:function(){return Z().showMoreButton}},{buttonViewModel:function(M){return _.X("div",{hidden:S},_.X(_.OV,{data:M.data,
onClick:b}))}}),_.X(_.bg,{data:function(){return Z().showLessButton}},{buttonViewModel:function(M){return _.X("div",{hidden:Q},_.X(_.OV,{data:M.data,
onClick:r}))}})))},"dc");
CIJ.idomCompat=!0;var VTV=_.Ax(function(y){var W=y.items;var c=y.responsiveGridShelfLayout;var Z=y.contentAspectRatio;y=y.className;var G=_.HO();ZTI(G,function(){a:{var Y=G.value;for(var u=W(),t=[],b=0;b<u.length;b++){var r=_.g(u[b],IuV);if(!r||r==null||!r.inlinePlayerData){Y=null;break a}var F=Y.children.item(b);if(!F){Y=null;break a}t.push({thumbnailElement:F,videoData:r})}Y={gridVideoPreviewData:{gridItems:t}}}return Y});
var D=(0,_.oK)(function(){return-c().itemMargin});
return _.X("div",{el:G,class:_.Mi("ytGridShelfViewModelGridShelfRow",y),style:_.cF({"margin-left":D,"margin-right":D})},_.X(_.bg,{data:W,replacementWrapper:function(Y){return _.X(QdQ,{responsiveGridShelfLayout:c},Y)}},{shortsLockupViewModel:function(Y){return _.X(QdQ,{responsiveGridShelfLayout:c},_.X(VPV,{data:Y.data,
aspectRatio:function(){return Z()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"ec"),QdQ=_.Ax(function(y){return _.X("div",{style:_.cF({width:(0,_.oK)(function(){return y.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+y.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},y.children)},"fc");_.A3(CIJ,"grid-shelf-view-model",{props:{data:_.Ix,layoutContainerWidth:_.Ix,shouldUseOwnContainerSize:_.Ix,marginSettings:_.Ix,className:_.Ix}});_.A3(_.Ax(function(y){var W=_.z(_.G9(!1,void 0,"YYtxR")),c=W.next().value,Z=W.next().value;W={};return _.X("yt-alert-banner-view-model",{class:_.Mi("ytAlertBannerViewModelHost",function(){var G;a:switch((G=y.data())==null?void 0:G.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":G="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":G="ytAlertBannerViewModelWarning";break a;default:G="ytAlertBannerViewModelInformational"}return G},(W.ytAlertBannerViewModelDismissed=c,W.ytAlertBannerViewModelFullbleed=
y.fullbleed,W.ytAlertBannerViewModelNarrow=y.narrow,W.ytAlertBannerViewModelIsInRichGrid=y.isInRichGrid,W))},_.X(_.YN,{cond:function(){var G;
return!((G=y.data())==null?0:G.hideIcon)},
then:function(){return _.X("div",{class:"ytAlertBannerViewModelIcon"},_.X(_.Gb,{icon:function(){return"info_circle"}}))}}),_.X("div",{class:"ytAlertBannerViewModelOuterContainer"},_.X("div",{class:"ytAlertBannerViewModelContainer"},_.X("div",{class:"ytAlertBannerViewModelContent"},_.X("div",{class:"ytAlertBannerViewModelHeading"},_.X(_.Da,{text:function(){var G;
return(G=y.data())==null?void 0:G.heading}})),_.X("div",{class:"ytAlertBannerViewModelBody"},_.X(_.Da,{text:function(){var G;
return(G=y.data())==null?void 0:G.body}})))),_.X(_.bg,{data:function(){var G;
return(G=y.data())==null?void 0:G.actionButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.X(_.bg,{data:function(){var G;
return(G=y.data())==null?void 0:G.dismissButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var D;((D=y.data())==null?0:D.disableLocalDismissBehavior)||Z(!0)}})}}))},"gc"),"yt-alert-banner-view-model",{props:{data:_.Ix,
fullbleed:_.Ix,narrow:_.Ix,isInRichGrid:_.Ix}});var rVD;rVD=_.ug({chipViewModel:_.p13,buttonViewModel:_.OV});_.A10=_.qi(FcO,{callbacks:{callback:!0}});_.eu(FcO);_.A3(_.A10,"chips-shelf-view-model",{props:{data:_.Ix,callback:_.QE,enableSingleChipSelection:_.Ix,disableChipsScrollAnimation:_.Ix}});var hqm=_.Ax(function(y){y=_.V0(y,{disabled:!1});var W=y.active,c=y.disabled;y={};y=_.Mi("ytSwitchShapeTrack",(y.ytSwitchShapeTrackActive=function(){return W()},y.ytSwitchShapeTrackDisabled=function(){return c()},y));
var Z={};Z=_.Mi("ytSwitchShapeKnob",(Z.ytSwitchShapeKnobActive=function(){return W()},Z));
return _.X("switch-shape",{class:"ytSwitchShapeHost"},_.X("div",{class:y}),_.X("div",{class:Z}))},"hc");var B83=_.Ax(function(y){var W=_.V0(y,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),c=W.data;y=W.className;var Z=W.handleOnTapEventInParent,G=W.parentActive;W=_.z(_.WF(function(){var F;return(F=G())!=null?F:c().switchedOnByDefault||!1}));
var D=W.next().value,Y=W.next().value,u=function(){return c().isDisabled},t=_.HO();
W=_.j9(function(F){return F.key==="Enter"?(F.preventDefault(),t.value.click(),!1):!0});
var b=_.j9(function(F){if(c().handleOnTapEventInParent||Z())return!0;if(u())return!1;$Ut(c(),D(),F);Y(!D());return!1}),r={};
r=_.Mi("ytSwitchButtonViewModelButton",(r.ytSwitchButtonViewModelTappable=function(){return!u()},r));
return _.X("switch-button-view-model",{class:_.Mi("ytSwitchButtonViewModelHost",y)},_.X("button",{el:t,class:r,"on:click":b,"on:keydown":W,"aria-label":function(){return D()?c().a11yLabelSwitchedOn:c().a11yLabelSwitchedOff},
"aria-pressed":D,"aria-disabled":u},_.X(hqm,{active:D,disabled:u})))},"ic");_.eu(RCI);_.H_V=_.qi(Eht,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.eu(Eht);var N4h;N4h=_.ug({buttonViewModel:_.OV,switchButtonViewModel:B83,avatarViewModel:_.Ks,accountLinkButtonViewModel:ybD,subscribeButtonViewModel:_.xGT,collectionThumbnailViewModel:ru3,toggleButtonViewModel:_.UV});_.DF=_.qi(Phw,{callbacks:{onTap:!0}});_.eu(Phw);_.LdE=_.Ax(function(y){var W=y.data;var c=y.onTap;var Z=y.onSwitch;var G=y.overrideDisabled;y=_.z(_.WF(function(){var r;return((r=OTO(b()))==null?void 0:r.switchedOnByDefault)||!1}));
var D=y.next().value,Y=y.next().value;y=_.z(_.G9(!1,void 0,"Ri8Twb"));var u=y.next().value,t=y.next().value,b=function(){var r;if(!(r=W().switchButton)){var F=W();r=G==null?void 0:G();F={switchOnCommand:F.switchOnCommand,switchOffCommand:F.switchOffCommand,switchedOnByDefault:F.switchedOnByDefault,isDisabled:F.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:F.a11yLabelSwitchedOn,a11yLabelSwitchedOff:F.a11yLabelSwitchedOff};r!==void 0&&(F.isDisabled=r);r={switchButtonViewModel:F}}return r};
return _.X("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.X(_.DF,{data:function(){return{title:W().title,subtitle:W().attributedSubtitle,leadingImage:W().leadingImage,leadingAccessory:W().leadingAccessory,isDisabled:W().isDisabled}},
onTap:function(r){var F=OTO(b());!F||F.isDisabled||W().ignoreTapUntilCommandCompletes&&u()||(c==null||c(r),$Ut(F,D(),r,W().ignoreTapUntilCommandCompletes,t),Y(!D()),Z==null||Z(D()))},
trailingAccessory:_.X(_.bg,{data:b},{switchButtonViewModel:function(r){return _.X(B83,{data:r.data,parentActive:D,handleOnTapEventInParent:!!c})}})}))},"jc");var v4E=_.bN("DOWNLOAD",{},"Download"),dk8=_.bN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),SjV=_.bN("RETRY",{},"Retry"),T8m=_.bN("PAUSE_DOWNLOADING",{},"Pause downloading"),apE=_.bN("RESUME_DOWNLOAD",{},"Resume download"),JVD={text:v4E,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Nv={text:dk8,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},QhD={text:SjV,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
VBw={text:T8m,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},ChH={text:apE,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var xk8=_.Ax(function(y){var W=function(){var u=y.data();u=_.pp(u.rendererContext);var t;return(t=_.g(u,_.yL))==null?void 0:t.videoId},c=_.FP(function(u){var t=W(),b=B4I(y.data());
return t?_.Iv(u,t):b?_.pq(u,b):"TRANSFER_STATE_UNKNOWN"}),Z=_.Zx(_.MzH,W),G=_.FP(function(u){return _.dtH(u,W(),B4I(y.data()))}),D=function(){return hCf(c(),Z(),_.pp(y.data().rendererContext),!!B4I(y.data()))},Y=function(){return G()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.X("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Y},_.X(_.YN,{cond:function(){return!Y()},
then:function(){return _.X(_.YN,{cond:D,then:function(u){return _.X(_.mC,{each:u},function(t){return _.X(_.DF,{data:t,isCompact:y.isCompact,isMenuItem:y.isMenuItem,inPopup:y.inPopup})})}})}}))},"kc");
xk8.idomCompat=!0;var Lca;Lca=_.ug({listItemViewModel:Phw,downloadListItemViewModel:xk8,switchListItemViewModel:_.LdE});_.i_i=_.qi(vhO);_.eu(vhO);var MTE=_.Ax(function(y){var W=y.data;var c=y.isOverlay;y={};return _.X("yt-course-perks-view-model",{class:_.Mi("ytwCoursePerksViewModelHost",(y.ytwCoursePerksViewModelHostOverlay=c,y))},_.X("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X("div",null,_.X(_.YN,{cond:function(){return W().perks},
then:function(Z){return _.X(_.i_i,{data:function(){return{listItems:Z()}},
isCompact:!0,isOverlay:c})}})))},"lc");_.A3(MTE,"yt-course-perks-view-model",{props:{data:_.QE,isOverlay:_.QE}});_.A3(_.Ax(function(y){var W=y.data;return _.X("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.X("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.X(_.Da,{text:function(){return W().progressSummary}})),_.X("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.X("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.cF({width:function(){return W().progressPercentage*100+"%"}})})))},"mc"),"yt-course-progress-view-model",{props:{data:_.Ix}});var eq0=_.Ax(function(y){var W=_.V0(y,{}).data;return _.X("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.X(_.YN,{cond:function(){return W().progressSummary},
then:function(c){return _.X("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.X(_.Da,{text:c}))}}),_.X("div",{class:"ytwProgressViewModelHostProgressContainer"},_.X("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.X(_.Da,{text:function(){var c;
return(c=W())==null?void 0:c.leadingLabel}})),_.X("div",{class:"ytwProgressViewModelHostProgressBar"},_.X("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var c;return"width: "+(((c=W())==null?void 0:c.progressPercentage)||0)*100+"%"}}))))},"nc");var zv=_.Ax(function(y){var W=y.starNumber;var c=y.data;var Z=function(){var G;return((G=c())==null?void 0:G.rating)||0};
return _.X(_.YN,{cond:function(){return W()},
then:function(G){return _.X(_.u1,null,_.X(_.sE,{when:function(){return Z()>=G()-.25}},function(){return _.X("div",{class:"ytStarRatingViewModelHostStar"},_.X(_.Gb,{icon:"STAR_FILLED"}))}),_.X(_.sE,{when:function(){return Z()>=G()-.75}},function(){return _.X("div",{class:"ytStarRatingViewModelHostStar"},_.X(_.Gb,{icon:"STAR_HALF"}))}),_.X(_.L4y,null,function(){return _.X("div",{class:"ytStarRatingViewModelHostStar"},_.X(_.Gb,{icon:"STAR_BORDER"}))}))}})},"oc"),w1Q=_.Ax(function(y){y=y.data;
return _.X("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.X(zv,{starNumber:1,data:y}),_.X(zv,{starNumber:2,data:y}),_.X(zv,{starNumber:3,data:y}),_.X(zv,{starNumber:4,data:y}),_.X(zv,{starNumber:5,data:y}))},"pc");_.A3(_.Ax(function(y){var W=_.V0(y,{}).data;return _.X("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.X("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.X(_.Da,{text:function(){var c;return(c=W())==null?void 0:c.title}})),_.X("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.X(_.YN,{cond:function(){return W().starProgressViewModels},
then:function(c){return _.X("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.X(_.bg,{data:c},{progressViewModel:eq0}))}}),_.X("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.X("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.X(_.Da,{text:function(){var c;
return(c=W())==null?void 0:c.averageRatingLabel}})),_.X(_.YN,{cond:function(){return W().zeroStateText},
then:function(c){return _.X("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.X(_.Da,{text:c}))}}),_.X(_.YN,{cond:function(){return W().starRatingViewModel},
then:function(c){return _.X("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.X(_.bg,{data:c},{starRatingViewModel:w1Q}))}}),_.X("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.X(_.Da,{text:function(){var c;
return(c=W())==null?void 0:c.totalRatingsCountLabel}})))))},"qc"),"yt-course-ratings-view-model",{props:{data:_.QE}});var qjm;qjm={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"}};_.kD3=_.Ax(function(y){var W=_.HO(),c=_.qu();_.Xl(function(){requestAnimationFrame(function(){var Y;(Y=c.lottieEl)==null||Y.addEventListener("DOMLoaded",function(){var u;(u=y.onLottieLoaded)==null||u.call(y)})});
var Z,G=_.y8({browseEndpoint:{params:(Z=y.data)==null?void 0:Z.call(y).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}),D;((D=y.shouldSkipRequest)==null?0:D.call(y))||_.Z2(W.value,"yt-navigate",{endpoint:G})});
return _.X("yt-learning-journey-loader-view-model",{class:_.Mi("learningJourneyLoaderViewModelHost",y.className),"data-target-id":function(){var Z;return((Z=y.data)==null?void 0:Z.call(y).targetId)||""},
el:W},_.X(_.el,{className:_.Mi("learningJourneyLoaderViewModelLoader",y.className),animationName:function(){return qjm.animationConfig.name},
data:qjm,animationRef:c}))},"rc");_.A3(_.kD3,"yt-learning-journey-loader-view-model",{props:{data:_.Ix,className:_.QE,onLottieLoaded:_.QE,shouldSkipRequest:_.QE}});var jId=_.Ax(function(y){var W=y.data;y=_.z(_.G9(-1,void 0,"r4B6h"));var c=y.next().value,Z=y.next().value,G=function(t){return c()===t},D=function(t){return W().correctAnswerIndex===t},Y=function(){return c()!==-1},u=_.j9(function(){Z(-1);
return!1});
return _.X("learning-journey-quiz-view-model",{class:"learningJourneyQuizViewModelHost",style:_.cF({background:function(){return PE(I0(W())).backgroundColor}})},_.X(_.YN,{cond:function(){return!!W().video},
then:function(){return _.X("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.cF({background:function(){return PE(I0(W())).videoBackgroundColor}})},_.X(_.bg,{data:function(){return W().video}},{lockupViewModel:function(t){return _.X(ZW,{data:t.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.X("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.X("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.X("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.X("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.X("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.cF({color:function(){return PE(I0(W())).primaryTextColor}})},_.X(_.Da,{text:function(){var t=W(),b=Y(),r=c()===W().correctAnswerIndex;
return b?r?t.successTitle:t.failureTitle:t.questionHeaderText}})),_.X(_.YN,{cond:Y,
then:function(){return _.X("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":u,role:"button","aria-label":"Reset","tab-index":"0"},_.X("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.cF({fill:function(){return PE(I0(W())).primaryTextColor}})},_.X("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"})))}})),
_.X("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.cF({color:function(){return PE(I0(W())).secondaryTextColor}})},_.X(_.Da,{text:function(){var t=W();
return Y()?t.explanationText:t.questionSubheaderText}}))),_.X("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.X(_.mC,{each:function(){return W().optionsData||[]}},function(t,b){var r={};
return _.X("div",{class:_.Mi("learningJourneyQuizViewModelHostQuizOptions",(r.learningJourneyQuizViewModelHostQuizHover=function(){return!Y()},r.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return c()===W().correctAnswerIndex&&G(b())},r.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return c()!==W().correctAnswerIndex&&G(b())},r.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return Y()&&!G(b())},r)),
"on:click":_.j9(function(){if(Y())return!1;Z(b());return!1}),
style:_.cF({background:function(){return Y()&&G(b())?"":PE(I0(W())).optionColor}}),
role:"button","aria-disabled":Y,"tab-index":"0"},_.X(_.YN,{cond:Y,then:function(){return _.X("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var F=b();return D(F)?"0 0 24 24":"0 -960 960 960"},
style:_.cF({fill:function(){return PE(I0(W())).primaryTextColor}})},_.X("path",{d:function(){var F=b();
return D(F)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.X(_.Da,{text:t.optionText}))})))))},"sc");
jId.idomCompat=!0;_.A3(jId,"learning-journey-quiz-view-model",{props:{data:_.Ix}});var yHS=_.Ax(function(y){var W=_.HO();_.VL(W,function(){return y.data().rendererContext});
var c=_.V0(y,{palette:void 0,isLastItem:!1}),Z=c.palette,G=c.isLastItem,D=function(){return y.data().isHighlighted},Y=function(){var b;
return dUg((b=Z())==null?void 0:b.iconDisabledColor)},u=function(){var b;
return dUg((b=Z())==null?void 0:b.primaryTitleColor)},t=function(){var b;
return dUg((b=Z())==null?void 0:b.secondaryTitleColor)};
c={};return _.X("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:W},_.X(_.bg,{data:function(){return y.data().thumbnail}},{thumbnailViewModel:eA}),_.X("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.X("div",{class:_.Mi("ytMacroMarkerListItemViewModelTimeDescription",(c.ytMacroMarkerListItemViewModelHighlighted=D,c)),
style:_.cF({"background-color":function(){return D()?u():Y()},
color:function(){return D()?"":t()}})},_.X(_.Da,{text:function(){return y.data().timestamp}})),_.X("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.cF({"background-color":function(){return G()?"transparent":Y()}})}),_.X("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(D()?u():t())}},_.X(_.Da,{text:function(){return y.data().title}}))))},"tc");_.Yv=_.Ax(function(y){function W(N3){Q("transform:translateX("+(_.Nn("HTML_DIR")==="rtl"?"":"-")+N3+"px)")}
function c(N3){return Math.min(Math.max(N3,0),V()-jI())}
function Z(){var N3=M()+bf();return G()?(Math.round(jI()/N3)||1)*N3:0}
var G=function(){return y.data().items||[]},D=function(){return y.data().previousButton},Y=function(){return y.data().nextButton},u=function(){var N3,K8;
return(K8=(N3=y.disableArrows)==null?void 0:N3.call(y))!=null?K8:!1},t=function(){var N3;
return!((N3=y.forceNarrowLayout)==null||!N3.call(y))},b=_.HO(),r=_.HO(),F=_.z(_.G9(0,void 0,"yngx7d")),K=F.next().value,l=F.next().value;
F=_.z(_.G9(0,void 0,"rUOyGb"));var N=F.next().value,P=F.next().value,V=N;N=_.z(_.G9("",void 0,"jv2kWc"));F=N.next().value;var Q=N.next().value;N=_.z(_.G9(0,void 0,"Xb0f0d"));var S=N.next().value,cy=N.next().value,M=S;N=_.z(_.G9(0,void 0,"pt5wQ"));S=N.next().value;var fa=N.next().value,jI=S;N=_.z(_.G9(!1,void 0,"FfPefe"));var sD=N.next().value,ED=N.next().value;N=_.z(_.G9(0,void 0,"kB5mhb"));S=N.next().value;var N1=N.next().value,bf=S;N=_.z(_.G9(0,void 0,"dnDmUd"));var Py=N.next().value,WJ=N.next().value,
t5=function(){var N3,K8=(N3=y.data())==null?void 0:N3.responsiveContainerConfiguration,PJ,cX;return K8?T6H(K8==null?void 0:K8.responsiveSize):(cX=(PJ=y.sizing)==null?void 0:PJ.call(y))!=null?cX:"STANDARD"};
N=_.Yk(function(){return!u()&&K()>0},void 0,"ZIGxke");
S=_.Yk(function(){return!u()&&K()<V()-jI()},void 0,"OJzhRd");
var xF=function(){l(c(K()-Z()));W(K())},M3=function(){l(c(K()+Z()));
W(K())},wS=function(){b.value!==null&&eV()},f8;
_.rj(function(){eV();window.ResizeObserver?(f8=new ResizeObserver(_.u5(wS,0)),f8.observe(b.value)):window.addEventListener("resize",wS)});
_.KL(function(){if(window.ResizeObserver){var N3;(N3=f8)==null||N3.disconnect()}else window.removeEventListener("resize",wS)});
var eV=function(){var N3=b.value.clientWidth,K8=y.includeMargin!==void 0?y.includeMargin():!1,PJ;var cX=y.hasPeek!==void 0?y.hasPeek():!((PJ=y.data())==null||!PJ.hasPeek);N3=_.S8({containerWidth:N3,hasPeek:cX,sizing:t5(),marginSettings:K8?t()?4:1:0});N1(N3.gutter);WJ(N3.margin);cy(N3.itemWidth);ED(N3.maxContainerWidth<528||t());fa(N3.maxContainerWidth);G()&&P((N3.itemWidth+N3.gutter)*G().length-N3.gutter)};
return _.X("horizontal-shelf-view-model",{class:_.Mi("ytwHorizontalShelfViewModelHost",y.className),el:b},_.X(_.YN,{cond:function(){return y.data().header},
then:function(){return _.X("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.cF({width:function(){return jI()+"px"},
padding:function(){return"0 "+Py()+"px"}})},_.X(_.bg,{data:function(){return y.data().header}},{sectionHeaderViewModel:function(N3){return _.X(_.hr,{data:N3.data,
disableHorizontalPadding:!0,forceSmallLayout:sD,useResponsiveLayout:!0})}}))}}),_.X("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.X("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.cF({width:function(){return jI()+"px"},
padding:function(){return"0 "+Py()+"px"},
overflow:function(){return u()?"auto":"hidden"}})},_.X("div",{class:"ytwHorizontalShelfViewModelItems",
el:r,style:F},_.X(_.bg,{data:G},{macroMarkerListItemViewModel:function(N3,K8){return _.X("div",{style:_.cF({width:function(){return M()+"px"},
"margin-right":function(){return(K8()===G().length-1?0:bf())+"px"}})},_.X(yHS,{data:N3.data,
palette:_.Jx(y.palette),isLastItem:function(){return K8()===G().length-1}}))},
lockupViewModel:function(N3,K8){var PJ=N3.data;return _.X("div",{style:_.cF({width:function(){return M()+"px"},
"margin-right":function(){return(K8()===G().length-1?0:bf())+"px"}})},_.X(ZW,{data:PJ,
containerType:4,sizing:t5,protectBackground:y.protectBackground,thumbnailFixedWidth:function(){return Syg(PJ())+"px"},
thumbnailTargetWidth:function(){return Syg(PJ())}}))}}))),_.X(_.YN,{cond:N,
then:function(){return _.X("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.X(_.bg,{data:D},{buttonViewModel:function(N3){return _.X(_.OV,{data:N3.data,onClick:xF})}}))}}),_.X(_.YN,{cond:S,
then:function(){return _.X("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.X(_.bg,{data:Y},{buttonViewModel:function(N3){return _.X(_.OV,{data:N3.data,onClick:M3})}}))}})))},"uc");
_.Yv.idomCompat=!0;var WEH=_.Ax(function(y){var W=function(){return y.data().targetId||""},c=function(){var r;
return((r=y.data())==null?void 0:r.expansionEntityKey)||""},Z=_.Zx(_.jmh,c),G=function(){var r;
return Z()?Z().value===W():(r=y.data())==null?void 0:r.isExpanded},D=function(){if(G()){var r=!0;
y.onCollapse!==void 0&&(r=y.onCollapse());r&&_.PQ(_.o3("stringEntity",c(),{key:c(),value:""}))}else _.PQ(_.o3("stringEntity",c(),{key:c(),value:W()}))},Y=_.j9(D),u=function(){var r;
return(((r=y.accordionStyle)==null?void 0:r.call(y))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},t={},b={};
return _.X("yt-accordion-item-view-model",{class:_.Mi("ytAccordionItemViewModelHost",y.className,(t.ytAccordionItemViewModelExpanded=function(){return G()},t.ytAccordionItemViewModelHidden=function(){var r;
return(r=y.hideIfNotExpanded)==null?void 0:r.call(y)},t.ytAccordionItemViewModelMini=u,t)),
"data-target-id":W},_.X("div",{class:"ytAccordionItemViewModelContainer"},_.X("div",{class:"ytAccordionItemViewModelLeftSection","on:click":Y},_.X(_.Da,{text:function(){return y.data().title},
className:"ytAccordionItemViewModelLabel"})),_.X("div",{class:"ytAccordionItemViewModelRightSection"},_.X(_.bg,{data:function(){return G()?y.data().expandButton:y.data().collapseButton}},{buttonViewModel:function(r){return _.X(_.OV,{data:r.data,
className:"ytAccordionItemViewModelToggleButton",onClick:D})}}))),_.X("div",{class:"ytAccordionItemViewModelContainer"},_.X("div",{class:_.Mi("ytAccordionItemViewModelContent",(b.ytAccordionItemViewModelExpandedSubtitle=function(){return G()},b))},_.X(_.YN,{cond:function(){return!u()},
then:function(){return _.X(_.Da,{text:function(){return y.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.X(_.bg,{data:function(){return y.data().content}},{horizontalShelfViewModel:function(r){return _.X(_.Yv,{data:r.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"vc");_.cHd=_.Ax(function(y){var W=_.z((0,_.yV8)(y.data)).next().value,c=function(){return y.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Z=function(){return c()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},G=_.z(_.G9(!0,void 0,"ewf0jb")),D=G.next().value,Y=G.next().value,u=function(){return Z()&&D()},t=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Y(!D())}}};
G={};return _.X("yt-accordion-view-model",{class:_.Mi("ytAccordionViewModelHost",(G.ytAccordionViewModelMinimized=function(){return u()},G)),
"data-target-id":function(){return y.data().targetId||""}},_.X(_.YN,{cond:function(){return Z()||!!W().title},
then:function(){return _.X("div",{class:"ytAccordionViewModelHeader"},_.X(_.Da,{text:function(){return W().title},
className:"ytAccordionViewModelTitle"}),_.X(_.YN,{cond:Z,then:function(){return _.X(M8,{data:t,iconName:function(){return u()?"chevron_down":"chevron_up"}})}}))}}),_.X("div",{class:"ytAccordionViewModelContent"},_.X(_.bg,{data:function(){return W().contents}},{accordionItemViewModel:function(b){return _.X(WEH,{data:b.data,
className:"ytAccordionViewModelRow",accordionStyle:c,hideIfNotExpanded:u,onCollapse:function(){return Z()?(Y(!0),!1):!0}})}})))},"wc");_.A3(_.cHd,"yt-accordion-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W,c=(W=_.U().resolve(_.xN(_.EH)))==null?void 0:W(),Z=_.z(_.G9(!1,void 0,"WGEOWd"));W=Z.next().value;var G=Z.next().value;Z=_.z(_.G9(!0,void 0,"fAuWJ"));var D=Z.next().value,Y=Z.next().value,u=function(){G(!0);_.OH(y.data().searchEndpoint||{});return!1},t=_.HO();
Z=_.j9(function(){Y(t.value.value.length===0)});
var b=_.j9(function(l){l.key!=="Enter"||l.shiftKey||D()||(l.preventDefault(),u())}),r={},F={},K={};
return _.X("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.X("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.X(_.J3,{data:function(){return y.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.X("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.X("div",{class:_.Mi("ytLearningJourneyZeroStateSearchBar",(r.ytLearningJourneyZeroStateSearchBarDark=c,r))},_.X("textarea",{class:_.Mi("ytLearningJourneyZeroStateTextInput",(F.ytLearningJourneyZeroStateTextInputDark=c,F)),el:t,"on:keyup":Z,"on:keydown":b,placeholder:"What do you want to learn?",rows:1})),_.X("div",{class:_.Mi("ytLearningJourneyZeroStateSearchButtonContainer",
(K.ytLearningJourneyZeroStateSearchButtonContainerDark=c,K))},_.X(_.OV,{data:function(){return _.g(y.data().searchButton,_.ri)},
className:"search-button",onClick:u,buttonOverrides:function(){return{disabled:D(),style:c?"mono-inverse":"mono",size:"XL"}}}))),_.X(_.YN,{cond:W,
then:function(){return _.X("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.X(_.bg,{data:function(){return y.data().loader}},{learningJourneyLoaderViewModel:function(l){return _.X(_.kD3,{data:l.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.X("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.X(_.bg,{data:function(){return y.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(l){return _.X(kBm,{data:l.data,
layout:1})}}))}}))},"xc"),"yt-learning-journey-zero-state",{props:{data:_.Ix}});var ZaS=_.Ax(function(y){var W=y.data;return _.X("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Mi("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.X(_.Da,{text:function(){var c;return(c=W())==null?void 0:c.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.X(_.bg,{data:function(){return W().actionButton}},{buttonViewModel:function(c){return _.X(_.OV,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:c.data})}}))},"yc");var GOf=_.Ax(function(y){var W=y.data;return _.X("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Mi("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.X(_.Da,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var c;return(c=W())==null?void 0:c.displayName},
ellipsisTruncate:!0}),_.X(_.bg,{data:function(){return W().badge}},{buttonViewModel:function(c){return _.X(_.OV,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:c.data})}}))},"zc");_.A3(_.Ax(function(y){var W=y.data;return _.X("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.X("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.X(_.Da,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var c;return(c=W())==null?void 0:c.rank}})),_.X("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.X(_.bg,{data:function(){return W().avatar}},{avatarViewModel:_.Om})),_.X("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.X(_.bg,{data:function(){return W().content}},{liveLeaderboardItemChannelContentViewModel:GOf,
liveLeaderboardItemActionContentViewModel:ZaS})),_.X(_.Da,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var c;return(c=W())==null?void 0:c.points}}))},"Ac"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;return _.X("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.X(_.Da,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var c,Z;return(c=W())==null?void 0:(Z=c.ranking)==null?void 0:Z.rank}}),_.X("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.X(_.bg,{data:function(){return W().avatar}},{avatarViewModel:_.Om})),_.X(_.Da,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var c,Z;return(c=W())==null?void 0:(Z=c.channelContent)==null?void 0:Z.channelName}}),_.X(_.Da,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var c;return(c=W())==null?void 0:c.points}}))},"Bc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Ix}});var fHf=_.Ax(function(y){y=_.V0(y,{wrapper:!1}).wrapper;return _.X(_.YN,{cond:y,then:function(){return _.X("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.X("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.X("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Cc");
fHf.idomCompat=!0;var oF3=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],D1Q=_.Ax(function(y){var W=y.data;var c=_.HO(),Z=_.Yk(function(){return W().command},void 0,"CGDtVe");
_.$k(function(){Z()&&_.$0(Z(),{form:{element:c.value}})});
return _.X("div",{el:c},_.X(_.YN,{cond:function(){return W().qrCodeImage},
then:function(G){return _.X(_.J3,{data:G,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.X(_.YN,{cond:function(){return W().spinner},
then:function(){return _.X(fHf,null)}})}}),_.X(_.YN,{cond:function(){return W().label},
then:function(G){return _.X(_.Da,{text:G,className:"YtQrCodeRendererHostLabel"})}}),_.X(_.YN,{cond:function(){return W().labels},
then:function(G){return _.X("div",{class:"YtQrCodeRendererHostLabels"},_.X(_.mC,{each:G},function(D){return _.X(_.Da,{text:D})}))}}))},"Ec");_.A3(_.Ax(function(y){var W=y.data;var c=_.Yk(function(){return W().qrEntityKey},void 0,"joYCxd"),Z=_.Yk(function(){return W().deleteEntityOnDismiss},void 0,"x3yAde"),G=_.Yk(function(){return W().command},void 0,"dJe1Re"),D=_.Zx(NAF,c);
y=_.Yk(function(){return W().style&&oF3.includes(W().style)},void 0,"rGILzf");
var Y=_.HO();_.MF(Y,{visibilityCallback:function(u){u&&G()&&_.$0(G())},
showOption:{calledOnce:!0,state:"visible"}});_.rj(function(){_.KL(function(){Z()&&c()&&_.I5().dispatch(_.o3("qrCodeEntity",c()))})});
return _.X("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:Y},_.X(_.YN,{cond:y,then:function(){return _.X(_.YN,{cond:D,then:function(u){return _.X(D1Q,{data:u})}})}}))},"Dc"),"yt-qr-code-renderer",{props:{data:_.Ix}});var zt9=_.Ax(function(y){var W=y.data;var c=y.topbarOffset;var Z,G=((Z=_.U().resolve(_.xN(_.EH)))==null?void 0:Z())||!1;return _.X("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var D=W();var Y,u,t=G?(Y=D.config)==null?void 0:Y.darkThemeBackgroundColor:(u=D.config)==null?void 0:u.lightThemeBackgroundColor;D=t?_.$$(t):void 0;D="background-color: "+D+";";c!==void 0&&(D+="top: -"+c()+"px;");return D},
"aria-hidden":!0},_.X(_.YN,{cond:function(){var D,Y,u;return!!((D=W().backgroundImageConfig)==null?0:(Y=D.image)==null?0:(u=Y.sources)==null?0:u.length)},
then:function(){return _.X(_.J3,{data:function(){var D;return(D=W().backgroundImageConfig)==null?void 0:D.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.X("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+T4F(G,W().gradientColorConfig)+";"}}))},"Fc");
zt9.idomCompat=!0;var YD3=_.qi(ajt);_.eu(ajt);var m1D=_.Ax(function(y){var W=y.data;var c=y.isOverlay;return _.X("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.X("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.X(_.bg,{data:function(){return W().header}},{sectionHeaderViewModel:function(Z){return _.X(_.hr,{data:Z.data,
isOverlay:c})}})),_.X("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.X(_.bg,{data:function(){return W().channelInfoButtons}},{flexibleActionsViewModel:kBm})),_.X("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.X(_.bg,{data:function(){return W().description}},{descriptionPreviewViewModel:function(Z){return _.X(YD3,{data:Z.data,
isOverlay:c})}})))},"Gc");
m1D.idomCompat=!0;var sI6=_.Ax(function(y){var W=y.data;var c={};return _.X("factoid-view-model",{class:_.Mi("ytwFactoidViewModelHost",(c.ytwFactoidViewModelHostOverlay=y.isOverlay,c))},_.X(_.Da,{text:function(){return W().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.X(_.Da,{text:function(){return W().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Hc");
sI6.idomCompat=!0;var uhZ=_.Ax(function(y){var W=y.data;var c=y.isOverlay;return _.X("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.X(_.bg,{data:function(){return W().factoids}},{factoidViewModel:function(Z){return _.X(sI6,{data:Z.data,
isOverlay:c})}}))},"Ic");
uhZ.idomCompat=!0;_.tIQ=_.Ax(function(y){var W=y.data;var c=y.isOverlay;return _.X("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.X(_.bg,{data:function(){return W().items}},{channelInfoViewModel:function(Z){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(m1D,{data:Z.data,
isOverlay:c}))},
coursePerksViewModel:function(Z){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(MTE,{data:Z.data,isOverlay:c}))},
descriptionPreviewViewModel:function(Z){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(YD3,{data:Z.data,isOverlay:c}))},
factoidsRowViewModel:function(Z){return _.X("div",{class:"ytwCourseMetadataViewModelHostItem"},_.X(uhZ,{data:Z.data,isOverlay:c}))}}))},"Jc");var nF6=_.Ax(function(y){return _.X("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.X(_.bg,{data:function(){return y.data().content}},{courseMetadataViewModel:function(W){return _.X(_.tIQ,{data:W.data,
isOverlay:y.isOverlay})}}))},"Kc");var XyD=_.Ax(function(y){var W=y.data;y=y.className;var c=_.HO(),Z=function(){var D;return _.PG((D=W())==null?void 0:D.rendererContext)},G={};
G=(G["dynamic-text-view-model-wiz"]=!0,G["dynamic-text-view-model-wiz--tappable"]=function(){return Z()},G);
_.VL(c,function(){var D;return(D=W())==null?void 0:D.rendererContext});
return _.X("yt-dynamic-text-view-model",{el:c,role:function(){return Z()?"link":void 0},
tabindex:function(){return Z()?0:void 0},
class:_.Mi(y,G)},_.X("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var D,Y,u;return(u=(Y=_.g((D=W())==null?void 0:D.rendererContext,_.Cp))==null?void 0:Y.label)!=null?u:""}},_.X(_.Da,{text:function(){return W().text},
userInput:!0})))},"Lc");
XyD.idomCompat=!0;_.ba6=_.Ax(function(y){var W=y.data;var c=y.isPositionRelative;var Z=_.LD(),G=_.eCI("(max-width: 527.9px)"),D=function(){var Y,u;return(u=(Y=W())==null?void 0:Y.style)!=null?u:"IMAGE_BANNER_STYLE_FULL_BLEED"};
y={};y=(y["yt-image-banner-view-model-wiz"]=!0,y["yt-image-banner-view-model-wiz--inset"]=function(){return wSI(D())},y["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.gV(!0)&&!(c==null?0:c())},y["yt-image-banner-view-model-wiz--small-inset"]=function(){return wSI(D())&&G()},y["yt-image-banner-view-model-wiz--tappable"]=function(){var Y;
return _.gV(Z.value)&&_.PG((Y=W())==null?void 0:Y.rendererContext)},y);
_.VL(Z,function(){var Y;return(Y=W())==null?void 0:Y.rendererContext});
return _.X("yt-image-banner-view-model",{el:Z,class:_.Mi(y)},_.X(_.YN,{cond:function(){var Y;return(Y=W())==null?void 0:Y.image},
then:function(){return _.X(_.J3,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.X(_.bg,{data:function(){var Y;
return(Y=W())==null?void 0:Y.overlays}},{thumbnailHoverOverlayViewModel:wrQ}))},"Mc");
_.ba6.idomCompat=!0;var JD;JD=_.ug({descriptionPreviewViewModel:ajt,dynamicTextViewModel:XyD,contentPreviewImageViewModel:_.y9,contentMetadataViewModel:VFQ,flexibleActionsViewModel:q8V,attributionViewModel:leQ,imageBannerViewModel:_.ba6,decoratedAvatarViewModel:y4W,cinematicContainerViewModel:zt9,flexibleContainer:nF6});_.rH9=_.qi(_.Zbh);_.eu(_.Zbh);_.A3(_.Ax(function(y){var W=_.z(_.G9(!1,void 0,"vVRl3b")),c=W.next().value,Z=W.next().value;return _.X("yt-official-card-view-model",{class:_.Mi("ytOfficialCardViewModelHost",y.className),style:_.cF({"background-color":function(){var G,D=ve1((G=y.data())==null?void 0:G.backgroundColor);return D?_.KZ(D):void 0}})},_.X(_.bg,{data:function(){return y.data().header}},{pageHeaderViewModel:function(G){return _.X(_.rH9,{data:G.data,
noPadding:!0})}}),_.X(_.bg,{data:function(){return y.data().contents}},{horizontalShelfViewModel:_.Yv}),_.X(_.YN,{cond:c,
then:function(){return _.X("div",{class:"ytOfficialCardViewModelExpandedContent"},_.X(_.bg,{data:function(){return y.data().expandedContents}},{horizontalShelfViewModel:function(G){return _.X(_.Yv,{data:G.data,
sizing:"MINI"})}}),_.X("div",{class:"ytOfficialCardViewModelCollapseButton"},_.X(_.bg,{data:function(){return y.data().collapseButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
onClick:function(){Z(!c())}})}})))},
else:function(){return _.X("div",{class:"ytOfficialCardViewModelExpandButton"},_.X(_.bg,{data:function(){return y.data().expandButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
onClick:function(){Z(!c())}})}}))}}))},"Nc"),"yt-official-card-view-model",{props:{data:_.Ix,
className:_.Ix}});var GJ1=_.ug({buttonViewModel:_.OV});_.eu(fkD);_.TP(fkD,"ytw-search-friction-view-model",{propNames:["data"]});_.mN=_.Ax(function(y){var W=_.HO(),c,Z=(c=_.U().resolve(_.xN(_.EH)))==null?void 0:c();_.$k(function(){var G=W.value;var D=new h6E,Y=new Map(D.JSC$7170_sanitizerTable.globalAttributePolicies);Y.set("style",{policyAction:4});D.JSC$7170_sanitizerTable=new nd(D.JSC$7170_sanitizerTable.allowedElements,D.JSC$7170_sanitizerTable.elementPolicies,D.JSC$7170_sanitizerTable.allowedGlobalAttributes,Y,D.JSC$7170_sanitizerTable.globallyAllowedAttributePrefixes);var u=["data-time"];if(u===void 0)Y=new Set(D.JSC$7170_sanitizerTable.globallyAllowedAttributePrefixes),
Y.add("data-"),D.JSC$7170_sanitizerTable=new nd(D.JSC$7170_sanitizerTable.allowedElements,D.JSC$7170_sanitizerTable.elementPolicies,D.JSC$7170_sanitizerTable.allowedGlobalAttributes,D.JSC$7170_sanitizerTable.globalAttributePolicies,Y);else{Y=new Set(D.JSC$7170_sanitizerTable.allowedGlobalAttributes);u=_.z(u);for(var t=u.next();!t.done;t=u.next()){t=t.value;if(t.indexOf("data-")!==0)throw Error("qa`"+t);Y.add(t)}D.JSC$7170_sanitizerTable=new nd(D.JSC$7170_sanitizerTable.allowedElements,D.JSC$7170_sanitizerTable.elementPolicies,
Y,D.JSC$7170_sanitizerTable.globalAttributePolicies,D.JSC$7170_sanitizerTable.globallyAllowedAttributePrefixes)}Y=new Set(D.JSC$7170_sanitizerTable.allowedGlobalAttributes);Y.add("class");D.JSC$7170_sanitizerTable=new nd(D.JSC$7170_sanitizerTable.allowedElements,D.JSC$7170_sanitizerTable.elementPolicies,Y,D.JSC$7170_sanitizerTable.globalAttributePolicies,D.JSC$7170_sanitizerTable.globallyAllowedAttributePrefixes);_.wf(G,_.J9i(D.build(),Dbw(y.text())));zct(W.value)});
c={};return _.X("div",null,_.X("markdown-div",{class:_.Mi("ytwMarkdownDivHost",(c.ytwMarkdownDivDark=Z,c.ytwMarkdownDivHostSmall=function(){var G;return((G=y.isSmallText)==null?void 0:G.call(y))||!1},c)),
el:W}))},"Oc");
_.mN.idomCompat=!0;var FE3=_.Ax(function(y){var W=y.imageData;var c=_.Jx(y.isInList,!1),Z=function(){return c()?{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 _.X("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.X(_.YN,{cond:function(){return W().image},
then:function(G){return _.X(_.J3,{data:G,alt:function(){return Z().alt},
contentMode:function(){return Z().contentMode},
targetWidth:function(){return Z().targetWidth},
targetHeight:function(){return Z().targetHeight},
className:function(){return Z().className}})}}),_.X("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.X("div",{class:_.Mi("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.X(_.Da,{text:function(){return W().title}})),_.X(_.mC,{each:function(){var G;
return(G=W().description)!=null?G:[]}},function(G){return _.X("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.X(sh,{content:G}))})))},"Pc"),U1H=_.Ax(function(y){var W=y.list;
var c=function(){var Z;return(Z=W().items)!=null?Z:[]};
return _.X("div",{class:"ytwGenAiRichTextViewModelListContent"},_.X(_.YN,{cond:function(){return W().title},
then:function(Z){return _.X("div",{class:_.Mi("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.X(_.Da,{text:Z}))}}),_.X(_.YN,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.X("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.X(_.mC,{each:c},function(Z){return _.X("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.X(sh,{content:Z,isInList:!0}))}))}}),_.X(_.YN,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.X("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.X(_.mC,{each:c},function(Z){return _.X("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.X(sh,{content:Z,isInList:!0}))}))}}),_.X(_.YN,{cond:function(){return W().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.X("div",{class:"ytwGenAiRichTextViewModelImageList"},_.X(_.mC,{each:c},function(Z){return _.X("div",{class:"ytwGenAiRichTextViewModelListItem"},_.X(sh,{content:Z,isInList:!0}))}))}}))},"Qc"),$1H=_.Ax(function(y){var W=y.table;
return _.X("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.X("thead",null,_.X("tr",null,_.X(_.mC,{each:function(){var c,Z;return(Z=(c=W().header)==null?void 0:c.cells)!=null?Z:[]}},function(c){return _.X("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.X(_.mC,{each:function(){return c.contents}},function(Z){return _.X(sh,{content:Z})}))}))),_.X("tbody",null,_.X(_.mC,{each:function(){var c;
return(c=W().rows)!=null?c:[]}},function(c){return _.X("tr",null,_.X(_.mC,{each:function(){return c.cells}},function(Z){return _.X("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.X(_.mC,{each:function(){return Z.contents}},function(G){return _.X(sh,{content:G})}))}))})))},"Rc"),sh=_.Ax(function(y){var W=y.content;
var c=_.Jx(y.isInList,!1),Z=function(){var G,D;return(D=(G=W().contentBlock)==null?void 0:G.contents)!=null?D:[]};
return _.X("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.X(_.YN,{cond:function(){return W().text},
then:function(G){return _.X(_.Da,{className:"ytwGenAiRichTextViewModelText",text:G})}}),_.X(_.YN,{cond:function(){return W().image},
then:function(G){return _.X(FE3,{imageData:G,isInList:c})}}),_.X(_.YN,{cond:function(){return W().list},
then:function(G){return _.X(U1H,{list:G})}}),_.X(_.YN,{cond:function(){return W().contentBlock},
then:function(){return _.X("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.X(_.mC,{each:Z},function(G){return _.X(sh,{content:G,isInList:!1})}))}}),_.X(_.YN,{cond:function(){return W().table},
then:function(G){return _.X($1H,{table:G})}}))},"Sc"),KEZ=_.Ax(function(y){var W={};
W=_.wZ("ytwGenAiRichTextViewModelHost",(W.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.wj("search_overview_link_style")),W));return _.X("gen-ai-rich-text-view-model",{class:W},_.X(sh,{content:function(){return y.data().content}}))},"Tc");_.eu(YlD);_.eu(Vo);_.OaQ=_.Ax(function(y){var W=y.data;var c=function(){var P;return((P=W().loadingUi)!=null?P:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Z=function(){return W().isLoading&&(c()==="UNSPECIFIED"||c()==="GHOST_CARD")},G=function(){return!W().isLoading},D=function(){return!!W().content&&!W().contents},Y=function(){return!!W().contents},u=function(){return!!W().nextQueryButtons},t=function(){return W().isLoading&&c()==="INVISIBLE"},b=function(){var P,V;
return(V=(P=W().headerIcon)==null?void 0:P.iconType)!=null?V:""},r=function(){var P;
return(P=W().content)!=null?P:""},F=function(){return!!W().sourcesSection},K,l=!((K=_.U().resolve(_.xN(_.EH)))==null||!K()),N=_.Yk(function(){var P=[],V=W().contents;
if(V)for(var Q=0;Q<V.length;Q++){var S=_.g(V&&V[Q],MxQ);S&&P.push(S)}return P},void 0,"ycU97e");
_.rj(function(){W().isLoading||_.PA("so_re",void 0,"search_overview_answer")});
return _.X("ytd-overview-answer-view-model",{class:function(){var P={};P=(P.ytdOverviewAnswerViewModelHost=!0,P.ytdOverviewAnswerViewModelDarkBackground=l&&!t(),P.ytdOverviewAnswerViewModelLightBackground=!l&&!t(),P);return _.wZ(P)}},_.X(_.YN,{cond:function(){return!t()},
then:function(){return _.X(_.a2,null,_.X("h2",null,_.X("div",{class:"ytdOverviewAnswerViewModelHeader"},_.X(_.YN,{cond:b,then:function(P){return _.X("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.X(_.Gb,{icon:P}))}}),_.X("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.X("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return W().headerText}),_.X("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.X(_.Da,{text:function(){return W().headerSubtext}}))))),_.X(_.YN,
{cond:Z,
then:function(){return YlD()}}),_.X(_.YN,{cond:G,
then:function(){return _.X(_.a2,null,_.X(_.YN,{cond:D,then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelText"},_.X(_.mN,{text:r,isSmallText:!0}))}}),_.X(_.YN,{cond:Y,
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelRichText"},_.X(_.mC,{each:N},function(P){return _.X(KEZ,{data:P})}))}}),_.X(_.YN,{cond:u,
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.X(_.bg,{data:function(){return W().nextQueryButtons}},{buttonViewModel:function(P){return _.X(_.OV,{data:P.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Yv}))}}),_.X("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.X("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.X(_.YN,{cond:function(){return!!_.g(W().likeButtonViewModel,N0E)&&!!_.g(W().dislikeButtonViewModel,I7F)},
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.X(_.Wk8,{data:function(){return _.g(W().likeButtonViewModel,N0E)},
disableIconAnimation:!0}),_.X(_.ybZ,{data:function(){return _.g(W().dislikeButtonViewModel,I7F)}}))}})),_.X(_.YN,{cond:function(){var P;
return(P=W().sourcesSection)==null?void 0:P.headerText},
then:function(P){return _.X("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.X(_.Da,{text:P}))}})),_.X(_.YN,{cond:F,
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelSources"},_.X(_.bg,{data:function(){var P;return(P=W().sourcesSection)==null?void 0:P.sourcesShelf}},{buttonViewModel:_.OV,
horizontalShelfViewModel:function(P){return _.X(_.Yv,{data:P.data,includeMargin:!0,hasPeek:!0})}}))}}),_.X(_.YN,{cond:function(){return W().disclaimerText},
then:function(){return _.X("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.X(_.Da,{text:function(){return W().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Uc");var gFg=_.Ax(function(y){var W=y.data;var c=y.active;var Z=_.HO();_.$k(function(){var G,D,Y,u=((G=_.U().resolve(_.xN(_.EH)))==null?0:G())?(D=W())==null?void 0:D.darkThemeColorPalette:(Y=W())==null?void 0:Y.lightThemeColorPalette;u&&(u.invertedBackground&&Z.value.style.setProperty("--timestamp-active-background-color",_.KZ(u.invertedBackground)),u.additiveBackground&&Z.value.style.setProperty("--timestamp-background-color",_.KZ(u.additiveBackground)),u.textPrimaryInverse&&Z.value.style.setProperty("--timestamp-active-color",
_.KZ(u.textPrimaryInverse)),u.textSecondary&&Z.value.style.setProperty("--timestamp-color",_.KZ(u.textSecondary)))},"PUzFSd");
y={};return _.X("transcript-segment-view-model",{class:_.Mi("ytwTranscriptSegmentViewModelHost",(y.ytwTranscriptSegmentViewModelHostActive=c,y.ytwTranscriptSegmentViewModelHostModern=_.O("enable_timeline_view_modern_transcript")||_.O("enable_timeline_view_modern_transcript_fe"),y)),el:Z},_.X(_.YN,{cond:function(){var G;return(G=W())==null?void 0:G.timestamp},
then:function(G){var D={};return _.X("div",{class:_.Mi("ytwTranscriptSegmentViewModelTimestamp",(D.ytwTranscriptSegmentViewModelTimestampActive=c,D))},G)}}),_.X(_.Da,{text:function(){var G,D,Y;
return(Y=(G=W())==null?void 0:G.attributedText)!=null?Y:{content:(D=W())==null?void 0:D.simpleText}},
linkInheritColor:!0}))},"Vc");var RtZ=_.Ax(function(y){var W=y.data;return _.X("div",{class:"yt-video-attributes-section-view-model__header"},_.X("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return W().headerTitle}),_.X(_.YN,{cond:function(){return W().headerSubtitle},
then:function(){return _.X("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return W().headerSubtitle})}}))},"Wc"),lHZ=_.Ax(function(y){function W(N){return Math.max(Math.min(N,0),b()-u())}
var c=y.data;var Z=_.HO(),G=_.HO();y=_.z(_.G9(0,void 0,"ucDlDf"));var D=y.next().value,Y=y.next().value,u=D;y=_.z(_.G9(0,void 0,"lHzSub"));D=y.next().value;var t=y.next().value,b=D;y=_.z(_.G9(0,void 0,"Q8fDIe"));var r=y.next().value,F=y.next().value;_.rj(function(){var N=function(){Y(G.value.scrollWidth);t(Z.value.clientWidth)};
N();if(window.ResizeObserver){var P=new ResizeObserver(N);P.observe(Z.value);_.KL(function(){P.disconnect()})}});
var K=function(){F(W(r()+b()))},l=function(){F(W(r()-b()))};
return _.X("yt-video-attributes-section-view-model",null,_.X("div",{class:"yt-video-attributes-section-view-model"},_.X(_.YN,{cond:function(){return c().headerTitle},
then:function(){return _.X(RtZ,{data:c})}}),_.X("div",{class:_.Mi("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:Z},_.X("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.cF({transform:function(){var N=r();_.Nn("HTML_DIR")==="rtl"&&(N*=-1);return"translateX("+N+"px)"}}),
el:G},_.X(_.bg,{data:function(){return c().videoAttributeViewModels}},{videoAttributeViewModel:xci}))),_.X(_.bg,{data:function(){return c().footerButton}},{buttonViewModel:function(N){return _.X(_.OV,{data:N.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.X(_.YN,{cond:function(){return r()<0&&c().previousButton},
then:function(){return _.X("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.X(_.bg,{data:function(){return c().previousButton}},{buttonViewModel:function(N){return _.X(_.OV,{data:N.data,
onClick:K})}}))}}),_.X(_.YN,{cond:function(){return r()>b()-u()&&c().nextButton},
then:function(){return _.X("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.X(_.bg,{data:function(){return c().nextButton}},{buttonViewModel:function(N){return _.X(_.OV,{data:N.data,
onClick:l})}}))}})))},"Xc");
lHZ.idomCompat=!0;var EFf=_.Ax(function(y){var W=y.data;var c=y.active;var Z={},G={};return _.X("timeline-item-view-model",{class:_.Mi("ytwTimelineItemViewModelHost",(Z.ytwTimelineItemViewModelHostChapterChild=y.chapterChild,Z.ytwTimelineItemViewModelModern=_.O("enable_timeline_view_modern_transcript")||_.O("enable_timeline_view_modern_transcript_fe"),Z))},_.X("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.X("div",{class:_.Mi("ytwTimelineItemViewModelTimestamp",(G.ytwTimelineItemViewModelTimestampActive=
c,G))},function(){return W().timestamp})),_.X("div",{class:"ytwTimelineItemViewModelContentItems"},_.X(_.bg,{data:function(){return W().contentItems}},{transcriptSegmentViewModel:function(D){return _.X(gFg,{data:D.data,
active:c})},
videoAttributesSectionViewModel:lHZ})))},"Yc");var NgB=_.Ax(function(y){var W=y.data;y={};return _.X("timeline-chapter-view-model",{class:_.Mi("ytwTimelineChapterViewModelHost")},_.X("div",{class:_.Mi("ytwTimelineChapterViewModelTitle",(y.ytwTimelineChapterViewModelModern=_.O("enable_timeline_view_modern_transcript")||_.O("enable_timeline_view_modern_transcript_fe"),y))},function(){return W().title}),_.X(_.bg,{data:function(){return W().contents}},{timelineItemViewModel:function(c){return _.X(EFf,{data:c.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(c){return _.X(lHZ,{data:c.data})}}))},"Zc");var IH9=_.Ax(function(y){var W=y.data;var c=_.HO(),Z=_.Zx(_.O5a,function(){var D;return(D=W().markersEngagementPanelSyncEntityKey)!=null?D:""}),G=function(){var D;
return((D=Z())==null?void 0:D.activeItemIndex)===W().index};
y=_.j9(function(D){var Y,u,t,b,r;return _.m(function(F){if(F.nextAddress==1)return D.stopPropagation(),_.Fkw(_.N8(D),c.value,["A".toString(),"BUTTON".toString()])?F.return():(Y=_.UH(W().onTap))?_.n(F,_.wI(),2):F.return();u=F.yieldResult;b=(t=_.g(Y,_.Sb))==null?void 0:t.startTimeSeconds;b===void 0||(r=u)!=null&&r.seekTo(b,!0);_.F2(F)})});
return _.X("macro-markers-panel-item-view-model",{class:_.Mi("ytwMacroMarkersPanelItemViewModelHost",{"is-active":G}),el:c,"on:click":y,tabindex:0},_.X(_.bg,{data:function(){var D;return(D=W())==null?void 0:D.item}},{timelineChapterViewModel:function(D){return _.X(NgB,{data:D.data,
active:G})},
timelineItemViewModel:function(D){return _.X(EFf,{data:D.data,active:G})},
videoAttributeViewModel:xci}))},"$c");
IH9.idomCompat=!0;_.A3(IH9,"macro-markers-panel-item-view-model",{props:{data:_.Ix}});_.A3(lHZ,"yt-video-attributes-section-view-model",{props:{data:_.Ix}});var pyQ=_.Ax(function(y){var W=function(){var c,Z,G;return(G=(c=y.data().leadingLogoAccessibility)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label)!=null?G:""};
return _.X("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.X(_.YN,{cond:function(){return y.data().leadingLogo},
then:function(c){return _.X(_.J3,{className:"ytwFantasySectionHeaderViewModelLogo",data:c,alt:W})}}),_.X("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.X(_.Da,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return y.data().title}}),_.X(_.Da,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return y.data().subtitle}})),_.X(_.bg,{data:function(){return y.data().trailingButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ad");var PfQ=_.Ax(function(y){var W={};W=_.Mi("ytwFantasyTeamViewModelHost",(W.ytwFantasyTeamViewModelCompact=function(){var G;return!((G=y.compact)==null||!G.call(y))},W.ytwFantasyTeamViewModelUser=function(){return y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},W.ytwFantasyTeamViewModelOpponent=function(){return y.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},W));
var c=function(){var G,D,Y;return(Y=(G=y.data().teamLogoAccessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)!=null?Y:""},Z=_.Zx(Rw1,function(){return y.data().teamEntityKey});
return _.X("ytw-fantasy-team-view-model",{class:W},_.X(_.YN,{cond:function(){return y.data().teamLogo},
then:function(G){return _.X(_.J3,{className:"ytwFantasyTeamViewModelLogo",data:G,alt:c})}}),_.X("div",{class:"ytwFantasyTeamViewModelMetadata"},_.X("div",{class:"ytwFantasyTeamViewModelHeader"},_.X(_.Da,{className:"ytwFantasyTeamViewModelScore",
text:function(){var G;return(G=Z())==null?void 0:G.score}}),_.X(_.Gb,{icon:function(){var G;
return(G=Z())==null?void 0:G.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.X(_.Da,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var G;return(G=Z())==null?void 0:G.projectedScore}})),_.X(_.Da,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return y.data().primaryText}}),_.X(_.Da,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return y.data().secondaryText}}),_.X(_.Da,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return y.data().tertiaryText}})),_.X(_.Da,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var G;return(G=Z())==null?void 0:G.score}}))},"bd");_.A3(_.Ax(function(y){return _.X("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.X("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.X(_.bg,{data:function(){return y.data().summaryHeader}},{fantasySectionHeaderViewModel:pyQ})),_.X(_.bg,{data:function(){return y.data().userTeam}},{fantasyTeamViewModel:PfQ}),_.X(_.bg,{data:function(){return y.data().opponentTeam}},{fantasyTeamViewModel:PfQ}))},"cd"),"fantasy-league-summary-view-model",{props:{data:_.Ix}});var JHS=_.Ax(function(y){var W=_.V0(y,{shape:{},useCustomTabRenderable:!1}),c=W.shape;W=W.useCustomTabRenderable;var Z=y.customTabRenderable,G=function(){return c().disabled},D=function(){return c().selected},Y=function(){return c().title},u=_.HO();
y=_.j9(function(r){var F;if(!G()&&((F=c().aTagConfig)==null?0:F.onclick))c().aTagConfig.onclick(r);return!1});
var t=_.j9(function(r){if(r.key==="Enter"||r.key==="ArrowUp"||r.key==="ArrowDown")r.preventDefault(),u.value.click();return!1}),b={};
return _.X("yt-tab-shape",{class:_.Mi("yt-tab-shape-wiz",function(){return c().className},(b["yt-tab-shape-wiz__tab--last-tab"]=function(){return c().isLastTab},b["yt-tab-shape-wiz--host-disabled"]=G,b["yt-tab-shape-wiz--host-clickable"]=!Z,b)),
role:Z?void 0:"tab","aria-selected":D!=null?D:!1,"aria-disabled":G,tabindex:Z?void 0:0,"on:click":y,"on:keydown":t,el:u,"tab-identifier":function(){return c().identifier},
"tab-title":Y},_.X(_.YN,{cond:W,then:function(){return Z()},
else:function(){var r={},F={};return _.X(_.a2,null,_.X("div",{class:_.Mi("yt-tab-shape-wiz__tab",(r["yt-tab-shape-wiz__tab--tab-selected"]=D,r))},Y),_.X("div",{class:_.Mi("yt-tab-shape-wiz__tab-bar",(F["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=D,F))}))}}))},"dd");
JHS.idomCompat={callbacks:{customTabRenderable:!0}};_.Cfg=_.Ax(function(y){var W=y.shape;y=_.z(_.G9(48,void 0,"S7XsSd"));var c=y.next().value,Z=y.next().value;y=_.z(_.G9(0,void 0,"CzMxb"));var G=y.next().value,D=y.next().value,Y=function(){return W().tabs},u=_.HO(),t=function(){var b,r;
return(r=(b=Y())==null?void 0:b.findIndex(function(F){return F.selected}))!=null?r:-1};
_.rj(function(){var b=u.value.querySelectorAll("yt-tab-shape"),r=t()>-1?b[t()]:void 0;requestAnimationFrame(function(){Z((r==null?void 0:r.getBoundingClientRect().width)||0)})});
_.$k(function(){var b=t();requestAnimationFrame(function(){var r=u.value.querySelectorAll("yt-tab-shape"),F;Z(((F=b>-1?r[b]:void 0)==null?void 0:F.getBoundingClientRect().width)||0);for(var K=F=0;K<b;K++)F+=r[K].offsetWidth+24;_.Nn("HTML_DIR")==="rtl"&&(F=-F);D(F)})});
y={};return _.X("yt-tab-group-shape",{class:_.Mi("yt-tab-group-shape-wiz",(y["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return W().isOverflowHidden},y)),
el:u},_.X(_.YN,{cond:Y,then:function(b){return _.X(_.a2,null,_.X("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.X(_.mC,{each:b},function(r,F){return _.X(JHS,{shape:function(){return Object.assign({},r,{isLastTab:F()===b().length-1})},
customTabRenderable:r.customTabRenderable,useCustomTabRenderable:!!r.customTabRenderable})})),_.X(VId,{width:c,
sliderOffset:G}))}}))},"ed");
_.Cfg.idomCompat=!0;var VId=_.Ax(function(y){var W=_.Jx(y.sliderOffset,0),c=y.width;return _.X("div",{class:"yt-tab-group-shape-wiz__slider",style:_.cF({width:function(){return c()+"px"},
transform:function(){return"translateX("+W()+"px)"}})})},"fd");var QI6=_.Ax(function(y){var W=function(){var D,Y,u;return(u=(D=y.data().playerLogoAccessibility)==null?void 0:(Y=D.accessibilityData)==null?void 0:Y.label)!=null?u:""},c=_.Zx(lCI,function(){return y.data().playerEntityKey}),Z={};
Z=_.Mi("ytwFantasyPlayerViewModelHost",(Z.ytwFantasyPlayerViewModelPlaying=function(){var D;return!((D=c())==null||!D.isPlayerPlaying)},Z.ytwFantasyPlayerViewModelOnField=function(){var D;
return((D=c())==null?void 0:D.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Z.ytwFantasyPlayerViewModelRedZone=function(){var D;
return((D=c())==null?void 0:D.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Z));
var G=function(){var D,Y,u,t=((D=_.U().resolve(_.xN(_.EH)))==null?0:D())?(Y=y.data().playerLogoBackgroundColor)==null?void 0:Y.darkTheme:(u=y.data().playerLogoBackgroundColor)==null?void 0:u.lightTheme;return t===void 0?"":_.KZ(t)};
return _.X("ytw-fantasy-player-view-model",{class:Z},_.X(_.YN,{cond:function(){return y.data().playerLogo},
then:function(D){return _.X("div",{class:"ytwFantasyPlayerViewModelLogo"},_.X("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.X(_.J3,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.cF({"background-color":G}),data:D,alt:W})),_.X("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.X(_.Gb,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.X("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.X("div",{class:"ytwFantasyPlayerViewModelHeader"},_.X(_.Da,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var D;return(D=y.data())==null?void 0:D.playerNameText}}),_.X(_.Da,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var D;return(D=y.data())==null?void 0:D.playerDescriptionText}})),_.X("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.X(_.Da,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var D;return(D=c())==null?void 0:D.gamePeriodText}}),_.X(_.Da,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var D;return(D=y.data())==null?void 0:D.opponentTeamText}}),_.X(_.Da,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var D;return(D=c())==null?void 0:D.gameStatusText}}),_.X(_.Da,{className:_.Mi("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var D;return(D=c())==null?void 0:D.playerStatusText}})),_.X("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.X(_.Da,{text:function(){var D;
return(D=c())==null?void 0:D.playerStatsText}}))),_.X(_.Da,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var D;return(D=c())==null?void 0:D.fantasyScore}}))},"gd");var AH6=_.Ax(function(y){return _.X("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.X(_.YN,{cond:function(){return y.data().players},
then:function(W){return _.X(_.bg,{data:W},{fantasyPlayerViewModel:QI6})}}))},"hd");var ht9=_.Ax(function(y){var W=_.z(_.WF(function(){var G;return(G=y.data().selectedTabIdentifierKey)!=null?G:""})),c=W.next().value,Z=W.next().value;
_.Xl(function(){var G;(G=y.setSelectedTabSignal)==null||G.call(y,c)});
return _.X("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.X("div",{class:"ytTabbedViewModelTabGroup"},_.X(_.Cfg,{shape:function(){var G=y.data(),D=[],Y={tabs:D};if(!G.tabs)return Y;G=_.z(G.tabs);for(var u=G.next(),t={};!u.done;t={tabViewModel:void 0},u=G.next())if(t.tabViewModel=_.g(u.value,SUV),t.tabViewModel){var b=u=void 0;D.push({aTagConfig:{onclick:function(r){return function(){var F;Z((F=r.tabViewModel.tabIdentifier)!=null?F:"")}}(t)},
identifier:t.tabViewModel.tabIdentifier,selected:c()===t.tabViewModel.tabIdentifier,title:(b=(u=t.tabViewModel.title)==null?void 0:u.content)!=null?b:""})}return Y}})),_.X(_.bg,{data:function(){var G,D=_.z((G=y.data().tabs)!=null?G:[]);
for(G=D.next();!G.done;G=D.next())if((G=_.g(G.value,SUV))&&G.tabIdentifier===c())return G.content}},{fantasyRosterViewModel:AH6}))},"id");_.A3(_.Ax(function(y){var W=_.z(mbt()),c=W.next().value,Z=W.next().value;return _.X("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.X(_.Da,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return y.data().title}}),_.X(_.YN,{cond:function(){return y.data().tabbedViewModel},
then:function(G){return _.X(_.bg,{data:G},{tabbedViewModel:function(D){return _.X(ht9,{data:D.data,setSelectedTabSignal:Z})}})}}),_.X(_.YN,{cond:function(){var G,D=(G=_.g(y.data().tabbedViewModel,TF2))==null?void 0:G.tabs;
G=_.g(D==null?void 0:D[0],SUV);D=_.g(D==null?void 0:D[1],SUV);var Y=G==null?void 0:G.tabIdentifier;if(c()===Y){var u,t;if(!((u=_.g(G==null?void 0:G.content,fYm))==null?0:(t=u.players)==null?0:t.length))return y.data().noUserTeamPlayersText}else{var b,r;if(!((b=_.g(D==null?void 0:D.content,fYm))==null?0:(r=b.players)==null?0:r.length))return y.data().noOpponentTeamPlayersText}},
then:function(G){return _.X(_.Da,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:G})}}))},"jd"),"ytw-fantasy-matchup-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){return _.X("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.X(_.Da,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return y.data().title}}),_.X(_.YN,{cond:function(){return y.data().matchupTeamPairs},
then:function(W){return _.X(_.mC,{each:W,keyBy:"INDEX"},function(c){return _.X("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.X(_.bg,{data:function(){return[c().firstTeam,c().secondTeam]}},{fantasyTeamViewModel:function(Z){return _.X(PfQ,{data:Z.data,
compact:!0})}}))})}}))},"kd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=function(){var G,D,Y;return(Y=(G=y.data().userLogoAccessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)!=null?Y:""},c=function(){var G,D,Y;
return(Y=(G=y.data().opponentLogoAccessibility)==null?void 0:(D=G.accessibilityData)==null?void 0:D.label)!=null?Y:""},Z=_.Zx(gtw,function(){return y.data().entityKey});
return _.X("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.X("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.X(_.YN,{cond:function(){return y.data().userLogo},
then:function(G){return _.X(_.J3,{className:"ytwFantasyWinProbabilityViewModelLogo",data:G,alt:W})}}),_.X("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.X(_.Da,{text:function(){return y.data().title}})),_.X(_.YN,{cond:function(){return y.data().opponentLogo},
then:function(G){return _.X(_.J3,{className:"ytwFantasyWinProbabilityViewModelLogo",data:G,alt:c})}})),_.X("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.X("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.X(_.Da,{text:function(){var G;
return(G=Z())==null?void 0:G.userWinNumberLabel}})),_.X("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.X("div",{class:_.Mi("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.cF({flex:function(){var G,D;return(D=(G=Z())==null?void 0:G.userWinNumber)!=null?D:50}})}),_.X("div",{class:_.Mi("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.cF({flex:function(){var G,D;return(D=(G=Z())==null?void 0:G.opponentWinNumber)!=null?D:50}})})),_.X("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.X(_.Da,{text:function(){var G;
return(G=Z())==null?void 0:G.opponentWinNumberLabel}}))))},"ld"),"fantasy-win-probability-view-model",{props:{data:_.Ix}});_.bv("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var BgS=function(){var y=_.v.apply(this,arguments)||this;y.darkerPanels=_.O("web_watch_darker_panels");y.commentsHidePanelButton=!1;y.isWatchGrid=!1;y.continuationShowButton=!1;y.isSearch=!1;y.isConstrainedList=!1;y.isWatch=!1;y.eligibleToSwitchToGrid=!1;y.epRestyle=!1;y.isCarouselInFeed=!0;y.topSpacingZero=!1;y.continuationIsInitialLoad=!0;y.enableSqueezebackPanels=_.O("web_shorts_enable_squeezeback_panels");y.enableAnchoredPanel=_.O("desktop_shorts_v2_anchored_panel");y.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};y.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return y};
_.R(BgS,_.v);_.f=BgS.prototype;_.f.updateLockupContainerTypes=function(y){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||W.forEach(function(c){c.containerType=y})}};
_.f.getItemsPath=function(){return"data.contents"};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.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"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.O("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.O("kevlar_low_priority_continuation")}}};
_.f.created=function(){this.JSC$14357_cachedViewportHeight=_.Nn("initialInnerHeight")||window.innerHeight};
_.f.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var y=_.p(this.hostElement).querySelector("ytd-comments-header-renderer");y&&(y.hidePanelButton=this.commentsHidePanelButton)}};
_.f.onRetrieveLocation=function(y,W){this.containsComments()&&(this.firstCommentsLoaded=W.hasComments=!0)};
_.f.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.f.onLoadReloadContinuation=function(y,W){var c=this;y.stopPropagation();this.isReloading=!0;_.Z2(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Z){var G=_.U().resolve(_.tq);Z=W(Z);G.postData(Z).then(function(D){c.onReloadContinuationData(D)})}})};
_.f.onReloadContinuationData=function(y){if(y=this.get("response.continuationContents.itemSectionContinuation",y)||this.get("response.contents.itemSectionRenderer",y)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",y)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",y))this.set("data.contents",y.contents||y.results),y.header&&this.set("data.header",y.header),this.set("data.continuations",
y.continuations||[]);this.isReloading=!1};
_.f.computeContentsClass=function(y){return y?"reloading":""};
_.f.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.f.computeSectionIdentifier=function(y){return y==null?void 0:y.sectionIdentifier};
_.f.computeFitContainer=function(y){return(y==null?void 0:y.sectionIdentifier)==="youchat-item-section"};
_.f.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.O("kevlar_disable_comments_auto_load")};
_.f.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.f.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.f.computeHasDestinationShelfRenderer=function(y){var W,c;return!!(y==null?0:(W=y.contents)==null?0:(c=W[0])==null?0:c.destinationShelfRenderer)};
_.f.computeHasSectionGroupViewModel=function(y){var W,c;return!!(y==null?0:(W=y.contents)==null?0:(c=W[0])==null?0:c.sectionGroupViewModel)};
_.f.computeStaticCommentsHeader=function(y){return y&&this.containsComments()};
_.f.computeEpRestyle=function(y){return _.O("web_ep_restyling")&&y&&this.containsComments()};
_.f.computeIsContinuationCommentSection=function(y){return(y==null?void 0:y.targetId)==="shorts-engagement-panel-comments-section"||(y==null?void 0:y.targetId)==="comments-section"};
_.f.computeSuppressPaddingDisclaimer=function(){var y,W,c,Z;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(c=W[0])==null?0:(Z=c.productListHeaderRenderer)==null?0:Z.suppressPaddingDisclaimer)};
_.f.computeHeaderStyle=function(y){switch(y==null?void 0:y.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.f.dataChanged=function(){this.firstCommentsLoaded=!1};
_.f.observeDataContentsLength=function(){var y,W;((y=this.data)==null?0:(W=y.contents)==null?0:W.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.f.onYtDismissibleItemDismissedChange=function(y){this._setItemDismissed(y.type==="yt-dismissible-item-dismissed")};
_.f.triggerContinuations=function(){for(var y=_.p(this.hostElement).querySelector("#continuations").children,W=0;W<y.length;W++)y[W].trigger()};
_.f.triggerInitialContinuations=function(){for(var y=_.p(this.hostElement).querySelector("#continuations").children,W=0;W<y.length;W++)y[W].triggerIfNotPreviouslyTriggered()};
_.f.handleYtItemSectionContinuation=function(y,W){var c;W&&((c=this.data)==null?void 0:c.sectionIdentifier)!==W||(this.set("data.continuations",[y]),this.triggerContinuations())};
_.f.handleYtItemSectionReplace=function(y,W){var c;W&&((c=this.data)==null?void 0:c.sectionIdentifier)!==W||(this.set("data.contents",y),this.set("data.continuations",[]))};
_.f.computeUseHeightHack=function(y){return y&&!_.O("kevlar_disable_height_hack")};
_.f.computeTopSpacingZero=function(y){return y};
_.f.continuationShowButtonChanged=function(){var y=_.p(this.hostElement).querySelector("ytd-continuation-item-renderer");y&&(y.showButton=this.continuationShowButton)};
_.f.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("data-changed",this.data))};
_.dJ.Object.defineProperties(BgS.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.O("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 y,W,c;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(c=W[0])==null?0:c.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z,G,D,Y;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(c=W[0])==null?0:(Z=c.shelfRenderer)==null?0:(G=Z.content)==null?0:(D=G.gridRenderer)==null?0:(Y=D.targetId)==null?0:Y.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(c=W[0])==null?0:c.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return!!((y=this.data)==null?0:(W=y.contents)==null?0:(c=W[0])==null?0:c.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.wj("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.O("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.O("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14357_cachedViewportHeight-130)/150)},
set:function(){}}});
var u3=BgS;u3.prototype.dataChangedForBinding=u3.prototype.dataChangedForBinding;u3.prototype.continuationShowButtonChanged=u3.prototype.continuationShowButtonChanged;u3.prototype.onYtDismissibleItemDismissedChange=u3.prototype.onYtDismissibleItemDismissedChange;u3.prototype.observeDataContentsLength=u3.prototype.observeDataContentsLength;u3.prototype.dataChanged=u3.prototype.dataChanged;u3.prototype.onServiceRequestCompleted=u3.prototype.onServiceRequestCompleted;
u3.prototype.onLoadReloadContinuation=u3.prototype.onLoadReloadContinuation;u3.prototype.onRetrieveLocation=u3.prototype.onRetrieveLocation;u3.prototype.commentsHidePanelButtonChanged=u3.prototype.commentsHidePanelButtonChanged;u3.prototype.updateLockupContainerTypes=u3.prototype.updateLockupContainerTypes;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],u3.prototype,"ytLazyListBehavior",void 0);_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],u3.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.C(_.dO),_.e("design:type",Object)],u3.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],u3.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],u3.prototype,"darkerPanels",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Boolean)],u3.prototype,"engagementPanel",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"commentsHidePanelButton",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"isWatchGrid",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"continuationShowButton",void 0);_.x([_.L({computed:"computeIsContinuationCommentSection(data)"}),_.e("design:type",Boolean)],u3.prototype,"continuationIsCommentsSection",void 0);
_.x([_.L({value:!0}),_.e("design:type",Boolean)],u3.prototype,"autoFill",void 0);_.x([_.L(),_.e("design:type",Boolean)],u3.prototype,"continuationDisablePrescanVisibility",void 0);_.x([_.L(),_.e("design:type",Boolean)],u3.prototype,"isReloading",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"isSearch",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"isConstrainedList",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"isWatch",void 0);
_.x([_.L(),_.e("design:type",Object)],u3.prototype,"eligibleToSwitchToGrid",void 0);_.x([_.L({selector:_.R3}),_.e("design:type",Object)],u3.prototype,"isGridViewEnabled",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.e("design:type",Object)],u3.prototype,"epRestyle",void 0);_.x([_.A("isWatch"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u3.prototype,"hideShortsShelfHeader",null);
_.x([_.A("isSearch","isWatch"),_.e("design:type",String),_.e("design:paramtypes",[])],u3.prototype,"thumbnailWidth",null);_.x([_.A("isSearch","isWatch"),_.e("design:type",String),_.e("design:paramtypes",[])],u3.prototype,"sizing",null);_.x([_.A("isWatch","isGridViewEnabled","data"),_.L({reflectToAttribute:!0}),_.e("design:type",Number),_.e("design:paramtypes",[])],u3.prototype,"lockupContainerType",null);
_.x([_.H("lockupContainerType","data"),_.e("design:type",Function),_.e("design:paramtypes",[Number]),_.e("design:returntype")],u3.prototype,"updateLockupContainerTypes",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],u3.prototype,"pageSubtype",void 0);_.x([_.L({computed:"computeContainerWidth()"}),_.e("design:type",Number)],u3.prototype,"containerWidth",void 0);_.x([_.L(),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u3.prototype,"isPlaylist",null);
_.x([_.L(),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u3.prototype,"isClipList",null);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"isCarouselInFeed",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u3.prototype,"isPlaylistVideoContainer",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u3.prototype,"isSearchFrictionPage",null);
_.x([_.L({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.e("design:type",Boolean)],u3.prototype,"useHeightHack",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.e("design:type",Object)],u3.prototype,"topSpacingZero",void 0);_.x([_.L({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.e("design:type",Boolean)],u3.prototype,"showButton",void 0);
_.x([_.L(),_.e("design:type",Boolean)],u3.prototype,"firstCommentsLoaded",void 0);_.x([_.L(),_.e("design:type",Object)],u3.prototype,"continuationIsInitialLoad",void 0);_.x([_.L(),_.e("design:type",Boolean)],u3.prototype,"isSearchDova",void 0);_.x([_.L({reflectToAttribute:!0,readOnly:!0}),_.e("design:type",Boolean)],u3.prototype,"itemDismissed",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.e("design:type",String)],u3.prototype,"sectionIdentifier",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.e("design:type",String)],u3.prototype,"fitContainer",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.e("design:type",Boolean)],u3.prototype,"hasDestinationShelfRenderer",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.e("design:type",Boolean)],u3.prototype,"staticCommentsHeader",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],u3.prototype,"enableSqueezebackPanels",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],u3.prototype,"enableAnchoredPanel",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.e("design:type",Boolean)],u3.prototype,"hasSectionGroupViewModel",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.e("design:type",Boolean)],u3.prototype,"suppressDisclaimerSeparator",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.e("design:type",String)],u3.prototype,"headerStyle",void 0);_.x([_.A("isSearch"),_.e("design:type",Object),_.e("design:paramtypes",[])],u3.prototype,"lockupExperiments",null);
_.x([_.A("isSearch"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u3.prototype,"typographyBump",null);_.x([_.jj("#header"),_.e("design:type",HTMLElement)],u3.prototype,"header",void 0);_.x([_.H("commentsHidePanelButton"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],u3.prototype,"commentsHidePanelButtonChanged",null);
_.x([_.B("yt-retrieve-location"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],u3.prototype,"onRetrieveLocation",null);_.x([_.B("yt-load-reload-continuation"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Function]),_.e("design:returntype")],u3.prototype,"onLoadReloadContinuation",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],u3.prototype,"onServiceRequestCompleted",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],u3.prototype,"dataChanged",null);_.x([_.Gs("data.contents.length"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],u3.prototype,"observeDataContentsLength",null);
_.x([_.B("yt-dismissible-item-dismissed"),_.B("yt-dismissible-item-undismissed"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],u3.prototype,"onYtDismissibleItemDismissedChange",null);_.x([_.H("continuationShowButton"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],u3.prototype,"continuationShowButtonChanged",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],u3.prototype,"dataChangedForBinding",null);u3=_.x([_.d({is:"ytd-item-section-renderer",disableElementRegistration:!0})],u3);
_.T(u3,"ytd-item-section-renderer",function(){if(cY3!==void 0)return cY3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return cY3=y},{mode:1});var Ha9;var XHD=_.Lq(_.bN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var skD={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var LES={},ncw=(LES[0]={title:_.wK(_.bN("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wK(_.bN("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:M2("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},LES[1]={title:_.wK(_.bN("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:M2("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},LES);_.bv("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var tM=function(){var y=_.v.apply(this,arguments)||this;y.allVideosCount=0;y.allPlaylistCount=0;y.shouldRenderDownloadsBanner=!1;y.hasOptedIntoSmartDownloads=!1;y.areAllSmartDownloadsDeleted=!1;y.smartDownloadsCompleted=!1;return y};
_.R(tM,_.v);tM.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
tM.prototype.attached=function(){this.downloadsToRenderChanged()};
tM.prototype.detached=function(){this.set("renderableData",{})};
tM.prototype.downloadsToRenderChanged=function(){var y=_.Sv().getState().entities,W=_.Kq(y),c=_.O("kevlar_playlist_dl_page_killswitch")?gPf(y):_.Oq(y),Z=_.F_I(y),G=_.bo(W);y=_.gu(y);this.set("renderableData",rpa(c,W,Z,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,G,y))};
var n1=tM;n1.prototype.downloadsToRenderChanged=n1.prototype.downloadsToRenderChanged;_.x([_.C(_.$s),_.e("design:type",Object)],n1.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],n1.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],n1.prototype,"renderableData",void 0);_.x([_.L({selector:_.hDH}),_.e("design:type",Object)],n1.prototype,"allVideosCount",void 0);_.x([_.L({selector:B9O}),_.e("design:type",Object)],n1.prototype,"allPlaylistCount",void 0);_.x([_.L({selector:_.TFg}),_.e("design:type",Object)],n1.prototype,"shouldRenderDownloadsBanner",void 0);_.x([_.L({selector:_.aED}),_.e("design:type",Object)],n1.prototype,"hasOptedIntoSmartDownloads",void 0);
_.x([_.L({selector:_.xtt}),_.e("design:type",Object)],n1.prototype,"areAllSmartDownloadsDeleted",void 0);_.x([_.L({selector:iHH}),_.e("design:type",Object)],n1.prototype,"smartDownloadsCompleted",void 0);_.x([_.Gs("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],n1.prototype,"downloadsToRenderChanged",null);
n1=_.x([_.d({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],n1);
_.T(n1,"ytd-offline-item-section-renderer",function(){if(Ha9!==void 0)return Ha9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Ha9=y},
{mode:1});var vF6;var d1Q;var SD6=function(){return _.v.apply(this,arguments)||this};
_.R(SD6,_.v);
SD6.prototype.onDataChanged=function(){if(this.JSC$14383_lastData){var y=this.getFilterClass(this.JSC$14383_lastData.status);y&&this.hostElement.classList.remove(y)}var W;(y=this.getFilterClass((W=this.data)==null?void 0:W.status))&&this.hostElement.classList.add(y);y==="selected"?_.p(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.p(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");y==="disabled"?_.p(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.p(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14383_lastData=this.data};
SD6.prototype.getFilterClass=function(y){switch(y){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
var X$=SD6;X$.prototype.onDataChanged=X$.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],X$.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],X$.prototype,"onDataChanged",null);X$=_.x([_.d({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],X$);
_.T(X$,"ytd-search-filter-renderer",function(){if(d1Q!==void 0)return d1Q;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return d1Q=y},{mode:_.xm("kevlar_poly_si_batch_j075")?1:2});var Tg9=function(){return _.v.apply(this,arguments)||this};
_.R(Tg9,_.v);var b3=Tg9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],b3.prototype,"data",void 0);b3=_.x([_.d({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],b3);
_.T(b3,"ytd-search-filter-group-renderer",function(){if(vF6!==void 0)return vF6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vF6=y},{mode:_.xm("kevlar_poly_si_batch_j075")?1:2});var aHD;var rm=function(){return _.v.apply(this,arguments)||this};
_.R(rm,_.v);rm.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.ZN());this.isCollapsed=!this.isCollapsed};
rm.prototype.navigateToAboutTheseResultsPage=function(){var y=pf("https://www.youtube.com/howyoutubeworks/product-features/search/");y?_.SQ(window,y,"_blank"):_.pj(Error("Rh"))};
rm.prototype.dataChanged=function(){this.isCollapsed=!0};
rm.prototype.computeShowBottomBorder=function(){var y,W,c;return!!((y=this.data)==null?0:(W=y.button)==null?0:W.toggleButtonRenderer)||!((c=this.data)==null||!c.aboutTheseResultsButton)};
var F$=rm;F$.prototype.dataChanged=F$.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],F$.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.e("design:type",Boolean)],F$.prototype,"showBottomBorder",void 0);_.x([_.L(),_.e("design:type",Boolean)],F$.prototype,"renderCollapsibleMenu",void 0);
_.x([_.L(),_.e("design:type",Boolean)],F$.prototype,"isCollapsed",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],F$.prototype,"dataChanged",null);F$=_.x([_.d({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],F$);
_.T(F$,"ytd-search-sub-menu-renderer",function(){if(aHD!==void 0)return aHD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return aHD=y},{mode:1});var x1D;var iaS=new _.Sm("SECTION_LIST_RENDERER_TOKEN");var MI9;var etQ=function(){return _.v.apply(this,arguments)||this};
_.R(etQ,_.v);etQ.prototype.computeStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
var Uh=etQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Uh.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.e("design:type",String)],Uh.prototype,"headerStyle",void 0);Uh=_.x([_.d({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Uh);
_.T(Uh,"ytd-text-header-renderer",function(){if(MI9!==void 0)return MI9;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return MI9=y},{mode:1});var wyZ;var qD6=function(){return _.v.apply(this,arguments)||this};
_.R(qD6,_.v);var $v=qD6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$v.prototype,"data",void 0);$v=_.x([_.d({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],$v);
_.T($v,"ytd-minor-moment-header-renderer",function(){if(wyZ!==void 0)return wyZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return wyZ=y},{mode:1});var kOH;var jVg=function(){return _.v.apply(this,arguments)||this};
_.R(jVg,_.v);var K1=jVg;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],K1.prototype,"data",void 0);K1=_.x([_.d({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],K1);
_.T(K1,"ytd-minor-moment-setting-alert-renderer",function(){if(kOH!==void 0)return kOH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kOH=y},{mode:1});var y5Q;var WQg;var c53=function(){var y=_.v.apply(this,arguments)||this;y.booleanSettingById=!1;y.smartDownloadsEnabledVE=_.se(128287);y.smartDownloadsDisabledVE=_.se(128286);y.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return y};
_.R(c53,_.v);_.f=c53.prototype;_.f.attachSmartDownloadsSettingVes=function(){var y;this.activeVeForLogging||((y=this.data)==null?void 0:y.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.qY(_.Zz(),this.smartDownloadsEnabledVE),_.qY(_.Zz(),this.smartDownloadsDisabledVE))};
_.f.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Z2(this.hostElement,"yt-settings-switch-ready")};
_.f.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.f.onSwitchChange=function(y){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(y=_.hq(y).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.O("kevlar_settings_switch_resolve_command_killswitch")?_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(y)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.f.handleUpdateSettingsSwitch=function(y){(y=_.g(y,lyW))&&this.data&&this.data.id===y.id&&this.set("data.enabled",!!y.enabled)};
_.f.onToggleSettingsSwitch=function(y,W){this.data&&this.data.id===y&&this.set("data.enabled",W!=null?W:!this.data.enabled)};
_.f.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.LF.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.f.maybeLogSmartDownloadsSettingVisibility=function(){var y=_.NR(),W;y&&((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.vA(y,[this.smartDownloadsEnabledVE]),_.dK(y,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.vA(y,[this.smartDownloadsDisabledVE]),_.dK(y,[this.smartDownloadsEnabledVE])))};
_.f.maybeLogSmartDownloadsSettingClick=function(){var y;((y=this.data)==null?void 0:y.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.jz(_.Zz(),this.activeVeForLogging)};
_.f.updateDataEnabledFromBinding=function(y){this.set("data.enabled",y.detail.value)};
_.dJ.Object.defineProperties(c53.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var y=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!y&&(y=this.ytRendererBehavior.getSimpleString(this.data.title));return y}}});
var Oh=c53;Oh.prototype.dataChanged=Oh.prototype.dataChanged;_.x([_.C(_.$s),_.e("design:type",Object)],Oh.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Oh.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Oh.prototype,"data",void 0);_.x([_.L({selector:function(y,W){if(Object.keys(y==null?void 0:y.entities).length)switch(W){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return RDw(y.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.e("design:type",Object)],Oh.prototype,"booleanSettingById",void 0);_.x([_.L(),_.e("design:type",_.lM)],Oh.prototype,"activeVeForLogging",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Oh.prototype,"toggleAriaLabel",null);_.x([_.Gs("data"),_.Gs("booleanSettingById"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Oh.prototype,"dataChanged",null);
Oh=_.x([_.d({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Oh);
_.T(Oh,"ytd-settings-switch-renderer",function(){if(WQg!==void 0)return WQg;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return WQg=y},{mode:1});var Z8g=function(){return _.v.apply(this,arguments)||this};
_.R(Z8g,_.v);Z8g.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}}}}};
_.dJ.Object.defineProperties(Z8g.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var y=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(y+=" remove-left-margin");this.data.extraBottomSpace&&(y+=" extra-bottom-space");return y}}});
var gm=Z8g;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],gm.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],gm.prototype,"contentsClassName",null);gm=_.x([_.d({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],gm);
_.T(gm,"ytd-minor-moment-setting-section-renderer",function(){if(y5Q!==void 0)return y5Q;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return y5Q=y},{mode:1});var Gi6;var f06=function(){return _.v.apply(this,arguments)||this};
_.R(f06,_.v);var RK=f06;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],RK.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],RK.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],RK.prototype,"data",void 0);RK=_.x([_.d({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],RK);
_.T(RK,"ytd-empty-product-details-renderer",function(){if(Gi6!==void 0)return Gi6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Gi6=y},{mode:1});var oWQ;var D3g;var zEf=function(){var y=_.v.apply(this,arguments)||this;y.expanded=!0;return y};
_.R(zEf,_.v);zEf.prototype.getBadgeRowClass=function(y,W,c){for(var Z=_.z(this.hostElement.querySelectorAll("yt-img-shadow")),G=Z.next();!G.done;G=Z.next())G.value.onShow();y=y.selected;return c?y!==-1?y===W?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(y!==void 0?y:0)===W?"badge-line":"badge-hidden"};
var l3=zEf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],l3.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],l3.prototype,"expanded",void 0);l3=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],l3);
_.T(l3,"ytd-sponsorships-loyalty-badges-renderer",function(){if(D3g!==void 0)return D3g;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return D3g=y},{mode:1});var YZg;var m3B=function(){var y=_.v.apply(this,arguments)||this;y.expanded=!0;return y};
_.R(m3B,_.v);m3B.prototype.getContainerClasses=function(y,W){y=y?"expanded":"collapsed";W&&(y+=" item");return y};
var Eh=m3B;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Eh.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Eh.prototype,"expanded",void 0);Eh=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Eh);
_.T(Eh,"ytd-sponsorships-perk-renderer",function(){if(YZg!==void 0)return YZg;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YZg=y},{mode:1});var sV3;var umQ=function(){var y=_.v.apply(this,arguments)||this;y.expanded=!0;return y};
_.R(umQ,_.v);var Ne=umQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ne.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Ne.prototype,"expanded",void 0);Ne=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Ne);
_.T(Ne,"ytd-sponsorships-perks-renderer",function(){if(sV3!==void 0)return sV3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sV3=y},{mode:1});var IK=function(){var y=_.v.apply(this,arguments)||this;y.isCollapsed=!1;return y};
_.R(IK,_.v);IK.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
IK.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
IK.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var y;this.expandCollapseButton=_.g((y=this.data)==null?void 0:y.expandButton,_.RU)}else{var W;this.expandCollapseButton=_.g((W=this.data)==null?void 0:W.collapseButton,_.RU)}};
var p1=IK;p1.prototype.updateExpandCollapseButton=p1.prototype.updateExpandCollapseButton;p1.prototype.onDataChanged=p1.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],p1.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],p1.prototype,"isCollapsed",void 0);_.x([_.L(),_.e("design:type",Object)],p1.prototype,"expandCollapseButton",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p1.prototype,"onDataChanged",null);_.x([_.Gs("data","isCollapsed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p1.prototype,"updateExpandCollapseButton",null);p1=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],p1);
_.T(p1,"ytd-sponsorships-expandable-perks-renderer",function(){if(oWQ!==void 0)return oWQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return oWQ=y},{mode:1});var tV6;var nWQ=function(){return _.v.apply(this,arguments)||this};
_.R(nWQ,_.v);nWQ.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
var P5=nWQ;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],P5.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],P5.prototype,"data",void 0);P5=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],P5);
_.T(P5,"ytd-sponsorships-actionable-message-renderer",function(){if(tV6!==void 0)return tV6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return tV6=y},{mode:1});var XJ9;var b8f=function(){return _.v.apply(this,arguments)||this};
_.R(b8f,_.v);_.f=b8f.prototype;_.f.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.f.getExpansionIcon=function(y){return y?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.f.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.f.computeMessageContainerStyle=function(y){var W=y.expandableItems?" style-clickable":"";return y.messageContainerStyle?y.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+W:"style-unspecified"+W};
_.f.isSinglePerk=function(y){return!!y.messageContainerStyle&&(y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||y.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.f.onExpandedChanged=function(){var y=this;if(this.expanded)for(var W=_.z(this.hostElement.querySelectorAll("yt-img-shadow")),c=W.next();!c.done;c=W.next())c.value.onShow();_.Lv(this,function(){_.Z2(y.hostElement,"yt-refit")})};
_.f.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
var JM=b8f;JM.prototype.onDataChanged=JM.prototype.onDataChanged;JM.prototype.onExpandedChanged=JM.prototype.onExpandedChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JM.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],JM.prototype,"expanded",void 0);
_.x([_.H("expanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JM.prototype,"onExpandedChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JM.prototype,"onDataChanged",null);JM=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],JM);
_.T(JM,"ytd-sponsorships-expandable-message-renderer",function(){if(XJ9!==void 0)return XJ9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XJ9=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var r59;var FQf=function(){return _.v.apply(this,arguments)||this};
_.R(FQf,_.v);FQf.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"}}}}};
FQf.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.g(this.data.endButton,_.RU).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
var Vc=FQf;Vc.prototype.onDataChanged=Vc.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Vc.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Vc.prototype,"onDataChanged",null);
Vc=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Vc);
_.T(Vc,"ytd-sponsorships-heading-renderer",function(){if(r59!==void 0)return r59;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return r59=y},{mode:1});var U3Q;var $39=function(){return _.v.apply(this,arguments)||this};
_.R($39,_.v);var C1=$39;_.x([_.L(),_.e("design:type",Object)],C1.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);C1=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],C1);
_.T(C1,"ytd-sponsorships-links-renderer",function(){if(U3Q!==void 0)return U3Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return U3Q=y},{mode:1});var KQQ;var O86=function(){return _.v.apply(this,arguments)||this};
_.R(O86,_.v);_.f=O86.prototype;_.f.onDataChanged=function(){if(this.data&&this.data.expandableItems){var y;(y=_.p(this.hostElement).querySelector("tp-yt-paper-button"))==null||y.setAttribute("role","button")}else{var W;(W=_.p(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.removeAttribute("role")}};
_.f.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.f.getExpansionIcon=function(y){return y?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.f.getTileClasses=function(y){return y?"tile expandable-tile":"tile"};
_.f.getButtonDisabled=function(y){return y?void 0:""};
var Qc=O86;Qc.prototype.onDataChanged=Qc.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Qc.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Qc.prototype,"expanded",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Qc.prototype,"onDataChanged",null);
Qc=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Qc);
_.T(Qc,"ytd-sponsorships-list-tile-renderer",function(){if(KQQ!==void 0)return KQQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return KQQ=y},{mode:1});var gWQ;var RE9;var l0Z=function(){return _.v.apply(this,arguments)||this};
_.R(l0Z,_.v);l0Z.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var AM=l0Z;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],AM.prototype,"data",void 0);AM=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],AM);
_.T(AM,"ytd-sponsorships-promotion-renderer",function(){if(RE9!==void 0)return RE9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return RE9=y},{mode:1});var EW3;var N26=function(){return _.v.apply(this,arguments)||this};
_.R(N26,_.v);N26.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var hM=N26;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hM.prototype,"data",void 0);hM=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],hM);
_.T(hM,"ytd-sponsorships-purchase-option-renderer",function(){if(EW3!==void 0)return EW3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return EW3=y},{mode:1});var I0D;var pJf;var PEQ=function(){return _.v.apply(this,arguments)||this};
_.R(PEQ,_.v);var J5f=PEQ;_.x([_.L(),_.e("design:type",Object)],J5f.prototype,"data",void 0);J5f=_.x([_.d({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],J5f);
_.T(J5f,"ytd-ypc-offer-promo-renderer",function(){if(pJf!==void 0)return pJf;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return pJf=y},{mode:1});var VVZ=function(){return _.v.apply(this,arguments)||this};
_.R(VVZ,_.v);_.f=VVZ.prototype;
_.f.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"}}}}};
_.f.expansionCTA=function(y,W){return y&&(W?y.collapseCallToAction:y.expansionCallToAction)};
_.f.getExpansionIcon=function(y){return y?"arrow_drop_up":"arrow_drop_down"};
_.f.expansionCallToActionTap=function(){var y=this;this.expanded=!this.expanded;_.Lv(this,function(){_.Z2(y.hostElement,"yt-refit")})};
_.f.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var y,W=(y=this.data)==null?void 0:y.onVisible;W&&this.ytComponentBehavior.resolveCommand(W)};
_.f.computeDisplayTitle=function(y){return!(!y||this.titledisplaystatus!=="show")};
_.f.computeDisplaySeparator=function(){return!1};
_.f.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
var B5=VVZ;B5.prototype.onDataChanged=B5.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],B5.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],B5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],B5.prototype,"data",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],B5.prototype,"expanded",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],B5.prototype,"purchaseButtonClicked",void 0);_.x([_.L({reflectToAttribute:!0,value:"show"}),_.e("design:type",String)],B5.prototype,"titledisplaystatus",void 0);_.x([_.L({computed:"computeDisplayTitle(data.title)"}),_.e("design:type",Boolean)],B5.prototype,"displayTitle",void 0);
_.x([_.L({computed:"computeDisplaySeparator(data)"}),_.e("design:type",Boolean)],B5.prototype,"displaySeparator",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],B5.prototype,"onDataChanged",null);B5=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],B5);
_.T(B5,"ytd-sponsorships-tier-renderer",function(){if(I0D!==void 0)return I0D;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return I0D=y},{mode:2});var CE6=function(){return _.v.apply(this,arguments)||this};
_.R(CE6,_.v);
CE6.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"}}}}};
var H5=CE6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],H5.prototype,"data",void 0);H5=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],H5);
_.T(H5,"ytd-sponsorships-management-renderer",function(){if(gWQ!==void 0)return gWQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return gWQ=y},{mode:1});var QVZ;var A59=function(){return _.v.apply(this,arguments)||this};
_.R(A59,_.v);var L1=A59;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],L1.prototype,"data",void 0);L1=_.x([_.d({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],L1);
_.T(L1,"ytd-open-in-native-app-view-model",function(){if(QVZ!==void 0)return QVZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return QVZ=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var hE6;var B2d;var H8S=_.dl(["top-"]),LQQ=_.dl(["bottom-"]),vWg=_.dl(["left-"]),d3d=_.dl(["right-"]),SZB={},T2S=function(y,W,c){y.removeAttribute("top-"+c);y.removeAttribute("bottom-"+c);y.removeAttribute("left-"+c);y.removeAttribute("right-"+c);W&&(W.top&&_.kX([_.yx(H8S)],y,"top-"+c,W.top),W.bottom&&_.kX([_.yx(LQQ)],y,"bottom-"+c,W.bottom),W.left&&_.kX([_.yx(vWg)],y,"left-"+c,W.left),W.right&&_.kX([_.yx(d3d)],y,"right-"+c,W.right))};
SZB.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(y){var W,c=_.p((W=this.hostElement)!=null?W:this),Z;W=this.cardItemBoxBehaviorMarginTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Z=this.hostElement)!=null?Z:this;T2S(W,y,"margin")},
cardItemContainerPaddingChanged_:function(y){var W,c=_.p((W=this.hostElement)!=null?W:this),Z;W=this.cardItemBoxBehaviorPaddingTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Z=this.hostElement)!=null?Z:this;T2S(W,y,"padding")}}];var v5={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 a0B;var x3f;var i8D=function(){return _.v.apply(this,arguments)||this};
_.R(i8D,_.v);i8D.prototype.textColorChanged_=function(){this.hostElement.style.color=v5[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
var dm=i8D;dm.prototype.textColorChanged_=dm.prototype.textColorChanged_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.x([_.C(SZB.YtCardItemBoxBehavior),_.e("design:type",Object)],dm.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],dm.prototype,"data",void 0);_.x([_.H("data.textColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dm.prototype,"textColorChanged_",null);
dm=_.x([_.n6({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],dm);
_.T(dm,"yt-card-item-text-renderer",function(){if(x3f===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;a0B===void 0&&(a0B=document.createElement("template"));var Z=a0B;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);x3f=y}y=x3f;return y},{mode:2});var MVZ;var eEH;var wJ9=function(){return _.v.apply(this,arguments)||this};
_.R(wJ9,_.v);var SO=wJ9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],SO.prototype,"data",void 0);SO=_.x([_.n6({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],SO);
_.T(SO,"yt-card-item-badge-renderer",function(){if(eEH===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;MVZ===void 0&&(MVZ=document.createElement("template"));var Z=MVZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);eEH=y}y=eEH;return y},{mode:2});var qZQ;var kiB;var jH9=function(){return _.v.apply(this,arguments)||this};
_.R(jH9,_.v);jH9.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
var Tv=jH9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Tv.prototype,"data",void 0);Tv=_.x([_.n6({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Tv);
_.T(Tv,"yt-card-item-text-collection-renderer",function(){if(kiB===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;qZQ===void 0&&(qZQ=document.createElement("template"));var Z=qZQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);kiB=y}y=kiB;return y},{mode:2});var y9Q;var W6Q;var c96=function(){return _.v.apply(this,arguments)||this};
_.R(c96,_.v);c96.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]]"}}}}}};
var aK=c96;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],aK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aK.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Number)],aK.prototype,"iconSize",void 0);aK=_.x([_.n6({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],aK);
_.T(aK,"yt-card-item-text-with-button-renderer",function(){if(W6Q===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;y9Q===void 0&&(y9Q=document.createElement("template"));var Z=y9Q;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);W6Q=y}y=W6Q;return y},{mode:2});var ZQQ=function(){return _.v.apply(this,arguments)||this};
_.R(ZQQ,_.v);ZQQ.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"}}}};
var xv=ZQQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xv.prototype,"data",void 0);xv=_.x([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],xv);
_.T(xv,"ytd-commerce-cart-summary-line-item-renderer",function(){if(B2d!==void 0)return B2d;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return B2d=y},{mode:1});_.bv("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var GfD=function(){var y=_.v.apply(this,arguments)||this;y.hidden=!1;return y};
_.R(GfD,_.v);_.f=GfD.prototype;_.f.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"}}}}};
_.f.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.f.updateSummary=function(){var y=this.commerceCartCheckoutButtonEntity,W;if(((W=this.data)==null?0:W.cartButton)&&y.checkoutSummaryText){var c,Z=Cs((c=this.data)==null?void 0:c.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",Qo(y.checkoutSummaryText));if(y.checkoutDetailText){var G;c=Cs((G=this.data)==null?void 0:G.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",Qo(y.checkoutDetailText))}if(y.checkoutAdditionalMetadataText){var D;
G=Cs((D=this.data)==null?void 0:D.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",Qo(y.checkoutAdditionalMetadataText))}}else y.estimatedTotalPrice&&(D=Cs((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+D+".cardItemTextRenderer.text",Qo(y.estimatedTotalPrice)))};
_.f.updateIsHidden=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hidden=W)};
_.f.updateCheckoutButton=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.isDisabled;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",W);var c;y=(c=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:c.innertubeCommand;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",y);var Z;c=(Z=this.commerceCartCheckoutButtonEntity)==null?void 0:Z.checkoutButtonText;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:c})};
var i3=GfD;i3.prototype.entityChanged=i3.prototype.entityChanged;_.x([_.C(_.$s),_.e("design:type",Object)],i3.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],i3.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],i3.prototype,"fullWidth",void 0);_.x([_.L(),_.e("design:type",Object)],i3.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],i3.prototype,"compact",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],i3.prototype,"hidden",void 0);
_.x([_.L({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:gqy}),_.e("design:type",Object)],i3.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.H("commerceCartCheckoutButtonEntity","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],i3.prototype,"entityChanged",null);i3=_.x([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],i3);
_.T(i3,"ytd-commerce-cart-checkout-button-renderer",function(){if(hE6!==void 0)return hE6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return hE6=y},{mode:2});var fg3;_.oQQ={};
_.oQQ.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",_.qO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.qO(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(y){!this.tappableItemBehaviorTapEnabled||y.keyCode!==13&&y.keyCode!==32||y.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var y=this.data.onTap;y.ypcGetCartEndpoint?(_.D2(this.hostElement,[y]),this.tappableItemBehaviorTapEnabled=!1):y.ypcOffersEndpoint?_.D2(this.hostElement,[y]):_.mq(this.hostElement,[y],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(y){this.tappableItemBehaviorTapEnabled=!!y},
tappableItemBehaviorOnTapEnabledChanged_:function(){var y=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(y.setAttribute("tabIndex",0),y.setAttribute("role","button")):(y.removeAttribute("tabIndex"),y.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(y){y.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var DHQ;var z6B;var YBH=function(){return _.v.apply(this,arguments)||this};
_.R(YBH,_.v);YBH.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.rI("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.rI("sharingToggleButtonAndDefaultButton")}}};
var Me=YBH;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Me.prototype,"data",void 0);Me=_.x([_.n6({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Me);
_.T(Me,"yt-card-item-actions-renderer",function(){if(z6B===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;DHQ===void 0&&(DHQ=document.createElement("template"));var Z=DHQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);z6B=y}y=z6B;return y},{mode:2});var mHg;var sHZ;var uZf;var tD6;var nQB;var X36;var eO=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return y};
_.R(eO,_.v);eO.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
eO.prototype.handleDarkModeToggledAction_=function(y){this.isDarkTheme_=y};
eO.prototype.computeThemeImage_=function(y,W){if(!y||!y.imageLight)return!1;this.isCircular_=y.isCircular;y.imageWidth&&(this.hostElement.style.width=y.imageWidth+"px");y.imageHeight&&(this.hostElement.style.height=y.imageHeight+"px");y.borderWidth&&(this.image.style.borderWidth=y.borderWidth+"px",this.image.style.borderStyle="solid");y.borderColor&&(this.image.style.borderColor=_.KZ(y.borderColor));return W&&y.imageDark?y.imageDark:y.imageLight};
eO.prototype.computeThemeIcon_=function(y){var W,c;if(!(y==null?0:(W=y.themedIcon)==null?0:(c=W.icon)==null?0:c.iconType))return!1;this.icon.style.color=v5[y.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(y.imageWidth||18)+"px";this.icon.style.height=(y.imageHeight||18)+"px";return _.wp(y.themedIcon.icon.iconType)};
var wm=eO;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(SZB.YtCardItemBoxBehavior),_.e("design:type",Object)],wm.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],wm.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],wm.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],wm.prototype,"fit",void 0);_.x([_.L(),_.e("design:type",Boolean)],wm.prototype,"isDarkTheme_",void 0);_.x([_.L({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.e("design:type",Object)],wm.prototype,"themeImage_",void 0);_.x([_.L({computed:"computeThemeIcon_(data)"}),_.e("design:type",Object)],wm.prototype,"themeIcon_",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Object)],wm.prototype,"isCircular_",void 0);_.x([_.jj("#image"),_.e("design:type",Object)],wm.prototype,"image",void 0);_.x([_.jj("#icon"),_.e("design:type",Object)],wm.prototype,"icon",void 0);wm=_.x([_.n6({is:"yt-themed-image-renderer",disableElementRegistration:!0})],wm);
_.T(wm,"yt-themed-image-renderer",function(){if(X36===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;nQB===void 0&&(nQB=document.createElement("template"));var Z=nQB;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);X36=y}y=X36;return y},{mode:2});var bQH=function(){return _.v.apply(this,arguments)||this};
_.R(bQH,_.v);bQH.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"}}}}};
bQH.prototype.computeImagePlacement_=function(y){return y||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
var qe=bQH;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qe.prototype,"data",void 0);_.x([_.L({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.e("design:type",String)],qe.prototype,"imagePlacement",void 0);
qe=_.x([_.n6({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],qe);
_.T(qe,"yt-card-item-text-with-image-renderer",function(){if(tD6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;uZf===void 0&&(uZf=document.createElement("template"));var Z=uZf;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);tD6=y}y=tD6;return y},{mode:2});var r96=function(){return _.v.apply(this,arguments)||this};
_.R(r96,_.v);r96.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"}}}}};
var kv=r96;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kv.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kv.prototype,"data",void 0);kv=_.x([_.n6({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],kv);
_.T(kv,"yt-card-item-error-renderer",function(){if(sHZ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;mHg===void 0&&(mHg=document.createElement("template"));var Z=mHg;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);sHZ=y}y=sHZ;return y},{mode:2});var F6Z;var UH6;_.bv("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var $HQ=function(){return _.v.apply(this,arguments)||this};
_.R($HQ,_.v);_.f=$HQ.prototype;
_.f.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"}}}}};
_.f.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.f.backgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.backgroundColor;y=v5[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.p(this.hostElement).querySelector("#main-content").style.backgroundColor=y};
_.f.headerPromoBackgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.headerPromoBackgroundColor;y=v5[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.p(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=y};
_.f.errorRendererVisibilityChanged_=function(){var y=this.isExpanded_,W;this.isErrorRendererVisible_=!((W=this.data)==null||!W.errorRenderer)&&!y};
_.f.onYtToggleButton_=function(y,W){this.isExpanded_=W.toggled};
var jH=$HQ;jH.prototype.onYtToggleButton_=jH.prototype.onYtToggleButton_;jH.prototype.errorRendererVisibilityChanged_=jH.prototype.errorRendererVisibilityChanged_;jH.prototype.headerPromoBackgroundColorChanged_=jH.prototype.headerPromoBackgroundColorChanged_;jH.prototype.backgroundColorChanged_=jH.prototype.backgroundColorChanged_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(SZB.YtCardItemBoxBehavior),_.e("design:type",Object)],jH.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.C(_.oQQ.YtTappableItemBehavior),_.e("design:type",Object)],jH.prototype,"ytTappableItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jH.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],jH.prototype,"isExpanded_",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],jH.prototype,"isErrorRendererVisible_",void 0);_.x([_.H("data.backgroundColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jH.prototype,"backgroundColorChanged_",null);_.x([_.H("data.headerPromoBackgroundColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jH.prototype,"headerPromoBackgroundColorChanged_",null);
_.x([_.H("data.errorRenderer","isExpanded_"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jH.prototype,"errorRendererVisibilityChanged_",null);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[Event,Object]),_.e("design:returntype")],jH.prototype,"onYtToggleButton_",null);jH=_.x([_.n6({is:"yt-card-item-renderer",disableElementRegistration:!0})],jH);
_.T(jH,"yt-card-item-renderer",function(){if(UH6===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;F6Z===void 0&&(F6Z=document.createElement("template"));var Z=F6Z;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);UH6=y}y=UH6;return y},{mode:2});_.bv("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var K6Z=function(){var y=_.v.apply(this,arguments)||this;y.hidden=!1;return y};
_.R(K6Z,_.v);_.f=K6Z.prototype;_.f.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.f.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.f.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var y,W=(y=this.commerceCartHeaderEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hidden=W)}};
_.f.updateTitle=function(){var y=this.commerceCartHeaderEntity.isDisabled,W,c,Z=(c=_.g((W=this.data)==null?void 0:W.item,bAV))==null?void 0:c.headingRenderer;Z&&(W=Cs(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".0.cardItemTextRenderer.textColor",y?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.f.updateSummaryText=function(){var y=this.commerceCartHeaderEntity;if(this.compact){var W,c,Z=(c=_.g((W=this.data)==null?void 0:W.item,bAV))==null?void 0:c.headingRenderer;Z&&(W=Cs(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+W+".1.cardItemTextRenderer.text",y.shortHeaderSummaryText?Qo(y.shortHeaderSummaryText):y.headerSummaryText?Qo(y.headerSummaryText):""))}else{var G;if(W=(G=_.g((Z=this.data)==null?void 0:Z.item,bAV))==null?void 0:G.additionalInfoRenderer)W=Cs(W,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".text",y.headerSummaryText?Qo(y.headerSummaryText):"")}};
_.f.updateCheckoutButton=function(){var y=this.commerceCartHeaderEntity,W,c,Z=(c=_.g((W=this.data)==null?void 0:W.item,bAV))==null?void 0:c.additionalInfoRenderer;W=Cs(Z,"buttonRenderer");var G;c=(G=this.commerceCartHeaderEntity)==null?void 0:G.isButtonDisabled;var D;G=(D=this.commerceCartHeaderEntity)==null?void 0:D.isButtonHidden;c!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.isDisabled",c);G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
G);var Y;y=(Y=y.checkoutButtonCommand)==null?void 0:Y.innertubeCommand;y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+W+".buttonRenderer.command",y)};
var y5=K6Z;y5.prototype.entityChanged=y5.prototype.entityChanged;_.x([_.C(_.$s),_.e("design:type",Object)],y5.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],y5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],y5.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],y5.prototype,"compact",void 0);_.x([_.L({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(y,W){return _.fq(y.entities,"commerceCartHeaderEntity",W)}}),
_.e("design:type",Object)],y5.prototype,"commerceCartHeaderEntity",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y5.prototype,"hidden",void 0);_.x([_.H("commerceCartHeaderEntity","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],y5.prototype,"entityChanged",null);y5=_.x([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],y5);
_.T(y5,"ytd-commerce-cart-header-renderer",function(){if(fg3!==void 0)return fg3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return fg3=y},{mode:1});var OQH;var gQB=_.u5(function(y,W){var c;return(c=y.onChangeCallback)==null?void 0:c.call(y,W)},1E3),R69=_.Ax(function(y){var W=y.data;
var c=y.iconMinus;y=y.iconPlus;var Z=function(){return!!W().disabled},G=_.z(_.G9(0,void 0,"r56zNb")),D=G.next().value,Y=G.next().value;
G={};G=_.Mi("yt-spec-quantity-incrementer-shape__icon",(G["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return Z()||D()===(W().onRemoveCommand?0:1)},G));
var u={};u=_.Mi("yt-spec-quantity-incrementer-shape__icon",(u["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return D()>=W().maxValue||Z()},u));
var t={};t=_.Mi("yt-spec-quantity-incrementer-shape__text",(t["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return D()>W().maxValue},t["yt-spec-quantity-incrementer-shape__text--text-disabled"]=Z,t));
var b=_.j9(function(){if(D()===1){var F,K;(K=(F=W()).onRemoveCommand)==null||K.call(F)}F=D()>W().maxValue?W().maxValue:D()-1;Y(F);gQB(W(),F);return!1}),r=_.j9(function(){if(D()===W().maxValue)return!1;
var F=D()+1;Y(F);gQB(W(),F);return!1});
_.Xl(function(){Y(W().value)});
return _.X("quantity-incrementer-shape",null,_.X("div",{class:"yt-spec-quantity-incrementer-shape"},_.X("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return D()===(W().onRemoveCommand?0:1)||Z()},
"aria-label":function(){return D()!==1?W().minusLabel:W().minimumReachedLabel},
"on:click":b},_.X(_.zb,{model:{circular:!0}}),_.X("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.X("div",{class:G},c()))),_.X("div",{class:t},D),_.X("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return D()>=W().maxValue||Z()},
"aria-label":function(){return D()!==W().maxValue?W().plusLabel:W().maximumReachedLabel},
"on:click":r},_.X(_.zb,{model:{circular:!0}}),_.X("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.X("div",{class:u},y())))))},"md");_.A3(_.Ax(function(y){function W(){c().onRemoveCommand&&_.OH(c().onRemoveCommand)}
var c=y.data;var Z=_.Zx(eaI,function(){return c().quantityIncrementerEntityKey});
return _.X("yt-quantity-incrementer-view-model",null,_.X(R69,{data:function(){var G=c(),D;var Y=Z()?!((D=Z())==null||!D.disabled):!1;var u;D=Z()?(u=Z())==null?void 0:u.quantity:c().quantity;return $by(G,Y,W,D)},
iconMinus:function(){return _.X(_.Gb,{icon:"BAR_HORIZONTAL",className:_.wZ("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.X(_.Gb,{icon:"ADD",className:_.wZ("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"nd"),"yt-quantity-incrementer-view-model",{props:{data:_.Ix}});var W9=function(){var y=_.v.apply(this,arguments)||this;y.compact=!1;y.hasQuantityIncrementer=!1;return y};
_.R(W9,_.v);W9.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"}}}};
W9.prototype.computeHasQuantityIncrementer=function(){var y;return!!_.g((y=this.data)==null?void 0:y.picker,$73)};
W9.prototype.onLabelClick=function(){var y;(y=this.dropdownEl)==null||y.open()};
var c9=W9;_.x([_.jj("ytd-dropdown-renderer"),_.e("design:type",Object)],c9.prototype,"dropdownEl",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],c9.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],c9.prototype,"quantityColor",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],c9.prototype,"compact",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.e("design:type",Object)],c9.prototype,"hasQuantityIncrementer",void 0);c9=_.x([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],c9);
_.T(c9,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(OQH!==void 0)return OQH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return OQH=y},{mode:1});var lgf;var EQ6;var Zt=function(){return _.v.apply(this,arguments)||this};
_.R(Zt,_.v);Zt.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Zt.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Zt.prototype.updateTitle=function(){var y=this.disabledCartItemEntity;y.disableActionName&&this.set("data.title",Qo(y.disableActionName))};
Zt.prototype.updateButton=function(){var y,W=(y=this.disabledCartItemEntity.undoCommand)==null?void 0:y.innertubeCommand;W!==void 0&&(this.set("data.actionButton.buttonRenderer.command",W),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
var G1=Zt;G1.prototype.entityChanged=G1.prototype.entityChanged;_.x([_.C(_.$s),_.e("design:type",Object)],G1.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(y,W){return _.fq(y.entities,"disabledCartItemEntity",W)}}),
_.e("design:type",Object)],G1.prototype,"disabledCartItemEntity",void 0);_.x([_.L(),_.e("design:type",Object)],G1.prototype,"data",void 0);_.x([_.H("disabledCartItemEntity","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],G1.prototype,"entityChanged",null);G1=_.x([_.d({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],G1);
_.T(G1,"ytd-disabled-cart-item-renderer",function(){if(EQ6!==void 0)return EQ6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return EQ6=y},{mode:1});_.bv("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var NS6=function(){var y=_.v.apply(this,arguments)||this;y.compact=!1;y.hidden=!1;y.errorHidden=!1;y.noOnTap=!1;return y};
_.R(NS6,_.v);_.f=NS6.prototype;
_.f.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"}}}};
_.f.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.f.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var y=this.firstButtonElement;y.alignByText=!0;y.iconAlignByText=!0}};
_.f.computeNoOnTap=function(y){return!y};
_.f.updateQuantityColor=function(){if(this.pickerElement){var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.quantityColor;this.pickerElement.quantityColor=W}};
_.f.updateTotalPriceColor=function(){var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.totalPriceColor;if(W){var c;y=_.g((c=this.data)==null?void 0:c.quantityPicker,FBV);if(c=_.g(y==null?void 0:y.price,rtV))c.textColor=W}};
_.f.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hidden=W)}};
_.f.updateHideErrorMessage=function(){var y,W=(y=this.commerceCartItemEntity)==null?void 0:y.hideErrorMessage;W!==void 0&&(this.errorHidden=W)};
_.f.updateQuantity=function(){var y=this,W,c=(W=this.commerceCartItemEntity)==null?void 0:W.quantity,Z;W=(Z=this.commerceCartItemEntity)==null?void 0:Z.totalPrice;if(c){this.updateTotalPriceColor();this.updateQuantityColor();var G;Z=_.g((G=this.data)==null?void 0:G.quantityPicker,FBV);if(G=_.g(Z==null?void 0:Z.price,rtV))G.text=W?{simpleText:W.content}:void 0;if(W=_.g(Z==null?void 0:Z.picker,$73))W.quantity=c;var D;if(G=(D=_.g(Z==null?void 0:Z.picker,Lu0))==null?void 0:D.entries){D=!1;W=void 0;G=
_.z(G);for(Z=G.next();!Z.done;Z=G.next())Z=Z.value,Z.dropdownItemRenderer&&(W||(W=Z.dropdownItemRenderer),Z.dropdownItemRenderer.isSelected=!1,c===Z.dropdownItemRenderer.int32Value&&(D=!0,Z.dropdownItemRenderer.isSelected=!0));!D&&W&&(W.isSelected=!0)}_.Lv(this,function(){var Y;y.set("data.quantityPicker",_.Eb.unsafeClone((Y=y.data)==null?void 0:Y.quantityPicker))})}};
var fM=NS6;fM.prototype.onYtRendererstamperFinished=fM.prototype.onYtRendererstamperFinished;fM.prototype.entityChanged=fM.prototype.entityChanged;_.x([_.L(),_.e("design:type",Object)],fM.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],fM.prototype,"compact",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],fM.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],fM.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(y,W){return _.fq(y.entities,"commerceCartItemEntity",W)}}),
_.e("design:type",Object)],fM.prototype,"commerceCartItemEntity",void 0);_.x([_.L(),_.e("design:type",Object)],fM.prototype,"quantityPicker",void 0);_.x([_.L(),_.e("design:type",Object)],fM.prototype,"compactQuantityPicker",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],fM.prototype,"hidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],fM.prototype,"errorHidden",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.e("design:type",Object)],fM.prototype,"noOnTap",void 0);_.x([_.jj("ytd-commerce-cart-item-quantity-picker-renderer"),_.e("design:type",Object)],fM.prototype,"pickerElement",void 0);_.x([_.jj("yt-button-renderer"),_.e("design:type",Element)],fM.prototype,"firstButtonElement",void 0);
_.x([_.H("commerceCartItemEntity","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fM.prototype,"entityChanged",null);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fM.prototype,"onYtRendererstamperFinished",null);fM=_.x([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],fM);
_.T(fM,"ytd-commerce-cart-item-renderer",function(){if(lgf!==void 0)return lgf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return lgf=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var Igg;var p36;var oc=function(){return _.v.apply(this,arguments)||this};
_.R(oc,_.v);oc.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}}}}}};
oc.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
oc.prototype.updateCheckoutLineItems=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.checkoutLineItems;W&&(y=W.map(function(c){a:{var Z=c.price;var G=c.description;switch(c.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":c={cardItemTextRenderer:{text:Qo(G),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"}}};
Z={cardItemTextRenderer:{text:Qo(Z),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"}}};Z={commerceCartSummaryLineItemRenderer:{summaryText:c,price:Z}};break a;default:c={cardItemTextRenderer:{text:Qo(G),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"}}},Z={cardItemTextRenderer:{text:Qo(Z),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"}}},Z={commerceCartSummaryLineItemRenderer:{summaryText:c,price:Z}}}}return Z}),this.set("data.summaryLineItems",y))};
oc.prototype.updateIsHidden=function(){var y,W=(y=this.commerceCartCheckoutButtonEntity)==null?void 0:y.isHidden;W!==void 0&&(this.hostElement.hidden=W)};
var Dt=oc;Dt.prototype.entityChanged=Dt.prototype.entityChanged;_.x([_.C(_.$s),_.e("design:type",Object)],Dt.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Dt.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Dt.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:gqy}),_.e("design:type",Object)],Dt.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.H("commerceCartCheckoutButtonEntity","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dt.prototype,"entityChanged",null);Dt=_.x([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],Dt);
_.T(Dt,"ytd-commerce-cart-summary-renderer",function(){if(p36!==void 0)return p36;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return p36=y},{mode:1});var P9D={};P9D.InjectBehavior=[Fny.InjectBehavior];var J9f;var VD6;var z1=function(){return _.v.apply(this,arguments)||this};
_.R(z1,_.v);
z1.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:_.rI("menuRenderer")}}};
z1.prototype.onMenuTap=function(y){y.stopPropagation()};
_.dJ.Object.defineProperties(z1.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 y,W;return!(((y=this.data)==null||!y.sectionHeading)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var y,W;return!(((y=this.data)==null||!y.image)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var y,W;return!(((y=this.data)==null||!y.menu)&&((W=this.data)==null?void 0:W.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
var Yz=z1;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Yz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.oQQ.YtTappableItemBehavior),_.e("design:type",Object)],Yz.prototype,"ytTappableItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Yz.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data.accessibilityData"),_.e("design:type",String),_.e("design:paramtypes",[])],Yz.prototype,"ariaLabel",null);_.x([_.A("data.sectionHeading","data.layout"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Yz.prototype,"sectionHeadingVisible",null);_.x([_.A("data.image","data.layout"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Yz.prototype,"imageVisible",null);
_.x([_.A("data.menu","data.layout"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Yz.prototype,"menuVisible",null);Yz=_.x([_.n6({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Yz);
_.T(Yz,"yt-activity-item-renderer",function(){if(VD6===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;J9f===void 0&&(J9f=document.createElement("template"));var Z=J9f;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);VD6=y}y=VD6;return y},{mode:2});var C99;var QHZ;var A96;var h69;var BSg=function(){return _.v.apply(this,arguments)||this};
_.R(BSg,_.v);
BSg.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"}}}}};
BSg.prototype.backgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.backgroundColor;this.hostElement.style.backgroundColor=v5[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var mb=BSg;mb.prototype.backgroundColorChanged_=mb.prototype.backgroundColorChanged_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mb.prototype,"data",void 0);
_.x([_.H("data.backgroundColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mb.prototype,"backgroundColorChanged_",null);mb=_.x([_.n6({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],mb);
_.T(mb,"yt-offer-item-upsell-renderer",function(){if(h69===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;A96===void 0&&(A96=document.createElement("template"));var Z=A96;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);h69=y}y=h69;return y},{mode:2});_.bv("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var HQB=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};y.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return y};
_.R(HQB,_.v);_.f=HQB.prototype;
_.f.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:_.rI("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.f.computeContainerStyle_=function(y){return y};
_.f.computeContainerIsHidden_=function(y){return y&&!!y.isHidden};
_.f.computeShowSpinner_=function(y,W){return y&&W==="in-progress"};
_.f.computeShowMoreContentsButton_=function(y,W,c,Z,G){return!(!(Z&&Z.length||G&&G.length&&c)||!y||W)};
_.f.onToggleButton_=function(y){var W=this;y.stopPropagation();this.isExpanded_=y.detail&&y.detail.toggled;var c,Z;this.isExpanded_&&!this.data.continuationSection.length&&((c=this.data)==null?0:(Z=c.continuation)==null?0:Z.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Z2(this.hostElement,"yt-load-next-continuation",function(G){return W.getContinuationUrl_(W.data.continuation.onClickContinuationData,G)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.D2(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.f.onShowMoreContentsButtonClicked_=function(y){var W=this;y.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Z2(this.hostElement,"yt-load-next-continuation",function(c){return W.getContinuationUrl_(W.data.continuations[0].nextContinuationData,c)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.D2(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.f.getContinuationUrl_=function(y,W){var c=y.continuation;y=y.clickTrackingParams;var Z=_.NR();y&&Z&&_.SG(Z,_.Dz(y));return _.HI(W,{continuation:c})};
_.f.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var y=_.p(this.hostElement).querySelector("#continuation-section");y&&(y=y.querySelectorAll("ytmusic-item-section-renderer"))&&y.forEach(function(W){return W.classList.add("memberships-and-purchases")})};
_.f.dataChanged_=function(){var y;this.isExpanded_=!((y=this.data)==null||!y.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.f.updateCardOnClickCommand_=function(y){y=_.g(y,zZT);var W,c;this.data&&((W=this.data)==null?0:W.targetId)&&y&&y.targetId===((c=this.data)==null?void 0:c.targetId)&&y.onClickCommand&&(this.data.onClickCommand=y.onClickCommand,this.isOnClickCommand_=!0)};
_.f.backgroundColorChanged_=function(){var y,W=(y=this.data)==null?void 0:y.backgroundColor;this.hostElement.style.backgroundColor=v5[W||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var sa=HQB;sa.prototype.backgroundColorChanged_=sa.prototype.backgroundColorChanged_;sa.prototype.dataChanged_=sa.prototype.dataChanged_;sa.prototype.nextContinuationDataUpdated_=sa.prototype.nextContinuationDataUpdated_;sa.prototype.onToggleButton_=sa.prototype.onToggleButton_;_.x([_.C(_.dO),_.e("design:type",Object)],sa.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],sa.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],sa.prototype,"ytNextContinuationBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.x([_.C(P9D.InjectBehavior),_.e("design:type",Object)],sa.prototype,"injectBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sa.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],sa.prototype,"compact",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],sa.prototype,"isExpanded_",void 0);_.x([_.L({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.e("design:type",String)],sa.prototype,"containerStyle_",void 0);_.x([_.L({value:"not-started"}),_.e("design:type",String)],sa.prototype,"continuationStatus_",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.e("design:type",Boolean)],sa.prototype,"showSpinner_",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],sa.prototype,"isOnClickCommand_",void 0);_.x([_.L({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.e("design:type",Boolean)],sa.prototype,"showMoreContentsButton_",void 0);
_.x([_.L({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(y,W){return!W||y.entities?null:_.fq(y.entities,"cardItemContainerEntity",W)}}),
_.e("design:type",Object)],sa.prototype,"cardItemContainerEntity_",void 0);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],sa.prototype,"onToggleButton_",null);_.x([_.B("yt-next-continuation-data-updated"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],sa.prototype,"nextContinuationDataUpdated_",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],sa.prototype,"dataChanged_",null);_.x([_.H("data.backgroundColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],sa.prototype,"backgroundColorChanged_",null);sa=_.x([_.n6({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],sa);
_.T(sa,"yt-card-item-container-renderer",function(){if(QHZ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;C99===void 0&&(C99=document.createElement("template"));var Z=C99;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);QHZ=y}y=QHZ;return y},{mode:2});var uS=function(){return _.v.apply(this,arguments)||this};
_.R(uS,_.v);uS.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"}}}};
uS.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
uS.prototype.computeLoadingHidden=function(){var y;return!((y=this.commerceCartPageStateEntity)==null?0:y.cartActionInProgress)};
uS.prototype.updateNotification=function(){var y,W=(y=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:y.summaryText;W&&this.set("data.cartNotification",Qo(W))};
var tX=uS;tX.prototype.notificationEntityChanged=tX.prototype.notificationEntityChanged;_.x([_.C(_.$s),_.e("design:type",Object)],tX.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],tX.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],tX.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(y,W){return _.fq(y.entities,"commerceCartExpandableNotificationEntity",W)}}),
_.e("design:type",Object)],tX.prototype,"commerceCartExpandableNotificationEntity",void 0);_.x([_.L({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(y,W){return _.fq(y.entities,"commerceCartPageStateEntity",W)}}),
_.e("design:type",Object)],tX.prototype,"commerceCartPageStateEntity",void 0);_.x([_.jj("#spinner"),_.e("design:type",HTMLElement)],tX.prototype,"spinner",void 0);_.x([_.H("commerceCartExpandableNotificationEntity","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tX.prototype,"notificationEntityChanged",null);tX=_.x([_.d({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],tX);
_.T(tX,"ytd-commerce-cart-renderer",function(){if(Igg!==void 0)return Igg;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Igg=y},{mode:1});var L66;var vQH=function(){var y=_.v.apply(this,arguments)||this;y.bigImage=!1;return y};
_.R(vQH,_.v);_.dJ.Object.defineProperties(vQH.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.placeholderImageUrl}}});
var nM=vQH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nM.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],nM.prototype,"bigImage",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],nM.prototype,"placeholderImageUrl",null);nM=_.x([_.d({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],nM);
_.T(nM,"ytd-empty-product-shelf-renderer",function(){if(L66!==void 0)return L66;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return L66=y},{mode:1});var dHd;var SBQ=function(){var y=_.v.apply(this,arguments)||this;y.itemStyle="link-item";y.watchMetadataRefresh=!1;y.skinnyMode=!1;y.metaPanel=!1;y.inStructuredDescription=!1;y.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};y.updateOnResizeDebouncer=null;return y};
_.R(SBQ,_.v);_.f=SBQ.prototype;_.f.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.f.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"}}}}};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.f.attachVEs=function(y){y.trackingParams&&_.Zz().graftServerVe(y.trackingParams)};
_.f.handleUpdateMerchShelfAction=function(y){var W=this,c=_.g(y.updateMerchandiseShelfAction.merchandiseShelf,_.oHJ);c&&(c.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){W.attachVEs(c);W.data=c},Number(c.renderDelayMs))):(this.attachVEs(c),this.data=c))};
_.f.updateOnResize=function(){if(this.JSC$14551_scrollContainer!==void 0&&this.JSC$14551_scrollContainer.clientWidth!==0&&this.items!==void 0){var y=this.JSC$14551_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-y));this.ytdHorizontalListBehavior.reposition_();var W;switch((W=this.data)==null?void 0:W.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var c,
Z;((c=this.data)==null?void 0:(Z=c.items)==null?void 0:Z.length)===1?this.itemStyle="cta-item":this.itemStyle=y>=740?"large-item":"small-item"}}};
_.f.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.kj(this.updateOnResizeDebouncer,_.Hi.after(100),this.updateOnResize)};
var Xd=SBQ;Xd.prototype.debouncedUpdateOnResize=Xd.prototype.debouncedUpdateOnResize;Xd.prototype.dataChanged=Xd.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Si.YtdHorizontalListBehavior),_.e("design:type",Object)],Xd.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Xd.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Xd.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Xd.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Xd.prototype,"itemStyle",void 0);_.x([_.L({value:6}),_.e("design:type",Number)],Xd.prototype,"initialCount",void 0);
_.x([_.L({value:"data.items"}),_.e("design:type",String)],Xd.prototype,"itemsPath",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Xd.prototype,"watchMetadataRefresh",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Xd.prototype,"skinnyMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Xd.prototype,"metaPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Xd.prototype,"inStructuredDescription",void 0);
_.x([_.jj("#items"),_.e("design:type",HTMLDivElement)],Xd.prototype,"items",void 0);_.x([_.jj("#scroll-container"),_.e("design:type",HTMLDivElement)],Xd.prototype,"JSC$14551_scrollContainer",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Xd.prototype,"dataChanged",null);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Xd.prototype,"debouncedUpdateOnResize",null);
Xd=_.x([_.d({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Xd);
_.T(Xd,"ytd-merch-shelf-renderer",function(){if(dHd!==void 0)return dHd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dHd=y},{mode:2});var TSB;var agQ=function(){var y=_.v.apply(this,arguments)||this;y.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 y};
_.R(agQ,_.v);_.f=agQ.prototype;
_.f.addBackstagePostAction=function(y){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(y=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",y))&&(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:y}):this.set("data.contents",[{backstagePostThreadRenderer:y}]))};
_.f.addBackstageCommentAction=function(y){var W=this.get("addBackstageCommentAction.parentId",y);y=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",y);if(W&&y){W=this.postIdToIndices(W);for(var c=0;c<W.length;c++){var Z=W[c];if(Z<0)break;Z="data.contents."+Z+".backstagePostThreadRenderer.comments";this.get(Z)&&(this.get(Z+".backstageCommentsRenderer.contents")&&this.push(Z+".backstageCommentsRenderer.contents",{commentThreadRenderer:y}),this.get(Z+".backstageCommentsRenderer.teaserContents")?
this.push(Z+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:y}):this.set(Z+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:y}]))}}};
_.f.addBackstageReplyAction=function(y){var W=this.get("addBackstageReplyAction.parentId",y);y=this.get("addBackstageReplyAction.renderer.commentRenderer",y);W&&y&&this.setCreatorReply(W,y)};
_.f.banAuthorAction=function(y){var W=this.get("banAuthorAction.commentId",y);W&&(y=this.get("banAuthorAction.parentCommentId",y)||this.getParentPostId(W),this.removeFromStream(W,y))};
_.f.hideReportedCommentAction=function(y){var W=this.get("hideReportedCommentAction.commentId",y);W&&((y=this.get("hideReportedCommentAction.parentCommentId",y))||(y=this.getParentPostId(W)),this.removeFromStream(W,y))};
_.f.replaceBackstageCommentAction=function(y){var W=this.get("replaceBackstageCommentAction.commentId",y),c=this.get("replaceBackstageCommentAction.parentId",y);y=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",y);if(W&&c&&y){c=this.postIdToIndices(c);for(var Z=0;Z<c.length;Z++){var G=c[Z];if(G<0)break;var D=this.commentIdToIndex(W,G,!1);if(D>=0){var Y=this.get("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+D+".commentThreadRenderer.replies.commentRepliesRenderer");
Y&&(y.replies={commentRepliesRenderer:Y});this.splice("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",D,1,{commentThreadRenderer:y})}D=this.commentIdToIndex(W,G,!0);if(D>=0){if(Y=this.get("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(D+".commentThreadRenderer.replies.commentRepliesRenderer")))y.replies={commentRepliesRenderer:Y};this.splice("data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
D,1,{commentThreadRenderer:y})}}}};
_.f.replaceBackstagePostAction=function(y){var W=this.get("replaceBackstagePostAction.itemId",y);if(W){W=this.postIdToIndices(W);for(var c=0;c<W.length;c++){var Z=W[c];if(Z<0)break;var G=this.getPostRendererType(Z),D=this.get("replaceBackstagePostAction.renderer."+G,y);if(!D&&G!=="sharedPostRenderer")break;var Y=!1;D||(Y=!0,D=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",y));if(!D)break;var u={};Y?(_.nN(u,FSW,D),this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
u)):(_.nN(u,new _.w(G),D),this.set("data.contents."+Z+".backstagePostThreadRenderer.post",u))}}};
_.f.replaceBackstageReplyAction=function(y){var W=this.get("replaceBackstageReplyAction.replyId",y),c=this.get("replaceBackstageReplyAction.parentId",y);y=this.get("replaceBackstageReplyAction.renderer.commentRenderer",y);W&&y&&c&&this.setCreatorReply(c,y)};
_.f.removeCommentAction=function(y){var W=this.get("removeCommentAction.commentId",y);if(W){var c=this.get("removeCommentAction.parentCommentId",y);c&&this.get("removeCommentAction.isCreatorReply",y)?this.setCreatorReply(c,void 0):(c||(c=this.getParentPostId(W)),this.removeFromStream(W,c))}};
_.f.setCreatorReply=function(y,W){var c=this.getParentPostId(y);if(c){c=this.postIdToIndices(c);for(var Z=0;Z<c.length;Z++){var G=c[Z];if(G<0)break;var D=this.commentIdToIndex(y,G,!1);if(D>=0){var Y="data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+D;D=Y+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Y+=".commentThreadRenderer.replies";W==void 0?(this.set(Y,{}),this.set(D,!1)):(this.set(Y,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),
this.set(Y+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(D,!0))}D=this.commentIdToIndex(y,G,!0);D>=0&&(D="data.contents."+G+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+D,G=D+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",D+=".commentThreadRenderer.replies",W==void 0?(this.set(D,{}),this.set(G,!1)):(this.set(D,{commentRepliesRenderer:{teaserContents:[{commentRenderer:W}]}}),this.set(G,!0)))}}};
_.f.removeFromStream=function(y,W){if(W){W=this.postIdToIndices(W);for(var c=0;c<W.length;c++){var Z=W[c];if(Z<0)break;var G=this.commentIdToIndex(y,Z,!1);G>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",G,1);G=this.commentIdToIndex(y,Z,!0);G>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",G,1);Z="data.contents."+Z+".backstagePostThreadRenderer.post.backstagePostRenderer";
G=Z+".backstageAttachment.pollRenderer.votedCommentId";this.get(G)===y&&(this.set(G,null),this.set(Z+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(W=this.postIdToIndices(y).reverse(),c=0;c<W.length;c++){Z=W[c];if(Z<0)break;G=this.getPostRendererType(Z);var D=this.get("backstagePostThreadRenderer.post."+G,this.data.contents[Z]);D.postId===y?this.splice("data.contents",Z,1):G==="sharedPostRenderer"&&this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);D.scheduledPublishTimeSec&&_.GG(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.f.postIdToIndices=function(y){for(var W=[],c=0;c<this.data.contents.length;c++){var Z=this.getPostRendererType(c);this.get("backstagePostThreadRenderer.post."+Z+".postId",this.data.contents[c])===y&&W.push(c);if(Z==="sharedPostRenderer"){var G=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.backstagePostRenderer.postId",this.data.contents[c]);Z=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.postRenderer.postId",this.data.contents[c]);G!==y&&Z!==y||W.push(c)}}return W};
_.f.commentIdToIndex=function(y,W,c){if(W<0)return-1;var Z,G,D,Y,u=_.g((Z=this.data)==null?void 0:(G=Z.contents)==null?void 0:(D=G[W])==null?void 0:(Y=D.backstagePostThreadRenderer)==null?void 0:Y.comments,b$V);return(W=c?u==null?void 0:u.teaserContents:u==null?void 0:u.contents)&&W.length?W.findIndex(function(t){return _.g(t,a92).comment.commentRenderer.commentId===y}):-1};
_.f.getParentPostId=function(y){y=y.split(".");if(y[1])return y[0]};
_.f.getPostRendererType=function(y){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[y])?"sharedPostRenderer":"backstagePostRenderer"};
var bS=agQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],bS.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bS.prototype,"data",void 0);bS=_.x([_.d({disableElementRegistration:!0,is:"ytd-backstage-items"})],bS);
_.T(bS,"ytd-backstage-items",function(){if(TSB!==void 0)return TSB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return TSB=
y},{mode:1});var xH6;_.mD({is:"ytd-comments",_template:function(){if(xH6!==void 0)return xH6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return xH6=y},
behaviors:[_.OWa.YtHostElementBehavior,_.VW.YtPlayerListenerBehavior,_.k.YtRendererBehavior,_.Hj.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(){var y=this;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_();this.player=
null;this.JSC$14563_PLAYER_EVENTS_=new Map;this.JSC$14563_PLAYER_EVENTS_.set("onVideoProgress",function(){y.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var y=this,W=_.HF(this);W&&W.getPlayerPromise().then(function(c){y.playerApiReady_(c)})},
playerApiReady_:function(y){this.setPlayer_(y)},
setPlayer_:function(y){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14563_PLAYER_EVENTS_);(this.player_=y)&&this.listenToPlayerEvents(y,this.JSC$14563_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var y=this,W=_.ey("prefetch_comments_ms_after_video");W>0&&setTimeout(function(){return y.loadComments()},W);
_.O("prefetch_comments_idle_job")&&_.Xc(_.KX,function(){return y.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(y){y&&y.value&&y.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(y){y&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.pl("wn_comments");var y=_.NR();y&&_.IP({clientScreenNonce:y},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(y){y=KJf(y);var W,c,Z;if(y=(W=y)==null?void 0:(c=W.createCommentAction)==null?void 0:(Z=c.contents)==null?void 0:Z.commentThreadRenderer){var G,D,Y,u,t,b;!this.isBackstage&&((G=this.data)==null?0:(D=G.header)==null?0:(Y=D.commentsHeaderRenderer)==null?0:(u=Y.createRenderer)==null?0:(t=u.commentSimpleboxRenderer)==null?0:(b=t.zeroStep)==null?0:b.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var r,F,K,l;this.isBackstage&&((r=this.data)==null?0:(F=r.header)==null?0:(K=F.commentsHeaderRenderer)==null?0:(l=K.zeroStateMessage)==null?0:l.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(y)}},
doReplyInsert_:function(y,W,c,Z){Z?this.splice(y,Z,0,W):this.push(y,W)},
getRepliesPath_:function(y){return"data.contents."+y+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(y,W){y=this.getRepliesPath_(y);return W?y+".commentRepliesRenderer.teaserContents":y+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(y){y=KJf(y);var W,c,Z=(W=y)==null?void 0:(c=W.createCommentReplyAction)==null?void 0:c.parentCommentId,G,D;if(W=(G=y)==null?void 0:(D=G.createCommentReplyAction)==null?void 0:D.contents)if(Z=this.commentIdToIndex_(Z),!(Z<0))if(G=this.getRepliesPath_(Z),this.get(G)){var Y,u;y=(Y=y)==null?void 0:(u=Y.createCommentReplyAction)==null?void 0:u.replyToCommentId;Y=this.getRepliesContentsPath_(Z,!1);this.get(Y)&&(u=this.get(Y).length,G=Y+"."+(u-1)+".continuationItemRenderer",
this.get(G+".button")?(G=this.replyIdToIndex_(y,Z,!1),this.doReplyInsert_(Y,W,G,u-1)):this.get(G)||(u=this.replyIdToIndex_(y,Z,!1),this.doReplyInsert_(Y,W,u,null)));Y=this.getRepliesContentsPath_(Z,!0);this.get(Y)?(Z=this.replyIdToIndex_(y,Z,!0),(!y||Z>=0)&&this.doReplyInsert_(Y,W,Z,null)):this.set(Y,[W])}else this.set(G,{commentRepliesRenderer:{teaserContents:[W]}})},
hideReportedCommentAction_:function(y){var W,c=y==null?void 0:(W=y.hideReportedCommentAction)==null?void 0:W.commentId;if(c){var Z;y=y==null?void 0:(Z=y.hideReportedCommentAction)==null?void 0:Z.parentCommentId;c=c.replace("#",".");y||(y=this.getParentCommentId_(c));this.remove_(c,y)}},
getParentCommentId_:function(y){y=y.split(".");if(y[1])return y[0]},
removeCommentAction_:function(y){var W,c=y==null?void 0:(W=y.removeCommentAction)==null?void 0:W.commentId;if(c){var Z;y=y==null?void 0:(Z=y.removeCommentAction)==null?void 0:Z.parentCommentId;c=c.replace("#",".");y||(y=this.getParentCommentId_(c));this.remove_(c,y)}},
pinCommentAction_:function(y){y=KJf(y);var W,c,Z=(W=y)==null?void 0:(c=W.pinCommentAction)==null?void 0:c.commentId;Z&&(y=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",y))&&(this.remove_(Z),this.insert_(y,!0))},
unpinCommentAction_:function(y){y=KJf(y);var W,c,Z=(W=y)==null?void 0:(c=W.unpinCommentAction)==null?void 0:c.commentId;if(Z){var G,D,Y;if(y=(G=y.unpinCommentAction)==null?void 0:(D=G.actionResult)==null?void 0:(Y=D.update)==null?void 0:Y.commentThreadRenderer)this.remove_(Z),this.insert_(y)}},
banAuthorAction_:function(y){var W,c=y==null?void 0:(W=y.banAuthorAction)==null?void 0:W.commentId;if(c){var Z;y=y==null?void 0:(Z=y.banAuthorAction)==null?void 0:Z.parentCommentId;c=c.replace("#",".");y||(y=this.getParentCommentId_(c));this.remove_(c,y)}},
commentIdToIndex_:function(y){var W;return y&&(W=this.data)!=null&&W.contents?this.data.contents.findIndex(function(c){var Z,G;return y===((c==null?void 0:(Z=c.commentThreadRenderer)==null?void 0:Z.commentViewModel)&&((G=_.g(c.commentThreadRenderer.commentViewModel,eGE))==null?void 0:G.commentId))}):-1},
insert_:function(y,W){var c,Z;if((c=this.data)==null?0:(Z=c.contents)==null?0:Z.some(function(D){return!(D==null||!D.commentThreadRenderer)}))for(c=0,Z=this.data.contents.length;c<Z;c++){var G=this.data.contents[c].commentThreadRenderer;
if(this.RenderingPriority[y.renderingPriority]>=this.RenderingPriority[G.renderingPriority]){W&&this.RenderingPriority[y.renderingPriority]==this.RenderingPriority[G.renderingPriority]?this.splice("data.contents",c,1,{commentThreadRenderer:y}):this.splice("data.contents",c,0,{commentThreadRenderer:y});break}}else this.set("data.contents",[{commentThreadRenderer:y}])},
doReplyRemove_:function(y,W,c){y=this.replyIdToIndex_(y,W,c);y<0||(W=this.getRepliesContentsPath_(W,c),this.splice(W,y,1))},
remove_:function(y,W){W=this.commentIdToIndex_(W);W<0?(W=this.commentIdToIndex_(y),W<0||this.splice("data.contents",W,1)):(this.doReplyRemove_(y,W,!1),this.doReplyRemove_(y,W,!0))},
replyIdToIndex_:function(y,W,c){if(W<0)return-1;W=this.getRepliesContentsPath_(W,c);W=this.get(W);if(!W||!W.length)return-1;c=0;for(var Z=W.length;c<Z;c++){var G=void 0,D=void 0;if(((G=W[c])==null?void 0:(D=G.commentViewModel)==null?void 0:D.commentId)===y)return c}return-1},
computeIsBackstage_:function(y){return!!y},
computeCanShowDefaultSpinner_:function(y,W){return W?(W=_.U().resolve(_.xN(_.h7)))&&W.isOnWatch&&W.isOnWatch()?!(y&&(y.contents||y.header||y.continuations)):!1:!1},
onRetrieveLocation_:function(y,W){W&&W.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(y){_.JE(y,void 0,"wn_comments")},
reloadComments_:function(y){y&&y.reloadCommentsCommand&&y.reloadCommentsCommand.command&&y.reloadCommentsCommand.command.continuationCommand&&_.D2(this,[y.reloadCommentsCommand.command])},
loadComments:function(){_.ey("prefetch_comments_ms_after_video")||_.O("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var iQQ=function(){return _.cQ.apply(this,arguments)||this};
_.R(iQQ,_.cQ);_.f=iQQ.prototype;_.f.bindIf=function(y,W,c){return y?W:c};
_.f.bindIfDefined=function(y,W){return y!==void 0?y:W};
_.f.booleanString=function(y){return(!!y).toString()};
_.f.equals=function(){for(var y=_.Cf.apply(0,arguments),W=y[0],c=1;c<y.length;c++)if(W!=y[c])return!1;return!0};
_.f.isGreaterThan=function(y,W){return y>W};
_.f.isLessThan=function(y,W){return y<W};
_.f.logicalAND=function(){for(var y=_.Cf.apply(0,arguments),W=!!y[0],c=1;c<y.length;c++)W=W&&!!y[c];return W};
_.f.logicalOR=function(){for(var y=_.Cf.apply(0,arguments),W=!!y[0],c=1;c<y.length;c++)W=W||!!y[c];return W};
_.f.toBool=function(y){return!!y};
var rh=iQQ;rh.prototype.toBool=rh.prototype.toBool;rh.prototype.logicalOR=rh.prototype.logicalOR;rh.prototype.logicalAND=rh.prototype.logicalAND;rh.prototype.isLessThan=rh.prototype.isLessThan;rh.prototype.isGreaterThan=rh.prototype.isGreaterThan;rh.prototype.equals=rh.prototype.equals;rh.prototype.booleanString=rh.prototype.booleanString;rh.prototype.bindIfDefined=rh.prototype.bindIfDefined;rh.prototype.bindIf=rh.prototype.bindIf;rh=_.x([_.ZV()],rh);_.MDd=[rh.prototype];var e6H;var w3H;var qB9=function(){return _.v.apply(this,arguments)||this};
_.R(qB9,_.v);qB9.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
qB9.prototype.onBackIconTap_=function(){window.history.back()};
var Fd=qB9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Fd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Fd.prototype,"data",void 0);Fd=_.x([_.n6({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Fd);
_.T(Fd,"yt-header-with-back-renderer",function(){if(w3H===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;e6H===void 0&&(e6H=document.createElement("template"));var Z=e6H;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);w3H=y}y=w3H;return y},{mode:2});var kfB;var j$9;var ynS=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(ynS,_.v);_.f=ynS.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y,this.setUrl())};
_.f.dataChanged=function(){var y=this;if(this.data){var W=this.setUrl();W&&_.x6({destination:window,iframe:this.iframe,origin:_.tDE(W.toString()),channelName:"yt-iframe",onMessage:function(c){(c=y.getCommunicationCommand(c.data))&&y.ytComponentBehavior.resolveCommand(c)},
onEstablished:function(){}})}};
_.f.setUrl=function(){if(this.data&&this.data.iframeUrl){var y=_.OW(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(y)return _.df(this.iframe,y),y}};
_.f.getCommunicationCommand=function(y){var W;if((W=this.data)!=null&&W.onCommunicationCommandsMap){W=this.data.onCommunicationCommandsMap.find(function(G){return G.key===y});
if(W==null?0:W.value)return W==null?void 0:W.value;try{var c=ytm(_.cJ(y)),Z=this.data.onCommunicationCommandsMap.find(function(G){return G.key===(c==null?void 0:_.RE(c,1))});
if(Z==null?0:Z.value)return Z==null?void 0:Z.value}catch(G){}}};
var Ea=ynS;Ea.prototype.dataChanged=Ea.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ea.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ea.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ea.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ea.prototype,"data",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],Ea.prototype,"isDarkTheme",void 0);_.x([_.jj("#iframe"),_.e("design:type",HTMLIFrameElement)],Ea.prototype,"iframe",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ea.prototype,"dataChanged",null);Ea=_.x([_.n6({is:"yt-iframe-renderer",disableElementRegistration:!0})],Ea);
_.T(Ea,"yt-iframe-renderer",function(){if(j$9===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;kfB===void 0&&(kfB=document.createElement("template"));var Z=kfB;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);j$9=y}y=j$9;return y},{mode:2});_.NA=function(y){_.UR.call(this);this.callback=y;this.bezier=new qH0(0,0,.4,0,.2,1,1,1);this.delay=new _.xM(this.next,window,this);this.JSC$14581_animating=!1;_.zY(this,this.delay)};
_.R(_.NA,_.UR);_.NA.prototype.isAnimating=function(){return this.JSC$14581_animating};
_.NA.prototype.start=function(y,W,c){this.config={from:y,to:W,duration:c,startTime:(0,_.Tj)()};this.JSC$14581_animating=!0;this.next()};
_.NA.prototype.stop=function(){this.delay.stop();this.JSC$14581_animating=!1;this.config=void 0};
_.NA.prototype.next=function(){if(this.config){var y=this.config,W=y.from,c=y.to,Z=y.duration;y=y.startTime;var G=(0,_.Tj)()-y;y=this.bezier;Z=jLT(y,G/Z);if(Z==0)y=y.y0;else if(Z==1)y=y.y3;else{G=Fw(y.y0,y.y1,Z);var D=Fw(y.y1,y.y2,Z);y=Fw(y.y2,y.y3,Z);G=Fw(G,D,Z);D=Fw(D,y,Z);y=Fw(G,D,Z)}y=_.IT(y,0,1);this.callback(W+(c-W)*y);y<1?this.delay.start():this.JSC$14581_animating=!1}};_.Ic=new _.Sm("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Wf6={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},ZfB=function(y,W,c,Z){_.UR.call(this);this.JSC$14589_miniAppId=y;this.localReleaseId=W;this.derivedDeviceInterface=c;this.isForeground=Z;this.JSC$14589_playNonceResolver=new _.WK;this.playPingTimerId=NaN;this.playPingIntervalMs=_.ey("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.ey("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.O("enable_displaying_ppn");this.JSC$14589_miniAppClientDataProvider=_.U().resolve(_.Ic);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;cnQ(this);var G=setTimeout(function(){_.Rs(new _.ul("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14589_playNonceResolver.promise.then(function(){clearTimeout(G)})};
_.R(ZfB,_.UR);var f3B=function(y,W){y.JSC$14589_playNonceResolver.resolve(W!=null?W:Ri(8));y.enableDisplayingPpn&&GeQ(y).then(function(c){y.JSC$14589_miniAppClientDataProvider.clientData.set("post_play_nonce",c)})},GeQ=function(y){return _.m(function(W){return W.nextAddress==1?_.n(W,y.JSC$14589_playNonceResolver.promise,2):W.return(W.yieldResult)})},cnQ=function(y){var W,c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$14589_playNonceResolver.promise,2);W=Z.yieldResult;c={miniAppInfo:{externalPostId:y.JSC$14589_miniAppId,localReleaseId:y.localReleaseId,postPlayNonce:W,derivedDeviceInterface:y.derivedDeviceInterface}};_.IP(c);_.F2(Z)})},D9B=function(y){y.state!==0?_.Rs(new _.ul("[MiniAppPlayLogger] recordPlayStart failed with state "+Wf6[y.state])):(y.state=1,pM(y,"ma_cl"),P9(y,"PLAY_EVENT_TYPE_PLAY_START"),oXZ(y))},z0H=function(y){y.isForeground=!1;
P9(y,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Y3H=function(y){y.state!==1&&y.state!==2?_.Rs(new _.ul("[MiniAppPlayLogger] recordPlayEnd failed with state "+Wf6[y.state])):(y.state=3,window.clearInterval(y.playPingTimerId),y.playPingTimerId=NaN,jYH(),P9(y,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},m99=function(y,W){y.state===2&&y.gameReady&&(y.firstClickRecorded?Date.now()-y.clickRecordedMs<y.playClickIntervalMs||(y.clickRecordedMs=Date.now(),P9(y,"PLAY_EVENT_TYPE_PLAY_CLICK")):W&&(pM(y,"ma_fua"),P9(y,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),y.firstClickRecorded=!0,y.clickRecordedMs=Date.now()))};
ZfB.prototype.logError=function(y){var W=this,c;_.m(function(Z){if(Z.nextAddress==1)return y.metadata.externalPostId=W.JSC$14589_miniAppId,c=y.metadata,_.n(Z,Promise.race([W.JSC$14589_playNonceResolver.promise,new Promise(function(G){setTimeout(function(){G("")},3E4)})]),2);
c.postPlayNonce=Z.yieldResult;y.metadata.localReleaseId=W.localReleaseId;y.loggingError.level="WARNING";_.OP(y.loggingError,y.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:y.metadata});_.F2(Z)})};
var s$Q=function(y,W,c,Z){var G,D,Y,u,t,b;_.m(function(r){if(r.nextAddress==1)return _.n(r,y.JSC$14589_playNonceResolver.promise,2);G=r.yieldResult;D={externalPostId:y.JSC$14589_miniAppId,localReleaseId:y.localReleaseId,postPlayNonce:G,sdkVersion:c,api:W};Z!==void 0&&(D.networkRequestsMeasurement={networkRequests:_.jZ(Z,1),cachedRequests:_.jZ(Z,2),transferredBytes:_.jZ(Z,3)},(Y=Z)==null?0:_.tf(Y,dt,6))&&(D.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((u=_.il(Z,
dt,6))==null?void 0:E2(u,1))||"0",cacheHits:((t=_.il(Z,dt,6))==null?void 0:E2(t,2))||"0",cachedBytes:((b=_.il(Z,dt,6))==null?void 0:E2(b,3))||"0"});_.$g("miniAppSdkUsage",D);_.F2(r)})},tQ9=function(y,W,c){var Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S;
_.m(function(cy){if(cy.nextAddress==1)return _.n(cy,y.JSC$14589_playNonceResolver.promise,2);Z=cy.yieldResult;G={externalPostId:y.JSC$14589_miniAppId,localReleaseId:y.localReleaseId,postPlayNonce:Z,sdkVersion:c,measurementWindow:{startTimestampMs:String(O2(W,1)),endTimestampMs:String(O2(W,2))},frameRate:{averageFrameTimeDeltaMs:g5(W,3),averageFrameIdleTimeMs:g5(W,4)}};_.tf(W,Se,5)&&(G.networkRequests={networkRequests:(D=wt(W))==null?void 0:_.jZ(D,1),cachedRequests:(Y=wt(W))==null?void 0:_.jZ(Y,2),
transferredBytes:(u=wt(W))==null?void 0:_.jZ(u,3),sameOriginStatusCodeToCounts:uM3((t=wt(W))==null?void 0:bQ1(t,4)),crossOriginStatusCodeToCounts:uM3((b=wt(W))==null?void 0:bQ1(b,5))},(r=wt(W))==null?0:_.tf(r,dt,6))&&(G.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((F=wt(W))==null?void 0:(K=_.il(F,dt,6))==null?void 0:E2(K,1))||"0",cacheHits:((l=wt(W))==null?void 0:(N=_.il(l,dt,6))==null?void 0:E2(N,2))||"0",cachedBytes:((P=wt(W))==null?void 0:(V=_.il(P,dt,6))==null?void 0:
E2(V,3))||"0"});_.tf(W,uwE,7)&&(G.gameCapture={averageFrameTimeDeltaMs:(Q=_.il(W,uwE,7))==null?void 0:g5(Q,1),averageFrameIdleTimeMs:(S=_.il(W,uwE,7))==null?void 0:g5(S,2)});_.$g("miniAppPerformanceMetrics",G);_.F2(cy)})},nXH=function(y,W,c){var Z,G;
return _.m(function(D){if(D.nextAddress==1)return _.n(D,y.JSC$14589_playNonceResolver.promise,2);Z=D.yieldResult;G={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:y.JSC$14589_miniAppId,postPlayNonce:Z,miniAppReleaseId:y.localReleaseId},derivedDeviceInterface:y.derivedDeviceInterface,adTriggerType:W};G.rejectedReason=c||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.$g("miniAppAdEvent",G);_.F2(D)})};
ZfB.prototype.disposeInternal=function(){_.UR.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var P9=function(y,W,c,Z){c=c===void 0?{}:c;Z=Z===void 0?!1:Z;var G,D,Y,u;_.m(function(t){if(t.nextAddress==1)return G=y.isForeground,D=y.beforeReady,_.n(t,y.JSC$14589_playNonceResolver.promise,2);Y=t.yieldResult;u={externalPostId:y.JSC$14589_miniAppId,localReleaseId:y.localReleaseId,derivedDeviceInterface:y.derivedDeviceInterface,postPlayNonce:Y,type:W};c.sequenceGroup=Y;u.playState=D?"PLAY_STATE_NOT_READY":G?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.$g("miniAppPlayEvent",u,c);
Z&&_.KD();_.F2(t)})},pM=function(y,W){var c;
_.m(function(Z){if(Z.nextAddress==1)return c=(0,_.Tj)(),_.n(Z,y.JSC$14589_playNonceResolver.promise,2);_.PA(W,c);_.F2(Z)})},oXZ=function(y){isNaN(y.playPingTimerId)&&(y.playPingTimerId=_.y2(function(){y.state!==1&&y.state!==2?_.Rs(new _.ul("[MiniAppPlayLogger] reportPlayPing failed with state "+Wf6[y.state])):P9(y,"PLAY_EVENT_TYPE_PLAY_PING")},y.playPingIntervalMs))},uM3=function(y){return Array.from(y.entries()).map(function(W){var c=_.z(W);
W=c.next().value;c=c.next().value;return{key:W,value:c}})};var XXZ=_.ey("show_mini_app_ad_frequency_cap_ms",0),bf9=function(){this.showAdIntervalMs=XXZ;this.isRateLimited=!0},rnB=function(y,W){setTimeout(function(){return y.isRateLimited=!1},y.showAdIntervalMs);
y.showMiniAppAdCommand=W.showMiniAppAdCommand;y.isEmbeddedInWebview=W.isEmbeddedInWebview;y.playLogger=W.playLogger},U96=function(y,W){var c;
return _.m(function(Z){if(Z.nextAddress==1){if(!y.showMiniAppAdCommand||!y.isEmbeddedInWebview)return Z.return(FfH(y,W,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(y.isRateLimited)return Z.return(FfH(y,W,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));y.adResolver=new _.WK;c=piJ(new IY5,W);hD(y.showMiniAppAdCommand,Pp0(c));y.isRateLimited=!0;setTimeout(function(){return y.isRateLimited=!1},y.showAdIntervalMs);
return _.n(Z,y.adResolver.promise,2)}return Z.return(Z.yieldResult)})};
bf9.prototype.onAdFinished=function(y){y=aqW(y);var W;(W=this.adResolver)==null||W.resolve(y)};
var FfH=function(y,W,c){var Z;return _.m(function(G){if(G.nextAddress==1)G=_.n(G,(Z=y.playLogger)==null?void 0:nXH(Z,NyH(W),c),2);else{var D=G.return;var Y=new T5T;Y=_.MC(Y,1,2);G=D.call(G,Y)}return G})};var $9d=new _.Sm("INNERTUBE_MANAGER_TOKEN");var Kf6=function(){this.callbacks={}};
Kf6.prototype.initialize=function(y){var W=this;this.callbacks=y;window.youtubewebview?window.youtubewebview.onmessage=function(c){OfQ(W,c)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(c){OfQ(W,c)})};
var OfQ=function(y,W){if(W.data)try{var c=ytm(W.data);if(_.t9(_.um(c,1))!=null){var Z=gj0(_.RE(c,2));switch(_.RE(c,1)){case "yt-mini-app-load-audio-state":var G,D;(D=(G=y.callbacks).onAudioStateLoaded)==null||D.call(G,_.Ki(Z,sP(Z,Ux,1)));break;case "yt-mute-mini-app":var Y,u;(u=(Y=y.callbacks).onMuteMiniApp)==null||u.call(Y);break;case "yt-unmute-mini-app":var t,b;(b=(t=y.callbacks).onUnmuteMiniApp)==null||b.call(t);break;case "yt-playable-exit":var r,F;(F=(r=y.callbacks).onExit)==null||F.call(r);
break;case "yt-post-play-nonce":var K,l;(l=(K=y.callbacks).onPostPlayNonceReceived)==null||l.call(K,Nr(Z,2,Ux));break;case "yt-confirm-exit-mini-app":var N,P;(P=(N=y.callbacks).confirmExitMiniApp)==null||P.call(N);break;case "yt-confirm-exit-mini-app-edu":var V,Q;(Q=(V=y.callbacks).confirmExitMiniAppEdu)==null||Q.call(V);break;case "yt-benchmarking-response":var S,cy;(cy=(S=y.callbacks).onNativeBenchmarkingMessageReceived)==null||cy.call(S,Nr(Z,2,Ux));break;case "yt-mini-app-load-3p-consent-state":var M,
fa;(fa=(M=y.callbacks).multiplayer3pAckStateLoaded)==null||fa.call(M,_.Ki(Z,sP(Z,Ux,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var jI,sD;(sD=(jI=y.callbacks).exitMiniAppSeenStateLoaded)==null||sD.call(jI,_.Ki(Z,sP(Z,Ux,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var ED,N1;(N1=(ED=y.callbacks).onNavigateToNewMiniApp)==null||N1.call(ED);break;case "yt-game-data-available":var bf,Py;(Py=(bf=y.callbacks).onGameDataAvailable)==null||Py.call(bf,Nr(Z,2,Ux));break;case "yt-pause-mini-app":var WJ,
t5;(t5=(WJ=y.callbacks).onPauseMiniApp)==null||t5.call(WJ);break;case "yt-resume-mini-app":var xF,M3;(M3=(xF=y.callbacks).onResumeMiniApp)==null||M3.call(xF);break;case "yt-playable-ad-finished":var wS,f8;(f8=(wS=y.callbacks).onAdFinished)==null||f8.call(wS,Nr(Z,2,Ux))}}else _.Rs(Error("Sh"))}catch(eV){_.OP(Error("Th"))}else _.Rs(Error("Uh"))};var pHg=function(y){this.rpcErrorCode=y};var JX=function(y,W,c){this.intervalMs=y;this.apiFunc=W;this.type=c;this.schedulerReady=!0};
JX.prototype.call=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1){if(W.type!==1&&y===W.cachedValue)return Z.return();W.pendingApiRequestResolver||(W.pendingApiRequestResolver=new _.WK);c=W.pendingApiRequestResolver.promise;W.cachedValue=y;return _.n(Z,gXD(W),2)}return Z.return(c)})};
JX.prototype.flush=function(y){y=y===void 0?!1:y;var W=this;return _.m(function(c){return W.cachedValue===void 0?c.return():_.n(c,W.apiFunc(W.cachedValue,y),0)})};
var gXD=function(y){var W,c,Z;return _.m(function(G){switch(G.nextAddress){case 1:if(!y.schedulerReady||!y.pendingApiRequestResolver)return G.return();y.schedulerReady=!1;W=y.pendingApiRequestResolver;y.pendingApiRequestResolver=void 0;_.tm(G,2);if(y.cachedValue===void 0){G.jumpTo(4);break}return _.n(G,y.apiFunc(y.cachedValue),5);case 5:c=G.yieldResult,W.resolve(c);case 4:_.J6(G,3);break;case 2:Z=_.rs(G),W.reject(Z);case 3:setTimeout(function(){return _.m(function(D){y.schedulerReady=!0;return _.n(D,
gXD(y),0)})},y.intervalMs),_.F2(G)}})};var VWf=window.location.origin+"/miniapp_cloudsaves",PyI=[400,401],R0H=_.ey("cloud_save_game_data_rate_limit_ms",3E3),Nf9=function(y){var W=this;this.JSC$14633_miniAppId=y;this.loadAttempts=0;this.cloudSaveIntervalMs=R0H;this.initialDownloadDataSucceeded=!1;this.JSC$14633_playNonceResolver=new _.WK;this.scottyUploadRateLimiter=new JX(this.cloudSaveIntervalMs,function(c,Z){return l3Q(W,c,Z)},2);
this.downloadDataPromise=EXZ(this);this.downloadDataPromise.then(function(){W.initialDownloadDataSucceeded=!0}).catch(function(){})},I3S=function(y,W){W.then(function(c){return y.JSC$14633_playNonceResolver.resolve(c)})},pXS=function(y){return _.m(function(W){return y.cachedData===void 0?W.return(y.downloadDataPromise):W.return(y.cachedData)})},PFZ=function(y,W){return _.m(function(c){y.cachedData=W;
if(!y.initialDownloadDataSucceeded)throw Error("Vh");return _.n(c,y.scottyUploadRateLimiter.call(W),0)})},Jn6=function(){return new Promise(function(y){setTimeout(y,1E3,"")})},VQ3=function(y,W){var c,Z;
return _.m(function(G){if(G.nextAddress==1)return c=y.JSC$14633_miniAppId,_.n(G,Promise.race([y.JSC$14633_playNonceResolver.promise,Jn6()]),2);Z={"X-YouTube-MiniAppId":c,"X-YouTube-PostPlayNonce":G.yieldResult};"DELEGATED_SESSION_ID"in _.R8&&PNI(W,Z);return G.return(Z)})},l3Q=function(y,W,c){c=c===void 0?!1:c;
return _.m(function(Z){return IkF()?_.O("enable_cloud_save_error_popup_after_retry")?Z.return(new Promise(function(G,D){var Y,u,t,b,r;return _.m(function(F){switch(F.nextAddress){case 1:Y=0,u=!0,b=t=null;case 2:if(!(u&&Y++<2)){F.jumpTo(4);break}_.tm(F,5);return _.n(F,CF3(y,W,c),7);case 7:t=F.yieldResult;u=t.ok?!1:!PyI.includes(t.status);_.J6(F,2);break;case 5:b=r=_.rs(F);u=JpI(b);F.jumpTo(2);break;case 4:t?t.ok?(V5(y,R0H),G()):(V5(y,y.cloudSaveIntervalMs*2),D(Error("Wh`"+String(t.status),{cause:{rpcErrorCode:t.status}}))):
(V5(y,y.cloudSaveIntervalMs*2),D(b||Error("Xh"))),_.F2(F)}})})):Z.return(new Promise(function(G,D){var Y,u;
return _.m(function(t){if(t.nextAddress==1){if(y.JSC$14633_miniAppId==="")return D(Error("Yh")),t.return();_.tm(t,2);return _.n(t,CF3(y,W,c),4)}if(t.nextAddress!=2)return Y=t.yieldResult,Y.ok?(V5(y,R0H),G()):(V5(y,y.cloudSaveIntervalMs*2),D(Error("Wh`"+String(Y.status),{cause:{rpcErrorCode:Y.status}}))),_.J6(t,0);u=_.rs(t);V5(y,y.cloudSaveIntervalMs*2);D(u);_.F2(t)})})):Z.return()})},CF3=function(y,W,c){c=c===void 0?!1:c;
var Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return Z=_.OB((new TextEncoder).encode(W)),G=Cyy(),_.n(Y,VQ3(y,G),2);D=Y.yieldResult;return Y.return(fetch(G,{method:"POST",body:new Blob([Z]),headers:D,keepalive:c}))})},EXZ=function(y){var W,c;
return _.m(function(Z){if(Z.nextAddress==1){if(!IkF())return Z.return("");if(y.JSC$14633_miniAppId==="")throw Error("Yh");if(y.loadAttempts>2)return Z.return(y.downloadDataPromise);_.tm(Z,2);return _.n(Z,Q$Q(y),4)}if(Z.nextAddress!=2)return W=Z.yieldResult,Z.return(W);c=_.rs(Z);if(JpI(c)&&++y.loadAttempts<2)return Z.return(EXZ(y));throw c;})},Q$Q=function(y){var W,c,Z,G,D;
return _.m(function(Y){switch(Y.nextAddress){case 1:return _.tm(Y,2),W=Cyy(),_.n(Y,VQ3(y,W),4);case 4:return c=Y.yieldResult,_.n(Y,fetch(W,{method:"GET",headers:c}),5);case 5:return Z=Y.yieldResult,Z.ok?_.n(Y,Z.text(),6):Y.return(Promise.reject(Error("Zh`"+String(Z.status),{cause:new pHg(Z.status)})));case 6:return G=Y.yieldResult,Y.return((new TextDecoder).decode(_.cJ(G)));case 2:return D=_.rs(Y),Y.return(Promise.reject(D))}})},V5=function(y,W){y.cloudSaveIntervalMs=W;
y.scottyUploadRateLimiter.intervalMs=y.cloudSaveIntervalMs};
Nf9.prototype.flush=function(){var y=this;return _.m(function(W){return y.initialDownloadDataSucceeded?_.n(W,y.scottyUploadRateLimiter.flush(!0),0):W.return()})};var And=ME(iO(1),aY(1)),h03=ME(iO(1),aY(3)),CM=function(y){this.callbacks=y};
_.f=CM.prototype;_.f.onAudioToggled=function(y,W){(W===void 0||W)&&_.Wj("yt-mini-app-is-audio-enabled",y,2592E3)};
_.f.onPause=function(){this.onAudioToggled(!1,!1)};
_.f.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.f.returnNativeBenchmarkingMessage=function(){};
_.f.sendGameData=function(){};
_.f.sendStartGameFrameCapture=function(){};
var QkO=function(y,W,c){this.callbacks=y;var Z=this;this.sdkVersion=new _.WK;this.channel=new HaE(_.x6({destination:window,iframe:W,origin:(new URL(c.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var G=Q5;var D=iO(5);var Y=new yPT;Y=_.pi(Y,1,1E4);D=_.tn(D,4,zs0,Y);G(Z,D);Z.onAudioToggled(Z.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Z.sdkVersion.resolve("")},1E4)};
_.R(QkO,CM);_.f=QkO.prototype;_.f.onAudioToggled=function(y,W){CM.prototype.onAudioToggled.call(this,y,W===void 0?!0:W);W=Q5;var c=iO(2),Z=new k$i;y=_.GY(Z,1,y);y=_.tn(c,3,zs0,y);W(this,y)};
_.f.onPause=function(){CM.prototype.onPause.call(this);Q5(this,iO(3))};
_.f.onResume=function(){CM.prototype.onResume.call(this);Q5(this,iO(4))};
_.f.returnNativeBenchmarkingMessage=function(y){var W=Q5,c=iO(6);var Z=aY(_.tf(y,HM,1)?1:2);y=_.tf(y,HM,1)?y:null;Z=_.tn(Z,5,xH,y);W(this,ME(c,Z))};
_.f.sendGameData=function(y){var W=Q5,c=iO(7);y=_.tn(c,5,zs0,y);W(this,y)};
_.f.sendStartGameFrameCapture=function(){Q5(this,iO(9))};
var AX=function(y,W,c){var Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return Z=y.callbacks,G=Z.onSdkCalled,D=W,_.n(Y,y.sdkVersion.promise,2);G.call(Z,D,Y.yieldResult,c);_.F2(Y)})};
QkO.prototype.onMessage=function(){var y=this;return d1W(qE,function(W){var c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI,sD,ED,N1,bf,Py,WJ,t5,xF,M3,wS,f8,eV,N3,K8,PJ,cX,a$,oI,Zg,xW,dS,bE,EZ;return _.m(function(jV){switch(jV.nextAddress){case 1:if(!bdT(W.data))return _.Rs(Error("$h")),jV.return();c=_.lm(W.data,1);_.O("enable_iframe_message_get_type_via_fields")&&(Z=W.data,c=G=_.lm(Z,1));switch(c){case 8:if(W.data.hasMetadata()){var La=y.sdkVersion,sZ=La.resolve;var w2=W.data.getMetadata();w2=_.RE(w2,
1);sZ.call(La,w2);clearTimeout(y.sdkVersionTimeoutId)}break;case 6:return jV.jumpTo(2);case 16:if(!_.ni(W.data,mLW,14,kH))return jV.return();D=_.IE(W.data,mLW,14,kH);(u=(Y=y.callbacks).onGameFrameReceived)==null||u.call(Y,D);return jV.return();case 1:if(La=_.IE(W.data,Zd2,2,kH))switch(_.lm(La,1)){case 1:y.callbacks.onFirstFrameReady();if(_.O("enable_network_request_logging_on_game_events")&&_.tf(La,Se,4)){AX(y,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.il(La,Se,4));break}AX(y,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(w2=(sZ=y.callbacks).onGameReady)==null||w2.call(sZ);if(_.O("enable_network_request_logging_on_game_events")&&_.tf(La,Se,4)){AX(y,"MINI_APP_SDK_API_GAME_READY",_.il(La,Se,4));break}AX(y,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.ni(La,Tk,3,GuJ))y.callbacks.onResourceLoaded(_.IE(La,Tk,3,GuJ))}return jV.return();case 3:return jV.jumpTo(3);case 4:return jV.jumpTo(4);case 2:return jV.jumpTo(5);case 9:return jV.jumpTo(6);case 10:return y.callbacks.onClick(),jV.return();case 5:return jV.jumpTo(7);
case 11:if(!_.ni(W.data,L7,9,kH))return jV.return();t=_.IE(W.data,L7,9,kH);(r=(b=y.callbacks).onBenchmarkingMessageReceived)==null||r.call(b,t);La=W.reply;sZ=iO(1);w2=aY(1);var Z3=new L7;var J5=new Uint8Array(sdH(t,sP(t,iiE,6))|0);Z3=os(Z3,5,iiE,_.RV(J5,!1));w2=_.tn(w2,5,xH,Z3);La.call(W,ME(sZ,w2));return jV.return();case 12:return jV.jumpTo(8);case 13:return jV.jumpTo(9);case 15:if(!_.O("enable_open_yt_content"))return W.reply(h03),jV.return();if(!_.ni(W.data,Yf5,12,kH))return W.reply(ME(iO(1),aY(2))),
jV.return();La=_.IE(W.data,Yf5,12,kH);F=_.RE(La,1);y.callbacks.onOpenYTContent(F);W.reply(And);return jV.return();case 14:return jV.jumpTo(10);default:return jV.return()}jV.jumpTo(0);break;case 2:if(!_.ni(W.data,ee,5,kH))return jV.return();sZ=W.data;La=sP(sZ,kH,5);sZ=sZ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(La=K6h(sZ,sZ[_.mQ]|0,ee,La))||(La=ee[J5O])||(La=new ee,n8(La.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),La=ee[J5O]=La);K=La;La=_.wQ(K,v_,1,_.ky());l=_.z(La);N=l.next();
case 12:if(N.done){jV.jumpTo(14);break}P=N.value;V=new _.ul;V.level=_.lm(P,2)===1?"WARNING":"ERROR";Q=hcO(P.getSource());return _.n(jV,y.sdkVersion.promise,15);case 15:S={source:Q,sdkVersion:jV.yieldResult};_.kW(_.um(P,6))!=null?(V.message=P.getMessage(),V.stack=_.RE(P,5),S.sdkErrorType=ByH(_.lm(P,6)),_.kW(_.um(P,7))!=null&&(S.sdkApi=HbE(_.lm(P,7)))):V.stack=void 0;M=cy=void 0;(M=(cy=y.callbacks).onError)==null||M.call(cy,{loggingError:V,metadata:S});N=l.next();jV.jumpTo(12);break;case 14:return jV.return();
case 3:return _.tm(jV,16),La=y.callbacks,sZ=La.onSave,w2=_.IE(W.data,j_V,4,kH),w2=_.RE(w2,1),_.n(jV,sZ.call(La,w2),18);case 18:W.reply(And);_.J6(jV,17);break;case 16:return fa=_.rs(jV),jI=BE,sD=fa,ED=y.callbacks,N1="MINI_APP_SDK_API_SAVE_DATA",_.n(jV,y.sdkVersion.promise,19);case 19:jI(sD,ED,N1,jV.yieldResult),W.reply(h03);case 17:return _.n(jV,AX(y,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return jV.return();case 4:return _.tm(jV,21),_.n(jV,y.callbacks.onLoad(),23);case 23:bf=jV.yieldResult;La=W.reply;
sZ=iO(1);w2=aY(1);Z3=new j_V;Z3=_.Ub(Z3,1,bf);w2=_.tn(w2,3,xH,Z3);La.call(W,ME(sZ,w2));_.J6(jV,22);break;case 21:return Py=_.rs(jV),WJ=BE,t5=Py,xF=y.callbacks,M3="MINI_APP_SDK_API_LOAD_DATA",_.n(jV,y.sdkVersion.promise,24);case 24:WJ(t5,xF,M3,jV.yieldResult),W.reply(h03);case 22:return _.n(jV,AX(y,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return jV.return();case 5:_.tm(jV,26);y.callbacks.onSendHighScore(Ie(_.IE(W.data,n_T,3,kH).getValue()));W.reply(ME(iO(1),aY(1)));_.J6(jV,27);break;case 26:return wS=
_.rs(jV),f8=BE,eV=wS,N3=y.callbacks,K8="MINI_APP_SDK_API_SEND_SCORE",_.n(jV,y.sdkVersion.promise,28);case 28:f8(eV,N3,K8,jV.yieldResult),W.reply(h03);case 27:return _.n(jV,AX(y,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return jV.return();case 6:if(!_.ni(W.data,XM5,8,kH)){jV.jumpTo(30);break}La=_.IE(W.data,XM5,8,kH);La=_.lm(La,1);return _.n(jV,AX(y,HbE(La)),30);case 30:return jV.return();case 7:return La=W.reply,sZ=iO(1),w2=aY(1),Z3=y.callbacks.getLanguage(),w2=os(w2,4,xH,u9(Z3)),La.call(W,ME(sZ,
w2)),_.n(jV,AX(y,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return jV.return();case 8:if(!_.ni(W.data,t2m,10,kH))return jV.return();PJ=_.IE(W.data,t2m,10,kH);cX=y.callbacks;a$=cX.onSdkPerformanceUpdate;return _.n(jV,y.sdkVersion.promise,33);case 33:return a$.call(cX,PJ,jV.yieldResult),jV.return();case 9:La=W.data;sZ=sP(La,kH,11);if(_.t9(_.um(La,sZ))==null)return W.reply(ME(iO(1),aY(2))),jV.return();oI=Nr(W.data,11,kH);y.callbacks.onShareInviteCode(oI);W.reply(And);return _.n(jV,AX(y,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return jV.return();case 10:if(_.ni(W.data,q2V,13,kH)){jV.jumpTo(35);break}return _.n(jV,y.callbacks.onShowMiniAppAd(2),36);case 36:return Zg=jV.yieldResult,W.reply(ME(iO(1),o_m(Zg))),_.n(jV,AX(y,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return jV.return();case 35:La=_.IE(W.data,q2V,13,kH);a:switch(_.lm(La,1)){case 1:La={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:La={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:La={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}xW=
La;dS=xW.adType;bE=xW.sdkApi;La=y.callbacks;sZ=La.onShowMiniAppAd;w2=_.IE(W.data,q2V,13,kH);w2=_.RE(w2,2);return _.n(jV,sZ.call(La,dS,w2||void 0),38);case 38:return EZ=jV.yieldResult,W.reply(ME(iO(1),o_m(EZ))),_.n(jV,AX(y,bE),39);case 39:return jV.return()}})})};
var Q5=function(y,W){_.m(function(c){y.channel.send(W);_.F2(c)})},HE=function(y,W,c){this.callbacks=y;
var Z=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;y=PFh(W,(new URL(c.toString())).origin);this.gameSnacks=new WQ0(y);this.gameSnacks.page.onReady(function(){Z.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Z.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var G,D;(D=(G=Z.callbacks).onGameReady)==null||D.call(G)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(G,D){try{Z.callbacks.onSendHighScore(D)}catch(Y){BE(Y,Z.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(G,D){var Y;return _.m(function(u){if(u.nextAddress==1)return _.tm(u,2),_.n(u,Z.callbacks.onSave(Z.decoder.decode(D)),4);if(u.nextAddress!=2)return _.J6(u,0);Y=_.rs(u);BE(Y,Z.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return u.return()})});
this.gameSnacks.storage.onLoad(function(){var G,D;return _.m(function(Y){if(Y.nextAddress==1)return _.tm(Y,2),_.n(Y,Z.callbacks.onLoad(),4);if(Y.nextAddress!=2)return G=Y.yieldResult,Y.return(Z.encoder.encode(G));D=_.rs(Y);BE(D,Z.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Y.return(Z.encoder.encode(""))})});
this.gameSnacks.init()};
_.R(HE,CM);HE.prototype.onAudioToggled=function(y,W){CM.prototype.onAudioToggled.call(this,y,W===void 0?!0:W);var c;(c=this.gameSnacks)==null||c.audio.update(y)};
HE.prototype.onPause=function(){CM.prototype.onPause.call(this);if(_.O("enable_gamesnacks_pause_resume_bugfix")){var y;(y=this.gameSnacks)==null||y.game.pause()}};
HE.prototype.onResume=function(){CM.prototype.onResume.call(this);if(_.O("enable_gamesnacks_pause_resume_bugfix")){var y;(y=this.gameSnacks)==null||y.game.resume()}};var BfQ=LJt,Hf9=_.Ax(function(y){var W=y.data;var c=y.loadingProgress;y=_.z(_.G9("",void 0,"LYYTdd"));var Z=y.next().value,G=y.next().value;y=_.z(_.G9(!1,void 0,"K0waae"));var D=y.next().value,Y=y.next().value,u=[],t=function(){return"transform: scaleX("+(_.gV(c)||0)+")"},b=null,r=function(){var N;
return(N=W()&&b)!=null?N:b=W().showAnniversaryAnimation?6:BfQ()};
_.$k(function(){var N;if(W().timeOutMessages&&((N=W().timeOutMessages)==null?0:N.length)){b=null;N=_.z(u);for(var P=N.next();!P.done;P=N.next())clearTimeout(P.value);u.length=0;vcE(W().timeOutMessages,u,G,Y)}});
var F=function(){return!!W().persistentErrorMessageTitle},K=function(){return c!==void 0},l=function(){return W().title};
return _.X("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.X("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.X("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var N,P=(N=W().backgroundImage)==null?void 0:N.sources,V;return(P==null?0:P.length)?"background-image: url("+((V=P[0])==null?void 0:V.url)+")":
""}}),_.X("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.X(_.YN,{cond:function(){return!F()},
then:function(){var N={};return _.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.X(_.el,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+r()},
data:function(){var P="loading_animation_"+r();return{animationConfig:{name:P,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+P+".json",loop:!0,autoplay:!0}}}})),_.X("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.X(_.YN,{cond:l,
then:function(){return _.X("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},l)}}),_.X("p",{class:_.Mi("mini-app-splash-screen-view-model-wiz__timeout-message",(N["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return D()},N)),
"aria-live":"polite"},Z),_.X(_.YN,{cond:K,then:function(){return _.X("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.X("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:t}))}})))}}),_.X(_.YN,{cond:F,
then:function(){return _.X("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.X("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return W().persistentErrorMessageTitle}),_.X(_.YN,{cond:function(){return!!W().persistentErrorMessageDescription},
then:function(){return _.X("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return W().persistentErrorMessageDescription})}}))}})))},"od");var Lf9=new _.Sm("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var vXd=Ha;Ha=function(y){function W(c){if(c){var Z,G;(Z=c.__spec)==null||(G=Z.didUnmount)==null||G.call(Z);for(Z=0;Z<c.childNodes.length;Z++)W(c.childNodes[Z])}}
vXd==null||vXd(y);sH(function(){for(var c=0;c<y.length;c++)W(y[c])})};var d9Q=_.Ax(function(y){var W=y.data;var c=y.score;var Z=y.formattedScore;var G=y.onScoreChanged;var D=y.isEmbeddedInWebview;var Y=_.LD(),u=function(){var l;return _.g(W==null?void 0:(l=W())==null?void 0:l.buttonViewModel,_.ri)},t=function(){var l;
return(c==null?void 0:c())||Number(W==null?void 0:(l=W())==null?void 0:l.lastScore)||0},b=function(){var l;
return(Z==null?void 0:Z())||((l=u())==null?void 0:l.title)||""},r,F=1;
if(y=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))y=Number(y),F=isNaN(y)?1:y/100;_.$k(function(){G==null||G(t());var l;var N=_.UH((l=u())==null?void 0:l.onTap);if(N){l=_.g(N,NFV);var P,V,Q;l=_.g(l==null?void 0:(P=l.panelLoadingStrategy)==null?void 0:(V=P.inlineContent)==null?void 0:(Q=V.dialogViewModel)==null?void 0:Q.customContent,JJ0)}else l=void 0;if(P=l)P.score=b()});
y=_.j9(function(){var l,N,P=W==null?void 0:(l=W())==null?void 0:(N=l.loggingDirectives)==null?void 0:N.trackingParams;P&&_.yk(_.U().resolve(_.oZ),P);return!1});
_.rj(function(){if(Y.value){var l=Y.value.querySelector("button"),N=u();l&&N&&dbE(l,N);as("yt-share-playable-with-high-score",function(){var P=t().toString(),V=W==null?void 0:W().onShareHighScoreCommand,Q=W==null?void 0:W().highScoreShareClientParamIdentifier,S=D==null?void 0:D();V&&(S?(Q=new bH5,P=_.Ub(Q,2,P),hD(V,P.JSC$10114_serializeBinary())):Q&&(_.U().resolve(Lf9).clientParams.set(Q,{miniAppClientParams:{highScore:P}}),RcH(V,!1)))})}});
var K=function(){var l=u();l&&(c==null?0:c())&&l.accessibilityText&&(l.accessibilityText=l.accessibilityText.replace(r,b()));r=b();return{numberValue:t(),numberText:b(),heightPx:36,fontSizeMultiplier:F,shouldAnimate:!(c==null||!c())&&!0}};
return _.X("yt-mini-app-score-button-view-model",{class:function(){var l={};return _.wZ("mini-app-score-button-view-model-wiz",(l["mini-app-score-button-view-model-wiz--is-visible"]=t()!==0,l))},
el:Y,"on:click":y},_.TY(!1,function(){return _.X("span",{style:"display:none;"},t)}),_.X(_.bg,{data:function(){var l;
return W==null?void 0:(l=W())==null?void 0:l.buttonViewModel}},{buttonViewModel:function(l){return _.X(_.OV,{data:l.data,
animatedTextProps:K})}}))},"pd");var ifH=_.Ax(function(y){var W,c=(W=_.cj("yt-mini-app-is-theater-mode-enabled"))!=null?W:!1,Z=_.O("enable_playable_container_save_button"),G=_.O("enable_play_next_destination_page_in_toolbar");W={};return _.X("ytm-mini-app-top-bar-view-model",null,_.X("div",{class:_.Mi("yt-mini-app-top-bar-view-model",(W["yt-mini-app-top-bar-view-model--mobile"]=!1,W["yt-mini-app-top-bar-view-model--desktop"]=!0,W))},_.X("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.X(_.YN,{cond:function(){var D;
return!!y.data().backButtonEdu&&!((D=y.isExitMiniAppSeen)==null?0:D.call(y))},
then:function(){return _.X(_.bg,{data:function(){return y.data().backButtonEdu}},{buttonViewModel:_.OV})},
else:function(){return _.X(_.bg,{data:function(){return y.data().backButton}},{buttonViewModel:_.OV})}}),_.X(_.YN,{cond:function(){return y.data().viewAllButton&&!0},
then:function(){return _.X(_.bg,{data:function(){return y.data().viewAllButton}},{buttonViewModel:_.OV})}}),_.X(_.YN,{cond:function(){return y.data().title&&!0},
then:function(){return _.X("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return y.data().title})}})),_.X("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.X(_.YN,{cond:function(){var D;
return(D=y.isDesktopPlayPage)==null?void 0:D.call(y)},
then:function(){return _.X(_.a2,null,_.X(S3g,{highScoreButton:function(){return y.data().highScoreButton},
score:y.score,formattedScore:y.formattedScore,onScoreChanged:y.onScoreChanged,isEmbeddedInWebview:y.isEmbeddedInWebview}),_.X(TfH,{enableSaveButton:function(){return _.gV(Z)},
saveButton:function(){return y.data().saveButton},
isSaved:y.isSaved,onSaveToggled:function(){return y.onSaveToggled}}),_.X(a3B,{menuButton:function(){return y.data().menuButton}}))},
else:function(){return _.X(_.YN,{cond:function(){return!1},
then:function(){return _.X(_.bg,{data:function(){return y.data().playPageButton}},{buttonViewModel:function(D){return _.X(_.OV,{data:D.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.X(S3g,{highScoreButton:function(){return y.data().highScoreButton},
score:y.score,formattedScore:y.formattedScore,onScoreChanged:y.onScoreChanged,isEmbeddedInWebview:y.isEmbeddedInWebview})}})}})),_.X("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.X(_.bg,{data:function(){return y.data().muteButton}},{toggleButtonViewModel:function(D){var Y=D.data;
return _.X(_.UV,{data:function(){var u,t;return Object.assign({},Y(),{isToggled:(t=(u=y.isAudioEnabled)==null?void 0:u.call(y))!=null?t:!0})},
onToggle:y.onAudioToggled,useOutlinedIcon:!0})}}),_.X(_.bg,{data:function(){return y.data().theatreModeButton}},{toggleButtonViewModel:function(D){var Y=D.data;
return _.X("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.X(_.UV,{data:function(){return Object.assign({},Y(),{isToggled:c})},
useOutlinedIcon:!0}))}}),_.X(x9d,{fullscreenButton:function(){return y.data().fullscreenButton}}),_.X(_.YN,{cond:function(){return _.gV(G)&&y.data().viewAllButton&&!1},
then:function(){return _.X(_.bg,{data:function(){return y.data().viewAllButton}},{buttonViewModel:_.OV})}}),_.X(_.YN,{cond:function(){var D;
return!((D=y.isDesktopPlayPage)==null?0:D.call(y))},
then:function(){return _.X(_.a2,null,_.X(TfH,{enableSaveButton:function(){return _.gV(Z)},
saveButton:function(){return y.data().saveButton},
isSaved:y.isSaved,onSaveToggled:function(){return y.onSaveToggled}}),_.X(a3B,{menuButton:function(){return y.data().menuButton}}))}}))))},"qd");
ifH.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var a3B=_.Ax(function(y){return _.X("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.X(_.bg,{data:y.menuButton},{buttonViewModel:_.OV}))},"rd"),TfH=_.Ax(function(y){var W=y.enableSaveButton;
var c=y.saveButton;var Z=y.isSaved;var G=y.onSaveToggled;return _.X(_.YN,{cond:function(){return W()&&!(c==null||!c())},
then:function(){return _.X("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.X(_.bg,{data:function(){var D=_.g(c==null?void 0:c(),_.F5),Y;return{toggleButtonViewModel:Object.assign({},D,{isToggled:(Y=Z==null?void 0:Z())!=null?Y:!(D==null||!D.isToggled)})}}},{toggleButtonViewModel:function(D){return _.X(_.UV,{data:D.data,
onToggle:G})}}))}})},"sd"),S3g=_.Ax(function(y){var W=y.highScoreButton;
var c=y.score;var Z=y.formattedScore;var G=y.onScoreChanged;var D=y.isEmbeddedInWebview;return _.X(_.bg,{data:W},{miniAppScoreButtonViewModel:function(Y){return _.X("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.X(d9Q,{data:Y.data,score:c,formattedScore:Z,onScoreChanged:G,isEmbeddedInWebview:D}))}})},"td"),x9d=_.Ax(function(y){y=y.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.X(_.a2,null):_.X(_.bg,{data:y},{buttonViewModel:_.OV})},"ud");_.MQB=new _.Sm("DESKTOP_CURRENT_PAGE");var ymH=_.Ax(function(y){var W=y.data;var c=_.O("force_active_time_logging_webview"),Z=_.O("skip_logs_after_end_event"),G=!1,D=new Kf6,Y=void 0,u=void 0,t=_.U().resolve($9d),b=new bf9,r=void 0,F=void 0,K=[],l=void 0,N=void 0,P=!1,V=!1,Q=!1,S=!1,cy=new _.WK,M=_.U().resolve(Lf9),fa=_.U().resolve(_.Ic),jI=_.U().resolve(_.xN(ZZ)),sD,ED=(sD=_.U().resolve(_.xN(_.MQB)))==null?void 0:sD.getCurrentPage(),N1=!1,bf=0,Py=function(vy){vy.preventDefault();return vy.returnValue=""},WJ;
y=_.z(_.G9(!((WJ=_.cj("yt-mini-app-is-audio-enabled"))!=null&&!WJ),void 0,"HKETIe"));var t5=y.next().value,xF=y.next().value,M3;WJ=_.z(_.G9(!((M3=_.cj("exit-mini-app-seen-state"))==null||!M3),void 0,"YikM9"));var wS=WJ.next().value,f8=WJ.next().value;M3=_.z(_.G9(!1,void 0,"iTNqCb"));var eV=M3.next().value,N3=M3.next().value;M3=_.z(_.G9(void 0,void 0,"bU3Vbf"));var K8=M3.next().value,PJ=M3.next().value;M3=_.z(_.G9(void 0,void 0,"qd4Zt"));var cX=M3.next().value,a$=M3.next().value;M3=_.z(_.G9(!0,void 0,
"Cqc83e"));var oI=M3.next().value,Zg=M3.next().value;M3=_.z(_.G9(!1,void 0,"oHovIe"));var xW=M3.next().value,dS=M3.next().value;M3=_.z(_.G9(void 0,void 0,"aeN11"));var bE=M3.next().value,EZ=M3.next().value;M3=_.z(_.G9(0,void 0,"AEGRyb"));var jV=M3.next().value,La=M3.next().value,sZ=_.HO(),w2=function(){return W().isEmbeddedInWebview},Z3=function(){return W().hasPlayNextShelf};
as("yt-page-type-changed",function(vy){if(_.O("enable_is_mini_app_page_active_bugfix"))vy.detail.newPageSubtype!=="mini_app"&&oI()&&E3();else if(vy=_.wD1()==="mini_app",vy!==oI())if(Zg(vy),vy){var nQ;vy=(nQ=W().playableId)==null?void 0:nQ.toString();vy!==void 0&&window.location.href.includes(vy)&&!V&&(S=!0,J5(),qg($W.value))}else vy||E3()});
as("yt-action",function(vy){vy.detail.actionName==="yt-engagement-panel-visible-changed"&&vy.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&vy.detail.args[2]==="PAmini_app_panel"&&E3();_.O("enable_is_mini_app_page_active_bugfix")?vy.detail.actionName==="yt-history-load"&&!oI()&&(ED==null?0:ED.active)?(Zg(!0),J5(),qg($W.value)):vy.detail.actionName==="yt-history-load"&&oI()&&!W().isEmbeddedInWebview&&iM():oI()&&vy.detail.actionName==="yt-history-load"&&(S?S=!1:W().isEmbeddedInWebview||iM())});
_.KL(function(){B3()});
_.$k(function(){J5()});
var J5=function(){var vy=W().playableId,nQ=W().localReleaseId,FM=W().derivedDeviceInterface;if(V)_.Rs(new _.ul("[MiniAppContainerViewModel] onEnter was called more than once"));else{V=!0;Y=new ZfB(vy,nQ,FM,document.visibilityState==="visible");D9B(Y);u=new Nf9(vy);e0H(t,vy);rnB(b,{showMiniAppAdCommand:W().showMiniAppAdCommand,isEmbeddedInWebview:W().isEmbeddedInWebview,playLogger:Y});X$F()&&(N=document.body.style.backgroundColor,_.Vy(document.body,"background-color","black"));eb();Ti();cy=new _.WK;
if(W().isEmbeddedInWebview){if(vy=(new URLSearchParams(window.location.search)).get("postPlayNonce"))f3B(Y,vy),N1=!0;D.initialize({onAudioStateLoaded:function(SD){JS(SD)},
onMuteMiniApp:function(){JS(!1)},
onUnmuteMiniApp:function(){JS(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(SD){N1||(f3B(Y,SD),N1=!0)},
confirmExitMiniApp:function(){var SD,Ga,fP;return _.m(function(R$){if(R$.nextAddress==1)return W().confirmExitMiniAppCommand?_.n(R$,Promise.race([cy.promise,Promise.resolve(!1)]),2):R$.return();(SD=R$.yieldResult)?!W().confirmExitMiniAppCommandEdu||(fP=(Ga=wS)==null?void 0:Ga())!=null&&fP?Z_(W().confirmExitMiniAppCommand):(Z_(W().confirmExitMiniAppCommandEdu),_.Wj("exit-mini-app-seen-state","true",2592E6)):Z_(W().closeMiniAppCommand);_.F2(R$)})},
onNativeBenchmarkingMessageReceived:function(SD){SD=eJm(_.KGa(SD));if(_.ni(SD,_.AD,3,xr8)){var Ga=_.IE(SD,_.AD,3,xr8),fP=lkF();var R$=Ie(fP.getSeconds())-Ie(Ga.getSeconds());Ga=_.jZ(fP,2)-_.jZ(Ga,2);R$<0&&Ga>0?(R$+=1,Ga-=1E9):R$>0&&Ga<0&&(--R$,Ga+=1E9);R$=(new HM).setSeconds(R$);R$=_.LQ(R$,2,_.jD(Ga),0);_.uF(SD,1,R$)}var we;(we=F)==null||we.returnNativeBenchmarkingMessage(SD)},
multiplayer3pAckStateLoaded:function(SD){iM(SD)},
exitMiniAppSeenStateLoaded:function(SD){W().confirmExitMiniAppCommandEdu&&f8(SD)},
onNavigateToNewMiniApp:function(){Z_(W().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(SD){SD=new URLSearchParams(SD);var Ga=void 0;SD.has("invite_code")&&(Ga=new cPi,SD=SD.get("invite_code"),Ga=_.Ub(Ga,1,SD));if(SD=Ga){var fP;(fP=F)==null||fP.sendGameData(SD)}},
onPauseMiniApp:function(){G=!0;T7()},
onResumeMiniApp:function(){G=!0;YX()},
onAdFinished:function(SD){b.onAdFinished(SD)}});
W().showMultiplayer3pConsentDialogCommand||cy.resolve(!0);Z_(W().onContainerReadyCommand)}else f3B(Y),cy.resolve(!0);I3S(u,GeQ(Y));GeQ(Y).then(function(SD){SD={miniAppPlayData:{postPlayNonce:SD}};var Ga,fP=(Ga=W().loggingDirectives)==null?void 0:Ga.trackingParams;fP&&_.Zz().stateChanged(fP,SD)});
vy=W().showSignInDialogCommand;!IkF()&&vy&&(_.Wj("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Z_(vy));W().confirmExitMiniAppCommand&&jI&&(vy=ObH(W().confirmExitMiniAppCommand))&&(jI.customConfirmationCommand=vy)}},B3=function(){if(!Z||V)N&&_.Vy(document.body,"background-color",N),P=!1,l&&l.release(),u.flush().catch(function(vy){_.Rs(vy)}),t.flush().catch(function(vy){_.Rs(vy)}),Y3H(Y),q9(),F=void 0,Z&&(V=!1),wX6(M)},E3=function(){Zg(!1);
B3();N3(!1);EZ(void 0);PJ(void 0);a$(void 0);bf=0;La(0);Z||(V=!1)},T7=function(){var vy;
(vy=F)==null||vy.onPause();l&&l.release();u.flush().catch(function(nQ){_.Rs(nQ)});
t.flush().catch(function(nQ){_.Rs(nQ)});
z0H(Y)},YX=function(){var vy;
(vy=F)==null||vy.onResume();Ti();vy=Y;vy.isForeground=!0;P9(vy,"PLAY_EVENT_TYPE_PLAY_RESUME")},JS=function(vy){var nQ;
(nQ=F)==null||nQ.onAudioToggled(vy);xF(vy)},iM=function(vy){W().showMultiplayer3pConsentDialogCommand&&(W().isEmbeddedInWebview&&vy!==void 0&&cy.resolve(vy),!vy&&_.wD1()==="mini_app"&&Z_(W().showMultiplayer3pConsentDialogCommand))},lG=function(){var vy,nQ,FM,SD;
return _.m(function(Ga){if(Ga.nextAddress==1){if(Z&&!V)return Ga.return();!W().isLivestream||W().disableVideoCapture||(vy=F)!=null&&vy.sendStartGameFrameCapture();nQ=(new URL(window.location.href)).searchParams;if(nQ.has("invite_code")){var fP=new cPi,R$=nQ.get("invite_code");FM=_.Ub(fP,1,R$);(SD=F)==null||SD.sendGameData(FM)}eV()||(N3(!0),fP=Y,fP.state!==1?_.Rs(new _.ul("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Wf6[fP.state])):(_.qn("mini_app_ids_without_game_ready").includes(fP.JSC$14589_miniAppId)&&
(fP.gameReady=!0),fP.state=2,fP.beforeReady=!1,pM(fP,"ma_ffr"),P9(fP,"PLAY_EVENT_TYPE_PLAY_READY")));return _.n(Ga,cy.promise,2)}Z_(W().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();W().isEmbeddedInWebview||iM();_.F2(Ga)})},a8=function(){var vy=Y;
vy.gameReady=!0;pM(vy,"ma_gr")},OE=function(vy){var nQ;
return _.m(function(FM){if(FM.nextAddress==1)return _.tm(FM,2),_.n(FM,PFZ(u,vy),4);if(FM.nextAddress!=2)return _.J6(FM,0);nQ=_.rs(FM);Z_(W().showSavingErrorPopupCommand);throw nQ;})},$X=function(){var vy,nQ;
return _.m(function(FM){if(FM.nextAddress==1)return _.tm(FM,2),_.n(FM,pXS(u),4);if(FM.nextAddress!=2)return vy=FM.yieldResult,FM.return(vy);nQ=_.rs(FM);Z_(W().showLoadingErrorDialogCommand);throw nQ;})},WQ=function(vy){Y.logError(vy)},MR=function(vy,nQ,FM){s$Q(Y,vy,nQ,FM)},gj=function(vy,nQ){tQ9(Y,vy,nQ)},v7=function(){!c&&W().isEmbeddedInWebview||_.iz();
m99(Y,!0);P||(window.addEventListener("beforeunload",Py,{capture:!0}),P=!0)},XF=function(vy){var nQ,FM,SD,Ga,fP,R$,we;
return _.m(function(qv){if(qv.nextAddress==1)return t&&(!r||r<vy)&&vy>0?_.n(qv,q33(t,vy),3):qv.jumpTo(0);nQ=qv.yieldResult;FM=_.z(nQ);SD=FM.next().value;Ga=FM.next().value;fP=SD;R$=Ga;((we=fP)==null?0:we.displayString)&&R$&&(PJ(R$),a$(fP.displayString));_.F2(qv)})},dX=function(vy){var nQ=W().onBenchmarkingMessageReceivedCommand;
if(nQ){var FM=lkF();_.tn(vy,3,xr8,FM);hD(nQ,wNW(vy))}},rg=function(vy){var nQ=W().onGameFrameReceivedCommand;
if(nQ){var FM=new IY5;var SD=new lYm;var Ga=O2(vy,1);SD=_.tc(SD,1,Ga);vy=_.RE(vy,2);vy=_.Ub(SD,2,vy);FM=_.uF(FM,2,vy);hD(nQ,Pp0(FM))}},JH=function(){var vy=new URLSearchParams(window.location.search);
if(W().isEmbeddedInWebview&&vy&&vy.get("override_hl")==="true"&&vy.get("hl"))return vy.get("hl");vy=document.documentElement.lang;return vy!==""?vy:_.Vl},hH=function(vy){var nQ=W().onShareInviteCodeCommand;
if(nQ)if(W().isEmbeddedInWebview){var FM=new bH5;vy=_.Ub(FM,1,vy);hD(nQ,F_V(vy))}else FM=W().inviteCodeShareClientParamIdentifier,M.clientParams.set(FM,{miniAppClientParams:{inviteCode:vy}}),Z_(nQ)},Xm=function(vy){var nQ,FM,SD;
return _.m(function(Ga){if(Ga.nextAddress==1)return nQ=W().onMiniAppOpenYtContentRequested,t&&_.O("enable_open_yt_content")&&nQ?_.n(Ga,ke9(t,vy),3):Ga.jumpTo(0);FM=Ga.yieldResult;if(FM==="OK")if(W().isEmbeddedInWebview){var fP=new KA3;SD=os(fP,2,Ux,u9(vy));hD(nQ,RFE(SD))}else fa.clientData.set("video_id",vy),Z_(nQ);_.F2(Ga)})},Gf=function(vy){bf+=_.jZ(vy,3);
vy=Math.min(Math.log(1+bf/15E6*9)/Math.log(10),.99);La(vy);Gi(vy)},Gi=_.u5(function(vy){var nQ=W().updateLoadingProgressCommand;
if(nQ){var FM=new KA3;vy=os(FM,3,Ux,_.SV(vy));hD(nQ,RFE(vy))}},100),zi=function(vy){return U96(b,vy)},Ti=function(){var vy,nQ;
((vy=_.q_F())==null?void 0:(nQ=vy.wakeLock)==null?void 0:nQ.request)!=null&&_.q_F().wakeLock.request("screen").then(function(FM){l=FM}).catch(function(){})},$W=_.HO();
_.$k(function(){W().isSupportedCountry&&(IkF()||_.O("enable_sign_in_promo")||!W().showSignInDialogCommand?qg($W.value):Z_(W().onMiniAppReadyCommand))});
var Kf=function(){return _.X("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return eV()?0:-1},
el:$W})},qg=function(vy,nQ){nQ=nQ===void 0?!1:nQ;
var FM=lE();FM&&(nQ||FM.toString()!==vy.getAttribute("src"))&&(F=Apw(W().source,{isAudioEnabled:t5,onFirstFrameReady:lG,onGameReady:a8,onSave:OE,onLoad:$X,onError:WQ,onSdkCalled:MR,onSdkPerformanceUpdate:gj,onClick:v7,onSendHighScore:XF,onBenchmarkingMessageReceived:dX,getLanguage:JH,onShareInviteCode:hH,onResourceLoaded:Gf,onOpenYTContent:Xm,onShowMiniAppAd:zi,onGameFrameReceived:rg},vy,FM),fN(vy,"load",function(){pM(Y,"ma_il");fN(vy,"load",function(){qg(vy,!0)})}),_.df(vy,FM))},lE=function(){var vy=
W().url;
if(vy&&(vy=_.OW(vy),vy!==null)){if(W().source&&W().source==="MINI_APP_SOURCE_GAMESNACKS")vy=_.of(vy,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.O("enable_origin_query_parameter_bugfix")){var nQ=_.O9(_.GXI(vy.toString()));nQ=new URLSearchParams(nQ||"");nQ.set("origin",window.location.origin);nQ=nQ.toString();vy=_.U3(vy).toString();vy=_.rf(BS0.exec(vy)[0]+(nQ.trim()?"#"+nQ:""))}return vy}},oN=function(){var vy={};
vy=_.Mi("yt-mini-app-container-view-model__loading-screen",(vy["yt-mini-app-container-view-model__loading-screen--fade-out"]=eV,vy));var nQ=function(){return eV()?1:jV()};
return _.X("div",{class:vy},_.X(_.bg,{data:function(){return W().splashScreen}},{miniAppSplashScreenViewModel:function(FM){return _.X(Hf9,{data:FM.data,
loadingProgress:nQ})}}))},eb=function(){K=[];
K.push(_.Y0(window,"visibilitychange",function(){Q||G&&w2()||(document.visibilityState==="visible"?YX():T7())}));
K.push(_.Y0(window,"pagehide",function(){B3()}));
K.push(_.Y0(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&sZ.value.dispatchEvent(new Event("tap"))},0)}));
K.push(_.Y0(sZ.value,"pointerdown",function(){m99(Y,!1)},!0));
K.push(_.Y0(sZ.value,"pause",function(){Q=!0;T7()}));
K.push(_.Y0(sZ.value,"play",function(){Q=!1;YX()}));
K.push(_.Y0(sZ.value,"exit",function(){B3()}));
var vy=navigator.keyboard,nQ=vy&&vy.lock;K.push(_.Y0(window,XQE,function(){dS(rxW());rxW()?(W().hasPlayNextShelf&&I3("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),bz("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),nQ&&vy.lock(["Escape"])):(W().hasPlayNextShelf&&bz("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),I3("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),nQ&&vy.unlock())}));
W().showMultiplayer3pConsentDialogCommand&&K.push(_.Y0(window,"yt-playables-ack-3p-data-usage",function(){jQf(t)}));
W().confirmExitMiniAppCommandEdu&&K.push(_.Y0(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Wj("exit-mini-app-seen-state","true",2592E6)}))},q9=function(){K.forEach(function(vy){o9(vy)});
window.removeEventListener("beforeunload",Py,{capture:!0})},Z_=function(vy){vy&&RcH(vy,W().isEmbeddedInWebview||!1)},bz=function(vy,nQ){vy=_.z(sZ.value.getElementsByClassName(vy));
for(var FM=vy.next();!FM.done;FM=vy.next())FM.value.classList.add(nQ)},I3=function(vy,nQ){vy=_.z(sZ.value.getElementsByClassName(vy));
for(var FM=vy.next();!FM.done;FM=vy.next())FM.value.classList.remove(nQ)};
return function(){var vy={};vy=_.Mi("yt-mini-app-container-view-model",(vy["yt-mini-app-container-view-model--desktop"]=!0,vy["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},vy["yt-mini-app-container-view-model--ios-web-view"]=X$F(),vy["yt-mini-app-container-view-model--no-top-bar"]=function(){return!W().topBar},vy["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return W().hasPlayNextShelf},vy["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return W().hasPlayNextShelf},vy["yt-mini-app-container-view-model--show-peek-below"]=function(){return!xW()&&W().hasPlayNextShelf},vy));
var nQ={};nQ=_.Mi("yt-mini-app-container-view-model__content",(nQ["yt-mini-app-container-view-model__content--desktop-content"]=!0,nQ["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return W().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},nQ["yt-mini-app-container-view-model--desktop-play-page"]=function(){return W().hasPlayNextShelf},nQ));
return _.X("mini-app-container-view-model",{el:sZ},_.X("div",{class:vy},_.X(_.YN,{cond:function(){return W().topBar&&!xW()},
then:function(){return _.X(_.bg,{data:function(){return W().topBar}},{miniAppTopBarViewModel:function(FM){return _.X(ifH,{data:FM.data,
isAudioEnabled:t5,onAudioToggled:function(SD){JS(SD)},
score:K8,formattedScore:cX,onScoreChanged:function(SD){r=SD},
isEmbeddedInWebview:w2,isSaved:bE,onSaveToggled:function(SD){EZ(SD)},
isExitMiniAppSeen:wS,isDesktopPlayPage:Z3})}})}}),_.X("div",{class:nQ},_.X(_.YN,{cond:oI,
then:function(){return Kf()}}),_.X(_.YN,{cond:function(){return!W().isEmbeddedInWebview},
then:function(){return oN()}}))))}()},"vd");
ymH.idomCompat=!0;_.A3(ymH,"mini-app-container-view-model",{props:{data:_.Ix}});var Wp9=_.Ax(function(y){var W=y.data;return _.X("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.X("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.j9(function(){var c=W().onTap;c&&_.OH(c)})},_.X(_.YN,{cond:function(){return W().icon},
then:function(c){return _.X(_.Gb,{icon:function(){return c().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.X("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return W().title})))},"wd");
Wp9.idomCompat=!0;var cmf=_.Ax(function(y){var W=_.HO(),c=_.z(_.G9(void 0,void 0,"kFCJ0c")),Z=c.next().value,G=c.next().value;c=_.z(_.G9(void 0,void 0,"PIPgWd"));var D=c.next().value,Y=c.next().value;c=_.z(_.G9(void 0,void 0,"rV66ob"));var u=c.next().value,t=c.next().value,b=function(){var Q=Z();return Q!==void 0?Math.abs(Q):void 0},r=function(){var Q=b();
return Q===void 0||Q<=3},F=function(){var Q=b();
var S=D(),cy=u();Q=Q!==void 0&&S!==void 0&&cy!==void 0?S-cy-Q:void 0;return Q===void 0||Q<=3},K=function(Q){W.value&&W.value.scrollBy({top:0,
left:(_.Nn("HTML_DIR")==="rtl"?-1:1)*Q*W.value.clientWidth,behavior:"smooth"})},l=function(){var Q;
G((Q=W.value)==null?void 0:Q.scrollLeft);var S;Y((S=W.value)==null?void 0:S.scrollWidth);var cy;t((cy=W.value)==null?void 0:cy.clientWidth)},N=function(){K(-.5)},P=function(){K(.5)};
c=_.j9(function(){l()});
_.Xl(function(){l();if(W.value){var Q=new ResizeObserver(l);Q.observe(W.value);_.KL(function(){Q.disconnect()})}});
var V={};return _.X("yt-sponsorships-scrollable-shelf",{class:_.Mi("ytdSponsorshipsScrollableShelfHost",y.className)},_.X("div",{class:_.Mi("ytdSponsorshipsScrollableShelfContent",(V.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!r()&&!F()},V.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!r()&&F()},V.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return r()&&!F()},V)),
el:W,"on:scroll":c},y.children),_.X(_.YN,{cond:function(){return!r()},
then:function(){return _.X(_.bg,{data:function(){return y.data().previousButton}},{buttonViewModel:function(Q){return _.X(_.OV,{data:Q.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:N})}})}}),_.X(_.YN,{cond:function(){return!F()},
then:function(){return _.X(_.bg,{data:function(){return y.data().nextButton}},{buttonViewModel:function(Q){return _.X(_.OV,{data:Q.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:P})}})}}))},"xd");
cmf.idomCompat=!0;var GtH=_.Ax(function(y){var W=y.data;return _.X("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.X("div",{class:"ytdSponsorshipsHubHeader"},_.X("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.X("div",{class:"ytdSponsorshipsHubAvatar"},_.X(_.bg,{data:function(){return W().avatar}},{avatarViewModel:_.Om})),_.X(_.YN,{cond:function(){return W().badgeImage},
then:function(c){return _.X("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.X("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.X("div",{class:"ytdSponsorshipsHubBadge"},_.X(_.J3,{data:c,targetWidth:24,targetHeight:24,alt:""}))))}})),_.X("div",{class:"ytdSponsorshipsHubDetails"},_.X("div",{class:"ytdSponsorshipsHubTierName"},function(){return W().tierName}),_.X("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return W().membershipType}),_.X("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return W().membershipDurationOrExpiry})),_.X("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.X(_.bg,{data:function(){return W().manageButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.X(_.bg,{data:function(){return W().actionMenuButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.X("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return W().perksTitle}),_.X(cmf,{data:function(){return{previousButton:W().previousPerkButton,
nextButton:W().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.X("div",{class:"ytdSponsorshipsHubPerkCards"},_.X(_.bg,{data:function(){return W().perkCards}},{sponsorshipsHubPerkCardViewModel:Wp9}),_.X(_.YN,{cond:function(){return W().viewAllPerksButton},
then:function(c){return _.X(ZcS,{data:c})}}))))},"yd");
GtH.idomCompat=!0;var ZcS=_.Ax(function(y){var W=y.data;return _.X("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.X(_.bg,{data:function(){return W().button}},{buttonViewModel:_.OV}),_.X("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.X("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return W().title}),_.X("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return W().subtitle})))},"zd");
ZcS.idomCompat=!0;_.A3(GtH,"yt-sponsorships-hub",{props:{data:_.Ix}});_.fG6=_.Ax(function(y){var W=y.data;return _.X("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.cF({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var c;return((c=W().badgeCutoutRadius)!=null?c:14)+"px"}})},_.X("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.X(_.bg,{data:function(){return W().startAvatar}},{avatarViewModel:_.Om}),_.X(_.bg,{data:function(){return W().endAvatar}},{avatarViewModel:_.Om})),_.X(_.bg,{data:function(){return W().badge}},{contentPreviewImageViewModel:function(c){return _.X("div",
{class:"ytDualAvatarViewModelBadge"},_.X(_.y9,{data:c.data}))}}))},"Ad");
_.fG6.idomCompat=!0;var DoQ=_.Ax(function(y){var W=y.data;var c,Z=!((c=_.U().resolve(_.xN(_.EH)))==null||!c());y=_.Yk(function(){var t,b,r=Z?(t=W().header)==null?void 0:t.backgroundColorDarkMode:(b=W().header)==null?void 0:b.backgroundColorLightMode;if(r!==void 0)return _.KZ(r)},void 0,"dAycSe");
c=_.Yk(function(){var t,b;return Z?(t=W().header)==null?void 0:t.backgroundImagePart1Dark:(b=W().header)==null?void 0:b.backgroundImagePart1Light},void 0,"H8o0qd");
var G=_.Yk(function(){var t,b;return Z?(t=W().header)==null?void 0:t.backgroundImagePart2Dark:(b=W().header)==null?void 0:b.backgroundImagePart2Light},void 0,"SsF9Sd"),D=_.HO(),Y=!1,u=function(){var t=D.value;
if(t&&!Y){t=t.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk");for(var b=0;b<t.length;++b){var r=t[b];if(r instanceof HTMLElement){r.scrollIntoView({block:"center",inline:"nearest",behavior:"smooth"});Y=!0;break}}}};
_.rj(function(){var t=D.value;if(t){var b=new ResizeObserver(u);b.observe(t);_.KL(function(){b.disconnect()})}});
return _.X("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:D},_.X("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.X("div",{class:"ytdSponsorshipsPerksListHeader",style:_.cF({"background-color":y})},_.X("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.X(_.YN,{cond:c,then:function(t){var b={};return _.X("div",{class:_.Mi((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,b))},_.X(_.J3,{data:t,
alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.X("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.X(_.YN,{cond:G,
then:function(t){var b={};return _.X("div",{class:_.Mi((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,b))},_.X(_.J3,{data:t,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.X("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.X(_.bg,{data:function(){var t;
return(t=W().header)==null?void 0:t.dualAvatar}},{dualAvatarViewModel:_.fG6})))),_.X("div",{class:"ytdSponsorshipsPerksListBody"},_.X("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return W().title}),_.X(_.YN,{cond:function(){return W().perks},
then:function(t){return _.X(_.mC,{each:t},function(b,r){var F={};return _.X("div",{class:_.Mi("ytdSponsorshipsPerksListPerkContainer",(F.ytdSponsorshipsPerksListSelectedPerk=function(){var K=r(),l=W().selectedPerkIndex;return K===l},F))},_.X(_.YN,{cond:function(){return r()>0},
then:function(){return _.X("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.X("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.X(_.YN,{cond:function(){return b.icon},
then:function(K){return _.X(_.Gb,{icon:function(){return K().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.X("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.X("div",{class:"ytdSponsorshipsPerksListPerkTitle"},b.title),_.X("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.X(_.Da,{text:b.description})),_.X(_.YN,{cond:function(){return b.instructions},
then:function(){var K,l;return _.X("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.X("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(K=b.instructions)==null?void 0:K.title),_.X("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.X(_.Da,{text:(l=b.instructions)==null?void 0:l.text})))}}))),_.X(_.YN,{cond:function(){return b.emoji},
then:function(K){return _.X("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.X(_.mC,{each:function(){return K()}},function(l){return _.X(_.J3,{data:l,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.X(oi9,{data:b}))})}})))},"Bd");
DoQ.idomCompat=!0;var oi9=_.Ax(function(y){var W=y.data;var c=function(Y,u){return Y===u},Z=function(){var Y=W();
Y=_.g(Y==null?void 0:Y.badgesShelf,OHZ);return Y!==void 0&&Y!==null?Y:{previousButton:{},nextButton:{}}},G=_.LD(),D=function(){var Y=G.value;
if(Y){var u=Y.parentElement;if(u){Y=Y.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var t=0;t<Y.length;++t){var b=Y[t];if(b instanceof HTMLElement){u.scrollTo({left:b.offsetLeft+b.clientWidth/2-u.clientWidth/2,behavior:"instant"});break}}}}};
_.rj(function(){var Y=G.value;if(Y){var u=new ResizeObserver(D);u.observe(Y);_.KL(function(){u.disconnect()})}});
return _.X("div",null,_.X(_.YN,{cond:function(){return W().badges},
then:function(Y){return _.X(cmf,{data:Z},_.X("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:G},_.X(_.mC,{each:function(){return Y()}},function(u,t){var b={},r={},F={};
return _.X("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.X(_.YN,{cond:function(){return t()>0},
then:function(){return _.X("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.X("div",{class:_.Mi("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(b.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return c(t(),W().currentBadgeIndex)},b.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!c(t(),W().currentBadgeIndex)},b))},_.X("div",{class:_.Mi("ytdSponsorshipsPerksListLoyaltyBadge",(r.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return c(t(),
W().currentBadgeIndex)},r.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!c(t(),W().currentBadgeIndex)},r))},_.X(_.YN,{cond:function(){return u.image},
then:function(K){var l={};return _.X("div",{class:_.Mi((l.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return c(t(),W().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!c(t(),W().currentBadgeIndex)},l))},_.X(_.J3,{data:K,
alt:""}))}})),_.X("div",{class:_.Mi("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(F.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return c(t(),W().currentBadgeIndex)},F))},u.title)))})))}}))},"Cd");
oi9.idomCompat=!0;_.A3(DoQ,"yt-sponsorships-perks-list",{props:{data:_.Ix}});_.A3(_.Ax(function(y){return _.X("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.X(_.YN,{cond:function(){return y.data().image},
then:function(W){return _.X(_.J3,{className:"ytwFantasyEmptyStateViewModelImage",data:W,ariaHidden:!0,alt:""})}}),_.X(_.Da,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return y.data().title}}),_.X(_.Da,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return y.data().subtitle}}),_.X(_.bg,{data:function(){return y.data().primaryButton}},{buttonViewModel:function(W){return _.X(_.OV,{data:W.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Dd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c;y=_.z(_.G9(!((c=_.cj("yt-mini-app-is-theater-mode-enabled"))==null||!c),void 0,"CUtq5"));var Z=y.next().value,G=y.next().value,D;c=(D=_.U().resolve(_.xN(iaS)))!=null?D:function(){return _.X("div",null)};
_.BO("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){G(!0);_.Wj("yt-mini-app-is-theater-mode-enabled",!0)});
_.BO("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){G(!1);_.Wj("yt-mini-app-is-theater-mode-enabled",!1)});
D={};y={};var Y={};return _.X("mini-app-play-page-renderer",{class:_.Mi("miniAppPlayPageRendererHost",(D.miniAppPlayPageRendererHostDetailsView=function(){return!Z()},D))},_.X("div",{class:_.Mi("miniAppPlayPageRendererGameContainer",(y.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Z()},y))},_.X(_.bg,{data:function(){return W().containerViewModel}},{miniAppContainerViewModel:ymH}),_.X(_.YN,{cond:function(){return!Z()&&W().description},
then:function(){return _.X("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.X("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return W().description}))}})),_.X("div",{class:_.Mi("miniAppPlayPageRendererPlayNextContainer",(Y.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Z()},Y))},_.X(_.bg,{data:function(){return W().sectionList}},{sectionListRenderer:c})))},"Ed"),"mini-app-play-page-renderer",{props:{data:_.Ix}});var zlS=function(){var y=_.v.apply(this,arguments)||this;y.isSearch=!1;y.isConstrainedList=!1;y.hasChipsBar=!1;y.inReplyPanel=!1;y.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"}};y.monitorScroll=!0;y.SCROLL_ANIMATION_DURATION_MS=300;y.nextContinuation={continuationType:"sectionListContinuation"};return y};
_.R(zlS,_.v);_.f=zlS.prototype;
_.f.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(y){switch(y.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:_.O("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.O("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.f.created=function(){var y=this;this.JSC$14716_scrollAnimation=new _.NA(function(W){y.hostElement.scrollTop=W})};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.f.getItemsPath=function(){return"data.contents"};
_.f.replacePrimaryContent=function(y){this.set("data.contents",y)};
_.f.computeHasSortFilter=function(y){return!!y&&!!y.sortFilterSubMenuRenderer};
_.f.computeShouldScrollInPanel=function(y){var W;return!!(y==null?0:(W=y.scrollPaneStyle)==null?0:W.scrollable)};
_.f.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.i0(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.f.scrollToTop=function(){this.hostElement.scrollTop=0};
_.f.scrollToItemSection=function(y){if(y=this.getItemByIdentifier(y))y=this.getScrollPositionForItem(y),this.hostElement.scrollTop!==y&&this.JSC$14716_scrollAnimation.start(this.hostElement.scrollTop,y,this.SCROLL_ANIMATION_DURATION_MS)};
_.f.getItemByIdentifier=function(y){var W=this.contents.querySelectorAll("ytd-item-section-renderer");if(W&&W.length!==0){var c=Array.from(W).findIndex(function(Z){return Z.sectionIdentifier===y});
return W[c===-1?0:c]}};
_.f.getScrollPositionForItem=function(y){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===y)return 0;y=_.Vx(y).y+this.hostElement.scrollTop-_.Vx(this.hostElement).y;return Math.min(y,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.dJ.Object.defineProperties(zlS.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.targetId)==="browse-feedFEclips"}}});
var hX=zlS;hX.prototype.onScroll=hX.prototype.onScroll;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],hX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],hX.prototype,"ytLazyListBehavior",void 0);_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],hX.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.C(_.MDd),_.e("design:type",Object)],hX.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],hX.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hX.prototype,"data",void 0);_.x([_.L({value:2}),_.e("design:type",Number)],hX.prototype,"initialCount",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],hX.prototype,"autoFill",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.e("design:type",Boolean)],hX.prototype,"hasSortFilter",void 0);_.x([_.L({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.e("design:type",Boolean)],hX.prototype,"hideBottomSeparator",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.e("design:type",Boolean)],hX.prototype,"shouldScrollInPanel",void 0);
_.x([_.L(),_.e("design:type",Object)],hX.prototype,"isSearch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],hX.prototype,"isConstrainedList",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],hX.prototype,"responsiveSizing",void 0);_.x([_.L(),_.e("design:type",Object)],hX.prototype,"hasChipsBar",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],hX.prototype,"pageSubtype",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],hX.prototype,"engagementPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],hX.prototype,"liveChatEngagementPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],hX.prototype,"inReplyPanel",void 0);_.x([_.jj("#action-button"),_.e("design:type",HTMLElement)],hX.prototype,"actionButton",void 0);_.x([_.L(),_.e("design:type",Object)],hX.prototype,"scrollUpButtonData",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],hX.prototype,"engagementPanelDropdown",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],hX.prototype,"engagementPanelDialog",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],hX.prototype,"isClipList",null);_.x([_.jj("#contents"),_.e("design:type",HTMLElement)],hX.prototype,"monitorScrollElement",void 0);_.x([_.jj("#contents"),_.e("design:type",HTMLElement)],hX.prototype,"contents",void 0);
_.x([_.B("scroll"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hX.prototype,"onScroll",null);hX=_.x([_.d({is:"ytd-section-list-renderer",disableElementRegistration:!0})],hX);
var Y$H=_.a5()(hX,"ytd-section-list-renderer",function(){if(x1D===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);x1D=y}y=x1D;return y},{mode:1});var moH;var sQ6;var u23;var tqQ;var B9=function(){return _.v.apply(this,arguments)||this};
_.R(B9,_.v);B9.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
B9.prototype.onLikeButtonClick=function(y){y.stopPropagation();y.preventDefault()};
_.dJ.Object.defineProperties(B9.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)!=null&&y.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)})}}}});
var H9=B9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],H9.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],H9.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],H9.prototype,"ytRendererStamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],H9.prototype,"data",void 0);
_.x([_.L({selectorArgs:["data.likeStatusEntityKey"],selector:Ue}),_.e("design:type",Object)],H9.prototype,"likeStatusEntity",void 0);_.x([_.A("data","likeStatusEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],H9.prototype,"likeButtonRenderer",null);H9=_.x([_.d({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],H9);
_.T(H9,"ytd-slim-metadata-toggle-button-renderer",function(){if(tqQ!==void 0)return tqQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return tqQ=y},{mode:1});var niQ=function(){var y=_.v.apply(this,arguments)||this;y.minimizePipBreakages=_.O("web_pip_minimize_breakages");y.showEqualizer=_.O("web_enable_playlist_video_lockup_equalizer");y.watchColorUpdate=_.O("kevlar_watch_color_update");y.actionMap={};return y};
_.R(niQ,_.v);_.f=niQ.prototype;_.f.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"}}}};
_.f.computeEditableClass=function(y){return y&&y.menu?"editable":""};
_.f.computeSelected=function(y){return!(y==null||!y.selected)};
_.f.computeUseColorPalette=function(y){return!!((y==null?0:y.lightColorPalette)&&(y==null?0:y.darkColorPalette))};
_.f.computeLargerPlaylistThumbs=function(y,W){return _.O("web_enable_playlist_bigger_thumbnails")&&!W};
_.f.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.f.onYtServiceRequestSent=function(y,W){W.endpoint&&this.isHideEnclosingAction(W.endpoint)&&!this.selected&&CBQ(_.JI(),this.data.videoId)};
_.f.isHideEnclosingAction=function(y){var W=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",y);y=this.get("likeEndpoint.status",y)==="INDIFFERENT";return W||y};
_.f.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.f.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.dJ.Object.defineProperties(niQ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var y;return!!(this.withinMiniplayer&&((y=this.data)==null?0:y.actionButtons))}}});
var LM=niQ;LM.prototype.onYtServiceRequestSent=LM.prototype.onYtServiceRequestSent;LM.prototype.canReorderChanged=LM.prototype.canReorderChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],LM.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.P2),_.e("design:type",Object)],LM.prototype,"ytdLockupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],LM.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],LM.prototype,"withinMiniplayer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],LM.prototype,"minimizePipBreakages",void 0);_.x([_.L({computed:"computeSelected(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],LM.prototype,"selected",void 0);
_.x([_.L({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],LM.prototype,"useColorPalette",void 0);_.x([_.L({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.e("design:type",Boolean)],LM.prototype,"largerPlaylistThumbs",void 0);_.x([_.L(),_.e("design:type",Object)],LM.prototype,"showEqualizer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],LM.prototype,"canReorder",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],LM.prototype,"touchPersistentDragHandle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],LM.prototype,"handleIsHovered",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],LM.prototype,"watchColorUpdate",void 0);_.x([_.A("largerPlaylistThumbs"),_.e("design:type",Number),_.e("design:paramtypes",[])],LM.prototype,"thumbnailWidth",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],LM.prototype,"showActionButtons",null);_.x([_.Gs("canReorder"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],LM.prototype,"canReorderChanged",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],LM.prototype,"onYtServiceRequestSent",null);
LM=_.x([_.d({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],LM);
_.T(LM,"ytd-playlist-panel-video-renderer",function(){if(u23!==void 0)return u23;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return u23=y},{mode:2});var XpZ=function(){return _.v.apply(this,arguments)||this};
_.R(XpZ,_.v);XpZ.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
var v9=XpZ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],v9.prototype,"data",void 0);v9=_.x([_.d({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],v9);
_.T(v9,"ytd-playlist-panel-supported-items",function(){if(sQ6!==void 0)return sQ6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return sQ6=
y},{mode:1});bNV=!0;VsV("\\P{N}");var Slt;var bc6=_.bN("END_OF_PLAYLIST",void 0,"End of playlist"),rm6=_.bN("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),FpZ=function(){var y=_.v.apply(this,arguments)||this;y.minimizePipBreakages=_.O("web_pip_minimize_breakages");y.updatedCoursePanel=_.O("move_three_dot_menu_to_playlist_panel_header_for_courses");y.reducedPlaylistHeight=_.O("web_playlist_mini_playlist_height");y.hideHeaderText=!1;y.useColorPalette=!1;y.collapsed=!1;y.collapsedPreServerOverride="not_tracked";
y.isHovered=!1;y.modernPanels=_.O("kevlar_watch_modern_panels");y.expandLabel=_.bN("MINIPLAYER_EXPAND_LABEL");y.collapseLabel=_.bN("MINIPLAYER_COLLAPSE_LABEL");y.isFloating=!1;y.metaPanel=!1;y.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};y.currentIndex=void 0;return y};
_.R(FpZ,_.v);_.f=FpZ.prototype;
_.f.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"}}}};
_.f.created=function(){this.scrollThrottle=new _.ig(this.onThrottledScroll,1E3,this)};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
_.f.computeOverflowMenuData=function(y){return y&&y.menu?y.menu:null};
_.f.computeCollapsible=function(y){return!y};
_.f.computeHasPlaylistButtons=function(y){return!(!y||!y.playlistButtons)};
_.f.computeHasSeparateSaveButton=function(y){return!(!y||!y.saveButton)};
_.f.computeHasToolbarButton=function(y,W){return!(!y||!(W||y.saveButton||y.menu))};
_.f.computePlaylistType=function(y){if(y&&y.playlistId)return y.playlistId.substring(0,4)};
_.f.computeCanReorder=function(y){return y?y.playlistId&&y.playlistId.startsWith("TLPQ")?!0:!!y.isEditable&&!y.isInfinite:!1};
_.f.attached=function(){var y=this;try{_.U().resolve(_.EU).setPlaylistComponent(this.hostElement)}catch(W){if(_.O("kevlar_park_on_playlist_token_killswitch"))throw W;_.It().parkOrScheduleJob(function(){_.U().resolve(_.EU).setPlaylistComponent(y.hostElement)},2,"ci")}_.WA(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.f.detached=function(){_.cA(this.hostElement)};
_.f.computeTrailingIcon=function(y,W,c){return c?W?"yt-icons:collapse":"yt-icons:close":W?"yt-icons:expand":_.O("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.f.computeIndexMessage=function(y,W){return xbw(y+1)+" / "+xbw(W)};
_.f.onRenderStamperFinished=function(){if(this.scrollForStampDom){var y=!0;this.isHovered&&(y=!1);if(this.collapsed||this.hidden)y=!1;y&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.f.collapseChanged=function(){var y=this;this.collapsed||(_.X5(this.ytTaskEmitterBehavior.getTaskManager(),function(){y.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.f.hiddenChanged=function(){var y=this;this.hidden||_.X5(this.ytTaskEmitterBehavior.getTaskManager(),function(){y.scrollToCurrentVideo()})};
_.f.setupReordering=function(){var y=_.p(this.hostElement).querySelector("#items");GWi?_.tY5(this.ytReorderableBehavior,y,y,"playlist-drag-handle"):_.tY5(this.ytReorderableBehavior,y,y)};
_.f.scrollToCurrentVideo=function(){var y=this;_.KX.addJob(function(){var W=_.p(y.hostElement).querySelector("#items");if(W){W.style.setProperty("padding-bottom","");var c=_.p(y.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(c){W=c.parentElement||_.Kd(document);var Z=W||_.Kd(document);var G=_.Vx(c),D=_.Vx(Z),Y=_.LfE(Z);if(Z==_.Kd(document)){var u=G.x-Z.scrollLeft;G=G.y-Z.scrollTop}else u=G.x-D.x-Y.left,G=G.y-D.y-Y.top;c=AnT(c);D=Z.clientHeight-
c.height;Y=Z.scrollLeft;var t=Z.scrollTop;Y+=u-(Z.clientWidth-c.width)/2;Z=new _.If(Y,t+(G-D/2));W.scrollLeft=Z.x;W.scrollTop=Z.y}}},8)};
_.f.dataChanged=function(){var y=this;_.uEZ(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Lv(this,function(){_.Xc(y.ytTaskEmitterBehavior.getTaskManager(),function(){y.ytRendererBehavior.markDirty();y.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.f.updateNowPlayingOverlay=function(){_.O("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.f.onPlaylistLockupNowPlaying=function(y,W){W&&(this.activeNowPlayingRenderer=W);this.updateNowPlayingOverlay()};
_.f.onScroll=function(){this.scrollThrottle.fire()};
_.f.onThrottledScroll=function(){var y=this;_.Xc(this.ytTaskEmitterBehavior.getTaskManager(),function(){y.ytRendererBehavior.markDirty()})};
_.f.onToggleExpanded=function(y){this.collapsible&&_.hq(y).tagName!=="A"&&!_.Cx(_.Aq(y),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.f.setCollapsed=function(y){this.collapsible&&(this.collapsed=y,_.fl(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.f.handleCollapsedFromData=function(y){if(y){var W=y.playlistPanelCollapseState;W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||W==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),W=W==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==W&&this.setCollapsed(W)):this.currentPlaylistId!==y.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(W=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==W&&this.setCollapsed(W),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=y.playlistId}};
_.f.handleDrop=function(y){var W=y.currDragItem;y=W.data.playlistSetVideoId;var c=_.By(W.parentNode.childNodes,W),Z=void 0;c>0&&(Z=W.parentNode.childNodes[c-1].data.playlistSetVideoId);W=_.JI();if(W.responsePlaylistData&&W.responsePlaylistData.contents){var G=sZf(y,W.responsePlaylistData);W.responsePlaylistData=(0,_.Eb.unsafeClone)(W.responsePlaylistData);IHH(W.responsePlaylistData.contents,G,c);W.queueProxy?mBi(W.queueProxy,G,c,y,Z):W.playlistProxy&&mBi(W.playlistProxy,G,c,y,Z);_.Vk(W,_.CH(W,W.response?
W.response.autoplayRenderer:void 0))}};
_.f.handleDarkModeChange=function(y){y!==this.isDarkTheme&&(this.isDarkTheme=y)};
_.f.colorPaletteChanged=function(){var y,W=((y=this.data)==null?void 0:y.contents)||[],c;y=_.z(W);for(W=y.next();!W.done;W=y.next()){W=W.value;var Z=void 0;if((Z=W.playlistPanelVideoRenderer)==null?0:Z.selected){y=W.playlistPanelVideoRenderer;Z=W=void 0;(c=this.isDarkTheme?(W=y)==null?void 0:W.darkColorPalette:(Z=y)==null?void 0:Z.lightColorPalette)&&_.nx(this.hostElement,c);break}}this.useColorPalette=!!c};
_.dJ.Object.defineProperties(FpZ.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.playlistId)&&!((W=this.data)==null||!W.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var y=_.U().resolve(_.xN(_.EU)),W;if(((W=this.data)==null?0:W.contents)&&(y==null?0:y.hasAutoplayData())){var c;if(((c=this.playlistLoopStateEntity)==null?void 0:c.state)==="PLAYLIST_LOOP_STATE_ONE"){if(y=this.data.currentIndex,y!==void 0){var Z,G;var D=(Z=this.data.contents[y])==null?void 0:(G=Z.playlistPanelVideoRenderer)==null?void 0:G.title}}else{var Y,u=(Y=_.g(y.getAutoplayEndpoint(),_.Sb))==null?void 0:Y.videoId,t,b;D=(t=this.data.contents.find(function(r){var F;
return((F=r.playlistPanelVideoRenderer)==null?void 0:F.videoId)===u}))==null?void 0:(b=t.playlistPanelVideoRenderer)==null?void 0:b.title}return D}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)!=null&&y.nextVideoLabel?this.nextVideoTitle?_.v$(this.data.nextVideoLabel)+":":bc6:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var y;if(((y=this.data)==null?0:y.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Lq(rm6);var W;return(W=this.data)==null?void 0:W.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z=(y=this.data)==null?void 0:(W=y.playlistButtons)==null?void 0:(c=W.menuRenderer)==null?void 0:c.topLevelButtons;if(Z)for(y=_.z(Z),W=y.next();!W.done;W=y.next())if(W=W.value,W.playlistLoopButtonRenderer)return W.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var y;return!!(this.collapsed&&((y=this.data)==null?0:y.nextVideoLabel))}}});
var dh=FpZ;dh.prototype.colorPaletteChanged=dh.prototype.colorPaletteChanged;dh.prototype.onPlaylistLockupNowPlaying=dh.prototype.onPlaylistLockupNowPlaying;dh.prototype.updateNowPlayingOverlay=dh.prototype.updateNowPlayingOverlay;dh.prototype.dataChanged=dh.prototype.dataChanged;dh.prototype.hiddenChanged=dh.prototype.hiddenChanged;dh.prototype.collapseChanged=dh.prototype.collapseChanged;dh.prototype.onRenderStamperFinished=dh.prototype.onRenderStamperFinished;dh.prototype.onMouseLeave=dh.prototype.onMouseLeave;
dh.prototype.onMouseEnter=dh.prototype.onMouseEnter;_.x([_.C(_.K7),_.e("design:type",Object)],dh.prototype,"ironResizableBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(mZi.YtPlaylistPanelBehavior),_.e("design:type",Object)],dh.prototype,"ytPlaylistPanelBehavior",void 0);
_.x([_.C(_.CA.YtTaskEmitterBehavior),_.e("design:type",Object)],dh.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.C(_.Xoi),_.e("design:type",Object)],dh.prototype,"ytReorderableBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],dh.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],dh.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],dh.prototype,"actionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],dh.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],dh.prototype,"autoplayData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],dh.prototype,"withinMiniplayer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"minimizePipBreakages",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"updatedCoursePanel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"reducedPlaylistHeight",void 0);_.x([_.L({computed:"setMenuData_(data)"}),_.e("design:type",Object)],dh.prototype,"menuRendererData",void 0);_.x([_.L({computed:"computeOverflowMenuData(data)"}),_.e("design:type",Object)],dh.prototype,"overflowMenuDataTopRow",void 0);_.x([_.L({computed:"computeOverflowMenuData(data)"}),_.e("design:type",Object)],dh.prototype,"overflowMenuData",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"hideHeaderText",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"useColorPalette",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.e("design:type",Boolean)],dh.prototype,"collapsible",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"collapsed",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],dh.prototype,"hidden",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.e("design:type",Boolean)],dh.prototype,"hasPlaylistButtons",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.e("design:type",Boolean)],dh.prototype,"hasSeparateSaveButton",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.e("design:type",Boolean)],dh.prototype,"hasToolbar",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.e("design:type",String)],dh.prototype,"playlistType",void 0);_.x([_.L(),_.e("design:type",Object)],dh.prototype,"isHovered",void 0);_.x([_.L({selectorArgs:["playlistLoopStateEntityKey"],selector:_.RRg}),_.e("design:type",Object)],dh.prototype,"playlistLoopStateEntity",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"modernPanels",void 0);_.x([_.L({value:56}),_.e("design:type",Number)],dh.prototype,"scrollMargin",void 0);_.x([_.L({computed:"computeCanReorder(data)"}),_.e("design:type",Boolean)],dh.prototype,"canReorder",void 0);_.x([_.L(),_.e("design:type",Object)],dh.prototype,"expandLabel",void 0);_.x([_.L(),_.e("design:type",Object)],dh.prototype,"collapseLabel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"isFloating",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dh.prototype,"metaPanel",void 0);_.x([_.L({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.e("design:type",String)],dh.prototype,"trailingIcon",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],dh.prototype,"isDarkTheme",void 0);
_.x([_.L({selector:_.Eq}),_.e("design:type",Boolean)],dh.prototype,"miniplayerIsActive",void 0);_.x([_.L({selector:function(y){return y.watch.playerState}}),
_.e("design:type",Number)],dh.prototype,"playerState",void 0);_.x([_.L(),_.e("design:type",Object)],dh.prototype,"activeNowPlayingRenderer",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],dh.prototype,"moveThreeDotMenuToTopRow",null);_.x([_.A("data","autoplayData","playlistLoopStateEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],dh.prototype,"nextVideoTitle",null);
_.x([_.A("data","nextVideoTitle"),_.e("design:type",String),_.e("design:paramtypes",[])],dh.prototype,"nextVideoLabel",null);_.x([_.A("collapsed"),_.e("design:type",String),_.e("design:paramtypes",[])],dh.prototype,"buttonAriaLabel",null);_.x([_.A("data","playlistId","longBylineText"),_.e("design:type",Object),_.e("design:paramtypes",[])],dh.prototype,"mixLongByLine",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],dh.prototype,"playlistLoopStateEntityKey",null);
_.x([_.B("mouseenter"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"onMouseEnter",null);_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"onMouseLeave",null);_.x([_.L({reflectToAttribute:!0}),_.A("data","collapsed"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],dh.prototype,"showNextVideoHeader",null);
_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"onRenderStamperFinished",null);_.x([_.H("collapsed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"collapseChanged",null);_.x([_.H("hidden"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"hiddenChanged",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"dataChanged",null);_.x([_.H("playerState","miniplayerIsActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"updateNowPlayingOverlay",null);_.x([_.B("yt-playlist-lockup-now-playing-active"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],dh.prototype,"onPlaylistLockupNowPlaying",null);
_.x([_.H("data","isDarkTheme"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dh.prototype,"colorPaletteChanged",null);dh=_.x([_.d({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],dh);
_.UoH=_.a5()(dh,"ytd-playlist-panel-renderer",function(){if(moH===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);moH=y}y=moH;return y},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var $oQ;var SH=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_button_rework");return y};
_.R(SH,_.v);SH.prototype.computeShouldButtonBeVertical=function(y,W){return y||W};
SH.prototype.onYtServiceRequestSent=function(y,W){(y=_.g(W.endpoint,_.Ls))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.o3("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:y.status})):this.handleLikeEndpoint(y))};
SH.prototype.computelikeStatusEntityKey=function(y){return y==null?void 0:y.likeStatusEntityKey};
SH.prototype.handleLikeEndpoint=function(y){y.status==="LIKE"?this.JSC$14741_ytdDislikeToggleButtonRenderer.toggle(!1):y.status==="DISLIKE"?this.JSC$14741_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14741_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14741_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.dJ.Object.defineProperties(SH.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var y;return wHI(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(y=this.likeStatusEntity)==null?void 0:y.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var y;return wHI(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(y=this.likeStatusEntity)==null?void 0:y.likeStatus)}}});
var T1=SH;T1.prototype.onYtServiceRequestSent=T1.prototype.onYtServiceRequestSent;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],T1.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],T1.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],T1.prototype,"vertical",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],T1.prototype,"textTransform",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],T1.prototype,"useShortsIcon",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],T1.prototype,"underIconLabel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],T1.prototype,"modern",void 0);_.x([_.L({value:"left"}),_.e("design:type",String)],T1.prototype,"buttonTooltipPosition",void 0);
_.x([_.L(),_.e("design:type",Object)],T1.prototype,"overrides",void 0);_.x([_.jj("#like-button"),_.e("design:type",Object)],T1.prototype,"JSC$14741_ytdLikeToggleButtonRenderer",void 0);_.x([_.jj("#dislike-button"),_.e("design:type",Object)],T1.prototype,"JSC$14741_ytdDislikeToggleButtonRenderer",void 0);_.x([_.A("data","likeStatusEntity.likeStatus"),_.e("design:type",Object),_.e("design:paramtypes",[])],T1.prototype,"likeButton",null);
_.x([_.A("data","likeStatusEntity.likeStatus"),_.e("design:type",Object),_.e("design:paramtypes",[])],T1.prototype,"dislikeButton",null);_.x([_.L({computed:"computelikeStatusEntityKey(data)"}),_.e("design:type",String)],T1.prototype,"likeStatusEntityKey",void 0);_.x([_.L({selectorArgs:["likeStatusEntityKey"],selector:Ue}),_.e("design:type",Object)],T1.prototype,"likeStatusEntity",void 0);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],T1.prototype,"onYtServiceRequestSent",null);T1=_.x([_.d({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],T1);
var Kp9=_.a5()(T1,"ytd-like-button-renderer",function(){if($oQ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);$oQ=y}y=$oQ;return y},{mode:1});_.Ocf={};
_.Ocf.YtConditionalRendererBehavior=[_.k.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(y,W){var c=this,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:if(!W)return c.hidden=!0,c.showSpinner=!1,D.return();if((Z=y)==null?0:(G=Z.visibilityCondition)==null?0:G.mode)switch(y.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return D.jumpTo(5);default:return D.jumpTo(6)}c.showSpinner=
!1;c.hidden=!0;return _.n(D,c.shouldShow_(y),4);case 4:c.hidden=!D.yieldResult;D.jumpTo(0);break;case 5:return _.n(D,c.shouldShow_(y),8);case 8:c.showSpinner=D.yieldResult;c.hidden=!1;D.jumpTo(0);break;case 6:return c.showSpinner=!1,_.n(D,c.shouldShow_(y),9);case 9:c.hidden=!D.yieldResult,_.F2(D)}})},
shouldShow_:function(y){return y&&y.supportedDatas&&y.supportedDatas.rendererVisibilityConditionData&&y.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(y.supportedDatas.rendererVisibilityConditionData.showIf):y&&y.visibilityCondition&&y.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(y.visibilityCondition.showIf):y&&y.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(y.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(y){switch(y){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(y){switch(y){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var y=_.GG(this.hostElement,"yt-get-mdx-status");return y.length==1&&y[0].connected},
isLocationPermissionGranted_:function(){var y;return _.m(function(W){return W.nextAddress==1?navigator.permissions?_.n(W,navigator.permissions.query({name:"geolocation"}),3):W.jumpTo(2):W.nextAddress!=2?(y=W.yieldResult,W.return(Promise.resolve(y.state==="granted"))):W.return(Promise.resolve(!1))})}}];var giQ=function(y,W){W=W===void 0?{}:W;return function(c){var Z=document.createElement(y),G;var D=(G=Z.polymerController)!=null?G:Z;HSI(Z,D,c,W);return Z}}("yt-icon");var Rl9=function(y){var W=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];BZh();_.LR("ytglobal.ytUtilActivityCallback_",function(){_.fl(y,"yt-user-activity")});
new TM(function(){return W.JSC$14753_onMouseMove});
document.addEventListener("scroll",function(){return W.onScroll});
window.addEventListener("resize",function(){return W.onResize})},lGB=function(y,W,c){W in y.eventJobIds||(c=_.gl().addLowPriorityJob(function(){_.iz();
delete y.eventJobIds[W]},c),y.eventJobIds[W]=c)};
Rl9.prototype.onScroll=function(y){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):y.target===document&&lGB(this,"scroll",200)};
Rl9.prototype.onResize=function(){lGB(this,"resize",200)};
Rl9.prototype.JSC$14753_onMouseMove=function(){lGB(this,"mousemove",100)};
_.YiT=function(y){y.scrollEventsToIgnore+=1;y.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){y.scrollEventsToIgnore--},500))};var Ei3=function(y){this.element=y;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
Ei3.prototype.showFeedbackDialog=function(y,W,c,Z){var G=Nsf();if(!G)return!1;var D=zuf();D.productId=G;W&&(D.flow="submit",D.report={description:W});c&&(Nsf()==="59"?D.callback=_.PI(function(){_.$g("userFeedbackEvent",{});c()}):D.callback=_.PI(c));
D.bucket=Z||_.Nn("GOOGLE_FEEDBACK_BUCKET","Other");IGB(D);y=pp6(this,"GFEEDBACK",y);try{_.aiE(D,y)}catch(Y){return _.pj(Y),!1}return!0};
Ei3.prototype.showHelpDialog=function(y,W,c){var Z=this,G=Nsf();if(!G)return!1;var D={helpCenterPath:"/youtube",productData:pp6(this,"GUIDED_HELP",c)};IGB(D);var Y=zuf();Y.context=y||D.productData.context||"default";Y.defaultHelpArticleId=W;Y.enableSendFeedback=!0;(_.JW("gapi.load")||function(u,t){return t()})("client",function(){try{var u=hy5(G,D);
if(_.O("web_always_load_chat_support")&&!Z.chatSupportLoaded)try{u.JSC$7840_loadChatSupport(Y),Z.chatSupportLoaded=!0}catch(t){}u.startHelp(Y)}catch(t){_.pj(t)}})};
var Nsf=function(){var y=_.Nn("GOOGLE_FEEDBACK_PRODUCT_ID");y||_.pj(Error("di"));return y},IGB=function(y){y&&(y.locale=_.O("kevlar_help_use_locale")?_.Nn("INNERTUBE_CONTEXT_HL","en"):_.Nn("HTML_LANG","en"))},pp6=function(y,W,c){var Z=y.productData;
delete Z.origin;Z.device=_.UD();var G;a:{if(G=document.createElement("canvas")){var D=G.getContext("experimental-webgl",{stencil:!0});if(D){var Y=D.getExtension("WEBGL_debug_renderer_info");if(Y){G=D.getParameter(Y.UNMASKED_RENDERER_WEBGL);break a}}if(D=G.getContext("webgl")){G=D.getParameter(D.RENDERER);break a}}G=null}Z.gpu=G;Z.isSDC=!!_.Nn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(G=_.Nn("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Eb.extend(Z,G);_.oOf(W,Z);_.DpO(Z);(y=_.fl(y.element,"yt-get-autonav-pause-debug-state"))&&
y.length&&(Z.autonav_pause_state=y[0]);y=_.bG();Z.browser_resolution=y.width+"\u00d7"+y.height+"@"+(window.devicePixelRatio||1)+"x";c&&_.Eb.extend(Z,c);return Z};
Ei3.prototype.resetProductData=function(){this.productData={}};var PRf=function(y){this.feedbackManager=new Ei3(y)};
PRf.prototype.showFeedbackDialog=function(y,W,c,Z){return this.feedbackManager.showFeedbackDialog(y,W,c,Z)};
PRf.prototype.showHelpDialog=function(y,W,c){return this.feedbackManager.showHelpDialog(y,W,c)};var Jm9=function(){this.baseUrl="";this.aTag=document.createElement("a")},OMT=function(y,W,c){c=c===void 0?{}:c;
c.pbj||(c.pbj=1);c=_.RNO(W,c);y.baseUrl&&c&&!_.Lj(c)[1]&&!_.vI(c)&&(W=y.baseUrl,uf(W,"/")&&(W=W.slice(0,-1)),_.mE(c,"/")&&(c=c.slice(1)),c=W+"/"+c);hn(y.aTag,pf(c||""));return y.aTag.href};
Jm9.prototype.fetchData=function(y){return _.ygD(y)};
Jm9.prototype.postData=function(y,W){var c={method:"POST"};if(W){for(var Z=_.z(Object.keys(W)),G=Z.next();!G.done;G=Z.next()){G=G.value;var D=W[G];_.q1(D)&&(W[G]=JSON.stringify(D))}c.postParams=W}return _.ygD(y,c)};
_.gzE=function(y,W,c,Z,G){y=OMT(y,W,c);if(!y)throw Z=Error("ei"),Object.assign(Z,{params:W}),Z;return _.ygD(y,G,Z)};
Jm9.prototype.requestDataForServiceEndpoint=function(y,W){if(_.g(y,_.XwI))return this.fetchData("/getAccountSwitcherEndpoint");W=W||{};var c=_.g(y,kST);c?W.se=c.base64EncodedServiceEndpoint:W.sej=JSON.stringify(y);(c=_.NR())&&_.O("enable_service_ajax_csn")&&(W.csn=c);W.theme=_.NO();_.g(y,tRO)&&_.Nn("DELEGATION_CONTEXT")&&(W.delegation_context=JSON.stringify(_.Nn("DELEGATION_CONTEXT")));c=null;for(var Z in y)if(uf(Z,"Endpoint")||uf(Z,"Command")){c=Z;break}if(!c){var G=Error("fi");Object.assign(G,{params:y});
_.KlH(G,"WARNING");return new _.fD(function(Y,u){u(G)})}Z={name:c};
var D;(c=(D=_.g(y,_.nl))==null?void 0:D.signal)&&(Z.signal=c);(D=_.hW(window.location.href))&&D.internalcountrycode&&(Z.internalcountrycode=D.internalcountrycode);D="/service_ajax";_.O("debug_forward_web_query_parameters")&&(D=_.QPE(D,window.location.search));D=_.HI(D,Z);y.clickTrackingParams&&_.wz(D,{itct:y.clickTrackingParams});return this.postData(D,W)};_.Vq6=new _.Sm("GFEEDBACK_TOKEN");var CR9;var QQ9;var AmQ;var hl9;var ac=function(){var y=_.v.apply(this,arguments)||this;y.compact=!1;return y};
_.R(ac,_.v);ac.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ac.prototype.computeHasIcon_=function(y){return!!y};
ac.prototype.isSignInIcon_=function(y){return y=="yt-icons:prompted_sign_in"};
var xz=ac;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Ocf.YtConditionalRendererBehavior),_.e("design:type",Object)],xz.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xz.prototype,"data",void 0);
_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",Object)],xz.prototype,"icon_",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.e("design:type",Boolean)],xz.prototype,"hasIcon_",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.e("design:type",Boolean)],xz.prototype,"signInIcon_",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xz.prototype,"compact",void 0);
xz=_.x([_.n6({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],xz);
_.T(xz,"yt-player-error-message-renderer",function(){if(hl9===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;AmQ===void 0&&(AmQ=document.createElement("template"));var Z=AmQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);hl9=y}y=hl9;return y},{mode:2});var BsQ;var HcQ;var Lpd=function(){return _.v.apply(this,arguments)||this};
_.R(Lpd,_.v);Lpd.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Lpd.prototype.computeIcon_=function(y){return y?"yt-icons:"+y.iconType.toLowerCase():"error_outline"};
var iS=Lpd;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iS.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",Object)],iS.prototype,"icon_",void 0);iS=_.x([_.n6({is:"yt-player-kav-renderer",disableElementRegistration:!0})],iS);
_.T(iS,"yt-player-kav-renderer",function(){if(HcQ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;BsQ===void 0&&(BsQ=document.createElement("template"));var Z=BsQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);HcQ=y}y=HcQ;return y},{mode:2});_.A3(_.Ax(function(y){var W=_.HO(),c=_.z(_.G9(0,void 0,"gCmSbf")),Z=c.next().value,G=c.next().value;c=_.z(_.G9(null,void 0,"Rj9zMe"));var D=c.next().value,Y=c.next().value;_.rj(function(){szE(W.value,G,Y);W.value.scrollIntoView()});
c=uU1.bind(null,y.data,Z);as("resize",function(){var u=D();if(Z()===1&&u!==null){var t;(t=window.grecaptcha)==null||t.reset(u)}});
return _.X("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.X("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.X("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var u,t;return(u=y.data().accessibility)==null?void 0:(t=u.accessibilityData)==null?void 0:t.label}),_.X(_.Da,{text:c,
className:_.Mi("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.X("div",{el:W,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Fd"),"yt-player-captcha-view-model",{props:{data:_.QE}});var trI=!1;_.viS=_.Ax(function(y){var W=y.data;return _.X("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.X(_.YN,{cond:function(){return W().icon},
then:function(c){return _.X("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.X(_.J3,{data:c,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.X(_.YN,{cond:function(){return W().title},
then:function(c){return _.X("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.X(_.Da,{text:c}))}}),_.X(_.YN,{cond:function(){return W().description},
then:function(c){return _.X("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.X(_.Da,{text:c}))}}),_.X(_.bg,{data:function(){return W().primaryButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.X(_.bg,{data:function(){return W().secondaryButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Gd");
_.viS.idomCompat=!0;var dof=_.Ax(function(y){var W=y.data;_.Ss();return _.X("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.X("div",{class:"player-interstitial-renderer-wiz__scrim"},_.X(_.bg,{data:function(){return W().content}},{interstitialViewModel:_.viS})))},"Hd");
dof.idomCompat=!0;_.A3(dof,"yt-player-interstitial-renderer",{props:{data:_.Ix}});var S$Z=function(){var y=_.v.apply(this,arguments)||this;y.noBackground=!1;y.compact=!1;y.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return y};
_.R(S$Z,_.v);S$Z.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"}}}};
S$Z.prototype.onUpdatePlayerErrorMessageCommand_=function(y){if(_.g(y,ub5)){var W;if(y=(W=_.g(y,ub5))==null?void 0:W.newPlayerErrorMessageRenderer)this.data=y}};
var MA=S$Z;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],MA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],MA.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],MA.prototype,"status",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],MA.prototype,"noBackground",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],MA.prototype,"compact",void 0);MA=_.x([_.n6({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],MA);
var TsQ=_.a5()(MA,"yt-playability-error-supported-renderers",function(){if(QQ9===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;CR9===void 0&&(CR9=document.createElement("template"));var Z=CR9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);QQ9=y}y=QQ9;return y},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var nOt=void 0,b0f=void 0;var Upy=new KT3;var fy=new _.Sm("ENTITY_STATE_TOKEN"),eH=new _.Sm("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var aGg=function(y){this.store=y;this.cwJ=new _.Ry5},Uxw=function(y,W,c){var Z,G;
if(!(G=((Z=W.playabilityStatus)==null?void 0:Z.status)!=="OK")){y=y.store;var D;G=W.offlineState&&((D=W.videoDetails)==null?0:D.videoId)?_.O("enable_pl_r_c_cd")?dYt(y.getState().entities,W.videoDetails.videoId):!!X0a(y.getState().entities,W.videoDetails.videoId):!1}if(G)return!0;G=Rua(W);if(G===1){if(_.O("ab_v_vid_sig")){var Y,u=(Y=W.videoDetails)==null?void 0:Y.videoId;if(!u||!c||u!==c){var t;W=new _.ul("282054944_vid",{iqG:c,xNG:(t=W.videoDetails)==null?void 0:t.videoId});_.OP(W)}}return!0}x0I=
0;var b,r;t=(u=W.auxiliaryUi)==null?void 0:(b=u.messageRenderers)==null?void 0:(r=b.bkaEnforcementMessageViewModel)==null?void 0:r.displayType;if(G!==3&&(t==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||t==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;t={reason:_.wK(_.bN("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.O("ks_something_wrong_learn_more")?geh("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.wK(_.bN("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:_.wK("282054944")};xo6(W,{playerErrorMessageRenderer:t});return!1},$xh=function(y,W){if(YOf(W)){_.fZ(1,!0);
var c=(c=YOf(W))&&_.XWw()?c:void 0;c?(xo6(W,{enforcementMessageViewModel:c}),y.cwJ.increment("IN_PLAYER"),_.fZ(5)):(y.cwJ.increment("SKIP_DISPLAY"),_.fZ(2))}},xo6=function(y,W){y.playabilityStatus=Object.assign({},y.playabilityStatus,{status:"ERROR",
errorScreen:W});y.videoDetails=void 0};
aGg.prototype.handleResponse=function(y,W){if(y.playabilityStatus){var c,Z,G,D=(W==null?void 0:(c=W.innerTubeRequest)==null?void 0:c.videoId)||(W==null?void 0:(Z=W.innerTubeRequest)==null?void 0:(G=Z.playerRequest)==null?void 0:G.videoId);Uxw(this,y,D)&&$xh(this,y)}};
aGg[dq]=[fy];var riO=new _.Sm("ADBLOCK_DETECTION_SERVICE_TOKEN");var iL=function(y){this.rv0=y};
iL.prototype.bindInnertubeChallengeFetcher=function(y){this.rv0.bicf(y)};
iL.prototype.registerChallengeFetchedCallback=function(y){this.rv0.bcr(y)};
iL.prototype.getLatestChallengeResponse=function(){return this.rv0.blc()};var wpg;_.wh=function(y,W,c){var Z=this;this.network=y;this.options=W;this.networkStatusManager=c;this.xA=null;if(W.useBotguardEverywhere){var G=new _.WK;this.xA=G.promise;_.DH.ytAtRC&&_.YY(_.KX,function(){var D,Y;return _.m(function(u){if(u.nextAddress==1){if(!_.DH.ytAtRC)return u.return();D=icS(null);return _.n(u,Z.xv(D),2)}Y=u.yieldResult;_.DH.ytAtRC&&_.DH.ytAtRC(JSON.stringify(Y));_.F2(u)})});
pWt().then(function(D){var Y,u,t,b;return _.m(function(r){if(r.nextAddress==1)return D.bindInnertubeChallengeFetcher(function(F){return Z.xv(icS(F))}),_.n(r,FC1(),2);
Y=r.yieldResult;u=D.getLatestChallengeResponse();t=u.challenge;if(!t)throw Error("gi");b={challenge:t,ti:xD(t),pk:Y,bgChallenge:new Tq};G.resolve(b);D.registerChallengeFetchedCallback(function(F){F=F.challenge;if(!F)throw Error("hi");F={challenge:F,ti:xD(F),pk:Y,bgChallenge:new Tq};Z.xA=Promise.resolve(F)});
_.F2(r)})})}else W.preload&&Mq6(this,new Promise(function(D){_.Xc(_.KX,function(){D(eld(Z))},0)}))};
wpg=function(y){var W={preload:!0,useBotguardEverywhere:_.O("attmusi")},c=!1;if(typeof W==="boolean")var Z={preload:W};else typeof W==="undefined"?Z={preload:!0}:(Z=W,c=!!W.e8M);W=c?void 0:new _.CX;_.wh.instance=new _.wh(y,Z,W);return _.wh.instance};
_.wh.prototype.xd4=function(){var y=this;return _.m(function(W){return W.nextAddress==1?_.n(W,Promise.race([y.xA,null]),2):W.return(!!W.yieldResult)})};
_.wh.prototype.t90=function(y,W,c){var Z=this,G,D,Y;return _.m(function(u){Z.xA===null&&Mq6(Z,eld(Z));G=!1;D={};Y=function(){var t,b,r;return _.m(function(F){switch(F.nextAddress){case 1:return _.n(F,Z.xA,2);case 2:t=F.yieldResult;D.challenge=t.challenge;if(!t.pk){"c1a"in t.ti&&(D.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");F.jumpTo(3);break}b=Object.assign({},{c:t.challenge,e:y},W);_.tm(F,4);G=!0;if(_.O("attbs")&&!_.O("attmusi")){r=_.grV(t.pk,{mK:b});F.jumpTo(6);break}return _.n(F,t.pk.snapshot({mK:b}),
7);case 7:r=F.yieldResult;case 6:r?D.webResponse=r:D.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.J6(F,3);break;case 4:_.rs(F),D.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(y==="ENGAGEMENT_TYPE_PLAYBACK"){var K=t.ti,l={};if(K.c6a){var N=Number(_.Nn("DCLKSTAT",0));l.reportingStatus=String(Number(K.c)^(isNaN(N)?0:N))}K.c6b&&(l.broadSpectrumDetectionResult=String(Number(K.c)^Number(_.Nn("CATSTAT",0))));D.adblockReporting=l}return F.return(D)}})};
return u.return(Promise.race([Y(),q$Q(c,function(){var t=Object.assign({},D);G&&(t.error="ATTESTATION_ERROR_VM_TIMEOUT");return t})]))})};
var icS=function(y){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};y&&(W.interpreterHash=y);return W},eld=function(y,W){W=W===void 0?0:W;
var c,Z,G,D,Y,u,t,b,r,F,K,l;return _.m(function(N){switch(N.nextAddress){case 1:c=icS(ldi().ahB);if(_.O("att_fet_ks"))return _.tm(N,7),_.n(N,y.xv(c),9);_.tm(N,4);return _.n(N,ktD(y,c),6);case 6:Y=N.yieldResult;G=Y.gxk;D=Y.wUD;Z=Y;_.J6(N,3);break;case 4:return _.rs(N),_.Rs(Error("ii`"+W)),jfB(y,864E5),N.return({challenge:"",ti:{},pk:void 0,bgChallenge:void 0});case 9:Z=N.yieldResult;if(!Z)throw Error("ji");if(!Z.challenge)throw Error("ki");G=Z.challenge;D=xD(G);if("c1a"in D&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("li");
_.J6(N,3);break;case 7:u=_.rs(N);_.Rs(u);W++;if(W>=5)return _.Rs(Error("ii`"+W)),jfB(y,864E5),N.return({challenge:"",ti:{},pk:void 0,bgChallenge:void 0});t=1E3*Math.pow(2,W-1)+Math.random()*1E3;return N.return(new Promise(function(P){_.Xc(_.KX,function(){P(eld(y,W))},t)}));
case 3:b=IoO(D);jfB(y,b*1E3);r=void 0;if(!("c1a"in D&&Z.bgChallenge)){N.jumpTo(10);break}F=NoI(Z.bgChallenge);_.tm(N,11);return _.n(N,NL8(ldi(),F),13);case 13:_.J6(N,12);break;case 11:return K=_.rs(N),_.Rs(K),N.return({challenge:G,ti:D,pk:r,bgChallenge:F});case 12:return _.tm(N,14),r=new _.lU({challenge:F,g3:{wX:"aGIf"}}),_.n(N,r.ke4,16);case 16:_.J6(N,10);break;case 14:l=_.rs(N),_.Rs(l),r=void 0;case 10:return N.return({challenge:G,ti:D,pk:r,bgChallenge:F})}})};
_.wh.prototype.xv=function(y){var W=this,c;return _.m(function(Z){c=W.networkStatusManager;if(!c||c.isNetworkAvailable())return Z.return(W.network.xv(y));_.Vu("att_pna",void 0,"attestation_challenge_fetch");return Z.return(new Promise(function(G){c.listenOnce("publicytnetworkstatus-online",function(){W.network.xv(y).then(G)})}))})};
var ySZ=function(y){if(!y)throw Error("ji");if(!y.challenge)throw Error("ki");var W=y.challenge,c=xD(W);if("c1a"in c&&(!y.bgChallenge||!y.bgChallenge.program))throw Error("li");return Object.assign({},y,{gxk:W,wUD:c})},ktD=function(y,W){var c,Z,G,D,Y;
return _.m(function(u){switch(u.nextAddress){case 1:c=void 0,Z=0,G={};case 2:if(!(Z<5)){u.jumpTo(4);break}if(!(Z>0)){u.jumpTo(5);break}G.f4B=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return _.n(u,new Promise(function(t){return function(b){_.Xc(_.KX,function(){b(void 0)},t.f4B)}}(G)),5);
case 5:return _.tm(u,7),_.n(u,y.xv(W),9);case 9:return D=u.yieldResult,u.return(ySZ(D));case 7:c=Y=_.rs(u),Y instanceof Error&&_.Rs(Y);case 8:Z++;G={f4B:void 0};u.jumpTo(2);break;case 4:throw c;}})},Mq6=function(y,W){y.xA=W},WVS=function(y){var W,c,Z;
return _.m(function(G){if(G.nextAddress==1)return _.n(G,Promise.race([y.xA,null]),2);W=G.yieldResult;var D=eld(y);y.xA=D;(c=W)==null||(Z=c.pk)==null||Z.dispose();_.F2(G)})},jfB=function(y,W){var c=Date.now()+W,Z=function(){var G;
return _.m(function(D){G=c-Date.now();return G<1E3?_.n(D,WVS(y),0):(_.Xc(_.KX,Z,Math.min(G,6E4)),D.jumpTo(0))})};
Z()},q$Q=function(y,W){return new Promise(function(c){_.Xc(_.KX,function(){c(W())},y)})};var cSQ=function(){};
cSQ.prototype.processContext=function(y){var W=_.wh.instance;if(!W)return _.CF();var c=QzH(y);return c?new Vz(W.t90(c,VrE(y),500).then(function(Z){var G;(y==null?0:(G=y.innerTubeRequest)==null?0:G.context)||(y.innerTubeRequest.context={});G=y.innerTubeRequest.context;G.request||(G.request={});G.request.attestationResponseData=Z})):_.CF()};var ZPd=function(y){this.innertubeTransportService=y};
ZPd.prototype.xv=function(y){_.Vu("att_fsr",void 0,"attestation_challenge_fetch");return _.OU(this.innertubeTransportService,y,_.Tx(_.wjE)).then(function(W){_.Vu("att_frr",void 0,"attestation_challenge_fetch");return W})};_.GaD=function(y){this.innertubeTransportService=y};var f_9=new _.Sm("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var oyZ=function(){},z9Z=function(y,W,c,Z,G){var D=_.Nn("YPC_MB_URL");
_.nog(D).then(function(){DgH(D,y,W,c,Z,G)})},DgH=function(y,W,c,Z,G,D){try{var Y=payments.business.integration,u=payments.business.integration.Style.create().withMaterialDesignStyle(),t=Y.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.O("enable_window_constrained_buy_flow_dialog")&&(t=t.usingPopupStyle("windowConstrained"));D&&(t=t.usingCloseCallback(D));var b=c?c:_.Nn("YPC_GB_LANGUAGE"),r=_.Nn("SESSION_INDEX");Y.bootstrap.fromPaymentsUrl(y);Y.bootstrap.asMashupMode(t).usingGaiaIndex(r).usingLocale(b).usingStyle(u).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Y.standaloneContextAuthId.forGaia()).purchaseManager(W,function(F){Z&&Z(F)}).load(void 0,G)}catch(F){throw G&&G(F),_.OP(F),F;
}};var YbQ=new _.Sm("PURCHASE_MANAGER_TOKEN");var mgZ=function(){var y=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return y.videos},
getContinuationsPresent:function(){return y.continuationsPresent},
setVideos:function(W){y.videos=W},
getRecommendedVideos:function(){return y.recommendedVideos},
setRecommendedVideos:function(W){y.recommendedVideos=W}}};
mgZ.prototype.addVideos=function(y){y&&(this.videos=y.filter(function(W){return!!_.huD(W)}).map(function(W){var c=_.huD(W);
a:{var Z;if(W.playlistVideoRenderer&&((Z=W.playlistVideoRenderer)==null?0:Z.voteSortTiebreaker))var G=W.playlistVideoRenderer.voteSortTiebreaker;else{if(_.g(W,es)){var D;if(Z=(G=_.g(W,es))==null?void 0:(D=G.playlistItemData)==null?void 0:D.voteSortTiebreaker){G=Z;break a}}G=""}}return{itemId:c,videoId:_.LGH(W),voteCount:_.vOF(W),voteSortTiebreaker:G}}),this.continuationsPresent=!!_.g(y[y.length-1],_.yQ))};
var sfQ=function(y,W){return y.videos.findIndex(function(c){return c.itemId===W})},uFQ=function(y,W){return y.recommendedVideos.findIndex(function(c){return c.itemId===W})},tL9=function(y){y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:y}}}}};_.U().resolve(_.i1).resolveCommand(y)};var nyB=function(){mgZ.apply(this,arguments)};
_.R(nyB,mgZ);
var oLV=function(y,W,c,Z){if(!y.parentElem)throw Error("qi");var G=sfQ(y,W);G===-1&&(G=uFQ(y,W),G=G!==-1?G+y.videos.length:-1);if(G===-1)throw Error("ri");var D=G>=y.videos.length?y.recommendedVideos[G-y.videos.length]:y.videos[G];D.voteCount=c;D.voteSortTiebreaker=Date.now().toString();G>=y.videos.length?y.recommendedVideos.splice(G-y.videos.length,1):y.videos.splice(G,1);var Y=y.videos;for(var u=0,t=Y.length-1;u<=t;){var b=Math.floor((u+t)/2);if(Y[b].voteCount<D.voteCount)t=b-1;else if(Y[b].voteCount>D.voteCount)u=
b+1;else{a:{var r=D.voteSortTiebreaker;var F=Y[b].voteSortTiebreaker;if(r.length!==F.length)r=r.length>F.length;else{for(var K=0;K<r.length;K++){var l=r.charCodeAt(K),N=F.charCodeAt(K);if(l>N){r=!0;break a}if(l<N)break}r=!1}}r?t=b-1:u=b+1}}Y=u;if(Y===-1)throw Error("si");y.videos.splice(Y,0,D);G!==Y&&Xud(y,G,Y,W,c,Z)},Xud=function(y,W,c,Z,G,D){var Y,u=(Y=y.parentElem)==null?void 0:Y.children,t=Math.min(W,c),b=Math.max(W,c);
if(u)for(Y=t;Y<=b;Y++)u[Y].style.viewTransitionName="item-"+String(Y);document.startViewTransition(function(){if(y.parentElem){var r=y.parentElem.children;if(!(!r||W<0||W>=r.length||c<0||c>=r.length)){var F=r[W];if(F){F.remove();y.showRefreshPill=c>=y.videos.length-1&&y.continuationsPresent;if(!y.showRefreshPill){r=r[c]||null;var K;(K=y.parentElem)==null||K.insertBefore(F,r)}_.Z2(y.parentElem,"yt-update-video-data-voting-animation",{toIdx:c,itemId:Z,newVoteCount:G,voteStatus:D,hideItem:y.showRefreshPill})}}}}).finished.then(function(){if(u)for(var r=
t;r<=b;r++)u[r].style.viewTransitionName="";
if(y.showRefreshPill)tL9(_.bN("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var F;if(F=r=(F=y.parentElem)==null?void 0:F.children[c])F=r.getBoundingClientRect(),r=F.bottom,F=!(F.top>=0&&r<=y.clientHeight);F&&(F=_.rK(W>c?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(W-c)),tL9(F))}})};var bP6=_.ey("innertube_request_limit_ms",3E3),UgQ=function(y,W){var c=this;y?this.innertubeTransportServicePromise=Promise.resolve(y):W&&(this.innertubeTransportServicePromise=W(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new JX(bP6,function(Z){return rSZ(c,Z)},0);
this.validateMiniAppVideoIdRateLimiter=new JX(bP6,function(Z){return FVD(c,Z)},1)},e0H=function(y,W){y.JSC$14867_miniAppId=W;
y.reportMiniAppValueRateLimiter=new JX(bP6,function(c){return rSZ(y,c)},0);
y.validateMiniAppVideoIdRateLimiter=new JX(bP6,function(c){return FVD(y,c)},1)},q33=function(y,W){var c;
return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.reportMiniAppValueRateLimiter.call(W),2);c=Z.yieldResult;return Z.return([c,W])})},rSZ=function(y,W){var c,Z,G,D,Y,u,t;
return _.m(function(b){switch(b.nextAddress){case 1:return _.n(b,y.innertubeTransportServicePromise,2);case 2:return c=b.yieldResult,Z=_.Tx(Z4E),G=Date.now(),D={externalPostId:y.JSC$14867_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(G/1E3),nanos:Math.round(G%1E3*1E6)},intValue:""+W}},_.tm(b,3),_.n(b,_.OU(c,D,Z),5);case 5:Y=b.yieldResult;_.J6(b,4);break;case 3:throw u=_.rs(b),u;case 4:if(Y){if("error"in Y&&Y.error)throw Y.error;if(Y.errorMetadata)throw Error("ti`"+
Y.errorMetadata.status);if(t=Y.userStatResult)return b.return(t);throw Error("ui");}throw Error("vi");}})},jQf=function(y){var W,c,Z,G,D;
_.m(function(Y){switch(Y.nextAddress){case 1:return _.n(Y,y.innertubeTransportServicePromise,2);case 2:return W=Y.yieldResult,c=_.Tx(Z4E),Z={externalPostId:y.JSC$14867_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.tm(Y,3),_.n(Y,_.OU(W,Z,c),5);case 5:G=Y.yieldResult;_.J6(Y,4);break;case 3:throw D=_.rs(Y),D;case 4:if(G==null)throw Error("vi");if("error"in G&&G.error)throw G.error;if(G.errorMetadata)throw Error("ti`"+G.errorMetadata.status);_.F2(Y)}})};
UgQ.prototype.flush=function(){var y=this;return _.m(function(W){return W.nextAddress==1?_.n(W,y.reportMiniAppValueRateLimiter.flush(),2):_.n(W,y.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var ke9=function(y,W){return _.m(function(c){return c.nextAddress==1?_.n(c,y.validateMiniAppVideoIdRateLimiter.call(W),2):c.return(c.yieldResult)})},FVD=function(y,W){var c,Z,G,D,Y,u;
return _.m(function(t){switch(t.nextAddress){case 1:return _.n(t,y.innertubeTransportServicePromise,2);case 2:return c=t.yieldResult,Z=_.Tx(er0),G={videoId:W},_.tm(t,3),_.n(t,_.OU(c,G,Z),5);case 5:D=t.yieldResult;_.J6(t,4);break;case 3:throw Y=_.rs(t),Y;case 4:if(D){if("error"in D&&D.error)throw D.error;if(D.errorMetadata)throw Error("ti`"+D.errorMetadata.status);if(u=D.playabilityStatus)return t.return(u.status);throw Error("wi");}throw Error("vi");}})};
UgQ[dq]=[_.xN(_.b0),_.xN(RIE)];var $gH=function(){this.clientData=new Map};
$gH.prototype.getData=function(y){return this.clientData.get(y)};var KVd=function(y){this.store=y};
KVd.prototype.handleResponse=function(y){(y=_.g(y.frameworkUpdates,J7))&&_.mZ(y,this.store)};
KVd[dq]=[_.Fq];var OPQ=new _.Sm("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var gyg={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 R9Q=new _.Sm("ICON_SET_TOKEN"),l_3=new _.Sm("ICON_URL_PROVIDER_TOKEN"),EyQ=new _.Sm("PREFETCH_ICONS_TOKEN"),NQ9=new _.Sm("ICON_MAP_FN_TOKEN");var qA={},I_B=(qA.ACCESS_TIME="clock",qA.ACCOUNT_BOX="person_account",qA.ACCOUNT_BOX_CAIRO="person_account_cairo",qA.ACCOUNT_CIRCLE="person_circle",qA.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",qA.ACCOUNT_LINKED="account_link_success",qA.ACCOUNT_UNLINKED="account_link",qA.ADD_FRIEND="people",qA.ADD_TO_LIBRARY=jo("add"),qA.ADD_TO_PLAYLIST="add",qA.ADD_TO_QUEUE_TAIL="list_queue",qA.ADD_TO_REMOTE_QUEUE="list_music",qA.ADD_TO_WATCH_LATER="clock",qA.ADD_VIDEO_LINK="film_strip_add",qA.ALERT_WARN_RED="alert_triangle",
qA.ARROW_BACK="arrow_left",qA.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",qA.ARROW_DROP_DOWN="chevron_down",qA.ARROW_DROP_UP="chevron_up",qA.ARROW_FORWARD="arrow_right",qA.AUDIOTRACK="audio",qA.AUTO_AWESOME="sparkle",qA.AVATAR_ANONYMOUS="person_circle",qA.AVATAR_LOGGED_OUT="person_circle",qA.BACK="arrow_left",qA.BAR_CHART="bar_graph",qA.BLOCK="slash_circle_left",qA.BLOCK_USER="slash_circle_left",qA.BOOKMARK_BORDER="bookmark",qA.BREAKING_NEWS_ALT_1="article_alert",qA.BROADCAST_CAIRO="podcast_cairo",
qA.BUG_REPORT="bug",qA.CAMERA_ALT="camera",qA.CAMPAIGN="megaphone",qA.CANCEL="x_circle",qA.CAPTIONS="closed_caption",qA.CAST_OUTLINE="chromecast",qA.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",qA.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",qA.CHAT="message_bubble_left",qA.CHAT_BUBBLE="message_bubble_empty",qA.CHECK_BOX_OUTLINE_BLANK="box_empty",qA.CHECK_CIRCLE_OUTLINE="check_circle",qA.CHECK_CIRCLE_THICK="check_circle",qA.CLARIFY="article_clarify",qA.CLOSED_CAPTION_SELECTED="closed_caption",qA.CLOSE=
"x_mark",qA.CLOUD_UPLOAD="cloud_arrow_up",qA.COLLAPSE="chevron_up",qA.COLLAPSE_CAIRO="chevron_up_cairo",qA.COLLECTION="layers",qA.COLOR_LENS="palette",qA.COMMENT="message_bubble_right",qA.CONSENT_SHIELD="person_shield",qA.CONTENT_CUT="scissors",qA.CONTENT_CUT_CAIRO="scissors_cairo",qA.COURSE=_.O("web_enable_course_icon_update")?"creator_academy":"lightbulb",qA.COURSE_CAIRO=_.O("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",qA.CREATION_LIVE="radar_live",qA.CREATION_UPLOAD=
"my_videos",qA.CREATION_UPLOAD_RED="upload",qA.CREATOR_STUDIO="youtube_studio",qA.DELETE="trash_can",qA.DELETE_SWEEP="trash_can",qA.DESKTOP="laptop",qA.DISLIKE="thumb_down",qA.DISLIKE_SELECTED="thumb_down",qA.DISMISSAL="x_mark",qA.DISMISS_QUEUE="list_remove",qA.DOWN_ARROW="arrow_down",qA.DO_NOT_DISTURB="slash_circle_left",qA.DRAFT="paper_corner_folded",qA.DRAG_HANDLE="bars_2",qA.EDIT="pencil",qA.EMOJI="face_very_happy",qA.EMOJI_FLAGS="flag",qA.EMOJI_OBJECTS="lightbulb",qA.EMOJI_PEOPLE="face_very_happy",
qA.EMOJI_RECENT="clock",qA.EMPTY_HEART="heart",qA.EMPTY_LIKE="thumb_up",qA.ERROR_BLACK="alert_circle",qA.ERROR_OUTLINE="alert_circle",qA.EXIT_APP="arrow_in",qA.EXIT_TO_APP="arrow_in",qA.EXPAND="chevron_down",qA.EXPAND_ALL="chevron_expand",qA.EXPAND_CAIRO="chevron_down_cairo",qA.EXPAND_LESS="chevron_up",qA.EXPAND_MORE="chevron_down",qA.EXPLORE="compass",qA.EXPLORE_DESTINATION="compass",qA.EXTERNAL_LINK="open_new",qA.FAB_UPLOAD="upload",qA.FACE_HAPPY_OUTLINE="face_happy",qA.FACT_CHECK="article_check",
qA.FASHION_LOGO="fashion",qA.FASHION_LOGO_CAIRO="fashion_cairo",qA.FAVORITE="heart",qA.FEEDBACK="message_bubble_alert",qA.FEEDBACK_CAIRO="message_bubble_alert_cairo",qA.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",qA.FILL_ARROW_SOLID_UP_16="arrow_solid_up",qA.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",qA.FLAG="flag",qA.FULL_HEART="heart",qA.GAME_CONSOLE_DPAD="game_console_dpad",qA.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",qA.GAMING_LOGO="gaming",qA.GAMING_LOGO_CAIRO="gaming_cairo",qA.GO_TO_PAGE=
"arrow_right",qA.GROUPS="people_group",qA.HAPPY="face_happy",qA.HEALTH_AND_SAFETY="shield_plus",qA.HELP="question_circle",qA.HELP_CAIRO="question_circle_cairo",qA.HELP_OUTLINE="question_circle",qA.HIDE="slash_circle_left",qA.IMAGE="image",qA.INFINITY_ICON="infinity",qA.INFO="info_circle",qA.INFO_OUTLINE="info_circle",qA.INSERT_CHART_OUTLINED="bar_graph_box_vertical",qA.INSERT_PHOTO="image",qA.KEEP="pin",qA.KEEP_OFF="pin_off",qA.KEYBOARD="keyboard",qA.KEYBOARD_ARROW_DOWN="chevron_down",qA.KEYBOARD_ARROW_UP=
"chevron_up",qA.KIDS_BLOCK="slash_circle_left",qA.LANGUAGE="globe",qA.LAUNCH="open_new",qA.LEARNING="lightbulb",qA.LEARNING_CAIRO="lightbulb_cairo",qA.LIBRARY_ADD=jo("library_add"),qA.LIBRARY_OUTLINE="library",qA.LIBRARY_REMOVE=jo(),qA.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",qA.LIKES_PLAYLIST="thumb_up",qA.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",qA.LIKE="thumb_up",qA.LIKE_SELECTED="thumb_up",qA.LIVE="radar_live",qA.LIVE_CAIRO="radar_live_cairo",qA.LIVE_UNLISTED="link",qA.LOCATION_ON="location_point",
qA.LOCATION_PIN="location_point",qA.LOOP="arrow_repeat",qA.LOOP_ACTIVE="arrow_repeat",qA.LOOP_ONE="arrow_repeat_1",qA.LOOP_ONE_ACTIVE="arrow_repeat_1",qA.MEH="face_meh",qA.MEMBERS_ONLY_MODE_OFF="message_bubble_left",qA.MESSAGE="message_bubble_left",qA.MICROPHONE_ON="mic",qA.MIX="youtube_mix",qA.MONETIZATION_ON="dollar_sign_circle",qA.MONEY_FILL="dollar_sign_container",qA.MONEY_FILL_JPY="yen_sign_container",qA.MONEY_HEART="dollar_sign_heart",qA.MORE_HORIZ="overflow_horizontal",qA.MORE_VERT="overflow_vertical",
qA.MUSIC="audio",qA.MUSIC_CAIRO="audio_cairo",qA.MUSIC_NOTE_SYMBOL="music",qA.MUSIC_SHUFFLE="arrow_shuffle",qA.MY_CHANNEL="person_circle",qA.MY_LOCATION="location_point",qA.NEWS_STORY="news",qA.NEXT="chevron_right",qA.NOTIFICATIONS="bell",qA.NOTIFICATIONS_ACTIVE="bell_on",qA.NOTIFICATIONS_CAIRO="bell_cairo",qA.NOTIFICATIONS_DONE_CHECKMARK="check",qA.NOTIFICATIONS_INBOX="bell",qA.NOTIFICATIONS_NONE="bell",qA.NOTIFICATIONS_OFF="bell_off",qA.NOT_INTERESTED="slash_circle_left",qA.OFFICIAL_ARTIST_BADGE=
"audio",qA.OFFLINE_CLOUD="cloud_off",qA.OFFLINE_DOWNLOAD="download",qA.OFFLINE_DOWNLOAD_CAIRO="download_cairo",qA.OFFLINE_PAUSE="pause",qA.OPEN_IN_NEW="open_new",qA.OUTLINE_ADJUST="adjust",qA.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",qA.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",qA.OUTLINE_BAG="bag",qA.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",qA.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",qA.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",qA.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
qA.PAID="dollar_sign",qA.PAUSE_OUTLINED="pause",qA.PAYMENT="credit_card",qA.PERSON_RADAR_FILLED="person_radar",qA.PHONE_DOWNLOAD="mobile_download",qA.PLAYABLES_LOGO="tic_tac_toe",qA.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",qA.PLAYLISTS="list_play_arrow",qA.PLAYLISTS_CAIRO="list_play_arrow_cairo",qA.PLAYLIST_ADD=jo("list_add"),qA.PLAYLIST_ADD_CHECK=jo("list_check"),qA.PLAY_ALL="play_arrow",qA.PLAY_CIRCLE="play_arrow_circle",qA.PLAY_OUTLINED="play_arrow_circle",qA.PRIVACY_INFO="shield",qA.PRIVACY_PRIVATE=
"lock",qA.PRIVACY_PUBLIC="earth",qA.PRIVACY_UNLISTED="link",qA.PROMOTE="megaphone",qA.PURCHASES="price_tag",qA.PURCHASE_SUPER_CHAT="super_chat",qA.PURCHASE_SUPER_STICKER="super_sticker",qA.QUESTION_ANSWER="message_bubble_question",qA.QUEUE_PLAY_LAST="list_queue_last",qA.QUEUE_PLAY_NEXT="list_play_arrow",qA.REMIX_FILLED="youtube_shorts_remix",qA.REMOVE="bar_circle",qA.REMOVE_CIRCLE="bar_circle",qA.REMOVE_CIRCLE_OUTLINE="bar_circle",qA.REMOVE_FROM_HISTORY="bar_circle",qA.REMOVE_FROM_PLAYLIST="bar_circle",
qA.REPLAY="arrow_circle",qA.REPORT_PROBLEM="alert_triangle",qA.SAD="face_sad",qA.SAVE_PLAYLIST=jo("library_add"),qA.SCHEDULE="clock",qA.SCHOOL="creator_academy",qA.SCREEN_FULLSCREEN="screen_full",qA.SEARCH_HISTORY="arrow_time",qA.SELL="price_tag",qA.SETTINGS="gear",qA.SETTINGS_CAIRO="gear_cairo",qA.SETTINGS_LIGHT="gear",qA.SETTINGS_MATERIAL="gear",qA.SHARE_ARROW="share",qA.SHIELD_WITH_AVATAR="person_shield",qA.SHOPPING_BAG="bag",qA.SHOPPING_BAG_CAIRO="bag_cairo",qA.SHOPPING_CART="cart",qA.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",qA.SHORTS_DISLIKE="youtube_shorts_thumb_down",qA.SHORTS_LIKE="youtube_shorts_thumb_up",qA.SHORTS_SHARE="youtube_shorts_share",qA.SHUFFLE="arrow_shuffle",qA.SLOW_MODE_OFF="message_bubble_left",qA.SOCIAL="people",qA.SORT="menu_sort",qA.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",qA.SPEED_1X="1x",qA.SPEED_1_POINT_2X="1_point_2x",qA.SPEED_1_POINT_5X="1_point_5x",qA.SPEED_1_POINT_8X="1_point_8x",qA.SPEED_2X="2x",qA.SPEED_POINT_2X="point_2x",qA.SPEED_POINT_8X="point_8x",
qA.SPONSORSHIP_STAR=_.O("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",qA.STAFF_PICK="spotlight",qA.START_DVR="add",qA.STAR_BORDER="star",qA.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",qA.STICKER_EMOTICON="face_happy",qA.STOP_DVR="stop",qA.SUBSCRIBE="youtube_logo_icon",qA.SUBSCRIBE_PLUS="add_cairo",qA.SUBSCRIPTION_MANAGER="gear",qA.SUPERVISOR_ACCOUNT="people",qA.SWAP_HORIZ="arrow_swap_horizontal",qA.SWITCH_ACCOUNTS="person_account",qA.TAB_ACCOUNT="person",qA.TAB_ACTIVITY=
"bell",qA.TAB_EXPLORE="compass",qA.TAB_HOME="home",qA.TAB_HOME_CAIRO="home_cairo",qA.TAB_INBOX="mail",qA.TAB_LIKED="thumb_up",qA.TAB_MUSIC_PREMIUM="youtube_music",qA.TAB_SHORTS="youtube_shorts",qA.TAB_SHORTS_CAIRO="youtube_shorts_cairo",qA.TAB_SUBSCRIPTIONS="subscriptions",qA.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",qA.TAB_TRENDING="fire",qA.TIMER="stopwatch",qA.TRENDING="fire",qA.TRENDING_CAIRO="fire_cairo",qA.TRENDING_UP="rating_up",qA.TROPHY="trophy",qA.TROPHY_CELEBRATIONS="fireworks",qA.TUNE=
"adjust",qA.UNBLOCK_USER="bar_circle",qA.UNLIMITED="youtube_logo_icon",qA.UNPLUGGED_LIVE_GUIDE="radar_live",qA.UNPLUGGED_SPORTS="eye_off",qA.UPLOADS="library",qA.UP_ARROW="arrow_up",qA.VERTICAL_ALIGN_BOTTOM="download",qA.VERY_HAPPY="face_very_happy",qA.VERY_SAD="face_very_sad",qA.VIDEOS="play_arrow_circle",qA.VIDEO_CALL="video_camera_add",qA.VIDEO_LIBRARY_WHITE="library",qA.VIDEO_YOUTUBE="youtube_logo_icon",qA.VIEW_LIST="list_view",qA.VIEW_LIST_CAIRO="list_view_cairo",qA.VISIBILITY="eye",qA.VISIBILITY_OFF=
"eye_off",qA.VOLUME_MUTE="volume_off",qA.VOLUME_UP="volume_on",qA.WALLPAPER="image",qA.WARNING="alert_triangle",qA.WATCH_HISTORY="arrow_time",qA.WATCH_HISTORY_CAIRO="arrow_time_cairo",qA.WATCH_LATER="clock",qA.WATCH_LATER_CAIRO="clock_cairo",qA.WATCH_RELATED_MIX="youtube_mix",qA.WHAT_TO_WATCH="home",qA.YOUTUBE_MUSIC_MONOCHROME="youtube_music",qA.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",qA.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",qA.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",qA.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",qA.YT_OUTLINE_MUSIC_24="music",qA);var pud={},PG9=(pud.TAB_SHORTS="youtube_shorts",pud.TAB_SHORTS_CAIRO="youtube_shorts",pud.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",pud);var JSS={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_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],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]],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]],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]],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]],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_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]]};var VL6={youtube_shorts:[[0,10,24],[1,10,24]]};var kz=function(y){this.iconUrlProvider=y};
kz.prototype.resolveIcon=function(y,W){var c=y.iconName;c=c.replace(/-/g,"_");y=Object.assign({},y,{iconName:this.mapIconTypeToStandardName(c)||c.toLowerCase()});if(_.O("enable_web_delhi_icons")){var Z;return Snw(VL6,y,((Z=this.iconUrlProvider)==null?void 0:Z.getYtStandardUrl)||xpD,W)}var G;return Snw(JSS,y,((G=this.iconUrlProvider)==null?void 0:G.getYtStandardUrl)||aoI,W)};
kz.prototype.mapIconTypeToStandardName=function(y){return _.O("enable_web_delhi_icons")?PG9[y.toUpperCase()]:I_B[y.toUpperCase()]};
kz[dq]=[_.xN(l_3)];var CGf=function(y){this.urlProvider=this.iconUrlProvider=y};
_.R(CGf,kz);
CGf.prototype.resolveIcon=function(y,W){y.iconName==="youtube_logo"&&(y.iconName="yt-logo-updated");if(y.iconName==="youtube_premium_logo"||y.iconName==="youtube_red_logo")y.iconName="yt-logo-red-updated";var c=Object.assign({},y);y.iconName==="menu"&&(c.iconName="bars_3",c.iconStyle="youtube_outline");y.iconName==="youtube_music"&&(c.iconStyle="youtube_fill");y.iconName==="mail"&&y.iconSetName==="socialNetworksRound"&&(c.iconName="email");y.iconName==="more"&&(c.iconName="overflow_horizontal");y.iconName===
"fullscreen"&&(c.iconName="screen_full");if(y.iconName==="play_all"||y.iconName==="play_arrow")c.iconStyle="youtube_fill";y.iconName==="premium_standalone"&&(c.iconName="premium_standalone_cairo");_.O("enable_connect_icon_update_web")&&y.iconName==="account_linked"&&(c.iconName="circles_overlap_check",c.iconStyle="youtube_fill");_.O("enable_connect_icon_update_web")&&y.iconName==="account_unlinked"&&(c.iconName="circles_overlap",c.iconStyle="youtube_outline");y=Object.assign({},c,{iconName:(kz.prototype.mapIconTypeToStandardName.call(this,
c.iconName)||c.iconName).toLowerCase()});var Z;return(y=Snw(gyg,y,((Z=this.urlProvider)==null?void 0:Z.getUrl)||i0O,W))?y:kz.prototype.resolveIcon.call(this,c,W)};
CGf[dq]=[_.xN(l_3)];_.Qfg=1;var jJ=function(){};
_.R(jJ,BB);jJ.prototype.resolveCommand=function(y){var W,c;return _.m(function(Z){W=_.g(y,GFV);if(!W)return Z.return();c=Number(W.enableDelayedPacfLoggingTvMs);if(isNaN(c)){var G=rb();qyT(G,W,0)}else qyT(rb(),W,c);_.F2(Z)})};_.y6=function(){};
_.R(_.y6,BB);
_.y6.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b;return _.m(function(r){Z=_.g(y,f95);D=(G=W.form)==null?void 0:G.element;u=(Y=D)==null?void 0:Y.closest("ytd-enforcement-message-view-model");if(!Z||!u)return r.return();c.allowAdsAction||(t=Z.fundingChoiceInstructionPageUrl,c.allowAdsAction=new LCZ(window,_.OW(t)));var F=c.allowAdsAction;F.wallElement=u;F.allowAdsPopup.style.setProperty("display","flex","important");var K=F.scrollManager;K.originalBodyOverflow=K.JSC$7866_domHelper.JSC$7234_document_.body.style.overflow;K.JSC$7866_domHelper.JSC$7234_document_.body.style.overflow=
"hidden";F.wallElement.style.setProperty("display","none","important");qNJ(F.accessibilityManager,F.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((b=c.allowAdsAction.allowAdsPopup)&&b instanceof HTMLElement)for(F=_.z(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),K=F.next();!K.done;K=F.next()){var l=_.z(K.value);K=l.next().value;l=l.next().value;b.style.setProperty(K,l)}_.F2(r)})};
_.y6.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var WY=function(){};
_.R(WY,BB);WY.prototype.resolveCommand=function(y){var W;return _.m(function(c){W=_.g(y,oPT);if(!W)return c.return();gvD(y);_.F2(c)})};var cY=function(y){this.JSC$14906_commandHandler=y};
_.R(cY,BB);
cY.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1){c=_.g(y,h8E);if((Z=c)==null||!Z.text||!navigator.clipboard)return r.return();_.tm(r,2);return _.n(r,navigator.clipboard.writeText(c.text),4)}if(r.nextAddress!=2){if(!c.successActions||c.successActions.length===0)return r.return();G=_.z(c.successActions);for(D=G.next();!D.done;D=G.next())Y=D.value,W.JSC$14906_commandHandler.resolveCommand(Y);return _.J6(r,0)}_.rs(r);if(!c.failureActions||c.failureActions.length===
0)return r.return();u=_.z(c.failureActions);for(t=u.next();!t.done;t=u.next())b=t.value,W.JSC$14906_commandHandler.resolveCommand(b);_.F2(r)})};
cY[dq]=[_.i1];var ZC=function(y){this.JSC$14910_commandHandler=y};
_.R(ZC,BB);
ZC.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K;return _.m(function(l){switch(l.nextAddress){case 1:Z=_.g(y,tz8);if(!Z)return l.return();_.tm(l,2);if(!Z.imageBytes&&!Z.imageUrl)throw Error("xi");if(!Z.imageUrl){if(Z.imageBytes){D=Z.imageBytes;Y=D.replace(/-/g,"+").replace(/_/g,"/");var N=euF(Y);G=V7(N)}l.jumpTo(4);break}return _.n(l,fetch(Z.imageUrl),5);case 5:return u=l.yieldResult,_.n(l,u.blob(),6);case 6:t=l.yieldResult,G=V7(t);case 4:F=(b=W)==null?void 0:(r=b.form)==null?
void 0:r.element;K=document.createElement("a");hn(K,G);F.appendChild(K);K.download="";K.click();F.removeChild(K);URL.revokeObjectURL(_.N9(G));Z.successCommand&&c.JSC$14910_commandHandler.resolveCommand(Z.successCommand);_.J6(l,0);break;case 2:_.rs(l),Z.errorCommand&&c.JSC$14910_commandHandler.resolveCommand(Z.errorCommand),_.F2(l)}})};
ZC[dq]=[_.i1];var Gz=function(y){this.store=y};
_.R(Gz,BB);Gz.prototype.resolveCommand=function(y){var W=this,c,Z,G;return _.m(function(D){Z=(c=_.g(y,_.kH2))==null?void 0:c.entityBatchUpdate;if(!Z)return D.jumpTo(0);G=Object.assign({},Z,{mutations:[].concat(_.No(Z.mutations||[]))});return _.n(D,_.mZ(G,W.store),0)})};var AS9=function(y){this.JSC$14917_commandHandler=y;this.feedbackDialogMap=new Map};
AS9.prototype.openDialog=function(y,W){(y=this.feedbackDialogMap.get(y))&&this.JSC$14917_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:y}},W)};
AS9[dq]=[_.i1];var f5=new _.Sm("FEEDBACK_CONTROLLER_TOKEN");var or=new _.Sm("APP_STORE_TOKEN");var DC=function(y,W){this.store=y;this.controller=W};
_.R(DC,BB);DC.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy;return _.m(function(M){if(M.nextAddress==1){Z=_.g(y,_.Na);if(D=(G=Z)==null?void 0:G.contentId)for(u=_.z(((Y=Z)==null?void 0:Y.actions)||[]),t=u.next();!t.done;t=u.next())b=t.value,h9Q(c,b,D);K=(r=W)==null?void 0:(F=r.form)==null?void 0:F.element;return _.n(M,_.D2(K,[y]).catch(function(){}),2)}l=M.yieldResult;
((N=l)==null?0:(P=N.data)==null?0:(V=P.feedbackResponses)==null?0:V.length)&&(S=(Q=l.data.feedbackResponses[0])==null?void 0:Q.followUpDialog)&&D&&(cy=c.controller)!=null&&cy.feedbackDialogMap.set(D,S);_.F2(M)})};
var h9Q=function(y,W,c){var Z=_.g(W,_.uN);if(Z){Z=_.z(Z.commands||[]);for(var G=Z.next();!G.done;G=Z.next())h9Q(y,G.value,c)}_.g(W,_.sx)&&y.store.dispatch(_.o3("commandEntity",g5h(c),{key:c,command:W}));_.g(W,cUi)&&y.store.dispatch(_.o3("commandEntity",g5h(c),{key:c,command:W}))};
DC[dq]=[or,f5];var zz=function(y){this.controller=y};
_.R(zz,BB);zz.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y;return _.m(function(u){Z=_.g(y,_.Jc);D=(G=Z)==null?void 0:G.targetId;if(((Y=Z)==null?void 0:Y.signal)!=="TELL_US_WHY"||!D)return u.return();c.controller.openDialog(D,W);_.F2(u)})};
zz[dq]=[f5];var Yt=function(y){this.store=y};
_.R(Yt,BB);Yt.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b;return _.m(function(r){Z=_.g(y,W5H);D=(G=Z)==null?void 0:G.contentId;t=(Y=W)==null?void 0:(u=Y.form)==null?void 0:u.element;b=_.D2(t,[y]);D&&c.undo(D);return _.n(r,b,0)})};
Yt.prototype.undo=function(y){this.store.dispatch(_.o3("commandEntity",g5h(y),{key:y,command:void 0}))};
Yt[dq]=[or];var mY=function(y){this.JSC$14932_commandHandler=y};
_.R(mY,BB);mY.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b;return _.m(function(r){c=_.g(y,nj0);Z=c.flowStateKey;G=c.validationFailureCommand;D=c.submitValidFormCommand;Y=p6(_.kD,[Z||""]);u=_.g(Y,bUV);((t=u)==null?0:t.isValid)&&D&&W.JSC$14932_commandHandler.resolveCommand(D);((b=u)==null?0:b.isValid)||!G||W.JSC$14932_commandHandler.resolveCommand(G);_.F2(r)})};
mY[dq]=[_.i1];var sI=function(y){this.innertubeTransportService=y};
_.R(sI,BB);sI.prototype.resolveCommand=function(y,W){var c=this,Z;return _.m(function(G){return _.n(G,_.IL(c.innertubeTransportService,y,(Z=W)==null?void 0:Z.form).then(function(D){var Y,u;W==null||(Y=W.commandController)==null||(u=Y.onSuccess)==null||u.call(Y,y,D)},function(D){var Y,u;
W==null||(Y=W.commandController)==null||(u=Y.onServerError)==null||u.call(Y,y,D)}),0)})};
sI[dq]=[_.b0];var uJ=function(){};
_.R(uJ,BB);uJ.prototype.resolveCommand=function(y){var W,c,Z,G;return _.m(function(D){if(W=_.g(y,_.D73)){if(c=W.gtmId)Z=_.Nn("GL",""),_.zI(c,Z);(G=W.gtmData)&&_.YS(G)}_.F2(D)})};var t0=function(y,W){this.innertubeTransportService=y;this.JSC$14943_actionRouter=W};
_.R(t0,BB);t0.prototype.resolveCommand=function(y){var W=this,c,Z;return _.m(function(G){c=_.g(y,l93);if(!c)return G.return();Z=c.command;if(!Z)return G.return();W.JSC$14943_actionRouter.triggerAction("yt-insert-rich-section-action",c);return _.n(G,_.IL(W.innertubeTransportService,Z,{disableCache:!0}),0)})};
t0[dq]=[_.b0,Hv];qnH.bind(null,HB);var BQB=qnH.bind(null,cV2);jqy.bind(null,HB);var HPf=jqy.bind(null,cV2);cCE.bind(null,HB);var LVZ=cCE.bind(null,cV2);var n5=function(){};
_.R(n5,BB);
n5.prototype.resolveCommand=function(y){var W,c,Z,G,D,Y,u,t,b,r;return _.m(function(F){W=_.g(y,ch5);if(!W)return F.return();Z=((c=W.operations)==null?void 0:c.operations)||[];G=_.z(Z);for(D=G.next();!D.done;D=G.next())if(Y=D.value,Y.insertItemSectionContent){var K=Y.insertItemSectionContent,l=K.contents||[];K.insertByPositionInSection?BQB(K.insertByPositionInSection.sectionTargetId,l,K.insertByPositionInSection.position):K.insertByRelativePositionInSection&&K.insertByRelativePositionInSection.sectionTargetId&&K.insertByRelativePositionInSection.itemTargetId&&
HPf(K.insertByRelativePositionInSection.sectionTargetId,K.insertByRelativePositionInSection.itemTargetId,l,K.insertByRelativePositionInSection.relativePosition)}else Y.replaceSection?(K=Y.replaceSection,l={},K.replaceByTargetId?l=K.replaceByTargetId:K.replaceByGroupId&&(l={targetId:K.replaceByGroupId.groupId,newContent:K.replaceByGroupId.newContent,undoKey:""}),l.newContent&&fjm(l.targetId,{continuationItems:[l.newContent]})):Y.removeItem?(K=Y.removeItem,K.removeByTargetId&&K.sectionTargetId&&LVZ(K.sectionTargetId,
K.removeByTargetId.targetIds||[])):Y.removeSection&&(Y.removeSection.removeByTargetId?(u=void 0,vy6(((u=Y.removeSection)==null?void 0:u.removeByTargetId.targetIds)||[])):Y.removeSection.removeByGroupId&&(t=void 0,vy6(((t=Y.removeSection)==null?void 0:t.removeByGroupId.groupIds)||[])));r=((b=W.operations)==null?void 0:b.scrollConfig)||{};dgB(r);_.F2(F)})};
var vy6=function(y){y=_.z(y);for(var W=y.next();!W.done;W=y.next())fjm(W.value,{continuationItems:[]})},dgB=function(y){if(y.scrollToItem){var W=y.scrollToItem.item||{},c=W.itemTargetId;
W=W.sectionTargetId;if(c&&W){var Z=document.querySelector("[data-target-id="+W+"]"),G=Z==null?void 0:Z.querySelector("[data-target-id="+c+"]");Z&&G&&setTimeout(function(){var D=G.offsetTop-Z.offsetTop,Y;if(((Y=y.scrollToItem)==null?void 0:Y.scrollPosition)==="SCROLL_POSITION_CENTER")D-=Z.offsetHeight/2,D+=G.offsetHeight/2;else{var u;((u=y.scrollToItem)==null?void 0:u.scrollPosition)==="SCROLL_POSITION_END"&&(D-=Z.offsetHeight,D+=G.offsetHeight)}Z.scroll({top:D,behavior:"smooth"})},100)}}};var Xu=new _.Sm("CLIENT_NAME_TOKEN");var Sbg=new _.Sm("DEFAULT_STORE_EXPIRATION_TOKEN");var FwI=new _.Sm("CLIENT_LOCATION_SERVICE_TOKEN");var bJ=function(y,W,c){this.clientName=y||_.Nn("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=W||_.PK.getInstance();this.JSC$14971_commandHandler=c||_.km.instance};
_.R(bJ,BB);bJ.prototype.resolveCommand=function(y){var W=this,c,Z;return _.m(function(G){Z=(c=_.g(y,DhE))==null?void 0:c.onComplete;W.clientLocationService.clearLocationPlayabilityToken(W.clientName);Z&&W.JSC$14971_commandHandler.resolveCommand(Z);_.F2(G)})};
bJ[dq]=[Xu,FwI,_.i1];var rA=function(y){this.innertubeTransportService=y};
_.R(rA,BB);rA.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y;return _.m(function(u){D=(Z=W)==null?void 0:(G=Z.form)==null?void 0:G.element;return _.n(u,_.IL(c.innertubeTransportService,y,(Y=W)==null?void 0:Y.form).then(function(t){J$I(D,new CustomEvent("yt-service-request-completed"),{data:t},_.Nn("openPopupConfig"))}),0)})};
rA[dq]=[_.b0];var Fu=function(){};
_.R(Fu,BB);Fu.prototype.resolveCommand=function(y){var W,c;return _.m(function(Z){W=_.g(y,$D0);c=document.querySelector("mini-app-container-view-model");if(!W||!c)return Z.return();W.isPlaying?c.dispatchEvent(new Event("play")):c.dispatchEvent(new Event("pause"));_.F2(Z)})};var TQ6=function(){this.dropdownMap=new Map};_.a_d=new _.Sm("DROPDOWN_CONTROLLER_TOKEN");var UI=function(y){this.controller=y};
_.R(UI,BB);UI.prototype.resolveCommand=function(y){var W=this,c,Z,G,D;return _.m(function(Y){c=_.g(y,AIE);if(!c)return Y.return();Z=c;G=Z.dropdownId;D=Z.selectedOptionIndex;if(G===void 0||D===void 0)return Y.return();var u=W.controller.dropdownMap.get(G);u&&u(D);_.F2(Y)})};
UI[dq]=[_.a_d];var $t=function(y){this.controller=y};
_.R($t,BB);$t.prototype.resolveCommand=function(y){var W=this,c;return _.m(function(Z){return(c=_.g(y,Xs3))?_.n(Z,W.controller.closeDialog(),0):Z.return()})};
$t[dq]=[_.rN];var K5=function(y){this.controller=y};
_.R(K5,BB);K5.prototype.resolveCommand=function(y){var W=this,c,Z;return _.m(function(G){c=_.g(y,eg0);if(!c)return G.return();var D,Y=c.panelIdentifier||((D=c.identifier)==null?void 0:D.tag);if(!Y)throw Error("yi");return(Z=Y)?_.n(G,W.controller.hidePanel(Z),0):G.jumpTo(0)})};
K5[dq]=[_.Xi];var OI=function(y,W){this.innertubeTransportService=y;this.controller=W};
_.R(OI,BB);OI.prototype.resolveCommand=function(y){var W=this,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return c=_.g(y,ws5),(Z=c)!=null&&Z.panelId?_.n(Y,W.controller.getReloadContinuation(c.panelId),2):Y.return();if(Y.nextAddress!=3)return(G=Y.yieldResult)?_.n(Y,_.IL(W.innertubeTransportService,y,{continuation:G}),3):Y.return();D=Y.yieldResult;return _.n(Y,W.controller.updatePanel(c.panelId,D.content,!1),0)})};
OI[dq]=[_.b0,_.Xi];var gA=function(y,W,c){this.innertubeTransportService=y;this.JSC$15004_screenManager=W;this.JSC$15004_commandHandler=c};
_.R(gA,BB);
gA.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1){c=_.g(y,_.LX2);if(!c)return t.return();if(c.commands)for(Z=_.z(c.commands),G=Z.next();!G.done;G=Z.next())D=G.value,W.JSC$15004_commandHandler.resolveCommand(D,{disableClickTracking:!0});Y=_.Dz(y.clickTrackingParams);_.wR(W.JSC$15004_screenManager,21760,Y,{layer:7,parentLayer:0});return _.n(t,_.IL(W.innertubeTransportService,y),2)}u=t.yieldResult;if(!u)return t.return();W.JSC$15004_screenManager.graftServerVe(u.trackingParams,Y,
7);_.F2(t)})};
gA[dq]=[_.b0,_.oZ,_.i1];var Rr=new _.Sm("PANEL_LOADING_STRATEGY_TOKEN");var lJ=function(y,W){this.controller=y;this.panelLoadingStrategy=W};
_.R(lJ,BB);
lJ.prototype.resolveCommand=function(y,W){var c=this,Z,G,D;return _.m(function(Y){Z=_.g(y,NFV);if((G=Z)==null||!G.panelLoadingStrategy)return Y.return();D=function(u){var t,b,r,F,K,l,N,P,V;return _.m(function(Q){b=_.g((t=u.dialogViewModel)==null?void 0:t.header,hD0);r={viewModel:u.dialogViewModel};F={};if(N=_.O("web_enable_dialog_header_label")?(K=b)==null?void 0:(l=K.headline)==null?void 0:l.content:void 0)F.ariaLabel=N;Z.dismissOnBackgroundTap===!1&&(F.isModal=!0);return u.dialogViewModel?_.n(Q,
c.controller.openDialog(r,(P=W)==null?void 0:(V=P.form)==null?void 0:V.element,F),0):Q.return()})};
return _.n(Y,c.panelLoadingStrategy.execute({command:y,data:Z.panelLoadingStrategy,renderFn:D,createScreenConfig:{layer:4}}),0)})};
lJ[dq]=[_.rN,Rr];var EI=function(y,W,c){this.innertubeTransportService=y;this.controller=W;this.JSC$15024_screenManager=c};
_.R(EI,BB);
EI.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K,l,N;return _.m(function(P){switch(P.nextAddress){case 1:Z=_.g(y,_.E9);if(!Z)return P.return();var V,Q=Z.panelIdentifier||((V=Z.identifier)==null?void 0:V.tag);if(!Q)throw Error("yi");G=Q;return _.n(P,c.controller.isVisible(G,!0),2);case 2:if((D=P.yieldResult)&&Z.blockIfPanelOpen)return P.return();t=(u=(Y=c.controller).getPanelContent)==null?void 0:u.call(Y,G);if(!(V=t))if(Z){var S;V=((S=Z.globalConfiguration)==null?void 0:S.initialState)||
Z.engagementPanel;if(S=!V)S=!!(Z==null?0:(Q=Z.engagementPanelPresentationConfigs)==null?0:Q.engagementPanelPopupPresentationConfig);S&&(V=_.ZwO(Z.panelIdentifier,Z.identifier))}else V=void 0;b=V;r=Z.engagementPanelPresentationConfigs;F=Z.engagementPanelExtras;return _.n(P,c.controller.showPanel(G,b,r,F,(K=W)==null?void 0:(l=K.form)==null?void 0:l.element),3);case 3:if(!Z.globalConfiguration){P.jumpTo(0);break}_.wR(c.JSC$15024_screenManager,32633);return _.n(P,_.IL(c.innertubeTransportService,y),5);
case 5:return N=P.yieldResult,c.JSC$15024_screenManager.graftServerVe(N.trackingParams),_.n(P,c.controller.updatePanel(G,N.content,!0,F,void 0,N.updatePanelContinuationData),0)}})};
EI[dq]=[_.b0,_.Xi,_.oZ];var N_=function(y,W){this.controller=y;this.panelLoadingStrategy=W};
_.R(N_,BB);N_.prototype.resolveCommand=function(y,W){var c=this,Z,G,D;return _.m(function(Y){Z=_.g(y,_.Dx);if((G=Z)==null||!G.panelLoadingStrategy)return Y.return();D=function(u){var t,b;return _.m(function(r){return u.sheetViewModel?_.n(r,c.controller.openSheet({viewModel:u.sheetViewModel},(t=W)==null?void 0:(b=t.form)==null?void 0:b.element),0):r.return()})};
return _.n(Y,c.panelLoadingStrategy.execute({command:y,data:Z.panelLoadingStrategy,renderFn:D,createScreenConfig:{layer:0}}),0)})};
N_[dq]=[_.bc,Rr];var Ir=function(y,W){this.controller=y;this.JSC$15032_commandHandler=W};
_.R(Ir,BB);Ir.prototype.resolveCommand=function(y,W){var c=this,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1){Z=_.g(y,yk2);var u=_.g(Z.showCommand,_.E9),t,b,r=(b=u==null?void 0:u.panelIdentifier)!=null?b:u==null?void 0:(t=u.identifier)==null?void 0:t.tag;if(!r)throw Error("zi");G=r;return _.n(Y,c.controller.isVisible(G),2)}return(D=Y.yieldResult)?_.n(Y,c.controller.hidePanel(G),0):_.n(Y,c.JSC$15032_commandHandler.resolveCommand(Z.showCommand,W),0)})};
Ir[dq]=[_.Xi,_.i1];var p5=function(y,W,c){this.innertubeTransportService=y;this.controller=W;this.JSC$15035_screenManager=c};
_.R(p5,BB);
p5.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI,sD;return _.m(function(ED){switch(ED.nextAddress){case 1:return Z=c=_.g(y,WuJ),G=Z.targetPanelIdentifier,D=Z.contentSourcePanelIdentifier,Y=Z.globalConfiguration,((u=G)==null?0:u.tag)&&((t=D)==null?0:t.tag)?Y?_.n(ED,W.controller.showPanel(G.tag,_.ZwO(G.tag,G),void 0,void 0,void 0),5):_.n(ED,(K=(F=W.controller).getPanel)==null?void 0:K.call(F,D.tag),4):ED.return();case 4:l=ED.yieldResult;b=(N=l)==null?void 0:
(V=(P=N).getPanelContent)==null?void 0:V.call(P);ED.jumpTo(3);break;case 5:return _.n(ED,_.IL(W.innertubeTransportService,y),6);case 6:Q=ED.yieldResult,((S=Q)==null?0:S.trackingParams)&&W.JSC$15035_screenManager.graftServerVe(Q.trackingParams),b=(cy=Q)==null?void 0:cy.content,r=(M=Q)==null?void 0:M.updatePanelContinuationData;case 3:if(jI=(fa=b)==null?void 0:fa.engagementPanelSectionListRenderer)return _.n(ED,W.controller.showPanel(G.tag,void 0,void 0,void 0,void 0,{content:jI.content,secondaryHeaderContent:(sD=
jI.header)!=null?sD:{},targetId:jI.targetId},r),0);ED.jumpTo(0)}})};
p5[dq]=[_.b0,_.Xi,_.oZ];var PY=function(y,W){this.JSC$15043_commandHandler=y;this.store=W};
_.R(PY,BB);PY.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return(c=_.g(y,t0Q))?_.n(u,_.wI(),2):u.return();Z=u.yieldResult;if(!Z)return u.return();oof(Z,W.store,(G=c)==null?void 0:G.languageCode);D=Z.isSubtitlesOn()?_.bN("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.bN("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Y=_.xR(D);W.JSC$15043_commandHandler.resolveCommand(Y);_.F2(u)})};
PY[dq]=[_.i1,fy];var J0=function(y,W){this.shortsPlayerPromise=y;this.JSC$15047_commandHandler=W};
_.R(J0,BB);
J0.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1)return(c=_.g(y,NtE))?_.n(r,W.shortsPlayerPromise,2):r.return();Z=r.yieldResult;var F=DyH(Z);F!=null&&F.length||(Z.loadModule("captions"),F=DyH(Z));G=F;if((D=G)==null||!D.length)return Y=_.bN("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.xR(Y),W.JSC$15047_commandHandler.resolveCommand(u),r.return();Z.toggleSubtitles();t=Z.isSubtitlesOn()?_.bN("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.bN("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");b=_.xR(t);W.JSC$15047_commandHandler.resolveCommand(b);_.F2(r)})};
J0[dq]=[_.wbQ,_.i1];var V6=function(y){this.JSC$15050_playerPromise=y};
_.R(V6,BB);V6.prototype.resolveCommand=function(y){var W=this,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return(c=_.g(y,kCE))?_.n(Y,W.JSC$15050_playerPromise,2):Y.return();Z=Y.yieldResult;G=Z.getVideoData().video_id;c.videoId===G&&(D=Number(c.offsetFromVideoStartMilliseconds),D>=0&&Z.seekTo(D/1E3));_.F2(Y)})};
V6[dq]=[_.Tb];var xg3=_.Gx("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),C5=function(y){this.store=y};
_.R(C5,BB);
var iP6=function(y){var W,c,Z,G;return _.m(function(D){if(D.nextAddress==1)return W=_.Nn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,c=_.Nn("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Z=W||c,y.mainAppPlayer=new QW(Z),_.n(D,y.mainAppPlayer.api,2);G=D.yieldResult;G.addEventListener("onStateChange",y.JSC$15054_playerStateChangeListener.bind(y));document.addEventListener("yt-page-data-updated",y.pauseOnNavigation.bind(y));window.addEventListener("state-navigatestart",
y.pauseOnNavigation.bind(y));_.F2(D)})};
C5.prototype.JSC$15054_playerStateChangeListener=function(y){switch(y){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"}MLf(this)};
var MLf=function(y){y.store.dispatch(_.o3("sfvAudioItemCurrentlyPlayingEntity",xg3,{key:xg3,externalVideoId:y.externalVideoId,sfvAudioItemPlaybackState:y.playbackState,nowPlayingEntityValue:y.nowPlayingEntityValue}))};
C5.prototype.pauseOnNavigation=function(){var y=this,W,c,Z,G;return _.m(function(D){if(D.nextAddress==1){if(!y.mainAppPlayer){var Y=new _.ul("Error: mainAppPlayer is unavailable",y.mainAppPlayer);_.OP(Y);return D.return()}return _.n(D,y.mainAppPlayer.api,2)}W=D.yieldResult;Z=(c=W)==null?void 0:c.getPlayerState();Z!==1||(G=W)!=null&&G.pauseVideo();_.F2(D)})};
C5.prototype.playVideo=function(y,W,c){var Z=this,G,D;return _.m(function(Y){if(Y.nextAddress==1)return _.n(Y,(G=Z.mainAppPlayer)==null?void 0:G.api,2);D=Y.yieldResult;if(!Z.mainAppPlayer||!D){var u=new _.ul("Error: mainAppPlayer is unavailable",Z.mainAppPlayer);_.OP(u);return Y.return()}return _.n(Y,Z.mainAppPlayer.loadVideoWithPlayerVars({videoId:Z.externalVideoId,audio_only:"1",start:y/1E3,end:y/1E3+W,player_params:c}),0)})};
C5.prototype.pauseVideo=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1){if(!y.mainAppPlayer){var G=new _.ul("Error: mainAppPlayer is unavailable",y.mainAppPlayer);_.OP(G);return Z.return()}return _.n(Z,y.mainAppPlayer.api,2)}W=Z.yieldResult;(c=W)==null||c.pauseVideo();_.F2(Z)})};
C5.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M;return _.m(function(fa){if(fa.nextAddress==1)return c=_.g(y,gIW),G=(Z=c)==null?void 0:Z.nowPlayingEntityValue,Y=(D=c)==null?void 0:D.externalVideoId,F=Number((r=(u=c)==null?void 0:(t=u.defaultStartPoints)==null?void 0:(b=t[0])==null?void 0:b.offsetMs)!=null?r:"0"),Q=Number((V=(K=c)==null?void 0:(l=K.defaultStartPoints)==null?void 0:(N=l[0])==null?void 0:(P=N.duration)==null?void 0:P.seconds)!=null?V:"15"),M=
(cy=(S=c)==null?void 0:S.playerParams)!=null?cy:"",G&&Y?W.mainAppPlayer?fa.jumpTo(2):_.n(fa,iP6(W),2):fa.return();if(fa.nextAddress!=6){if(W.nowPlayingEntityValue&&G===W.nowPlayingEntityValue)return W.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.n(fa,W.pauseVideo(),0):_.n(fa,W.playVideo(F,Q,M),0);W.externalVideoId=Y;W.nowPlayingEntityValue=G;W.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.n(fa,W.playVideo(F,Q,M),6)}MLf(W);return fa.jumpTo(0)})};
C5[dq]=[fy];var Q6=function(y){this.JSC$15071_commandHandler=y};
_.R(Q6,BB);Q6.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1)return(Z=_.g(y,nK3))?_.n(t,_.wI(),2):t.return();G=t.yieldResult;if(!G)return t.return();(D=sqI(G))?c.JSC$15071_commandHandler.resolveCommand(D,W):(Y=_.bN("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),u=_.xR(Y),c.JSC$15071_commandHandler.resolveCommand(u));_.F2(t)})};
Q6[dq]=[_.i1];var A0=function(y){this.JSC$15074_playerPromise=y};
_.R(A0,BB);A0.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1){c=_.g(y,jY0);if(!c)return u.return();Z=c.overlayRenderer;return Z?(G=_.g(Z,qUE))?_.n(u,W.JSC$15074_playerPromise,3):u.jumpTo(0):u.return()}D=u.yieldResult;D.renderChapterSeekingAnimation(1,_.v$(G.text),(Y=G.icon)==null?void 0:Y.iconType);_.F2(u)})};
A0[dq]=[_.Tb];var h0=function(y){this.store=y};
_.R(h0,BB);h0.prototype.resolveCommand=function(y){var W=this,c,Z,G;return _.m(function(D){if(D.nextAddress==1){c=_.g(y,b25);if(!c)return D.return();Z="";(G=W.store.getState().collabInviteLink)&&c.id===G.playlistId?Z=G.inviteLinkURL:c.shortUrl&&(Z=c.shortUrl);return Z?_.n(D,navigator.clipboard.writeText(Z),3):D.jumpTo(0)}var Y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.bN("COPY_LINK_SUCCESS_TOAST")}}}}};_.U().resolve(_.i1).resolveCommand(Y);_.F2(D)})};
h0[dq]=[or];var BY=function(y,W){this.innertubeTransportService=y;this.JSC$15084_commandHandler=W};
_.R(BY,BB);BY.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K;return _.m(function(l){if(l.nextAddress==1)return(Z=_.g(y,_.NY))?_.n(l,_.IL(c.innertubeTransportService,y,(G=W)==null?void 0:G.form),2):l.return();(D=l.yieldResult)&&D.errorMetadata&&(Y=D,u=_.xR(Y.error.message),c.JSC$15084_commandHandler.resolveCommand(u));t=D;if((b=t)==null?0:b.actions)for(r=_.z(t.actions),F=r.next();!F.done;F=r.next())K=F.value,c.JSC$15084_commandHandler.resolveCommand(K);_.F2(l)})};
BY[dq]=[_.b0,_.i1];var HY=function(){};
_.R(HY,BB);HY.prototype.resolveCommand=function(y){var W;return _.m(function(c){W=_.g(y,mJi);if(!W)return c.return();(new dTE(W)).show();_.F2(c)})};_.L5=new _.Sm("PLAYLIST_EDIT_CONTROLLER_TOKEN");var vY=function(y,W,c,Z){this.store=y;this.innertubeTransportService=W;this.controller=c;this.JSC$15092_commandHandler=Z};
_.R(vY,BB);
vY.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI,sD,ED,N1,bf,Py,WJ;return _.m(function(t5){if(t5.nextAddress==1){Z=_.g(y,_.KF);if(!Z)return t5.return();if(Z.clientActions){G=_.z(Z.clientActions);for(D=G.next();!D.done;D=G.next())Y=D.value,c.JSC$15092_commandHandler.resolveCommand(Y);var xF,M3=W==null?void 0:(xF=W.form)==null?void 0:xF.element;M3&&_.Z2(M3,"yt-dismissible-item-action",Z.clientActions)}return _.n(t5,_.IL(c.innertubeTransportService,y,(u=
W)==null?void 0:u.form),2)}if(t=t5.yieldResult)t.errorMetadata?(b=t,r=_.xR(b.error.message),c.JSC$15092_commandHandler.resolveCommand(r),"error"in t&&((F=W)==null?0:(K=F.commandController)==null?0:K.onServerError)&&((l=W)==null||(N=l.commandController)==null||N.onServerError(y,t))):(P=W)==null||(V=P.commandController)==null||(S=(Q=V).onSuccess)==null||S.call(Q,y,t);cy=t;((M=cy)==null?0:M.collaborationInviteLink)&&Z.playlistId&&(_.O("web_enable_invite_collaborators_link")||_.O("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
c.store.dispatch(_.jv({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Z.playlistId,inviteLinkUrl:cy.collaborationInviteLink}}));((fa=cy)==null?0:fa.redirectEndpoint)&&c.JSC$15092_commandHandler.resolveCommand(cy.redirectEndpoint);((jI=cy)==null?0:(sD=jI.newHeader)==null?0:sD.playlistHeaderRenderer)?e9Q(c.controller,cy.newHeader.playlistHeaderRenderer):((ED=cy)==null?0:(N1=ED.newHeader)==null?0:N1.musicEditablePlaylistDetailHeaderRenderer)&&e9Q(c.controller,cy.newHeader.musicEditablePlaylistDetailHeaderRenderer);
c.controller.playlistVideoListElement&&((bf=cy)==null?0:(Py=bf.playlistEditResults)==null?0:(WJ=Py[0])==null?0:WJ.playlistEditVideoAddedResultData)&&((M3=c.controller.playlistVideoListElement)==null||M3.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:cy.playlistEditResults[0].playlistEditVideoAddedResultData})));_.F2(t5)})};
vY[dq]=[or,_.b0,_.L5,_.i1];var dA=function(y,W){this.controller=y;this.JSC$15102_commandHandler=W};
_.R(dA,BB);dA.prototype.resolveCommand=function(y,W){var c=this,Z,G,D;return _.m(function(Y){Z=_.g(y,rhE);c.controller.showRefreshPill&&((G=Z)==null?0:G.command)&&(c.JSC$15102_commandHandler.resolveCommand((D=Z)==null?void 0:D.command,W),c.controller.showRefreshPill=!1);_.F2(Y)})};
dA[dq]=[_.VG,_.i1];var SJ=function(y,W){this.store=y;this.JSC$15106_commandHandler=W||_.km.instance};
_.R(SJ,BB);SJ.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K;return _.m(function(l){Z=_.g(y,Pi0);G=c.store.getState().radioButtonGroup;if((D=Z)==null?0:D.command)c.JSC$15106_commandHandler.resolveCommand((Y=Z)==null?void 0:Y.command,W);else if(((u=Z)==null?void 0:u.formId)===G.currentFormId)for(t=Object.values(G.commandsMap),b=_.z(t),r=b.next();!r.done;r=b.next()){F=r.value;K=_.UH(F);if(!K)return l.return();c.JSC$15106_commandHandler.resolveCommand(K,W)}_.F2(l)})};
SJ[dq]=[or];var wu9=new _.Sm("USER_PREFS");var Tz=function(y){this.JSC$15110_prefCookie=y};
_.R(Tz,BB);Tz.prototype.resolveCommand=function(y){var W=this,c,Z;return _.m(function(G){c=_.g(y,UJ3);if(!c)return G.return();Z=!1;c.flagNum&&typeof c.value==="boolean"?(_.$A(0,c.flagNum,c.value),Z=!0):c.key&&typeof c.stringValue==="string"&&(W.JSC$15110_prefCookie.set(c.key,c.stringValue),Z=!0);Z&&W.JSC$15110_prefCookie.save();_.F2(G)})};
Tz[dq]=[wu9];var ar=new _.Sm("PREF_STORAGE_PROMISE_TOKEN");var xt=function(y){this.JSC$15114_prefStoragePromise=y};
_.R(xt,BB);xt.prototype.resolveCommand=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1)return(c=_.g(y,KzV))?_.n(G,W.JSC$15114_prefStoragePromise,2):G.return();Z=G.yieldResult;return Z===void 0||c.key===void 0||c.value===void 0?G.return():_.n(G,Z.set(c.key,c.value),0)})};
xt[dq]=[ar];var qbH=function(y){this.innertubeTransportService=y};
_.R(qbH,BB);qbH.prototype.resolveCommand=function(y,W){var c=this,Z,G;return _.m(function(D){(Z=_.g(y,_.iFV))&&Z&&Z.isFirstRequest&&(_.pl("search_overview_answer"),_.PA("so_rq",void 0,"search_overview_answer"));return _.n(D,_.IL(c.innertubeTransportService,y,(G=W)==null?void 0:G.form),0)})};
qbH[dq]=[_.b0];var ka9=function(){};
_.R(ka9,BB);
ka9.prototype.resolveCommand=function(y){var W,c,Z,G,D,Y,u,t,b;return _.m(function(r){W=_.g(y,qME);if((c=W)==null?0:c.sectionIdentifier){if(W.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(G=(Z=document.getElementsByTagName(W.sectionIdentifier))==null?void 0:Z.item(0))G.scrollIntoView({behavior:"smooth"}),(D=pha(G))&&D.focus({preventScroll:!0});return r.return()}Y=document.querySelector("[section-identifier="+W.sectionIdentifier+"]");u=document.querySelector("[section-identifier="+W.referenceSectionIdentifier+
"]");if(!Y)return r.return();t=W.verticalScrollOffsetDp?W.verticalScrollOffsetDp:0;u&&(t-=u.offsetTop);window.scrollTo({top:Y.offsetTop+t,behavior:"smooth"});(b=pha(Y))&&b.focus({preventScroll:!0})}_.F2(r)})};var iJ=function(){};
_.R(iJ,BB);
iJ.prototype.resolveCommand=function(y){var W,c,Z,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1){W=_.g(y,nPV);if(!W||!W.imageBytes||!navigator.clipboard)return t.return();if(W.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.OP(Error("Ai")),t.return();_.tm(t,2);Z=(c=W)==null?void 0:c.imageBytes;G=Z.replace(/-/g,"+").replace(/_/g,"/");D=euF(G);Y={};u=[new ClipboardItem((Y[D.type]=D,Y))];return _.n(t,navigator.clipboard.write(u),4)}if(t.nextAddress!=2)return _.J6(t,0);
_.rs(t);_.F2(t)})};var M_=function(y,W){this.innertubeTransportService=y;this.JSC$15129_commandHandler=W};
_.R(M_,BB);M_.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1)return(Z=_.g(y,X08))?_.n(t,_.IL(c.innertubeTransportService,y,(G=W)==null?void 0:G.form),2):t.return();(D=t.yieldResult)&&D.errorMetadata&&Z.onFailureCommand&&c.JSC$15129_commandHandler.resolveCommand(Z.onFailureCommand);Y=D;((u=Y)==null?0:u.shareCommand)&&c.JSC$15129_commandHandler.resolveCommand(Y.shareCommand,W);_.F2(t)})};
M_[dq]=[_.b0,_.i1];var eJ=function(){};
_.R(eJ,BB);eJ.prototype.resolveCommand=function(){return _.m(function(y){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.F2(y)})};var wA=function(y){this.JSC$15136_navigationConfirmationService=y};
_.R(wA,BB);wA.prototype.resolveCommand=function(){var y=this;return _.m(function(W){y.JSC$15136_navigationConfirmationService.cancelPendingNavigation();_.F2(W)})};
wA[dq]=[ZZ];var q_=function(y){this.JSC$15139_screenManager=y};
_.R(q_,BB);q_.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b;return _.m(function(r){G=(Z=W.form)==null?void 0:Z.event;Y=(D=W.form)==null?void 0:D.element;if(!G)throw new _.ul("Event not passed in when resolving command");u=_.z(G.composedPath());for(t=u.next();!t.done;t=u.next())if(b=t.value,b.tagName==="YT-COPY-LINK-RENDERER")return b.copyUrlToClipboard(),Y&&_.lv(c.JSC$15139_screenManager,Y),r.return();_.F2(r)})};
q_[dq]=[_.oZ];var kt=function(){this.JSC$15143_miniAppClientDataProvider=_.U().resolve(_.Ic)};
_.R(kt,BB);kt.prototype.resolveCommand=function(){var y=this,W,c;return _.m(function(Z){if(y.JSC$15143_miniAppClientDataProvider.clientData.has("video_id")){var G=y.JSC$15143_miniAppClientDataProvider,D=G.clientData.get("video_id");D&&G.clientData.delete("video_id");W="https://youtube.com/watch?v="+D;c=pf(W);if(c===void 0)throw Error("Bi`"+W);_.SQ(window,c)}_.F2(Z)})};var jg=function(){};
_.R(jg,BB);jg.prototype.resolveCommand=function(){return _.m(function(y){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.F2(y)})};var yg=function(){};
_.R(yg,BB);yg.prototype.resolveCommand=function(){var y;return _.m(function(W){if(W.nextAddress==1)return _.n(W,_.GCF(window.document.documentElement),2);(y=document.querySelector("mini-app-container-view-model iframe"))&&y.focus();_.F2(W)})};var Wf=function(y){this.JSC$15150_navigationConfirmationService=y};
_.R(Wf,BB);
Wf.prototype.resolveCommand=function(){var y=this;return _.m(function(W){var c=y.JSC$15150_navigationConfirmationService,Z=_.U().resolve(_.kP),G;if(((G=c.navigateParams)==null?void 0:G.data)!==void 0){var D;_.za5(Z,c.navigateParams.endpoint,c.navigateParams.data,(D=c.navigateParams.navigationType)!=null?D:1,c.navigateParams.tempData,c.navigateParams.isMiniplayer,void 0,!0);c.navigateParams=void 0;c.customConfirmationCommand=void 0}else c.navigateParams&&(Z.navigate(c.navigateParams.endpoint,c.navigateParams.reload,
c.navigateParams.params,c.navigateParams.tempData,c.navigateParams.requestType,c.navigateParams.createScreenConfig,!0),c.navigateParams=void 0,c.customConfirmationCommand=void 0);_.F2(W)})};
Wf[dq]=[ZZ];var cf=function(){};
_.R(cf,BB);cf.prototype.resolveCommand=function(){return _.m(function(y){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.F2(y)})};var ZX=function(y){this.JSC$15155_prefStorage=y};
_.R(ZX,BB);ZX.prototype.resolveCommand=function(){var y=this,W,c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.n(Z,y.JSC$15155_prefStorage,2);case 2:return(W=Z.yieldResult)?_.n(Z,W.set("sfvle",!1),3):Z.return();case 3:return _.n(Z,W.set("sfvles",!0),4);case 4:c=_.Uc(),_.$A(0,203,!1),_.$A(0,204,!0),c.save(),_.F2(Z)}})};
ZX[dq]=[ar];var Gc=function(y){this.JSC$15158_prefStorage=y};
_.R(Gc,BB);Gc.prototype.resolveCommand=function(){var y=this,W,c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.n(Z,y.JSC$15158_prefStorage,2);case 2:return(W=Z.yieldResult)?_.n(Z,W.set("sfvle",!0),3):Z.return();case 3:return _.n(Z,W.set("sfvles",!0),4);case 4:c=_.Uc(),_.$A(0,203,!0),_.$A(0,204,!0),c.save(),_.F2(Z)}})};
Gc[dq]=[ar];var fV=function(){};
_.R(fV,BB);fV.prototype.resolveCommand=function(y){var W;return _.m(function(c){W=_.g(y,$J5);if(!W||typeof W.key!=="string"||typeof W.value!=="string")return c.return();window.localStorage.setItem(W.key,W.value);_.F2(c)})};var oF=function(y){this.store=y};
_.R(oF,BB);oF.prototype.resolveCommand=function(y){var W=this,c;return _.m(function(Z){c=_.g(y,y8D);if(!c||!c.stepId||!c.token)return Z.return();W.store.dispatch(kgi({stepId:c.stepId,token:c.token,isSelected:!1}));_.F2(Z)})};
oF[dq]=[or];var DX=function(y,W,c){this.innertubeTransportService=y;this.store=W;this.JSC$15169_screenManager=c};
_.R(DX,BB);
DX.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa,jI,sD,ED;return _.m(function(N1){c=_.g(y,EpE);if(!c||(Z=c.stepIds)==null||!Z.length)return N1.return();G=W.store.getState().talkToRecs;D=[];Y=[];u=_.z(c.stepIds);for(t=u.next();!t.done;t=u.next())for(b=t.value,r=void 0,(F=(r=G.stepStates[b])==null?void 0:r.userQuery)&&Y.push({userQuery:F.userQuery,userQueryToken:F.token}),K=void 0,l=(K=G.stepStates[b])==null?void 0:K.selectionStates,N=_.z(Object.entries(l)),P=
N.next();!P.done;P=N.next())V=P.value,Q=_.z(V),S=Q.next().value,cy=Q.next().value,M=S,fa=cy,fa.isSelected&&D.push(M);jI={selectedChipTokens:D,userQueries:Y,submittedStepIds:c.stepIds};sD={browseTalk2recsFormData:jI};c.browseEndpoint?(ED=y,_.nN(ED,_.oW,c.browseEndpoint)):c.command&&(ED=c.command);return ED?_.n(N1,_.IL(W.innertubeTransportService,ED,{formData:sD,disableCache:!0}).then(function(bf){(bf==null?0:bf.trackingParams)&&W.JSC$15169_screenManager.graftServerVe(bf==null?void 0:bf.trackingParams)}),
0):N1.return()})};
DX[dq]=[_.b0,or,_.oZ];var zc=function(y){this.store=y};
_.R(zc,BB);zc.prototype.resolveCommand=function(y){var W=this,c;return _.m(function(Z){c=_.g(y,jpH);if(!c||!c.stepId||!c.token)return Z.return();W.store.dispatch(kgi({stepId:c.stepId,token:c.token,isSelected:!0}));_.F2(Z)})};
zc[dq]=[or];var YJ=function(y){this.store=y};
_.R(YJ,BB);YJ.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u;return _.m(function(t){Z=_.g(y,Nai);if(!Z||!Z.stepId||!Z.userQueryToken)return t.return();u=(Y=(G=W)==null?void 0:(D=G.form)==null?void 0:D.userQuery)!=null?Y:"";c.store.dispatch(_.jv({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:Z.stepId,userQueryToken:Z.userQueryToken,userQuery:u}}));_.F2(t)})};
YJ[dq]=[or];_.je9=new _.Sm("TIMELY_ACTIONS_CONTROLLER_TOKEN");var m3=function(y){this.controller=y};
_.R(m3,BB);m3.prototype.resolveCommand=function(y){var W=this,c,Z,G,D;return _.m(function(Y){c=_.g(y,M00);if(!c)return Y.return();Z=c;G=Z.id;D=Z.isVisible;if(G===void 0||D===void 0)return Y.return();var u;(u=W.controller.timelyActionsMap.get(G))==null||u(G,D);_.F2(Y)})};
m3[dq]=[_.je9];var yoQ=function(){this.timelyActionsMap=new Map};var sJ=function(y){this.JSC$15196_commandHandler=y};
_.R(sJ,BB);sJ.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y;return _.m(function(u){c=_.g(y,_.WSV);if(!c)return u.return();D=(Z=c.item)==null?void 0:(G=Z.notificationTextRenderer)==null?void 0:G.successResponseText;if(!D)return u.return();Y=_.av(D);W.JSC$15196_commandHandler.resolveCommand(Y);_.F2(u)})};
sJ[dq]=[_.i1];var uQ=function(y,W){this.innertubeTransportService=y;this.JSC$15201_playerApiPromise=W};
_.R(uQ,BB);
uQ.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b,r;return _.m(function(F){if(F.nextAddress==1)return _.n(F,W.JSC$15201_playerApiPromise,2);c=F.yieldResult;Z=c.getOption("captions","track");G=Object.assign({},_.g(y,_.dJV));(Y=(D=c.getVideoData())==null?void 0:D.video_id)?G.externalVideoId=Y:_.Va(Error("Ci"));if((u=Z)==null?0:u.languageCode)G.languageCode=Z.languageCode;if((t=Z)==null?0:t.kind)G.kind=Z.kind;if((b=Z)==null?0:b.name)G.name=Z.name;r=Object.assign({},y,{getTranscriptEndpoint:G});return _.n(F,
_.IL(W.innertubeTransportService,r),0)})};
uQ[dq]=[_.b0,_.Tb];var t$=function(){};
_.R(t$,BB);t$.prototype.resolveCommand=function(y){var W,c,Z,G,D,Y,u,t;return _.m(function(b){W=_.g(y,pgV);if((c=W)==null||!c.paramKeyValuePairs)return b.return();Z=window.location.href;G=_.z(W.paramKeyValuePairs);for(D=G.next();!D.done;D=G.next())Y=D.value,Y.key&&Y.value&&(u={},Z=_.BI(Z,(u[Y.key]=Y.value,u)));t=_.U().resolve(_.ANV);t.replaceUrl(Z);_.F2(b)})};var nV=function(y,W){this.JSC$15208_commandHandler=y;this.innertubeTransportService=W};
_.R(nV,BB);
nV.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy;return _.m(function(M){switch(M.nextAddress){case 1:return(D=(Z=W)==null?void 0:(G=Z.form)==null?void 0:G.element)&&_.vE(D),Y=_.Uc().get("hl"),u="",_.tm(M,2),_.n(M,XtI(Y),4);case 4:u=M.yieldResult;_.J6(M,3);break;case 2:return _.rs(M),D&&_.de(D),_.OP(Error("Ei"),"ERROR"),M.return();case 3:t=_.g(y,GIV);if(!t)return D&&_.de(D),M.return();(F=(b=t.commerceActionConfig)==null?void 0:(r=b.commandLifeCycleConfig)==null?
void 0:r.onStartCommand)&&c.JSC$15208_commandHandler.resolveCommand(F);return _.n(M,_.IL(c.innertubeTransportService,y,{client_data:{paymentsClientToken:{token:u}}}),5);case 5:(K=M.yieldResult)?(D&&_.de(D),((V=K)==null?0:V.command)&&c.JSC$15208_commandHandler.resolveCommand(K.command),(cy=(Q=t.commerceActionConfig)==null?void 0:(S=Q.commandLifeCycleConfig)==null?void 0:S.onSuccessCommand)&&c.JSC$15208_commandHandler.resolveCommand(cy)):(D&&_.de(D),_.OP(Error("Fi")),(P=(l=t.commerceActionConfig)==
null?void 0:(N=l.commandLifeCycleConfig)==null?void 0:N.onFailureCommand)&&c.JSC$15208_commandHandler.resolveCommand(P)),_.F2(M)}})};
nV[dq]=[_.i1,_.b0];var XN=function(y,W,c){this.store=y;this.JSC$15224_commandHandler=W;this.innertubeTransportService=c};
_.R(XN,BB);
XN.prototype.resolveCommand=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F;return _.m(function(K){Z=_.g(y,frV);G=Z.googlePaymentPayload;Z.onStartCommand&&c.JSC$15224_commandHandler.resolveCommand(Z.onStartCommand);D=G.encryptedPurchaseParams;Y=G.ypcLogWalletAnalyticDataEndpoint;u=Z.serializedTransactionFlowLoggingParams;t=G.serializedPaymentsClientParams;b=Z.ypcCujContext;F=FPy(c.innertubeTransportService,(r=W)==null?void 0:r.form,D,Y,u,t,b);return K.return(F.then(function(l){bwI(W==null?void 0:W.form,
!1);var N=c.store,P=c.JSC$15224_commandHandler,V=l.integratorData;V==null||V===""||l.error!=null?(String(l.error)==="-1"&&Z.onDismissCommand?P.resolveCommand(Z.onDismissCommand):String(l.error)!=="-1"&&Z.onFailureCommand&&P.resolveCommand(Z.onFailureCommand),String(l.error)!=="-1"&&String(l.error)!=="132"&&_.OP(Error("Gi"),"ERROR")):(Z.googlePaymentEntityKey&&N.dispatch(_.o3("commerceAcquisitionClientPayloadEntity",Z.googlePaymentEntityKey,{key:Z.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:V,
fundsGuaranteeCallbackClientData:l.integratorClientCallbackData}}})),Z.onSuccessCommand&&P.resolveCommand(Z.onSuccessCommand));_.sc()},function(l){bwI(W==null?void 0:W.form,!1);
_.OP(l,"ERROR");Z.onFailureCommand&&c.JSC$15224_commandHandler.resolveCommand(Z.onFailureCommand)}))})};
XN[dq]=[fy,_.i1,_.b0];var bQ=function(y,W){this.JSC$15228_commandHandler=y;this.purchaseManager=W};
_.R(bQ,BB);
bQ.prototype.resolveCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b,r;return _.m(function(F){c=_.g(y,oSm);((Z=c)==null?0:(G=Z.commandLifeCycleConfig)==null?0:G.onStartCommand)&&W.JSC$15228_commandHandler.resolveCommand(c.commandLifeCycleConfig.onStartCommand);if(!((D=c)==null?0:(Y=D.googlePaymentPurchaseManagerPayload)==null?0:Y.securePayloadBytes))return _.OP(Error("Hi"),"ERROR"),F.return();u=TMV(_.cJ(c.googlePaymentPurchaseManagerPayload.securePayloadBytes));t=_.Uc().get("hl");b=_.px();z9Z(u.serialize(),
t,function(K){b.resolve(K)},function(K){b.reject(K)},b.resolve);
r=b.promise;return F.return(r.then(function(K){if(K)if(K==null?0:K.errorCode){_.OP(Error("Ii`"+K.errorCode),"ERROR");var l,N;((l=c)==null?0:(N=l.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&W.JSC$15228_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}else if(K==null?0:K.isCancelled){var P,V;((P=c)==null?0:(V=P.commandLifeCycleConfig)==null?0:V.onCancelCommand)&&W.JSC$15228_commandHandler.resolveCommand(c.commandLifeCycleConfig.onCancelCommand)}else{var Q,S;((Q=c)==
null?0:(S=Q.commandLifeCycleConfig)==null?0:S.onSuccessCommand)&&W.JSC$15228_commandHandler.resolveCommand(c.commandLifeCycleConfig.onSuccessCommand)}},function(K){_.OP(K,"ERROR");
var l,N;((l=c)==null?0:(N=l.commandLifeCycleConfig)==null?0:N.onFailureCommand)&&W.JSC$15228_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}))})};
bQ[dq]=[_.i1,YbQ];var WM3=function(y,W){this.JSC$15236_commandHandler=y;this.commandAllowlistOverride=W;var c;this.commandAllowlist=(c=this.commandAllowlistOverride)!=null?c:PF};
WM3.prototype.handleResponse=function(y,W,c){var Z,G=W==null?void 0:(Z=W.config)==null?void 0:Z.command;if(!G||this.commandAllowlist.some(function(D){return!!_.g(G,D)})){W=void 0;
c!==void 0&&(W={form:{element:c}});y.onResponseReceivedCommand&&this.JSC$15236_commandHandler.resolveCommand(y.onResponseReceivedCommand,W);y.onResponseReceivedAction&&this.JSC$15236_commandHandler.resolveCommand(y.onResponseReceivedAction,W);y.onResponseReceivedEndpoint&&this.JSC$15236_commandHandler.resolveCommand(y.onResponseReceivedEndpoint,W);y.command&&this.JSC$15236_commandHandler.resolveCommand(y.command,W);if(y.onResponseReceivedCommands)for(c=_.z(y.onResponseReceivedCommands),Z=c.next();!Z.done;Z=
c.next())this.JSC$15236_commandHandler.resolveCommand(Z.value,W);if(y.onResponseReceivedActions)for(c=_.z(y.onResponseReceivedActions),Z=c.next();!Z.done;Z=c.next())this.JSC$15236_commandHandler.resolveCommand(Z.value,W);if(y.onResponseReceivedEndpoints)for(c=_.z(y.onResponseReceivedEndpoints),Z=c.next();!Z.done;Z=c.next())this.JSC$15236_commandHandler.resolveCommand(Z.value,W);if(y.actions)for(y=_.z(y.actions),c=y.next();!c.done;c=y.next())this.JSC$15236_commandHandler.resolveCommand(c.value,W)}};
WM3[dq]=[_.i1,_.xN(UNh)];var co3=new _.Sm("INNERTUBE_TOKEN_SERVICE");var Zg6=new _.Sm("SCHEDULER_TOKEN");var GYg=function(y){this.scheduler=y;y={};this.tokenMap=(y.app={},y.user={},y)};
GYg.prototype.handleResponse=function(y,W){if(!W)throw Error("Ji");var c;if(y=(c=y.responseContext)==null?void 0:c.innertubeTokenJar){if(y.appTokens){var Z,G,D;c=(Z=W.innerTubeRequest.context)==null?void 0:(G=Z.request)==null?void 0:(D=G.innertubeTokenJar)==null?void 0:D.appTokens;fdf(this,y.appTokens,this.tokenMap.app,c)}if(y.userTokens){var Y,u,t;W=(Y=W.innerTubeRequest.context)==null?void 0:(u=Y.request)==null?void 0:(t=u.innertubeTokenJar)==null?void 0:t.userTokens;fdf(this,y.userTokens,this.tokenMap.user,
W)}}};
GYg.prototype.processContext=function(y){y.request||(y.request={});var W=Object.keys(this.tokenMap.app).length,c=Object.keys(this.tokenMap.user).length;if(W||c)y.request.innertubeTokenJar={},W&&(y.request.innertubeTokenJar.appTokens=[].concat(_.No(Object.values(this.tokenMap.app).flat()))),c&&(y.request.innertubeTokenJar.userTokens=[].concat(_.No(Object.values(this.tokenMap.user).flat())))};
var fdf=function(y,W,c,Z){W=_.z(W);for(var G=W.next(),D={};!G.done;D={token$jscomp$137:void 0},G=W.next()){D.token$jscomp$137=G.value;if(D.token$jscomp$137.type===void 0)throw new _.ul("InnerTube token has no type",D.token$jscomp$137);if(D.token$jscomp$137.clearTokens)c[D.token$jscomp$137.type]=[];else if(D.token$jscomp$137.value!==void 0){c[D.token$jscomp$137.type]||(c[D.token$jscomp$137.type]=[]);if(Z!==void 0&&Z.length){G=_.z(Z);for(var Y=G.next(),u={};!Y.done;u={requestToken:void 0},Y=G.next())u.requestToken=
Y.value,Y=c[D.token$jscomp$137.type].findIndex(function(t){return function(b){return b===t.requestToken||(0,_.Eb.equals)(b,t.requestToken)}}(u)),Y>-1&&c[D.token$jscomp$137.type].splice(Y,1)}c[D.token$jscomp$137.type].push(D.token$jscomp$137);
D.token$jscomp$137.maxAgeSeconds&&Number(D.token$jscomp$137.maxAgeSeconds)>0&&y.scheduler.addLowPriorityJob(function(t){return function(){var b=c[t.token$jscomp$137.type].indexOf(t.token$jscomp$137);b>-1&&c[t.token$jscomp$137.type].splice(b,1)}}(D),Number(D.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.ul("InnerTube token has no value",D.token$jscomp$137);
}};
GYg[dq]=[Zg6];var orS=new _.Sm("LOCAL_INNERTUBE_ROUTER_TOKEN"),DQ6=new _.Sm("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var rk=function(y){this.serviceMap=y};
rk.prototype.shouldPreferLocalResponse=function(y,W){return(y=zKf(this,y))?y.shouldPreferLocalResponse(W):!1};
rk.prototype.localInnertubeResponse=function(y,W){var c=this,Z;return _.m(function(G){return(Z=zKf(c,y))?G.return(Z.localInnertubeResponse(W)):G.return(Promise.reject(Error("Ki")))})};
rk.prototype.canProvideFallbackResponse=function(y,W){return(y=zKf(this,y))?y.canProvideFallbackResponse(W):!1};
rk.prototype.localFallbackInnertubeResponse=function(y,W){var c=this,Z;return _.m(function(G){return(Z=zKf(c,y))?G.return(Z.localFallbackInnertubeResponse(W)):G.return(Promise.reject(Error("Ki")))})};
var zKf=function(y,W){W=_.c7(W);return W?(y=y.serviceMap[W])?y:null:null};
rk[dq]=[DQ6];var FG=function(){};
FG.prototype.shouldPreferLocalResponse=function(){return!1};
FG.prototype.localInnertubeResponse=function(){return _.m(function(y){return y.return(Promise.reject(Error("Li")))})};
FG.prototype.canProvideFallbackResponse=function(){return!0};
FG.prototype.localFallbackInnertubeResponse=function(){var y,W,c;return _.m(function(Z){y=Ud("CLOSE_POPUP");W={openPopupAction:$yE()};c={actions:[y,W]};return Z.return(c)})};var Tn1=function(y,W){this.JSC$15286_upliftPromise=y;this.store=W};
_.f=Tn1.prototype;_.f.shouldPreferLocalResponse=function(y){var W=y.videoId,c;if(c=W)c=dYt(this.store.getState().entities,y.videoId);return c&&Sx1(this.store.getState().entities,W)?Owg(this.store.getState().entities,y.playlistId):!1};
_.f.localInnertubeResponse=function(y){var W=this,c;return _.m(function(Z){return(c=W.getPlayerResponse(y))?Z.return(Promise.resolve(c)):Z.return(Promise.reject(Error("Mi")))})};
_.f.canProvideFallbackResponse=function(y){return!!y.videoId};
_.f.localFallbackInnertubeResponse=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.JSC$15286_upliftPromise,2);c=W.getPlayerResponse(y);var G;c?G=Z.return(Promise.resolve(c)):G=Fj(W.store.getState().entities,y.videoId)?Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.wK(_.bN("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Rvy()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.wK(_.bN("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:geh()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return G})};
_.f.getPlayerResponse=function(y){return X0a(this.store.getState().entities,y.videoId)};var rl=function(y,W){this.localPlayerService=y;this.localWatchNextService=W};
rl.prototype.shouldPreferLocalResponse=function(y){var W=y.playerRequest;y=y.watchNextRequest;return!!(W&&this.localPlayerService.shouldPreferLocalResponse(W)&&y&&this.localWatchNextService.shouldPreferLocalResponse(y))};
rl.prototype.localInnertubeResponse=function(y){var W=this,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1){c=y.playerRequest;Z=y.watchNextRequest;if(!c||!Z)throw new _.ul("Missing streaming request",y);return _.n(Y,W.localPlayerService.localInnertubeResponse(c),2)}if(Y.nextAddress!=3)return G=Y.yieldResult,_.n(Y,W.localWatchNextService.localInnertubeResponse(Z),3);D=Y.yieldResult;return Y.return({playerResponse:G,watchNextResponse:D})})};
rl.prototype.canProvideFallbackResponse=function(y){var W=y.playerRequest;y=y.watchNextRequest;return!!(W&&this.localPlayerService.canProvideFallbackResponse(W)&&y&&this.localWatchNextService.canProvideFallbackResponse(y))};
rl.prototype.localFallbackInnertubeResponse=function(y){var W=this,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return c=y.playerRequest,Z=y.watchNextRequest,c&&Z?_.n(Y,W.localPlayerService.localFallbackInnertubeResponse(c),2):Y.return(Promise.reject(new _.ul("Missing streaming request",y)));if(Y.nextAddress!=3)return G=Y.yieldResult,_.n(Y,W.localWatchNextService.localFallbackInnertubeResponse(Z),3);D=Y.yieldResult;return Y.return({playerResponse:G,watchNextResponse:D})})};var td=function(y){this.JSC$15296_persistentStorePromiseAccessor=y};
td.prototype.shouldPreferLocalResponse=function(){return!1};
td.prototype.localInnertubeResponse=function(){return _.m(function(y){return y.return(Promise.reject(Error("Ni")))})};
td.prototype.canProvideFallbackResponse=function(){return!0};
td.prototype.localFallbackInnertubeResponse=function(){var y=this,W,c;return _.m(function(Z){return Z.nextAddress==1?_.n(Z,y.JSC$15296_persistentStorePromiseAccessor(),2):Z.nextAddress!=3?(W=Z.yieldResult)?_.n(Z,W.get("service:guide:fallback"),3):Z.return(Promise.reject(Error("Oi"))):(c=Z.yieldResult)&&_.Zs(c)?Z.return(goh(_.Zs(c))):Z.return(Promise.reject(Error("Pi")))})};var U9=function(){};
U9.prototype.shouldPreferLocalResponse=function(){return!1};
U9.prototype.localInnertubeResponse=function(){return _.m(function(y){return y.return(Promise.reject(Error("Qi")))})};
U9.prototype.canProvideFallbackResponse=function(){return!0};
U9.prototype.localFallbackInnertubeResponse=function(){var y,W,c;return _.m(function(Z){y=Ud("CLOSE_POPUP");W={openPopupAction:$yE()};c={actions:[y,W]};return Z.return(c)})};var uT=function(){this.urlMap=YRB;this.fallbackCommand=_.fH};
uT.prototype.shouldPreferLocalResponse=function(y){return(y=y.url)?!!mQ6(this,y):!1};
uT.prototype.localInnertubeResponse=function(y){var W=this,c;return _.m(function(Z){return(c=y.url)?Z.return(seg(y,mQ6(W,c))):Z.return(Promise.reject(Error("Ri")))})};
uT.prototype.canProvideFallbackResponse=function(){return!0};
uT.prototype.localFallbackInnertubeResponse=function(y){var W=this,c,Z,G,D,Y,u,t;return _.m(function(b){c=y.url;if(!c)return b.return(seg(y,W.fallbackCommand));if(Z=mQ6(W,c))return b.return(seg(y,Z));G=void 0;D=_.c7(c);D==="/watch"&&(Y=_.Q4(c,"v"))&&(t=(u=_.Q4(c,"list"))!=null?u:void 0,G=_.eG(Y,t));G||(G=W.fallbackCommand);return b.return(seg(y,G))})};
var mQ6=function(y,W){if(W)return y.urlMap[_.BT(W)]},seg=function(y,W){W&&y.parentTrackingParams&&(W.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:y.parentTrackingParams}},W.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:W})};var ny=function(y,W,c){this.JSC$15306_upliftPromise=y;this.store=W;this.JSC$15306_persistentStorePromiseAccessor=c};
ny.prototype.shouldPreferLocalResponse=function(){return!1};
ny.prototype.localInnertubeResponse=function(){return _.m(function(y){return y.return(Promise.reject(Error("Si")))})};
ny.prototype.canProvideFallbackResponse=function(){return!0};
ny.prototype.localFallbackInnertubeResponse=function(){var y=this;return _.m(function(W){return W.return(ueH(y))})};
var ueH=function(y){var W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,cU(y.JSC$15306_upliftPromise,y.store),2);W=Z.yieldResult;c={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[KPD(W)]}}}};return Z.return(tZ6(y,c))})},tZ6=function(y,W){var c,Z;
return _.m(function(G){if(G.nextAddress==1)return _.n(G,y.JSC$15306_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3)return c=G.yieldResult,_.n(G,Gy(c),3);Z=G.yieldResult;return G.return({responseContext:{},contents:W,topbar:Z})})};var mH=function(y,W,c){this.JSC$15313_upliftPromise=y;this.store=W;this.JSC$15313_persistentStorePromiseAccessor=c};
mH.prototype.shouldPreferLocalResponse=function(y){var W=y.videoId;return W&&dYt(this.store.getState().entities,W)&&Sx1(this.store.getState().entities,W)?Owg(this.store.getState().entities,y.playlistId):!1};
mH.prototype.localInnertubeResponse=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1)return(c=y.videoId)?_.n(G,W.JSC$15313_upliftPromise,2):G.return(Promise.reject(Error("Ti")));if(G.nextAddress!=3)return _.n(G,nrH(W,y,c),3);Z=G.yieldResult;return G.return(Xkf(W,Z,c))})};
mH.prototype.canProvideFallbackResponse=function(y){return y.videoId?!0:!1};
mH.prototype.localFallbackInnertubeResponse=function(y){var W=this,c,Z,G,D;return _.m(function(Y){switch(Y.nextAddress){case 1:return(c=y.videoId)?_.n(Y,W.JSC$15313_upliftPromise,2):Y.return(Promise.reject(Error("Ti")));case 2:return _.n(Y,nrH(W,y,c),3);case 3:Z=Y.yieldResult;if(Fj(W.store.getState().entities,c)){Y.jumpTo(4);break}return _.n(Y,cU(W.JSC$15313_upliftPromise,W.store),5);case 5:return G=Y.yieldResult,Y.return(bgH(Z,G));case 4:return dYt(W.store.getState().entities,c)&&Sx1(W.store.getState().entities,
c)?Y.return(Xkf(W,Z,c)):(D={title:_.wK(_.bN("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Rvy()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Y.return(bgH(Z,D)))}})};
var nrH=function(y,W,c){var Z,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1)return Z=W.playlistId,G=_.eG(c,Z),_.n(t,y.JSC$15313_persistentStorePromiseAccessor(),2);if(t.nextAddress!=3)return D=t.yieldResult,_.n(t,Gy(D),3);Y=t.yieldResult;u={responseContext:{},currentVideoEndpoint:G,topbar:Y};return t.return(u)})},Xkf=function(y,W,c){if(y=Fj(y.store.getState().entities,c)){var Z;
c=y.videoEntity;var G,D={title:q2(c.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.kA((Z=c.localizedStrings)==null?void 0:Z.viewCount),viewCount:_.kA((G=c.localizedStrings)==null?void 0:G.viewCount)}}};c.publishedTimestampMillis&&(D.dateText=_.kA(ZAh(new Date(Number(c.publishedTimestampMillis)))));Z={videoPrimaryInfoRenderer:D};G=y.videoEntity;y=y.channelEntity;y={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:q2(_.bN("SHOW_MORE",void 0,"Show more")),
showLessText:q2(_.bN("SHOW_LESS",void 0,"Show less")),description:G.formattedDescription,owner:{videoOwnerRenderer:{title:q2(y.title),thumbnail:y.avatar}}}};W.contents={twoColumnWatchNextResults:{results:{results:{contents:[Z,y]}}}}}return W},bgH=function(y,W){y.contents={singleColumnWatchNextResults:{results:{results:{contents:[KPD(W)]}}}};
return y};var XG=function(y,W,c){this.JSC$15319_upliftPromise=y;this.store=W;this.JSC$15319_persistentStorePromiseAccessor=c};
XG.prototype.shouldPreferLocalResponse=function(){return!1};
XG.prototype.localInnertubeResponse=function(){return _.m(function(y){return y.return(Promise.reject(Error("Ui")))})};
XG.prototype.canProvideFallbackResponse=function(){return!0};
XG.prototype.localFallbackInnertubeResponse=function(){var y=this,W,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:return _.n(D,y.JSC$15319_persistentStorePromiseAccessor(),2);case 2:return W=D.yieldResult,_.n(D,Gy(W),3);case 3:return c=D.yieldResult,Z={responseContext:{},topbar:c},_.n(D,y.JSC$15319_upliftPromise,4);case 4:return _.n(D,cU(y.JSC$15319_upliftPromise,y.store),5);case 5:return G=D.yieldResult,Z.watchStatus={backgroundPromoRenderer:G},D.return(Z)}})};var roS=new _.Sm("ENDPOINT_MAP");var FMB=function(){var y=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return y.sequenceMap}}},zQQ=function(y,W,c){var Z,G=(Z=W.config)==null?void 0:Z.sequenceStrategy;
if(!G)return c();y.sequenceMap.has(G.sequenceKey)||y.sequenceMap.set(G.sequenceKey,[]);y=y.sequenceMap.get(G.sequenceKey);switch(G.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return UQH(y,W,c);case "REQUEST_SEQUENCE_TYPE_REPLACE":return $Q9(y,W,c);default:throw new _.ul("Request could not be sequenced",W);}},UQH=function(y,W,c){var Z,G,D;
return _.m(function(Y){y.length>0?(G=y[y.length-1],Z=G.responsePromise.then(function(){return c()})):Z=c();
D={request:W,responsePromise:Z};y.push(D);KMB(y,D);return Y.return(D.responsePromise)})},$Q9=function(y,W,c){c=c();
if(y.length>0)for(var Z=_.z(y),G=Z.next();!G.done;G=Z.next())G.value.responsePromise=c;var D={request:W,responsePromise:c};y.push(D);KMB(y,D);return Promise.resolve().then(function(){return y.indexOf(D)>0?D.responsePromise.then(function(Y){return Object.assign({},Y,{sequenceMetaData:{skipProcessing:!0}})}):D.responsePromise})},KMB=function(y,W){W.responsePromise.then(function(){var c=y.indexOf(W);
c>-1&&y.splice(c,1)})};var OgQ=new _.Sm("REQUEST_SEQUENCING");var FN=function(){};
_.R(FN,F_);FN.prototype.getApiPaths=function(){return[]};
FN.prototype.getExtension=function(y){return _.g(y,id8)};
FN.prototype.JSC$11754_buildRequest=function(y,W){y.recaptchaToken=W.recaptchaToken};
FN.prototype.getApiUrl=function(){return"/das_captcha"};var UJ=function(){};
_.R(UJ,F_);UJ.prototype.getApiPaths=function(){return ZBT};
UJ.prototype.getExtension=function(y){return _.g(y,KS0)};
UJ.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.createBackstagePostParams&&(y.createBackstagePostParams=W.createBackstagePostParams);c.comment_text&&(y.commentText=c.comment_text);if(c.attached_video_id)y.videoAttachment={videoId:c.attached_video_id};else if(c.image_poll_options)y.pollAttachmentData={options:c.image_poll_options};else if(c.poll_options)y.pollAttachment={choices:c.poll_options};else if(c.quiz_options)y.quizAttachmentData={options:c.quiz_options};else if(c.image_blob_id)y.imageAttachment=
{encryptedBlobId:c.image_blob_id},c.source_video_id&&(y.imageAttachment.sourceExternalVideoId=c.source_video_id),c.image_preview_coordinates&&(y.imageAttachment.previewCoordinates=JSON.parse(c.image_preview_coordinates));else if(c.images_data)y.imagesAttachment={imagesData:c.images_data};else if(c.clip_external_video_id!==void 0||c.clip_offset_ms!==void 0||c.clip_duration_ms!==void 0){var Z,G,D,Y,u;y.clipAttachment={externalVideoId:(D=c.clip_external_video_id)!=null?D:"",offsetMs:(Y=(Z=c.clip_offset_ms)==
null?void 0:Z.toString())!=null?Y:"",durationMs:(u=(G=c.clip_duration_ms)==null?void 0:G.toString())!=null?u:""}}else c.shared_post_id&&(y.sharedPostAttachment={postId:c.shared_post_id});c.tagged_video_id&&(y.postCreationData={taggedVideoId:c.tagged_video_id});c.access_restrictions&&(typeof c.access_restrictions==="number"&&(W=c.access_restrictions,y.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof c.access_restrictions==="string"&&
(y.accessRestrictionsParams=c.access_restrictions));c.scheduled_publish_time_sec&&(y.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString())};var $J=function(){};
_.R($J,F_);$J.prototype.getApiPaths=function(){return m0E};
$J.prototype.getExtension=function(y){return _.g(y,KuT)};
$J.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.decorateMessageParams&&(y.params=W.decorateMessageParams);c.text&&(y.text=c.text)};var KV=function(){};
_.R(KV,F_);KV.prototype.getApiPaths=function(){return PuV};
KV.prototype.getExtension=function(y){return _.g(y,O$3)};
KV.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;c.video_id&&(y.videoId=c.video_id)};var OJ=function(){};
_.R(OJ,F_);OJ.prototype.getApiPaths=function(){return hrW};
OJ.prototype.getExtension=function(y){return _.g(y,_.nl)};
OJ.prototype.JSC$11754_buildRequest=function(y,W,c){c.suggestions_query&&(y.input=c.suggestions_query)};var gk=function(){};
_.R(gk,F_);gk.prototype.getApiPaths=function(){return X22};
gk.prototype.getExtension=function(y){return _.g(y,gpZ)};
gk.prototype.JSC$11754_buildRequest=function(y,W,c){c.comment_text!==void 0&&(y.commentText=c.comment_text);c.scheduled_publish_time_sec&&(y.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString());y.updateBackstagePostParams=W.updateBackstagePostParams};var RF=function(){};
_.R(RF,F_);RF.prototype.getApiPaths=function(){return Mv};
RF.prototype.getExtension=function(y){return _.g(y,_.$x)};
RF.prototype.JSC$11754_buildRequest=function(y,W,c){c.formData&&(y.formData=c.formData);W.token?y.continuation=W.token:W.continuationTokenKey&&(c=_.Sv().getState(),W=_.fq(c.entities,"continuationTokenEntity",W.continuationTokenKey))&&(y.continuation=String(W.continuationToken))};
var grH=function(){};
_.R(grH,F_);_.f=grH.prototype;_.f.getApiPaths=function(){return Mv};
_.f.getExtension=function(y){return _.g(y,_.oW)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11761_getStoreKey=function(y){if((y=this.getExtension(y))&&y.browseId){var W={browseId:y.browseId};y.browseEndpointContextSupportedConfigs&&(W.browseEndpointContextSupportedConfigs=JSON.stringify(y.browseEndpointContextSupportedConfigs));y.params&&(W.params=y.params);y.query&&(W.query=y.query);return _.dz("browse",W)}};
_.f.JSC$11754_buildRequest=function(y,W,c){W.browseId&&(y.browseId=W.browseId);W.params&&(y.params=W.params);W.query&&(y.query=W.query);c.formData?y.formData=c.formData:W.formData&&(y.formData=W.formData);W.browseId==="FEsubscriptions"&&_.Uc().getFlag(155)&&(y.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");W.browseId==="SPaccount_playback"&&(c=_.Uc(),y.formData||(y.formData={}),y.formData.accountSettingsFormData={flagCaptionsDefaultOff:c.getFlag(65),flagAutoCaptionsDefaultOn:c.getFlag(66),
flagDisableInlinePreview:c.getFlag(186),flagAudioDescriptionDefaultOn:c.getFlag(198)});if(W.browseId==="FEwhat_to_watch"){c=_.Uc();var Z=c.getFlag(196);c.getFlag(197)&&(y.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Z}}})}W.browseId==="FEwhat_to_watch"&&(W=_.Uc().getFlag(186),y.inlineSettingStatus=W?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.f.getRequestConfig=function(y,W){W=W===void 0?{}:W;var c={};if(y=this.JSC$11761_getStoreKey(y,W))c.storeStrategy={storeKey:y,disableCache:W.disableCache};_.O("web_log_browse_ticks_ks")||(c.requestTick="br_s",c.responseTick="br_r");return c};var lQ=function(){};
_.R(lQ,F_);lQ.prototype.getApiPaths=function(){return qoW};
lQ.prototype.getExtension=function(y){return _.g(y,H22)};
lQ.prototype.JSC$11754_buildRequest=function(y,W,c){y.legacyYoutubeChannelUsername=c.legacyYouTubeChannelUsername||"";y.legacyYoutubeChannelPassword=c.legacyYouTubeChannelPassword||""};var EJ=function(){};
_.R(EJ,F_);EJ.prototype.getApiPaths=function(){return ffV};
EJ.prototype.getExtension=function(y){return _.g(y,JUE)};
EJ.prototype.JSC$11754_buildRequest=function(y,W,c){c.recaptcha_response_token&&(y.recaptchaResponseToken=c.recaptcha_response_token);c.channel_id&&(y.channelId=c.channel_id)};var NS=function(){};
_.R(NS,F_);NS.prototype.getApiPaths=function(){return b48};
NS.prototype.getExtension=function(y){return _.g(y,Ba3)};
NS.prototype.JSC$11754_buildRequest=function(y,W,c){W.externalChannelId&&(y.externalChannelId=W.externalChannelId);c.handle&&(y.handleUpdate={handle:c.handle},W.handleEditSource&&(y.handleUpdate.handleEditSource=W.handleEditSource))};var IF=function(){};
_.R(IF,F_);IF.prototype.getApiPaths=function(){return $6m};
IF.prototype.getExtension=function(y){return _.g(y,kFZ)};
IF.prototype.JSC$11754_buildRequest=function(y,W,c){W.request&&(y.channelId=W.request.channelId);var Z;if(c==null?0:(Z=c.uploadDefaults)==null?0:Z.emojiReactionSet)y.uploadDefaultsRequest||(y.uploadDefaultsRequest={}),y.uploadDefaultsRequest.emojiReactionSet=c.uploadDefaults.emojiReactionSet};var pV=function(){};
_.R(pV,F_);pV.prototype.getApiPaths=function(){return gsQ};
pV.prototype.getExtension=function(y){return _.g(y,VwE)};
pV.prototype.JSC$11754_buildRequest=function(y,W,c){W.externalChannelId&&(y.externalChannelId=W.externalChannelId);W.channelHandleEntityKey&&(y.channelHandleEntityKey=W.channelHandleEntityKey);W.handleEditSource&&(y.handleEditSource=W.handleEditSource);c.handle?y.handle=c.handle:c.name&&(y.name=c.name)};var Pf=function(){};
_.R(Pf,F_);Pf.prototype.getApiPaths=function(){return yyE};
Pf.prototype.getExtension=function(y){return _.g(y,Ex)};
Pf.prototype.JSC$11754_buildRequest=function(y,W){W.actions?y.actions=W.actions:W.action&&(y.actions=[W.action])};var J$=function(){};
_.R(J$,F_);J$.prototype.getApiPaths=function(){return WW2};
J$.prototype.getExtension=function(y){return _.g(y,_.$x)};
J$.prototype.JSC$11754_buildRequest=function(y,W){W.token&&(y.continuation=W.token)};var Vg=function(){};
_.R(Vg,F_);Vg.prototype.getApiPaths=function(){return I$Z};
Vg.prototype.getExtension=function(y){return _.g(y,_.$x)};
Vg.prototype.JSC$11754_buildRequest=function(y,W){y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.token&&(y.fetchCommentsParams={continuation:W.token})};var CV=function(){};
_.R(CV,F_);CV.prototype.getApiPaths=function(){return on2};
CV.prototype.getExtension=function(y){return _.g(y,yI2)};
CV.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.createReplyParams&&(y.createReplyParams=W.createReplyParams);W.commentText&&(y.commentText=_.v$(W.commentText));c.comment_text&&(y.commentText=c.comment_text);c.image_blob_id&&(y.imageAttachment={encryptedBlobId:c.image_blob_id});c.botguard_response&&(y.botguardResponse=c.botguard_response)};
_.dJ.Object.defineProperties(CV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qg=function(){};
_.R(Qg,F_);Qg.prototype.getApiPaths=function(){return D02};
Qg.prototype.getExtension=function(y){return _.g(y,_.jt3)};
Qg.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.createCommentParams&&(y.createCommentParams=W.createCommentParams);W.commentText&&(y.commentText=_.v$(W.commentText));W.videoPositionMention&&(y.videoPositionMention=W.videoPositionMention);W.sources&&(y.sources=W.sources);c.comment_text&&(y.commentText=c.comment_text);c.attached_video_id?y.videoAttachment={videoId:c.attached_video_id}:c.poll_options?y.pollAttachment={choices:c.poll_options}:c.image_blob_id?y.imageAttachment=
{encryptedBlobId:c.image_blob_id}:c.shared_post_id&&(y.sharedPostAttachment={postId:c.shared_post_id});c.access_restrictions&&typeof c.access_restrictions==="number"&&(W=c.access_restrictions,y.accessRestrictions={restriction:W!==1&&W===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});c.botguard_response&&(y.botguardResponse=c.botguard_response)};
_.dJ.Object.defineProperties(Qg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var A$=function(){};
_.R(A$,F_);A$.prototype.getApiPaths=function(){return rZm};
A$.prototype.getExtension=function(y){return _.g(y,cIT)};
A$.prototype.JSC$11754_buildRequest=function(y,W,c){W.commentText&&(y.replyText=_.v$(W.commentText));c.comment_text&&(y.replyText=c.comment_text);y.updateReplyParams=W.updateReplyParams};
_.dJ.Object.defineProperties(A$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var h$=function(){};
_.R(h$,F_);h$.prototype.getApiPaths=function(){return FKV};
h$.prototype.getExtension=function(y){return _.g(y,W_V)};
h$.prototype.JSC$11754_buildRequest=function(y,W,c){W.commentText&&(y.commentText=_.v$(W.commentText));c.comment_text&&(y.commentText=c.comment_text);y.updateCommentParams=W.updateCommentParams};
_.dJ.Object.defineProperties(h$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Bf=function(){};
_.R(Bf,F_);Bf.prototype.getApiPaths=function(){return U6V};
Bf.prototype.getExtension=function(y){return _.g(y,Mwm)};
Bf.prototype.JSC$11754_buildRequest=function(y,W){W.settings&&(y.settings=W.settings)};var Hf=function(){};
_.R(Hf,F_);Hf.prototype.getApiPaths=function(){return KWV};
Hf.prototype.getExtension=function(y){return _.g(y,CUW)};
Hf.prototype.JSC$11754_buildRequest=function(y,W){W.channelCreationToken&&(y.channelCreationToken=W.channelCreationToken);W.source&&(y.source=W.source)};var LV=function(){};
_.R(LV,F_);LV.prototype.getApiPaths=function(){return f$2};
LV.prototype.getExtension=function(y){return _.g(y,hGZ)};
LV.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;if(c.name&&(c.given_name||c.family_name))y=new _.ul("channel creation cannot set both GAIA and YouTube names",W),_.OP(y);else{if(W.zeroStepChannelCreationParams){if(!c.comment_text){y=new _.ul("zero_step_create_comment_params but no zero_step_texts",W);_.OP(y);return}y.zeroStepChannelCreationParams=W.zeroStepChannelCreationParams;y.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
c.comment_text,c.botguard_response&&(y.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=c.botguard_response))}y.channelCreationToken=W.channelCreationToken;c.given_name&&(y.givenName=c.given_name);c.family_name&&(y.familyName=c.family_name);W.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(y.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(c.name||c.handle||c.avatar_url||c.encryptedBlobId||c.isNameChanged!==void 0||c.isHandleChanged!==void 0||c.isDefaultProfilePhoto!==
void 0||c.obakeImageSource)y.overrideChannelCreationParams={},c.name&&(y.overrideChannelCreationParams.name=c.name),c.handle&&(y.overrideChannelCreationParams.handle=c.handle),c.avatar_url&&(y.overrideChannelCreationParams.avatarUrl=c.avatar_url),c.encryptedBlobId&&(y.overrideChannelCreationParams.blobEncryptionId=c.encryptedBlobId),c.enableIdentityForAllChannelCreationDialog&&(c.encryptedBlobId?y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
c.isDefaultProfilePhoto!==void 0&&(y.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=c.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),c.isNameChanged!==void 0&&(y.overrideChannelCreationParams.identityForAllChannelCreationNameTag=c.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),c.isHandleChanged!==
void 0&&(y.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=c.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),c.obakeImageSource&&(y.overrideChannelCreationParams.obakeImageSourceType=c.obakeImageSource))}};var vf=function(){};
_.R(vf,F_);vf.prototype.getApiPaths=function(y){return(y=this.getExtension(y))&&y.status==="DISLIKE"?nn0:y&&y.status==="INDIFFERENT"?yZm:d0i};
vf.prototype.getExtension=function(y){return _.g(y,_.Ls)};
vf.prototype.JSC$11754_buildRequest=function(y,W){W.target&&(y.target=W.target);if(W=this.getParams(W))y.params=W};
vf.prototype.getParams=function(y){switch(y==null?void 0:y.status){case "DISLIKE":return y.dislikeParams;case "INDIFFERENT":return y.removeLikeParams;default:return y==null?void 0:y.likeParams}};var dk=function(){};
_.R(dk,F_);dk.prototype.getApiPaths=function(){return m6Z};
dk.prototype.getExtension=function(y){return _.g(y,zDJ)};
dk.prototype.JSC$11754_buildRequest=function(y,W){W.settingItemId&&(y.settingItemId=W.settingItemId);W.stringValue!=null&&W.stringValue!==void 0?y.newValue={stringValue:W.stringValue}:W.intValue?y.newValue={intValue:W.intValue}:W.boolValue!==null&&W.boolValue!==void 0?y.newValue={boolValue:W.boolValue}:(y=new _.ul("Unknown value type for SetSettingEndpoint.",W),_.OP(y))};var Sg=function(){};
_.R(Sg,F_);Sg.prototype.getApiPaths=function(){return uK5};
Sg.prototype.getExtension=function(y){return _.g(y,lEi)||void 0};
Sg.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.channelIds&&(y.channelIds=W.channelIds);W.siloName&&(y.siloName=W.siloName);W.params&&(y.params=W.params);c.botguardResponse&&(y.botguardResponse=c.botguardResponse);c.feature&&(y.clientFeature=c.feature)};
_.dJ.Object.defineProperties(Sg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Tc=function(){};
_.R(Tc,F_);Tc.prototype.getApiPaths=function(){return nsi};
Tc.prototype.getExtension=function(y){return _.g(y,YUT)||void 0};
Tc.prototype.JSC$11754_buildRequest=function(y,W){W.channelIds&&(y.channelIds=W.channelIds);W.siloName&&(y.siloName=W.siloName);W.params&&(y.params=W.params)};
_.dJ.Object.defineProperties(Tc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aF=function(y){this.shareClientParamsProvider=y};
_.R(aF,F_);aF.prototype.getApiPaths=function(){return Vc0};
aF.prototype.getExtension=function(y){return _.g(y,H7T)||_.g(y,_.LX2)||_.g(y,Bt3)};
aF.prototype.JSC$11754_buildRequest=function(y,W){W.serializedShareEntity&&(y.serializedSharedEntity=W.serializedShareEntity);if(W.clientParamIdentifier){var c;if((c=this.shareClientParamsProvider)==null?0:c.clientParams.has(W.clientParamIdentifier)){c=this.shareClientParamsProvider;W=W.clientParamIdentifier;var Z=c.clientParams.get(W);Z&&c.clientParams.delete(W);y.clientParams=Z}}};
aF[dq]=[Lf9];var xJ=function(){};
_.R(xJ,F_);xJ.prototype.getApiPaths=function(){return M_Z};
xJ.prototype.getExtension=function(y){return _.g(y,e_Z)};
xJ.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var iQ=function(){};
_.R(iQ,F_);iQ.prototype.getApiPaths=function(){return X8W};
iQ.prototype.getExtension=function(y){return _.g(y,xJi)};
iQ.prototype.JSC$11754_buildRequest=function(y,W){W.dismissal&&(y.items=[W.dismissal])};
_.dJ.Object.defineProperties(iQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var MS=function(){};
_.R(MS,F_);MS.prototype.getApiPaths=function(){return LWW};
MS.prototype.getExtension=function(y){return _.g(y,_.Na)||void 0};
MS.prototype.JSC$11754_buildRequest=function(y,W,c){y.feedbackTokens=[];W.feedbackToken&&y.feedbackTokens.push(W.feedbackToken);if(W=W.cpn||c.cpn)y.feedbackContext={cpn:W};y.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;y.shouldMerge=!1;c.extra_feedback_tokens&&(y.shouldMerge=!0,y.feedbackTokens=y.feedbackTokens.concat(c.extra_feedback_tokens))};
_.dJ.Object.defineProperties(MS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eg=function(){};
_.R(eg,F_);eg.prototype.getApiPaths=function(){return LWW};
eg.prototype.getExtension=function(y){return _.g(y,_.nl)};
eg.prototype.JSC$11754_buildRequest=function(y,W,c){c.feedback_tokens&&(y.feedbackTokens=c.feedback_tokens,y.shouldMerge=!0)};
_.dJ.Object.defineProperties(eg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var wk=function(){};
_.R(wk,F_);wk.prototype.getApiPaths=function(){return LWW};
wk.prototype.getExtension=function(y){return _.g(y,W5H)};
wk.prototype.JSC$11754_buildRequest=function(y,W){W.undoToken&&(y.feedbackTokens=[W.undoToken]);W.isUndoTokenUnencrypted&&(y.isFeedbackTokenUnencrypted=W.isUndoTokenUnencrypted)};
_.dJ.Object.defineProperties(wk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var qS=function(){};
_.R(qS,F_);qS.prototype.getApiPaths=function(){return R5T};
qS.prototype.getExtension=function(y){return _.g(y,SXZ)};
qS.prototype.JSC$11754_buildRequest=function(y,W){W.nextEndpoint&&_.g(W.nextEndpoint,_.CD)?y.nextEndpoint={urlEndpoint:_.g(W.nextEndpoint,_.CD)}:W.nextEndpoint&&_.g(W.nextEndpoint,_.Sb)&&(y.nextEndpoint={watchEndpoint:_.g(W.nextEndpoint,_.Sb)});W.setRacy&&(y.setRacy=W.setRacy);W.setControvercy&&(y.setControvercy=W.setControvercy)};var kJ=function(y){this.JSC$15501_storeWithEntities=y};
_.R(kJ,F_);kJ.prototype.getApiPaths=function(){return ryV};
kJ.prototype.getExtension=function(y){return _.g(y,tXV)};
kJ.prototype.JSC$11754_buildRequest=function(y,W){W.flowId&&(y.flowId=W.flowId);W.targetId&&(y.targetId=W.targetId);W.continuation&&(y.continuation=W.continuation);var c=W.flowStateEntityKey;if(W.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&c&&this.JSC$15501_storeWithEntities){var Z;if(W=(Z=this.JSC$15501_storeWithEntities.getState())==null?void 0:Z.entities)if(Z=_.W$(c).entityType,Z=_.fq(W,Z,c))y.flowState=Z,y.flowStateEntityKey=c}};
_.dJ.Object.defineProperties(kJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
kJ[dq]=[fy];var RKB=function(){};
_.R(RKB,F_);_.f=RKB.prototype;_.f.getApiPaths=function(){return HBZ};
_.f.JSC$11761_getStoreKey=function(){return _.dz("guide")};
_.f.getRequestConfig=function(){var y=this.JSC$11761_getStoreKey(),W;y&&(W={storeStrategy:{storeKey:y}});return W};
_.f.isNavigationCommand=function(){return!0};
_.f.getExtension=function(y){return _.g(y,_.nl)};
_.f.JSC$11754_buildRequest=function(y){y.fetchLiveState=!0};var jR=function(){};
_.R(jR,F_);jR.prototype.getApiPaths=function(){return kI8};
jR.prototype.getExtension=function(y){return _.g(y,wvm)};
jR.prototype.JSC$11754_buildRequest=function(){};var yZ=function(){};
_.R(yZ,F_);yZ.prototype.getApiPaths=function(){return jZT};
yZ.prototype.getExtension=function(y){return _.g(y,qxm)};
yZ.prototype.JSC$11754_buildRequest=function(){};var Ww=function(){};
_.R(Ww,F_);Ww.prototype.getApiPaths=function(){return iAZ};
Ww.prototype.getExtension=function(y){return _.g(y,_.$x)};
Ww.prototype.JSC$11754_buildRequest=function(y,W){W.token&&(y.continuation=W.token);var c,Z;y==null||(c=y.context)==null||(Z=c.user)==null||delete Z.onBehalfOfUser};
Ww.prototype.getRequestConfig=function(y){var W={},c;if(((c=this.getExtension(y))==null?void 0:c.sessionIndex)!==void 0){var Z;W={authStrategy:{sessionIndex:(Z=this.getExtension(y))==null?void 0:Z.sessionIndex}}}return W};var cw=function(){};
_.R(cw,F_);cw.prototype.JSC$11754_getRequest=function(y){var W=this.getExtension(y),c=y="";if(W==null?0:W.popup)y="true";if(W==null?0:W.disableSignout)c="true";W={};return{input:"/getAccountSwitcherEndpoint",requestShell:vT("/getAccountSwitcherEndpoint","GET",(W["X-YouTube-Delegation-Context"]=_.Nn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),W["X-YouTube-Account-Switcher-Popup"]=y,W["X-YouTube-Account-Switcher-Disable-Signout"]=c,W)),innerTubeRequest:{}}};
cw.prototype.getApiPaths=function(){return[]};
cw.prototype.getExtension=function(y){return _.g(y,_.XwI)};
cw.prototype.JSC$11754_buildRequest=function(){};var ZB=function(){};
_.R(ZB,F_);ZB.prototype.JSC$11754_getRequest=function(y){var W="/cross_account_channel_transfer";(y=this.getExtension(y))&&(W=urw(W,{target_session:y.targetSessionIndex,source_rapt:y.sourceRapt,rapt:y.targetRapt}));return{input:W,requestShell:vT(W,"GET"),innerTubeRequest:{}}};
ZB.prototype.getApiPaths=function(){return[]};
ZB.prototype.getExtension=function(y){return _.g(y,j4J)};
ZB.prototype.JSC$11754_buildRequest=function(){};var GT=function(){};
_.R(GT,F_);GT.prototype.getApiPaths=function(){return FWJ};
GT.prototype.isNavigationCommand=function(){return!0};
GT.prototype.getExtension=function(y){return _.g(y,_.nl)};
GT.prototype.JSC$11754_buildRequest=function(y){var W=_.Uc().get("gsml","");W&&(y.safetyModeLockerObfuscatedGaiaId=W);y.userInterfaceTheme=_.NO(!0);_.IW()?y.deviceTheme="DEVICE_THEME_SELECTED":_.NND()?y.deviceTheme="DEVICE_THEME_SUPPORTED":y.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var fm=function(){};
_.R(fm,F_);fm.prototype.getApiPaths=function(){return iAZ};
fm.prototype.getExtension=function(y){return _.g(y,yUi)};
fm.prototype.JSC$11754_buildRequest=function(y,W){if(W&&W.requestType&&(y.requestType=W.requestType,W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var c=W.nextUrl;c&&(_.nAf(c)||Sy(c))&&(y.nextNavendpoint={urlEndpoint:{url:c}})}W&&W.channelSwitcherQuery&&(y.channelSwitcherQuery=W.channelSwitcherQuery);W&&W.triggerChannelCreation&&(y.triggerChannelCreation=W.triggerChannelCreation);var Z;if(W==null?0:(Z=W.contentOwnerConfig)==
null?0:Z.externalContentOwnerId)y.contentOwnerConfig=W.contentOwnerConfig;y.callCircumstance=W&&W.requestType&&W.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var G,D;W=y==null?void 0:(G=y.context)==null?void 0:(D=G.user)==null?void 0:D.onBehalfOfUser;if(W!==void 0){y.obfuscatedSelectedGaiaId=W;var Y,u;y==null||(Y=y.context)==null||(u=Y.user)==null||delete u.onBehalfOfUser}var t,b;if(G=y==null?void 0:(t=y.context)==null?void 0:(b=t.user)==null?
void 0:b.serializedDelegationContext)y.selectedSerializedDelegationContext=G};var om=function(){};
_.R(om,F_);om.prototype.getApiPaths=function(){return Jy3};
om.prototype.getExtension=function(y){return _.g(y,esT)};
om.prototype.JSC$11754_buildRequest=function(y,W){W.profileOwnerExternalChannelId&&(y.profileOwnerExternalChannelId=W.profileOwnerExternalChannelId);W.profileCardContext&&(y.profileCardContext=W.profileCardContext)};var DB=function(){};
_.R(DB,F_);DB.prototype.getApiPaths=function(){return eZ8};
DB.prototype.getExtension=function(y){return _.g(y,vHi)};
DB.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var zT=function(){};
_.R(zT,F_);zT.prototype.getApiPaths=function(){return G6W};
zT.prototype.getExtension=function(y){return _.g(y,_.WXm)};
zT.prototype.JSC$11754_buildRequest=function(y,W){if(W=W.createBroadcastRequest)y.useMasks=W.useMasks,y.broadcastType=W.broadcastType,y.broadcastSource=W.broadcastSource,y.broadcastMetadata=W.broadcastMetadata,y.broadcastMetadataMask=W.broadcastMetadataMask,y.videoMetadata=W.videoMetadata,y.videoMetadataMask=W.videoMetadataMask,y.liveChatSettingsUpdate=W.liveChatSettingsUpdate,y.liveChatSettingsUpdateMask=W.liveChatSettingsUpdateMask,y.cloneVideoId=W.cloneVideoId,y.cloneWithOverrides=W.cloneWithOverrides,
y.targetEntity=W.targetEntity,y.scheduledRedirectMetadata=W.scheduledRedirectMetadata};var Yu=function(){};
_.R(Yu,F_);Yu.prototype.getApiPaths=function(){return zrm};
Yu.prototype.getExtension=function(y){return _.g(y,cei)};
Yu.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.params&&(y.params=W.params);c.questionText&&(y.questionText=c.questionText);c.optionText&&c.optionText.length>0&&(y.optionText=c.optionText)};var mU=function(){};
_.R(mU,F_);mU.prototype.getApiPaths=function(){return sZE};
mU.prototype.getExtension=function(y){return _.g(y,ye5)};
mU.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var s5=function(){};
_.R(s5,F_);s5.prototype.getApiPaths=function(){return gnJ};
s5.prototype.getExtension=function(y){return _.g(y,wiW)};
s5.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var u2=function(){};
_.R(u2,F_);u2.prototype.getApiPaths=function(){return l$V};
u2.prototype.getExtension=function(y){return _.g(y,qSZ)};
u2.prototype.JSC$11754_buildRequest=function(y,W,c){W.params&&(y.params=W.params);W.continuation&&(y.continuation=W.continuation);c.currentPlayerState&&c.currentPlayerState.playerOffsetMs&&(y.currentPlayerState={playerOffsetMs:c.currentPlayerState.playerOffsetMs.toString()})};var tw=function(){};
_.R(tw,F_);tw.prototype.getApiPaths=function(){return EnW};
tw.prototype.getExtension=function(y){return _.g(y,eFV)};
tw.prototype.JSC$11754_buildRequest=function(y,W,c){W.params&&(y.params=W.params);c.continuation&&(y.continuation=c.continuation);"hidden"in c&&(y.webClientInfo={isDocumentHidden:c.hidden});c.isInvalidationTimeoutRequest&&(y.isInvalidationTimeoutRequest=c.isInvalidationTimeoutRequest);c.invalidationPayload&&(W=MXQ(_.cJ(Tw(c.invalidationPayload))),y.invalidationPayloadLastPublishAtUsec=E2(W,2));c.reloadActionPanel&&(y.reloadActionPanel=c.reloadActionPanel);c.fullReload&&(y.fullReload=c.fullReload);
c.currentPlayerState&&(y.currentPlayerState=c.currentPlayerState)};var nm=function(){};
_.R(nm,F_);nm.prototype.getApiPaths=function(){return SsJ};
nm.prototype.getExtension=function(y){return _.g(y,Wxm)};
nm.prototype.JSC$11754_buildRequest=function(y,W){y.params=W.params};var X9=function(){};
_.R(X9,F_);X9.prototype.getApiPaths=function(){return Rr5};
X9.prototype.getExtension=function(y){return _.g(y,ZF8)};
X9.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var b2=function(){};
_.R(b2,F_);b2.prototype.getApiPaths=function(){return N$Z};
b2.prototype.getExtension=function(y){return _.g(y,GSZ)};
b2.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var rW=function(){};
_.R(rW,F_);rW.prototype.getApiPaths=function(){return T$i};
rW.prototype.getExtension=function(y){return _.g(y,ZGJ)};
rW.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var F9=function(){};
_.R(F9,F_);F9.prototype.getApiPaths=function(){return x0V};
F9.prototype.getExtension=function(y){return _.g(y,GCW)};
F9.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var U5=function(){};
_.R(U5,F_);U5.prototype.getApiPaths=function(){return WKZ};
U5.prototype.getExtension=function(y){return _.g(y,Tt5)};
U5.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var $u=function(){};
_.R($u,F_);$u.prototype.getApiPaths=function(){return z5W};
$u.prototype.getExtension=function(y){return _.g(y,_.fNW)};
$u.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.params&&(y.params=W.params);c.client_message_id&&(y.clientMessageId=c.client_message_id);c.recaptcha_token&&(y.recaptchaToken=c.recaptcha_token);c.rich_message&&c.rich_message.text_segments?(W=c.rich_message.text_segments.map(function(Z){var G={};Z.text&&(G.text=Z.text);Z.emoji_id&&(G.emojiId=Z.emoji_id);return G}),y.richMessage={textSegments:W}):c.message&&(y.message=c.message);
c.currentPlayerState&&(y.currentPlayerState=c.currentPlayerState)};var Km=function(){};
_.R(Km,F_);Km.prototype.getApiPaths=function(){return YOE};
Km.prototype.getExtension=function(y){return _.g(y,oK3)};
Km.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var O5=function(){};
_.R(O5,F_);O5.prototype.getApiPaths=function(){return tiQ};
O5.prototype.getExtension=function(y){return _.g(y,zgW)};
O5.prototype.JSC$11754_buildRequest=function(y,W,c){W.isUserInitiated&&(y.isUserInitiated=W.isUserInitiated);W.initiationSource&&(y.initiationSource=W.initiationSource);c.locationInfo&&(y.context.client.locationInfo=c.locationInfo)};var gW=function(){};
_.R(gW,F_);gW.prototype.getApiPaths=function(){return a$3};
gW.prototype.getExtension=function(y){return _.g(y,ckT)};
gW.prototype.JSC$11754_buildRequest=function(y,W,c){W.metadataUpdateRequest&&(W=W.metadataUpdateRequest,y.encryptedVideoId=W.encryptedVideoId,W.liveChat&&(W=W.liveChat,y.liveChat||(y.liveChat={}),W.performAsExternalChannelId&&(y.liveChat.performAsExternalChannelId=W.performAsExternalChannelId),W.source&&(y.liveChat.source=W.source)));var Z;if(c==null?0:(Z=c.liveChat)==null?0:Z.liveChatSettings)y.liveChat||(y.liveChat={}),c=c.liveChat.liveChatSettings,y.liveChat.newLiveChatSettings=c,y.liveChat.newLiveChatSettingsMask||
(y.liveChat.newLiveChatSettingsMask={}),c.emojiReactionSet&&(y.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Rm=function(){};
_.R(Rm,F_);Rm.prototype.getApiPaths=function(){return O4V};
Rm.prototype.getExtension=function(y){return _.g(y,_.mtE)};
Rm.prototype.JSC$11754_buildRequest=function(y,W,c){c.continuation?y.continuation=c.continuation:W.videoId&&(y.videoId=W.videoId);c.clientParams&&(y.clientParams=c.clientParams)};var l2=function(){};
_.R(l2,F_);l2.prototype.getApiPaths=function(){return I$Z};
l2.prototype.getExtension=function(y){return _.g(y,_.$I)};
l2.prototype.JSC$11754_buildRequest=function(y,W){y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";y.fetchCommentsParams={};W.videoId&&(y.fetchCommentsParams.encryptedVideoId=W.videoId);W.postId&&(y.fetchCommentsParams.postId=W.postId);W.externalChannelId&&(y.fetchCommentsParams.externalChannelId=W.externalChannelId);W.linkedCommentId&&(y.fetchCommentsParams.linkedCommentId=W.linkedCommentId);(0,_.Eb.isEmpty)(y.fetchCommentsParams)&&delete y.fetchCommentsParams};var E5=function(){};
_.R(E5,F_);E5.prototype.getApiPaths=function(){return Mv};
E5.prototype.JSC$11754_buildRequest=function(y){y.browseId="FEnotifications_inbox"};
E5.prototype.getExtension=function(y){return _.g(y,_.nl)};var NN=function(){};
_.R(NN,F_);NN.prototype.getApiPaths=function(){return I$Z};
NN.prototype.JSC$11754_buildRequest=function(y,W){W.signal==="GET_NOTIFICATIONS_MENU"&&(y.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");W.ctoken&&(y.ctoken=W.ctoken)};
var ldf=function(){};
_.R(ldf,NN);ldf.prototype.getExtension=function(y){return _.g(y,_.nl)};
var Er9=function(){};
_.R(Er9,NN);Er9.prototype.getExtension=function(y){return _.g(y,Lz3)};var Im=function(){};
_.R(Im,F_);Im.prototype.getApiPaths=function(){return AyJ};
Im.prototype.getExtension=function(y){return _.g(y,_.nl)};
Im.prototype.JSC$11754_buildRequest=function(){};var pm=function(){};
_.R(pm,F_);pm.prototype.getApiPaths=function(){return iBQ};
pm.prototype.getExtension=function(y){return _.g(y,fEQ)||void 0};
pm.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params);W.secondaryParams&&(y.secondaryParams=W.secondaryParams)};var Pw=function(){};
_.R(Pw,F_);Pw.prototype.getApiPaths=function(){return McV};
Pw.prototype.getExtension=function(y){return _.g(y,dEW)};
Pw.prototype.JSC$11754_buildRequest=function(y,W){W.undo&&(y.undo=W.undo);W.serializedOptOut&&(y.serializedOptOut=W.serializedOptOut);W.serializedRecordInteractionsRequest&&(y.serializedRecordInteractionsRequest=W.serializedRecordInteractionsRequest)};var Jw=function(){};
_.R(Jw,F_);Jw.prototype.getApiPaths=function(){return qsV};
Jw.prototype.getExtension=function(y){return _.g(y,SuE)};
Jw.prototype.JSC$11754_buildRequest=function(y,W){W.serializedInteractionsRequest&&(y.serializedRecordNotificationInteractionsRequest=W.serializedInteractionsRequest)};var VZ=function(){};
_.R(VZ,F_);VZ.prototype.getApiPaths=function(){return CrO};
VZ.prototype.getExtension=function(y){return _.g(y,guI)};
VZ.prototype.JSC$11754_buildRequest=function(y,W,c){W=W===void 0?{}:W;c=c===void 0?{}:c;W.videoId?y.videoId=W.videoId:W.playlistId&&(y.playlistId=W.playlistId);var Z,G=(Z=W.offlineWebClientEligibility)!=null?Z:c.offlineWebClientEligibility;G&&(y.offlineWebClientEligibility=G);var D;if(Z=(D=W.preferredFormatType)!=null?D:c.preferredFormatType)y.preferredFormatType=Z;var Y;if(D=(Y=W.lastOfflineQualitySettingsSavedMs)!=null?Y:c.lastOfflineQualitySettingsSavedMs)y.lastOfflineQualitySettingsSavedMs=D;
W.params&&(y.params=W.params)};var Cm=function(){};
_.R(Cm,F_);Cm.prototype.getApiPaths=function(){return Bv};
Cm.prototype.getExtension=function(y){return _.g(y,_.$x)};
Cm.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.token&&(y.continuation=W.token);c.formData&&(y.formData=c.formData)};var QZ=function(){};
_.R(QZ,F_);QZ.prototype.getApiPaths=function(){return Bv};
QZ.prototype.getExtension=function(y){return _.g(y,ws5)};
QZ.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;y.continuation=c.continuation};var Aw=function(){};
_.R(Aw,F_);Aw.prototype.getApiPaths=function(){return Bv};
Aw.prototype.getExtension=function(y){return _.g(y,_.E9)};
Aw.prototype.JSC$11754_buildRequest=function(y,W){var c,Z=W.panelIdentifier||((c=W.identifier)==null?void 0:c.tag);Z&&(y.panelId=Z);var G;if((G=W.globalConfiguration)==null?0:G.params){var D;y.params=(D=W.globalConfiguration)==null?void 0:D.params}};
_.dJ.Object.defineProperties(Aw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hw=function(){};
_.R(hw,F_);hw.prototype.getApiPaths=function(){return Bv};
hw.prototype.getExtension=function(y){return _.g(y,NFV)};
hw.prototype.JSC$11754_buildRequest=function(y,W){W.panelLoadingStrategy&&N3I(y,W.panelLoadingStrategy)};var Bw=function(){};
_.R(Bw,F_);Bw.prototype.getApiPaths=function(){return Bv};
Bw.prototype.getExtension=function(y){return _.g(y,yA0)};
Bw.prototype.JSC$11754_buildRequest=function(y,W){W.loadingStrategy&&N3I(y,W.loadingStrategy)};var Hw=function(){};
_.R(Hw,F_);Hw.prototype.getApiPaths=function(){return Bv};
Hw.prototype.getExtension=function(y){return _.g(y,_.Dx)};
Hw.prototype.JSC$11754_buildRequest=function(y,W){W.panelLoadingStrategy&&N3I(y,W.panelLoadingStrategy)};var Lm=function(){};
_.R(Lm,F_);Lm.prototype.getApiPaths=function(){return Bv};
Lm.prototype.getExtension=function(y){return _.g(y,WuJ)};
Lm.prototype.JSC$11754_buildRequest=function(y,W){var c,Z=(c=W.contentSourcePanelIdentifier)==null?void 0:c.tag;Z&&(y.panelId=Z);var G;if((G=W.globalConfiguration)==null?0:G.params){var D;y.params=(D=W.globalConfiguration)==null?void 0:D.params}};var vw=function(){};
_.R(vw,F_);vw.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
vw.prototype.getExtension=function(y){return _.g(y,cAV)};
vw.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var dW=function(){};
_.R(dW,F_);dW.prototype.getApiPaths=function(){return KK8};
dW.prototype.getExtension=function(y){return _.g(y,fuW)};
dW.prototype.JSC$11754_buildRequest=function(y,W){W.externalChannelId&&(y.externalChannelId=W.externalChannelId);W.superChatAction&&(y.superChatAction=W.superChatAction);W.superStickersAction&&(y.superStickersAction=W.superStickersAction)};var SR=function(){};
_.R(SR,F_);SR.prototype.getApiPaths=function(){return U0J};
SR.prototype.getExtension=function(y){return _.g(y,edQ)||_.g(y,lBg)};
SR.prototype.JSC$11754_buildRequest=function(y,W){W.videoIds?y.videoIds=W.videoIds:W.videoId&&(y.videoIds=[W.videoId]);W.playlistId&&(y.playlistId=W.playlistId);W.params&&(y.params=W.params);y.excludeWatchLater=!1};var TT=function(){};
_.R(TT,F_);TT.prototype.getApiPaths=function(){return YsE};
TT.prototype.getExtension=function(y){return _.g(y,_.NY)};
TT.prototype.JSC$11754_buildRequest=function(y,W,c){c.create_playlist_title?y.title=c.create_playlist_title:W.title&&(y.title=W.title);if(c.create_playlist_privacy_status&&typeof c.create_playlist_privacy_status==="number"){a:{var Z=c.create_playlist_privacy_status;if(Z!==0){if(Z===1){Z="PUBLIC";break a}if(Z===2){Z="UNLISTED";break a}}Z="PRIVATE"}y.privacyStatus=Z}else W.privacyStatus&&(y.privacyStatus=W.privacyStatus);c.create_playlist_description&&(y.description=c.create_playlist_description);W.videoIds&&
(y.videoIds=W.videoIds);W.params&&(y.params=W.params);W.sourcePlaylistId&&(y.sourcePlaylistId=W.sourcePlaylistId)};var am=function(){};
_.R(am,F_);am.prototype.getApiPaths=function(){return u_8};
am.prototype.getExtension=function(y){return _.g(y,ZHi)};
am.prototype.JSC$11754_buildRequest=function(y,W){y.playlistId=W.playlistId};var xu=function(){};
_.R(xu,F_);xu.prototype.getApiPaths=function(){return p8Z};
xu.prototype.getExtension=function(y){return _.g(y,AkE)};
xu.prototype.JSC$11754_buildRequest=function(y,W){W.playlistId&&(y.playlistId=W.playlistId);W.params&&(y.params=W.params)};var i2=function(){};
_.R(i2,F_);i2.prototype.getApiPaths=function(){return w8V};
i2.prototype.getExtension=function(y){return _.g(y,_.KF)||void 0};
i2.prototype.JSC$11754_buildRequest=function(y,W){W.actions&&(y.actions=W.actions);W.params&&(y.params=W.params);W.playlistId&&(y.playlistId=W.playlistId)};var MN=function(){};
_.R(MN,F_);_.f=MN.prototype;_.f.getApiPaths=function(){return k6Z};
_.f.getExtension=function(y){return _.g(y,_.mv)};
_.f.JSC$11754_buildRequest=function(y,W){W.videoId&&(y.playerRequest={videoId:W.videoId},W.playerParams&&(y.playerRequest.params=W.playerParams),W.racyCheckOk&&(y.playerRequest.racyCheckOk=!!W.racyCheckOk),W.contentCheckOk&&(y.playerRequest.contentCheckOk=!!W.contentCheckOk));W.params&&(y.params=W.params);W.inputType&&(y.inputType=W.inputType);y.disablePlayerResponse=!0};
_.f.getRequestConfig=function(y){var W;(y=this.JSC$11761_getStoreKey(y))&&(W={storeStrategy:{storeKey:y}});_.O("web_log_reels_ticks")&&(W=W||{},W.requestTick="r_wrs",W.responseTick="r_wrr");return W};
_.f.JSC$11761_getStoreKey=function(y){y=this.getExtension(y);if(_.O("shorts_controller_retrieve_seedless_sequence_v2")){if((y==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.dz("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.O("web_prefetch_riw_for_next_video")||_.O("web_shorts_prefetch_service_enabled"))&&y!=null&&y.videoId){var W={videoId:y.videoId};y.params&&(W.params=y.params);return _.dz("reel_item_watch",W)}};var eR=function(){};
_.R(eR,F_);_.f=eR.prototype;_.f.getApiPaths=function(){return j6E};
_.f.getExtension=function(y){return _.g(y,_.mv)};
_.f.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;y.sequenceParams=W.sequenceParams;var Z;((Z=c)==null?0:Z.contentPlaybackContext)&&_.O("web_shorts_prefetch_service_enabled")&&(y.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
_.f.JSC$11761_getStoreKey=function(y){if(_.O("shorts_controller_retrieve_seedless_sequence_v2")&&(y=this.getExtension(y),y==null?0:y.sequenceParams))return _.dz("reel_watch_sequence",{sequenceParams:y.sequenceParams})};
_.f.getRequestConfig=function(y){y=this.JSC$11761_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.O("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};
var wW=function(){};
_.R(wW,F_);wW.prototype.getApiPaths=function(){return j6E};
wW.prototype.getExtension=function(y){return _.g(y,_.$x)};
wW.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.token&&(y.continuation=W.token);var Z;((Z=c)==null?0:Z.contentPlaybackContext)&&_.O("web_shorts_prefetch_service_enabled")&&(y.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
wW.prototype.getRequestConfig=function(y){y=this.JSC$11761_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.O("reel_watch_sequence_request_log_ticks")&&(W=W||{},W.requestTick="r_wsrs",W.responseTick="r_wsrr",W.processorTick="r_wsrp");return W};var qN=function(){};
_.R(qN,F_);qN.prototype.getApiPaths=function(){return bBE};
qN.prototype.getExtension=function(y){return _.g(y,_.upW)};
qN.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.flagAction&&(y.action=W.flagAction);W.flagRequestType&&(y.flagRequestType=W.flagRequestType);W.additionalDetailCheckboxChecked&&(y.additionalDetailCheckboxChecked=W.additionalDetailCheckboxChecked);W.legalCheckboxChecked&&(y.legalCheckboxChecked=W.legalCheckboxChecked);W={};c.flag_issue_type!==void 0&&(W.issue=c.flag_issue_type);c.flag_affiliation!==void 0&&(W.affiliation=c.flag_affiliation);c.flag_full_name&&(W.fullName=c.flag_full_name);
Object.keys(W).length&&(y.legalReportDetails=W);if(c.flag_description||c.text)y.userComments=c.flag_description||c.text;W={};c.minutes!==void 0&&c.seconds!==void 0&&(W.minutes=c.minutes,W.seconds=c.seconds);c.vss_id&&(W.vssId=c.vss_id);Object.keys(W).length&&(y.videoReportDetails=W);W={};c.video_ids&&(W.videoIds=c.video_ids);c.impersonated_channel_url&&(W.impersonatedChannelUrl=c.impersonated_channel_url);Object.keys(W).length&&(y.channelAbuseReportDetails=W)};
_.dJ.Object.defineProperties(qN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ku=function(){};
_.R(ku,F_);ku.prototype.getApiPaths=function(){return OBE};
ku.prototype.getExtension=function(y){return _.g(y,LAJ)};
ku.prototype.JSC$11754_buildRequest=function(y,W){W.blockedForKidsContent&&(y.blockedForKidsContent=W.blockedForKidsContent)};var jn=function(){};
_.R(jn,F_);jn.prototype.getApiPaths=function(){return cZQ};
jn.prototype.getExtension=function(y){return _.g(y,RjI)};
jn.prototype.JSC$11754_buildRequest=function(y,W,c){y.params=W.params;c.impersonated_channel_url&&(y.impersonatedChannelUrl=c.impersonated_channel_url)};var yr=function(){};
_.R(yr,F_);yr.prototype.getApiPaths=function(){return vnE};
yr.prototype.getExtension=function(y){return _.g(y,_.vjZ)};
yr.prototype.JSC$11754_buildRequest=function(y,W){W.items&&(y.items=W.items);W.kidGaiaId&&(y.kidGaiaId=W.kidGaiaId)};var Wx=function(){};
_.R(Wx,F_);Wx.prototype.getApiPaths=function(){return $0i};
Wx.prototype.getExtension=function(y){return _.g(y,_.iFV)};
Wx.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params);W.targetId&&(y.targetId=W.targetId)};var cx=function(){};
_.R(cx,F_);cx.prototype.getApiPaths=function(){return os5};
cx.prototype.getExtension=function(y){return _.g(y,vb5)};
cx.prototype.JSC$11754_buildRequest=function(y,W){W.externalVideoId&&(y.externalVideoId=W.externalVideoId);W.query&&(y.query=W.query);W.sourceTimelines&&(y.sourceTimelines=W.sourceTimelines)};var ZM=function(){};
_.R(ZM,F_);ZM.prototype.getApiPaths=function(){return D6E};
ZM.prototype.getExtension=function(y){return _.g(y,_.$x)||void 0};
ZM.prototype.JSC$11754_buildRequest=function(y,W){W.token&&(y.continuation=W.token)};
_.NLQ=function(){};
_.R(_.NLQ,F_);_.f=_.NLQ.prototype;_.f.getApiPaths=function(){return D6E};
_.f.getExtension=function(y){return _.g(y,_.Dl)||void 0};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11761_getStoreKey=function(y,W){W=W===void 0?{}:W;if(!W.disableCache&&(y=this.getExtension(y))&&y.query)return W={query:y.query},y.params&&(W.params=y.params),_.dz("search",W)};
_.f.JSC$11754_buildRequest=function(y,W,c){W.query&&(y.query=W.query);W.params&&(y.params=W.params);if(!_.O("web_forward_suggest_stats_killswitch")){var Z=_.g(W,IT8);Z&&(y.suggestStats=Z)}var G;!_.O("kevlar_searchbox_stats_killswitch")&&((G=c.tempData)==null?0:G.gs_l)&&!_.g(W,IT8)&&(y.webSearchboxStatsUrl="/search?oq="+(c.tempData.oq||"")+"&gs_l="+c.tempData.gs_l)};
_.f.getRequestConfig=function(y,W){W=W===void 0?{}:W;y=this.JSC$11761_getStoreKey(y,W);var c;y&&(c={storeStrategy:{storeKey:y}});_.O("web_log_search_ticks_ks")||(c=c||{},c.requestTick="sr_s",c.responseTick="sr_r");return c};var GX=function(){};
_.R(GX,F_);GX.prototype.getApiPaths=function(){return CuZ};
GX.prototype.getExtension=function(y){return _.g(y,X08)};
GX.prototype.JSC$11754_buildRequest=function(y,W){W.serializedGetSharingProviderDataParams&&(y.serializedGetSharingProviderDataParams=W.serializedGetSharingProviderDataParams)};var fC=function(){};
_.R(fC,F_);fC.prototype.getApiPaths=function(){return QZm};
fC.prototype.getExtension=function(y){return _.g(y,DDJ)};
fC.prototype.JSC$11754_buildRequest=function(y,W){W.endpoint&&(y.endpoint=W.endpoint);W.action&&(y.action=W.action)};var oa=function(){};
_.R(oa,F_);oa.prototype.getApiPaths=function(){return tc5};
oa.prototype.getExtension=function(y){return _.g(y,GRV)};
oa.prototype.JSC$11754_buildRequest=function(y,W){y.videoId=W.videoId;W.scheduledRedirectMetadataSourceVideoId&&(y.scheduledRedirectMetadata={sourceVideoId:W.scheduledRedirectMetadataSourceVideoId})};var IdQ=XMLHttpRequest.prototype.fetch,pkZ=IdQ&&IdQ.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.B7?!0:!1;var DM=function(y){this.JSC$15768_storeWithEntities=y};
_.R(DM,F_);_.f=DM.prototype;_.f.getApiPaths=function(){return er0};
_.f.getExtension=function(y){return _.g(y,_.Sb)||_.g(y,_.mv)||_.g(y,sUQ)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11761_getStoreKey=function(y){if((_.O("kevlar_cache_on_ttl_player")||_.O("mweb_enable_shorts_innertube_player_prefetch")||_.O("mweb_use_new_history_manager")||_.O("web_shorts_prefetch_service_enabled"))&&(y=this.getExtension(y))&&y.videoId){var W={videoId:y.videoId};y.playlistId&&(W.playlistId=y.playlistId);y.playerParams&&(W.params=y.playerParams);return _.dz("player",W)}};
_.f.JSC$11754_getClientScreen=function(y){var W;return((W=y.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.f.JSC$11754_buildRequest=function(y,W,c){if(_.O("enable_interstitial_entity_check")){var Z=this.JSC$15768_storeWithEntities;if(W.videoId)for(var G=_.z(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),D=G.next();!D.done;D=G.next()){D=D.value;var Y;var u=void 0,t=void 0,b=W.videoId,r=D;(Y=Z)?(b=_.Gx(b+r,"interstitialInteractionStateEntity"),Y=(u=(t=_.fq(Y.getState().entities,"interstitialInteractionStateEntity",b))==null?void 0:t.primaryButtonClicked)!=null?u:!1):Y=!1;if(Y)switch(D){case "CONTENT_CHECK_REQUIRED":W.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":W.racyCheckOk=!0}}}W.videoId&&(y.videoId=W.videoId);W.playlistId&&(y.playlistId=W.playlistId);W.index!==void 0&&(y.playlistIndex=W.index+1);W.playerParams&&(y.params=W.playerParams);"startTimeSeconds"in W&&W.startTimeSeconds&&(_.O("enable_player_request_builder_start_time_floor")?y.startTimeSecs=Math.floor(W.startTimeSeconds):y.startTimeSecs=W.startTimeSeconds);c.contentPlaybackContext&&(y.playbackContext={contentPlaybackContext:c.contentPlaybackContext});c.prefetchPlaybackContext&&
(y.playbackContext=Object.assign({},y.playbackContext,{prefetchPlaybackContext:c.prefetchPlaybackContext}),y.context.request||(y.context.request={}),y.context.request.isPrefetch=!0);y.playbackContext||(y.playbackContext={});Z=UTZ();y.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Z,supportXhr:pkZ};c.overrideMutedAtStart&&(y.overrideMutedAtStart=c.overrideMutedAtStart);y.racyCheckOk=!!W.racyCheckOk;y.contentCheckOk=!!W.contentCheckOk;!_.O("captions_prefs_killswitch")&&(c=(c=_.cj("yt-player-caption-language-preferences"))?
c:[],c==null?0:c.length)&&(y.captionParams={viewerSelectedCaptionLangs:c})};
_.f.getRequestConfig=function(y){y=this.JSC$11761_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.O("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="ps_s",W.responseTick="ps_r");return W};
DM[dq]=[fy];var zX=function(){};
_.R(zX,F_);zX.prototype.getApiPaths=function(){return s6W};
zX.prototype.getExtension=function(y){return _.g(y,_.vPT)};
zX.prototype.JSC$11754_buildRequest=function(y,W){y.params=W.params;y.correctionText=W.correctionText};var Yq=function(){};
_.R(Yq,F_);Yq.prototype.getApiPaths=function(){return JgD};
Yq.prototype.getExtension=function(y){return _.g(y,_.dJV)};
Yq.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params);y.searchQuery=W.searchQuery;y.languageCode=W.languageCode;y.kind=W.kind;y.name=W.name;y.externalVideoId=W.externalVideoId};var m0=function(){};
_.R(m0,F_);_.f=m0.prototype;_.f.getApiPaths=function(){return lfW};
_.f.getExtension=function(y){return _.g(y,_.Sb)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11761_getStoreKey=function(y){if((y=this.getExtension(y))&&y.videoId){var W={videoId:y.videoId};y.playlistId&&(W.playlistId=y.playlistId);y.index&&(W.index=y.index);y.params&&(W.params=y.params);return _.dz("next",W)}};
_.f.JSC$11754_getClientScreen=function(y){var W;return((W=y.contentPlaybackContext)==null?void 0:W.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.f.JSC$11754_buildRequest=function(y,W,c){W.videoId&&(y.videoId=W.videoId);W.playlistId&&(y.playlistId=W.playlistId);W.params&&(y.params=W.params);W.index!==void 0&&(y.playlistIndex=W.index);y.racyCheckOk=!(!c.racyCheckOk&&!W.racyCheckOk);y.contentCheckOk=!!W.contentCheckOk;c.contentPlaybackContext&&(y.autonavState=c.contentPlaybackContext.autonavState,y.playbackContext={vis:c.contentPlaybackContext.vis,lactMilliseconds:c.contentPlaybackContext.lactMilliseconds});c.prefetchPlaybackContext&&(y.context.request||
(y.context.request={}),y.context.request.isPrefetch=!0);_.O("captions_hats_killswitch")||(W=_.Uc().getFlag(65),W=W!=null?!W:!1,c=!!_.cj("yt-player-sticky-caption"),y.captionsRequested=W&&c)};
_.f.getRequestConfig=function(y){y=this.JSC$11761_getStoreKey(y);var W;y&&(W={storeStrategy:{storeKey:y}});_.O("web_log_player_watch_next_ticks")&&(W=W||{},W.requestTick="wn_s",W.responseTick="wn_r");return W};
var sv=function(){};
_.R(sv,F_);sv.prototype.getApiPaths=function(){return lfW};
sv.prototype.getExtension=function(y){return _.g(y,_.$x)};
sv.prototype.JSC$11754_buildRequest=function(y,W){W.token&&(y.continuation=W.token)};var ue=function(y,W){this.playerRequestBuilder=y;this.watchNextRequestBuilder=W};
_.R(ue,kvE);ue.prototype.getApiPaths=function(){return B$E};
ue.prototype.getExtension=function(y){return _.g(y,_.Sb)};
ue.prototype.isNavigationCommand=function(){return!0};
ue.prototype.JSC$11754_buildRequest=function(y,W,c){y.playerRequest={};y.watchNextRequest={};this.playerRequestBuilder.JSC$11754_buildRequest(y.playerRequest,W,c);this.watchNextRequestBuilder.JSC$11754_buildRequest(y.watchNextRequest,W,c)};
ue[dq]=[DM,m0];var tO=function(){};
_.R(tO,F_);tO.prototype.getApiPaths=function(){return EsJ};
tO.prototype.getExtension=function(y){return _.g(y,WBT)};
tO.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.params=W.params)};var nC=function(y){this.JSC$15795_storeWithEntities=y};
_.R(nC,F_);nC.prototype.getApiPaths=function(){return cyJ};
nC.prototype.getExtension=function(y){return _.g(y,ctJ)||_.g(y,GIV)};
nC.prototype.JSC$11754_buildRequest=function(y,W,c){c.client_data&&(y.clientData=c.client_data);if(W.commerceActionConfig){var Z=W.commerceActionConfig;W=Z.actionId;Z=Z.commerceActionParams;W&&(y.actionId=W);Z&&(y.commerceActionParams=Z)}else{var G=W.actionId,D=W.commerceActionParams;c=W.entityKeys;G&&(y.actionId=G);D&&(y.commerceActionParams=D);var Y;W=(Z=this.JSC$15795_storeWithEntities)==null?void 0:(Y=Z.getState())==null?void 0:Y.entities;if(c&&W){Z=[];Y=_.z(c);for(c=Y.next();!c.done;c=Y.next())if(G=
c.value,c=_.W$(G).entityType,G=_.fq(W,c,G))D={},Z.push((D[c]=G,D));y.entityMutationPayloads=Z}}};
nC.prototype.getRequestConfig=function(y){var W,c=(W=_.g(y,ctJ))==null?void 0:W.requestSequenceType;if(c&&y.clickTrackingParams&&c!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:y.clickTrackingParams,sequenceType:c}}};
nC[dq]=[fy];var XL=function(){};
_.R(XL,F_);XL.prototype.getApiPaths=function(){return NYW};
XL.prototype.getExtension=function(y){return _.g(y,_.OAT)};
XL.prototype.JSC$11754_buildRequest=function(y,W){W.feedbackData&&(y.feedbackData=W.feedbackData);W.params&&(y.itemParams=W.params)};
_.dJ.Object.defineProperties(XL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var be=function(){};
_.R(be,F_);be.prototype.getApiPaths=function(){return IfV};
be.prototype.getExtension=function(y){return _.g(y,gSZ)};
be.prototype.JSC$11754_buildRequest=function(y,W,c){c.payments_payload&&(y.paymentsPayload=c.payments_payload);c.offer_params&&(y.offerParams=c.offer_params);W.transactionParams&&(y.transactionParams=W.transactionParams)};var rE=function(){};
_.R(rE,F_);rE.prototype.getApiPaths=function(){return p2T};
rE.prototype.getExtension=function(y){return _.g(y,_.RZm)};
rE.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.buybucketParams&&(y.buybucketData={params:W.buybucketParams},W.stickerParams?y.buybucketData.stickerParams=W.stickerParams:(c.rich_chat_message?y.buybucketData.richChatMessage=c.rich_chat_message:c.chat_message_text&&(y.buybucketData.chatMessageText=c.chat_message_text),c.purchase_price_micros&&(y.buybucketData.purchasePriceMicros=c.purchase_price_micros.toString())));W.donationAmountMicros&&(y.tipAmountMicros=W.donationAmountMicros,
W.tipParams&&(y.tipParams=W.tipParams));W.offerParams&&(y.offerParams=W.offerParams);W.productData&&(y.productData=W.productData);W.transactionParams&&(y.transactionParams=W.transactionParams)};var FL=function(){};
_.R(FL,F_);FL.prototype.getApiPaths=function(){return PZm};
FL.prototype.getExtension=function(y){return _.g(y,NUV)};
FL.prototype.JSC$11754_buildRequest=function(y,W){W.updateFopParams&&(y.updateFopParams=W.updateFopParams)};var Uv=function(){};
_.R(Uv,F_);Uv.prototype.getApiPaths=function(){return JZ2};
Uv.prototype.getExtension=function(y){return _.g(y,_.kY)};
Uv.prototype.JSC$11754_buildRequest=function(y,W){W.couponCode&&(y.couponCode=W.couponCode);W.params&&(y.itemParams=W.params)};var $q=function(){};
_.R($q,F_);$q.prototype.getApiPaths=function(){return Vii};
$q.prototype.getExtension=function(y){return _.g(y,_.ZAm)};
$q.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;W.params&&(y.params=W.params);c.ctk&&(y.clientToken=c.ctk)};var KC=function(y){this.JSC$15830_storeWithEntities=y};
_.R(KC,F_);KC.prototype.getApiPaths=function(){return CZm};
KC.prototype.getExtension=function(y){return _.g(y,_.pF)};
KC.prototype.JSC$11754_buildRequest=function(y,W,c){c.purchase_price_micros&&(y.productData={pdgData:{purchasePriceMicros:c.purchase_price_micros.toString()}},c.rich_chat_message&&(y.productData.pdgData.richChatMessage=c.rich_chat_message),c.currency_code&&(y.productData.pdgData.currencyCode=c.currency_code));W.transactionParams&&(y.transactionParams=W.transactionParams);W.clientLocationContext&&(y.clientLocationContext=W.clientLocationContext);c.payments_payload&&(y.paymentsPayload=c.payments_payload);
c.funds_guarantee_callback_client_data&&(y.fundsGuaranteeCallbackClientData=c.funds_guarantee_callback_client_data);var Z,G;c=(Z=this.JSC$15830_storeWithEntities)==null?void 0:(G=Z.getState())==null?void 0:G.entities;if(W.entityKeys&&c){Z=[];W=_.z(W.entityKeys);for(G=W.next();!G.done;G=W.next()){var D=G.value;G=_.W$(D).entityType;if(D=_.fq(c,G,D)){var Y={};Z.push((Y[G]=D,Y))}}y.entityMutationPayloads=Z}};
KC[dq]=[fy];var Ov=function(){};
_.R(Ov,F_);Ov.prototype.getApiPaths=function(){return Q6Q};
Ov.prototype.getExtension=function(y){return _.g(y,lrW)};
Ov.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;c.backend_analytics&&(y.serializedBackendAnalyticsEvent=c.backend_analytics);W.offerParams&&(y.offerParams=W.offerParams)};var gE=function(){};
_.R(gE,F_);gE.prototype.getApiPaths=function(){return JZ2};
gE.prototype.getExtension=function(y){return _.g(y,e3g)};
gE.prototype.JSC$11754_buildRequest=function(y,W){W.params&&(y.itemParams=W.params)};var Ra=function(){};
_.R(Ra,F_);Ra.prototype.getApiPaths=function(){return AZJ};
Ra.prototype.getExtension=function(y){return _.g(y,_.YoV)};
Ra.prototype.JSC$11754_buildRequest=function(y,W,c){c.resume_time_ms&&(y.resumeTimeMs=c.resume_time_ms);W.pauseParams&&(y.pauseParams=W.pauseParams)};var le=function(){};
_.R(le,F_);le.prototype.getApiPaths=function(){return h5T};
le.prototype.getExtension=function(y){return _.g(y,_.EST)};
le.prototype.JSC$11754_buildRequest=function(y,W,c){c=c===void 0?{}:c;c.c&&(y.redeemCode=c.c);c.rd&&(y.riskData=c.rd);c.ctk&&(y.clientToken=c.ctk)};var Ev=function(){};
_.R(Ev,F_);Ev.prototype.getApiPaths=function(){return BY3};
Ev.prototype.getExtension=function(y){return _.g(y,_.m7V)};
Ev.prototype.JSC$11754_buildRequest=function(y,W){W.resumeParams&&(y.resumeParams=W.resumeParams)};var Ns=function(y,W){this.clientName=y;this.defaultExpirationDelayMs=W};
Ns.prototype.put=function(y,W){var c=this,Z;return _.m(function(G){Z=Object.assign({},W.data);Z.key=y;Z.clientName=c.clientName;Z.expireTimestampMs===void 0&&(Z.expireTimestampMs=(Math.round((0,_.Tj)())+c.defaultExpirationDelayMs).toString());return G.return(c.putInternal(y,Z))})};
Ns[dq]=[Xu,Sbg];var PCQ=function(){Ns.apply(this,arguments);this.JSC$15860_responseStore=new Map};
_.R(PCQ,Ns);_.f=PCQ.prototype;_.f.get=function(y){var W=this;return _.m(function(c){return c.return(ja(W,y))})};
_.f.putInternal=function(y,W){var c=this,Z,G,D;return _.m(function(Y){Z=c.defaultExpirationDelayMs;W.expireTimestampMs&&(Z=Number(W.expireTimestampMs)-Math.round((0,_.Tj)()),G=_.ey("mweb_override_response_store_expiration_ms"),G>0&&G<Z&&(Z=G));D=setTimeout(function(){c.remove(y)},Z);
c.JSC$15860_responseStore.set(y,{entryData:W,timer:D});_.F2(Y)})};
_.f.remove=function(y){var W=this;return _.m(function(c){Jog(W,y);_.F2(c)})};
_.f.removeAll=function(){var y=this;return _.m(function(W){y.JSC$15860_responseStore.forEach(function(c){clearTimeout(c.timer)});
y.JSC$15860_responseStore.clear();_.F2(W)})};
_.f.has=function(y){return!!this.JSC$15860_responseStore.get(y)};
_.f.getKeys=function(){return this.JSC$15860_responseStore.keys()};
var ja=function(y,W){if(y=y.JSC$15860_responseStore.get(W))return new _.ks(y.entryData)},Jog=function(y,W){var c=y.JSC$15860_responseStore.get(W);
c&&(clearTimeout(c.timer),y.JSC$15860_responseStore.delete(W))};var IOD;var JCh=function(y,W,c){Ns.call(this,y,W);this.token=c};
_.R(JCh,Ns);_.f=JCh.prototype;_.f.get=function(y){var W=this,c,Z;return _.m(function(G){return G.nextAddress==1?_.n(G,PjI(W.token),2):G.nextAddress!=3?(c=G.yieldResult,_.n(G,c.get("ResponseStore",[y,W.clientName]),3)):(Z=G.yieldResult)?G.return(new _.ks(Z)):G.return(void 0)})};
_.f.putInternal=function(y,W){var c=this,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,PjI(c.token),2);Z=G.yieldResult;return _.n(G,Z.put("ResponseStore",W),0)})};
_.f.remove=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,PjI(W.token),2);c=Z.yieldResult;return Z.return(c.delete("ResponseStore",[y,W.clientName]))})};
_.f.removeAll=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,PjI(y.token),2);W=c.yieldResult;return _.n(c,iv0(W,IDBKeyRange.only(y.clientName)),0)})};
_.f.has=function(){throw Error("Vi");};_.Ia=new _.Sm("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var VZ9=function(y){var W;this.stateTagsData=(W=y.responseContext)==null?void 0:W.stateTags},CC6=function(y){var W;
return((W=y.stateTagsData)==null?void 0:W.stateTagsModified)||[]};var QeH;QeH=function(y){this.JSC$15873_responseStore=y};
_.BU=function(y,W,c){if(!_.O("state_tags_killswitch")){var Z=new VZ9(W);if(CC6(Z).length>0){var G=y.JSC$15873_responseStore.getKeys();G=_.z(G);for(var D=G.next();!D.done;D=G.next()){D=D.value;var Y=ja(y.JSC$15873_responseStore,D);if(Y){var u=_.Zs(Y);a:{var t=void 0;Y=CC6(Z);u=((t=(new VZ9(u)).stateTagsData)==null?void 0:t.relevantStateTags)||[];t=_.z(u);for(u=t.next();!u.done;u=t.next())if(u=u.value,u.stateTag!=null&&Y.includes(u.stateTag)&&u.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Y=
!0;break a}Y=!1}Y&&Jog(y.JSC$15873_responseStore,D)}}}}var b;Z=(b=W.responseContext)==null?void 0:b.maxAgeSeconds;_.O("web_prefetch_riw_for_next_video")&&!Z&&W.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(Z=3600);c&&Z&&Number(Z)>0&&(W=xx(W,Z),y.JSC$15873_responseStore.put(c,new _.ks(W)))};
QeH.prototype.handleResponse=function(y,W){if(!W)throw Error("Wi");var c,Z;W=(c=W.config)==null?void 0:(Z=c.storeStrategy)==null?void 0:Z.storeKey;_.BU(this,y,W)};
QeH[dq]=[_.q6];_.nwg=new _.Sm("STORE_RESPONSE_PROCESSOR_TOKEN");var AoQ=function(y){this.JSC$15876_responseStore=y};
AoQ.prototype.handleResponse=function(y,W){if(W.input.match(_.Tx(j6E))){var c;if(y==null?0:(c=y.entries)==null?0:c.length)for(y=_.z(y.entries),W=y.next();!W.done;W=y.next()){c=W.value.command;var Z=void 0;W=(Z=_.g(c,_.mv))==null?void 0:Z.unserializedPrefetchData;if(!c||!W)break;Z=(new MN).JSC$11761_getStoreKey(c);var G=_.g(W,PXZ),D=void 0,Y=void 0,u=void 0,t=_.ey("web_shorts_prefetch_service_ttl_seconds")>0?_.ey("web_shorts_prefetch_service_ttl_seconds"):Number((u=(D=G)==null?void 0:(Y=D.responseContext)==
null?void 0:Y.maxAgeSeconds)!=null?u:3600);Z&&t>0&&(G=xx(G,t),this.JSC$15876_responseStore.put(Z,new _.ks(G)));c=(new DM).JSC$11761_getStoreKey(c);W=_.g(W,nIV);D=G=Z=void 0;Y=_.ey("web_shorts_prefetch_service_ttl_seconds")>0?_.ey("web_shorts_prefetch_service_ttl_seconds"):Number((D=(Z=W)==null?void 0:(G=Z.responseContext)==null?void 0:G.maxAgeSeconds)!=null?D:3600);c&&Y>0&&(W=xx(W,Y),this.JSC$15876_responseStore.put(c,new _.ks(W)))}}};
AoQ[dq]=[_.q6];var pC=function(){this.scheduler=_.gl()},hKS;
pC.prototype.pause=function(){throw Error("Xi");};
pC.prototype.resume=function(){throw Error("Xi");};
pC.prototype.queue=function(y){var W=this,c=_.px(),Z=_.Xc(this.scheduler,function(){try{var G;if(_.km.instance)var D=_.km.instance;else{var Y=new _.ul("Error: Unexpected uninitialized CommandHandler.");_.OP(Y);D=void 0}(G=D)==null||G.resolveCommand(y.command);c.resolve()}catch(u){c.reject(u)}});
c.promise.thenCatch(function(G){G instanceof _.AG&&W.scheduler.cancelJob(Z)});
return c.promise};
pC.prototype.queueAll=function(y){var W=new Map;y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=c.value,W.set(c.id,this.queue(c));return W};var Hg3=function(y,W){var c=this;this.taskModel=y;this.onTaskCancelledCallback=W;this.resolver=_.px();y=y.proto.prefetchConfig;if(!y)throw Error("Yi");if(!y.prefetchAction)throw Error("Zi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Z){Z instanceof _.AG&&(BL3(c,c.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),c.onTaskCancelledCallback(c.taskModel.id,c.jobId),c.tick("pcc"));
throw Z;});
this.timerName=this.taskModel.id;_.pl(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},LMB=function(y){switch(y.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},BL3=function(y,W){_.IP({prefetchInfo:{cancellationReason:W}},y.timerName)};
Hg3.prototype.tick=function(y){_.PA(y,void 0,this.timerName)};var JO=function(){var y=this;this.scheduler=_.gl();this.maxInflightTasks=_.ey("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.ey("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new t9m;this.onTaskCancelled=function(W,c){c&&y.scheduler.cancelJob(c);vr6(y,W);Px(y,3)}},dQ3=function(){JO.instance||(JO.instance=new JO);
return JO.instance};
JO.prototype.pause=function(){this.prefetchCoordinatorState=0};
JO.prototype.resume=function(){Px(this,0)};
JO.prototype.queue=function(y){y=SRQ(this,y);Px(this,1);return y};
JO.prototype.queueAll=function(y){var W=new Map;y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=c.value,W.set(c.id,SRQ(this,c));Px(this,1);return W};
var SRQ=function(y,W){var c=y.allPrefetchTasks.get(W.id);if(c)return c.cancellablePromise;try{var Z=new Hg3(W,y.onTaskCancelled)}catch(D){return _.hG(D)}c=Z;c.tick("pcq");var G={prefetchInfo:{taskId:c.taskModel.id,isPrefetch:!0,fetchAction:c.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:c.taskModel.command.clickTrackingParams}};c.taskModel.csn&&(G.clientScreenNonce=c.taskModel.csn);_.IP(G,c.timerName);y.allPrefetchTasks.set(W.id,Z);y.drainingHeap.insert(-LMB(Z),Z);return Z.cancellablePromise},
Px=function(y,W){y.prefetchCoordinatorState===W&&(y.prefetchCoordinatorState=2,TLB(y))},TLB=function(y){for(var W={};y.prefetchCoordinatorState!==0;W={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(y.inflightPrefetchTasks.size>=y.maxInflightTasks){y.prefetchCoordinatorState=3;break}W.prefetchTask$jscomp$1=y.drainingHeap.remove();if(!W.prefetchTask$jscomp$1){y.prefetchCoordinatorState=1;break}W.taskId$jscomp$3=W.prefetchTask$jscomp$1.taskModel.id;if(y.allPrefetchTasks.has(W.taskId$jscomp$3)){var c=-1;y.coordinatorTimeoutMs>0&&(c=_.Xc(y.scheduler,function(Z){return function(){Vr(y,Z.taskId$jscomp$3,Error("$i"))}}(W),y.coordinatorTimeoutMs));
y.inflightPrefetchTasks.set(W.taskId$jscomp$3,c);if(!y.JSC$15892_commandHandler){if(!_.km.instance){Vr(y,W.taskId$jscomp$3,Error("aj"));continue}y.JSC$15892_commandHandler=_.km.instance}a:switch(W.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":c=1;break a;default:c=0}W.prefetchTask$jscomp$1.jobId=y.scheduler.addJob(function(Z){return function(){Z.prefetchTask$jscomp$1.tick("pcr");try{y.JSC$15892_commandHandler.resolveCommand(Z.prefetchTask$jscomp$1.taskModel.command)||
Vr(y,Z.taskId$jscomp$3,Error("bj"))}catch(G){Vr(y,Z.taskId$jscomp$3,G)}}}(W),c,0)}}},adg=function(y,W){(W=vr6(y,W))!=null&&(W.resolver.resolve(),W.tick("pce"));
Px(y,3)},Vr=function(y,W,c){(W=vr6(y,W,c))!=null&&(W.resolver.reject(c),W.tick("pcc"),BL3(W,"CANCELLATION_REASON_ERROR"),Math.random()<=_.ey("prefetch_coordinator_error_logging_sampling_rate")&&(c=new _.ul("Prefetch Command failed.",W.taskModel.id,c.message),_.OP(c)));
Px(y,3)},vr6=function(y,W,c){var Z=y.allPrefetchTasks.get(W);
Z?((c=y.inflightPrefetchTasks.get(W))&&c!==-1&&y.scheduler.cancelJob(c),y.inflightPrefetchTasks.delete(W),y.allPrefetchTasks.delete(W)):_.Rs(new _.ul("Unexpected missing prefetch task when deleting task.",W,c==null?void 0:c.message));return Z};var xQB=function(y,W,c,Z,G){this.id=y;this.triggerOn=W;this.cancelOn=c;this.command=Z;this.proto=G};
_.dJ.Object.defineProperties(xQB.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var igQ=function(){this.JSC$15897_prefetchCoordinator=dQ3();hKS||(hKS=new pC);this.defaultCoordinator=hKS},MZg;
igQ.getInstance=function(){MZg||(MZg=new igQ);return MZg};
igQ.prototype.get=function(y){switch(y){case 0:return this.JSC$15897_prefetchCoordinator;default:return this.defaultCoordinator}};var CC=function(){this.coordinatorSupplier=igQ.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},qRS=function(y){var W=_.NR()||void 0,c=Object.keys(eK6)[0];
if(c){var Z=y.taskIdByTriggerId.get(c);if(Z!=null){y.taskIdByTriggerId.delete(c);c=[];Z=_.z(Z);for(var G=Z.next();!G.done;G=Z.next())if(G=y.tasks.get(G.value))W!=="UNDEFINED_CSN"&&(G.csn=W),c.push(G);c=Qqt(c);W=[];c=_.z(c);for(Z=c.next();!Z.done;Z=c.next()){G=_.z(Z.value);Z=G.next().value;G=G.next().value;Z=y.coordinatorSupplier.get(Z).queueAll(G);Z=_.z(Z);var D=Z.next();for(G={};!D.done;G={taskId$jscomp$9:void 0},D=Z.next()){var Y=_.z(D.value);D=Y.next().value;Y=Y.next().value;G.taskId$jscomp$9=
D;D=Y;W.push(G.taskId$jscomp$9);y.queuedPromisesByTask.set(G.taskId$jscomp$9,_.bU(D,function(u){return function(){wkQ(y,u.taskId$jscomp$9)}}(G)))}}}}else _.Rs(new _.ul("Unexpected malformed TriggerEvent."))};
CC.prototype.trigger=function(y,W){var c=this,Z=this.tasks.get(y);if(!Z||this.queuedPromisesByTask.has(y))return!1;kYd(this,y,Z.triggerOn);W!=="UNDEFINED_CSN"&&(Z.csn=W);W=this.coordinatorSupplier.get(Z.taskType).queue(Z);this.queuedPromisesByTask.set(y,_.bU(W,function(){wkQ(c,y)}));
return!0};
CC.prototype.cancel=function(y){var W=this.queuedPromisesByTask.get(y);if(W)W.cancel();else return wkQ(this,y)};
var wkQ=function(y,W){y.queuedPromisesByTask.delete(W);var c=y.tasks.get(W);if(!c)return!1;y.tasks.delete(W);kYd(y,W,c.triggerOn);(c=CjF(c.cancelOn))&&(y=y.taskIdByCancelId.get(c))&&y.delete(W);return!0},kYd=function(y,W,c){(c=Object.keys(c)[0])&&(y=y.taskIdByTriggerId.get(c))&&y.delete(W)};var eK6={taskRegistered:{}},Qr=function(){CC.instance||(CC.instance=new CC);this.JSC$15906_taskManager=CC.instance};
_.R(Qr,BB);
Qr.prototype.resolveCommand=function(y){var W=this,c,Z;return _.m(function(G){c=_.g(y,EPV);if((Z=c)==null||!Z.tasks){var D=new _.ul("RegisterTasksCommand is missing tasks.");_.OP(D);return G.return()}D=W.JSC$15906_taskManager;for(var Y=_.z(c.tasks),u=Y.next();!u.done;u=Y.next())if(u=u.value,u=u.id&&u.triggerOn&&u.cancelOn&&u.command?new xQB(u.id,u.triggerOn,u.cancelOn,u.command,u):void 0,u){var t=Object.keys(u.triggerOn)[0];if(t){var b=CjF(u.cancelOn);b?(D.tasks.set(u.id,u),D.taskIdByTriggerId.has(t)||D.taskIdByTriggerId.set(t,
new Set),D.taskIdByTriggerId.get(t).add(u.id),D.taskIdByCancelId.has(b)||D.taskIdByCancelId.set(b,new Set),D.taskIdByCancelId.get(b).add(u.id)):_.Rs(new _.ul("Unexpected malformed cancelOn field."))}else _.Rs(new _.ul("Unexpected malformed triggerOn field."))}else _.Rs(new _.ul("Unexpected malformed Task proto."));qRS(W.JSC$15906_taskManager);_.F2(G)})};var j23={},yl9=(j23.rendered={priority:0,callback:function(){var y={};y.numCpu=navigator.hardwareConcurrency;var W={};W.ramGb=_.DH.navigator.deviceMemory;var c={staticContext:{}};W.ramGb&&ACI(W.ramGb)&&(c.staticContext.memoryTotalKbytes=(W.ramGb*1048576).toString());y.numCpu&&ACI(y.numCpu)&&(c.staticContext.cpuCores=y.numCpu);if(_.O("web_enable_adaptive_appl_signal")){y={};W=_.Cl("rses_dpj");var Z=_.Cl("rsef_dpj");W&&W>0&&Z&&Z>0&&(W=Math.ceil(Z-W),W>0&&(y.loadLatency=W));y.loadLatency&&ACI(y.loadLatency)&&
(c.appL=y.loadLatency.toString())}_.$g("applicationStarted",c)}},j23);var WTZ=new _.Sm("WINDOW_ON_ERROR"),cld=new _.Sm("ERROR_WEIGHT_MAPS"),ZLS=new _.Sm("INIT_ERROR");var G9B={},fSg=(G9B.initialized={priority:10,callback:function(y){y.injector.resolve(ZLS)()}},G9B);var okQ=function(){},DPg=function(){var y=_.JW("meta_logger_impl");
y||(y=new okQ,_.LR("meta_logger_impl",y));return y},zyg=function(){DPg().csiSubscriptionKey=omt("meta_logging_csi_event",function(y){var W=y.timerName;
if(y=y.timelineData){_.pl(W,{startTime:y.startTime},W);y.infos&&_.IP(y.infos,W);for(var c=_.z(Object.keys(y.ticks)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,_.PA(Z,y.ticks[Z],W)}})};
okQ.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Y0I(this.csiSubscriptionKey)};var YN3={},mPQ=(YN3.initialized={priority:10,callback:function(){zyg()}},YN3);var s2B=function(y,W){this.innertubeClientName=y;this.JSC$15922_prefCookie=W};
s2B.prototype.record=function(){if(_.O("web_li_record_binary_eval_tick")){var y=_.Cl("rsef_dpj");var W=_.Cl("rses_dpj");y=y!==void 0&&W!==void 0?Math.round(y-W):void 0;if(y!==void 0&&y>0){W=_.cj(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var c=this.poolSize;if(!(W.valuesSeen>=1E9)){if(W.valuesSample.length<c)W.valuesSample.push(y);else{var Z=Math.floor(Math.random()*(W.valuesSeen+1));Z<c&&(W.valuesSample[Z]=y)}W.valuesSeen+=1}_.Wj(this.storagePrefix+"-"+this.innertubeClientName,
W,2592E3);y=W.valuesSample;W=hLy(y);y=y.length<5?void 0:W<400?1:W<1700?2:3;y!==void 0&&(this.JSC$15922_prefCookie.set(this.cookiePrefix+this.innertubeClientName,y),this.JSC$15922_prefCookie.save())}}else _.Zr(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15922_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15922_prefCookie.save()};
s2B[dq]=[Xu,wu9];var u8f=function(){s2B.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.R(u8f,s2B);var B3f=!1;var ttB=new _.Sm("PAGE_LOAD_TIME_TOKEN");var nkS=new _.Sm("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var AO=function(y,W){this.JSC$15945_storeWithEntities=y;this.JSC$15945_commandHandler=W;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
AO.prototype.start=function(){this.JSC$15945_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
AO.prototype.observeDownloadingEntities=function(){var y=_.hdH(this.JSC$15945_storeWithEntities.getState().entities).map(function(Z){return BR1(Z)});
if(y.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var W=_.y8({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:l8a()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.wK(_.bN("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15945_commandHandler.resolveCommand(W)}this.downloadingEntities=y}else if(this.downloadingEntities.length){var c=AAE(this.JSC$15945_storeWithEntities.getState().entities).map(function(Z){return BR1(Z)});
this.downloadingEntities.filter(function(Z){return c.includes(Z)}).length&&(y=_.y8({openPopupAction:UyO()}),this.JSC$15945_commandHandler.resolveCommand(y));
this.downloadingEntities=[]}};
AO[dq]=[fy,_.i1];var Xa6;_.hO=function(y,W,c,Z,G,D,Y,u){this.JSC$15948_playerApiPromise=y;this.JSC$15948_commandHandler=W;this.JSC$15948_screenManager=c;this.offlineWebClientEligibility=Z;this.JSC$15948_prefStorage=G;this.JSC$15948_actionRouter=D;this.entityTypeMap=Y;this.JSC$15948_persistentStorePromiseAccessor=u;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Xa6=function(){var y=_.U().resolve(_.hO),W;_.m(function(c){if(c.nextAddress==1)return y.downloadFailureListenerBound?c.return():_.n(c,y.JSC$15948_playerApiPromise,2);W=c.yieldResult;W.addEventListener("onOfflineOperationFailure",function(Z){if(Z.failureReason&&Z.entityKey&&Z.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(Z.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var G=_.W$(Z.entityKey).entityId;G&&y.JSC$15948_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
G)}else if(_.O("kevlar_woffle")){G=y.JSC$15948_commandHandler;var D=G.resolveCommand;Z=Z.failureReason;var Y=_.bN("TRANSFER_FAILED",void 0,"Download failed");Z==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Y=_.bN("STORAGE_FULL",void 0,"Storage full"));D.call(G,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.wK(Y),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
y.downloadFailureListenerBound=!0;_.F2(c)})};
_.hO.prototype.deleteVideo=function(y,W){var c=this,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return _.n(Y,c.JSC$15948_playerApiPromise,2);Z=Y.yieldResult;D={offlineLoggingData:{offlineDeleteReason:(G=W)!=null?G:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.n(Y,Z.queueOfflineAction(y,c.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",D),0)})};
_.hO.prototype.pauseVideoDownload=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.JSC$15948_playerApiPromise,2);c=Z.yieldResult;c.pauseVideoDownload(y);_.F2(Z)})};
_.hO.prototype.resumeVideoDownload=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.JSC$15948_playerApiPromise,2);c=Z.yieldResult;return _.n(Z,c.resumeVideoDownload(y),0)})};
_.hO[dq]=[_.Tb,_.i1,_.oZ,nkS,ar,Hv,vZE,eH];var bL6=new _.Sm("DOWNLOAD_STATE_STORE_TOKEN");var rlQ=function(y,W){this.JSC$15967_persistentStorePromiseAccessor=y;this.store=W;this.upliftCompletionResolver=new _.WK},$PS=function(){var y=_.U().resolve(FTQ),W;
_.m(function(c){switch(c.nextAddress){case 1:if(y.upliftImplPromise)return c.return(y.upliftImplPromise);_.tm(c,2);y.upliftImplPromise=UP3(y);return _.n(c,y.upliftImplPromise,4);case 4:y.upliftCompletionResolver.resolve();_.J6(c,3);break;case 2:throw W=_.rs(c),y.upliftCompletionResolver.reject(W),W;case 3:return c.return(y.upliftImplPromise)}})},UP3=function(y){var W,c,Z;
return _.m(function(G){switch(G.nextAddress){case 1:return _.I8("LOGGED_IN")?_.n(G,y.JSC$15967_persistentStorePromiseAccessor(),2):G.return();case 2:W=G.yieldResult;if(!W)return _.PA("vdeur"),G.return();_.PA("vdeus");_.tm(G,3);return _.n(G,KTH(W),5);case 5:c=G.yieldResult;y.store.dispatch(Kuw(c));W.observe(function(D){OFI(y.store,D)});
_.J6(G,4);break;case 3:throw Z=_.rs(G),_.PA("vdeur"),Z;case 4:_.PA("vdeuc"),_.F2(G)}})},KTH=function(y){var W;
return _.m(function(c){if(c.nextAddress==1)return _.n(c,xyI(y),2);W=c.yieldResult;return c.return(W.reduce(function(Z,G){if(!G.data||!G.key||!G.entityType)return Z;Z[G.entityType]||(Z[G.entityType]={});Z[G.entityType][G.key]=G.data;return Z},{}))})};
rlQ[dq]=[eH,_.Fq];var FTQ;FTQ=new _.Sm("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Bx=new _.Sm("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Hx=function(y,W){this.JSC$15970_persistentStorePromiseAccessor=y;this.transportService=W};
Hx.prototype.refresh=function(){var y=this,W,c,Z,G;return _.m(function(D){if(D.nextAddress==1)return _.I8("LOGGED_IN")?_.n(D,y.JSC$15970_persistentStorePromiseAccessor(),2):D.return();if(D.nextAddress!=3)return(W=D.yieldResult)?_.n(D,lOt(W),3):D.return();if((c=D.yieldResult)&&!(Number(c.data.refreshTimestampMs||0)<(0,_.Tj)()))return D.return();Z={browseId:"SPaccount_downloads"};G=_.Tx(Mv);_.OU(y.transportService,Z,G).then(function(Y){var u;if(W&&(Y==null?void 0:(u=Y.responseContext)==null?void 0:
u.maxAgeSeconds)!==0){var t;u=(Y==null?void 0:(t=Y.responseContext)==null?void 0:t.maxAgeSeconds)||604800;t=String(Math.floor((0,_.Tj)())+u*1E3);W.put("service:downloads_settings:fallback",new _.ks({innertubeResponse:Y,refreshTimestampMs:t}))}});
_.F2(D)})};
Hx[dq]=[_.Ia,_.b0];var LC=function(y,W){this.JSC$15974_playerPromise=y;this.store=W;this.started=!1};
LC.prototype.start=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return y.started?c.return():_.n(c,y.JSC$15974_playerPromise,2);W=c.yieldResult;W.addEventListener("onOrchestrationBecameLeader",y.updateIsLeader.bind(y,!0));W.addEventListener("onOrchestrationLostLeader",y.updateIsLeader.bind(y,!1));if(W.isOrchestrationLeader)y.updateIsLeader(W.isOrchestrationLeader());else{var Z=new _.ul("Function isOrchestrationLeader is undefined",{"player.isReady":W.isReady(),"player.playVideo":W.playVideo?
"defined":"undefined"});_.OP(Z);y.updateIsLeader(!1)}y.started=!0;_.F2(c)})};
LC.prototype.updateIsLeader=function(y){this.store.dispatch(_.jv({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:y}}))};
LC[dq]=[_.Tb,_.Fq];var OLQ=function(y,W){this.networkStatusManager=y;this.JSC$15977_prefStoragePromise=W;this.redirectsToPreload=["https://youtube.com"]},gk6=function(){var y=_.U().resolve(OLQ),W,c,Z,G,D,Y;
_.m(function(u){switch(u.nextAddress){case 1:return _.n(u,y.JSC$15977_prefStoragePromise,2);case 2:W=u.yieldResult;if(!(c=W)){u.jumpTo(3);break}return _.n(u,W.get("yt-redirect-prefetch-id"),4);case 4:c=u.yieldResult;case 3:if(c||!y.networkStatusManager.isNetworkAvailable())return u.return();Z={cache:"reload",redirect:"manual"};G=_.z(y.redirectsToPreload);D=G.next();case 5:if(D.done){if(!W){u.jumpTo(0);break}return _.n(u,W.set("yt-redirect-prefetch-id",!0,86400),0)}Y=D.value;_.tm(u,8);return _.n(u,
_.DH.fetch(Y,Z),10);case 10:_.J6(u,6);break;case 8:_.rs(u);case 6:D=G.next(),u.jumpTo(5)}})};var vx=function(y){y?(this.container=y,this.containerWasInjected=!0):this.containerWasInjected=!1};
vx.prototype.openDialog=function(y,W,c){var Z=this,G;return _.m(function(D){(G=Z.container)==null||G.openDialog(y,W,c);_.F2(D)})};
vx.prototype.closeDialog=function(){var y=this,W;return _.m(function(c){(W=y.container)==null||W.closeDialog();_.F2(c)})};
vx.prototype.isDialogOpen=function(){var y=this,W,c;return _.m(function(Z){return Z.return((c=(W=y.container)==null?void 0:W.isDialogOpen())!=null?c:!1)})};
vx[dq]=[_.xN(A_2)];_.Ry9=new _.Sm("POPUP_CONTROLLER_TOKEN");var lS9=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
lS9.prototype.registerPanel=function(y,W){if(y){this.panelMap.set(y,W);var c=this.pendingPanelResolvers.get(y);c&&(c.resolve(W),this.pendingPanelResolvers.delete(y))}};
lS9.prototype.getPanel=function(y){var W=this,c;return _.m(function(Z){return(c=W.panelMap.get(y))?Z.return(c):Z.return(EkQ(W,y))})};
var EkQ=function(y,W){var c,Z;return _.m(function(G){if(c=y.pendingPanelResolvers.get(W))return G.return(c.promise);Z=new _.WK;y.pendingPanelResolvers.set(W,Z);return G.return(Z.promise)})},NVg=function(y){lS9.call(this);
var W=this;this.popupController=y;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return W.panelMap.size}}};
_.R(NVg,lS9);_.f=NVg.prototype;_.f.getReloadContinuation=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.getPanel(y),2);c=Z.yieldResult;return Z.return(c.getReloadContinuation())})};
_.f.showPanel=function(y,W,c,Z,G,D,Y){var u=this,t,b,r,F;return _.m(function(K){if(K.nextAddress==1){Y&&u.updatePanelContinuationDatas.set(y,Y);if((t=c)==null?0:(b=t.engagementPanelPopupPresentationConfig)==null?0:b.popupType){r=c.engagementPanelPopupPresentationConfig.popupType;G===void 0&&(G=document.body);var l=K.return,N=u.popupController,P=N.openPopup;a:switch(r){case "PANEL_POPUP_TYPE_DIALOG":var V="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":V="DROPDOWN";break a;default:throw Error("dj`"+
r);}return l.call(K,P.call(N,y,W,V,G))}return _.n(K,u.getPanel(y),2)}F=K.yieldResult;(W||D)&&F.updatePanel(W,!1,Z,D);F.showPanel(Z);_.F2(K)})};
_.f.hidePanel=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,W.getPanel(y),2);c=Z.yieldResult;c.hidePanel();W.popupController.closePopup(y);_.F2(Z)})};
_.f.isVisible=function(y,W){var c=this,Z;return _.m(function(G){if(G.nextAddress==1)return W&&!c.panelMap.has(y)?G.return(!1):_.n(G,c.getPanel(y),2);Z=G.yieldResult;return G.return(Z.isVisible())})};
_.f.updatePanel=function(y,W,c,Z,G,D){c=c===void 0?!1:c;var Y=this,u;return _.m(function(t){if(t.nextAddress==1){if(!W&&!G)return t.return();D&&Y.updatePanelContinuationDatas.set(y,D);return _.n(t,Y.getPanel(y),2)}u=t.yieldResult;u.updatePanel(W,c,Z,G);_.F2(t)})};
_.f.registerPanelContent=function(y,W){y&&this.panelContentMap.set(y,W)};
_.f.getPanelContent=function(y){return this.panelContentMap.get(y)};
_.f.getUpdatePanelContinuationData=function(y){return this.updatePanelContinuationDatas.get(y)};
NVg[dq]=[_.Ry9];var dE=function(y,W){this.innertubeTransportService=y;this.JSC$15993_screenManager=W},ISQ=function(y){var W;
return!((W=y.panelLoadingStrategy)==null||!W.requestTemplate)};
dE.prototype.makeRequest=function(y){var W=this,c,Z;return _.m(function(G){switch(G.nextAddress){case 1:if(!ISQ(W)){G.jumpTo(2);break}_.tm(G,3);return _.n(G,_.IL(W.innertubeTransportService,y),5);case 5:return c=G.yieldResult,c?G.return(c.content):(_.OP(Error("ej")),G.return(void 0));case 3:Z=_.rs(G),_.OP(Z);case 2:return G.return(void 0)}})};
dE.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
dE.prototype.execute=function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F;return _.m(function(K){if(K.nextAddress==1){c=y;Z=c.data;G=c.fallbackVe;D=c.parentVe;Y=c.createScreenConfig;u=c.renderFn;t=c.command;W.panelLoadingStrategy=Z;var l,N,P=((l=W.panelLoadingStrategy)==null?0:l.screenVe)?(N=W.panelLoadingStrategy)==null?void 0:N.screenVe:G;P&&_.wR(W.JSC$15993_screenManager,P,D,Y);return(b=W.getContent())?_.n(K,u(b),2):K.jumpTo(2)}return K.nextAddress!=4?ISQ(W)?_.n(K,W.makeRequest(t),4):K.return():(F=r=K.yieldResult)?
_.n(K,u(F),0):K.return()})};
dE[dq]=[_.b0,_.oZ];var Sn=function(){};
Sn.prototype.getContainer=function(){return _.jG()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Sn.prototype.openSheet=function(y,W){var c=this,Z,G,D,Y,u,t;return _.m(function(b){switch(b.nextAddress){case 1:return Z={stack:[],error:void 0,hasError:!1},_.tm(b,2,3),G=_.ae,_.n(b,c.isSheetOpen(),5);case 5:D=b.yieldResult;_.C6(Z,_.ZXh(G));if(D&&!_.O("delay_sheet_open_killswitch")){if(W&&c.currentTarget===W)return(Y=c.getContainer())==null||Y.closeSheet(),b.return();c.pendingData={data:y,target:W};return b.return()}y.viewModel&&(y={viewModel:y.viewModel});(u=c.getContainer())==null||u.openSheet(y,
W);c.currentTarget=W;case 3:_.nc(b);_.Q0(Z);_.bR(b,0);break;case 2:t=_.rs(b),Z.error=t,Z.hasError=!0,b.jumpTo(3)}})};
Sn.prototype.closeSheet=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,(W=y.getContainer())==null?void 0:W.closeSheet(),2);if(c.nextAddress!=4)return y.currentTarget=void 0,!y.pendingData||_.O("delay_sheet_open_killswitch")?c.jumpTo(0):_.n(c,y.openSheet(y.pendingData.data,y.pendingData.target),4);y.pendingData=void 0;_.F2(c)})};
Sn.prototype.isSheetOpen=function(){var y=this,W,c;return _.m(function(Z){return Z.return((c=(W=y.getContainer())==null?void 0:W.isSheetOpen())!=null?c:!1)})};var oT=window.documentPictureInPicture;var pa6=new _.Sm("APP_ROOT");var G8h=_.dl(["dark"]),fQh=_.dl(["system-icons"]),ofE=_.dl(["typography"]),D5I=_.dl(["lang"]),zOD=_.dl(["style"]),yRH=_.dl(["dir"]),Wrh=_.dl(["rounded-container"]),cRO=_.dl(["style"]),m5w=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],TX=function(y){this.JSC$16005_clientRoot=y;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
TX.prototype.openWindow=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1)return window.documentPictureInPicture&&_.II()&&!W.currentPipWindow?_.n(G,(c=oT?oT:null)==null?void 0:c.requestWindow(y),2):G.return(!1);if(G.nextAddress!=3){Z=G.yieldResult;if(!Z)return G.return(!1);Z.addEventListener("pagehide",function(){P7B(W)});
Z.addEventListener("resize",W.handlePipWindowResize);W.pipWindowResizeDelay=new _.xM(function(){W.currentPipWindow&&_.GG(W.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.nP(W.currentPipWindow.innerWidth,W.currentPipWindow.innerHeight)])},Z);
Yz1(Z);uRg(Z);return _.n(G,jGy(Z),3)}if(!wtO())return G.return(!1);W.currentPipWindow=Z;W.JSC$16005_eventForwarder=sGH(Z,W.JSC$16005_clientRoot);W.pipWindowResizeDelay.start();return G.return(!0)})};
TX.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var P7B=function(y){if(y.currentPipWindow){var W,c;(W=oT?oT:null)==null||(c=W.window)==null||c.close();y.currentPipWindow.removeEventListener("resize",y.handlePipWindowResize);var Z;(Z=y.pipWindowResizeDelay)==null||Z.dispose();y.pipWindowResizeDelay=void 0;var G;(G=y.JSC$16005_eventForwarder)==null||G.stop();y.JSC$16005_eventForwarder=void 0;W=_.z(y.onCloseCallbacks);for(c=W.next();!c.done;c=W.next())c=c.value,c();y.onCloseCallbacks=[];y.currentPipWindow=null}};
TX.prototype.getWindow=function(){return this.currentPipWindow};
var JlH=function(y,W){var c;(c=y.onCloseCallbacks)==null||c.push(W)};
_.dJ.Object.defineProperties(TX.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
TX[dq]=[pa6];var VtH=new _.Sm("PICTURE_IN_PICTURE_CONTROLLER");var tf1=function(y,W){this.lengthY=this.lengthX=0;this.lengthX=W.x-y.x;this.lengthY=W.y-y.y};var C76=function(){},e9Q=function(y,W){var c;
(c=y.headerElement)==null||c.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:W}))};var Q29=function(){};
Q29.prototype.openPopup=function(y,W,c,Z){var G=this,D;return _.m(function(Y){if(!G.container)return Y.return();D={openPopupAction:{popup:W,popupType:c,uniqueId:y}};return Y.return(G.container.handleOpenPopupAction(D,Z))})};
Q29.prototype.closePopup=function(y){this.container&&this.container.closePopup(y)};var Al3=function(){this.openTunnels=new Map},msy=function(y,W,c){if(rRH(c)){c={handleEvent:function(Y){W&&!W.closed&&typeof W.postMessage==="function"&&Y&&Y.origin&&Y.source===W&&Y.data&&Y.data.action==="gcl_setup"&&W.postMessage({action:"gcl_transfer",
gadSource:2},Y.origin)}};
for(var Z=_.z(y.openTunnels),G=Z.next();!G.done;G=Z.next()){var D=_.z(G.value);G=D.next().value;D=D.next().value;if(G.closed)try{window.removeEventListener("message",D),y.openTunnels.delete(G)}catch(Y){_.OP(Y)}}W&&y.openTunnels.size<15&&(y.openTunnels.set(W,c),window.addEventListener("message",c))}};var hy9=function(){this.clientParams=new Map},wX6=function(y){for(var W=_.z(y.clientParams.keys()),c=W.next();!c.done;c=W.next())c=c.value,c.startsWith("yt-mini-app-share")&&y.clientParams.delete(c)};var BVD=function(y,W){_.UR.call(this);var c=this;this.shortsController=y;this.storeWithShorts=W;y=_.ot(this.storeWithShorts,_.gUg,function(Z){if(Z){var G,D=(G=c.shortsController.getRoot())==null?void 0:G.getPlayer(),Y;(G=(Y=c.shortsController.alternativePlayerContainerElement)==null?void 0:Y.getPlayerContainer())&&(D==null||D.appendTo(G))}else{var u;Y=(u=c.shortsController.alternativePlayerContainerElement)==null?void 0:u.getPlayerContainer().querySelector("#player");G=c.shortsController.activeIndex;
(u=(D=c.shortsController.getRoot())==null?void 0:D.querySelector('ytd-reel-video-renderer[id="'+G+'"] #player-container'))&&(Y==null||Y.appendTo(u,void 0,!0))}});
this.addOnDisposeCallback(y)};
_.R(BVD,_.UR);var aa=function(y,W,c,Z,G){var D=this;this.storeWithShorts=y;this.ephemeralResponseStore=W;this.store=c;this.innertubeTransportService=Z;this.innertubeTransportLoader=G;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.FP(_.zq);this.isShortsPipActive=_.FP(_.YD);this.nextReelVe=_.se(56921);this.prevReelVe=_.se(56922);this.backButtonVe=_.se(22156);this.TEST_ONLY={getActiveModules:function(){return D.activeModules}}},BO2,HW8,HLB;
aa.prototype.initOrDisposeActiveModules=function(y){y?this.activeModules.push(new BVD(this,this.storeWithShorts)):(_.bjg(this.activeModules),this.activeModules.length=0)};
aa.prototype.getRoot=function(){return this.rootElement};
aa.prototype.setActiveIndex=function(y){this.activeIndex=y};
_.J2Z=function(y,W){var c,Z,G,D,Y,u;return _.m(function(t){switch(t.nextAddress){case 1:return c=new MN,(Z=c.JSC$11761_getStoreKey(W))&&y.ephemeralResponseStore.has(Z)?_.n(t,y.ephemeralResponseStore.get(Z),7):_.n(t,HLB(y,W),4);case 4:G=t.yieldResult;if(!Z){t.jumpTo(3);break}D=xx(G,3600);return _.n(t,y.ephemeralResponseStore.put(Z,new _.ks(D)),3);case 7:G=(Y=t.yieldResult)==null?void 0:_.Zs(Y);case 3:return G.replacementEndpoint&&(u=_.g(G.replacementEndpoint,_.mv))&&G.sequenceContinuation&&(u.sequenceParams=
G.sequenceContinuation),t.return(G)}})};
BO2=function(y,W){W=(new eR).JSC$11761_getStoreKey(W);return!!W&&y.ephemeralResponseStore.has(W)};
HW8=function(y,W,c){var Z,G,D,Y,u;_.m(function(t){if(t.nextAddress==1){Z=new eR;G=Z.JSC$11761_getStoreKey(W);if(!G)return t.return();if(c.reelWatchSequenceResponse)return D=xx(c.reelWatchSequenceResponse,3600),y.ephemeralResponseStore.put(G,new _.ks(D)),t.jumpTo(0);if(!y.ephemeralResponseStore.has(G))return t.jumpTo(0);u=c;return _.n(t,y.ephemeralResponseStore.get(G),4)}u.reelWatchSequenceResponse=(Y=t.yieldResult)==null?void 0:_.Zs(Y);_.F2(t)})};
HLB=function(y,W){var c=c===void 0?{}:c;var Z,G,D;return _.m(function(Y){switch(Y.nextAddress){case 1:if(y.innertubeTransportService){Z=y.innertubeTransportService;Y.jumpTo(2);break}if(!y.innertubeTransportLoader){_.pj(Error("gj"));Y.jumpTo(2);break}return _.n(Y,y.innertubeTransportLoader(),4);case 4:Z=Y.yieldResult;case 2:return _.n(Y,(G=Z)==null?void 0:_.IL(G,W,c),5);case 5:return D=Y.yieldResult,Y.return(D)}})};
_.dJ.Object.defineProperties(aa.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
aa[dq]=[$Ti,_.q6,fy,_.xN(_.b0),_.xN(RIE)];_.LTf=new _.Sm("STORAGE_MANAGER_TOKEN");var vkB=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},dP9;
vkB.prototype.enqueue=function(y,W){W===1?this.currentPersistentToast=y:this.queue.push(y);this.openToast()};
vkB.prototype.openToast=function(){var y;(y=this.currentToast)!=null&&y.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.SN9=new _.Sm("TOAST_MANAGER_TOKEN");var TVZ;_.aS6=_.Ax(function(y){return _.X("basic-content-view-model",{class:_.Mi("ytBasicContentViewModelHost",_.Jx(y.className))},_.X(_.YN,{cond:function(){return y.data().headline},
then:function(W){return _.X("div",{class:"ytBasicContentViewModelHeadline"},_.X(_.Da,{text:W}))}}),_.X(_.mC,{each:function(){return y.data().paragraphs||[]},
keyBy:"INDEX"},function(W){return _.X("div",{class:"ytBasicContentViewModelParagraph"},_.X(_.YN,{cond:function(){var c=W();return!!(c.header||c.customHeader||c.headline)},
then:function(){return _.X(TVZ,{paragraph:W})}}),_.X(_.YN,{cond:function(){return W().asset||W().text},
then:function(){return _.X("div",{class:"ytBasicContentViewModelParagraphContent"},_.X(_.YN,{cond:function(){return W().asset},
then:function(c){return _.X("div",{class:"ytBasicContentViewModelParagraphAsset"},_.X(_.bg,{data:c},{contentPreviewImageViewModel:_.y9}))}}),_.X(_.YN,{cond:function(){return W().text},
then:function(c){return _.X("div",{class:"ytBasicContentViewModelParagraphText"},_.X(_.Da,{text:c}))}}))}}))}))},"Id");
TVZ=_.Ax(function(y){var W=y.paragraph;return _.X(_.a2,null,_.X(_.YN,{cond:function(){return W().headline},
then:function(c){return _.X(_.Da,{text:c,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.X(_.bg,{data:function(){return W().header||W().customHeader}},{sectionHeaderViewModel:function(c){return _.X(_.hr,{data:c.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Jd");var iL9=_.Ax(function(y){return _.X("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.X(_.YN,{cond:function(){return y.expanded()},
then:function(){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.X("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.X(_.YN,{cond:function(){return y.data().expandedTitleImage},
then:function(W){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.X(_.J3,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W}))}}),_.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.X("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.X(_.Da,{text:function(){return y.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.X(_.Da,{text:function(){return y.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.X(_.Da,{text:function(){return y.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.X("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.X(_.bg,{data:function(){return y.data().infoButton}},{buttonViewModel:_.OV}),_.X(_.bg,{data:function(){return y.data().collapseButton}},{buttonViewModel:function(W){return _.X(_.OV,{data:W.data,
onClick:function(){var c;(c=y.expandedCallback)==null||c.call(y,!1)}})}})))},
else:function(){return _.X(xPQ,Object.assign({},y))}}))},"Kd"),Mtg=_.Ax(function(y){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.X(_.YN,{cond:function(){return y.data().collapsedLabelImage},
then:function(W){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.X(_.J3,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W,alt:""}))}}),_.X(_.Da,{text:function(){return y.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ld"),xPQ=_.Ax(function(y){var W=_.j9(function(){var c;
return void((c=y.expandedCallback)==null?void 0:c.call(y,!0))});
return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":W},_.X("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.X(_.YN,{cond:function(){return y.data().collapsedImage},
then:function(c){return _.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.X(_.J3,{width:16,height:16,data:c,alt:""}))}}),_.X(_.YN,{cond:function(){return y.data().showLeadingCollapsedLabel},
then:function(){return _.X(Mtg,Object.assign({},y))}}),_.X("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.X(_.Da,{text:function(){return y.data().collapsedTitle}}))),_.X("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.X(_.YN,{cond:function(){return!y.data().showLeadingCollapsedLabel},
then:function(){return _.X(Mtg,Object.assign({},y))}}),_.X(_.bg,{data:function(){return y.data().infoButton}},{buttonViewModel:_.OV}),_.X(_.bg,{data:function(){return y.data().expandButton}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
onClick:function(){var Z;(Z=y.expandedCallback)==null||Z.call(y,!0)}})}})))},"Md");var eyd=_.Ax(function(y){var W=_.z(_.WF(function(){return y.data().initiallyExpanded})),c=W.next().value,Z=W.next().value,G,D=(G=_.U().resolve(_.xN(_.EH)))==null?void 0:G(),Y=function(){var u=y.data().colorData;
if(u)return D?u==null?void 0:u.darkColorPalette:u==null?void 0:u.lightColorPalette};
return _.X("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.cF({"background-color":function(){var u=Y();return(u==null?0:u.section2Color)?_.KZ(u.section2Color):""}})},_.X(_.bg,{data:function(){return y.data().header}},{expandableMetadataHeaderViewModel:function(u){return _.X(iL9,{data:u.data,
expanded:function(){return!!c()},
expandedCallback:function(t){Z(t)}})}}),_.X(_.YN,{cond:function(){return c()},
then:function(){return _.X("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.X(_.bg,{data:function(){return y.data().expandedContent}},{horizontalShelfViewModel:function(u){return _.X(_.Yv,{data:u.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Y})},
videoSummaryContentViewModel:function(u){return _.X(MFE,{data:u.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(u){return _.X(ZW,{data:u.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(u){return _.X(_.aS6,{data:u.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.X(_.bg,{data:function(){return y.data().expandedBottomButtons}},{buttonViewModel:function(u){return _.X("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.X(_.OV,{data:u.data}))}}))}}))},"Nd");var wa6=_.Ax(function(y){var W=y.text;var c=y.marqueeSpacing;var Z=y.scrollDelay;var G=y.scrollDuration;var D=y.enableMarqueeScroll;y=y.large;var Y=_.z(_.G9(!1,void 0,"kfNqfd")),u=Y.next().value,t=Y.next().value,b=_.z(_.G9(0,void 0,"bYgZbf"));Y=b.next().value;var r=b.next().value,F=_.HO();b=_.HO();var K=_.HO(),l=_.U().resolve(_.I9);_.$k(function(){if(D()){var V=K.value.getBoundingClientRect().width,Q=F.value.getBoundingClientRect().width;if(V>Q){var S=(l==="ltr"?-1:1)*(V+(c?c():16));Promise.resolve().then(function(){t(!0);
r(S)})}}});
var N={},P={};return _.X("marquee-scroll",{class:_.Mi("ytMarqueeScrollHost",(N.ytMarqueeScrollHostLarge=y,N)),el:F},_.X("div",{id:"marquee-scroll-inner-container",class:_.Mi("ytMarqueeScrollInnerContainer",(P.ytMarqueeScrollAnimationEnabled=function(){return u()},P)),
el:b,style:_.cF({gap:c?(0,_.oK)(c):"16px","animation-duration":G?J1J(G):"16s","animation-delay":Z?J1J(Z):"3s","--marquee-translate":(0,_.oK)(Y)})},_.X("span",{el:K,dir:"auto"},_.X(_.Da,{text:W,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.X(_.YN,{cond:u,then:function(){return _.X("span",{"aria-hidden":"true",dir:"auto"},_.X(_.Da,{text:W,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Od");_.qN3=_.Ax(function(y){var W=y.data;var c=y.overlayDensity;y=_.j9(function(){W().onTapCommand&&_.OH(W().onTapCommand);return!1});
var Z=_.EV(),G={};return _.X("reel-sound-metadata-view-model",{class:_.Mi("ytReelSoundMetadataViewModelHost",(G.ytReelSoundMetadataViewModelHostLarge=function(){return(c==null?void 0:c())===1},G)),
"on:click":y,tabindex:0,role:"button","on:keydown":Z},_.X("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.X(_.YN,{cond:function(){return W().musicIcon},
then:function(D){return _.X(_.J3,{data:D,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.X("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.X(wa6,{text:function(){return W().soundMetadata},
enableMarqueeScroll:function(){return!!W().enableMarqueeScroll},
large:function(){return(c==null?void 0:c())===1}}))))},"Pd");var k99,j8Q,xq,ZjZ,fL6,cWd,zTd,Dn6;k99=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];j8Q=_.ey("wil_icon_max_concurrent_fetches",Infinity);
xq=function(y,W,c){var Z=this;this.iconSet=y;this.appDirection=W;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.DH.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.O("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.O("wil_icon_network_first");this.renderWhenIdle=_.O("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.O("wil_icon_load_immediately");this.isPurging=!1;y=function(){Z.cacheStorageAvailable&&(Z.cacheStorageAsync=_.DH.caches.open("yt-icons").then(function(D){return Z.cacheStorageSync=D}).catch(function(){Z.cacheStorageAvailable=!1}))};
c=(c==null?void 0:c())||{};c=_.z(Object.entries(c));for(W=c.next();!W.done;W=c.next()){var G=_.z(W.value);W=G.next().value;G=G.next().value;G=WI(G);yW6(G);this.iconCache[W]=G.cloneNode(!0)}this.isPurging=WCg(this);this.isPurging instanceof Promise?this.isPurging.then(y):y()};
_.vtI=function(y,W){var c=y.resolveIcon(W);return c?y.renderingMode===1?cWd(y,c,y.renderingMode):(W=y.iconCache[c.url])?(W=W.cloneNode(!0),ZjZ(y,W),cWd(y,c,y.renderingMode,W)):_.GwD(y,c).then(function(Z){var G=Z?0:1;ZjZ(y,Z);return cWd(y,c,G,Z)}):(_.gC(new _.ul("Icon not found",{iconShape:W})),function(){})};
ZjZ=function(y,W){if(W){y.counter+=1;y="_yt"+y.counter;W=[W].concat(_.No(W.getElementsByTagName("*")));W=_.z(W);for(var c=W.next();!c.done;c=W.next())if(c=c.value,c.tagName==="style"&&c.textContent)c.textContent=fL6(c.textContent,y,!0);else for(var Z=_.z(c.attributes),G=Z.next();!G.done;G=Z.next()){G=G.value;G.name==="id"&&(G.value+=y);["mask","fill","clip-path"].includes(G.name)&&(G.value=fL6(G.value,y));if(G.name==="style"){var D=c.style;try{D.cssText=fL6(D.cssText,y,!0)}catch(r){var Y=void 0,u=
void 0,t=void 0,b=void 0;ie({error:((Y=r)==null?void 0:(t=(u=Y).toString)==null?void 0:t.call(u))||"",el:c.outerHTML,style:!!D,cssText:(b=D)==null?void 0:b.cssText})}}G.name==="xlink:href"&&(G.value=G.value.replace(/#(.*)/,"#$1"+y))}}};
fL6=function(y,W,c){var Z=/url\(["']?#(.*?)["']?\)/;(c===void 0?0:c)&&(Z=/url\(["']?#(.*?)["']?\)/g);return y.replace(Z,"url(#$1"+W+")")};
cWd=function(y,W,c,Z){return function(G,D){var Y=Object.assign({},{iconColor:"currentcolor",iconWidth:W.size+"px",iconHeight:W.size+"px",iconDisplay:"block"},D);D=_.uC("DIV");var u=Y.iconColor,t=Y.iconFilter;Y="width: "+Y.iconWidth+"; height: "+Y.iconHeight+"; display: "+Y.iconDisplay+";";t&&(Y+=" filter: "+t+";");c===0&&(Y+=" fill: "+u+";");c===1&&(t=W.url,Y+=" -webkit-mask: url("+t+") no-repeat center / cover; mask: url("+(t+") no-repeat center / cover; background-color: ")+u);W.allowMirroring&&
y.appDirection==="rtl"&&(Y+=" transform: scale(-1, 1); transform-origin: center center;");D.setAttribute("style",Y);c===0&&Z&&D.appendChild(Z);G.appendChild(D)}};
_.GwD=function(y,W){var c,Z,G;return _.m(function(D){c=function(Y){return Lf(Y)};
Z=W.url;if(!oNH(Z))throw Error("hj");G=Dn6(y,Z);return D.return(G.then(function(Y){return Y.clone().text()}).then(function(Y){var u=c(Y);
Y=W.size;var t=_.uC("DIV");_.wf(t,u);u=_.to(t.firstElementChild!==void 0?t.firstElementChild:_.uMJ(t.firstChild,!0));Y=yW6(u,Y);y.iconCache[Z]=Y.cloneNode(!0);delete y.responsePromises[Z];return Y}).catch(function(){}))})};
zTd=function(y){var W,c=(W=y.requestAninmationFrameResolver)==null?void 0:W.promise;c||(y.requestAninmationFrameResolver=new _.WK,c=y.requestAninmationFrameResolver.promise,_.DH.requestAnimationFrame(function(){var Z;(Z=y.requestAninmationFrameResolver)==null||Z.resolve();y.requestAninmationFrameResolver=null}));
return c};
Dn6=function(y,W){var c,Z;return _.m(function(G){if(G.nextAddress==1)return y.waitForAnimationFrame?_.n(G,zTd(y),2):G.jumpTo(2);c=y.responsePromises[W];c||(Z=function(){var D,Y,u;return _.m(function(t){switch(t.nextAddress){case 1:if(!y.cacheStorageAvailable){D=void 0;t.jumpTo(2);break}if(Y=y.cacheStorageSync){t.jumpTo(3);break}return _.n(t,y.cacheStorageAsync,4);case 4:Y=t.yieldResult;case 3:D=Y;case 2:return u=D,y.isNetworkFirstStrategy?t.return(y.fetchAndUpdateCache(W,u).catch(y.getCacheStorageResponse.bind(y,
W,u))):t.return(y.getCacheStorageResponse(W,u).catch(y.fetchAndUpdateCache.bind(y,W,u)))}})},c=y.renderWhenIdle?new Promise(function(D,Y){_.Xc(_.KX,function(){Z().then(D).catch(Y)},10)}):Z(),y.responsePromises[W]=c);
return G.return(c.catch(function(D){delete y.responsePromises[W];ie({error:(D==null?0:D.toString)?D.toString():"",url:W});throw D;}))})};
xq.prototype.fetchAndUpdateCache=function(y,W){var c=this;return _.m(function(Z){return Z.return(YEd(c,y).then(function(G){mnZ(c,y,G,W);return G}))})};
var YEd=function(y,W){var c;return _.m(function(Z){if(y.numFetches<j8Q)return y.numFetches+=1,Z.return(s8S(y,W).finally(function(){--y.numFetches;if(Object.keys(y.queuedResponseResolvers).length){var G=Object.keys(y.queuedResponseResolvers)[0],D=y.queuedResponseResolvers[G];delete y.queuedResponseResolvers[G];D.resolve(YEd(y,G))}}));
c=new _.WK;y.queuedResponseResolvers[W]=c;return Z.return(c.promise)})},s8S=function(y,W,c){c=c===void 0?2:c;
var Z;return _.m(function(G){Z={credentials:"same-origin",priority:"low"};return G.return(_.DH.fetch(W,Z).then(function(D){return D.ok?D:Promise.reject(Error("ij`"+D.status+"`"+D.statusText))}).catch(function(D){if(c>0)return s8S(y,W,c-1);
throw D;}))})},mnZ=function(y,W,c,Z){_.m(function(G){return Z?G.return(new Promise(function(D){_.Xc(_.KX,function(){var Y,u;
return _.m(function(t){switch(t.nextAddress){case 1:if(!y.isNetworkFirstStrategy){Y=void 0;t.jumpTo(2);break}return _.n(t,Z.match(W).catch(function(){}),3);
case 3:Y=t.yieldResult;case 2:if(u=Y){t.jumpTo(4);break}return _.n(t,Z.put(W,c.clone()).catch(function(b){ie({error:(b==null?0:b.toString)?b.toString():"",url:W})}),4);
case 4:D(),_.F2(t)}})},50)})):G.return()})};
xq.prototype.getCacheStorageResponse=function(y,W){return _.m(function(c){return W?c.return(W.match(y).then(function(Z){return Z&&Z.ok?Z:Promise.reject()})):c.return(Promise.reject())})};
var yW6=function(y,W){W===void 0||y.getAttribute("viewBox")||y.setAttribute("viewBox","0 0 "+W+" "+W);y.setAttribute("focusable","false");y.setAttribute("aria-hidden","true");try{y.style.pointerEvents="none",y.style.display="inherit",y.style.width="100%",y.style.height="100%"}catch(G){var c;ie({error:((c=G)==null?0:c.toString)?G.toString():""});try{y.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(D){var Z;ie({error:((Z=D)==null?0:Z.toString)?D.toString():
""})}}return y},oNH=function(y){for(var W=_.z(k99),c=W.next();!c.done;c=W.next())if(y.startsWith(c.value)&&y.endsWith(".svg"))return!0;
return!1};
xq.prototype.resolveIcon=function(y){return this.iconSet.resolveIcon(y)};
var ie=function(y){_.Rs(new _.ul("Error in IconManager",y))},WCg=function(y){if(_.O("wil_icons_cache_purge_killswitch"))return!1;
try{var W=_.DH.localStorage}catch(D){return!1}if(!W||!y.cacheStorageAvailable)return!1;var c=function(D){try{var Y;(Y=W)==null||Y.setItem("yt-icons-last-purged",D.toString())}catch(t){var u;ie({error:((u=t)==null?0:u.toString)?t.toString():""})}},Z=Number(W.getItem("yt-icons-last-purged"));
if(!Z)return Z=new Date,Z=Z.setDate(Z.getDate()-Math.floor(Math.random()*90+1)),c(Z),!1;if(function(D,Y){D=new Date(D);Y=new Date(Y);return Y.getMonth()-D.getMonth()+12*(Y.getFullYear()-D.getFullYear())}(Z,Date.now())<3)return!1;
try{return _.DH.caches.delete("yt-icons").then(function(D){D&&c(Date.now());return D}).catch(function(){return!1}).finally(function(){y.isPurging=!1})}catch(D){var G;
ie({error:((G=D)==null?0:G.toString)?D.toString():""});return!1}};
xq[dq]=[R9Q,_.I9,_.xN(NQ9)];_.Ms=function(y,W){this.iconManager=y;this.iconsToFetch=W};
_.Ms[dq]=[_.qM,_.xN(EyQ)];var ulH=function(y,W,c){this.requestKey=y;this.q83=W;this.lTL=c;this.pv2=function(){return new XMLHttpRequest};
this.rnN=void 0;this.ykv=[]};
ulH.prototype.getLatestChallengeResponse=function(){return this.lTL};
var vrQ=function(y,W,c){var Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1){_.pl("attestation_challenge_fetch");_.PA("att_fs",void 0,"attestation_challenge_fetch");if(!y.rnN)throw new _.F1(9,"Missing fetcher");return _.n(u,y.rnN(W,c),2)}Z=u.yieldResult;D=(G=Z)==null?void 0:G.bgChallenge;if(!D)throw new _.F1(15,"Missing field");y.lTL=Z;y.ykv.forEach(function(t){t(Z)});
Y=NoI(D);_.PA("att_fc",void 0,"attestation_challenge_fetch");kCf("attestation_challenge_fetch");return u.return(Y)})},mPW=function(y,W){var c,Z,G,D,Y;
return _.m(function(u){switch(u.nextAddress){case 1:c=new fg(100,3E5,.25,2),Z=void 0;case 2:if(!(c.currBackoffCount_<10)){u.jumpTo(4);break}_.tm(u,5);if(!(c.currBackoffCount_>0)){u.jumpTo(7);break}return _.n(u,Frt(c.getValue()),7);case 7:return _.n(u,tyQ(y,W),9);case 9:return G=u.yieldResult,u.return(G);case 5:D=_.rs(u);D instanceof _.F1?Z=D:(Y=D instanceof Error?D.message:"Unknown",Z=new _.F1(9,Y));q$W(c);u.jumpTo(2);break;case 4:if(Z)throw Z;throw new _.F1(9,"Unknown error");}})},tyQ=function(y,
W){W=pkm(PCW(new IdW,W),y.requestKey);
var c=new _.WK,Z=y.pv2();Z.open("POST",y.q83);Z.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Z.setRequestHeader("Content-Type","application/json+protobuf");Z.onload=function(){if(EAI(Z)){var G=HLZ(Z.responseText);c.resolve(G)}else c.reject(new _.F1(_.HjH(kN(Z)),Z.statusText))};
Z.onerror=function(){c.reject(new _.F1(_.HjH(kN(Z)),Z.statusText))};
Z.send(W.serialize());return c.promise};var XI3=function(y){this.networkStatusManager=y;this.isDownloaded=Eo1===void 0?function(){return!1}:Eo1;
this.isReady=!1;this.yyA=nNQ(this)},nNQ=function(y){var W;
return _.m(function(c){if(c.nextAddress==1)return _.n(c,FC1(),2);if(c.nextAddress!=3)return W=c.yieldResult,_.n(c,u2J(W),3);y.yG=c.yieldResult;$5g(y.yG).then(function(){y.isReady=!0});
return c.return(y.yG)})},bjS=function(y,W,c){y.yG?(y=y.yG.w3({mK:c,
jUk:!0,b3e:!0}),W.serviceIntegrityDimensions={poToken:y}):_.OP(Error("jj"))};
XI3.prototype.processContext=function(y){var W=this;if(!y.input.match(_.Tx(er0)))return _.CF();var c=y.innerTubeRequest,Z=c.videoId;return!Z||this.isDownloaded(c)||this.networkStatusManager&&!this.yG&&!this.networkStatusManager.isNetworkAvailable()?_.CF():this.yG?this.isReady?(bjS(this,c,Z),_.CF()):new Vz($5g(this.yG).then(function(){bjS(W,c,Z)})):new Vz(this.yyA.then(function(G){return _.m(function(D){if(D.nextAddress==1)return _.n(D,$5g(G),2);
bjS(W,c,Z);_.F2(D)})}))};var rW6=new _.Sm("WEB_PO_CONTEXT_PROCESSOR");var FCH=function(y,W){var c=this;this.vkN=0;var Z;this.gOu=(Z=W==null?void 0:W.gOu)!=null?Z:window;this.networkStatusManagerPromise=W==null?void 0:W.networkStatusManagerPromise;var G;this.requestKey=(G=W==null?void 0:W.requestKey)!=null?G:_.wj("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var D;this.mZp=(D=W==null?void 0:W.mZp)!=null?D:function(t){return new Ep(t)};
var Y;Z=(Y=W==null?void 0:W.kwM)!=null?Y:function(t,b,r){return new ulH(t,b,r)};
this.bgChallenge=NoI(y.bgChallenge);this.ttlSeconds=IoO(xD(y.challenge||""));this.zl=Z(this.requestKey,_.O("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.DH.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",y);U5y(this.zl);var u;this.nnS=(u=W==null?void 0:W.nnS)!=null?u:function(t){_.Y0(c.gOu.document,"visibilitychange",function(){c.gOu.document.visibilityState===
"visible"&&t()})}},$nf=function(y){if(!y.pk){var W={maxAttempts:5,
cds:y.ttlSeconds*1E3};KrO(y.gOu);y.pk=y.mZp({zl:y.zl,g3:{disable:_.O("html5_web_po_disable_remote_logging"),wX:"aGIf",b2W:Kqg("html5_web_po_experiment_ids"),xW3:_.O("wpo_dis_lfdms")?0:1E3},xE3:W,eKD:y.bgChallenge,ntX:Ohg});y.vkN=Date.now();Ao8(y.pk,function(){y.vkN=Date.now()});
OjH(y.pk,function(){return _.m(function(Z){return Z.return(UnZ(y))})});
var c=y.tt6.bind(y);y.networkStatusManagerPromise&&y.ttlSeconds>0&&y.networkStatusManagerPromise.then(function(Z){Z.listen("publicytnetworkstatus-online",c)});
y.nnS(c)}};
FCH.prototype.tt6=function(){if(Date.now()>this.vkN+this.ttlSeconds*1E3){var y;(y=this.pk)==null||Qe3(y)}};
var UnZ=function(y){if(y.ta7)return y.ta7;if(!y.pk)throw Error("kj");y.ta7=new PP({pk:y.pk,zl:y.zl,uQ3:!0,onError:Ohg});return y.ta7},ROH=function(y,W){y=new FCH(y,W);
$nf(y);UnZ(y)};var en=function(y,W){this.store=y;this.queue=[];this.supportsFocus=_.O("web_ephemeral_actions_focus");W==null||W.addEventListener("yt-navigate-start",this.reset.bind(this))};
en.prototype.enqueue=function(y){var W=y.command,c=y.durationMs,Z=y.elementToFocus;var G=y.label;var D=y.elementToFocus;y.command?G=_.bN("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:G,shortcut:_.bN("SHIFT_PLUS_ENTER")}):D&&this.supportsFocus&&(y=G+". "+_.bN("SHIFT_PLUS_ENTER")+" to move focus.",G=_.bN("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:G,shortcut:_.bN("SHIFT_PLUS_ENTER")},y));c={announcement:G,durationMs:c!=null?c:this.supportsFocus?8E3:void 0};W?c.command=W:Z&&this.supportsFocus&&(Z.classList.add("ephemeral-action-focusable-element"),
c.selector=Z.tagName+".ephemeral-action-focusable-element");this.queue.push(c);KCg(this)};
en.prototype.activate=function(y){var W=_.S_y(this.store.getState());if(W){if(W==null?0:W.command)_.$0(W.command),this.store.dispatch(Sk8(null));(W==null?0:W.selector)&&this.supportsFocus&&(W=document.querySelector(W.selector),_.IPF(W));y.preventDefault()}};
var KCg=function(y){if(!_.S_y(y.store.getState())&&y.queue.length){var W=y.queue.shift();W&&(y.previousAnnouncement===W.announcement&&(W.announcement+="\u00a0"),y.store.dispatch(Sk8(W)),y.previousAnnouncement=W.announcement,y.timeoutId=setTimeout(function(){if(W.selector&&y.supportsFocus){var c;(c=document.querySelector(W.selector))==null||c.classList.remove("ephemeral-action-focusable-element")}y.store.dispatch(Sk8(null));KCg(y)},W.durationMs))}};
en.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Sk8(null));this.queue.length=0;this.timeoutId=void 0};
en[dq]=[_.Fq,_.kP];_.wE=new _.Sm("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Oj9=new _.Sm("AUTH_SERVICE_TOKEN");var NnH=_.dl(["about:blank"]),EfD;var gNS=new _.Sm("API_IFRAME_TOKEN"),RTZ=new _.Sm("FETCH_FN_TOKEN"),lLZ=new _.Sm("PARSE_FN_TOKEN"),EN9=new _.Sm("WINDOW_REQUEST_TOKEN");var vkZ;vkZ=new _.Sm("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.NjQ=new _.Sm("MISC_UI_SHARED_FLAGS_TOKEN");var ILH=function(){};
ILH.prototype.getFlag=function(y){if(y.configType!==2)throw Error("lj");return pIQ(y)};
var pIQ=function(y){switch(y.flagType){case "bool":return _.O(y.flagName);case "int":return _.QT(_.ey(y.flagName));case "double":return _.ey(y.flagName);case "string":return _.wj(y.flagName);case "int32_list":return Kqg(y.flagName);case "int64_list":return Kqg(y.flagName).map(function(W){return _.QT(W)});
case "string_list":return _.qn(y.flagName);default:throw Error("mj");}};var qs=function(y,W,c){W=W===void 0?{}:W;OS.call(this,c===void 0?"uninitialized":c);this.env=y;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];W.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=W.shouldWaitOnAsyncImmediate)};
_.R(qs,OS);qs.prototype.init=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.n(Z,y(W.env),2):(y(W.env),Z.jumpTo(2));if(Z.nextAddress!=4)return W.jobSet?_.n(Z,W.jobSet.completedResolver.promise,4):Z.jumpTo(4);c=_.It();c.parkOrScheduleJob(function(){W.transition("rendering")},10,"ci");
_.F2(Z)})};
qs.prototype.initialRender=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.n(Z,y(W.env),2):(y(W.env),Z.jumpTo(2));if(Z.nextAddress!=4)return W.jobSet?_.n(Z,W.jobSet.completedResolver.promise,4):Z.jumpTo(4);c=_.It();c.parkOrScheduleJob(function(){W.transition("rendered")},10,"cr");
_.F2(Z)})};
qs.prototype.afterRenderImmediate=function(y){var W=this,c;return _.m(function(Z){if(Z.nextAddress==1)return W.processPluginOptions.shouldWaitOnAsyncImmediate?_.n(Z,y(W.env),2):(y(W.env),Z.jumpTo(2));if(Z.nextAddress!=4)return W.jobSet?_.n(Z,W.jobSet.completedResolver.promise,4):Z.jumpTo(4);c=_.It();c.parkOrScheduleJob(function(){W.transition("after-render-deferred")},10,"carml");
_.F2(Z)})};
qs.prototype.afterRenderDeferred=function(y){var W=this;return _.m(function(c){y(W.env);_.F2(c)})};var P19={},JWH=(P19.rendered={priority:0,callback:function(y){tbJ(y.injector.resolve(bt))}},P19);var VyD=!1,hOa=0,VfH=null,ARt=null;var C13=new _.Sm("NETWORK_SLI_TOKEN");var Q89=function(y,W,c,Z){this.networkSli=y;this.fetchFn=W;this.parseFn=c;this.requestFn=Z};
Q89.prototype.fetch=function(y,W,c){var Z=this,G,D,Y;return _.m(function(u){G=AWZ(Z,y,W);Y=(D=Z.fetchFn)!=null?D:fetch;return u.return(Y(G).then(function(t){return Z.handleResponse(t,c)}).catch(function(t){_.Rs(t);
if((c==null?0:c.expectJsonStrict)&&t instanceof ez&&t.errorType===1)return Promise.reject(t)}))})};
var DA0=function(y,W,c,Z){var G,D,Y,u,t,b;return _.m(function(r){switch(r.nextAddress){case 1:return G=AWZ(y,W,c),_.tm(r,2),_.n(r,fetch(G),4);case 4:D=r.yieldResult;_.J6(r,3);break;case 2:throw _.rs(r),new ez(2,"Failed to parse streaming response",G.url);case 3:if(!D.redirected&&!D.ok)throw(Y=y.networkSli)==null||Y.failure(),new _.ul("Streaming fetch request not ok",G.url);if(!D.body)throw new _.ul("No response body in streaming response",G.url);u=D.body.pipeThrough(new TextDecoderStream).getReader();
t=new _.wH;b={};return r.return(hT6(y,u,t,GTE,b,Z))}})},AWZ=function(y,W,c){if(y.networkSli){var Z=_.c7(_.qR(W,"key"))||"/UNKNOWN_PATH";
y.networkSli.start(Z)}Z=c;_.O("wug_networking_gzip_request")&&(Z=C6I(c));var G;return new ((G=y.requestFn)!=null?G:window.Request)(W,Z)},hT6=function(y,W,c,Z,G,D){var Y,u,t,b,r,F,K,l,N;
return _.m(function(P){if(P.nextAddress==1)return _.n(P,W.read(),2);Y=P.yieldResult;u=Y.value;if(t=Y.done)return(b=y.networkSli)==null||b.success(),P.return(G);try{r=c.parse(u)}catch(V){throw new ez(1,"Failed to parse streaming response",u);}if(r!=null)for(F=_.z(r),K=F.next();!K.done;K=F.next())l=K.value,Z(G,l),N=void 0,(N=D)==null||N(G,l);return P.return(hT6(y,W,c,Z,G,D))})};
Q89.prototype.handleResponse=function(y,W){var c,Z=(c=this.parseFn)!=null?c:JSON.parse;c=y.text().then(function(G){if((W==null?0:W.jspbResponseCtor)&&y.ok)return EXh(W.jspbResponseCtor,G);G=G.replace(")]}'","");if((W==null?0:W.expectJsonStrict)&&G)try{var D=Z(G)}catch(u){throw new ez(1,"JSON parsing failed after fetch");}var Y;return(Y=D)!=null?Y:Z(G)});
y.redirected||y.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),c=c.then(function(G){_.Rs(new _.ul("Error: API fetch failed",y.status,y.url,G));return Object.assign({},G,{errorMetadata:{status:y.status}})}));
return c};
Q89[dq]=[_.xN(C13),_.xN(RTZ),_.xN(lLZ),_.xN(EN9)];var BjD=new _.Sm("NETWORK_MANAGER_TOKEN");var Hj9=[1,2,4,8,16,30],vNQ=function(y){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=y.maxTimeMs;this.maxFrameCount=y.maxFrameCount===void 0?Math.ceil(60*y.maxTimeMs/1E3):y.maxFrameCount;y=_.z(Hj9);for(var W=y.next();!W.done;W=y.next())this.brokenFrameSummarizers.push(new LCB(W.value/60*1E3))},dn6=function(y){var W=y.frameCountInternal>=y.maxFrameCount;
return y.elapsedTimeMs>=y.maxTimeMs||W},SEB=function(y){for(var W=[],c=_.z(y.brokenFrameSummarizers),Z=c.next();!Z.done;Z=c.next())Z=Z.value,Z=Z.brokenFrameCount!==0?{severityMs:Math.round(Z.targetFrameTimeMs),
eventCount:Z.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(Z.averageDurationBetweenEventsMs)}:void 0,Z&&W.push(Z);return{summaries:W,monitoringDurationMs:Math.round(y.elapsedTimeMs)}};
_.dJ.Object.defineProperties(vNQ.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 LCB=function(y){this.targetFrameTimeMs=y;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.dJ.Object.defineProperties(LCB.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var TjH=function(){};
TjH.prototype.start=function(y,W){var c=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Z=new vNQ({maxTimeMs:y});this.monitor=Z;this.lastSummaryInternal=void 0;this.metadataToLog=W;return new Promise(function(G){var D=function(Y){if(Y===void 0)c.stop(),G(void 0);else if(c.monitor!==Z)Y=Object.assign({},SEB(Z),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),G(Y);else{var u=c.monitor;if(!dn6(u)){u.frameCountInternal++;if(u.prevTime===void 0)u.startTime=
Y;else for(var t=Y-u.prevTime,b=_.z(u.brokenFrameSummarizers),r=b.next();!r.done;r=b.next()){r=r.value;var F=r.currTimeMs;r.currTimeMs+=t;t>r.targetFrameTimeMs+2&&(r.brokenFrameCount++,r.timeOfFirstBrokenFrameMs===void 0&&(r.timeOfFirstBrokenFrameMs=F),r.timeOfLastBrokenFrameMs=F)}u.prevTime=Y}dn6(c.monitor)?G(c.stop()):_.KX.addJob(D,5,0)}};
_.KX.addJob(D,5,0)})};
TjH.prototype.stop=function(y){if(!this.monitor)return this.lastSummaryInternal;var W=Object.assign({},SEB(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(W.monitoringDurationMs){y=y!=null?y:this.metadataToLog;var c={droppedFramesSummary:W,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};y&&(c[y.type]=y.data);_.$g("manualSmoothnessMeasurement",c)}this.monitor=void 0;this.lastSummaryInternal=W;this.metadataToLog=void 0;return W};_.aL6=new _.Sm("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var xnd;xnd=function(y){this.JSC$16121_expiringStorage=new nR(y)};
_.ijH=function(y){if(_.BnF()&&(y=_.Yqw(_.m9()+"::"+y)))return new xnd(y)};
xnd.prototype.set=function(y,W,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$16121_expiringStorage.set(y,W,c)};
xnd.prototype.get=function(y){return this.JSC$16121_expiringStorage.get(y)};
xnd.prototype.remove=function(y){this.JSC$16121_expiringStorage.remove(y)};var My9=new _.Sm("SESSION_STORAGE");_.kq=function(){};
_.kq.getInstance=function(){var y=_.JW("ytglobal.storage_");y||(y=new _.kq,_.LR("ytglobal.storage_",y));return y};
_.kq.prototype.estimate=function(){var y,W,c;return _.m(function(Z){y=navigator;return((W=y.storage)==null?0:W.estimate)?Z.return(y.storage.estimate()):((c=y.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?Z.return(HhD()):Z.return()})};
_.LR("ytglobal.storageClass_",_.kq);var eTZ=_.dl(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),wIg=_.dl(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var YRB={"/":_.fH,"/?feature=ytca":_.fH,"/feed/downloads":_.KoI};var s9=function(y,W,c){this.JSC$16132_upliftPromise=y;this.store=W;this.JSC$16132_persistentStorePromiseAccessor=c};
s9.prototype.shouldPreferLocalResponse=function(y){return y.browseId==="FEdownloads"||y.browseId==="FEsmart_downloads"&&_.O("kevlar_modern_downloads_page")?!0:!1};
s9.prototype.localInnertubeResponse=function(y){var W=this;return _.m(function(c){return y.browseId==="FEdownloads"?_.O("kevlar_modern_downloads_page")?c.return(qE9(W)):c.return(kwB(W)):y.browseId==="FEsmart_downloads"&&_.O("kevlar_modern_downloads_page")?c.return(jS3(W)):c.return(Promise.reject(Error("oj")))})};
s9.prototype.canProvideFallbackResponse=function(){return!0};
s9.prototype.localFallbackInnertubeResponse=function(y){var W=this,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:return _.n(D,W.JSC$16132_persistentStorePromiseAccessor(),2);case 2:c=D.yieldResult;if(y.browseId!=="SPaccount_downloads"||!c){D.jumpTo(3);break}return _.n(D,lOt(c),4);case 4:if(Z=D.yieldResult)return D.return(_.Zs(Z));case 3:return y.browseId==="FEwhat_to_watch"?D.return(y63(W)):(G=_.O("web_offline_continuation_automatic_retry")||_.O("web_offline_continuation_retry_button"))&&
y.continuation?D.return(W93(W)):D.return(c63(W))}})};
var y63=function(y){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$16132_upliftPromise,2);W=_.nPI(y.store.getState().entities);return W.length?c.return(ZR9(y,W)):c.return(c63(y))})},kwB=function(y){var W,c;
return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$16132_upliftPromise,2);if(Z.nextAddress!=3)return W=Gjg([{offlineItemSectionRenderer:{}}]),_.n(Z,fP6(y,W),3);c=Z.yieldResult;c.onResponseReceivedActions=[Ud("REFRESH_DOWNLOADS")];return Z.return(c)})},qE9=function(y){var W,c,Z,G,D,Y,u,t,b,r,F,K,l;
return _.m(function(N){if(N.nextAddress==1)return _.n(N,y.JSC$16132_upliftPromise,2);if(N.nextAddress!=3)return W=y.store.getState(),c=W.entities,Z=_.Kq(c),G=_.Oq(c),D=_.aED(W),Y=_.TFg(W),u=_.xtt(W),t=_.F_I(c),b=_.bo(Z),r=_.gu(c),F={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.JBa(Z,G,t,D,Y,b,r,u),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},K=_.bN("DOWNLOADS",void 0,"Downloads"),_.n(N,o7Z(y,F,K),3);l=N.yieldResult;
l.onResponseReceivedActions=[Ud("REFRESH_DOWNLOADS")];return N.return(l)})},jS3=function(y){var W,c,Z,G,D,Y,u,t,b;
return _.m(function(r){if(r.nextAddress==1)return _.n(r,y.JSC$16132_upliftPromise,2);if(r.nextAddress!=3)return W=y.store.getState(),c=W.entities,Z=_.Kq(c),G=_.bo(Z),D=_.gu(c),Y={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.CKI(Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},u=_.bN("SMART_DOWNLOADS",void 0,"Smart downloads"),t=pl1(G,D),_.n(r,o7Z(y,Y,u,t),3);b=r.yieldResult;b.onResponseReceivedActions=[Ud("REFRESH_DOWNLOADS")];
return r.return(b)})},c63=function(y){var W,c;
return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,cU(y.JSC$16132_upliftPromise,y.store),2);W=Z.yieldResult;c=Gjg([KPD(W)]);return Z.return(fP6(y,c))})},W93=function(y){var W,c,Z,G;
return _.m(function(D){if(D.nextAddress==1)return W={},c=y.store.getState().continuation.continuationCommand,_.nN(W,_.$x,c),_.n(D,cU(y.JSC$16132_upliftPromise,y.store,W,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Z=D.yieldResult;G={};_.nN(G,_.j7T,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Z}}}],targetId:"browse-feedFEwhat_to_watch"});return D.return({responseContext:{},onResponseReceivedActions:[G]})})},Gjg=function(y){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:y}}}}]}}},ZR9=function(y,W){var c,Z;
return _.m(function(G){var D={contents:$D(W)};c=D&&D.contents?D:{};_.O("kevlar_modern_downloads_page")&&(c=Object.assign({},_.QRt(W),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:c}}}]}};return G.return(fP6(y,Z))})},fP6=function(y,W){var c,Z;
return _.m(function(G){if(G.nextAddress==1)return _.n(G,y.JSC$16132_persistentStorePromiseAccessor(),2);if(G.nextAddress!=3)return c=G.yieldResult,_.n(G,Gy(c),3);Z=G.yieldResult;return G.return({responseContext:{},contents:W,topbar:Z})})},o7Z=function(y,W,c,Z){var G,D;
return _.m(function(Y){if(Y.nextAddress==1)return _.n(Y,y.JSC$16132_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return G=Y.yieldResult,_.n(Y,Gy(G),3);D=Y.yieldResult;var u=Y.return,t=Z;t=t===void 0?"":t;var b={dynamicTextViewModel:{text:{content:c}}};var r={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.bN("SETTINGS",void 0,"Settings"),accessibilityText:_.bN("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:M2("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return u.call(Y,{responseContext:{},contents:W,topbar:D,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:b,actions:r,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:t}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:c}}})})};var DCZ=function(){this.moduleRegistry={};this.fetchCount=0};
DCZ.prototype.isFetching=function(){return this.fetchCount>0};
var QQ=function(y,W){y.moduleRegistry[W.toString()]={asyncId:W,isFetching:!1};return y};
DCZ.prototype.JSC$16143_loadModules=function(){for(var y=this,W=new Map,c=[],Z=_.z(_.Cf.apply(0,arguments)),G=Z.next();!G.done;G=Z.next()){G=G.value;var D=this.moduleRegistry[G];D?D.resolver?W.set(G,D.resolver):(D.resolver=new _.WK,W.set(G,D.resolver),c.push(D.asyncId),D.isFetching=!0):(D=new _.WK,W.set(G,D),D.resolve(void 0))}c.length&&(this.fetchCount+=1,_.bU(_.r$.getMultipleAsync.apply(_.r$,_.No(c)).then(function(Y){for(var u=0;u<c.length;u++){var t=Y[u],b=y.moduleRegistry[c[u].toString()];b.isFetching=
!1;b.resolver.resolve(t)}}).catch(function(Y){for(var u=_.z(c),t=u.next();!t.done;t=u.next()){t=t.value;
var b=y.moduleRegistry[t.toString()];b.resolver=void 0;b.isFetching=!1;W.get(t.toString()).reject(Y)}}),function(){--y.fetchCount}));
return Promise.all([].concat(_.No(W.values())).map(function(Y){return Y.promise}))};_.Ad=new _.Sm("MODULE_REGISTRY_TOKEN");var ze9={},YAg=(ze9.rendered={priority:0,callback:function(y){a:{var W=void 0;try{var c;b:{if(_.YkE()){var Z=_.z4D(_.m9()+"::pom");if(Z){var G=new GI(Z);break b}}G=void 0}var D=(c=G)==null?void 0:c.get("role_text");if(!D)break a;W={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:D}]}}}}}}catch(t){}W&&y.injector.resolve(_.i1).resolveCommand(W)}try{var Y=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Y){var u=JSON.parse(Y);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
u&&y.injector.resolve(_.i1).resolveCommand(u)}}catch(t){}}},ze9);var mCH,sSB={},uWS=(sSB.initialized={priority:10,callback:function(){mCH=Ky()}},sSB.rendering={callback:function(y){var W;
return _.m(function(c){if(c.nextAddress==1)return _.n(c,mCH,2);W=c.yieldResult;if(!W.endpoint)throw Error("qj`"+_.DH.location.href);lT(y,W);_.F2(c)})}},sSB);var t5H={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(_.No(_.O("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(y){var W=y.stack;if(W.includes("chrome://")||W.includes("chrome-extension://")||y.message.includes("chrome-extension://")||W.includes("moz-extension://")||W.includes("local.adguard.org")||W.includes("auctioneer3.50million.club")||W.includes("youtubedownloader")||W.includes("youtube_home_page")||W.includes("is_youtube_video_no_longer_available")||
W.includes("switchScreenSizeHack")||W.includes("yt_main_big_banner.js")||W.includes("YouTubeCenter.js")||W.includes("/mytube.js")||W.includes("JSON.parseWrapper")||W.includes("/inj_js/common.js")||W.includes("firebug-lite")||W.includes(".repl.co/")||W.includes("linkfix")||W.includes("playAfterAd")||y.message.includes("Access is denied for this document")&&W.includes("<anonymous>")||y.fileName==="user-script"||y.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
W.includes("<anonymous>"))return!0;if(W.includes("https://www.youtube.com"))return!1;y=W.split("\n");if(!y.length)return!1;if(y.length<=3&&W.includes("s.onloadeddata"))return!0;W=0;for(var c=_.z(y),Z=c.next();!Z.done;Z=c.next())Z=Z.value,(Z.includes("https://")||Z.includes("http://"))&&W++;return W/y.length>.95},
weight:0},{callback:function(y){return y.message==="Unknown Error"&&y.name.indexOf("NS_")===0},
weight:100},{callback:function(y){if(!_.G$)return!1;var W=y.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||y.message.includes("available to complete this operation"),c=y.stack.includes("webcomponents")&&y.message==="Object doesn't support this action";y=y.message.includes("object that does not implement interface Element");return W||c||y},
weight:0},{callback:function(y){return y.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(y){return y.message==="Operation is not supported"&&(y.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(y){return y.stack.includes("eval code (eval (code:1:1)")||y.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(y){return y.message.includes("Permission denied")&&y.stack.includes("this.domHandler")?!0:y.name.includes("TypeError")&&y.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(y){if(!y.stack)return!1;var W=y.stack.trim().split("\n");W.length&&W[0].endsWith("Error: "+y.message)&&W.shift();W.length&&W[W.length-1].includes("at window.onerror (")&&W.pop();if(!W.length)return!0;if(y.message==="Script error.")return W[0].includes("www.youtube.com")||W.length>=2&&W[0].startsWith("at new")&&W[1].startsWith("at window.onerror");if(y.message==="Unexpected token")return!0;y=_.z(W);for(W=y.next();!W.done;W=y.next())if(W=W.value,!(W.includes("<anonymous>")||
W.startsWith("load@")||W.startsWith("global code@")||W.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(y){return y.message==="Cannot read property 'experiments'"&&y.stack.includes("/s/player/")},
weight:500},{callback:function(y){return y.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(y){return y.stack.includes("/embed.js")?(y.params&&y.params&&(y.params.name="56"),!0):!1},
weight:1}]};var n76={},X76=(n76.initialized={priority:10,callback:function(y){y.injector.addProvider({provide:pa6,useValue:y.root});y.injector.addProvider({provide:WTZ,useValue:D8F});y.injector.addProvider({provide:cld,useValue:t5H});var W={};y.injector.addProvider((W.provide=ZLS,W.useFactory=function(c,Z){return function(){dy1(c,Z)}},W[dq]=[WTZ,
cld],W));y.injector.addProvider({provide:Wb,useClass:Wb})}},n76);var bRB={},r6B=(bRB.initialized={priority:3,callback:function(){var y;if(y=WZt()){y=y.replace("/",".");var W=_.Uc();W.set("tz",y);W.save();y=!0}else y=!1;y||(y=_.Uc(),y.set("utco",-Math.floor((new Date).getTimezoneOffset())),y.save())}},bRB);var F9D={},UCQ=(F9D.initialized={priority:10,callback:function(y){y.injector.resolve(Wb).start();y=_.Jq();var W=_.I8("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.I8("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.I8("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.I8("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.zy(_.gjH(),{mainAppWeb:Object.assign({},y,{pageType:W})});_.zy(lYh(),{mainAppWeb:Object.assign({},y,{pageType:W})});
_.zy(Ejy(),{mainAppWeb:y});_.zy(N_h(),{mainAppWeb:y});lmV(function(){_.Y3(Ejy(),"FAILURE");_.Y3(N_h(),"FAILURE")});
qzh();k81();jww()}},F9D);var $C9={},K9S=($C9.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.PA("dl"),_.It().processSignal("pcl");else{var y=function(){_.PA("dl");_.It().processSignal("pcl");window.removeEventListener("load",y)};
window.addEventListener("load",y)}}},$C9);var ORD={},g79=(ORD.rendering={priority:0,callback:function(){var y=_.It();y.parkOrScheduleJob(function(){y.processSignal("eocs")},10,"eor",5E3)}},ORD);var ReZ=function(){};
_.R(ReZ,BB);
ReZ.prototype.resolveCommand=function(y,W){var c,Z,G,D,Y,u,t,b;return _.m(function(r){G=(c=_.g(y,_.JkV))==null?void 0:(Z=c.dialog)==null?void 0:Z.commentReplyDialogRenderer;if(!G)throw new _.ul("No dialog in createCommentReplyDialogEndpoint");Y=(D=W.form)==null?void 0:D.event;if(!Y)throw new _.ul("Event not passed in when resolving command");u=_.z(Y.composedPath());for(t=u.next();!t.done;t=u.next())if(b=t.value,b.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||b.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return b.showReplyDialog(G),r.return();
_.F2(r)})};var jY=function(y){this.pageRequestService=y;this.JSC$16158_prefetchCoordinator=dQ3()};
_.R(jY,BB);jY.prototype.resolveCommand=function(y){var W=this,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1){c=_.g(y,sUQ);if((Z=c)==null||!Z.taskId)throw Error("rj");G=c.taskId;_.tm(Y,2);return _.n(Y,_.A22(W.pageRequestService,y,{},"").then(function(u){if(!u)throw Error("sj");},function(u){throw Error("tj`"+u);
}),4)}if(Y.nextAddress!=2)return adg(W.JSC$16158_prefetchCoordinator,G),_.J6(Y,0);
D=_.rs(Y);Vr(W.JSC$16158_prefetchCoordinator,G,D);_.F2(Y)})};
jY[dq]=[$3];var yD=function(y){this.innertubeTransportService=y};
_.R(yD,BB);yD.prototype.resolveCommand=function(y){var W=this,c,Z;return _.m(function(G){c=_.g(y,zDJ);if(c.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||c.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Z=c.boolValue?2:1,_.LF.getInstance().setState(Z,!0,!0);return _.n(G,_.IL(W.innertubeTransportService,y),0)})};
yD[dq]=[_.b0];var Wo={},lPH=(Wo.addToPlaylistEndpoint=iN(rA),Wo.addToToastAction=iN(sJ),Wo.adsControlFlowOpportunityReceivedCommand=iN(jJ),Wo.captionLanguageSelectActionCommand=iN(PY),Wo.captionPickerEndpoint=iN(J0),Wo.changeMiniAppPlayStateCommand=iN(Fu),Wo.changeTimelyActionVisibilityCommand=iN(m3),Wo.channelCreationFormEndpoint=iN(sI),Wo.clearLocationCommand=iN(bJ),Wo.copyLinkCommand=iN(h0),Wo.copyTextEndpoint=iN(cY),Wo.createCommentReplyDialogEndpoint=p_g(ReZ),Wo.createPlaylistServiceEndpoint=iN(BY),Wo.dismissDialogEndpoint=
iN($t),Wo.entityUpdateCommand=iN(Gz),Wo.feedbackEndpoint=iN(DC),Wo.getAnswerCommand=iN(qbH),Wo.getPaymentsClientTokenCommand=iN(nV),Wo.getTranscriptEndpoint=iN(uQ),Wo.googlePaymentBillingCommand=iN(XN),Wo.googlePaymentPurchaseManagerCommand=iN(bQ),Wo.hideEngagementPanelEndpoint=iN(K5),Wo.insertRichSectionCommand=iN(t0),Wo.listMutationCommand=iN(n5),Wo.logGtmCommand=iN(uJ),Wo.notifyDropdownOptionSelectedCommand=iN(UI),Wo.openAdAllowlistInstructionCommand=iN(_.y6),Wo.openOnePickAddVideoModalCommand=
iN(HY),Wo.pingingEndpoint=iN(WY),Wo.playlistEditEndpoint=iN(vY),Wo.playlistVotingRefreshPopupCommand=iN(dA),Wo.refreshPanelEndpoint=iN(OI),Wo.saveImageToDeviceEndpoint=iN(ZC),Wo.scrollToSectionEndpoint=p_g(ka9),Wo.seekToVideoTimestampCommand=iN(V6),Wo.setCookieCommand=iN(Tz),Wo.setLocalStorageCommand=iN(fV),Wo.setPrefStorageEntryCommand=iN(xt),Wo.setSettingEndpoint=iN(yD),Wo.sfvAudioItemPlaybackCommand=iN(C5),Wo.shareImageCommand=iN(iJ),Wo.sharingProviderDataCommand=iN(M_),Wo.showCaptionLanguageSelectActionCommand=
iN(Q6),Wo.showDialogCommand=iN(lJ),Wo.showEngagementPanelEndpoint=iN(EI),Wo.showSheetCommand=iN(N_),Wo.showTransientPlayerScrimOverlayCommand=iN(A0),Wo.submitFormWithValidationFlowCommand=iN(mY),Wo.talkToRecsDeselectCommand=iN(oF),Wo.talkToRecsNextCommand=iN(DX),Wo.talkToRecsSelectCommand=iN(zc),Wo.talkToRecsUpdateTextCommand=iN(YJ),Wo.toggleEngagementPanelCommand=iN(Ir),Wo.undoFeedbackEndpoint=iN(Yt),Wo.updateEngagementPanelContentCommand=iN(p5),Wo.updateUrlParamCommand=iN(t$),Wo.verifyCommand=iN(sI),
Wo.webSubmitFormCommand=iN(SJ),Wo.ACK_PLAYABLES_3P_DATA_CONSENT=iN(eJ),Wo.CANCEL_NAVIGATION=iN(wA),Wo.COPY_SHARE_URL=iN(q_),Wo.MINI_APP_EXIT_DIALOG_SEEN=iN(jg),Wo.MINI_APP_OPEN_URL=iN(kt),Wo.REQUEST_MINI_APP_FULLSCREEN=iN(yg),Wo.RESUME_NAVIGATION=iN(Wf),Wo.SHARE_PLAYABLE_WITH_HIGH_SCORE=iN(cf),Wo.TELL_US_WHY=iN(zz),Wo);_.O("web_enable_prefetching_videos_on_home")&&(lPH.prefetchWatchCommand=iN(jY),lPH.registerTasksCommand=iN(Qr));
_.O("enable_share_panel_navigation_logging_fix_on_web")&&(lPH.shareEntityServiceEndpoint=iN(gA));var kp3=Object.assign({},lPH);var E7H={},NrZ=(E7H.initialized={priority:10,callback:Zz1},E7H);var IPQ={},p7Q=(IPQ.initialized={callback:function(y){var W={},c={};wwE().install((W.document_disposed={callback:function(){_.O("finalize_all_timelines")?jYH():N2();CPD("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Dsw();var Z=y.injector.resolve(Wb);Z.intervalId!==void 0&&(Z.intervalId&&_.KX.cancelJob(Z.intervalId),Z.intervalId=void 0,--Z.currentPartitionIndex,Z=LF3(Z),Z>0&&HA8({mainAppWeb:_.Jq(),survivalSli:{partitionMinute:Z,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));pjJ(Pv);JA!=null&&
JA.flush();qW&&qW.snapshotAndFlush()}},W),(c.flush_logs={callback:function(){_.KD()}},c))}},IPQ);var Plf={},J6S=(Plf.rendered={priority:0,callback:function(){var y=new UPJ;y.increment("STARTED");if(_.Nn("LOGGED_IN")&&_.Nn("SERVER_VERSION")!=="test"&&_.Nn("SERVER_VERSION")!=="dev"&&!DH8()&&!oQW()){y.increment("EXECUTING");var W=document.createElement("iframe");W.style.display="none";_.a3D(W,2,_.Jn("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(W);y.increment("DONE")}}},Plf);var V5Z={},Clg=(V5Z.rendered={callback:function(){dQ3().resume()}},V5Z);var QS9={acknowledgeChannelTouStrikeCommand:Kx(xJ),addToPlaylistServiceEndpoint:Kx(SR),addToPlaylistEndpoint:Kx(SR),addUpcomingEventReminderEndpoint:Kx(DB),browseEndpoint:Kx(grH),channelCreationFormEndpoint:Kx(Hf),channelCreationServiceEndpoint:Kx(LV),claimLegacyYoutubeChannelEndpoint:Kx(lQ),clearSearchHistoryEndpoint:Kx(jR),clearWatchHistoryEndpoint:Kx(yZ),commerceActionCommand:Oe(nC),createBackstagePostEndpoint:Kx(UJ),createBroadcastCommand:Kx(zT),createCommentEndpoint:Kx(Qg),createCommentReplyEndpoint:Kx(CV),
createLiveChatPollEndpoint:Kx(Yu),createPlaylistServiceEndpoint:Kx(TT),crossAccountChannelTransferEndpoint:Kx(ZB),deleteLiveChatMessageCommand:Kx(mU),deletePlaylistEndpoint:Kx(am),deleteVideoEndpoint:Kx(oa),dismissalEndpoint:Kx(iQ),feedbackEndpoint:Kx(MS),flagEndpoint:Kx(qN),getAccountSwitcherEndpoint:Kx(cw),verifyCommand:Kx(FN),getAccountsListInnertubeEndpoint:Kx(fm),getCommentsFromInboxCommand:Kx(l2),getDownloadActionCommand:Kx(VZ),getFlowCommand:Oe(kJ),getKidsBlocklistPickerCommand:Kx(ku),getNotificationMenuEndpoint:Kx(Er9),
getPaymentInstrumentsParamsCommand:Kx($q),getPaymentsClientTokenCommand:Oe(nC),getPdgBuyFlowCommand:Kx(vw),getReportFormEndpoint:Kx(jn),getSearchInVideoCommand:Kx(cx),getAnswerCommand:Kx(Wx),getSurveyCommand:Kx(fC),getTranscriptEndpoint:Kx(Yq),getPostVideoPreviewEndpoint:Kx(KV),decorateMessageEndpoint:Kx($J),likeEndpoint:Kx(vf),liveChatActionEndpoint:Kx(nm),liveChatEndpoint:Kx(tw),liveChatItemContextMenuEndpoint:Kx(s5),liveChatPurchaseMessageEndpoint:Kx(X9),liveChatReplayEndpoint:Kx(u2),manageLiveChatUserEndpoint:Kx(rW),
metadataUpdateCommand:Kx(gW),moderateLiveChatEndpoint:Kx(F9),modifyChannelNotificationPreferenceEndpoint:Kx(pm),notificationOptOutEndpoint:Kx(Pw),openSuperStickerBuyFlowCommand:Kx(b2),performCommentActionEndpoint:Kx(Pf),playlistEditEndpoint:Kx(i2),playlistEditorEndpoint:Kx(xu),profileCardCommand:Kx(om),recordNotificationInteractionsEndpoint:Kx(Jw),reelWatchEndpoint:Kx(MN),refreshPanelEndpoint:Kx(QZ),removeUpcomingEventReminderEndpoint:Kx(U5),resolveLocationCommand:Kx(O5),revealBusinessEmailCommand:Kx(EJ),
searchEndpoint:Kx(_.NLQ),sendLiveChatMessageEndpoint:Kx($u),sendLiveChatVoteEndpoint:Kx(Km),setSettingEndpoint:Kx(dk),shareEntityServiceEndpoint:Oe(aF),sharingProviderDataCommand:Kx(GX),showEngagementPanelEndpoint:Kx(Aw),showMoreDrawerCommand:Kx(Bw),showSheetCommand:Kx(Hw),showDialogCommand:Kx(hw),subscribeEndpoint:Kx(Sg),transcriptSubmitCaptionCorrectionCommand:Kx(zX),undoFeedbackEndpoint:Kx(wk),unsubscribeEndpoint:Kx(Tc),updateBackstagePostEndpoint:Kx(gk),updateCommentEndpoint:Kx(h$),updateCommentReplyEndpoint:Kx(A$),
updateCommentsSettingsEndpoint:Kx(Bf),updateCreatorChannelInnertubeCommand:Kx(IF),updateKidsBlacklistEndpoint:Kx(yr),updateEngagementPanelContentCommand:Kx(Lm),updatePdgFeatureEnablementCommand:Kx(dW),updatedMetadataEndpoint:Kx(Rm),validateChannelHandleCommand:Kx(pV),updateChannelPageSettingsEndpoint:Kx(NS),verifyAgeEndpoint:Kx(qS),watchEndpoint:Oe(DM),whitelistEditEndpoint:Kx(tO),ypcCancelRecurrenceEndpoint:Kx(XL),ypcCompleteTransactionEndpoint:Kx(be),ypcFixInstrumentEndpoint:Kx(FL),ypcGetCartEndpoint:Kx(rE),
ypcGetOffersEndpoint:Kx(Uv),ypcHandleTransactionEndpoint:Oe(KC),ypcLogWalletAnalyticDataEndpoint:Kx(Ov),ypcOffersEndpoint:Kx(gE),ypcPauseSubscriptionCommand:Kx(Ra),ypcRedeemCodeEndpoint:Kx(le),ypcResumeSubscriptionCommand:Kx(Ev),ypcUpdateFopEndpoint:Kx(FL)},co={},A6d=(co.GET_ACCOUNT_MENU=Kx(GT),co.GET_NOTIFICATIONS_MENU=Kx(ldf),co.GET_NOTIFICATIONS_INBOX=Kx(E5),co.GET_UNSEEN_NOTIFICATION_COUNT=Kx(Im),co.GET_USER_MENTION_SUGGESTIONS=Kx(OJ),co.LOAD_GUIDE=Kx(RKB),co.SUBMIT_FEEDBACK=Kx(eg),co),Z5={},
heH=(Z5.CONTINUATION_REQUEST_TYPE_BROWSE=Kx(RF),Z5.CONTINUATION_REQUEST_TYPE_SEARCH=Kx(ZM),Z5.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Kx(sv),Z5.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Kx(Ww),Z5.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Kx(Vg),Z5.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Kx(J$),Z5.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Kx(wW),Z5.CONTINUATION_REQUEST_TYPE_GET_PANEL=Kx(Cm),Z5),BrZ={player:Oe(DM),watchNext:Kx(m0)},HRS={player:Oe(DM),reelItemWatch:Kx(MN),reelWatchSequence:Kx(eR)},
L99={watchEndpoint:Oe(ue)},v7D={commandEndpointMap:QS9,signalEndpointMap:A6d,continuationEndpointMap:heH,watchEndpointMap:BrZ,reelWatchEndpointMap:HRS,streamingEndpointMap:L99};var dCH,SAg,TrB,aP9={disableAllTransitions:(SAg=(dCH=window).matchMedia)==null?void 0:(TrB=SAg.call(dCH,"(prefers-reduced-motion: reduce)"))==null?void 0:TrB.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var xC9=new _.Sm("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.iR3=new _.Sm("VIEW_TRANSITION_MANAGER_TOKEN");var M5H=function(y){this.config=y;this.transitionTasksMap=new Map;y=_.z(y.transitionConfigs);for(var W=y.next();!W.done;W=y.next())W=_.z(W.value).next().value,this.transitionTasksMap.set(W,[])};
M5H[dq]=[xC9];var G_g={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 o8f=["videoPrimaryInfoRenderer","title"],DXF=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var eeH;eeH=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.w7S=_.Ax(function(y){y=_.V0(y,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var W=y.data,c=y.playlistData,Z=y.expanded,G=y.onExpandClick,D=y.isReadyToResume,Y=function(){var r;return!((r=c())==null||!r.contents)},u=function(){var r=c();
return r&&r.totalVideos&&r.currentIndex!==void 0?r.currentIndex+1+" / "+r.totalVideos:""};
y=_.j9(function(){_.Gm(_.U().resolve(_.Cy))});
var t=_.j9(function(){Y()&&G&&G()}),b={};
return _.X("ytd-miniplayer-info-bar",{class:_.Mi("ytdMiniplayerInfoBarHost",(b.ytdMiniplayerInfoBarHasPlaylistData=Y,b)),"on:click":t},_.X("div",{class:"ytdMiniplayerInfoBarContent"},_.X("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":y},_.X(_.Da,{text:function(){var r=W();var F=c();if(F==null?0:F.contents){var K;r=(K=_.nnH(F))==null?void 0:K.title}else r=r==null?void 0:r.miniplayerTitle;return Yw1(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.X("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.X("h1",null,_.X(_.Da,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var r=W();var F=c();r=D()?{simpleText:_.bN("CONTINUE_WATCHING",void 0,"Continue watching")}:(F==null?0:F.contents)?F.titleText:r==null?void 0:r.miniplayerSubtitle;return Yw1(r)},
noEndpoints:!0,ellipsisTruncate:!0})),_.X(_.YN,{cond:function(){return!!u()&&!D()},
then:function(){return _.X("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.X("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.X("span",null,u))}}),_.X(_.YN,{cond:D,
then:function(){return _.X(DI0,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:eeH})}}))),_.X(_.YN,{cond:Y,
then:function(){return _.X("div",{class:"ytdMiniplayerInfoBarExpand"},_.X(M8,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(r){G&&(G(),r.stopPropagation())}}},
iconName:function(){return Z()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Qd");var qAQ;qAQ=_.Ax(function(y){return _.X("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.X(M8,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:y.onTap}},
iconName:"yt-icons:close"}))},"Rd");
_.kj6=_.Ax(function(y){y=_.V0(y,{playabilityStatus:void 0,isDisabled:!1});var W=y.size,c=y.playabilityStatus,Z=y.isDisabled,G=_.HO();y=_.z(_.G9(void 0,void 0,"bJr0Se"));var D=y.next().value,Y=y.next().value;y=_.FP(_.YD);var u=!1,t=function(){return W().height<=0};
_.$k(function(){var K=W(),l=t(),N=D();N&&!l&&N.setInternalSize(K.width,K.height)});
_.Xl(function(){var K,l,N;return _.m(function(P){if(P.nextAddress==1){K=_.U().resolve(_.Cy);l=K.getPlayerElement();if(!K.isMiniplayerActive()||!l||!G.value)return P.return();l.appendTo(G.value);return _.n(P,l.getPlayerPromise(),2)}N=P.yieldResult;N.setSizeStyle(!1,!0);Y(N);_.F2(P)})});
_.KL(function(){b()});
_.$k(function(){var K=D();if(K)if(Z()){var l=K.getPlayerState();(u=l===-1||l===1||l===3)&&K.pauseVideo()}else b()});
var b=function(){if(u){u=!1;var K;(K=D())==null||K.playVideo()}},r=_.j9(function(){_.Gm(_.U().resolve(_.Cy))}),F={};
return _.X("ytd-miniplayer-player-container",{class:_.Mi("ytdMiniplayerPlayerContainerHost",(F.ytdMiniplayerPlayerContainerHidden=t,F.ytdMiniplayerPlayerContainerHostShortsPip=y,F)),style:_.cF({width:function(){return W().width+"px"},
height:function(){return W().height+"px"}})},_.X("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:G}),_.X(_.YN,{cond:function(){return!!c()&&!_.bhH(c())},
then:function(){return _.X(TsQ,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var K;return((K=c())==null?void 0:K.errorScreen)||null},
status:function(){var K;return((K=c())==null?void 0:K.status)||null}})}}),_.X(_.YN,{cond:Z,
then:function(){return _.X("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":r},_.X(qAQ,{onTap:function(){_.U().resolve(_.Cy).close()}}))}}))},"Sd");_.jlQ=_.Ax(function(y){var W=y.toastData;var c=_.HO();y=_.z(_.WF(function(){return!!W()}));
var Z=y.next().value,G=y.next().value;y=_.z(_.G9(!1,void 0,"xkrBze"));var D=y.next().value,Y=y.next().value,u=function(){var r;return _.v$((r=W())==null?void 0:r.data.title)};
_.rj(function(){_.P_.requestAvailability();W()&&G(!1)});
var t,b;_.$k(function(){Z()&&(_.Z2(c.value,"iron-announce",{text:W().label+" "+u()}),t&&_.KX.cancelJob(t),t=_.KX.addLowPriorityJob(function(){Y(!0)},2500))});
_.$k(function(){D()&&(b&&_.KX.cancelJob(b),b=_.KX.addLowPriorityJob(function(){G(!1);Y(!1)},300))});
y={};return _.X("ytd-miniplayer-toast",{el:c,class:_.Mi("ytdMiniplayerToastHost",(y.ytdMiniplayerToastOpening=function(){return Z()},y.ytdMiniplayerToastClosing=function(){return D()},y))},_.X(_.YN,{cond:function(){var r;
return(r=W())==null?void 0:r.data},
then:function(r){return _.X(Y6W,{className:"ytdMiniplayerToastThumbnail",data:r,width:78})}}),_.X("div",{class:"ytdMiniplayerToastInfo"},_.X("div",{class:"ytdMiniplayerToastLabel"},function(){var r;
return(r=W())==null?void 0:r.label}),_.X("div",{class:"ytdMiniplayerToastTitle"},u)))},"Td");var UXy;var g8I=new Set,OzH=null;var lwy=null;var Wh3=_.Ax(function(y){var W=y.progressState;var c=y.multiMarkersPlayerBarRenderer;var Z=y.progressBarWidth;var G=function(){return pdD(c())},D=function(){return VCF(W())},Y=function(){return Z()*(W().playedTime/W().videoDuration)};
return _.X("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.X(_.mC,{each:G},function(u,t){return _.X(yv6,{modifiedProps:D,chapters:G,index:t,playedProgressWidth:Y,backgroundGradientPosition:function(){var b=D(),r=G(),F=t(),K=Y();return(b.playedTime-Jd(_.g(r[F],PU)))/b.playedTime*K}})}))},"Ud"),yv6=_.Ax(function(y){var W=y.modifiedProps;
var c=y.chapters;var Z=y.index;var G=y.playedProgressWidth;var D=y.backgroundGradientPosition;y={};y=_.Mi("ytChapteredProgressBarChapteredPlayerBarChapter",(y.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Y().isScrubbing},y.ytChapteredProgressBarHoveredMacroMarker=function(){return Y().scrubberHovering},y.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Y().videoPosition==="seen"},y));
var Y=function(){return CHh(W(),c(),Z())},u=function(){var t=W();
var b=c(),r=Z();if(CHh(t,b,r).videoPosition!=="active")t=0;else{var F=Jd(_.g(b[r],PU));t=(t.playedTime-F)/((Jd(_.g(b[r+1],PU))||t.videoDuration)-F)}return t};
return _.X("div",{class:y,style:_.cF({width:function(){var t=W(),b=c(),r=Z(),F=_.g(b[r],PU);b=_.g(b[r+1],PU);return(b?Jd(b)-Jd(F):t.videoDuration-Jd(F))/t.videoDuration*100+"%"},
"background-color":function(){a:{var t=Y();switch(t.videoPosition){case "pending":t=t.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":t=t.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:t=""}}return t},
"background-size":function(){return(QpI(Y())?G():"")+"px"},
"background-position-x":function(){return(QpI(Y())?D():"")+"px"}})},_.X("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var t=W(),b=c(),r=Z();if(CHh(t,b,r).videoPosition==="seen")var F=0;else F=Jd(_.g(b[r],PU)),b=Jd(_.g(b[r+1],PU))||t.videoDuration,t=t.videoDuration*t.percentLoaded,F=b<=t?1:F>=t?0:(t-F)/(b-F);return"width: "+F*100+"%"}}),_.X("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.cF({width:function(){return u()*100+"%"},
"background-size":function(){return(QpI(Y(),u())?G():"")+"px"},
"background-position-x":function(){return(QpI(Y(),u())?D():"")+"px"}})}))},"Vd");var cvZ=function(y,W){W=W===void 0?JzV:W;var c,Z=[],G,D=!1;return function(){var Y=_.Cf.apply(0,arguments);if(D&&c===this&&W(Y,Z))return G;G=y.apply(this,Y);D=!0;c=this;Z=Y;return G}}(function(y){var W=y.heatMarkers,c=y.minHeightDp===void 0?0:y.minHeightDp,Z=y.maxHeightDp===void 0?60:y.maxHeightDp;
var G=G===void 0?!1:G;var D=1E3/W.length;y=[];y.push({x:0,y:100});for(var Y=0;Y<W.length;Y++){var u=void 0,t=((u=_.g(W[Y],w0i))==null?void 0:u.heatMarkerIntensityScoreNormalized)||0;u=(Y+.5)*D;t=100-_.IT(t*100,c/321*100,Z/321*100);Y!==0||G||y.push({x:0,y:t});y.push({x:u,y:t});Y===W.length-1&&y.push({x:1E3,y:t})}y.push({x:1E3,y:100});W="";for(c=0;c<y.length;c++)G=y[c],c===0?G="M "+G.x.toFixed(1)+","+G.y.toFixed(1):(Z=nff(y[c-1],y[c-2],G),D=nff(G,y[c-1],y[c+1],!0),G=" C "+(Z.x.toFixed(1)+","+Z.y.toFixed(1)+
" "+D.x.toFixed(1)+","+D.y.toFixed(1)+" "+G.x.toFixed(1)+","+G.y.toFixed(1))),W+=G;return W});var ZXZ=_.Ax(function(y){var W=y.progressBarProps;var c=y.config;var Z={};y=_.Mi("ytHeatSeekerHost",(Z.ytHeatSeekerHighContrast=y.highContrast,Z));var G=function(){return n8F(c().chapterData)};
return _.X("yt-progress-bar-heatseeker",{class:y,style:function(){var D;return"height: 320px; display: "+(W().isDragging&&((D=G())==null?0:D.heatMarkers)?"block":"none")}},_.X(_.YN,{cond:G,
then:function(D){return _.X(_.YN,{cond:function(){return D().heatMarkers},
then:function(){return _.X("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.X("path",{d:function(){return cvZ(D())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Wd");var GMQ=_.Ax(function(y){var W=y.progressBarProps;var c=y.config;y={};y=_.Mi("ytProgressBarLineProgressBarLine",(y.ytProgressBarLineProgressBarLineRounded=function(){return c().rounded},y.ytProgressBarLineProgressBarLineBottomInset=function(){return c().position===2},y));
return _.X("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.X("div",{class:y},_.X("div",{class:"ytProgressBarLineProgressBarBackground"}),_.X("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+W().percentLoaded*100+"%"}}),_.X("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Z=W();return"width: "+(Z.videoDuration?_.IT(Z.hoveredTime/Z.videoDuration,0,1):0)*100+"%"}}),_.X("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+spI(W())*100+"%"}})))},"Xd");
GMQ.idomCompat=!0;var fnd=_.Ax(function(y){var W=y.progressBarProps;var c=y.playheadData;var Z=y.interpolateDotPosition;var G=y.hidePlayhead;y={};var D=_.Mi("ytProgressBarPlayheadProgressBarPlayheadDot",(y.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return W().isDragging},y.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!W().isDragging&&G()},y));
return _.X("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.cF({"margin-left":function(){return u7a(W())*100+"%"},
transform:function(){return"translateX(-"+(Z()?u7a(W())*12:6)+"px)"}})},_.X(_.YN,{cond:function(){var Y;
return(Y=_.Jx(c)())==null?void 0:Y.playheadImage},
then:function(Y){var u={};return _.X("div",{class:_.Mi("ytProgressBarPlayheadProgressBarPlayheadCustom",(u.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return W().isDragging},u.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!W().isDragging&&G()},u)),
style:_.cF({"transform-origin":function(){return(Z()?u7a(W())*20:10)+"px center"}})},_.X(_.J3,{data:Y,
alt:"","aria-hidden":"true"}))},
else:function(){return _.X("div",{class:D,style:_.cF({"transform-origin":function(){return(Z()?u7a(W())*12:6)+"px center"}})})}}))},"Yd");
fnd.idomCompat=!0;var fK=function(y,W,c,Z,G,D){this.getProgressBarRect=y;this.updateProgressBarRect=W;this.getFilmstripYPosition=c;this.setFineScrubbingDraggedTime=Z;this.updateFilmStripDraggedYDistance=G;this.resetFilmStripYOffset=D;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.ig(this.onThrottledSeek,100,this)},o2d=function(y,W,c){return function(Z){y.handleClick(Z,W(),c())}},YWH=function(y,W){return function(c){DVH(y,
c,z$6(c),W())}},mV6=function(y,W){return function(c){DVH(y,c,{x:c.clientX,
y:c.clientY},W())}},uD9=function(y,W,c){return function(Z){var G=W(),D=c();
slQ(y,Z,z$6(Z),G,D,!0);if(D.onTouchMove)D.onTouchMove(G)}},n2B=function(y,W,c){return function(Z){tSQ(y,Z,W(),c())}},XnH=function(y,W){return function(){y.handleMouseLeave(W())}},bXQ=function(y,W,c){return function(){var Z=W(),G=c();
oC(y,Z,G);if(G.onTouchEnd)G.onTouchEnd(Z)}},rvZ=function(y,W,c){return function(){var Z=W(),G=c();
oC(y,Z,G);if(G.onTouchEnd)G.onTouchEnd(Z)}},FhH=function(y,W,c){return function(){oC(y,W(),c())}},UVH=function(y,W,c){return function(Z){!c().disableScrubbing&&y.startPosition&&tSQ(y,Z,W(),c())}},$V6=function(y,W,c){return function(){if(!c().disableScrubbing)if(y.startPosition){var Z=W(),G=c();
oC(y,W(),c());if(G.onTouchEnd)G.onTouchEnd(Z)}else W().setState({isDragging:!1})}},z$6=function(y){y=y.touches[0];
return{x:y.clientX,y:y.clientY}},tSQ=function(y,W,c,Z){if(W.buttons!==1){if(W.movementX||W.movementY)W.preventDefault(),W.stopPropagation(),y=KhQ(y,c,W.clientX),c.setState({isHovering:!0,
hoveredTime:y*c.videoDuration})}else OXQ(c),slQ(y,W,{x:W.clientX,y:W.clientY},c,Z,!1)};
fK.prototype.handleMouseLeave=function(y){OXQ(y)};
var OXQ=function(y){y.isHovering&&y.setState({isHovering:!1,hoveredTime:0})},DVH=function(y,W,c,Z){y.startPosition||(y.startPosition=c,y.updateProgressBarRect(),y.controlsWereVisibleBeforeDragging=Z.controlsVisible,W.stopPropagation(),_.O("medium_progress_bar_modification")||W.preventDefault())},slQ=function(y,W,c,Z,G,D){if(y.startPosition)if(D&&G.isInlinePlayback&&y.startPosition&&!y.hasDraggedTheMinimumDistance&&Math.abs(c.y-y.startPosition.y)>Math.abs(c.x-y.startPosition.x))oC(y,Z,G);
else if(W.preventDefault(),W.stopPropagation(),Z.videoDuration&&(y.startPosition&&!y.hasDraggedTheMinimumDistance&&(y.hasDraggedTheMinimumDistance=Math.abs(c.x-y.startPosition.x)>=1),G.enableFineScrubbing&&(y.startPosition&&(y.isDraggedForFineScrubbing=-(c.y-y.startPosition.y)>=60),!y.startPosition||c.y>=y.startPosition.y||(Z.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:A8I(Z.draggedTime,Z,G.chapterData)}),y.setFineScrubbingDraggedTime(Z.draggedTime),y.updateFilmStripDraggedYDistance(y.startPosition.y,
c.y,Z))),y.hasDraggedTheMinimumDistance)){W=KhQ(y,Z,c.x);if(y.isDraggedForFineScrubbing){var Y;(Y=Z.playerApi)==null||Y.pauseVideo();Z.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Z.draggedTime,filmStripXDistance:A8I(W*Z.videoDuration,Z,G.chapterData)})}!(Y=!G.enableFineScrubbing)&&(Y=G.enableFineScrubbing)&&(Y=!(y.getFilmstripYPosition(Z)<68));Y&&Z.setState({draggedTime:W*Z.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:y.controlsWereVisibleBeforeDragging});
var u;(u=G.cancelAutohideControlsFn)==null||u.call(G)}},oC=function(y,W,c){var Z=c.enableFineScrubbing&&W.fineScrubbingActiveState!=="off";
if(W.isDragging||Z){Z={isDragging:!1,playedTime:W.draggedTime,controlsVisible:y.controlsWereVisibleBeforeDragging};c.enableFineScrubbing&&W.fineScrubbingActiveState!=="on"&&(y.resetFilmStripYOffset(),Z.fineScrubbingActiveState="off");var G=G===void 0?lwy:G;var D=_.NR(0);D&&G&&_.TG(D,G,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(W.playedTime*1E3),endMediaTimeMs:Math.round(W.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});W.setState(Z);
y.seekThrottle.fire(W.draggedTime,W,7);_.O("mweb_new_progress_bar_play_on_seek")&&y.resumeVideo(W);c.unmuteOnSeek&&(c=W.playerApi,W.volumeMuted&&(c==null||c.unMute()))}else W.setState({controlsVisible:!W.controlsVisible}),(D=c.triggerAutohideControlsAfterDelayFn)==null||D.call(c);y.startPosition=null;y.hasDraggedTheMinimumDistance=!1;y.isDraggedForFineScrubbing=!1;y.controlsWereVisibleBeforeDragging=!1};
fK.prototype.handleClick=function(y,W,c){this.updateProgressBarRect();y.stopPropagation();y=KhQ(this,W,y.clientX)*W.videoDuration;W.setState({playedTime:y});if(W.playerState!==2){var Z;(Z=c.triggerAutohideControlsAfterDelayFn)==null||Z.call(c)}this.seekThrottle.fire(y,W,7)};
var KhQ=function(y,W,c){y=y.getProgressBarRect(W);return _.IT(0,(c-y.left)/y.width,1)};
fK.prototype.resumeVideo=function(y){if(y.draggedTime<y.videoDuration){var W;(W=y.playerApi)==null||W.playVideo()}};
fK.prototype.onThrottledSeek=function(y,W,c){if(W=W.playerApi){var Z;if((Z=W.getVideoData())==null?0:Z.isLive)Z=this.getProgressState(W),y+=(Z==null?void 0:Z.seekableStart)||0;W.seekTo(y,void 0,void 0,void 0,c)}};
fK.prototype.getProgressState=function(y){var W=y==null?void 0:y.getPresentingPlayerType();return y==null?void 0:y.getProgressState(W)};var lnQ,R$H,E2D,InH,g2d,pn9,Pz6,Jv3,VSZ;lnQ=_.Ax(function(y){var W=y.progressBarProps;var c=y.config;var Z=y.progressBarWidthPx;var G=y.chapterData;var D=v8y(W,function(){return c().isShortsPage}),Y=function(){return!W().isHovering&&!c().isShortsPage};
y={};var u=_.Mi("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(y.ytPlayerStoryboardHostMwebShorts=function(){return c().isShortsPage&&!1},y));
return _.X("yt-player-storyboard",null,_.X(_.YN,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.X(_.YN,{cond:D,then:function(t){return _.X(_.YN,{cond:Y,then:function(){return _.X("div",{class:u,"aria-hidden":"true"},_.X(g2d,{props:W,config:c,isBigboard:!0,chapterData:G}))},
else:function(){return _.X(R$H,{props:W,frame:t,config:c,progressBarWidthPx:Z,chapterData:G})}})}})}}))},"Zd");
_.NXZ=_.Ax(function(y){var W=y.progressBarProps;var c=v8y(W,y.isShortsPage);return _.X("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.X(_.YN,{cond:function(){return W().isDragging||W().isHovering},
then:function(){return _.X(_.YN,{cond:c,then:function(Z){return _.X(E2D,{frame:Z,props:W,isBigboard:!0})}})}}))},"$d");
R$H=_.Ax(function(y){var W=y.props;var c=y.frame;var Z=y.config;var G=y.progressBarWidthPx;y=y.chapterData;var D={};D=_.Mi("ytPlayerStoryboardHost",(D.ytPlayerStoryboardHostMwebShorts=function(){return Z().isShortsPage&&!1},D.ytPlayerStoryboardHostInlinePlayer=function(){return Z().isInlinePlayer},D.ytPlayerStoryboardHostFadeIn=function(){return Z().useFadeInAnimation},D));
return _.X("div",{class:D,"aria-hidden":"true",style:function(){var Y=W(),u=hBE(c()),t=G();Y=BBa(Y)/Y.videoDuration;var b=t*Y,r=u/2+6;u=t-(u/2+6);return"left: "+(b<=r?r/t*100:b>=u?u/t*100:Y*100)+"%"}},_.X(_.YN,{cond:function(){var Y=W();
return!(Z().isShortsPage&&Y.videoDuration<15)},
then:function(){return _.X(E2D,{frame:c,props:W,isBigboard:!1})}}),_.X(g2d,{props:W,
config:Z,isBigboard:!1,chapterData:y}))},"ae");
E2D=_.Ax(function(y){var W=y.frame;var c=y.props;var Z=y.isBigboard;var G=function(){var u,t;return(t=(u=c().playerApi)==null?void 0:u.getVideoContentRect())!=null?t:{width:0,height:0}},D=function(){return hBE(W())},Y=function(){var u=W();
return u?u.height/u.rows:0};
y={};y=_.Mi((y.ytPlayerStoryboardBigboardImageWrapper=Z,y.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Z()},y));
return _.X("div",{class:y,style:function(){return"width: "+(Z()?G().width:D())+"px; height: "+(Z()?G().height:Y())+"px;"}},_.X(InH,{frame:W,
storyboardWidth:D,storyboardHeight:Y,storyboardScale:function(){return(Z()?G().width:D())/D()}}))},"be");
InH=_.Ax(function(y){var W=y.frame;var c=y.storyboardWidth;var Z=y.storyboardHeight;var G=y.storyboardScale;var D=function(){var Y=W().row,u=W().column,t=c(),b=Z(),r=G();return{left:-u*t*r,top:-Y*b*r}};
return _.X("img",{src:function(){return W().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+D().left+"px; top: "+D().top+"px; width: "+W().width*G()+"px; height: "+W().height*G()+"px;"}})},"ce");
g2d=_.Ax(function(y){var W=y.props;var c=y.config;var Z=y.isBigboard;var G=y.chapterData;y={};y=_.Mi("ytPlayerStoryboardMetadata",(y.ytPlayerStoryboardMetadataBigboard=Z,y));return _.X("div",{class:y},_.X(_.YN,{cond:Z,then:function(){return _.X(_.a2,null,_.X(pn9,{props:W,config:c}),_.X(_.YN,{cond:function(){a:{var D=W();var Y=c(),u=G(),t;if((Y==null?0:Y.activeChapter)&&((t=_.g(Y==null?void 0:Y.activeChapter,PU))==null?0:t.title))D=!0;else{Y=_.z(XdF(u));for(Y=Y.next();!Y.done;Y=Y.next()){D=(Y=_.g(Y.value,
kRQ))&&HzH(D,Y);break a}D=!1}}return D},
then:function(){return _.X(Pz6,{props:W,config:c,isBigboard:!0,chapterData:G})}}))},
else:function(){return _.X(_.a2,null,_.X(Pz6,{props:W,config:c,isBigboard:!0,chapterData:G}),_.X(pn9,{props:W,config:c}))}}))},"de");
pn9=_.Ax(function(y){var W=y.props;var c=y.config;y={};y=_.Mi("ytPlayerStoryboardTimestamp",(y.ytPlayerStoryboardTimestampShorts=function(){return c().isShortsPage},y.ytPlayerStoryboardTimestampIsHovering=function(){return W().isHovering||c().isShortsPage&&!0},y));
return _.X("div",{class:y},_.X(_.a2,null,function(){return _.L5E(BBa(W()))}))},"ee");
Pz6=_.Ax(function(y){var W=y.props;var c=y.config;var Z=y.isBigboard;var G=y.chapterData;y={};Z=_.Mi("ytPlayerStoryboardTitle",(y.ytPlayerStoryboardTitleBigboard=Z,y));return _.X("div",{class:Z},_.X(_.YN,{cond:function(){return!c().isShortsPage},
then:function(){return _.X(Jv3,{props:W,activeChapter:function(){return c().activeChapter},
chapterData:G})}}))},"fe");
Jv3=_.Ax(function(y){var W=y.props;var c=y.activeChapter;var Z=y.chapterData;return _.X(_.a2,null,_.X(_.mC,{each:function(){return XdF(Z())},
keyBy:"INDEX"},function(G){return _.X(_.a2,null,_.X(_.YN,{cond:function(){return _.g(G(),kRQ)&&HzH(W(),_.g(G(),kRQ))},
then:function(){return _.X(VSZ,{timedMarker:function(){return _.g(G(),kRQ)}})}}))}),_.X(_.YN,{cond:function(){var G;
return c()&&((G=_.g(c(),PU))==null?void 0:G.title)},
then:function(G){return _.X(_.Da,{text:G,noPreWrap:!0})}}))},"ge");
VSZ=_.Ax(function(y){var W=y.timedMarker;return _.X(_.a2,null,_.X("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.X(_.Gb,{icon:function(){return W().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.X(_.Da,{text:function(){return W().label},
noPreWrap:!0}))},"he");_.Cz3=_.Ax(function(y){var W=y.progressBarProps;var c=y.playheadData;var Z=y.config;y=_.HO();var G=_.HO(),D=_.HO(),Y=_.z(_.G9({width:0,left:0},void 0,"v323Dc")),u=Y.next().value,t=Y.next().value,b=function(){D.value&&t(D.value.getBoundingClientRect())},r=function(){u().width<=0&&b();
return u()};
as("resize",b);var F=new fK(r,function(){},function(){return 0},function(){},function(){},function(){}),K=function(){return W()};
Y=_.z(_.G9(!1,void 0,"tcVkKf"));var l=Y.next().value,N=Y.next().value;_.vO(G,"mouseenter",function(){N(!0);Z().position===2?setTimeout(function(){b()},100):b()});
_.vO(G,"mouseleave",function(){N(!1);XnH(F,K)()});
Y=_.j9(function(Py){Z().doSeekOnClick&&o2d(F,K,Z)(Py);return!1});
var P=_.j9(function(Py){YWH(F,K)(Py);return!1}),V=_.j9(function(Py){mV6(F,K)(Py);
return!1}),Q=_.j9(function(Py){uD9(F,K,Z)(Py);
return!1}),S=_.j9(function(Py){n2B(F,K,Z)(Py);
return!1}),cy=_.j9(function(){bXQ(F,K,Z)();
return!1}),M=_.j9(function(){rvZ(F,K,Z)();
return!1}),fa=_.j9(function(){FhH(F,K,Z)();
return!1});
as("mousemove",UVH(F,K,Z));as("mouseup",$V6(F,K,Z));_.rj(function(){E8O(G.value);N(!1);b();$V6(F,K,Z)()});
var jI={};jI=_.Mi("ytPlayerProgressBarHost",function(){return Z().className},(jI.ytPlayerProgressBarHostReadOnly=function(){return Z().disableScrubbing},jI.ytPlayerProgressBarHostHidden=function(){return Z().hideProgressBar&&!l()},jI.ytPlayerProgressBarHostLowerPlayer=function(){return Z().position===0},jI.ytPlayerProgressBarHostBottomEdge=function(){return Z().position===1},jI.ytPlayerProgressBarHostBottomInset=function(){return Z().position===2},jI.ytPlayerProgressBarHostCustom=function(){return Z().position===
3},jI));
var sD={},ED=_.Mi("ytPlayerProgressBarBackground",(sD.ytPlayerProgressBarBackgroundHide=function(){return Z().position===2&&!l()&&!W().isDragging},sD));
sD={};sD=_.Mi("ytPlayerProgressBarDragContainer",(sD.ytPlayerProgressBarDragContainerBottomEdge=function(){return Z().position===1},sD));
var N1={};N1=_.Mi("ytPlayerProgressBarProgressBar",(N1.ytPlayerProgressBarProgressBarInset=function(){return Z().position===2},N1.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Z().position===2&&!l()&&!W().isDragging},N1));
var bf=function(){return Math.floor(spI(W())*100)};
return _.X("yt-progress-bar",{el:y,class:jI},_.X(_.YN,{cond:function(){return Z().position===2},
then:function(){return _.X("div",{class:ED})}}),_.X("div",{el:G,
"on:click":Y,"on:touchstart":P,"on:mousedown":V,"on:touchmove":Q,"on:mousemove":S,"on:touchend":cy,"on:mouseup":M,"on:touchcancel":fa,class:sD,role:"slider","aria-valuenow":bf,"aria-valuetext":function(){return bf()+"%"},
tabindex:0,"aria-label":_.bN("SEEK_SLIDER")},_.X("div",{el:D,class:N1},_.X(ZXZ,{progressBarProps:W,config:Z,highContrast:function(){return!!Z().isInlinePlayback}}),_.X(_.YN,{cond:function(){return Z().chapterData&&bza(Z().chapterData)},
then:function(){return _.X(Wh3,{progressState:W,multiMarkersPlayerBarRenderer:function(){return Z().chapterData},
progressBarWidth:function(){return u().width}})},
else:function(){return _.X(GMQ,{progressBarProps:W,config:Z})}}),_.X(fnd,{progressBarProps:W,
playheadData:c,interpolateDotPosition:function(){return Z().position!==2},
hidePlayhead:function(){return Z().playheadDotBehavior===1&&!l()}}))),_.X(lnQ,{progressBarProps:W,
config:function(){return{activeChapter:J8w(W(),Z().chapterData),getProgressBarWidthPx:function(){return r().width},
isShortsPage:!!Z().isShortsPage,isInlinePlayer:!!Z().isInlinePlayback,useFadeInAnimation:!!Z().isInlinePlayback}},
progressBarWidthPx:function(){return u().width},
chapterData:function(){return Z().chapterData}}))},"ie");
_.Cz3.idomCompat=!0;Object.assign({},_.r8a(),{setState:function(){},
domMeasurements:{},appApi:_.mXO(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var QlB;
_.Avd=_.Ax(function(){var y,W=(y=_.VQ(dXt().playerApi))!=null?y:void 0;y=_.z(_.G9(!1,void 0,"HLFBmb"));var c=y.next().value,Z=y.next().value;y=_.z(_.G9(!1,void 0,"lHH9bc"));var G=y.next().value,D=y.next().value;y=_.z(_.G9(!1,void 0,"zsY7yd"));var Y=y.next().value,u=y.next().value;y=_.z(_.G9(!1,void 0,"KeHQgc"));var t=y.next().value,b=y.next().value;y=_.z(_.G9(0,void 0,"gLLCj"));var r=y.next().value,F=y.next().value;y=_.z(_.G9(0,void 0,"s3RYkf"));var K=y.next().value,l=y.next().value;y=_.z(_.G9(!1,void 0,
"Dn608e"));var N=y.next().value,P=y.next().value;y=_.z(_.G9(0,void 0,"AnkH1b"));var V=y.next().value,Q=y.next().value;y=_.z(_.G9(0,void 0,"QYNL0b"));var S=y.next().value,cy=y.next().value;y=_.z(_.G9("",void 0,"Yzw45d"));var M=y.next().value,fa=y.next().value;y=_.z(_.G9(-1,void 0,"iiVI0c"));var jI=y.next().value,sD=y.next().value,ED=_.Yk(function(){var N1={controlsVisible:c(),isOverlayHidden:G(),shouldWaitToHideControls:Y(),isDragging:t(),isHovering:N(),videoDuration:V(),playedTime:S(),videoId:M(),
draggedTime:K(),hoveredTime:r(),playerState:jI()};return Object.assign({},_.r8a(),N1,{domMeasurements:{},setState:function(bf){bf.controlsVisible!==void 0&&Z(bf.controlsVisible);bf.isOverlayHidden!==void 0&&D(bf.isOverlayHidden);bf.shouldWaitToHideControls!==void 0&&u(bf.shouldWaitToHideControls);bf.isDragging!==void 0&&b(bf.isDragging);bf.isHovering!==void 0&&P(bf.isHovering);bf.draggedTime!==void 0&&l(bf.draggedTime);bf.hoveredTime!==void 0&&F(bf.hoveredTime);bf.videoDuration!==void 0&&Q(bf.videoDuration);
bf.playedTime!==void 0&&cy(bf.playedTime);bf.videoId!==void 0&&fa(bf.videoId);bf.playerState!==void 0&&sD(bf.playerState)},
appApi:_.mXO(),playerApi:W})},void 0,"ZW7y9");
_.Xl(function(){W==null||W.addEventListener("onVideoProgress",K5I(ED));W==null||W.addEventListener("onVideoDataChange",$XH(ED));W==null||W.addEventListener("onStateChange",F5H(ED))});
_.KL(function(){if(W==null?0:W.isReady())W==null||W.removeEventListener("onVideoProgress",K5I(ED)),W==null||W.removeEventListener("onVideoDataChange",$XH(ED)),W==null||W.removeEventListener("onStateChange",F5H(ED))});
return _.X("desktop-shorts-player-controls",null,_.X(QlB,{playerControlsProps:ED}))},"je");
QlB=_.Ax(function(y){var W=y.playerControlsProps;return _.X("div",{class:"desktopShortsPlayerControlsWizHost"},_.X(_.Cz3,{progressBarProps:W,config:function(){return{isShortsPage:!0,hideProgressBar:W().videoDuration<30&&W().playerState!==2&&!W().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ke");_.eu(_.izE);_.h$6=_.Ax(function(y){var W=y.data;return _.X("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.X(_.oL,{command:function(){return W().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.X(_.YN,{cond:function(){return W().iconName},
then:function(c){return _.X(_.Gb,{icon:c})}}),_.X("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return W().text}),_.X(_.YN,{cond:function(){return W().showEndChevron},
then:function(){return _.X(_.Gb,{icon:"CHEVRON_RIGHT"})}})))},"le");var BXQ=_.Ax(function(y){var W=y.data;var c=y.overlayDensity;y={};return _.X("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.X(_.bg,{data:function(){return W().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Z){var G=Z.data;
return _.X(_.gx,{data:function(){if((c==null?void 0:c())===1){var D=Object;var Y=D.assign,u=G();var t={avatarViewModel:Object.assign({},_.g(G().avatar,_.hz),{avatarImageSize:"AVATAR_SIZE_48"})};D=Y.call(D,{},u,{avatar:t})}else D=G();return D}})}}),_.X(_.Da,{className:_.Mi("ytReelChannelBarViewModelChannelName",(y.ytReelChannelBarViewModelChannelNameLarge=function(){return(c==null?void 0:c())===1},y)),
text:function(){return W().channelName},
linkInheritColor:!0,userInput:!0}),_.X("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.X(_.bg,{data:function(){return W().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Z){var G=Z.data;
return _.X(irV,{data:function(){return(c==null?void 0:c())===1?Object.assign({},G(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},G().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):G()},
isOverlay:!1})},
buttonViewModel:_.OV})),_.X("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.X(_.bg,{data:function(){var Z,G;return(G=_.g((Z=W())==null?void 0:Z.sponsorButtonViewModel,pv3))==null?void 0:G.sponsorButton}},{buttonViewModel:function(Z){return _.X(_.OV,{data:Z.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"me");var HXQ=_.Ax(function(y){var W={};return _.X("yt-reel-multi-format-link-view-model",{class:_.Mi("ytReelMultiFormatLinkViewModelHost",(W.ytReelMultiFormatLinkViewModelHostTall=!0,W.ytReelMultiFormatLinkViewModelHostLarge=function(){var c;return((c=y.overlayDensity)==null?void 0:c.call(y))===1},W))},_.X(_.oL,{ariaLabel:function(){return y.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.UH(y.data().command)},
dangerousStopPropagation:!1},_.X("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.X(_.YN,{cond:function(){return y.data().icon},
then:function(c){return _.X(_.J3,{data:c,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.X(_.Da,{text:function(){return y.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ne");
HXQ.idomCompat=!0;var LhQ=_.Ax(function(y){var W=y.data;var c=_.HO();y=_.z(_.G9(!1,void 0,"XwMNzb"));var Z=y.next().value,G=y.next().value;y=_.z(_.G9(!1,void 0,"ZysOx"));var D=y.next().value,Y=y.next().value,u=function(){return W().isMultiLineSa},t=_.Zx(Etw,function(){var Q,S;
return(S=(Q=W().toggleableContent)==null?void 0:Q.entityKey)!=null?S:""}),b=function(){var Q,S,cy;
return(cy=W().toggleableContent)!=null&&cy.entityKey?(S=(Q=t())==null?void 0:Q.value)!=null?S:!1:!1},r=function(){var Q,S,cy,M,fa,jI,sD,ED,N1,bf,Py;
return W().toggleableContent?b()?(Q=W().toggleableContent)==null?void 0:Q.toggledData:(S=W().toggleableContent)==null?void 0:S.untoggledData:{primaryText:(ED=(cy=W().defaultContent)==null?void 0:cy.primaryText)!=null?ED:W().text,secondaryText:(M=W().defaultContent)==null?void 0:M.secondaryText,onTapCommand:(N1=(fa=W().defaultContent)==null?void 0:fa.onTapCommand)!=null?N1:W().onTapCommand,icon:(bf=(jI=W().defaultContent)==null?void 0:jI.icon)!=null?bf:W().icon,image:(Py=(sD=W().defaultContent)==null?
void 0:sD.image)!=null?Py:W().image}},F=function(){return u()?W().trailingTapTarget:void 0};
y=function(Q,S){return function(){return Z()?S:Q}};
var K={leadingSection:y("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:y("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:y("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:y("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};y={};y=_.Mi((y.ytShortsSuggestedActionViewModelStaticHost=function(){return!u()},y.ytShortsSuggestedActionViewModelDynamicHost=u,y.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return u()&&D()},y.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return u()&&!D()},y));
_.rj(function(){if(u()){var Q=0,S;if((S=W().animationParams)==null?0:S.shouldExpand){var cy,M;Q=((M=(cy=W().animationParams)==null?void 0:cy.expansionDelaySecs)!=null?M:0)*1E3}var fa,jI=((fa=W().animationParams)==null?0:fa.shouldExpand)?setTimeout(function(){G(!0)},Q):void 0,sD,ED;
Q=((sD=W().animationParams)==null?0:sD.visibilityDelaySecs)?((ED=W().animationParams)==null?NaN:ED.visibilityDelaySecs)*1E3:0;var N1=setTimeout(function(){Y(!0)},Q);
_.KL(function(){jI&&clearTimeout(jI);clearTimeout(N1)})}});
var l=function(Q){_.OH(Q,Object.assign({},{form:{element:c.value}}))},N=_.j9(function(){var Q,S=(Q=r())==null?void 0:Q.onTapCommand;
S&&l(S)}),P=_.j9(function(){var Q,S;
if(Q=(S=F())==null?void 0:S.onTapCommand)return l(Q),!1}),V=_.cF({"vertical-align":"bottom",
"border-radius":function(){var Q;return u()?((Q=W().defaultContent)==null?0:Q.isCircleImage)?"50%":"4px":"0px"},
width:function(){var Q,S,cy;return u()&&((Q=W().defaultContent)==null?0:Q.imageSize)?((cy=(S=W().defaultContent)==null?void 0:S.imageSize)!=null?cy:24)+"px":null},
height:function(){var Q,S,cy;return u()&&((Q=W().defaultContent)==null?0:Q.imageSize)?((cy=(S=W().defaultContent)==null?void 0:S.imageSize)!=null?cy:24)+"px":null}});
return _.X("yt-shorts-suggested-action-view-model",{class:y,el:c},_.X("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.X("button",{class:_.Mi(function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var Q;
return(Q=W().useFullRoundedBorder)!=null&&Q?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!F()&&u()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":u()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var Q;
return(Q=W().disableFixedHeight)!=null&&Q?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":N},_.X(_.zb,{model:{color:4}}),_.X("div",{class:_.Mi(function(){return u()?K.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.X(_.YN,{cond:function(){var Q;
return(Q=r())==null?void 0:Q.image},
then:function(Q){return _.X(_.J3,{data:Q,alt:"",className:function(){return u()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:V})}}),_.X(_.YN,{cond:function(){var Q,S;
return(Q=r())==null?void 0:(S=Q.icon)==null?void 0:S.iconType},
then:function(Q){return _.X(_.Gb,{icon:Q,active:b,className:function(){return u()?Z()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.X("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.X(_.YN,{cond:function(){var Q;
return(Q=r())==null?void 0:Q.primaryText},
then:function(Q){return _.X("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.X(_.Da,{text:Q}))}}),_.X(_.YN,{cond:function(){var Q;
return(Q=r())==null?void 0:Q.secondaryText},
then:function(Q){return _.X("div",{class:K.secondaryText},_.X(_.Da,{text:Q}))}}))),_.X(_.YN,{cond:F,
then:function(Q){return _.X("div",{class:K.trailingSection,"aria-label":function(){var S;return(S=Q().a11yLabel)!=null?S:""},
"on:click":P,role:"button",tabindex:0},_.X(_.zb,{model:{color:4}}),_.X(_.Gb,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"oe");var v2H=_.Ax(function(y){var W=y.data;var c=y.overlayDensity;var Z=_.HO();y=_.j9(function(Y){if(_.Fkw(_.N8(Y),Z.value,["A".toString()]))return!1;(Y=W().truncatedTextOnTapCommand)&&_.OH(Y);return!1});
var G={},D={};return _.X("yt-shorts-video-title-view-model",{el:Z,class:_.Mi("ytShortsVideoTitleViewModelHost",(G.ytShortsVideoTitleViewModelHostClickable=function(){return!!W().truncatedTextOnTapCommand},G)),
"on:click":y},_.X("h2",{class:_.Mi("ytShortsVideoTitleViewModelShortsVideoTitle",(D.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(c==null?void 0:c())===1},D))},_.X(_.Da,{text:function(){return W().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"pe");_.dV6=_.Ax(function(y){var W=y.data;var c=y.overlayDensity;return _.X("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.X(_.bg,{data:function(){return W().metadataItems}},{badgeViewModel:function(Z){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(_.j7,{data:Z.data}))},
playerDisclosureViewModel:function(Z){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(_.h$6,{data:Z.data}))},
shortsSuggestedActionViewModel:function(Z){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(LhQ,{data:Z.data}))},
reelChannelBarViewModel:function(Z){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(BXQ,{data:Z.data,overlayDensity:c}))},
reelMultiFormatLinkViewModel:function(Z){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(HXQ,{data:Z.data,overlayDensity:c}))},
shortsVideoTitleViewModel:function(Z){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(v2H,{data:Z.data,overlayDensity:c}))},
reelSoundMetadataViewModel:function(Z){return _.X("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.X(_.qN3,{data:Z.data,overlayDensity:c}))}}))},"qe");var SWZ=_.Ax(function(y){var W=_.V0(y,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),c=W.size,Z=W.onTap,G=W.disabled,D=W.tooltipText;return _.X("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.X(M8,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:c(),disabled:G(),tooltipText:D(),onTap:Z}},
iconName:y.iconType}))},"re"),TX6=_.Ax(function(y){function W(r){r.stopPropagation();
r.code==="ArrowUp"?(r.preventDefault(),qwa(u.value)):r.code==="ArrowDown"?(r.preventDefault(),k_H(u.value)):r.code==="KeyM"?eBa():(r.code==="KeyK"||r.code==="Space")&&wdH(t())}
var c=_.V0(y,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});y=c.previousButtonDisabled;var Z=c.nextButtonDisabled,G=c.data,D=c.playabilityStatus,Y=c.previewThumbnail,u=_.HO(),t=_.FP(_.JIO),b;_.Xl(function(){(b=_.Pu(u.value))&&b.addEventListener("keydown",W)});
_.KL(function(){var r;(r=b)==null||r.removeEventListener("keydown",W)});
c=function(){var r,F,K;return(r=G())==null?void 0:(F=r.reelPlayerOverlayRenderer)==null?void 0:(K=F.likeButton)==null?void 0:K.likeButtonRenderer};
return _.X("ytd-shorts-miniplayer-overlay",{el:u,class:"ytdShortsMiniplayerOverlayHost"},_.X("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.cF({"background-image":function(){var r=Y();return r?'url("'+_.Bh(r.thumbnails)+'")':""}})}),_.X("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.X("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.X(SWZ,{iconType:function(){var r=t();
return r===2||r===-1||r===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){wdH(t())},
tooltipText:function(){var r=t();return r===1||r===3?_.bN("PLAYER_LABEL_PAUSE"):_.bN("PLAYER_LABEL_PLAY")}}),_.X(_.izE,null)),_.X("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.X(SWZ,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:y,onTap:function(){qwa(u.value)},
tooltipText:_.bN("PREVIOUS_VIDEO_LABEL")}),_.X(SWZ,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Z,onTap:function(){k_H(u.value)},
tooltipText:_.bN("NEXT_VIDEO_LABEL")}),_.O("web_shorts_pip_like_button")?_.X("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.X(Kp9,{buttonTooltipPosition:"left",data:c,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.X("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.X(_.YN,{cond:function(){var r,F;return _.g((r=G())==null?void 0:(F=r.reelPlayerOverlayRenderer)==null?void 0:F.metapanel,
lu0)},
then:function(r){return _.X("div",{class:_.Mi("ytdShortsMiniplayerOverlayInteractive")},_.X(_.dV6,{data:r}))}})),_.X("div",{class:_.Mi("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var r;return!((r=G())==null||!r.adsOverlay)||D()&&!Xct(D())}},_.X("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.X(_.Avd,null)))),_.X(_.YN,{cond:function(){var r=G(),F,K;
r=_.g(r==null?void 0:(F=r.adsOverlay)==null?void 0:(K=F.fulfillmentContent)==null?void 0:K.fulfilledLayout,YpZ);return _.g(r==null?void 0:r.renderingContent,npW)},
then:function(r){return _.X("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.X(tWZ,{data:r}))}}))},"se");var jyO=_.Ax(function(){var y=_.z(_.G9(new _.nP(NaN,NaN),void 0,"dCf7yb")),W=y.next().value,c=y.next().value;y=_.z(_.G9(!1,void 0,"smJHAc"));var Z=y.next().value,G=y.next().value,D=_.z(_.G9(!1,void 0,"HnqDAc"));y=D.next().value;var Y=D.next().value,u=_.U().resolve(_.Cy).miniplayerPropSignalMap[0],t=u.data,b=u.shortsData,r=u.nextButtonDisabled,F=u.shortsPreviewThumbnail,K=u.previousButtonDisabled,l=u.externalPlaylistData;D=u.toastData;var N=u.playabilityStatus,P=u.isDisabled;u=_.FP(_.YD);_.BO("yt-pip-window-resized",
function(cy){c(cy)});
_.BO("yt-activate-pip-miniplayer",function(){return _.m(function(cy){Y(!0);_.F2(cy)})});
var V=function(){var cy;return!((cy=l())==null||!cy.contents)&&Z()},Q=function(){var cy=W(),M=!!t(),fa=V();
cy=cy.clone();M&&(cy.height-=76);fa&&(cy.height-=285);return cy},S=function(){G(!Z())};
return _.X("ytd-pip-container",{class:"ytdPipContainerHost"},_.X(_.YN,{cond:y,then:function(){return _.X(_.kj6,{isDisabled:P,playabilityStatus:N,size:Q})}}),_.X(_.YN,{cond:t,
then:function(){return _.X(_.w7S,{data:t,expanded:Z,onExpandClick:S,playlistData:l})}}),_.X(_.YN,{cond:V,
then:function(){return _.X("div",{class:"ytdPipContainerPlaylistPanel"},_.X(_.UoH,{data:l,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.X(_.YN,{cond:u,
then:function(){return _.X(TX6,{data:b,nextButtonDisabled:r,previousButtonDisabled:K,playabilityStatus:N,previewThumbnail:F})}}),_.X("div",{class:"ytdPipContainerToast"},_.X(_.jlQ,{toastData:D})))},"te");var D5=function(y,W){var c=this;this.pipController=y;this.JSC$16302_clientRoot=W;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=fww();this.watchPipEnabled=_.O("web_watch_pip");this.shortsPipEnabled=_.O("web_shorts_pip");this.JSC$16302_watchWhileEnabled=_.O("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;_.ot(_.Sv(),_.NFI,function(Z){c.isSingleOptionSurveyActive=Z});
this.JSC$16302_onPlayerPlayVideo=this.JSC$16302_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);_.Ac(_.Q8.getInstance(),this.miniplayerServiceActionMap,this.JSC$16302_clientRoot);window.documentPictureInPicture&&_.II()&&_.$g("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},y_2,ycQ,wnQ,Ws6,Y4V,cc3,ZD6,G5Z,kM6;
D5.prototype.handleMediaSessionPipActivation=function(){var y=this,W;return _.m(function(c){_.GR().mediaSessionPipActivation=!0;W=_.U().resolve(_.h7);return W.isOnWatch()&&y.watchPipEnabled?(_.GR().watchPipActivation=!0,_.anH(y,W.data),c.jumpTo(0)):W.isOnShorts()&&y.shortsPipEnabled?(_.GR().shortsPipActivation=!0,_.xV9(y),c.jumpTo(0)):y.isMiniplayerActive()&&y.watchPipEnabled&&!y.watchWhileMode?_.n(c,iX6(y),0):c.jumpTo(0)})};
var iX6=function(y){var W,c,Z,G;return _.m(function(D){if(D.nextAddress==1)return W=!y.miniplayerToPipMode,c=y.playerElement,Z=y.miniplayerData,G=y.watchResponse,_.n(D,y.deactivate(),2);if(D.nextAddress!=3)return W?(_.GR().mediaSessionPipActivation=!0,_.GR().watchPipActivation=!0):_.GR().miniplayerButtonActivation=!0,_.n(D,y.activate(c,Z,G),3);y.miniplayerToPipMode=W;_.F2(D)})};
D5.prototype.onDownloadedVideoDeleted=function(y){var W,c=_.g((W=this.miniplayerData)==null?void 0:W.watchEndpoint,_.Sb),Z,G;c&&((Z=this.watchResponse)==null?void 0:(G=Z.playerResponse)==null?void 0:G.offlineState)!==void 0&&(W=c.videoId)&&y&&W===y&&this.close()};
D5.prototype.onShowMiniplayerCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F,K,l,N;return _.m(function(P){switch(P.nextAddress){case 1:return c=_.g(y,reQ),G=(Z=c)==null?void 0:Z.miniplayerCommand,D=_.g(G,_.Sb),G&&D&&!W.active?_.n(P,_.tI.getInstance(),2):P.return();case 2:return Y=P.yieldResult,_.n(P,(u=Y)==null?void 0:u.get("yt-miniplayer-shown-video-id"),3);case 3:t=P.yieldResult;b=D.videoId;if(!b||t===b)return P.return();r=_.U().resolve(_.h7);if(r.isOnWatch())return _.Rs(Error("Cj")),P.return();
F={channelItem:{externalId:btoa(b)}};W.readyToResumeVe=_.se(121253,void 0,void 0,F);_.GR().showMiniplayerCommandActivation=!0;return _.n(P,_.mj8(W,G,!0),4);case 4:return W.active?(_.zm(W,{readyToResumeVe:W.readyToResumeVe,continueWatching:!0,premiumBranding:!((K=c)==null||!K.showPremiumBranding)}),W.isReadyToResume=!0):_.zm(W,{continueWatching:!0,premiumBranding:!((l=c)==null||!l.showPremiumBranding)}),_.O("ytd_miniplayer_to_wiz")&&_.zm(W,{isReadyToResume:!0}),_.n(P,(N=Y)==null?void 0:N.set("yt-miniplayer-shown-video-id",
D.videoId),5);case 5:W.readyToResumeVe=void 0,_.F2(P)}})};
D5.prototype.init=function(y){this.miniplayerEl?_.Rs(new _.ul("MiniplayerService already initialized.")):this.miniplayerEl=y};
D5.prototype.isInitialized=function(){var y=!!this.miniplayerEl;y||_.Rs(new _.ul("MiniplayerService used before initialized."));return y};
_.anH=function(y,W){if(y.isInitialized()){var c=_.zBa(W.response,W.playerResponse),Z=_.U().resolve(_.h7).getPlayerFromWatch();_.GR().currentEndpoint=c.watchEndpoint||null;y.activate(Z,c,W)}};
_.xV9=function(y){if(y.isInitialized()){var W=_.U().resolve(_.h7).getPlayerFromShorts();y.activate(W)}};
y_2=function(y,W){var c;(c=!y.isInitialized())||(c=_.U().resolve(_.h7).isOnWatch()&&y.watchPipMode,c=!(y.isMiniplayerActive()&&(_.GR().userActivation||_.GR().lockupActivation||c)));if(c)return!1;MS6(y,W)?_.Gm(y):Y4V(y,W);return y.watchPipMode?!_.U().resolve(_.h7).isOnWatch():!0};
D5.prototype.isMiniplayerActive=function(){return this.active};
var MS6=function(y,W){var c;W=(c=_.g(W,_.Sb))==null?void 0:c.videoId;var Z,G;y=(G=_.g((Z=y.miniplayerData)==null?void 0:Z.watchEndpoint,_.Sb))==null?void 0:G.videoId;return W!=null&&W===y};
D5.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Z2(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.GG(this.miniplayerEl,"yt-navigate-home-action"))};
_.mj8=function(y,W,c,Z){c=c===void 0?!1:c;var G,D,Y;return _.m(function(u){switch(u.nextAddress){case 1:if(y.active){u.jumpTo(2);break}G=_.U().resolve(_.h7);if(Y=(D=y.playerElement)!=null?D:G.getPlayerFromWatch()){u.jumpTo(3);break}return _.n(u,_.U().resolve(_.Tb),4);case 4:Y=G.getPlayerFromWatch();case 3:if(!Y){_.Rs(Error("Ej"));u.jumpTo(2);break}return _.n(u,y.activate(Y,Z),2);case 2:return y.active?_.n(u,Y4V(y,W,c),0):u.return()}})};
D5.prototype.activate=function(y,W,c){var Z=this,G,D,Y,u,t,b,r,F;return _.m(function(K){switch(K.nextAddress){case 1:if(!Z.isInitialized())return K.return();if(!y)return _.Rs(Error("Ej")),K.return();if(_.DlV()||Z.isMiniplayerActive())var l=!0;else l=_.GR().watchPipActivation||_.GR().watchWhileActivation,_.U().resolve(_.h7).isOnWatch()&&!l?(_.Rs(new _.ul("miniplayer activated on watch page")),l=!0):l=_.GR().watchWhileActivation&&Z.userDeactivatedWatchWhile?!0:!1;if(l)return oZm(),K.return();G=_.GR().mediaSessionPipActivation;
D=_.GR().shortsPipActivation;Y=_.GR().watchPipActivation;t=(u=_.GR().watchWhileActivation)||Y;b=Y||D;if(!Z.pictureInPictureEnabled()||!b){K.jumpTo(2);break}return _.n(K,e$9(Z,G),3);case 3:if(!K.yieldResult)return _.Rs(Error("Dj")),oZm(),K.return();case 2:return Z.setActive(!0),Z.watchResponse=c,Z.playerElement=y,Z.updateMiniplayerData(W),_.n(K,wnQ(Z,y),4);case 4:if(!Z.active)return _.Rs(new _.ul("miniplayer deactivated during activation")),Z.removePlayerListeners(),K.return();l=_.U().resolve(_.EU);
l.addEventListener("yt-navigate",_.qO(Z,Z.onPlaylistNavigate));l.addEventListener("yt-playlist-data-updated",_.qO(Z,Z.JSC$16302_onPlaylistDataUpdated));Z.JSC$16302_onPlaylistDataUpdated();oZm();Z.JSC$16302_watchWhileEnabled&&_.qWD(Z,u);Z.pictureInPictureEnabled()&&Z.shortsPipEnabled&&(Z.shortsPipMode=D,_.Sv().dispatch(xlE(Z.shortsPipMode)));Z.pictureInPictureEnabled()&&Z.watchPipEnabled&&(Z.watchPipMode=Y);Z.player&&(r=Z.player.getPlayerState(),F=r===1,_.Sv().dispatch(W2Z(r)),_.fl(Z.miniplayerEl,
"yt-miniplayer-play-state-changed",[F]),_.GR().isVideoPlaying=F);Z.watchPipEnabled&&_.kNw(Z.handleMediaSessionPipActivation);_.fl(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");kM6(Z);_.js3(Z);return Z.shortsPipMode||Z.watchPipMode?_.n(K,_.oP(Z.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.O("ytd_miniplayer_to_wiz")?_.n(K,_.oP(Z.miniplayerEl,"yt-activate-miniplayer",[t]),6):_.n(K,_.oP(Z.miniplayerEl,"yt-activate-miniplayer-action",[y,t]),6);case 6:ycQ(Z),Ws6(Z,!0),_.F2(K)}})};
D5.prototype.updateMiniplayerData=function(y){this.miniplayerData=y;_.zm(this,{data:y})};
_.js3=function(y){var W,c,Z=((W=y.miniplayerData)==null?void 0:(c=W.miniplayerRenderer)==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";W=y.watchWhileMode||y.watchPipMode?Z&&!_.U().resolve(_.h7).isOnWatch():Z;_.zm(y,{isDisabled:W});var G,D;c=_.g((G=y.miniplayerData)==null?void 0:(D=G.miniplayerRenderer)==null?void 0:D.minimizedEndpoint,_.bX);W&&c&&_.U().resolve(_.bc).openSheet({openPopupActionCommand:{openPopupAction:c}},y.miniplayerEl)};
ycQ=function(y){if(y.watchResponse&&(!y.watchWhileMode||!_.O("kevlar_watch_while_counterfactual"))){var W,c=(W=y.watchResponse.playerResponse)==null?void 0:W.trackingParams;c&&(_.zm(y,{expandVe:_.se(35989),closeVe:_.se(34699),readyToResumeCloseVe:_.se(131070),repositionVe:_.se(226204),resizeVe:_.se(226205)}),_.zm(y,{playerVe:_.Dz(c)}))}};
wnQ=function(y,W){return _.m(function(c){if(c.nextAddress==1)return W.preparePlayer(),_.n(c,W.getPlayerPromise(),2);y.player=c.yieldResult;y.player&&(y.player.addEventListener("onPlayVideo",y.JSC$16302_onPlayerPlayVideo),y.player.addEventListener("onCloseMiniplayer",y.onPlayerCloseMiniplayer),y.player.addEventListener("onExpandMiniplayer",y.onPlayerExpandMiniplayer),y.player.addEventListener("onStateChange",y.onPlayerStateChange));_.F2(c)})};
_.f=D5.prototype;_.f.JSC$16302_onPlayerPlayVideo=function(y){var W=y.sessionData&&"autonav"in y.sessionData,c;y.sessionData&&y.sessionData.itct&&(c=y.sessionData.itct);var Z=y.watchEndpoint;W=Z&&W?_.C2H(Z,c):_.eG(y.videoId,y.listId||void 0,c);y.sessionData&&_.wz(_.g(W.commandMetadata,_.kT).url,y.sessionData);Y4V(this,W)};
_.f.onPlayerExpandMiniplayer=function(){_.Gm(this)};
_.f.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.f.onPlayerStateChange=function(){if(this.player){var y=this.player.getPlayerState(),W=y===1;_.Sv().dispatch(W2Z(y));_.Sv().dispatch(_.ZeZ(y));_.fl(this.miniplayerEl,"yt-miniplayer-play-state-changed",[W]);_.GR().isVideoPlaying=W;if(y===0){W=!_.LF.getInstance().isAutoplaySetExplicitly();var c,Z,G,D,Y,u,t=(c=this.watchResponse.response)==null?void 0:(Z=c.contents)==null?void 0:(G=Z.twoColumnWatchNextResults)==null?void 0:(D=G.autoplay)==null?void 0:(Y=D.autoplay)==null?void 0:(u=Y.autoplayExplicitChoiceDialogRenderer)==
null?void 0:u.confirmDialogRenderer;W&&t&&this.player.setAutonavState(1)}y===0&&this.watchWhileMode&&this.deactivate()}};
_.f.onPlaylistNavigate=function(y,W){var c=this,Z,G,D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1){if(!_.g(W.endpoint,_.Sb))return r.return();_.GR().currentEndpoint=W.endpoint;_.fl(c.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.U().resolve(_.h7).isOnWatch()&&(c.watchWhileMode||c.watchPipMode))return r.return();y.stopPropagation();(D=(G=_.g((Z=W.endpoint)==null?void 0:Z.commandMetadata,_.kT))==null?void 0:G.url)&&W.tempData&&!_.Eb.isEmpty(W.tempData)&&_.wz(D,W.tempData);Y={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};u=new fWE(function(){return c.getPlayerElement()},Y,{layer:3});
t=function(F){u.processChunk({endpoint:W.endpoint,data:F})};
cc3(c);c.miniplayerFetchRequest=ZD6(c,W.endpoint,t);_.tm(r,2);return _.n(r,c.miniplayerFetchRequest,4)}if(r.nextAddress!=2)return b=r.yieldResult,G5Z(c,b),_.J6(r,0);_.rs(r);_.F2(r)})};
_.f.JSC$16302_onPlaylistDataUpdated=function(){var y=_.U().resolve(_.EU).getPlaylistData();this.hasPlaylistData=!!y;_.zm(this,{externalPlaylistData:y||{}})};
_.f.close=function(y){if(this.isInitialized())if(y){if(!((this.watchWhileMode||this.watchPipMode)&&_.U().resolve(_.h7).isOnWatch()||this.shortsPipMode)){var W;(W=this.getPlayerElement())==null||W.stop()}this.deactivate()}else _.JI().closeMiniplayer(this.miniplayerEl)};
_.f.deactivate=function(y){var W=this,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1){if(!W.isInitialized()||!W.active)return Y.return();W.setActive(!1);cc3(W);(c=!!y&&MS6(W,y))&&W.isSingleOptionSurveyActive&&_.GG(W.miniplayerEl,"yt-show-watch-page-survey",[W.isSingleOptionSurveyActive]);return _.n(Y,fJD(W),2)}if(Y.nextAddress!=3){Ws6(W,!1);W.isReadyToResume=!1;W.watchResponse=void 0;W.updateMiniplayerData(void 0);W.shortsPipMode&&(W.shortsPipMode=!1,_.Sv().dispatch(xlE(W.shortsPipMode)),P7B(W.pipController),
(Z=W.player)==null||Z.setInternalSize(NaN,NaN));W.watchPipMode&&(W.watchPipMode=!1,P7B(W.pipController));(G=W.watchWhileMode)&&_.qWD(W,!1);W.removePlayerListeners();var u=_.U().resolve(_.EU);u.removeEventListener("yt-navigate",_.qO(W,W.onPlaylistNavigate));u.removeEventListener("yt-playlist-data-updated",_.qO(W,W.JSC$16302_onPlaylistDataUpdated));_.GR().currentEndpoint=null;_.fl(W.miniplayerEl,"yt-miniplayer-endpoint-changed");W.playerElement=null;oZm();return W.shortsPipMode||W.watchPipMode?Y.jumpTo(3):
_.n(Y,_.oP(W.miniplayerEl,_.O("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[c,G]),3)}(D=W.player)==null||D.setInternalSize(NaN,NaN);W.player=null;_.F2(Y)})};
var fJD=function(y){var W;return _.m(function(c){W=_.U().resolve(_.h7);return y.shortsPipMode?_.n(c,W.movePlayerToShorts(y.playerElement),0):_.n(c,W.movePlayerToWatch(y.playerElement),0)})};
D5.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16302_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
D5.prototype.setActive=function(y){this.active=y;this.isSingleOptionSurveyActive?_.GG(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.GG(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Sv().dispatch(_.jv({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.qWD=function(y,W){y.watchWhileMode=W;_.zm(y,{watchWhile:W})};
Ws6=function(y,W){if(y.shortsPipMode||y.watchPipMode){var c;(c=y.player)==null||c.setDocumentPictureInPicture(W)}else{var Z;(Z=y.player)==null||Z.setMinimized(W)}};
_.Gm=function(y){var W;return _.m(function(c){switch(c.nextAddress){case 1:if(!y.isInitialized())return c.return();_.tm(c,2);return _.n(c,y.miniplayerFetchRequest,4);case 4:_.J6(c,3);break;case 2:_.rs(c);case 3:y.watchResponse&&y.miniplayerData&&y.miniplayerData.watchEndpoint?(W={url:y.watchResponse.url,endpoint:y.miniplayerData.watchEndpoint,data:y.watchResponse,miniplayer:!0},_.Z2(y.miniplayerEl,"yt-navigate-cache",W)):y.miniplayerData&&y.miniplayerData.watchEndpoint&&_.Z2(y.miniplayerEl,"yt-navigate",
{endpoint:y.miniplayerData.watchEndpoint}),_.F2(c)}})};
Y4V=function(y,W,c){var Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1){if(MS6(y,W))return u.return();_.GR().currentEndpoint=W;_.fl(y.miniplayerEl,"yt-miniplayer-endpoint-changed");_.fl(y.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.GR().isVideoPlaying=!1;Z={clientParams:{miniplayer:!0,autoSaveToQueue:!c}};G=new fWE(function(){return y.getPlayerElement()},Z,{layer:3,
parentLayer:0},void 0,y.readyToResumeVe);D=function(t){var b,r,F=Object.assign({},(b=t.playerResponse)==null?void 0:(r=b.playerConfig)==null?void 0:r.playbackStartConfig,{startPaused:!0}),K;c&&((K=t.playerResponse)==null?0:K.playerConfig)&&(t.playerResponse.playerConfig.playbackStartConfig=F);G.processChunk({endpoint:W,data:t})};
cc3(y);y.miniplayerFetchRequest=ZD6(y,W,D);_.tm(u,2);return _.n(u,y.miniplayerFetchRequest,4)}if(u.nextAddress!=2)return Y=u.yieldResult,G5Z(y,Y),_.J6(u,0);_.rs(u);_.F2(u)})};
cc3=function(y){y.miniplayerFetchRequest&&(y.miniplayerFetchRequest.cancel&&y.miniplayerFetchRequest.cancel("Active request obsolete"),y.miniplayerFetchRequest=null)};
ZD6=function(y,W,c){var Z=_.wF.instance,G,D=(G=_.g(W.commandMetadata,_.kT))==null?void 0:G.url,Y;G=!D||_.O("disable_miniplayer_tempdata")?{}:(Y=Wxh(D))!=null?Y:{};return hd(Z,W,G,window.location.href,"watch",function(u,t){c(t)},function(u){return u!==y.miniplayerFetchRequest})};
G5Z=function(y,W){var c;_.m(function(Z){if(!W)return Z.return();y.watchResponse=W;ycQ(y);kM6(y);c=_.zBa(W.response,W.playerResponse);if(y.isMiniplayerActive()){W.response&&(y.playerElement.watchNextData=W.response);var G=_.Eb.getValueByKeys.apply(_.Eb,[W].concat(_.No(XLQ)));_.Eb.getValueByKeys.apply(_.Eb,[W].concat(_.No($B5)))&&G&&_.U().resolve(_.EU).setAutoplayRenderer(G);if(G)if(_.O("kevlar_is_pupi_enabled")){var D,Y,u,t,b,r=((D=W.response)==null?0:(Y=D.playerOverlays)==null?0:(u=Y.playerOverlayRenderer)==
null?0:(t=u.autonavToggle)==null?0:(b=t.autoplaySwitchButtonRenderer)==null?0:b.enabled)?2:1;_.LF.getInstance().setState(r,!1,!1)}else D=nK1()?2:1,(r=y.player)==null||r.setAutonavState(D);y.updateMiniplayerData(c);_.js3(y)}_.F2(Z)})};
kM6=function(y){var W,c,Z=(W=y.watchResponse)==null?void 0:(c=W.playerResponse)==null?void 0:c.playabilityStatus,G;W=Z==null?void 0:(G=Z.miniplayer)==null?void 0:G.miniplayerRenderer;(W==null?void 0:W.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&W.minimizedEndpoint&&_.D2(y.miniplayerEl,[W.minimizedEndpoint]);_.zm(y,{miniplayerRenderer:W,playabilityStatus:Z})};
D5.prototype.openToast=function(y,W){_.zm(this,{toastData:{data:y,label:W}})};
_.zm=function(y,W){var c=y.miniplayerEl,Z;for(Z in W)c[Z]=W[Z];(0,y.miniplayerPropSignalMap[1])(W)};
D5.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var y;return this.playerElement?this.playerElement:(y=_.p(this.miniplayerEl).querySelector("#player-container"))==null?void 0:y.firstElementChild};
var e$9=function(y,W){W=W===void 0?!1:W;var c,Z,G,D,Y,u,t;return _.m(function(b){if(b.nextAddress==1){c=navigator.userActivation.isActive||W;if(!c)return b.return(!1);Z=ogQ(y);G=Z.width;D=Z.height;return _.n(b,y.pipController.openWindow({width:G,height:D}),2)}Y=b.yieldResult;u=y.pipController.getWindow();if(!u||!Y)return b.return(!1);u.document.body.style.overflow="hidden";t=yia(u);JlH(y.pipController,function(){DF9(y);t()});
return b.return(!0)})},ogQ=function(y){var W=_.GR().shortsPipActivation,c,Z;
y=W?.5625:(Z=(c=y.player)==null?void 0:c.getVideoAspectRatio())!=null?Z:16/9;c=Math.min(window.innerWidth,window.innerHeight)/2;W=W?0:76;return y>1?new _.nP(c,W+c/y):new _.nP(c*y,W+c)},DF9=function(y){var W;
_.m(function(c){W=_.U().resolve(_.h7);return W.isOnWatch()&&y.watchPipMode||W.isOnShorts()&&y.shortsPipMode?_.n(c,y.deactivate(),0):y.miniplayerToPipMode?_.n(c,iX6(y),0):y.watchPipMode?_.n(c,_.Gm(y),0):c.jumpTo(0)})};
D5.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.II()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.dJ.Object.defineProperties(D5.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
D5[dq]=[VtH,pa6];var zXZ="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(" "),
YP6="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var mFS=null;var ssH={},ucH=(ssH.initialized={priority:10,callback:function(y){var W=_.U();W.addProvider({provide:vkZ,useClass:ILH});W.addProvider({provide:_.NjQ,useFactory:function(){return new dPE}});
W.addProvider({provide:Xu,useValue:_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});W.addProvider({provide:Sbg,useValue:5184E6});W.addProvider({provide:Zg6,useValue:_.gl()});W.addProvider({provide:ttB,useClass:wm2});W.addProvider({provide:LW,useClass:LW});W.addProvider({provide:_.Tb,useFactory:function(){return MaZ.promise}});
W.addProvider({provide:_.wbQ,useFactory:function(){return _.epJ.promise}});
W.addProvider({provide:_.e9,useValue:function(){var u;return((u=_.HF())==null?void 0:u.getPlayer())||null}});
var c={};W.addProvider((c.provide=_.Ia,c.useFactory=function(u,t){return function(){return V1I(u,t)}},c[dq]=[Xu,
Sbg],c));c={};W.addProvider((c.provide=_.q6,c.useClass=PCQ,c[dq]=[Xu,Sbg],c));c={};W.addProvider((c.provide=_.nwg,c.useClass=QeH,c[dq]=[_.q6],c));W.addProvider({provide:or,useFactory:_.Sv});W.addProvider({provide:fy,useFactory:_.Sv});W.addProvider({provide:bL6,useFactory:_.Sv});W.addProvider({provide:$Ti,useFactory:_.Sv});W.addProvider({provide:_.Fq,useFactory:_.Sv});W.addProvider({provide:eH,useValue:_.zx});W.addProvider({provide:Oj9,useClass:tdw});W.addProvider({provide:OPQ,useClass:KVd});W.addProvider({provide:nC,
useClass:nC});W.addProvider({provide:DM,useClass:DM});W.addProvider({provide:m0,useClass:m0});W.addProvider({provide:ue,useClass:ue});W.addProvider({provide:KC,useClass:KC});W.addProvider({provide:kJ,useClass:kJ});W.addProvider({provide:aF,useClass:aF});W.addProvider({provide:roS,useValue:v7D});W.addProvider({provide:_.oZ,useFactory:_.Zz});W.addProvider({provide:wu9,useFactory:_.Uc});c={};W.addProvider((c.provide=Mf1,c.useFactory=function(u){return function(t){var b=b===void 0?{}:b;var r,F,K=(F=_.g((r=
t.endpoint)==null?void 0:r.commandMetadata,_.kT))==null?void 0:F.rootVe;if(K){var l,N;if(r=t.previousCsn||((N=_.g((l=t.endpoint)==null?void 0:l.commandMetadata,auV))==null?void 0:N.parentCsn)){var P=P===void 0?{}:P;if(r!==_.NR(P.layer)||K!==DDy(P.layer))upF(r,P.cttAuthInfo,P.layer||0),fYh(r,P.layer||0),l=P.layer||0,_.l1(ojD(l===void 0?0:l),K);b.parentCsn=r}t.endpoint&&r?x6Z(u,t.endpoint,b):_.wR(u,K,void 0,b);var V;((V=t.response)==null?0:V.trackingParams)&&u.graftServerVe(t.response.trackingParams);
var Q;((Q=t.playerResponse)==null?0:Q.trackingParams)&&u.graftServerVe(t.playerResponse.trackingParams);var S;((S=t.reelWatchSequenceResponse)==null?0:S.trackingParams)&&u.graftServerVe(t.reelWatchSequenceResponse.trackingParams)}}},c[dq]=[_.oZ],c));
c={};W.addProvider((c.provide=FTQ,c.useClass=rlQ,c[dq]=[eH,_.Fq],c));c={};W.addProvider((c.provide=LC,c.useClass=LC,c[dq]=[_.Tb,_.Fq],c));c={};W.addProvider((c.provide=AO,c.useClass=AO,c[dq]=[fy,_.i1],c));W.addProvider({provide:_.Ry9,useClass:Q29});c={};W.addProvider((c.provide=_.Xi,c.useClass=NVg,c[dq]=[_.Ry9],c));W.addProvider({provide:_.bc,useClass:Sn});W.addProvider({provide:_.rN,useClass:vx});c={};W.addProvider((c.provide=_.L5,c.useClass=C76,c[dq]=[_.L5],c));_.O("web_enable_voting_animation")&&
W.addProvider({provide:_.VG,useClass:nyB});W.addProvider({provide:sI,useClass:sI});W.addProvider({provide:rA,useClass:rA});W.addProvider({provide:Rr,useClass:dE});c={};W.addProvider((c.provide=N_,c.useClass=N_,c[dq]=[_.bc,Rr],c));_.O("web_enable_feedback_endpoint_resolver")&&(c={},W.addProvider((c.provide=DC,c.useClass=DC,c[dq]=[or,f5],c)),W.addProvider({provide:f5,useClass:AS9}));_.O("web_enable_feedback_endpoint_resolver_batch_2")&&(c={},W.addProvider((c.provide=Yt,c.useClass=Yt,c[dq]=[or],c)),
c={},W.addProvider((c.provide=zz,c.useClass=zz,c[dq]=[f5],c)));c={};W.addProvider((c.provide=lJ,c.useClass=lJ,c[dq]=[_.rN,Rr],c));c={};W.addProvider((c.provide=$t,c.useClass=$t,c[dq]=[_.rN],c));c={};W.addProvider((c.provide=EI,c.useClass=EI,c[dq]=[_.b0,_.Xi],c));c={};W.addProvider((c.provide=gA,c.useClass=gA,c[dq]=[_.b0,_.oZ],c));W.addProvider({provide:iJ,useClass:iJ});c={};W.addProvider((c.provide=SJ,c.useClass=SJ,c[dq]=[or],c));c={};W.addProvider((c.provide=oF,c.useClass=oF,c[dq]=[or],c));c={};
W.addProvider((c.provide=DX,c.useClass=DX,c[dq]=[_.b0,or],c));c={};W.addProvider((c.provide=zc,c.useClass=zc,c[dq]=[or],c));c={};W.addProvider((c.provide=YJ,c.useClass=YJ,c[dq]=[or],c));c={};W.addProvider((c.provide=K5,c.useClass=K5,c[dq]=[_.Xi],c));c={};W.addProvider((c.provide=q_,c.useClass=q_,c[dq]=[_.oZ],c));c={};W.addProvider((c.provide=ZX,c.useClass=ZX,c[dq]=[ar],c));c={};W.addProvider((c.provide=Gc,c.useClass=Gc,c[dq]=[ar],c));W.addProvider({provide:yg,useClass:yg});W.addProvider({provide:Wf,
useClass:Wf});W.addProvider({provide:wA,useClass:wA});c={};W.addProvider((c.provide=Ir,c.useClass=Ir,c[dq]=[_.Xi,_.i1],c));W.addProvider({provide:n5,useClass:n5});c={};W.addProvider((c.provide=OI,c.useClass=OI,c[dq]=[_.b0,_.Xi],c));W.addProvider({provide:Fu,useClass:Fu});c={};W.addProvider((c.provide=vY,c.useClass=vY,c[dq]=[or,_.b0,_.L5],c));c={};W.addProvider((c.provide=BY,c.useClass=BY,c[dq]=[_.b0,_.i1],c));W.addProvider({provide:fei,useValue:Mr1});W.addProvider({provide:XrI,useValue:c0O});W.addProvider({provide:HY,
useClass:HY});c={};W.addProvider((c.provide=h0,c.useClass=h0,c[dq]=[or],c));c={};W.addProvider((c.provide=dA,c.useClass=dA,c[dq]=[_.VG,_.i1],c));c={};W.addProvider((c.provide=mY,c.useClass=mY,c[dq]=[_.i1],c));W.addProvider({provide:Gz,useFactory:function(){return new Gz(_.Sv())}});
W.addProvider({provide:FwI,useFactory:_.PK.getInstance});c={};W.addProvider((c.provide=bJ,c.useClass=bJ,c[dq]=[Xu,FwI,_.i1],c));W.addProvider({provide:uJ,useClass:uJ});W.addProvider({provide:jJ,useClass:jJ});W.addProvider({provide:WY,useClass:WY});W.addProvider({provide:_.y6,useClass:_.y6});W.addProvider({provide:uQ,useClass:uQ});c={};W.addProvider((c.provide=C5,c.useClass=C5,c[dq]=[fy],c));c={};W.addProvider((c.provide=Q6,c.useClass=Q6,c[dq]=[_.i1],c));_.O("web_enable_prefetching_videos_on_home")&&
(W.addProvider({provide:Qr,useClass:Qr}),W.addProvider({provide:jY,useClass:jY}));c={};W.addProvider((c.provide=sJ,c.useClass=sJ,c[dq]=[_.i1],c));W.addProvider({provide:cY,useClass:cY});c={};W.addProvider((c.provide=M_,c.useClass=M_,c[dq]=[_.b0,_.i1],c));c={};W.addProvider((c.provide=ZC,c.useClass=ZC,c[dq]=[_.i1],c));W.addProvider({provide:yD,useClass:yD});W.addProvider({provide:J0,useClass:J0});c={};W.addProvider((c.provide=PY,c.useClass=PY,c[dq]=[fy,_.i1],c));c={};W.addProvider((c.provide=XN,c.useClass=
XN,c[dq]=[fy,_.i1,_.b0],c));c={};W.addProvider((c.provide=bQ,c.useClass=bQ,c[dq]=[_.i1],c));c={};W.addProvider((c.provide=nV,c.useClass=nV,c[dq]=[_.i1,_.b0],c));c={};W.addProvider((c.provide=A0,c.useClass=A0,c[dq]=[_.Tb],c));c={};W.addProvider((c.provide=V6,c.useClass=V6,c[dq]=[_.Tb],c));W.addProvider({provide:Tz,useClass:Tz});W.addProvider({provide:xt,useClass:xt});W.addProvider({provide:fV,useClass:fV});_.O("kevlar_enable_mss_lazy_load")&&W.addProvider({provide:_.Ad,useClass:DCZ});W.addProvider({provide:_.Mt,
useClass:aa});W.addProvider({provide:Hv,useFactory:function(){return _.Q8.getInstance()}});
W.addProvider({provide:nkS,useFactory:eLh});W.addProvider({provide:ar,useFactory:function(){return _.tI.getInstance()}});
W.addProvider({provide:vZE,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});c={};W.addProvider((c.provide=_.hO,c.useClass=_.hO,c[dq]=[_.Tb,_.i1,_.oZ,nkS,ar,Hv,vZE,eH],c));W.addProvider({provide:_.ANV,useClass:QC3});W.addProvider({provide:_.a_d,useClass:TQ6});c={};W.addProvider((c.provide=UI,c.useClass=UI,c[dq]=[_.a_d],c));c={};W.addProvider((c.provide=_.Bx,c.useFactory=function(u){return u.upliftCompletionResolver.promise},c[dq]=[FTQ],c));
c=_.I8("IS_SHELL_LOAD")?"aa":"eocs";var Z=_.I8("IS_SHELL_LOAD")?3:2;_.It().parkOrScheduleJob(function(){$PS()},Z,c);
_.It().parkOrScheduleJob(function(){_.U().resolve(LC).start()},2,"eocs");
_.It().parkOrScheduleJob(function(){Xa6()},2,"eocs");
_.It().parkOrScheduleJob(function(){_.U().resolve(AO).start()},2,"eocs");
_.O("kevlar_debug_data_app_registration_ks")||cOD();W.addProvider({provide:_.t7,useValue:new Rl9(y.root)});W.addProvider({provide:V8,useValue:new Cga});W.addProvider({provide:_.Vq6,useValue:new PRf(y.root)});W.addProvider({provide:_.tq,useValue:new Jm9});W.addProvider({provide:_.kP,useValue:new Gg(y.root)});W.addProvider({provide:VtH,useClass:TX});_.O("kevlar_network_sli_killswitch")||W.addProvider({provide:C13,useValue:EEJ});W.addProvider({provide:gNS,useFactory:IQH});_.O("web_bind_fetch")&&(c={},
W.addProvider((c.provide=RTZ,c.useFactory=pcg,c[dq]=[_.xN(gNS)],c)));_.O("web_bind_parse")&&(c={},W.addProvider((c.provide=lLZ,c.useFactory=PPH,c[dq]=[_.xN(gNS)],c)));_.O("web_bind_window_request")&&(c={},W.addProvider((c.provide=EN9,c.useFactory=JRH,c[dq]=[_.xN(gNS)],c)));c={};W.addProvider((c.provide=DQ6,c.useFactory=aQE,c[dq]=[_.Bx,or,_.Ia],c));c={};W.addProvider((c.provide=orS,c.useClass=rk,c[dq]=[DQ6],c));W.addProvider({provide:OgQ,useClass:FMB});W.addProvider({provide:co3,useClass:GYg});c=[].concat(_.No(PF));
_.O("web_continuation_response_processing")&&c.push(_.$x);c.push(ctJ);_.O("enable_share_panel_navigation_logging_fix_on_web")&&c.push(_.LX2);W.addProvider({provide:UNh,useValue:c});W.addProvider({provide:KwD,useClass:WM3});W.addProvider({provide:BjD,useClass:Q89});c={};W.addProvider((c.provide=riO,c.useClass=aGg,c[dq]=[fy],c));_.KX.addLowPriorityJob(function(){FGf()});
c={};W.addProvider((c.provide=lW8,c.useFactory=function(u){return function(t){var b,r=(b=_.g(t.commandMetadata,_.kT))==null?void 0:b.url;if(!r)throw new _.ul("No URL for PBJ Command",t);r=urw(r,{pbj:"1"});b=PNI(r,{})||{};b=Object.assign({},b,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Nn("STS").toString()});t=_.Gj({command:JSON.stringify(t),session_token:_.Nn("XSRF_TOKEN")});return u.fetch(r,{method:"POST",headers:b,body:t})}},c[dq]=[BjD],c));
c=[];c.push(W.resolve(co3));Z={};Z=(Z.client_location=_.PK.getInstance(),Z.consistency=_.JLD(),Z.entities=W.resolve(OPQ),Z.response_received_commands=W.resolve(KwD),Z.store=W.resolve(_.nwg),Z.tokens=W.resolve(co3),Z);if(_.O("web_shorts_prefetch_service_enabled")){var G=new AoQ(W.resolve(_.q6));Z.shorts_prefetch=G}Z.adblock_detection=W.resolve(riO);W.addProvider({provide:_.CX,useClass:_.CX});G=W.resolve(roS);var D=[];_.O("PremiumClientSharedConfig__enable_att_context_processor")&&(W.addProvider({provide:f_9,
useClass:cSQ}),D.push(W.resolve(f_9)));if(_.O("owl_pl_await")){var Y={};W.addProvider((Y.provide=rW6,Y.useFactory=function(u){return new XI3(u)},Y[dq]=[_.CX],Y));
D.push(W.resolve(rW6))}ZMT(G,W.resolve(BjD),W.resolve(Oj9),Z,W.resolve(_.q6),c,D,W.resolve(orS),W.resolve(OgQ));W.addProvider({provide:_.b0,useValue:_.Ee.instance});_.O("start_client_gcf")&&W.addProvider({provide:bt,useValue:mR2()});W.addProvider({provide:OLQ,useFactory:function(){return new OLQ(_.U().resolve(_.CX),_.tI.getInstance())}});
_.It().parkOrScheduleJob(function(){gk6()},1,"eocs");
c={};W.addProvider((c.provide=Hx,c.useClass=Hx,c[dq]=[_.Ia,_.b0],c));W.addProvider({provide:_.LTf,useFactory:_.kq.getInstance});_.It().parkOrScheduleJob(function(){_.U().resolve(Hx).refresh()},0,"eocs");
EVi(v7D.watchEndpointMap||{},G.reelWatchEndpointMap||{},y.injector.resolve(_.b0));W.addProvider({provide:$3,useValue:_.wF.instance});_.O("web_prs_testing_mode_killswitch")||(c=new _.Tr(window.location.href),c.JSC$7898_queryData_.toString()!==""&&c.JSC$7898_queryData_.get("force_ad_encrypted")&&(_.wF.instance.forceWebFEForAdsTesting=!0));_.O("kevlar_signal_collection_killswitch")||(c={},W.addProvider((c.provide=u8f,c.useClass=u8f,c[dq]=[Xu,wu9],c)),_.It().parkOrScheduleJob(function(){_.U().resolve(u8f).record()},
1,"eocs"));
_.O("web_debug_handler_registration_killswitch")||_.It().parkOrScheduleJob(function(){yOy("DOWNLOAD_PES",M1O);_.O("offline_client_state_export_ks")||yOy("OFFLINE_CLIENT_STATE",aOH)},0,"eocs");
_.O("kevlar_prevent_polymer_dynamic_font_load")&&_.It().parkOrScheduleJob(function(){var u=[_.cu(eTZ),_.cu(wIg)];u=_.z(u);for(var t=u.next();!t.done;t=u.next()){t=t.value;var b=document.createElement("link");_.jq(b,t,"stylesheet");document.head.appendChild(b)}},1,"eocs");
c=y.injector.resolve(_.b0);_.GaD.instance=new _.GaD(c);PrH(wpg(new ZPd(c)));c={};y.injector.addProvider((c.provide=xg,c.useFactory=function(u){(u=u==null?void 0:u.getCurrentPage())?u=u.visibilityObserver:(mFS||(mFS=ViO()),u=mFS);return u},c[dq]=[_.xN(_.h7)],c.skipCache=!0,c));
W.addProvider({provide:_.Cy,useClass:D5});W.addProvider({provide:ZZ,useClass:Sim});W.addProvider({provide:dZH,useValue:qlh});y.injector.addProvider({provide:QB2,useValue:giQ});W.addProvider({provide:A4E,useValue:ibI});W.addProvider({provide:_.EH,useValue:foH});y=W.addProvider;dP9||(dP9=new vkB);y.call(W,{provide:_.SN9,useValue:dP9});W.addProvider({provide:_.I9,useValue:_.Nn("HTML_DIR")==="rtl"?"rtl":"ltr"});W.addProvider({provide:R9Q,useClass:CGf});W.addProvider({provide:_.qM,useClass:xq});_.U().addProvider({provide:EyQ,
useValue:zXZ.concat(YP6)});W.addProvider({provide:_.Ms,useClass:_.Ms});W.addProvider({provide:_.aL6,useValue:new TjH});W.addProvider({provide:$9d,useClass:UgQ});W.addProvider({provide:eJ,useClass:eJ});W.addProvider({provide:kt,useClass:kt});y={};W.addProvider((y.provide=p5,y.useClass=p5,y[dq]=[_.b0,_.Xi],y));W.addProvider({provide:t$,useClass:t$});W.addProvider({provide:Lf9,useClass:hy9});W.addProvider({provide:cf,useClass:cf});W.addProvider({provide:yi8,useValue:IwE});W.addProvider({provide:_.Ic,
useClass:$gH});_.O("enable_payments_purchase_manager")&&W.addProvider({provide:YbQ,useClass:oyZ});W.addProvider({provide:My9,useFactory:function(){return function(u){return _.ijH(u)}}});
W.addProvider({provide:_.je9,useClass:yoQ});y={};W.addProvider((y.provide=m3,y.useClass=m3,y[dq]=[_.je9],y));W.addProvider({provide:jg,useClass:jg});W.addProvider({provide:iaS,useValue:Y$H});W.addProvider({provide:F1Z,useValue:eyd});W.addProvider({provide:saH,useClass:Al3});W.addProvider({provide:xC9,useValue:aP9});y={};W.addProvider((y.provide=_.iR3,y.useClass=M5H,y[dq]=[xC9],y));_.O("web_ephemeral_actions")&&(y={},W.addProvider((y.provide=_.wE,y.useClass=en,y[dq]=[_.Fq,_.kP],y)));if(_.O("web_explore_hub_on_hover")||
_.O("web_client_explore_hub_on_hover"))y={},W.addProvider((y.provide=t0,y.useClass=t0,y[dq]=[_.b0,Hv],y));W.addProvider({provide:H5f,useValue:PJt})}},ssH);var tug={},ngZ=(tug.initialized={priority:10,callback:function(){if(!VyD){BZh();CPD("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.y2(_.Fr(CPD,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.O("log_heartbeat_with_lifecycles")){var y={};B2.instance||(B2.instance=new B2);B2.instance.install((y.document_visible={callback:QGy,priority:10},y.document_hidden={callback:QGy,priority:10},y))}else _.SS(document,"visibilitychange",QGy);VyD=!0}(y=_.NR())&&y!=="UNDEFINED_CSN"&&ZUg(y)}},tug);var XOf={},bDH=(XOf.initialized={callback:function(y){var W=_.se(232091),c=y.injector.resolve(_.oZ);_.qY(c,W);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?WwH()&&_.jz(c,W):(y=y.injector.resolve(My9)("refresh_detector"))&&(y.get("first_tab_load")?_.jz(c,W):y.set("first_tab_load","1"))}},XOf);var rcQ={},FsZ=(rcQ.initialized={priority:10,callback:YCD},rcQ);var UFZ={},$FQ=(UFZ.rendering={priority:8,callback:mxw},UFZ);var Ksf={},OD9=(Ksf.rendering={priority:10,callback:gwI},Ksf.rendered={callback:OIw},Ksf),ggg={},RXS=(ggg.rendering={callback:gwI},ggg.rendered={callback:OIw},ggg);var lJQ=!1,Egf={},NCQ=(Egf.initialized={priority:10,callback:function(){lJQ||(sig({didPatch:function(y){y.el&&haD(y.el,y.props)},
didUnmount:function(y){Qjy(y.el)}}),lJQ=!0)}},Egf);var IJD=/^\/shorts\/?$/;_.l1("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(_.O("kevlar_enable_mss")){_.J6g(new il5);var pOH=!0,Pt6,Yd;pOH=pOH===void 0?!1:pOH;Pt6=Pt6===void 0?!1:Pt6;Yd=Yd===void 0?{}:Yd;var Jcf=Yd.cssRowKey||"",Vuf=Yd.combinedSignature||"";!Jcf&&window&&window._F_cssRowKey&&(Jcf=window._F_cssRowKey,!Vuf&&window._F_combinedSignature&&(Vuf=window._F_combinedSignature));if(Jcf&&typeof window._F_installCss!=="function")throw Error("vd");var Ctd=Yd.loaderClass||_.pU,Qs6,Ac3=bXa("base-js");Qs6=_.rf(Ac3);var mF=new Ctd(Qs6,Jcf,Vuf,pOH,Pt6);Yd.useCors&&(mF.useCors_=
Yd.useCors);Yd.corsMode&&(mF.corsMode_=Yd.corsMode);Yd.urlMaxLength&&(mF.urlMaxLength=Yd.urlMaxLength);Yd.fetchPriority&&(mF.fetchPriority=Yd.fetchPriority);var hXB=lC();hXB.JSC$7920_loader_=mF;hXB.setBatchModeEnabled(!0)}
(function(){var y=document.querySelector("ytd-app");if(!y)throw Error("Fj");y=new qs({root:y,injector:_.U()});y.install(ngZ);var W={};y.install((W.initialized={priority:10,callback:gZg},W));_.O("wp_lat_b")&&(W={},y.install((W.initialized={priority:10,callback:function(){lQh()}},W)));
W={};y.install((W.rendered={priority:0,callback:$lw},W));W={};y.install((W.rendered={priority:0,callback:function(){_.KX.addLowPriorityJob(function(){_.Qfg>1&&(taI(),FgO())},4E4)}},W));
y.install(K9S);y.install(bDH);y.install(NCQ);$RH=zoV;YLw=LrH;lUg=enH;OOa=wmg;_.O("ytwiz_enable_debug_component_props")&&JGf();y.install(p7Q);y.install(X76);y.install(UCQ);y.install(fSg);y.install(mPQ);y.install(NrZ);y.install(ucH);_.O("kevlar_enable_mss_lazy_load")&&y.install(FsZ);y.install(r6B);if(!_.I8("IS_SHELL_LOAD")||_.O("kevlar_fetch_initial_data_promise_client")||_.O("sw_nav_preload_pbj")){var c=_.c7(window.location.href);W=c&&c==="/watch";c=c&&c.match(IJD);W?y.install(RXS):c?y.install($FQ):
y.install(OD9)}else y.install(uWS);y.install(g79);_.O("web_enable_prefetching_videos_on_home")&&y.install(Clg);_.O("start_client_gcf")&&y.install(JWH);y.install(yl9);(new UPJ).increment("INSTALLED");y.install(J6S);y.install(YAg);y.transition("initialized")})();
_._ModuleManager_initialize=function(y,W){if(!_.gL){if(!_.Re)return;_.J6g(_.Re())}_.gL.setAllModuleInfoString(y,W)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/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{
_.XE=function(y,W,c,Z,G){var D={};W&&(D[W]=c);Z?D.errorType=Z:G&&(D.errorReason=G);_.$g(y,D);_.KD()};
_.bY=function(y,W){_.S6I(y,_.Lq(W))};
_.rc=function(y){var W=_.It();return _.Ea8(W,y,1)};
_.mD({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 y=this.query;y&&(this.full||y[0]==="("||(y="("+y+")"),this._mq=window.matchMedia(y),this._add(),this.queryHandler(this._mq))},
queryHandler:function(y){this._setQueryMatches(y.matches)}});var wO3;var qPH;var k53=function(){};
_.f=k53.prototype;_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._focusedChanged=function(){};
_.f._createRipple=function(){};
_.f.registered=function(){};
_.f._invalidChanged=function(){};
_.f.hasValidator=function(){};
_.f.validate=function(){};
_.f._getValidity=function(){};
_.f._requiredChanged=function(){};
_.f._valueChanged=function(){};
_.f._checkedChanged=function(){};
_.f._buttonStateChanged=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
k53=_.mD({is:"tp-yt-paper-radio-button",_template:function(){if(qPH!==void 0)return qPH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;wO3===void 0&&(wO3=document.createElement("template"));var Z=wO3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return qPH=y},
behaviors:[_.CTZ],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(){_.Lv(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var y=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),W=Math.floor(3*y);W%2!==y%2&&W++;this.updateStyles({"--paper-radio-button-ink-size":W+"px"})}})}});var jNd;var ys9;_.mD({_template:function(){if(ys9!==void 0)return ys9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;jNd===void 0&&(jNd=document.createElement("template"));var Z=jNd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return ys9=y},
is:"tp-yt-paper-radio-group",behaviors:[_.x8T],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(y){var W=this._valueToItem(y);if(!W||!W.hasAttribute("disabled")){if(this.selected){W=this._valueToItem(this.selected);if(this.selected==y)if(this.allowEmptySelection)y="";else{W&&(W.checked=!0);return}W&&
(W.checked=!1)}_.l6.select.apply(this,[y]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(y){this._focusPrevious();y.preventDefault();this._activateFocusedItem()},
_onDownKey:function(y){this._focusNext();y.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(y){_.axT._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(y){_.axT._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.l6._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.$H._resetTabindices.apply(this,arguments);this.items.forEach(function(y){y.removeAttribute("aria-selected")},this)}});var Wyd;_.bv("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var csS=function(){return _.v.apply(this,arguments)||this};
_.R(csS,_.v);_.f=csS.prototype;_.f.computeHasPrimaryIcon=function(y){return!(!y.icon&&!y.thumbnail)};
_.f.computeHasSecondary=function(y){return!(!y.secondaryIcon&&!y.secondaryNotificationText)};
_.f.computeHideSecondaryString=function(y){return!_.O("disable_hide_empty_secondary_string")&&!y.secondaryNotificationText};
_.f.computeCompactLinkStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.f.computeHasFitHeight=function(y){return y==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.f.isActiveEndpoint=function(y){return(y=this.get("commandMetadata.webCommandMetadata.url",y))?_.c7(window.location.href)!=="/account_transfer_channel"&&_.c7(window.location.href)!=="/gaia_link"&&_.c7(window.location.href)!=="/channel_switcher"||y!=="/account"?_.c7(window.location.href)===y:!0:!1};
_.f.onTap=function(){var y;((y=this.data)==null?0:y.serviceEndpoint)&&_.D2(this.hostElement,[this.data.serviceEndpoint])};
var FE=csS;FE.prototype.onTap=FE.prototype.onTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],FE.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.e("design:type",Boolean)],FE.prototype,"active",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.e("design:type",String)],FE.prototype,"compactLinkStyle",void 0);_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",Object)],FE.prototype,"icon",void 0);_.x([_.L({computed:"computeIcon_(data.secondaryIcon)"}),_.e("design:type",Object)],FE.prototype,"secondaryIcon",void 0);_.x([_.L({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],FE.prototype,"hasSecondary",void 0);
_.x([_.L({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],FE.prototype,"hideSecondaryString",void 0);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],FE.prototype,"onTap",null);FE=_.x([_.d({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],FE);
_.T(FE,"ytd-compact-link-renderer",function(){if(Wyd!==void 0)return Wyd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Wyd=y},{mode:1});var ZvZ;_.bv("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var G7D=function(){var y=_.v.apply(this,arguments)||this;y.role="link";y.tabindex="0";y.actionMap=_.O("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 y};
_.R(G7D,_.v);_.f=G7D.prototype;_.f.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.NO()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.f.getCurrentTheme=function(){return _.IW()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.NO()};
_.f.onThemeSelected=function(y,W){var c=y||W?y:_.Et(),Z=(c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.IZO(_.c7(window.location.href));_.$A(0,165,y);_.$A(0,174,W);this.prefs.save();Z&&_.GG(this.hostElement,"yt-dark-mode-toggled-action",[c]);_.GG(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.f.onTap=function(){this.data.serviceEndpoint&&_.D2(this.hostElement,[this.data.serviceEndpoint])};
_.f.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.f.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.f.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
var Ui=G7D;Ui.prototype.onTap=Ui.prototype.onTap;Ui.prototype.dataChanged=Ui.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ui.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.H_),_.e("design:type",Object)],Ui.prototype,"paperItemBehaviors",void 0);_.x([_.L(),_.e("design:type",Object)],Ui.prototype,"data",void 0);_.x([_.L({value:function(){return _.Uc()}}),
_.e("design:type",_.a7)],Ui.prototype,"prefs",void 0);_.x([_.L(),_.e("design:type",Object)],Ui.prototype,"label",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ui.prototype,"role",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ui.prototype,"tabindex",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ui.prototype,"dataChanged",null);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ui.prototype,"onTap",null);Ui=_.x([_.d({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Ui);
_.T(Ui,"ytd-toggle-theme-compact-link-renderer",function(){if(ZvZ!==void 0)return ZvZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ZvZ=y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.h_=function(y,W,c){_.PI(_.uBH)(void 0,y,W,c)};
_.B6=function(y){return function(W,c){var Z=y||c.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(W,c,{get:function(){var G;return this.$?this.$[Z]:(G=_.k$(this))==null?void 0:G.querySelector("#"+Z)},
enumerable:!0,configurable:!0})}};_.H6=function(y){y=y===void 0?!1:y;_.UR.call(this);this.pubSub_=new _.fR(y);_.zY(this,this.pubSub_)};
_.j6(_.H6,_.UR);_.H6.prototype.subscribe=function(y,W,c){return this.isDisposed()?0:this.pubSub_.subscribe(y,W,c)};
_.H6.prototype.unsubscribe=function(y,W,c){return this.isDisposed()?!1:this.pubSub_.unsubscribe(y,W,c)};
_.H6.prototype.unsubscribeByKey=function(y){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(y)};
_.H6.prototype.publish=function(y,W){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Hb6=function(){_.XE("ypcRedeemFlowStarted")},LJ6=function(y){_.XE("ypcRedeemFlowFailed",void 0,void 0,void 0,y)},vc6=function(y,W,c){W&&c&&(y.videos.forEach(function(Z){Z.videoId===W&&(Z.itemId=c)}),y.recommendedVideos.forEach(function(Z){Z.videoId===W&&(Z.itemId=c)}))};var db6;var Sl6;/*

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
*/
_.mD({_template:function(){if(Sl6!==void 0)return Sl6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;db6===void 0&&(db6=document.createElement("template"));var Z=db6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return Sl6=y},
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(y,W){var c=this._resolveSrc(y);c!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",y===""||W?this._setLoading(!1):(this._resolvedSrc=c,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 y=this.$.sizedImgDiv.style,W=this.$.placeholder.style;y.backgroundSize=W.backgroundSize=this.sizing;y.backgroundPosition=W.backgroundPosition=this.sizing?this.position:"";y.backgroundRepeat=W.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(y){y=_.qF(y,this.$.baseURIAnchor.href);y.length>=2&&y[0]==="/"&&y[1]!=="/"&&(y=(location.origin||location.protocol+"//"+location.host)+y);return y}});var TyB;var akS;_.mD({_template:function(){if(akS!==void 0)return akS;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;TyB===void 0&&(TyB=document.createElement("template"));var Z=TyB;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return akS=y},
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(y){return y?"false":"true"},
_headingChanged:function(y){var W=this.getAttribute("heading"),c=this.getAttribute("aria-label");typeof c==="string"&&c!==W||this.setAttribute("aria-label",y)},
_computeHeadingClass:function(y){return y?" over-image":""},
_computeAnimated:function(y){return y}});var xbd=new _.w("addRendererToItemSectionAction");var ibD;var MWB=function(){return _.v.apply(this,arguments)||this};
_.R(MWB,_.v);MWB.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var pw=MWB;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pw.prototype,"rendererBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],pw.prototype,"dismissibleItemBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],pw.prototype,"rendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pw.prototype,"data",void 0);pw=_.x([_.d({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],pw);
_.T(pw,"ytd-comment-history-entry-renderer",function(){if(ibD!==void 0)return ibD;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ibD=y},{mode:1});var ecd;_.bv("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.bv("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var wHH=function(){return _.v.apply(this,arguments)||this};
_.R(wHH,_.v);_.f=wHH.prototype;_.f.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.onKeyUp=function(y){if(y.keyCode===13)this.onTap()};
_.f.onTap=function(){this.data.recordClickEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var y=this.data.navigationEndpoint;y&&_.g(y,_.$I)&&_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}})};
_.f.readChanged=function(){var y;_.i0(this.hostElement,"unread",!((y=this.data)==null?0:y.read))};
_.f.dataChanged=function(){this.data&&_.i0(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.f.computeThumbnailSize=function(){var y;return((y=this.data)==null?0:y.highPriorityNotification)?32:48};
_.f.getEndpointURL=function(y){return y&&!_.g(y,_.$I)?this.componentBehavior.computeHref_(y):null};
_.f.getEndpointData=function(y){return y&&!_.g(y,_.$I)?y:null};
var Pt=wHH;Pt.prototype.computeThumbnailSize=Pt.prototype.computeThumbnailSize;Pt.prototype.dataChanged=Pt.prototype.dataChanged;Pt.prototype.readChanged=Pt.prototype.readChanged;Pt.prototype.onKeyUp=Pt.prototype.onKeyUp;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Pt.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Pt.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Pt.prototype,"data",void 0);_.x([_.L({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.e("design:type",Number)],Pt.prototype,"thumbnailSize",void 0);_.x([_.B("keyup"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent]),_.e("design:returntype")],Pt.prototype,"onKeyUp",null);
_.x([_.H("data.read"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pt.prototype,"readChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pt.prototype,"dataChanged",null);_.x([_.H("data.highPriorityNotification"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pt.prototype,"computeThumbnailSize",null);
Pt=_.x([_.d({is:"ytd-notification-renderer",disableElementRegistration:!0})],Pt);
_.T(Pt,"ytd-notification-renderer",function(){if(ecd!==void 0)return ecd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ecd=y},{mode:1});var qlZ;var kJH=function(){return _.v.apply(this,arguments)||this};
_.R(kJH,_.v);kJH.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"}}}};
kJH.prototype.computeActionButtonClass=function(y){return!y.actionButtons||y.actionButtons.length<=1?"single-button":y.description?"vertical-buttons":"horizontal-buttons"};
var JC=kJH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JC.prototype,"data",void 0);JC=_.x([_.d({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],JC);
_.T(JC,"ytd-playlist-show-metadata-renderer",function(){if(qlZ!==void 0)return qlZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return qlZ=y},{mode:1});var jz3;_.bv("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var ygB=function(){return _.v.apply(this,arguments)||this};
_.R(ygB,_.v);var Vj=ygB;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Vj.prototype,"data",void 0);Vj=_.x([_.d({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],Vj);
_.T(Vj,"ytd-purchase-item-renderer",function(){if(jz3!==void 0)return jz3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return jz3=y},{mode:1});var WG9;var cgZ={};cgZ.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(y){if(y)return y.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(y){if(y==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.bv("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Z0B=function(){return _.v.apply(this,arguments)||this};
_.R(Z0B,_.v);Z0B.prototype.onYtNavigate=function(y){var W=this.openPopupBehavior.getNavigationEndpointPopupAction(y.detail.endpoint);W&&(y.stopPropagation(),this.openPopupBehavior.openPopup(W))};
var Cw=Z0B;Cw.prototype.onYtNavigate=Cw.prototype.onYtNavigate;_.x([_.C(cgZ.YtSimpleTextSectionBehavior),_.e("design:type",Object)],Cw.prototype,"ytSimpleTextSectionBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],Cw.prototype,"openPopupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Cw.prototype,"data",void 0);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Cw.prototype,"onYtNavigate",null);Cw=_.x([_.d({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Cw);
_.T(Cw,"ytd-simple-text-section-renderer",function(){if(WG9!==void 0)return WG9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return WG9=y},{mode:1});var GUg;_.bv("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var fo9=function(){return _.v.apply(this,arguments)||this};
_.R(fo9,_.v);var oO9=fo9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],oO9.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],oO9.prototype,"data",void 0);oO9=_.x([_.d({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],oO9);
_.T(oO9,"ytd-unlimited-page-feature-info-renderer",function(){if(GUg!==void 0)return GUg;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return GUg=y},{mode:1});var Dpf;var zu9;var Yn6=function(){return _.v.apply(this,arguments)||this};
_.R(Yn6,_.v);Yn6.prototype.dataChanged=function(){if(this.data){var y=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);y&&(y=_.h3(y,screen.width),this.hostElement.style.backgroundImage="url("+y+")")}};
var Qj=Yn6;Qj.prototype.dataChanged=Qj.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Qj.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Qj.prototype,"dataChanged",null);Qj=_.x([_.d({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Qj);
_.T(Qj,"ytd-post-redemption-section-renderer",function(){if(zu9!==void 0)return zu9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return zu9=y},{mode:1});var mpd;var sz6=function(){return _.v.apply(this,arguments)||this};
_.R(sz6,_.v);sz6.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
var AC=sz6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],AC.prototype,"data",void 0);AC=_.x([_.d({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],AC);
_.T(AC,"ytd-ypc-post-redemption-renderer",function(){if(mpd!==void 0)return mpd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return mpd=y},{mode:1});_.bv("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var uUH=function(){var y=_.v.apply(this,arguments)||this;y.MIN_CODE_LENGTH=12;y.MAX_CODE_LENGTH=24;return y};
_.R(uUH,_.v);_.f=uUH.prototype;_.f.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.f.created=function(){this.riskService=new _.uIh;this.loadPaymentThenable=_.nog(_.Nn("YPC_MB_URL"))};
_.f.ready=function(){var y=this;this.code.addEventListener("keypress",function(W){y.onCodeInputKeypress(W)})};
_.f.dataChanged=function(){var y=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(W){W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,c.type==="attributes"&&c.attributeName==="dark"&&y.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.f.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var y=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+y+")")}};
_.f.computeRedeemButton=function(y){(y=this.get("redeemButton.buttonRenderer",y))&&(y=Object.assign({},y,{serviceEndpoint:void 0}));return y};
_.f.onRedeemButtonTap=function(y){y.stopPropagation();Hb6();this.redeemCode()};
_.f.redeemCode=function(){var y=this;this.isLoading=!0;var W=this.riskService.init();_.X1([W,this.loadPaymentThenable]).then(function(){var c=y.data.redeemButton.buttonRenderer.serviceEndpoint,Z=_.t1I(),G=payments.business.integration.ClientTokenFactory.createClientToken(_.g(c,_.EST).countryCode,Z);Z={c:y.code.value.trim(),rd:window.btoa(Z),ctk:G};_.D2(y.hostElement,[c,Z])},function(){y.showGenericError();
LJ6("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.pj(Error("Sl"))})};
_.f.onYtServiceRequestCompleted=function(y){y.stopPropagation();this.isLoading=!1;var W,c;this.errorMessage=(W=y.detail)==null?void 0:(c=W.data)==null?void 0:c.errorMessage;var Z,G;this.postRedemptionRenderer=(Z=y.detail)==null?void 0:(G=Z.data)==null?void 0:G.renderer;var D,Y;if(y=(D=y.detail)==null?void 0:(Y=D.data)==null?void 0:Y.redirectEndpoint)this.isLoading=!0,_.Z2(this.hostElement,"yt-navigate",{endpoint:y});this.errorMessage?LJ6("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
y)&&_.XE("ypcRedeemFlowSucceeded")};
_.f.onYtServiceRequestError=function(y){y.stopPropagation();this.isLoading=!1;if(y=this.get("detail.error.message",y))this.errorMessage=_.Lq(y);LJ6("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.f.onInvokeInstrumentManagerActionCompleted=function(y){y.stopPropagation();this.redeemCode()};
_.f.onInvokeInstrumentManagerActionError=function(y){y.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",y)){case "instrumentManagerLoadError":this.showGenericError();LJ6("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();LJ6("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.XE("ypcRedeemFlowCancelled")}};
_.f.onInput=function(){var y=this;_.gp(this,"onInput",function(){var W=y.code.value.trim();y.redeemButtonDisabled=W.length<y.MIN_CODE_LENGTH||W.length>y.MAX_CODE_LENGTH},200)};
_.f.onCodeInputKeypress=function(y){y.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Hb6(),this.redeemCode())};
_.f.computeImageUrl=function(y){return y?_.h3(y.thumbnails,600):null};
_.f.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
var hC=uUH;hC.prototype.onInvokeInstrumentManagerActionError=hC.prototype.onInvokeInstrumentManagerActionError;hC.prototype.onInvokeInstrumentManagerActionCompleted=hC.prototype.onInvokeInstrumentManagerActionCompleted;hC.prototype.onYtServiceRequestError=hC.prototype.onYtServiceRequestError;hC.prototype.onYtServiceRequestCompleted=hC.prototype.onYtServiceRequestCompleted;hC.prototype.dataChanged=hC.prototype.dataChanged;
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hC.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],hC.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Boolean)],hC.prototype,"redeemButtonDisabled",void 0);
_.x([_.L(),_.e("design:type",Object)],hC.prototype,"errorMessage",void 0);_.x([_.L(),_.e("design:type",Object)],hC.prototype,"postRedemptionRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],hC.prototype,"observer",void 0);_.x([_.jj("#code"),_.e("design:type",HTMLInputElement)],hC.prototype,"code",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hC.prototype,"dataChanged",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],hC.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],hC.prototype,"onYtServiceRequestError",null);
_.x([_.B("yt-invoke-instrument-manager-action-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],hC.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.x([_.B("yt-invoke-instrument-manager-action-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],hC.prototype,"onInvokeInstrumentManagerActionError",null);hC=_.x([_.d({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],hC);
_.T(hC,"ytd-redeem-code-renderer",function(){if(Dpf!==void 0)return Dpf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Dpf=y},{mode:1});var trH;_.bv("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var nO6=function(){var y=_.v.apply(this,arguments)||this;y.businessEmailDisplayState="HIDE_SECTION";return y};
_.R(nO6,_.v);_.f=nO6.prototype;_.f.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}}}}}};
_.f.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"};
_.f.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.f.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Vn("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.f.onYtServiceRequestCompleted=function(y){var W;if((W=y.detail.data)==null?0:W.businessEmail)this.businessEmail=y.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=y.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=y.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.f.computeEmailHref=function(y){return"mailto:"+y};
_.f.computeSafeUrl=function(y){if(y)return _.Jn(y)};
_.f.onBusinessEmailCaptchaSubmit=function(){var y;(y=this.data)!=null&&y.onBusinessEmailRevealClickCommand&&(y=this.JSC$18871_captchaTextarea.value)&&(y={recaptcha_response_token:y,channel_id:this.data.channelId},_.U().resolve(_.i1).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},y,{element:this.hostElement})}))};
_.f.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.dJ.Object.defineProperties(nO6.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 y,W;return!((y=this.data)==null||!y.primaryLinks)&&!((W=this.data)==null?0:W.links)&&this.data.primaryLinks.every(function(c){return c.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.primaryLinks)&&!((W=this.data)==null?0:W.links)&&!this.shouldShowNewLinks}}});
var Bt=nO6;Bt.prototype.onYtServiceRequestCompleted=Bt.prototype.onYtServiceRequestCompleted;Bt.prototype.dataChanged=Bt.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Bt.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Bt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Bt.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.jj("#g-recaptcha-response"),_.e("design:type",HTMLTextAreaElement)],Bt.prototype,"JSC$18871_captchaTextarea",void 0);_.x([_.L(),_.e("design:type",Object)],Bt.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],Bt.prototype,"businessEmailDisplayState",void 0);_.x([_.L(),_.e("design:type",String)],Bt.prototype,"businessEmail",void 0);_.x([_.L(),_.e("design:type",String)],Bt.prototype,"businessEmailErrorMessage",void 0);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Bt.prototype,"hideDetailsSection",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Bt.prototype,"dataChanged",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Bt.prototype,"shouldShowNewLinks",null);_.x([_.A("data","shouldShowLinks"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Bt.prototype,"shouldShowLegacyLinks",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Bt.prototype,"onYtServiceRequestCompleted",null);Bt=_.x([_.d({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Bt);
_.T(Bt,"ytd-channel-about-metadata-renderer",function(){if(trH!==void 0)return trH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return trH=y},{mode:1});var XWd;_.bv("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var b09=function(){return _.v.apply(this,arguments)||this};
_.R(b09,_.v);b09.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"}}}};
var Ht=b09;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ht.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ht.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ht.prototype,"data",void 0);Ht=_.x([_.d({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Ht);
_.T(Ht,"ytd-channel-featured-content-renderer",function(){if(XWd!==void 0)return XWd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XWd=y},{mode:1});var rgD;_.bv("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var FG9=function(){var y=_.v.apply(this,arguments)||this;y.roundContainer=!0;y.amsterdamEnabled=_.O("enable_desktop_amsterdam_info_panels");return y};
_.R(FG9,_.v);_.f=FG9.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f.dataChanged=function(){this.imageWidth=this.imageHeight=24;var y=this.data;y.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!y.style&&y.image&&y.image.thumbnails.length&&(y=y.image.thumbnails[0],this.imageWidth=y.width||0,this.imageHeight=y.height||0)};
_.f.computeSource=function(y){return y.secondarySource?_.v$(y.secondarySource):_.v$(y.source)};
_.f.computeClarifyStyle=function(y){return y?y.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.f.isLargeStyle=function(y){return y==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.f.computeBackgroundStyle=function(y){return y?y.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.f.computeHasActionButton=function(y){return!!y.actionButton};
_.f.computeHasBottomSection=function(y){return!!y.ctaHasBottomSection};
_.f.computeIsSourceMissing=function(y){return y.ctaHasBottomSection===!1?!0:y&&this.computeSource(y)?!1:!0};
_.f.computeSecondaryEndpoint=function(y){return y.secondaryEndpoint||y.endpoint};
var Lw=FG9;Lw.prototype.dataChanged=Lw.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Lw.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],Lw.prototype,"imageWidth",void 0);_.x([_.L(),_.e("design:type",Number)],Lw.prototype,"imageHeight",void 0);
_.x([_.L({computed:"computeSecondaryEndpoint(data)"}),_.e("design:type",Object)],Lw.prototype,"secondaryEndpoint",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.e("design:type",Boolean)],Lw.prototype,"hasActionButton",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.e("design:type",Boolean)],Lw.prototype,"hasBottomSection",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.e("design:type",Boolean)],Lw.prototype,"missingSource",void 0);_.x([_.L({computed:"computeIcon_(data.icon)"}),_.e("design:type",String)],Lw.prototype,"icon",void 0);_.x([_.L({computed:"computeIcon_(data.secondaryIcon)"}),_.e("design:type",String)],Lw.prototype,"secondaryIcon",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.e("design:type",String)],Lw.prototype,"clarifyStyle",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.e("design:type",String)],Lw.prototype,"backgroundStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Lw.prototype,"roundContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Lw.prototype,"amsterdamEnabled",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lw.prototype,"dataChanged",null);
Lw=_.x([_.d({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Lw);
_.T(Lw,"ytd-clarification-renderer",function(){if(rgD!==void 0)return rgD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return rgD=y},{mode:1});var Up3;var $p9;var KGQ=function(){var y=_.v.apply(this,arguments)||this;y.amsterdamEnabled=_.O("enable_desktop_amsterdam_info_panels");return y};
_.R(KGQ,_.v);_.f=KGQ.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.f.computeIcon=function(y){return y?"yt-icons:"+y.toLowerCase():null};
_.f.computeUseContacts=function(y){return!!y.contacts&&y.contacts.length>0};
_.f.computePhoneContact=function(y){var W,c;return(W=y.contacts)==null?void 0:(c=W.find(function(Z){var G;return(Z==null?void 0:(G=Z.icon)==null?void 0:G.iconType)==="PHONE"}))==null?void 0:c.actionText};
_.f.computeSmsContact=function(y){var W,c;return(W=y.contacts)==null?void 0:(c=W.find(function(Z){var G;return(Z==null?void 0:(G=Z.icon)==null?void 0:G.iconType)==="SMS"}))==null?void 0:c.actionText};
var vt=KGQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],vt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vt.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],vt.prototype,"amsterdamEnabled",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.e("design:type",Boolean)],vt.prototype,"useContacts",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.e("design:type",String)],vt.prototype,"phoneContact",void 0);vt=_.x([_.d({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],vt);
_.T(vt,"ytd-single-action-emergency-support-renderer",function(){if($p9!==void 0)return $p9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return $p9=y},{mode:1});_.bv("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var O09=function(){var y=_.v.apply(this,arguments)||this;y.roundedContainer=!0;y.amsterdamEnabled=_.O("enable_desktop_amsterdam_info_panels");return y};
_.R(O09,_.v);O09.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"}}}}};
var d3=O09;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],d3.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],d3.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],d3.prototype,"amsterdamEnabled",void 0);
d3=_.x([_.d({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],d3);
_.T(d3,"ytd-emergency-onebox-renderer",function(){if(Up3!==void 0)return Up3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Up3=y},{mode:1});var gOH;_.bv("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var RuQ=function(){return _.v.apply(this,arguments)||this};
_.R(RuQ,_.v);RuQ.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"}}}};
var S1=RuQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],S1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],S1.prototype,"data",void 0);S1=_.x([_.d({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],S1);
_.T(S1,"ytd-exploratory-results-renderer",function(){if(gOH!==void 0)return gOH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return gOH=y},{mode:1});var lod;_.bv("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var EOZ=function(){var y=_.v.apply(this,arguments)||this;y.messageData=null;return y};
_.R(EOZ,_.v);_.f=EOZ.prototype;_.f.onServiceRequestCompleted=function(y,W){y=W.actions||[];W=0;for(var c=y.length;W<c;W++){var Z=y[W],G=void 0,D=void 0;if((G=_.g(Z,_.sx))==null?0:(D=G.item)==null?0:D.messageRenderer)this.messageData=_.g(Z,_.sx).item.messageRenderer}};
_.f.dataChanged=function(){var y=this.data;this.hostElement.hidden=!1;_.i0(this.hostElement,"is-channel",y&&!y.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.f.computeThumbnailWidth=function(y){return y?126:56};
_.f.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.f.onSubmitTap=function(){var y=this.data,W=this.selectedResponseIndex;y!==void 0&&W!==void 0&&_.D2(this.hostElement,[y.responses[W].responseData])};
_.f.onDismissTap=function(){this.hostElement.hidden=!0;var y=this.data;y!==void 0&&_.D2(this.hostElement,[y.dismissalEndpoint])};
_.f.updateSelectedResponseIndexFromBinding=function(y){this.selectedResponseIndex=y.detail.value};
var TN=EOZ;TN.prototype.onSelectedResponseIndexChange=TN.prototype.onSelectedResponseIndexChange;TN.prototype.dataChanged=TN.prototype.dataChanged;TN.prototype.onServiceRequestCompleted=TN.prototype.onServiceRequestCompleted;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],TN.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TN.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],TN.prototype,"messageData",void 0);
_.x([_.L(),_.e("design:type",Number)],TN.prototype,"selectedResponseIndex",void 0);_.x([_.jj("#submit-button"),_.e("design:type",HTMLButtonElement)],TN.prototype,"submitButton",void 0);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],TN.prototype,"onServiceRequestCompleted",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TN.prototype,"dataChanged",null);
_.x([_.H("selectedResponseIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TN.prototype,"onSelectedResponseIndexChange",null);TN=_.x([_.d({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],TN);
_.T(TN,"ytd-feedback-elicitation-single-question-renderer",function(){if(lod!==void 0)return lod;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lod=y},{mode:1});var NoH;var Iof=function(){return _.v.apply(this,arguments)||this};
_.R(Iof,_.v);Iof.prototype.computeThumbnailWidth=function(y){return y?602:428};
Iof.prototype.updateWideFromBinding=function(y){this.wide=y.detail.value};
var aq=Iof;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aq.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],aq.prototype,"wide",void 0);aq=_.x([_.d({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],aq);
_.T(aq,"ytd-newspaper-hero-video-renderer",function(){if(NoH!==void 0)return NoH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return NoH=y},{mode:1});var pW6;var Pr9=function(){return _.v.apply(this,arguments)||this};
_.R(Pr9,_.v);var JgB=Pr9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],JgB.prototype,"rendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JgB.prototype,"data",void 0);JgB=_.x([_.d({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],JgB);
_.T(JgB,"ytd-newspaper-mini-video-renderer",function(){if(pW6!==void 0)return pW6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return pW6=y},{mode:1});var Vr6;_.bv("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Crf=function(){return _.v.apply(this,arguments)||this};
_.R(Crf,_.v);Crf.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"}}}};
var xo=Crf;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xo.prototype,"data",void 0);xo=_.x([_.d({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],xo);
_.T(xo,"ytd-newspaper-renderer",function(){if(Vr6!==void 0)return Vr6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Vr6=y},{mode:1});var Qzg;_.bv("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var AgH=function(){var y=_.v.apply(this,arguments)||this;y.isSegment=!1;y.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};y.nextContinuation={continuationType:"playlistVideoListContinuation"};return y};
_.R(AgH,_.v);_.f=AgH.prototype;_.f.attached=function(){_.U();var y;(y=_.U().resolve(_.xN(_.L5)))!=null&&(y.playlistVideoListElement=this.hostElement)};
_.f.detached=function(){var y;(y=_.U().resolve(_.xN(_.L5)))!=null&&(y.playlistVideoListElement=void 0);y=_.U().resolve(_.xN(_.VG));_.O("web_enable_voting_animation")&&y&&(y.parentElem=void 0,y.videos=[],y.continuationsPresent=!1,y.showRefreshPill=!1)};
_.f.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"}}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f.dataChanged=function(){var y=_.U().resolve(_.xN(_.VG));if(_.O("web_enable_voting_animation")&&this.data&&y){var W=_.p(this.hostElement).querySelector("#contents");W&&(y.parentElem=W);y.addVideos(this.data.contents)}_.uEZ(this.ytReorderableBehavior)};
_.f.onRendererstamperFinished=function(){this.canReorder&&_.tY5(this.ytReorderableBehavior,_.p(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.f.onPlaylistReloading=function(){this.isReloading=!0};
_.f.onUpdateSetVideoId=function(y){if(y.detail&&this.data&&this.data.contents){var W=y.detail;y=this.data.contents.findIndex(function(G){var D;return((D=G.playlistVideoRenderer)==null?void 0:D.videoId)===W.videoId});
if(!(y<0)&&W.setVideoId&&(this.set("data.contents."+y+".playlistVideoRenderer.setVideoId",W.setVideoId),_.O("web_enable_voting_animation"))){var c;if(y=_.g((c=this.data.contents[y].playlistVideoRenderer)==null?void 0:c.engagementBar,_.Boa)){var Z;(Z=y.actions)==null||Z.forEach(function(G){if(G=_.g(G,_.H0H))G.itemId=W.setVideoId})}(c=_.U().resolve(_.xN(_.VG)))&&vc6(c,W.videoId,W.setVideoId)}}};
_.f.computeContentsClass=function(y){return y?"reloading":""};
_.f.computeIsSortable=function(y,W){return y&&W>0&&!this.isSegment&&!_.O("shorts_in_playlists_web")};
_.f.computeIsEditable=function(y){return y};
_.f.computeCanReorder=function(y){return y};
_.f.handlePlaylistRemoveVideosAction=function(y){if(this.get("playlistRemoveVideosAction.setVideoIds",y)&&this.data&&this.data.contents){y=_.g(y,_.Z2Z).setVideoIds;for(var W=this.data.contents.length-1;W>=0;){var c=this.data.contents[W].playlistVideoRenderer;c&&c.setVideoId&&y.includes(c.setVideoId)&&this.splice("data.contents",W,1);W--}_.GG(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.f.updateIndices=function(){if(this.data&&this.data.contents)for(var y=0;y<this.data.contents.length;y++)this.set("data.contents."+y+".playlistVideoRenderer.index",_.Lq(String(y+1)))};
_.f.handleDrop=function(y){y=y.currDragItem;var W=_.By(y.parentNode.childNodes,y),c=this.data.contents.splice(Number(_.v$(y.data.index))-1,1)[0];this.data.contents.splice(W,0,c);W=W?this.get("contents."+(W-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();y=this.buildReorderServiceEndpoint(y.data.setVideoId,W);this.ytComponentBehavior.resolveCommand(y)};
_.f.buildReorderServiceEndpoint=function(y,W){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",y),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",W),this.data.onReorderEndpoint):null};
_.f.handleUpdatePlaylistAction=function(y){var W;(y=_.g((W=_.g(y,_.GH8))==null?void 0:W.updatedRenderer,_.bFT))&&this.canReorder!==y.canReorder&&this.set("data.canReorder",y.canReorder);y&&y.contents&&(this.set("data.contents",y.contents),this.isReloading=!1);y&&y.continuations&&this.set("data.continuations",y.continuations)};
_.f.handleAddRendererToItemSectionAction=function(y){var W,c=(W=_.g(y,xbd))==null?void 0:W.renderer,Z;c&&((Z=_.g(y,xbd))==null?void 0:Z.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,c),y=_.U().resolve(_.xN(_.VG)),_.O("web_enable_voting_animation")&&y&&(c&&(W=_.huD(c))&&y.recommendedVideos.push({itemId:W,videoId:_.LGH(c),voteCount:_.vOF(c),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.f.isVotingEnabledOnPlaylist=function(y){if(!y)return!1;y=_.z(y);for(y=y.next();!y.done;y=y.next()){var W=void 0;return!!_.g((W=y.value.playlistVideoRenderer)==null?void 0:W.engagementBar,_.Boa)}return!1};
_.f.onAppendContinuationItemsActionFinished=function(){var y;this.isVotingEnabledOnPlaylist((y=this.data)==null?void 0:y.contents)&&(this.updateIndices(),y=_.U().resolve(_.xN(_.VG)),_.O("web_enable_voting_animation")&&y&&this.data&&y.addVideos(this.data.contents))};
_.f.updateVideoData=function(y){if(y.detail&&this.data&&this.data.contents){var W=y.detail;y=W.toIdx;var c=W.itemId,Z=W.newVoteCount,G=W.voteStatus;W=W.hideItem;var D,Y,u=(D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y.findIndex(function(F){return _.huD(F)===c});
if(!(u<0)){D=this.data.contents[u];var t;if((t=D.playlistVideoRenderer)==null?0:t.voteCount)D.playlistVideoRenderer.voteCount=Z;var b;if(t=_.g((b=D.playlistVideoRenderer)==null?void 0:b.engagementBar,_.Boa)){var r;(r=t.actions)==null||r.forEach(function(F){(F=_.g(F,_.H0H))&&F.initialState&&(F.initialState.votes=Z,F.initialState.status=G)})}this.data.contents.splice(u,1);
W||this.data.contents.splice(y,0,D);this.updateIndices()}}};
var ij=AgH;ij.prototype.updateVideoData=ij.prototype.updateVideoData;ij.prototype.onAppendContinuationItemsActionFinished=ij.prototype.onAppendContinuationItemsActionFinished;ij.prototype.onUpdateSetVideoId=ij.prototype.onUpdateSetVideoId;ij.prototype.onPlaylistReloading=ij.prototype.onPlaylistReloading;ij.prototype.onRendererstamperFinished=ij.prototype.onRendererstamperFinished;ij.prototype.dataChanged=ij.prototype.dataChanged;
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],ij.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.C(_.Xoi),_.e("design:type",Object)],ij.prototype,"ytReorderableBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],ij.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ij.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ij.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],ij.prototype,"isReloading",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ij.prototype,"isSegment",void 0);_.x([_.L({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.e("design:type",Boolean)],ij.prototype,"isSortable",void 0);_.x([_.L({computed:"computeIsEditable(data.isEditable)"}),_.e("design:type",Boolean)],ij.prototype,"isEditable",void 0);_.x([_.L({computed:"computeCanReorder(data.canReorder)"}),_.e("design:type",Boolean)],ij.prototype,"canReorder",void 0);
_.x([_.L({value:101}),_.e("design:type",Number)],ij.prototype,"scrollMargin",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ij.prototype,"dataChanged",null);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ij.prototype,"onRendererstamperFinished",null);
_.x([_.B("yt-playlist-reloading"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ij.prototype,"onPlaylistReloading",null);_.x([_.B("yt-update-set-video-id"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],ij.prototype,"onUpdateSetVideoId",null);
_.x([_.B("yt-append-continuation-items-action-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ij.prototype,"onAppendContinuationItemsActionFinished",null);_.x([_.B("yt-update-video-data-voting-animation"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],ij.prototype,"updateVideoData",null);ij=_.x([_.d({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],ij);
_.T(ij,"ytd-playlist-video-list-renderer",function(){if(Qzg!==void 0)return Qzg;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Qzg=y},{mode:_.xm("kevlar_poly_si_batch_j047")?1:2});var huB;var BoQ=function(){return _.v.apply(this,arguments)||this};
_.R(BoQ,_.v);BoQ.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"}}}}};
BoQ.prototype.onTextWrapperTap=function(y){var W=this.data&&this.data.navigationEndpoint;W&&!_.Cx(_.Aq(y),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Z2(this.hostElement,"yt-navigate",{endpoint:W})};
BoQ.prototype.dataChanged=function(){var y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");y&&y.commandMetadata&&_.g(y.commandMetadata,_.rR)&&_.g(y.commandMetadata,_.rR).fireAutomatically&&_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}})};
var My=BoQ;My.prototype.dataChanged=My.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.P2),_.e("design:type",Object)],My.prototype,"ytdLockupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],My.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs")}}),
_.e("design:type",Boolean)],My.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],My.prototype,"biggerThumbsStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],My.prototype,"leftAligned",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],My.prototype,"dataChanged",null);My=_.x([_.d({disableElementRegistration:!0,is:"ytd-movie-renderer"})],My);
_.T(My,"ytd-movie-renderer",function(){if(huB!==void 0)return huB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return huB=y},{mode:1});var H09;var e1=function(){var y=_.v.apply(this,arguments)||this;y.rounded=!0;y.pageAttachedTo=void 0;y.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return y};
_.R(e1,_.v);e1.prototype.attached=function(){this.pageAttachedTo=_.U().resolve(_.h7).getCurrentPage();_.Z2(this.hostElement,"yt-player-attached",this.player)};
e1.prototype.detached=function(){var y;if((y=this.pageAttachedTo)==null?0:y.hostElement)_.Z2(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
e1.prototype.dataChanged=function(){var y;if((y=this.data)==null?0:y.videoId)y={video_id:this.data.videoId,autoplay:!0},!_.O("miniplayer_stop_channel_video_autoplay_killswitch")&&_.U().resolve(_.Cy).isMiniplayerActive()&&(y.pause_at_start=!0,y.autoplay=!1),this.player.loadVideoWithPlayerVars(y)};
e1.prototype.handleSignalActionPausePlayer=function(){_.Lx().pause()};
var w3=e1;w3.prototype.dataChanged=w3.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],w3.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],w3.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w3.prototype,"rounded",void 0);
_.x([_.jj("#player"),_.e("design:type",Object)],w3.prototype,"player",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],w3.prototype,"dataChanged",null);w3=_.x([_.d({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],w3);
_.T(w3,"ytd-channel-video-player-renderer",function(){if(H09!==void 0)return H09;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return H09=y},{mode:1});var LGg;var vOQ;var dpd;var Snd=function(){var y=_.v.apply(this,arguments)||this;y.playing=!1;y.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.kF(y);y.active=!1;return y};
_.R(Snd,_.v);_.f=Snd.prototype;_.f.detached=function(){this.stop()};
_.f.play=function(){var y=this,W,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return y.active=!0,W=y.get("data.inlinePlaybackEndpoint.watchEndpoint"),c=W.videoId||y.data.videoId,Z=W.startTimeSeconds||0,G=W.playerParams||null,_.O("kevlar_player_update_killswitch")?_.n(Y,y.playerEl.update({args:{video_id:c,startSeconds:Z,player_params:G}}),2):(y.playerEl.loadVideoWithPlayerVars({video_id:c,startSeconds:Z,player_params:G,autoplay:!0}),Y.jumpTo(2));if(Y.nextAddress!=4)return _.n(Y,y.playerEl.getPlayerPromise(),
4);D=Y.yieldResult;D.unloadModule("annotations_module");D.addEventListener("onStateChange",function(u){y.onPlayerStateChange(u)});
_.F2(Y)})};
_.f.onPlayerStateChange=function(y){if(this.active)switch(this.playing=y===1,y){case 1:_.Z2(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Z2(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.f.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.f.resize=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.playerEl.getPlayerPromise(),2);W=c.yieldResult;W.setSize(NaN,NaN);_.F2(c)})};
var qy=Snd;_.x([_.L(),_.e("design:type",Object)],qy.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qy.prototype,"playing",void 0);_.x([_.L(),_.e("design:type",Object)],qy.prototype,"playerId",void 0);_.x([_.jj("#player"),_.e("design:type",Object)],qy.prototype,"playerEl",void 0);qy=_.x([_.d({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],qy);
_.T(qy,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(dpd!==void 0)return dpd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return dpd=y},{mode:1});var To9;var aoD;var xpB=function(){var y=_.v.apply(this,arguments)||this;y.width=0;return y};
_.R(xpB,_.v);_.f=xpB.prototype;_.f.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.qO(this,this.onEnded));this.mp4El.addEventListener("error",_.qO(this,this.onError))};
_.f.detached=function(){this.videoEl.removeEventListener("ended",_.qO(this,this.onEnded));this.mp4El.removeEventListener("error",_.qO(this,this.onError))};
_.f.play=function(){var y=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var W=this.videoEl.play();W?W.then(function(){y.handleVideoStartPlaying()}).catch(function(){_.Z2(y.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Z2(this.hostElement,"yt-video-thumbnail-not-playing")};
_.f.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.f.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.f.dataChanged=function(){var y;if((y=this.data)==null?0:y.thumbnailPlaceholder)y=_.h3(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+y+")";this.stop();this.autoplay&&this.play()};
_.f.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.f.onEnded=function(){this.stop();_.Z2(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.f.onError=function(){_.Z2(this.hostElement,"yt-video-thumbnail-error")};
_.f.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.f.getVideoThumbnail=function(y){if(y&&y.length)return y[0]};
var ko=xpB;ko.prototype.dataChanged=ko.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],ko.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],ko.prototype,"animatePlaceholderOnEntrance",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],ko.prototype,"autoplay",void 0);_.x([_.L({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.e("design:type",Object)],ko.prototype,"videoThumbnail",void 0);
_.x([_.L(),_.e("design:type",Boolean)],ko.prototype,"loop",void 0);_.x([_.L(),_.e("design:type",Boolean)],ko.prototype,"isVideoPlaying",void 0);_.x([_.L(),_.e("design:type",Object)],ko.prototype,"width",void 0);_.x([_.jj("#mp4"),_.e("design:type",HTMLElement)],ko.prototype,"mp4El",void 0);_.x([_.jj("#placeholder"),_.e("design:type",HTMLElement)],ko.prototype,"placeholderEl",void 0);_.x([_.jj("#video"),_.e("design:type",HTMLVideoElement)],ko.prototype,"videoEl",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ko.prototype,"dataChanged",null);ko=_.x([_.n6({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],ko);
_.T(ko,"yt-video-as-thumbnail-details",function(){if(aoD===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;To9===void 0&&(To9=document.createElement("template"));var Z=To9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);aoD=y}y=aoD;return y},{mode:2});var jf,i0f=function(){var y=_.v.apply(this,arguments)||this;y.disableGridStateAware=!1;y.animationEnabled=_.O("enable_web_ketchup_hero_animation");y.transitioningOut=!1;y.narrow=!1;y.narrower=!1;y.isCarouselInFeed=!1;y.videoTimeoutJobId=0;y.panelTimeoutJobId=0;y.panelTimeoutJobStartMs=0;y.actionMap={"yt-window-resized":"onWindowResized"};return y};
_.R(i0f,_.v);_.f=i0f.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.f.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var y;this.player&&((y=this.data)==null?0:y.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.f.attached=function(){this.onWindowResized()};
_.f.detached=function(){this.clearTimeouts()};
_.f.onWindowResized=function(){this.updateSize()};
_.f.computePanelLayout=function(y){return y&&y.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.f.playVideo=function(){var y;this.video&&((y=this.data)==null?0:y.videoThumbnail)&&this.video.play();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.play()};
_.f.stopVideo=function(){var y;this.video&&((y=this.data)==null?0:y.videoThumbnail)&&this.video.stop();var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.stop()};
_.f.transitionOut=function(){var y=this;this.transitioningOut=!0;return new Promise(function(W){var c=function(){_.p(y.hostElement).querySelector("#action-button").removeEventListener("animationend",c);_.KX.cancelJob(Z);W();y.transitioningOut=!1};
var Z=_.Xc(_.KX,c,1E3);_.p(y.hostElement).querySelector("#action-button").addEventListener("animationend",c);y.player&&(y.player.playing=!1)})};
_.f.computeMetadataOrder=function(y){return y&&y.metadataOrder&&y.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?y.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.f.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.f.computeAvatarSize=function(y){return y&&y.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.f.onContentClick=function(y){if(!_.Cx(_.Aq(y),this.hostElement,["A".toString(),"BUTTON".toString()])){var W;if((W=this.data)==null?0:W.navigationEndpoint){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.navigationEndpoint)}}};
_.f.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.f.setBackgroundImage=function(y){if(y=this.getBackgroundImageUrl(y))_.p(this.hostElement).querySelector("#hero").style.backgroundImage="url("+y+")"};
_.f.setScrimLayer=function(y){var W=this.getScrimLayerColorStops(y);y=((y==null?void 0:y.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(y=180);_.Nn("HTML_DIR")==="rtl"&&(y=-y);W&&(_.p(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+y+"deg, "+W+")")};
_.f.isNarrower=function(){return this.hostElement.clientWidth<jf.NARROW_VERSION_SIZE};
_.f.getScrimLayerColorStops=function(){var y,W=(y=this.data)==null?void 0:y.scrimColorValues;if(!W)return null;if(W.length===1)return y=_.KZ(W[0]),y+" 0%, "+y+" 100%";if(W.length===3){var c=[0,72,98];return W.map(function(Z,G){return _.KZ(Z)+" "+c[G]+"%"}).join(",")}return null};
_.f.getBackgroundImageUrl=function(y){return y&&y.largeFormFactorBackgroundThumbnail?_.h3((y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||y.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.f.onPlaying=function(){this.startVideoTimeout()};
_.f.onEnded=function(){this.rotate()};
_.f.startPanelTimeout=function(){var y=this;if(!this.panelTimeoutJobId){var W=this.get("data.minPanelDisplayDurationMs");W&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Xc(_.KX,function(){y.rotate()},W))}};
_.f.startVideoTimeout=function(){var y=this;if(!this.videoTimeoutJobId){_.KX.cancelJob(this.panelTimeoutJobId);var W=Date.now()-this.panelTimeoutJobStartMs;W=Math.max(0,this.get("data.minPanelDisplayDurationMs")-W);W=Math.max(this.get("data.minVideoPlayDurationMs")||0,W);this.videoTimeoutJobId=_.Xc(_.KX,function(){y.rotate()},W)}};
_.f.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.KX.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.KX.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.f.rotate=function(){this.clearTimeouts();_.Z2(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.dJ.Object.defineProperties(i0f.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.p(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.p(this.hostElement).querySelector("#video")}}});
_.dJ.Object.defineProperties(i0f,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
var y_=jf=i0f;jf.prototype.onEnded=jf.prototype.onEnded;jf.prototype.onPlaying=jf.prototype.onPlaying;jf.prototype.dataChanged=jf.prototype.dataChanged;_.x([_.C(_.lZ),_.e("design:type",Object)],y_.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],y_.prototype,"componentBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],y_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.C(_.MDd),_.e("design:type",Object)],y_.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],y_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y_.prototype,"disableGridStateAware",void 0);_.x([_.L(),_.e("design:type",Object)],y_.prototype,"data",void 0);_.x([_.L({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.e("design:type",String)],y_.prototype,"panelLayout",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y_.prototype,"animationEnabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y_.prototype,"transitioningOut",void 0);
_.x([_.L({computed:"computeMetadataOrder(data)"}),_.e("design:type",Boolean)],y_.prototype,"metadataOrder",void 0);_.x([_.L({computed:"computeByline(data)"}),_.e("design:type",Object)],y_.prototype,"byline",void 0);_.x([_.L({computed:"computeAvatarSize(data)"}),_.e("design:type",Number)],y_.prototype,"avatarSize",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y_.prototype,"narrow",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y_.prototype,"narrower",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y_.prototype,"layoutStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],y_.prototype,"isCarouselInFeed",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],y_.prototype,"dataChanged",null);_.x([_.B("yt-default-promo-panel-renderer-playing"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],y_.prototype,"onPlaying",null);
_.x([_.B("yt-default-promo-panel-renderer-ended"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],y_.prototype,"onEnded",null);y_=jf=_.x([_.d({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],y_);
_.T(y_,"ytd-default-promo-panel-renderer",function(){if(vOQ!==void 0)return vOQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vOQ=y},{mode:1});_.bv("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var MrH=function(){var y=_.v.apply(this,arguments)||this;y.narrower=!1;y.dotMenuVisible=!1;y.paginationThumbnailsVisible=!1;y.active=!0;y.disableGridStateAware=!1;y.actionMap={"yt-window-resized":"onWindowResized"};return y};
_.R(MrH,_.v);_.f=MrH.prototype;_.f.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]]"}}}}}};
_.f.attached=function(){this.onWindowResized()};
_.f.detached=function(){this.jobId&&_.KX.cancelJob(this.jobId);this.updateSizeJobId&&_.KX.cancelJob(this.updateSizeJobId)};
_.f.onWindowResized=function(){this.updateSize()};
_.f.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.f.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.f.setCarouselItem=function(y){y>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.KX.cancelJob(this.jobId);var W=this.getCurrentPanelElement();W&&W.stopVideo();this.currentItemIndex=y%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(W||(W=this.getCurrentPanelElement()),W.playVideo()):this.startRotationJob()};
_.f.scrollThumbnails=function(y){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var W=this.getCurrentPaginationElement();if(W){var c=_.p(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?c.style.transform="translateX(0)":(W=W.offsetWidth+8,c.style.transform="translateX(-"+W*(y-Math.ceil(Math.floor(this.overlay.offsetWidth/W)/2)+1)+"px)")}}};
_.f.onDataChanged=function(){var y=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.X5(_.KX,function(){y.getCurrentPanelElement().updateSize();y.updateSize()}))};
_.f.getCurrentPanelElement=function(){return _.p(_.p(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.f.getCurrentPaginationElement=function(){return _.p(_.p(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.f.getNavigationClass=function(y,W){return y===W?"selected":""};
_.f.getNavigationDurationStyle=function(y){return"animation-duration:"+(this.get("data.carouselItems."+y+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.f.onNavigationTap=function(y){var W=this,c=y.model.index;c!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){W.setCarouselItem(c)}),this.autorotateActive=!1)};
_.f.onVideoThumbnailEnded=function(){var y=this;if(this.shouldRotate()){var W=this.getCurrentPaginationElement();W&&(W.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){W.classList.remove("finished");y.setNextCarouselItem()}))}};
_.f.onVideoThumbnailError=function(){this.startRotationJob()};
_.f.onVideoNotPlaying=function(){this.startRotationJob()};
_.f.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.f.startRotationJob=function(){var y=this;_.KX.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.KX.addLowPriorityJob(function(){y.getCurrentPanelElement().transitionOut().then(function(){y.setNextCarouselItem()})},this.rotationTimeout))};
_.f.computeDotMenuVisible=function(y,W){return!!y&&!!y.carouselItems&&y.carouselItems.length>1&&!y.paginationThumbnails||!!W};
_.f.computePaginationThumbnailsVisible=function(y,W){var c,Z;return((Z=y==null?void 0:(c=y.paginationThumbnails)==null?void 0:c.length)!=null?Z:0)>1&&!W};
_.f.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.f.computePaginatorAlignment=function(y){return(y==null?void 0:y.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.f.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.f.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.f.isNarrower=function(y){return(y!=null?y:0)<y_.NARROW_VERSION_SIZE};
var Wc=MrH;Wc.prototype.activeChanged=Wc.prototype.activeChanged;Wc.prototype.onVideoNotPlaying=Wc.prototype.onVideoNotPlaying;Wc.prototype.onVideoThumbnailError=Wc.prototype.onVideoThumbnailError;Wc.prototype.onVideoThumbnailEnded=Wc.prototype.onVideoThumbnailEnded;Wc.prototype.onDataChanged=Wc.prototype.onDataChanged;_.x([_.C(_.lZ),_.e("design:type",Object)],Wc.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],Wc.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Wc.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Wc.prototype,"currentItem",void 0);
_.x([_.L(),_.e("design:type",Number)],Wc.prototype,"currentItemIndex",void 0);_.x([_.L(),_.e("design:type",Number)],Wc.prototype,"rotationTimeout",void 0);_.x([_.L(),_.e("design:type",Number)],Wc.prototype,"loopCount",void 0);_.x([_.L({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.e("design:type",String)],Wc.prototype,"paginatorAlignment",void 0);_.x([_.L(),_.e("design:type",Number)],Wc.prototype,"jobId",void 0);
_.x([_.L(),_.e("design:type",Number)],Wc.prototype,"updateSizeJobId",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Wc.prototype,"isCarouselInFeed",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Wc.prototype,"narrower",void 0);_.x([_.L({computed:"computeDotMenuVisible(data, narrower)"}),_.e("design:type",Object)],Wc.prototype,"dotMenuVisible",void 0);
_.x([_.L({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.e("design:type",Object)],Wc.prototype,"paginationThumbnailsVisible",void 0);_.x([_.L({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.e("design:type",String)],Wc.prototype,"layoutType",void 0);_.x([_.L({value:!0,reflectToAttribute:!0}),_.e("design:type",Boolean)],Wc.prototype,"autorotateActive",void 0);_.x([_.L(),_.e("design:type",Object)],Wc.prototype,"active",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Wc.prototype,"disableGridStateAware",void 0);_.x([_.jj("#overlay"),_.e("design:type",HTMLElement)],Wc.prototype,"overlay",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Wc.prototype,"onDataChanged",null);
_.x([_.B("yt-video-thumbnail-ended"),_.B("yt-default-promo-panel-renderer-rotate"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Wc.prototype,"onVideoThumbnailEnded",null);_.x([_.B("yt-video-thumbnail-error"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Wc.prototype,"onVideoThumbnailError",null);
_.x([_.B("yt-video-thumbnail-not-playing"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Wc.prototype,"onVideoNotPlaying",null);_.x([_.Gs("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Wc.prototype,"activeChanged",null);Wc=_.x([_.d({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Wc);
_.T(Wc,"ytd-carousel-item-renderer",function(){if(LGg!==void 0)return LGg;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return LGg=y},{mode:2});var euQ;var wWd;var qn9;var kU9;var jq3=function(){var y=_.v.apply(this,arguments)||this;y.originalQuery=null;y.originalEndpoint=null;return y};
_.R(jq3,_.v);jq3.prototype.computeShowOriginalQueryWithoutEndpoint_=function(y,W){return!(!y||W)};
var cc=jq3;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],cc.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cc.prototype,"correctedText",void 0);_.x([_.L(),_.e("design:type",Object)],cc.prototype,"correctedQuery",void 0);_.x([_.L(),_.e("design:type",Object)],cc.prototype,"correctedEndpoint",void 0);_.x([_.L(),_.e("design:type",Object)],cc.prototype,"originalText",void 0);_.x([_.L(),_.e("design:type",Object)],cc.prototype,"originalQuery",void 0);
_.x([_.L(),_.e("design:type",Object)],cc.prototype,"originalEndpoint",void 0);_.x([_.L({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.e("design:type",Boolean)],cc.prototype,"showOriginalQueryWithoutEndpoint",void 0);cc=_.x([_.n6({is:"yt-search-query-correction",disableElementRegistration:!0})],cc);
_.T(cc,"yt-search-query-correction",function(){if(kU9===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;qn9===void 0&&(qn9=document.createElement("template"));var Z=qn9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);kU9=y}y=kU9;return y},{mode:2});_.bv("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var yCZ=function(){return _.v.apply(this,arguments)||this};
_.R(yCZ,_.v);var WPH=yCZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WPH.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WPH.prototype,"data",void 0);WPH=_.x([_.n6({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],WPH);
_.T(WPH,"yt-did-you-mean-renderer",function(){if(wWd===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;euQ===void 0&&(euQ=document.createElement("template"));var Z=euQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);wWd=y}y=wWd;return y},{mode:2});var cC6;var Zwf;_.bv("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var GNZ=function(){return _.v.apply(this,arguments)||this};
_.R(GNZ,_.v);var fOQ=GNZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fOQ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fOQ.prototype,"data",void 0);fOQ=_.x([_.n6({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],fOQ);
_.T(fOQ,"yt-including-results-for-renderer",function(){if(Zwf===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;cC6===void 0&&(cC6=document.createElement("template"));var Z=cC6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Zwf=y}y=Zwf;return y},{mode:2});var oo9;var Dy9;_.bv("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var zL3=function(){return _.v.apply(this,arguments)||this};
_.R(zL3,_.v);zL3.prototype.computeExtraClasses_=function(y,W){var c="";y&&(c+=" "+y.toLowerCase().replace(/_/g,"-"));W&&(c+=" "+W.toLowerCase().replace(/_/g,"-"));return c};
zL3.prototype.computeUrlImg_=function(){var y=this.data;y.image&&(_.p(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.h3(y.image.thumbnails,Number.MAX_VALUE)+")")};
var ZQ=zL3;ZQ.prototype.computeUrlImg_=ZQ.prototype.computeUrlImg_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ZQ.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ZQ.prototype,"computeUrlImg_",null);ZQ=_.x([_.n6({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],ZQ);
_.T(ZQ,"yt-music-pass-feature-info-renderer",function(){if(Dy9===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;oo9===void 0&&(oo9=document.createElement("template"));var Z=oo9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Dy9=y}y=Dy9;return y},{mode:2});var Y_S;var my6;_.bv("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var sqD=function(){return _.v.apply(this,arguments)||this};
_.R(sqD,_.v);var uIZ=sqD;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uIZ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uIZ.prototype,"data",void 0);uIZ=_.x([_.n6({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],uIZ);
_.T(uIZ,"yt-no-results-found-showing-results-for-renderer",function(){if(my6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Y_S===void 0&&(Y_S=document.createElement("template"));var Z=Y_S;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);my6=y}y=my6;return y},{mode:2});var t1D;var noS;_.bv("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var XtD=function(){return _.v.apply(this,arguments)||this};
_.R(XtD,_.v);var bwH=XtD;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bwH.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bwH.prototype,"data",void 0);bwH=_.x([_.n6({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],bwH);
_.T(bwH,"yt-results-without-quotes-renderer",function(){if(noS===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;t1D===void 0&&(t1D=document.createElement("template"));var Z=t1D;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);noS=y}y=noS;return y},{mode:2});var rC6;var FP3;_.bv("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Uyf=function(){return _.v.apply(this,arguments)||this};
_.R(Uyf,_.v);var $y6=Uyf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$y6.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$y6.prototype,"data",void 0);$y6=_.x([_.n6({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],$y6);
_.T($y6,"yt-search-no-results-renderer",function(){if(FP3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;rC6===void 0&&(rC6=document.createElement("template"));var Z=rC6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);FP3=y}y=FP3;return y},{mode:2});var KPB;var OwS;_.bv("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var goZ=function(){return _.v.apply(this,arguments)||this};
_.R(goZ,_.v);var RLQ=goZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],RLQ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],RLQ.prototype,"data",void 0);RLQ=_.x([_.n6({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],RLQ);
_.T(RLQ,"yt-showing-results-for-renderer",function(){if(OwS===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;KPB===void 0&&(KPB=document.createElement("template"));var Z=KPB;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);OwS=y}y=OwS;return y},{mode:2});var lO6;var EoH;var N3H;var IOB;var ptQ=function(){var y=_.v.apply(this,arguments)||this;y.answerExpanded=!1;return y};
_.R(ptQ,_.v);ptQ.prototype.toggleAnswer_=function(y){var W=_.hq(y);W&&W.classList.contains("yt-simple-endpoint")||(y.preventDefault(),y.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
var G8=ptQ;G8.prototype.toggleAnswer_=G8.prototype.toggleAnswer_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],G8.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],G8.prototype,"answerExpanded",void 0);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],G8.prototype,"toggleAnswer_",null);
G8=_.x([_.n6({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],G8);
_.T(G8,"yt-generic-faq-question-renderer",function(){if(IOB===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;N3H===void 0&&(N3H=document.createElement("template"));var Z=N3H;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);IOB=y}y=IOB;return y},{mode:2});_.bv("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var PjD=function(){return _.v.apply(this,arguments)||this};
_.R(PjD,_.v);PjD.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
var fh=PjD;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fh.prototype,"data",void 0);fh=_.x([_.n6({is:"yt-faq-section-renderer",disableElementRegistration:!0})],fh);
_.T(fh,"yt-faq-section-renderer",function(){if(EoH===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;lO6===void 0&&(lO6=document.createElement("template"));var Z=lO6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);EoH=y}y=EoH;return y},{mode:2});var JCZ;var V1D;_.bv("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var CjQ=function(){return _.v.apply(this,arguments)||this};
_.R(CjQ,_.v);
CjQ.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"}}}}};
var oG=CjQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],oG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],oG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],oG.prototype,"data",void 0);oG=_.x([_.n6({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],oG);
_.T(oG,"yt-offer-item-expanded-renderer",function(){if(V1D===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;JCZ===void 0&&(JCZ=document.createElement("template"));var Z=JCZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);V1D=y}y=V1D;return y},{mode:2});var Qq6;var ACD;_.bv("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var hL3=function(){return _.v.apply(this,arguments)||this};
_.R(hL3,_.v);
hL3.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"}}}}};
hL3.prototype.computeFullWidthMode=function(y){return!(!y||!y.fullWidthMode)};
hL3.prototype.computeBorderlessMode=function(y){return!(!y||!y.borderlessMode)};
var DQ=hL3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],DQ.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.e("design:type",Boolean)],DQ.prototype,"fullWidthMode",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.e("design:type",Boolean)],DQ.prototype,"borderlessMode",void 0);DQ=_.x([_.n6({is:"yt-offer-item-renderer",disableElementRegistration:!0})],DQ);
_.T(DQ,"yt-offer-item-renderer",function(){if(ACD===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Qq6===void 0&&(Qq6=document.createElement("template"));var Z=Qq6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);ACD=y}y=ACD;return y},{mode:2});var B39;var Hwf;_.bv("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var LP3=function(){return _.v.apply(this,arguments)||this};
_.R(LP3,_.v);LP3.prototype.computeAriaLevel_=function(y){return this.getLevelID_(y)};
LP3.prototype.getLevelID_=function(y){return(y=y.match(/[0-9]+$/))&&y.length==1?y[0]:"1"};
var z8=LP3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],z8.prototype,"data",void 0);_.x([_.L({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.e("design:type",String)],z8.prototype,"ariaLevel",void 0);_.x([_.L({value:"heading",reflectToAttribute:!0}),_.e("design:type",String)],z8.prototype,"role",void 0);
_.x([_.L({value:-1,reflectToAttribute:!0}),_.e("design:type",Number)],z8.prototype,"tabindex",void 0);z8=_.x([_.n6({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],z8);
_.T(z8,"yt-subscription-product-header-renderer",function(){if(Hwf===void 0){var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;B39===void 0&&(B39=document.createElement("template"));var Z=B39;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Hwf=y}y=Hwf;return y},{mode:2});var vod;var dyH;_.bv("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var S_3=function(){return _.v.apply(this,arguments)||this};
_.R(S_3,_.v);S_3.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:_.rI("menuRenderer"),events:!0}}};
S_3.prototype.onStampFinished_=function(){_.p(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
var Yf=S_3;Yf.prototype.onStampFinished_=Yf.prototype.onStampFinished_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Yf.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Yf.prototype,"data",void 0);
_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Yf.prototype,"onStampFinished_",null);Yf=_.x([_.n6({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Yf);
_.T(Yf,"yt-subscription-product-renderer",function(){if(dyH===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;vod===void 0&&(vod=document.createElement("template"));var Z=vod;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);dyH=y}y=dyH;return y},{mode:2});var T3Z;var aOg;_.bv("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var xyH=function(){return _.v.apply(this,arguments)||this};
_.R(xyH,_.v);xyH.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
xyH.prototype.imageScrimColorValuesChanged_=function(){var y,W=(y=this.data)==null?void 0:y.imageScrimColorValues;_.p(this.hostElement).querySelector("#scrim").style.backgroundColor=W?_.KZ(W[0]):"transparent"};
var mr=xyH;mr.prototype.imageScrimColorValuesChanged_=mr.prototype.imageScrimColorValuesChanged_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],mr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mr.prototype,"data",void 0);
_.x([_.H("data.imageScrimColorValues"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mr.prototype,"imageScrimColorValuesChanged_",null);mr=_.x([_.n6({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],mr);
_.T(mr,"yt-subscription-product-upsell-offer-renderer",function(){if(aOg===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;T3Z===void 0&&(T3Z=document.createElement("template"));var Z=T3Z;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);aOg=y}y=aOg;return y},{mode:2});var iw6;var M1f;var eLZ;var wtf;var q_Q;var kNd;var jG3=function(){return _.v.apply(this,arguments)||this};
_.R(jG3,_.v);jG3.prototype.onYtServiceRequestError_=function(y){_.bY(this.hostElement,y.detail.error.message)};
var sz=jG3;sz.prototype.onYtServiceRequestError_=sz.prototype.onYtServiceRequestError_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sz.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sz.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],sz.prototype,"collapsible",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],sz.prototype,"isManageRed",void 0);
_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],sz.prototype,"onYtServiceRequestError_",null);sz=_.x([_.n6({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],sz);
_.T(sz,"yt-single-ypc-offer-renderer",function(){if(kNd===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;q_Q===void 0&&(q_Q=document.createElement("template"));var Z=q_Q;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);kNd=y}y=kNd;return y},{mode:2});var yRg=function(){return _.v.apply(this,arguments)||this};
_.R(yRg,_.v);yRg.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var uP=yRg;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uP.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],uP.prototype,"isManageRed",void 0);uP=_.x([_.n6({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],uP);
_.T(uP,"yt-single-ypc-offer-list-renderer",function(){if(wtf===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;eLZ===void 0&&(eLZ=document.createElement("template"));var Z=eLZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);wtf=y}y=wtf;return y},{mode:2});var WrZ;var cRf;_.bv("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ZhQ=function(){return _.v.apply(this,arguments)||this};
_.R(ZhQ,_.v);ZhQ.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var tR=ZhQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tR.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],tR.prototype,"isManageRed",void 0);tR=_.x([_.n6({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],tR);
_.T(tR,"yt-ypc-offers-list-renderer",function(){if(cRf===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;WrZ===void 0&&(WrZ=document.createElement("template"));var Z=WrZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);cRf=y}y=cRf;return y},{mode:2});_.bv("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var G8Z=function(){return _.v.apply(this,arguments)||this};
_.R(G8Z,_.v);
G8Z.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}}}}}};
var nh=G8Z;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nh.prototype,"data",void 0);nh=_.x([_.n6({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],nh);
_.T(nh,"yt-unlimited-manage-subscription-page-renderer",function(){if(M1f===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;iw6===void 0&&(iw6=document.createElement("template"));var Z=iw6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);M1f=y}y=M1f;return y},{mode:2});var fQZ;var of6;var D5D=function(){return _.v.apply(this,arguments)||this};
_.R(D5D,_.v);_.f=D5D.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.f.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.onKeypress_=function(y){y.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.f.handleHeaderTap_=function(y){y.preventDefault();y.stopPropagation();this.expandOffers_()};
_.f.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.f.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
var bP=D5D;bP.prototype.dataChanged_=bP.prototype.dataChanged_;_.x([_.C(_.uO),_.e("design:type",Object)],bP.prototype,"ironA11yKeysBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bP.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],bP.prototype,"offersVisible_",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],bP.prototype,"dataChanged_",null);bP=_.x([_.n6({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],bP);
_.T(bP,"yt-collapsible-ypc-offer-renderer",function(){if(of6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;fQZ===void 0&&(fQZ=document.createElement("template"));var Z=fQZ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);of6=y}y=of6;return y},{mode:2});var zOB;var YzH;_.bv("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var m5d=function(){return _.v.apply(this,arguments)||this};
_.R(m5d,_.v);_.f=m5d.prototype;_.f.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.f.dataChanged_=function(){if(this.data.backgroundImage){var y=_.h3(this.data.backgroundImage.thumbnails,screen.width),W=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=W?"linear-gradient(180deg, "+W+"), url("+y+")":"url("+y+")";this.data.gtmId&&_.zI(this.data.gtmId,_.Nn("GL",""))}};
_.f.onYtServiceRequestError_=function(y){_.bY(this.hostElement,y.detail.error.message)};
_.f.getScrimLayerColorStops_=function(){var y,W,c=(y=this.data.unlimitedHeaderV2Data)==null?void 0:(W=y.unlimitedHeaderV2Data)==null?void 0:W.scrimLayerColors;if(!c)return null;var Z=100/c.length;return c.map(function(G,D){D*=Z;return _.KZ(G)+" "+D+"%"}).join(",")};
_.f.computeLogoWithPadding=function(y){var W,c,Z;return(y=(W=y.unlimitedLogoImage)==null?void 0:(c=W.thumbnails)==null?void 0:(Z=c[0])==null?void 0:Z.height)&&y%31===0?!0:!1};
var rn=m5d;rn.prototype.onYtServiceRequestError_=rn.prototype.onYtServiceRequestError_;rn.prototype.dataChanged_=rn.prototype.dataChanged_;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.x([_.L({computed:"computeLogoWithPadding(data)"}),_.e("design:type",Boolean)],rn.prototype,"logoWithPadding",void 0);
_.x([_.L(),_.e("design:type",Object)],rn.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],rn.prototype,"dataChanged_",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],rn.prototype,"onYtServiceRequestError_",null);rn=_.x([_.n6({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],rn);
_.T(rn,"yt-unlimited-page-header-renderer",function(){if(YzH===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;zOB===void 0&&(zOB=document.createElement("template"));var Z=zOB;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);YzH=y}y=YzH;return y},{mode:2});var sG9;var uRS;_.bv("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var tfH=function(){return _.v.apply(this,arguments)||this};
_.R(tfH,_.v);tfH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
var FR=tfH;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],FR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],FR.prototype,"data",void 0);FR=_.x([_.n6({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],FR);
_.T(FR,"yt-unlimited-user-notification-renderer",function(){if(uRS===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;sG9===void 0&&(sG9=document.createElement("template"));var Z=sG9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);uRS=y}y=uRS;return y},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.mig=_.Ax(function(y){var W=_.V0(y,{numberOfChips:5}).numberOfChips;return _.X("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.X(_.mC,{each:function(){return Array(W==null?void 0:W())}},function(){return _.X("div",{class:"ytGhostChipShelfChip"})}))},"Hf");
}catch(e){_._DumpException(e)}
try{
var jiD,yGH,W4D,cG6,ZOg,Grg,fUf,dc,SY,DR3,zh9,YLd,siS,UR3,Tm,F4f,nTB,rGQ,bOH,XTQ,tb3,$R9,K49,OOQ,gTH,aC,Rh6,lUS,ETd,JG9,PMd,pTZ,NzS,IUB,CM9,QiQ,AGZ,hhf,Bz9,HOS,SLd,xR6,iOg,MbD,wT9,kr3,yEQ,Wq9,cES,Zl9,f2d,oAQ,D23,zoD,Ycg,m2H,sPQ,tGQ,rE6,bl3,nA9,Fq6,XA6,U2H,gAH,Ol6,$29,KqS,MZ,Ro6,NK9,CN9,QP6,AEH,hof,BKH,HlH,LqH,vAd,d2Z,ScQ,a2Q,x2B,il9,VbZ,oTd,PND;
_.LK=function(y){var W=new _.ul("Error accessing DB");return _.BY1().then(function(c){return new Promise(function(Z,G){try{var D=c.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(y);D.onsuccess=function(){var Y=D.result;Z(Y?Y.value:null)};
D.onerror=function(){W.params={key:y,source:"onerror"};G(W)}}catch(Y){W.params={key:y,
thrownError:String(Y)},G(W)}})},function(){return null})};
_.k7S=function(y,W){var c=_.vXw(W);c!=="javascript:"&&c!=="data:"&&y.setAttribute("href",W)};
jiD=function(y,W){return _.fq(y.entities,"flowStateEntity",W)};
yGH=function(y){return(y=y.getOption("captions","track"))?!!y.displayName:!1};
W4D=function(y,W){W=W.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(W==null||!W.length)return y;var c=W.filter(function(Y){return Y});
W=y.filter(function(Y){return Y.languageCode.startsWith("en")});
c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,W.length){var G=W[0],D=Object.assign({},G);G.languageCode!==Z.languageCode&&(D.displayName=G.languageName+" >> "+Z.languageName,D.translationLanguage=Z,y.push(D))}return y};
cG6=function(y){var W,c=(W=y.getOption("captions","tracklist",{includeAsr:!0}))!=null?W:[];_.O("mweb_watch_captions_enable_auto_translate")&&(c=W4D(c,y));return c};
ZOg=function(y){return _.Qw(y,function(W){return W.languageCode==="en"})};
Grg=function(y){var W=vo;if(yGH(y))y.setOption("captions","stickyLoading",{}),y.setOption("captions","track",{});else{var c=_.Qw(cG6(y),function(Z){return Z.displayName===W});
y.setOption("captions","track",c)}};
fUf=function(y){if(!y)return 0;var W=y.getPresentingPlayerType(),c=y.getVideoData();return c&&c.isLive?(y=y.getProgressState(W),y.seekableEnd-y.seekableStart):y.getDuration(W)};
dc=function(y,W){_.py(W,y,function(){return oTd[W]},function(c){oTd[W]=c;
if(!_.O("mweb_player_ve_show_ks")){var Z=_.NR(0);Z&&c&&_.Ll(Z,c)}})};
SY=function(y){(y=oTd[y])&&_.jz(_.Zz(),y)};
DR3=function(y,W){for(var c=_.z(Object.keys(y)),Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,y[Z]!==W[Z])return!1;return!0};
zh9=function(){return document.getElementById("player-control-overlay")};
YLd=function(y){y!==-1&&!_.O("player_controls_log_creation_killswitch")&&zh9()&&(_.PA("pcu_cs",y),_.PA("pcu_ce"))};
siS=function(y){return _.X("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(y.subscribeButton?[y.subscribeButton,y.channelAccess]:[y.channelAccess]).map(function(W){return _.X("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz--button"},mRS(W)))}))};
_.us6=function(y){var W=y.data;y=y.hideDivider;var c={};c=(c["yt-profile-identity-info-view-model-wiz__frame"]=!0,c["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!W.channelBanner,c);c={class:_.wZ(c)};var Z,G={imageBannerViewModel:{image:(Z=W.channelBanner)==null?void 0:Z.image,style:"IMAGE_BANNER_STYLE_INSET"}};Z=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},W.channelBanner?_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
mRS(G,{imageBannerViewModel:{isPositionRelative:!0}})):null);G=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},mRS(W.avatar));var D;var Y=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},W.channelDisplayName),W.verifiedOrOacBadge?_.X("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.X(_.J3,{data:{thumbnails:[{url:(D=W.verifiedOrOacBadge)==null?void 0:D.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);D=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},Y,mRS(W.threeDotMenu));Y=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.X("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},W.channelHandle),W.channelPronouns&&W.channelHandle?_.X("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.X("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},W.channelPronouns)),_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.leftOfBulletInfo),W.leftOfBulletInfo&&W.rightOfBulletInfo?_.X("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.X("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},W.rightOfBulletInfo)));D=_.X("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},D,Y);return _.X("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.X("div",c,Z,_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},G,D),W.channelDescription?_.X("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},W.channelDescription):
null,siS(W),y?null:_.X("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
UR3=function(y,W){var c=_.Jx(y,{}),Z=tb3("top",W),G=tb3("bottom",W),D=tb3("left",W),Y=tb3("right",W);return _.cF({top:function(){return Tm(c().position,Z)},
bottom:function(){return Tm(c().position,G)},
left:function(){return Tm(c().position,D)},
right:function(){return Tm(c().position,Y)},
position:function(){return Tm(c().positionType,nTB)},
height:function(){return Tm(c().height,aC)},
width:function(){return Tm(c().width,aC)},
"min-width":function(){return Tm(c().minWidth,aC)},
"min-height":function(){return Tm(c().minHeight,aC)},
"max-width":function(){return Tm(c().maxWidth,aC)},
"max-height":function(){return Tm(c().maxHeight,aC)},
"aspect-ratio":function(){return Tm(c().aspectRatio,String)},
"margin-top":function(){return Tm(c().margin,Z)},
"margin-bottom":function(){return Tm(c().margin,G)},
"margin-left":function(){return Tm(c().margin,D)},
"margin-right":function(){return Tm(c().margin,Y)},
"padding-top":function(){return Tm(c().padding,Z)},
"padding-bottom":function(){return Tm(c().padding,G)},
"padding-left":function(){return Tm(c().padding,D)},
"padding-right":function(){return Tm(c().padding,Y)},
"flex-direction":function(){return Tm(c().flexDirection,XTQ)},
"justify-content":function(){return Tm(c().justifyContent,bOH)},
"align-items":function(){return Tm(c().alignItems,rGQ)},
"flex-grow":function(){return Tm(c().flexGrow,String)},
"flex-shrink":function(){return Tm(c().flexShrink,String)},
"flex-basis":function(){return Tm(c().flexBasis,aC)},
"align-self":function(){return Tm(c().alignSelf,rGQ)},
"flex-wrap":function(){return Tm(c().flexWrap,F4f)},
"align-content":function(){return Tm(c().alignContent,rGQ)}})};
Tm=function(y,W){return y!==void 0?W(y):void 0};
F4f=function(y){switch(y){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
nTB=function(y){switch(y){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
rGQ=function(y){switch(y){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"}};
bOH=function(y){switch(y){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"}};
XTQ=function(y){switch(y){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"}};
tb3=function(y,W){var c=W==="rtl";switch(y){case "top":var Z=$R9;break;case "bottom":Z=K49;break;case "left":Z=OOQ;break;default:Z=gTH}return function(G){return Tm(Z(G,c),aC)}};
$R9=function(y){var W=y.top;var c=y.vertical;y=y.all;var Z;return(Z=W!=null?W:c)!=null?Z:y};
K49=function(y){var W=y.bottom;var c=y.vertical;y=y.all;var Z;return(Z=W!=null?W:c)!=null?Z:y};
OOQ=function(y,W){var c=y.left;var Z=y.end;var G=y.start;var D=y.horizontal;y=y.all;var Y,u;return(u=(Y=c!=null?c:W?Z:G)!=null?Y:D)!=null?u:y};
gTH=function(y,W){var c=y.right;var Z=y.end;var G=y.start;var D=y.horizontal;y=y.all;var Y,u;return(u=(Y=c!=null?c:W?G:Z)!=null?Y:D)!=null?u:y};
aC=function(y){var W=y.value;switch(y.unit){case "YPC_DIMENSION_UNIT_POINT":return W+"px";case "YPC_DIMENSION_UNIT_FRACTION":return W+"%";default:return""+W}};
Rh6=function(y){switch(y){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"}};
lUS=function(y){var W=y!=null?y:{};y=W.fontRole;var c=W.fontSize;W=W.fontWeight;if(y!==null&&c!==null)switch(y){case "YPC_FONT_ROLE_DISPLAY":switch(c){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(c){case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return W===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(c){case "YPC_FONT_SIZE_XL":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return W==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
ETd=function(y,W){return _.fq(y.entities,"pdpStateEntity",W)};
JG9=function(y,W,c){function Z(b){return Object.values(b).map(function(r){var F=r.productId;r=r.pricingOptionIndex;return NzS(G(F).pricingOptions,r).pricingOptionId})}
function G(b){return u().get(b)}
function D(b){b=Z(b);c(b)}
var Y=IUB([y,W],function(b,r){var F=b==null?void 0:b.selectedPricingOptions;b={};var K=!0;if(F&&r.length)for(var l=_.z(r),N=l.next();!N.done;N=l.next()){N=N.value;var P=pTZ(N.pricingOptions,function(V){a:{V=V.pricingOptionId;for(var Q=_.z(F),S=Q.next();!S.done;S=Q.next())if(S.value===V){V=!0;break a}V=!1}return V});
P>=0&&(K=!1,b[N.groupId]={productId:N.productId,pricingOptionIndex:P})}K&&r.length&&(b[r[0].groupId]={productId:r[0].productId,pricingOptionIndex:0});return b}),u=IUB([W],function(b){return new Map(b.map(function(r){return[r.productId,
r]}))}),t=IUB([W],function(b){var r=new Map;
b=_.z(b);for(var F=b.next();!F.done;F=b.next()){var K=F.value;F=K.groupId;var l=K.productId;K=_.z(PMd(K.pricingOptions));for(var N=K.next();!N.done;N=K.next()){var P=_.z(N.value);N=P.next().value;P=P.next().value;r.set(P.pricingOptionId,{groupId:F,productId:l,index:N,pricingOption:P})}}return r});
return{getProductById:G,isProductSelected:function(b){var r=G(b);if(!r)return!1;var F;return((F=Y()[r.groupId])==null?void 0:F.productId)===b},
getSelectedPricingOptions:function(){return Object.values(Y()).map(function(b){var r=b.productId;b=b.pricingOptionIndex;return NzS(G(r).pricingOptions,b)})},
getSelectedProductByGroupId:function(b){var r;return(b=(r=Y()[b])==null?void 0:r.productId)?G(b):void 0},
onProductSelected:function(b){var r=G(b);if(r){var F=Y(),K;if(((K=F[r.groupId])==null?void 0:K.productId)!==b){var l,N;K=(N=(l=F[r.groupId])==null?void 0:l.pricingOptionIndex)!=null?N:0;l=0;for(N=r.pricingOptions[Symbol.iterator]();!N.next().done;)++l;l<=K&&(K=0);l={};D(Object.assign({},F,(l[r.groupId]={productId:b,pricingOptionIndex:K},l)))}}},
onPricingOptionSelected:function(b){var r=t().get(b);if(r){b=r.groupId;var F=r.productId;r=r.index;var K=Y(),l,N;if(((l=K[b])==null?void 0:l.productId)!==F||((N=K[b])==null?void 0:N.pricingOptionIndex)!==r)l={},D(Object.assign({},K,(l[b]={productId:F,pricingOptionIndex:r},l)))}},
onClearGroupSelected:function(b){var r=Y();r[b]&&(r=Object.fromEntries(Object.entries(r).filter(function(F){return _.z(F).next().value!==b})),D(r))}}};
PMd=function(y){return function c(){var Z,G,D,Y;return VbZ(c,function(u){switch(u.nextAddress){case 1:_.X2(u,2),Z=0,G=_.z(y),D=G.next();case 4:if(D.done){u.jumpTo(2);break}Y=D.value;var t=[Z++,Y];return _.n(u,t,7);case 7:D=G.next();u.jumpTo(4);break;case 2:_.nc(u),_.bR(u,0)}})}()};
pTZ=function(y,W){y=_.z(PMd(y));for(var c=y.next();!c.done;c=y.next()){var Z=_.z(c.value);c=Z.next().value;Z=Z.next().value;if(W(Z))return c}return-1};
NzS=function(y,W){y=_.z(PMd(y));for(var c=y.next();!c.done;c=y.next()){var Z=_.z(c.value);c=Z.next().value;Z=Z.next().value;if(c===W)return Z}};
IUB=function(y,W){var c,Z;return function(){for(var G=y.map(function(Y){return Y()}),D=0;D<G.length;D++)if(!c||G[D]!==c[D]){c=G;
Z=W.apply(null,_.No(G));break}return Z}};
CM9=function(y){var W;return!!(y.productId&&y.groupId&&((W=y.pricingOptions)==null?0:W.length)&&y.pricingOptions.every(function(c){return c.pricingOptionId}))};
QiQ=function(y,W,c){return JG9(y,IUB([W],function(Z){return Z.filter(CM9)}),c)};
AGZ=function(y){switch(y){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""}};
hhf=function(y,W){return W.length===0?[y]:[y.slice(0,W[0]),y.slice(W[0])].filter(function(c){return c.length>0})};
Bz9=function(y){switch(y){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""}};
HOS=function(y,W,c,Z){Z=Object.assign({},Z);_.nN(Z,xd,{selectedOptionId:y,primaryButtonOverride:c});_.I5().dispatch(_.o3("flowStateEntity",W,Z))};
_.dRd=function(){if(!L43){var y=_.z(_.G9(new Map,void 0,"UJImUe"));L43=y.next().value;vT3=y.next().value}return L43};
SLd=function(y){if(y)return _.dRd()().get(y)};
_.TzS=function(y,W){if(y&&W){var c=_.dRd();c().set(y,W);y=c();vT3(new Map(y))}};
_.aU6=function(y){return{onSubmit:function(){var W;(W=SLd(y()))==null||W.onSubmit()},
isValid:function(){var W=SLd(y());return W?W.isValid():!0},
isSubmitting:function(){var W,c;return!!((W=SLd(y()))==null?0:(c=W.isSubmitting)==null?0:c.call(W))}}};
xR6=function(y,W){return _.fq(y.entities,"contextNoteFeedEntityPayload",W)};
iOg=function(y){y.style.height="auto";y.style.height=y.scrollHeight+"px"};
MbD=function(y){return[y.syncStep,y.asyncStep].filter(function(W){return W!==void 0})};
wT9=function(y){var W,c,Z;if(y=(W=y.structuredContextNoteFormSchema)==null?void 0:(c=W.fieldSchemas)==null?void 0:(Z=c.noteBody)==null?void 0:Z.validationSchema)for(W=_.z(MbD(y)),c=W.next();!c.done;c=W.next()){c=c.value.rules;if(!c)break;c=_.z(c);for(c=c.next();!c.done;c=c.next())return _.g(c.value,_.ehH)}};
kr3=function(y){if(y){y=_.z(MbD(y));for(var W=y.next();!W.done;W=y.next()){W=W.value.rules;if(!W)break;W=_.z(W);for(W=W.next();!W.done;W=W.next())return _.g(W.value,qLB)}}};
yEQ=function(y){if(y){y=_.z(MbD(y));for(var W=y.next();!W.done;W=y.next()){W=W.value.rules;if(!W)break;W=_.z(W);for(W=W.next();!W.done;W=W.next())return _.g(W.value,jPH)}}};
Wq9=function(y){y=/^https?:\/\//.test(y)?y:"http://"+y;try{var W=_.ho(y)}catch(c){return!1}if(W.toString()!==y)return!1;y=W.JSC$7898_domain_.split(".");return y.length>1&&y.every(function(c){return!!c})};
cES=function(y,W,c,Z){var G;Z=(G=Z.structuredContextNoteData)==null?void 0:G.createCommentEndpoint;if(G=_.g(Z,_.jt3))return G.commentText=_.Lq(y),G.videoPositionMention=W,G.sources=c,Z};
Zl9=function(y){return y==null?void 0:y.stringValue};
f2d=function(y,W,c){y=y.map(function(Z,G){return{listItemViewModel:{title:Z.title,subtitle:Z.subtitle,leadingImage:Z.leadingImage,trailingImage:G===W?GG9:void 0,rendererContext:{commandContext:{onTap:Z.onTap}}}}});
return Object.assign({},c&&{header:{panelHeaderViewModel:{title:c}}},{content:{listViewModel:{listItems:y}}})};
oAQ=function(y,W){if(y&&W)switch(W){case "SELECTION_TYPE_BOOL":return y.boolValue;case "SELECTION_TYPE_INT":return y.intValue;case "SELECTION_TYPE_STRING":return y.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return y.privacyStatusValue}};
D23=function(y){var W;y=(W=y.options)==null?void 0:W.findIndex(function(c){return c.isSelected});
return y===void 0?-1:y};
zoD=function(y,W,c){var Z=function(){return y().label},G={},D=_.Mi("ytDropdownViewModelLabel",(G.ytDropdownViewModelLabelError=W,G));
return _.X(_.YN,{cond:function(){var Y;if(Y=y().label)Y=!(c()===-1&&y().label&&!y().placeholderText);return Y},
then:function(){return _.X("div",{class:D},_.X(_.Da,{text:Z}))}})};
Ycg=function(y,W){var c={};c=_.Mi("ytDropdownViewModelTitle",(c.ytDropdownViewModelTitlePlaceholder=function(){return W()===-1},c));
return _.X("div",{class:c},_.X(_.Da,{text:function(){var Z=y();var G=W();if(G===-1)Z=Z.placeholderText?Z.placeholderText:Z.label;else{var D,Y;Z=(D=Z.options)==null?void 0:(Y=D[G])==null?void 0:Y.title}return Z}}))};
m2H=function(y,W){var c=function(){return y().hint};
return _.X(_.a2,null,_.X(_.YN,{cond:function(){return c()&&!W()},
then:function(){return _.X("div",{class:_.Mi("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.X(_.Da,{text:c,className:"ytDropdownViewModelSupportText"}))}}),_.X(_.YN,{cond:W,
then:function(){return _.X("div",{id:"dropdown-view-model-error",role:"alert",class:_.Mi("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.X(_.Gb,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.X(_.Da,{text:W,className:"ytDropdownViewModelSupportText"}))}}))};
sPQ=function(y,W){var c=_.U().resolve(_.a_d);_.rj(function(){var Z=y().id;Z&&c!=null&&c.dropdownMap.set(Z,W)})};
tGQ=function(y){y=_.g(y.scheduleButton,urd);y=_.g(y==null?void 0:y.primaryButton,_.ri);y=_.g(y==null?void 0:y.onTap,_.Fx);var W,c,Z=((c=_.g(y,_.uN))==null?void 0:c.commands)||[y];c=_.z(Z);for(y=c.next();!y.done&&!(W=_.g(y.value,_.WXm));y=c.next());var G;W=(G=W)==null?void 0:G.createBroadcastRequest;if(!W)throw Error("Hj");return W};
rE6=function(y,W,c){c=c===void 0?{}:c;var Z,G;return _.m(function(D){if(Z=nA9(W))return D.return(Z);(G=XA6(y,W,c))&&bl3(W,G);return D.return(G)})};
bl3=function(y,W){var c=Fq6(y);c&&W.then(function(Z){_.U().resolve(_.q6).put(c,new _.ks({innertubeResponse:Z}))})};
nA9=function(y){if(y=Fq6(y)){var W=_.U().resolve(_.q6);if(W.has(y))return W.get(y).then(function(c){return c==null?void 0:_.Zs(c)})}return null};
Fq6=function(y){var W=_.g(y.endpoint,_.Sb);if(W!=null&&W.videoId)return W={videoId:W.videoId},_.O("web_imp_player_mute_params")&&(W.mutedAtStart=y.startPlaybackInMutedState),_.dz("inline_playback",W)};
XA6=function(y,W,c){y=_.IL(y,W.endpoint,U2H(W,c)).then(function(Z){return Z});
return Promise.resolve(y)};
U2H=function(y,W){W=_.O("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!y.startPlaybackInMutedState},W):Object.assign({},{vis:5,autonav:"1"},W);var c;W={contentPlaybackContext:_.st(W,(c=_.g(y.endpoint.commandMetadata,_.kT))==null?void 0:c.url,window.location.href)};_.O("web_imp_player_mute_params")&&(W.overrideMutedAtStart=!y.startPlaybackInMutedState);return W};
gAH=function(y,W){var c=window.MutationObserver;c&&(iY=new c(function(Z,G){Z=_.z(Z);for(var D=Z.next();!D.done;D=Z.next()){D=D.value;var Y;if(Y=D.type==="childList"&&D.target)a:{Y=y;D=$29(D.target);Y=$29(Y);for(var u=null,t=0;t<D.length;t++)if(Y.includes(D[t])){if(t===0){Y=!1;break a}u=D[t];break}u?(D=KqS(D,u),Y=KqS(Y,u),Y=D<Y):Y=!1}if(Y){W();G.disconnect();break}}}),(c=Ol6())&&iY.observe(c,{childList:!0,
subtree:!0}))};
Ol6=function(){var y=document.getElementsByTagName("ytd-rich-grid-renderer");if(y.length>0)return y[0];y=document.getElementsByTagName("ytd-section-list-renderer");return y.length>0?y[0]:null};
$29=function(y){for(var W=[];y;)W.push(y),y=y.parentElement;return W};
KqS=function(y,W){var c=Array.from(W.children);W=y.indexOf(W);return W>0?c.indexOf(y[W-1]):-1};
MZ=function(y,W,c){c=c===void 0?{}:c;return _.bN(y,c,W)};
Ro6=function(y){return y==null?void 0:y.filter(function(W){return W.premiereTrailerBadgeRenderer})};
NK9=function(y,W){var c="",Z="";switch(y){case -1:case 0:c=W?"VOLUME_OFF":"VOLUME_OFF_FILLED";Z=l2d;break;case 1:c=W?"VOLUME_UP_OUTLINE":"VOLUME_UP";Z=EAH;break;default:_.d2(y)}return{iconName:c,ariaLabel:Z}};
CN9=function(y,W){var c=I23,Z=_.z(_.G9(pAQ(new PND(function(){},c,W)),void 0,"PAnyd")),G=Z.next().value,D=Z.next().value,Y=new PND(function(u){D(u)},c,W);
_.$k(function(){Promise.resolve().then(function(){var u,t=(u=y())!=null?u:{};Y.playerControlsData=t;_.O("player_controls_skip_double_signal_old")&&(Y.lastSeenPlayerApi=_.VQ(t.playerApi));_.O("player_controls_skip_double_signal_old")||(Y.lastSeenPlayerApi=_.VQ(t.playerApi));JEf(Y)});
_.KL(function(){VGZ(Y)})});
_.KL(function(){VGZ(Y)});
return function(){return G()}};
QP6=function(y){return function(W){var c=y(),Z={playerState:W};if(W===1){var G;(G=c.playerApi)==null||G.loadModule("captions")}if(W===0){var D;(D=c.playerApi)==null||D.unloadModule("captions")}(W!==-1||_.O("web_imp_controls_set_player_state_killswitch"))&&c.setState(Z)}};
AEH=function(y){return function(W){y().setState({playbackRate:W})}};
hof=function(y){return function(W){var c=y(),Z=c.playerApi,G=Z==null?void 0:Z.getVideoData(),D=(G==null?void 0:G.isLive)||!1;G=G==null?void 0:G.video_id;D={videoDuration:fUf(Z||void 0),isLive:D,videoId:G};D.videoId!==c.videoId&&(D=Object.assign({},_.r8a(Z),D));if(W==null?0:W.playertype)D.playerType=W.playertype;if(Z){D.captionsAvailable=!!Z.getOptions("captions");W=D;var Y;G=(Y=Z.getStoryboardLevel(Z.getNumberOfStoryboardLevels()-1))==null?void 0:Y.intervalMs;W.storyboardInterval=G?G/1E3:void 0;D.captionsAvailable&&
(D.captionsEnabled=yGH(Z))}D.volumeMuted=!(Z==null||!Z.isMuted());c.setState(D)}};
BKH=function(y){return function(W){var c=y(),Z=c.playerApi;if(Z){var G=Z.getPresentingPlayerType();W={playedTime:W||0,percentLoaded:Z.getVideoLoadedFraction(),playerType:G};c.playerState===0&&(W.playedTime=c.videoDuration);c.isLive&&(G=Z.getProgressState(G),W.playedTime-=G.seekableStart,W.videoDuration=fUf(Z));c.playerType!==1&&delete W.playedTime;c.setState(W)}}};
HlH=function(y){return function(){var W=y(),c,Z,G,D={volume:(G=(c=W.playerApi)==null?void 0:c.getVolume())!=null?G:0,volumeMuted:!((Z=W.playerApi)==null||!Z.isMuted())};W.setState(D)}};
LqH=function(y){return function(){var W=y(),c=W.playerApi;if(c){var Z={captionsAvailable:!!c.getOptions("captions")};Z.captionsAvailable&&(Z.captionsEnabled=yGH(c));W.setState(Z)}}};
vAd=function(y){return function(){var W=y();if(W.playerApi&&!(W.volumeMuted||W.controlsVisible&&W.isProbablyAScreenreaderUser)){W.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var c;(c=document.querySelector(".player-control-play-pause-icon"))==null||c.focus()}}};
d2Z=function(y){return{appApi:Object.assign({},_.mXO(),{showCaptionsToggleToast:function(W){var c,Z;(Z=(c=y()).showCaptionsToggleToast)==null||Z.call(c,W)},
openInMiniplayer:function(){var W,c;(c=(W=y()).openInMiniplayer)==null||c.call(W)}})}};
ScQ=function(y,W){var c,Z,G;return!!(y==null?0:(c=y.playerResponse)==null?0:(Z=c.playerConfig)==null?0:(G=Z.inlinePlaybackConfig)==null?0:G.showScrubbingControls)&&!(W==null?0:W.hideScrubbingControls)};
_.TKB=function(y){var W=!y.miniplayerIsActive;return[5,2,0].includes(y.miniplayerPlaybackState)||W};
a2Q={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};x2B=function(y,W){var c,Z,G,D,Y;_.m(function(u){if(!W.length)return u.return([]);c=[];Z=_.z(W);for(G=Z.next();!G.done;G=Z.next())D=G.value,(Y=y.resolveIcon(D))&&!y.iconCache[Y.url]&&c.push(_.GwD(y,Y).then(function(){}).catch(function(){}));
return u.return(Promise.all(c))})};
il9=function(y,W){var c=[];W=(new Set(W)).values();W=_.z(W);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;for(var G=_.z(Object.values(a2Q)),D=G.next();!D.done;D=G.next())c.push({iconName:Z,iconStyle:D.value})}x2B(y.iconManager,c)};
_.MG6=function(y,W,c){var Z=c!=null?c:y.iconsToFetch;Z!=null&&Z.length?W!==void 0&&W>=0?_.Xc(_.KX,function(){il9(y,Z)},W):il9(y,Z):Promise.resolve()};
VbZ=function(y,W){W=new _.SCI(new _.Lwy(W));_.vU&&y.prototype&&(0,_.vU)(W,y.prototype);return W};
oTd={};
PND=function(y,W,c){var Z=this;this.renderFn=y;this.listeners=W;this.context=c;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var G;this.lastSeenPlayerApi=_.VQ((G=this.playerControlsData)==null?void 0:G.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.r8a(),void 0);_.O("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){pAQ(Z).setState({playerState:-1});Z.resetRecentlyNavigatedJobId&&_.KX.cancelJob(Z.resetRecentlyNavigatedJobId);Z.recentlyNavigated=
!0;Z.resetRecentlyNavigatedJobId=_.KX.addJob(function(){Z.recentlyNavigated=!1},8,1E4)})};
PND.prototype.setState=function(y){if(!_.O("mweb_player_skip_no_op_state_changes")||!DR3(y,this.state))if(this.state=Object.assign({},this.state,y),!_.O("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)y=-1,_.O("player_controls_log_creation_killswitch")||zh9()||(y=(0,_.Tj)()),_.PA("pcu_s"),_.PA("pcu_se"),_.PA("pcu_rs"),this.renderFn(pAQ(this)),_.PA("pcu_re"),YLd(y),_.KX.addJob(function(){_.PA("pcu_ap")},8)};
var pAQ=function(y){var W;var c=_.VQ((W=y.playerControlsData)==null?void 0:W.playerApi);return Object.assign({},y.state,{setState:y.boundSetState,domMeasurements:{progressBarLineRect:y.progressBarLineRect},playerApi:c,appApi:y.context.appApi,playerContainer:y.context.playerContainer,playerControlContainer:y.context.playerControlContainer,uxConfig:y.context.uxConfig})},JEf=function(y){y.listeners.forEach(function(W){y.eventListenerCleanupFunctions.push(W.register(function(){return pAQ(y)},function(){return y.getData()}))})},
VGZ=function(y){y.eventListenerCleanupFunctions.forEach(function(W){W()});
y.eventListenerCleanupFunctions.length=0};
PND.prototype.getData=function(){return this.playerControlsData};
var eY=new _.w("abuseReportFlowState");var eog=new _.w("feedbackFormFlowState");var wAH=new _.w("inputBoxViewModel");var qcD=new _.w("flowNextStepCommand");var kGZ=new _.w("flowPrevStepCommand");var jv6=new _.w("updateFlowCommand");_.yKH=new _.w("flowStepRenderer");_.ehH=new _.w("lengthValidationRule");var qLB=new _.w("regexValidationRule");var jPH=new _.w("selectedValidationRule");var WZ6=new _.w("talkToRecsViewModel");var cK6=new _.w("creatorGoalSetUpFlowDropdownItemViewModel");var Zq6=new _.w("creatorGoalSetUpFlowDropdownViewModel");_.GxQ=new _.w("radioButtonGroupViewModel");var urd=new _.w("panelFooterViewModel");var fKH=new _.w("ypcCancelRecurrenceCommand");var oRQ=new _.w("cancellationFlowState");var xd=new _.w("premiumPurchaseFlowState");var DWf=new _.w("surveyAnswerCardRenderer");var z4B=new _.w("showMoreButtonRenderer");var Yqd;var mWd,svQ=function(){if(mWd!==void 0)return mWd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;Yqd===void 0&&(Yqd=document.createElement("template"));var Z=Yqd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return mWd=y};var uj9=function(){var y=_.v.apply(this,arguments)||this;y.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";y.goalDescription="";y.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";y.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";y.startButtonId="start-button";y.exampleButtonId="example-button";return y};
_.R(uj9,_.v);_.f=uj9.prototype;_.f.getGoalDropdownItems=function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.purchaseTargetDropdown,Zq6))==null?void 0:W.dropdownItems};
_.f.getTimerDropdownItems=function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.timerDropdown,Zq6))==null?void 0:W.dropdownItems};
_.f.getColorDropdownItems=function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.colorDropdown,Zq6))==null?void 0:W.dropdownItems};
_.f.getDropdownItemText=function(y){var W;return(W=_.g(y,cK6))==null?void 0:W.itemLabel};
_.f.getDropdownItemValue=function(y){y=_.g(y,cK6);return(y==null?void 0:y.timeLimit)||(y==null?void 0:y.purchaseTarget)||(y==null?void 0:y.eligiblePurchaseType)};
_.f.updateFlowState=function(y){_.GG(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:y}])};
_.f.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.f.updateGoalValue=function(y){this.goal=y.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.f.onTextValueChanged=function(y){this.goalDescription=y.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.f.updateTimerValue=function(y){this.timer=y.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.f.updateTierValue=function(y){this.tier=y.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.f.getButtonViewModel=function(y){y=(y==null?void 0:y.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var W,c=_.g((W=this.data)==null?void 0:W.startGoalButton,_.ri);return Object.assign({},c,{state:y})};
_.dJ.Object.defineProperties(uj9,{template:{configurable:!0,enumerable:!0,get:function(){return svQ()}}});
var wc=uj9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wc.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],wc.prototype,"goal",void 0);_.x([_.L(),_.e("design:type",Object)],wc.prototype,"goalDescription",void 0);_.x([_.L(),_.e("design:type",Object)],wc.prototype,"timer",void 0);_.x([_.L(),_.e("design:type",Object)],wc.prototype,"tier",void 0);
_.x([_.L(),_.e("design:type",Object)],wc.prototype,"startButtonId",void 0);_.x([_.L(),_.e("design:type",Object)],wc.prototype,"exampleButtonId",void 0);wc=_.x([_.n6({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],wc);_.T(wc,"yt-creator-goal-set-up-flow-view-model",function(){return svQ()},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var tv9;var nRQ;var X$Q;var bqD=function(){return _.v.apply(this,arguments)||this};
_.R(bqD,_.v);var rKS=bqD;_.x([_.L(),_.e("design:type",Object)],rKS.prototype,"data",void 0);rKS=_.x([_.n6({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],rKS);
_.T(rKS,"yt-survey-answer-card-renderer",function(){if(X$Q===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;nRQ===void 0&&(nRQ=document.createElement("template"));var Z=nRQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);X$Q=y}y=X$Q;return y},{mode:2});var FZg;var UWZ;var $Wg=function(){return _.v.apply(this,arguments)||this};
_.R($Wg,_.v);_.f=$Wg.prototype;_.f.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.f.selectedItemChanged=function(y){_.GG(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[y.feedbackToken||""]}])};
_.f.surveyAnswerCardRendererClicked=function(y){if(y.target&&_.g(y.model.item,DWf)){var W=y.target;y=_.g(y.model.item,DWf);y.onTapCommand?_.mq(W,[y.onTapCommand],W):this.data.onTapCommand&&_.mq(W,[this.data.onTapCommand],W);this.selectedItemChanged(y)}};
_.f.checkIsCancellationStyle=function(y){return y==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.f.updateSelectedItemFromBinding=function(y){this.selectedItem=y.detail.value};
var qZ=$Wg;qZ.prototype.onSelectedItemChanged=qZ.prototype.onSelectedItemChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qZ.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],qZ.prototype,"selectedItem",void 0);_.x([_.L({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.e("design:type",Boolean)],qZ.prototype,"isCancellationStyle",void 0);
_.x([_.H("selectedItem"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qZ.prototype,"onSelectedItemChanged",null);qZ=_.x([_.n6({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],qZ);
_.T(qZ,"yt-survey-flow-step-renderer",function(){if(UWZ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;FZg===void 0&&(FZg=document.createElement("template"));var Z=FZg;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);UWZ=y}y=UWZ;return y},{mode:2});var KZB=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return y};
_.R(KZB,_.v);KZB.prototype.handleSurveyFlowStepOptionChanged=function(y){this.ytdReduxBehavior.dispatch(_.jv({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:y}));_.GG(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:y}}])};
var kd=KZB;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],kd.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],kd.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kd.prototype,"data",void 0);kd=_.x([_.d({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],kd);
_.T(kd,"ytd-survey-flow-step-renderer",function(){if(tv9!==void 0)return tv9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tv9=y},{mode:1});var mRS;mRS=_.ug({avatarViewModel:_.Ks,buttonViewModel:_.OV,subscribeButtonViewModel:_.xGT,imageBannerViewModel:_.ba6});_.Oq9=_.qi(_.us6);_.eu(_.us6);var gRf;var R4H=function(){return _.v.apply(this,arguments)||this};
_.R(R4H,_.v);var j$=R4H;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],j$.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],j$.prototype,"data",void 0);j$=_.x([_.d({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],j$);
_.T(j$,"ytd-channel-history-renderer",function(){if(gRf!==void 0)return gRf;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return gRf=y},{mode:1});var lKS;var ER6=function(){return _.v.apply(this,arguments)||this};
_.R(ER6,_.v);var NuH=ER6;_.x([_.L(),_.e("design:type",Object)],NuH.prototype,"data",void 0);NuH=_.x([_.d({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],NuH);
_.T(NuH,"ytd-feature-enablement-info-renderer",function(){if(lKS!==void 0)return lKS;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lKS=y},{mode:1});var IKQ;var p$D;var PoZ=function(){var y=_.v.apply(this,arguments)||this;y.textBoxMaxLength=_.O("enable_tvod_campaign_code_integration")?15:12;return y};
_.R(PoZ,_.v);_.f=PoZ.prototype;_.f.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.f.onSubmit=function(){var y=this.data.serviceEndpoint,W=_.g(y,_.kY);W&&(W.couponCode=this.userInput,_.D2(this.hostElement,[y]))};
_.f.validate=function(){var y=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=y&&!this.data.errorMessage;this.showErrorMessage=y&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.O("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.f.computeStyle=function(y){return y};
_.f.computeShowValidationBelowInput=function(y){return y!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.f.updateUserInputFromBinding=function(y){this.userInput=y.currentTarget.value};
_.f.updateShowErrorMessageFromBinding=function(y){this.showErrorMessage=y.detail.value};
_.dJ.Object.defineProperties(PoZ.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
var ye=PoZ;ye.prototype.dataChanged=ye.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ye.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],ye.prototype,"userInput",void 0);_.x([_.L(),_.e("design:type",Boolean)],ye.prototype,"disableApplyButton",void 0);_.x([_.L(),_.e("design:type",Boolean)],ye.prototype,"hideApplyButton",void 0);
_.x([_.L(),_.e("design:type",Boolean)],ye.prototype,"hideErrorMessage",void 0);_.x([_.L(),_.e("design:type",Boolean)],ye.prototype,"showTick",void 0);_.x([_.L(),_.e("design:type",Boolean)],ye.prototype,"showErrorMessage",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.e("design:type",String)],ye.prototype,"couponStyle",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.e("design:type",Boolean)],ye.prototype,"showValidationBelowInput",void 0);_.x([_.L(),_.e("design:type",Object)],ye.prototype,"textBoxMaxLength",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ye.prototype,"dataChanged",null);
_.x([_.A("showTick","showErrorMessage","userInput"),_.e("design:type",String),_.e("design:paramtypes",[])],ye.prototype,"validationState",null);ye=_.x([_.d({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],ye);
_.T(ye,"ytd-ypc-coupon-renderer",function(){if(p$D!==void 0)return p$D;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return p$D=y},{mode:1});var JKd=function(){return _.v.apply(this,arguments)||this};
_.R(JKd,_.v);JKd.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"}}}};
JKd.prototype.computeStyle=function(y){return y};
var W6=JKd;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],W6.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.e("design:type",String)],W6.prototype,"buttonStyle",void 0);
W6=_.x([_.d({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],W6);
_.T(W6,"ytd-flow-bottom-bar-renderer",function(){if(IKQ!==void 0)return IKQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return IKQ=y},{mode:1});var VvQ;var Co9;var Qv9;var AKS=function(){return _.v.apply(this,arguments)||this};
_.R(AKS,_.v);AKS.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
AKS.prototype.focus=function(y){this.title&&_.hv(this.title,y)};
var c6=AKS;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],c6.prototype,"data",void 0);_.x([_.jj("#title"),_.e("design:type",HTMLElement)],c6.prototype,"title",void 0);c6=_.x([_.d({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],c6);
_.T(c6,"ytd-flow-top-bar-renderer",function(){if(Qv9!==void 0)return Qv9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Qv9=y},{mode:1});var h4d;var Bud;var HqZ;var Z7=function(){return _.v.apply(this,arguments)||this};
_.R(Z7,_.v);Z7.prototype.freeTextValueChanged=function(){_.GG(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
Z7.prototype.updateFreeTextValueFromBinding=function(y){this.freeTextValue=y.detail.value};
_.dJ.Object.defineProperties(Z7.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(W=(y=this.data)==null?void 0:y.responseMaxLength)!=null?W:500,Z;return((Z=this.freeTextValue)!=null?Z:"").length>=c?"maxed-out":""}}});
var GB=Z7;GB.prototype.freeTextValueChanged=GB.prototype.freeTextValueChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],GB.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],GB.prototype,"freeTextValue",void 0);_.x([_.jj("#user-input"),_.e("design:type",HTMLTextAreaElement)],GB.prototype,"input",void 0);
_.x([_.A("freeTextValue"),_.e("design:type",Object),_.e("design:paramtypes",[])],GB.prototype,"characterLimitClass",null);_.x([_.H("freeTextValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],GB.prototype,"freeTextValueChanged",null);GB=_.x([_.n6({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],GB);
_.T(GB,"yt-free-text-input-flow-step-renderer",function(){if(HqZ===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Bud===void 0&&(Bud=document.createElement("template"));var Z=Bud;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);HqZ=y}y=HqZ;return y},{mode:2});var LZf=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return y};
_.R(LZf,_.v);LZf.prototype.handleFreeTextFlowStepInputChanged=function(y){_.GG(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:y}}])};
var fr=LZf;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],fr.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],fr.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fr.prototype,"data",void 0);fr=_.x([_.d({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],fr);
_.T(fr,"ytd-free-text-input-flow-step-renderer",function(){if(h4d!==void 0)return h4d;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return h4d=y},{mode:1});var vRB;var dW6;var Sq6=function(){return _.v.apply(this,arguments)||this};
_.R(Sq6,_.v);var Tug=Sq6;_.x([_.L(),_.e("design:type",Object)],Tug.prototype,"data",void 0);Tug=_.x([_.d({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Tug);
_.T(Tug,"ytd-metadata-line-renderer",function(){if(dW6!==void 0)return dW6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dW6=y},{mode:1});var aKD=function(){return _.v.apply(this,arguments)||this};
_.R(aKD,_.v);aKD.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
var oj=aKD;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],oj.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],oj.prototype,"isMasthead",void 0);oj=_.x([_.d({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],oj);
_.T(oj,"ytd-media-product-renderer",function(){if(vRB!==void 0)return vRB;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return vRB=y},{mode:1});var xWH;var iqQ=function(){return _.v.apply(this,arguments)||this};
_.R(iqQ,_.v);iqQ.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
iqQ.prototype.onBillboardImageLoaded=function(){_.Z2(this.hostElement,"yt-refit")};
var D7=iqQ;D7.prototype.onBillboardImageLoaded=D7.prototype.onBillboardImageLoaded;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],D7.prototype,"data",void 0);_.x([_.jj("#billboardImage"),_.e("design:type",Object)],D7.prototype,"billboardImage",void 0);_.x([_.B("yt-img-shadow-loaded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],D7.prototype,"onBillboardImageLoaded",null);
D7=_.x([_.d({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],D7);
_.T(D7,"ytd-billboard-masthead-renderer",function(){if(xWH!==void 0)return xWH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return xWH=y},{mode:1});var Mv6;var e4B=function(){var y=_.v.apply(this,arguments)||this;y.smallSize=!1;return y};
_.R(e4B,_.v);var zB=e4B;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],zB.prototype,"ytComponentBehaviorType",void 0);_.x([_.L(),_.e("design:type",Object)],zB.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zB.prototype,"smallSize",void 0);zB=_.x([_.d({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],zB);
_.T(zB,"ytd-bullet-formatted-string",function(){if(Mv6!==void 0)return Mv6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Mv6=y},{mode:1});var w$f;var qq3=function(){return _.v.apply(this,arguments)||this};
_.R(qq3,_.v);qq3.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
var YG=qq3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],YG.prototype,"data",void 0);YG=_.x([_.d({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],YG);
_.T(YG,"ytd-offer-detail-renderer",function(){if(w$f!==void 0)return w$f;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return w$f=y},{mode:1});var kxZ;var jW6=function(){return _.v.apply(this,arguments)||this};
_.R(jW6,_.v);jW6.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"}}}};
var mi=jW6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mi.prototype,"data",void 0);mi=_.x([_.d({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],mi);
_.T(mi,"ytd-offer-detail-step-renderer",function(){if(kxZ!==void 0)return kxZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kxZ=y},{mode:1});var yqg;var WvS=function(){var y=_.v.apply(this,arguments)||this;y.isInOfferModule=!1;return y};
_.R(WvS,_.v);_.f=WvS.prototype;_.f.computeHasEndpoint=function(){var y;return!((y=this.data)==null||!y.onClickCommand)};
_.f.dataChanged=function(){var y;if((y=this.data)==null?0:y.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")};
_.f.detached=function(){var y;if((y=this.data)==null?0:y.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.f.handleClickEvent=function(){var y;if((y=this.data)==null?0:y.onClickCommand){var W;this.componentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand)}};
_.f.onContentKeyDown=function(y){y.key==="Enter"?this.handleClickEvent(y):y.key===" "&&y.preventDefault()};
_.f.onContentKeyUp=function(y){y.key===" "&&this.handleClickEvent(y)};
var s8=WvS;s8.prototype.dataChanged=s8.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],s8.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],s8.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],s8.prototype,"data",void 0);_.x([_.L({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],s8.prototype,"hasEndpoint",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],s8.prototype,"isInOfferModule",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],s8.prototype,"dataChanged",null);s8=_.x([_.d({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],s8);
_.T(s8,"ytd-channel-masthead-renderer",function(){if(yqg!==void 0)return yqg;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return yqg=y},{mode:1});var cq9;var ZZS=function(){var y=_.v.apply(this,arguments)||this;y.thumbnailObjectFit="CONTAIN";y.thumbnailObjectPosition="LEFT";y.isExpanded=!1;return y};
_.R(ZZS,_.v);_.f=ZZS.prototype;_.f.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.f.dataChanged=function(){this.resetStates()};
_.f.computeisTapOnOfferInfoContainerEnabled=function(){var y;return((y=this.data)==null?void 0:y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.f.onExpandBtnClick=function(){var y,W=_.g((y=this.data)==null?void 0:y.showMoreButtonRenderer,z4B);W&&_.yk(_.Zz(),W.trackingParams);this.isExpanded=!this.isExpanded};
_.f.onOfferInfoClick=function(y){this.isTapOnOfferInfoContainerEnabled&&(_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Qf(_.Aq(y)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.f.onBottomBarClick=function(){this.executeTapCommand()};
_.f.executeTapCommand=function(){var y,W=(y=this.data)==null?void 0:y.tapCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.f.resetStates=function(){this.isExpanded=!1};
_.dJ.Object.defineProperties(ZZS.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var y=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),W,c,Z;return((W=this.data)==null?void 0:W.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&y&&!!((c=this.data)==null?0:(Z=c.benefits)==null?0:Z.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((W=_.g((y=this.data)==null?void 0:y.showMoreButtonRenderer,z4B))==null?void 0:W.showMoreButtonTitle)||((c=this.data)==null?void 0:c.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((W=_.g((y=this.data)==null?void 0:y.showMoreButtonRenderer,z4B))==null?void 0:W.showLessButtonTitle)||((c=this.data)==null?void 0:c.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var y;return(y=this.showLessButtonTitle)!=null?y:""}var W;return(W=this.showMoreButtonTitle)!=null?W:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?void 0:y.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((W=this.data)==null?0:W.footerTitle)||((c=this.data)==null?0:c.footerSubtitle))}}});
var u4=ZZS;u4.prototype.dataChanged=u4.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",String)],u4.prototype,"thumbnailObjectFit",void 0);
_.x([_.L(),_.e("design:type",String)],u4.prototype,"thumbnailObjectPosition",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.e("design:type",Boolean)],u4.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.x([_.L(),_.e("design:type",Object)],u4.prototype,"isExpanded",void 0);_.x([_.L(),_.e("design:type",Object)],u4.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.footerIcon)"}),_.e("design:type",String)],u4.prototype,"icon",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],u4.prototype,"dataChanged",null);_.x([_.A("data.thumbnail"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u4.prototype,"hasThumbnail",null);_.x([_.A("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u4.prototype,"enableExpandButton",null);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u4.prototype,"enableOfferContentIcon",null);_.x([_.A("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.e("design:type",Object),_.e("design:paramtypes",[])],u4.prototype,"showMoreButtonTitle",null);_.x([_.A("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.e("design:type",Object),_.e("design:paramtypes",[])],u4.prototype,"showLessButtonTitle",null);
_.x([_.A("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.e("design:type",String),_.e("design:paramtypes",[])],u4.prototype,"expandedBtnText",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],u4.prototype,"enableBottomBar",null);u4=_.x([_.d({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],u4);
_.T(u4,"ytd-offer-card-renderer",function(){if(cq9!==void 0)return cq9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return cq9=y},{mode:1});var G2g;var fld=function(){return _.v.apply(this,arguments)||this};
_.R(fld,_.v);fld.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"}}}};
fld.prototype.onClick=function(y){if(!_.Cx(y.composedPath()||[],this.hostElement,["A".toString()])){var W,c;if((y=(c=_.g((W=this.data)==null?void 0:W.actionButton,_.RU))==null?void 0:c.command)&&!this.ytComponentBehavior.resolveCommand(y)){var Z;(Z=_.Zz())==null||Z.clickCommand(y);_.D2(this.hostElement,[y])}}};
var t_=fld;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],t_.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],t_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],t_.prototype,"data",void 0);t_=_.x([_.d({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],t_);
_.T(t_,"ytd-offer-content-renderer",function(){if(G2g!==void 0)return G2g;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return G2g=y},{mode:1});var o$D;var DOH=function(){return _.v.apply(this,arguments)||this};
_.R(DOH,_.v);DOH.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.dJ.Object.defineProperties(DOH.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.title)||!((W=this.data)==null||!W.description)}}});
var nr=DOH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nr.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],nr.prototype,"hasHeaderData",null);nr=_.x([_.d({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],nr);
_.T(nr,"ytd-offer-section-renderer",function(){if(o$D!==void 0)return o$D;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return o$D=y},{mode:1});var zz9;var YtS=function(){return _.v.apply(this,arguments)||this};
_.R(YtS,_.v);
YtS.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"}}}}};
var XT=YtS;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],XT.prototype,"data",void 0);XT=_.x([_.d({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],XT);
_.T(XT,"ytd-offer-selection-step-renderer",function(){if(zz9!==void 0)return zz9;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return zz9=y},{mode:1});var mOQ;var sWf=function(){return _.v.apply(this,arguments)||this};
_.R(sWf,_.v);sWf.prototype.computeStyle=function(y){return y};
sWf.prototype.computeImageWidth=function(y){return y==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
var b4=sWf;_.x([_.L({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.e("design:type",String)],b4.prototype,"containerStyle",void 0);_.x([_.L({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.e("design:type",String)],b4.prototype,"imageWidth",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],b4.prototype,"data",void 0);b4=_.x([_.d({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],b4);
_.T(b4,"ytd-confirmation-masthead-renderer",function(){if(mOQ!==void 0)return mOQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mOQ=y},{mode:1});var uyH;var tdd=function(){return _.v.apply(this,arguments)||this};
_.R(tdd,_.v);tdd.prototype.computeStyle=function(y){return y};
var r0=tdd;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],r0.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],r0.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.e("design:type",String)],r0.prototype,"containerStyle",void 0);r0=_.x([_.d({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],r0);
_.T(r0,"ytd-purchase-complete-detail-renderer",function(){if(uyH!==void 0)return uyH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return uyH=y},{mode:1});var n$6;var FT=function(){var y=_.v.apply(this,arguments)||this;y.scriptsAppended=!1;return y};
_.R(FT,_.v);FT.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"}}}};
FT.prototype.onDataChanged=function(){var y=this.get("data.gtmId");y&&(_.zI(y,_.Nn("GL","")),this.setupConversionTracking())};
FT.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var y=document.createElement("noscript");y.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(y);this.scriptsAppended=!0}};
var U8=FT;U8.prototype.onDataChanged=U8.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],U8.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],U8.prototype,"scriptsAppended",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],U8.prototype,"onDataChanged",null);U8=_.x([_.d({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],U8);
_.T(U8,"ytd-purchase-complete-step-renderer",function(){if(n$6!==void 0)return n$6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return n$6=y},{mode:1});var XKQ;var bZB=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(bZB,_.v);bZB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var $G=bZB;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$G.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$G.prototype,"darkerDarkTheme",void 0);$G=_.x([_.d({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],$G);
_.T($G,"ytd-ypc-transaction-error-message-renderer",function(){if(XKQ!==void 0)return XKQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XKQ=y},{mode:1});var rq3;var Fv9;var Kr=function(){var y=_.v.apply(this,arguments)||this;y.handlePhoneVerificationSuccess=function(W){if(y.isValidPhoneVerificationCompletionMessageEvent(W)){var c;((c=y.data)==null?0:c.nextStepCommand)&&y.ytComponentBehavior.resolveCommand(y.data.nextStepCommand)}};
return y};
_.R(Kr,_.v);Kr.prototype.isValidPhoneVerificationCompletionMessageEvent=function(y){if(y.data!=="yt-phone-verification-complete")return!1;y=_.vI(y.origin);return y!==null&&y.includes("youtube.com")};
Kr.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Kr.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
var O8=Kr;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],O8.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],O8.prototype,"data",void 0);O8=_.x([_.n6({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],O8);
_.T(O8,"yt-feature-enablement-soft-entry-renderer",function(){if(Fv9===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;rq3===void 0&&(rq3=document.createElement("template"));var Z=rq3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Fv9=y}y=Fv9;return y},{mode:1});var UO9;var $O3;var Kv9;var OZd;var g$6=function(){return _.v.apply(this,arguments)||this};
_.R(g$6,_.v);var RzB=g$6;_.x([_.L(),_.e("design:type",Object)],RzB.prototype,"data",void 0);RzB=_.x([_.n6({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],RzB);
_.T(RzB,"yt-benefits-item-renderer",function(){if(OZd===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Kv9===void 0&&(Kv9=document.createElement("template"));var Z=Kv9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);OZd=y}y=OZd;return y},{mode:2});var llS;var E$6;var NMD=function(){return _.v.apply(this,arguments)||this};
_.R(NMD,_.v);NMD.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
NMD.prototype.computeisWithoutPadding=function(){var y;return((y=this.data)==null?void 0:y.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
var g0=NMD;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],g0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],g0.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.e("design:type",Boolean)],g0.prototype,"isWithoutPadding",void 0);g0=_.x([_.n6({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],g0);
_.T(g0,"yt-benefits-section-renderer",function(){if(E$6===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;llS===void 0&&(llS=document.createElement("template"));var Z=llS;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);E$6=y}y=E$6;return y},{mode:2});var Ild=function(){return _.v.apply(this,arguments)||this};
_.R(Ild,_.v);Ild.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Ild.prototype.computeisUsingLargeWidth=function(){var y;return((y=this.data)==null?void 0:y.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var Rj=Ild;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Rj.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.e("design:type",Boolean)],Rj.prototype,"isUsingLargeWidth",void 0);Rj=_.x([_.n6({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Rj);
_.T(Rj,"yt-benefits-flow-step-renderer",function(){if($O3===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;UO9===void 0&&(UO9=document.createElement("template"));var Z=UO9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);$O3=y}y=$O3;return y},{mode:2});var pKS;var P0Q;var Jq3=function(){return _.v.apply(this,arguments)||this};
_.R(Jq3,_.v);Jq3.prototype.checkIsUsingLargeWidth=function(){var y;return((y=this.data)==null?void 0:y.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var l4=Jq3;_.x([_.L(),_.e("design:type",Object)],l4.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.x([_.L({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.e("design:type",Boolean)],l4.prototype,"isUsingLargeWidth",void 0);l4=_.x([_.n6({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],l4);
_.T(l4,"yt-confirmation-flow-step-renderer",function(){if(P0Q===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;pKS===void 0&&(pKS=document.createElement("template"));var Z=pKS;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);P0Q=y}y=P0Q;return y},{mode:2});var VdQ;var C09;var QW6=function(){return _.v.apply(this,arguments)||this};
_.R(QW6,_.v);var Aqg=QW6;_.x([_.L(),_.e("design:type",Object)],Aqg.prototype,"data",void 0);Aqg=_.x([_.n6({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Aqg);
_.T(Aqg,"yt-info-flow-step-renderer",function(){if(C09===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;VdQ===void 0&&(VdQ=document.createElement("template"));var Z=VdQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);C09=y}y=C09;return y},{mode:2});var hzd;var BM3;var HZZ=function(){return _.v.apply(this,arguments)||this};
_.R(HZZ,_.v);var Lv6=HZZ;_.x([_.L(),_.e("design:type",Object)],Lv6.prototype,"data",void 0);Lv6=_.x([_.n6({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Lv6);
_.T(Lv6,"yt-info-list-flow-step-renderer",function(){if(BM3===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;hzd===void 0&&(hzd=document.createElement("template"));var Z=hzd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);BM3=y}y=BM3;return y},{mode:2});var v$Z=_.Ax(function(y){var W=y.data;return _.X("styled-text-view-model",{class:_.Mi("ytStyledTextViewModelHost",function(){return lUS(W().fontAttributes)},function(){return Rh6(W().color)})},_.X(_.Da,{text:function(){return W().text},
ariaLabel:function(){var c,Z,G;return(G=(c=W().accessibility)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label)!=null?G:""}}))},"ue");
v$Z.idomCompat=!0;var dOd=_.Ax(function(y){var W=function(){var G,D,Y,u;return(u=(Y=(G=y.alt)==null?void 0:G.call(y))!=null?Y:(D=y.data().accessibilityData)==null?void 0:D.label)!=null?u:""},c=function(){return y.data().imageWidth},Z=function(){return y.data().imageHeight};
return _.X("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.X(_.YN,{cond:function(){var G=y.data();if(G){var D,Y,u;var t=((D=_.U().resolve(_.xN(_.EH)))==null?0:D())?(Y=G.imageDark)!=null?Y:G.imageLight:(u=G.imageLight)!=null?u:G.imageDark}else t=void 0;return t},
then:function(G){return _.X(_.J3,Object.assign({},y,{data:G,alt:W,targetWidth:c,targetHeight:Z,preserveHeight:!0,preserveWidth:!0}))}}))},"ve");
dOd.idomCompat=!0;var E8=_.Ax(function(y){var W=y.data;y=_.Jx(function(){return W().slots},[]);
var c=_.Jx(function(){return W().layoutProperties},{}),Z=_.U().resolve(_.I9);
return _.X("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:UR3(c,Z)},_.X(_.mC,{each:y,keyBy:"INDEX"},function(G){return _.X("div",{class:"ytContainerLayoutViewModelSlot",style:UR3(function(){return G().layoutProperties},Z)},_.X(_.bg,{data:function(){return G().contents}},{containerLayoutViewModel:E8,
badgeViewModel:_.j7,buttonViewModel:_.OV,styledTextViewModel:v$Z,contentPreviewImageViewModel:function(D){return _.X(_.y9,{data:D.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(D){return _.X(dOd,{data:D.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"we");
E8.idomCompat=!0;var St6=_.Ax(function(y){var W=y.data;var c=y.stateFns;var Z=function(){var b=W(),r=b.productId;return!(!b.clearGroupId&&!r)},G=function(){var b=W(),r=b.clearGroupId;
return(b=b.productId)?c().isProductSelected(b):r?c().getSelectedProductByGroupId(r)==null:!1},D=function(){var b=W(),r=b.clearGroupId;
if(b=b.productId)c().onProductSelected(b);else if(r)c().onClearGroupSelected(r)},Y=function(){var b=W(),r=b.clearGroupId;
if(b=b.productId){var F;return"group:"+(((F=c().getProductById(b))==null?void 0:F.groupId)||"")}return r?"group:"+r:""},u=_.Jx(function(){return W().header},[]),t=_.Jx(function(){return W().body},[]);
return _.X("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.X(_.YN,{cond:function(){return u().length>0||Z()},
then:function(){return _.X("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.X("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.X(_.bg,{data:u},{containerLayoutViewModel:function(b){return _.X("div",{class:"ytPdpCardSectionViewModelContentItem"},_.X(E8,{data:b.data}))},
styledTextViewModel:function(b){return _.X("div",{class:"ytPdpCardSectionViewModelContentItem"},_.X(v$Z,{data:b.data}))}})),_.X(_.YN,{cond:Z,
then:function(){return _.X("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.X(_.H_V,{checked:G,name:Y,onChange:D}))}}))}}),_.X(_.YN,{cond:function(){return t().length>0},
then:function(){return _.X("div",null,_.X(_.bg,{data:t},{containerLayoutViewModel:function(b){return _.X("div",{class:"ytPdpCardSectionViewModelContentItem"},_.X(E8,{data:b.data}))}}))}}))},"xe");
St6.idomCompat=!0;var TMH=_.Ax(function(y){var W=y.data;var c=y.stateFns;return _.X("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.X(_.YN,{cond:function(){return W().banner},
then:function(Z){return _.X("div",{class:"ytPdpCardViewModelBanner"},_.X(_.Da,{text:Z}))}}),_.X(_.bg,{data:function(){return W().sections}},{pdpCardSectionViewModel:function(Z){Z=Z.data;
var G={};return _.X("div",{class:_.Mi("ytPdpCardViewModelSectionContainer",(G.ytPdpCardViewModelShowDividers=function(){return W().showDividers},G))},_.X(St6,{data:Z,
stateFns:c}))}}))},"ye");
TMH.idomCompat=!0;var al9=_.Ax(function(y){var W=y.data;var c=y.isOverlay;y={};return _.X("pdp-masthead-view-model",{class:_.Mi("ytPdpMastheadViewModelHost",(y.ytPdpMastheadViewModelIsOverlay=c,y))},_.X(_.bg,{data:function(){return W().image}},{contentPreviewImageViewModel:_.y9,
themedImageViewModel:function(Z){return _.X(dOd,{data:Z.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.X(_.YN,{cond:function(){return W().title},
then:function(Z){return _.X("h1",{class:"ytPdpMastheadViewModelHeading"},_.X(_.Da,{text:Z,isOverlay:c}))}}),_.X(_.mC,{each:function(){var Z;
return(Z=W().finePrint)!=null?Z:[]}},function(Z){return _.X("div",{class:"ytPdpMastheadViewModelFinePrint"},_.X(_.Da,{text:Z,
isOverlay:c}))}))},"ze");
al9.idomCompat=!0;var xO9=_.Ax(function(y){var W=y.data;var c=y.stateFns;return _.X("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.X(_.mC,{each:function(){var Z=c().getSelectedPricingOptions().map(function(D){return D.pricingOptionId}),G=c().getSelectedProductByGroupId(_.VT(W().groupId));
return G?G.pricingOptions.map(function(D){return{pricingOption:D,isSelected:Z.includes(D.pricingOptionId)}}):(_.gC(Error("Gj`"+_.VT(W().groupId))),[])},
keyBy:"INDEX"},function(Z){return _.X("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.X("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.X(_.bg,{data:function(){return Z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:E8})),_.X("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.X(_.H_V,{checked:function(){return Z().isSelected},
onClick:function(){c().onPricingOptionSelected(Z().pricingOption.pricingOptionId)}})))}))},"Ae");
xO9.idomCompat=!0;var iZ9=_.Ax(function(y){var W=y.data;var c=y.stateFns;return _.X("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.X(_.bg,{data:function(){var Z,G;return(G=(Z=c().getSelectedPricingOptions()[0])==null?void 0:Z.primaryButton)!=null?G:W().emptyStateButton}},{buttonViewModel:_.OV}))},"Be");
iZ9.idomCompat=!0;var Mdd=_.Ax(function(y){var W=y.stateFns;return _.X("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.X(_.bg,{data:function(){return W().getSelectedPricingOptions().flatMap(function(c){return c.summaryLines}).filter(function(c){return!!c})}},{containerLayoutViewModel:function(c){return _.X("div",{class:"ytPdpSummaryViewModelLineItem"},_.X(E8,{data:c.data}))}}))},"Ce");
Mdd.idomCompat=!0;var ezB=_.Ax(function(y){var W=y.data;y={};return _.X("divider-view-model",{class:_.Mi("divider-view-model-wiz",(y["divider-view-model-wiz__inset-thin-padding"]=function(){return W().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},y))},_.X("div",{class:_.Mi("divider-view-model-wiz__base-divider",function(){return AGZ(W().dividerStyle)}),
style:_.cF({"background-color":function(){return W().backgroundColor?_.$$(W().backgroundColor):void 0}})}))},"De");
ezB.idomCompat=!0;var wKd=_.Ax(function(y){function W(V){var Q=Y();_.PQ(_.$Y("pdpStateEntity",Q,{key:Q,selectedPricingOptions:V}))}
var c=y.data;var Z=y.internalScrolling;var G=y.stateFnsForTesting;var D=_.Jx(function(){return c().allProducts},[]),Y=_.Jx(function(){return c().pdpStateEntityKey},""),u=_.Zx(ETd,Y),t=_.Yk(function(){_.gV(!0);
var V;return(V=G==null?void 0:G())!=null?V:QiQ(u,D,W)},void 0,"POBqwe"),b=_.Jx(function(){return c().body},[]),r=_.Jx(function(){return c().columnBreakHints},[]),F=function(){return c().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},K=function(){return F()||c().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},l=_.Yk(function(){var V=_.a3(c().background),Q;
if(V==null?0:(Q=V.sources)==null?0:Q.length){var S=S===void 0?!0:S;V=_.udy(void 0,V.sources,void 0,S,S?1E3:void 0,S?void 0:1E3)}else V=null;return V},void 0,"BkCmEd");
y=_.cF({"--pdp-view-model-background":function(){return l()?"url("+l()+")":void 0}});
var N={};Z=_.Mi("ytPdpViewModelHost",(N.ytPdpViewModelHasBackground=function(){return K()||!!l()},N.ytPdpViewModelHasDarkBackground=K,N.ytPdpViewModelHasScrim=F,N.ytPdpViewModelInternalScrolling=_.Jx(Z,!1),N));
var P=function(V){var Q={};return _.Mi("ytPdpViewModelItem",(Q.ytPdpViewModelFullBleed=function(){return _.oGD(V())==="dividerViewModel"||_.oGD(V())==="sectionHeaderViewModel"},Q.ytPdpViewModelNoVerticalPadding=function(){return _.oGD(V())==="sectionHeaderViewModel"},Q))};
_.rj(function(){var V=c().onStartCommand;if(V&&(V=_.UH(V))){var Q;(Q=_.U().resolve(_.i1))==null||Q.resolveCommand(V)}});
return _.X("pdp-view-model",{class:Z,style:y},_.X("div",{class:"ytPdpViewModelColumnContainer"},_.X(_.mC,{each:function(){return hhf(b(),r())},
keyBy:"INDEX"},function(V){return _.X("div",{class:"ytPdpViewModelColumn"},_.X(_.bg,{data:V},{containerLayoutViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(E8,{data:Q}))},
dividerViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(ezB,{data:Q}))},
pdpCardViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(TMH,{data:Q,
stateFns:t}))},
pdpMastheadViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(al9,{data:Q,
isOverlay:K}))},
pdpPricingOptionSelectorViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(xO9,{data:Q,
stateFns:t}))},
pdpPrimaryButtonViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(iZ9,{data:Q,
stateFns:t}))},
pdpSummaryViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(Mdd,{data:Q,
stateFns:t}))},
sectionHeaderViewModel:function(Q,S){Q=Q.data;return _.X("div",{class:P(function(){return V()[S()]})},_.X(_.hr,{data:Q}))}}))})))},"Ee");
wKd.idomCompat=!0;_.A3(wKd,"pdp-view-model",{props:{data:_.Ix,stateFnsForTesting:_.QE,internalScrolling:_.QE}});var qtf=_.Ax(function(y){var W=y.data;var c=y.className;var Z=_.Zx(_.kD,function(){return W().flowStateEntityKey});
return _.X("ytm-premium-purchase-button-renderer",{class:_.Mi("yt-premium-purchase-button-renderer",c)},_.X(_.bg,{data:function(){var G;return(G=_.g(Z(),xd))==null?void 0:G.primaryButtonOverride}},{buttonRenderer:function(G){return _.X(_.dx,{data:G.data,
className:c})},
buttonViewModel:function(G){return _.X(_.OV,{data:G.data,className:c})}}))},"Fe");
qtf.idomCompat=!0;var k2B=_.Ax(function(y){var W=y.data;var c=function(){return Bz9(W().style)},Z=_.Mi("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c),G=_.Mi("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c);
return _.X("yt-flow-bottom-bar-renderer",{class:_.Mi("yt-flow-bottom-bar-renderer",y.className,c)},_.X(_.bg,{data:function(){return W().secondaryButton}},{buttonRenderer:function(D){return _.X(_.dx,{data:D.data,
className:G})},
buttonViewModel:function(D){return _.X(_.OV,{data:D.data,className:G})},
premiumPurchaseButtonRenderer:function(D){return _.X(qtf,{data:D.data,className:G})}}),_.X(_.bg,{data:function(){return W().primaryButton}},{buttonRenderer:function(D){return _.X(_.dx,{data:D.data,
className:Z})},
buttonViewModel:function(D){return _.X(_.OV,{data:D.data,className:Z})},
premiumPurchaseButtonRenderer:function(D){return _.X(qtf,{data:D.data,className:Z})}}))},"Ge");
k2B.idomCompat=!0;_.A3(k2B,"yt-flow-bottom-bar-renderer",{props:{data:_.Ix,className:_.Ix}});var j5H=_.Ax(function(y){return _.X("yt-offer-summary-renderer",{class:_.Mi(y.className,"ytOfferSummaryRendererHost")},_.X("div",{class:"ytOfferSummaryRendererTextContainer"},_.X("div",{class:"ytOfferSummaryRendererEyebrowText"},_.X(_.Da,{text:function(){return y.data().eyebrowText}})),_.X("div",{class:"ytOfferSummaryRendererTitle"},_.X(_.Da,{text:function(){return y.data().title}})),_.X("div",{class:"ytOfferSummaryRendererSubtitle"},_.X(_.Da,{text:function(){return y.data().subtitle}})),_.X("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.X(_.mC,{each:function(){var W;
return(W=y.data().featureListData)!=null?W:[]}},function(W){var c;
return _.X("div",{class:"ytOfferSummaryRendererFeatureList"},_.X(_.Gb,{icon:(c=W.icon)==null?void 0:c.iconType,className:W.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.X("div",{class:"ytOfferSummaryRendererFeatureListText"},_.X(_.Da,{text:W.text})))})),_.X("div",{class:"ytOfferSummaryRendererDescription"},_.X(_.Da,{text:function(){return y.data().description}}))))},"He");_.A3(_.Ax(function(y){var W={};W=_.Mi("ytOfferSummaryFlowStepRendererHost",(W.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=y.shouldDisableHeaderTopMargin,W));return _.X("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:W},_.X("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.X("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.X(_.Da,{text:function(){return y.data().header}})),_.X("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.X(_.Da,{text:function(){return y.data().subtitle}}))),_.X("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.X(_.bg,{data:function(){return y.data().offerSummary}},{offerSummaryRenderer:function(c){return _.X(j5H,{data:c.data,
className:y.flowClassName})}})))},"Ie"),"yt-offer-summary-flow-step-renderer",{props:{data:_.QE,
flowClassName:_.QE,flowStateEntityKey:_.QE,shouldDisableHeaderTopMargin:_.QE}});var yxZ=_.Ax(function(y){var W=y.data;var c=y.className;var Z=y.flowStateEntityKey;var G=y.selectionStepStyle;y=_.j9(function(t){var b=W(),r=Z==null?void 0:Z();t.target&&(t.stopPropagation(),t=r||"",r=_.kD(_.I5().getState(),t),b=Object.assign({},r,{premiumPurchaseFlowState:{selectedOptionId:b.optionId,primaryButtonOverride:b.primaryButtonOverride}}),_.I5().dispatch(_.o3("flowStateEntity",t,b)));return!1});
var D=function(){return(Z==null?void 0:Z())||""},Y=_.Zx(_.kD,D);
_.rj(function(){var t=W(),b=D(),r=Y();!_.g(r,xd)&&t.defaultSelected&&b!==""&&t.primaryButtonOverride&&HOS(t.optionId||"",b,t.primaryButtonOverride,r)});
var u={};return _.X("ytm-option-item-renderer",{"on:click":y,class:_.Mi(c,"ytm-option-item-renderer",(u["ytm-option-item-renderer--lp2-style"]=function(){return(G==null?void 0:G())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},u))},_.X("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.X("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var t=W(),b=D(),r=Y();r=_.g(r,xd);return(r?(r==null?void 0:r.selectedOptionId)||"":t.defaultSelected&&b!==""?(t==null?void 0:t.optionId)||"":"")===W().optionId},
name:("input"+_.lL(_.Ed)).toString()})),_.X("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.X(_.YN,{cond:function(){return W().eyebrowText},
then:function(){return _.X("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.X(_.Da,{text:function(){return W().eyebrowText}}))}}),_.X("div",{class:"ytm-option-item-renderer__option-item-title"},_.X(_.Da,{text:function(){return W().title}})),_.X("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.X(_.Da,{text:function(){return W().subtitle}})),_.X("div",{class:"ytm-option-item-renderer__option-item-description"},_.X(_.Da,{text:function(){return W().description}}))))},
"Je");var WDH=_.Ax(function(y){var W=y.data;var c=y.flowClassName;var Z=y.flowStateEntityKey;var G=y.selectionStepStyle;return _.X("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.X("div",{class:"yt-option-section-renderer__option-section-header-section"},_.X("div",{class:"yt-option-section-renderer__option-section-header"},_.X(_.Da,{text:function(){return W().title}}),_.X(_.bg,{data:function(){return W().titleBadge}},{badgeViewModel:function(D){return _.X(_.j7,
{data:D.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.X(_.YN,{cond:function(){return W().subtitle},
then:function(){return _.X("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.X(_.Da,{text:function(){return W().subtitle}}))}}),_.X(_.YN,{cond:function(){return W().featureListData},
then:function(D){return _.X("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.X(_.mC,{each:D},function(Y){var u;return _.X("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.X(_.Gb,{icon:(u=Y.icon)==null?void 0:u.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"}),_.X("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.X(_.Da,{text:Y.text})))}))}}),_.X(_.mC,{each:function(){return W().sectionDisclaimers||[]}},function(D){return _.X("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.X(_.Da,{text:D}))})),_.X(_.bg,{data:function(){return W().optionItems}},{optionItemRenderer:function(D){return _.X("div",{class:"yt-option-section-renderer__option-item"},_.X(yxZ,{data:D.data,
className:c,flowStateEntityKey:Z,selectionStepStyle:G}))}}),_.X(_.YN,{cond:function(){return W().offerText},
then:function(){return _.X("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.X(_.Da,{text:function(){return W().offerText}}))}}))},"Ke");
WDH.idomCompat=!0;var cx6=_.Ax(function(y){var W=y.data;var c=y.flowClassName;var Z=y.flowStateEntityKey;y=y.isDesktop;var G=function(){var b;return(b=W().flowStateEntityKey)!=null?b:Z==null?void 0:Z()},D=function(){return(G==null?void 0:G())||""},Y=function(){return W().style},u=_.Zx(_.kD,D);
_.rj(function(){var b=W(),r=D(),F=u();!_.g(F,xd)&&b.noPreselect&&r!==""&&b.defaultButtonOverride&&HOS("default",r,b.defaultButtonOverride,F)});
var t={};return _.X("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Mi("ytm-option-selection-flow-step-renderer",(t["ytm-option-selection-flow-step-renderer--desktop"]=y,t["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return W().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},t))},_.X("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"},
_.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.X(_.Da,{text:function(){return W().header}})),_.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.X(_.Da,{text:function(){return W().subtitle}}))),_.X(_.bg,{data:function(){return W().optionItems||[]}},{optionItemRenderer:function(b){return _.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.X(yxZ,{data:b.data,
className:c,flowStateEntityKey:G,selectionStepStyle:Y}))},
optionSectionRenderer:function(b){return _.X("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.X(WDH,{data:b.data,flowClassName:c,flowStateEntityKey:G,selectionStepStyle:Y}))}}))},"Le");
cx6.idomCompat=!0;_.A3(cx6,"yt-option-selection-flow-step-renderer",{props:{data:_.Ix,flowClassName:_.Ix,flowStateEntityKey:_.Ix,isDesktop:_.Ix}});var L43,vT3;_.NG=_.Ax(function(y){var W=_.V0(y,{type:1,disablePadding:!1,disablePrimaryButton:!1}),c=W.data,Z=W.type;y=W.disablePadding;var G=W.disablePrimaryButton,D=W.onClickPrimaryButton,Y=function(){return c().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},u=function(){return{disabled:G(),
state:G()?"disabled":"active"}},t=function(){return c().leadingLabel||c().trailingLabel};
W={};return _.X("yt-panel-footer-view-model",{class:_.Mi("yt-panel-footer-view-model-wiz",(W["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return c().shouldHideDivider},W["yt-panel-footer-view-model-wiz--disable-padding"]=y,W))},_.X(_.YN,{cond:t,
then:function(){var b={},r={};return _.X("div",{class:_.Mi("yt-panel-footer-view-model-wiz__text-row",(b["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var F=c();return!(!F.leadingLabel&&!F.trailingLabel||!F.primaryButton&&!F.secondaryButton)},b))},_.X(_.Da,{text:function(){return c().leadingLabel},
className:_.Mi((r["yt-panel-footer-view-model-wiz--text-padding"]=t,r))}),_.X(_.Da,{text:function(){return c().trailingLabel}}))}}),_.X(_.YN,{cond:Y,
then:function(){var b={};return _.X("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.X("div",{class:_.Mi("yt-panel-footer-view-model-wiz__primary-button",(b["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return c().secondaryButton},b))},_.X(_.bg,{data:function(){return c().primaryButton}},{buttonViewModel:function(r){return _.X(_.OV,{data:r.data,
buttonOverrides:u,onClick:D})}})),_.X(_.bg,{data:function(){return c().secondaryButton}},{buttonViewModel:_.OV}))}}),_.X(_.YN,{cond:function(){return!Y()},
then:function(){var b={},r={},F={};return _.X("div",{class:_.Mi("yt-panel-footer-view-model-wiz__button-row",(b["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===Z()},b))},_.X("div",{class:_.Mi("yt-panel-footer-view-model-wiz__button-row--left-button",(r["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===Z()},r["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!c().secondaryButton||0===Z()},r["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===Z()},r))},_.X(_.bg,{data:function(){return c().secondaryButton}},{buttonViewModel:_.OV})),_.X("div",{class:_.Mi("yt-panel-footer-view-model-wiz__primary-button",(F["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===Z()||1===Z()},F["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===Z()},F))},_.X(_.bg,{data:function(){return c().primaryButton}},{buttonViewModel:function(K){return _.X(_.OV,{data:K.data,
buttonOverrides:u,onClick:D})}})))}}))},"Me");
_.NG.idomCompat=!0;_.Z6d=_.Ax(function(y){y=_.V0(y,{disablePadding:!1});var W=y.data,c=y.disablePadding;y=_.aU6(function(){return W().formId});
var Z=y.onSubmit,G=y.isValid,D=y.isSubmitting;return _.X("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.X(_.bg,{data:function(){return W().panelFooter}},{panelFooterViewModel:function(Y){return _.X(_.NG,{data:Y.data,
onClickPrimaryButton:function(){Z()},
disablePrimaryButton:function(){return!G()||D()},
disablePadding:c})}}))},"Ne");_.A3(_.Z6d,"yt-form-footer-view-model",{props:{data:_.Ix,disablePadding:_.Ix}});_.A3(_.Ax(function(y){return _.X("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.X("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.X(_.YN,{cond:function(){var W;return(W=y.data())==null?void 0:W.image},
then:function(W){return _.X(_.J3,{data:W,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.X("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.X(_.Da,{text:function(){var W;
return(W=y.data())==null?void 0:W.title}})),_.X("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.X(_.Da,{text:function(){var W;
return(W=y.data())==null?void 0:W.subtitle}})),_.X("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.X(_.bg,{data:function(){var W;
return(W=y.data())==null?void 0:W.viewTipsButton}},{buttonViewModel:_.OV}))))},"Oe"),"yt-contributor-zero-state-view-model",{props:{data:_.Ix}});var GsD=_.Ax(function(y){var W=_.Zx(xR6,_.Jx(function(){var c;return(c=y.data())==null?void 0:c.noteFeedEntityKey},""));
return _.X("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.X(_.YN,{cond:function(){var c,Z;return(c=y.data())==null?void 0:(Z=c.noteData)==null?void 0:Z.isPinned},
then:function(){return _.X(_.Gb,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.X(_.Da,{text:function(){var c,Z;
return(c=y.data())==null?void 0:(Z=c.noteData)==null?void 0:Z.headerText}}),_.X("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.X(_.Da,{text:function(){var c,Z;
return(c=y.data())==null?void 0:(Z=c.noteData)==null?void 0:Z.delimiter}})),_.X(_.Da,{text:function(){var c,Z;
return(c=W())==null?void 0:(Z=c.contributorNote)==null?void 0:Z.publishedTimeText}})),_.X(_.bg,{data:function(){var c,Z,G,D=(c=y.data())==null?void 0:c.noteData;
c=(Z=W())==null?void 0:(G=Z.contributorNote)==null?void 0:G.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:D.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:D.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:D.deleteDialogTitle}]},dialogMessages:[{runs:[{text:D.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.deleteActionText}]},command:{performCommentActionEndpoint:{action:c}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.X("div",{class:"ytNoteViewModelNoteContent"},_.X(_.Da,{text:function(){var c,Z;
return(c=W())==null?void 0:(Z=c.contributorNote)==null?void 0:Z.text}})))},"Pe");
GsD.idomCompat=!0;_.A3(GsD,"yt-note-view-model",{props:{data:_.Ix}});var Ij=_.Ax(function(y){var W=_.V0(y,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),c=W.label,Z=W.text,G=W.placeholder,D=W.hint;y=W.rows;var Y=W.overflowStyle,u=W.outline,t=W.disabled,b=W.disableNewLines,r=W.characterLimit,F=W.validation,K=W.onInput,l=_.HO();W=_.z(_.WF(function(){return Z()}));
var N=W.next().value,P=W.next().value;W=_.z(_.G9(!1,void 0,"fXvinf"));var V=W.next().value,Q=W.next().value,S=function(){Q(!0)},cy=function(){Q(!1)};
_.rj(function(){var t5=l.value,xF=Y(),M3=N();xF==="expand-vertically"&&M3&&iOg(t5);l.value.addEventListener("focusin",S);l.value.addEventListener("focusout",cy)});
_.KL(function(){l.value.removeEventListener("focusin",S);l.value.removeEventListener("focusout",cy)});
var M=function(){var t5;return(t5=F())==null?void 0:t5.validate(N())},fa=function(){return r()&&!M()&&N().length>r().maxChars},jI=function(){return!!M()||fa()};
W=_.j9(function(t5){if(!t5.currentTarget)return!1;t5=t5.currentTarget;P(t5.value);Y()==="expand-vertically"&&iOg(t5);K==null||K(t5.value);return!0});
var sD=_.j9(function(t5){b()&&t5.key==="Enter"&&t5.preventDefault();return!1}),ED=_.j9(function(){l.value.focus()}),N1=function(){return G()||c()},bf={},Py={},WJ={};
return _.X("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.X("div",{class:_.Mi("ytStandardsTextareaShapeTextareaContainer",(bf.ytStandardsTextareaShapeTextareaContainerOutline=u,bf.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=t,bf.ytStandardsTextareaShapeTextareaContainerOutlineError=jI,bf)),"on:click":ED},_.X("label",{class:_.Mi("ytStandardsTextareaShapeLabel",(Py.ytStandardsTextareaShapeLabelFocused=V,Py.ytStandardsTextareaShapeLabelDisabled=t,Py.ytStandardsTextareaShapeLabelError=
function(){return jI()&&!t()},Py.ytStandardsTextareaShapeLabelHidden=function(){return!V()&&!N()&&!!N1()},Py))},c),_.X("div",{class:_.Mi("ytStandardsTextareaShapePlaceholder",(WJ.ytStandardsTextareaShapePlaceholderVisible=function(){return!V()&&!N()},WJ)),
"aria-hidden":"true"},N1),_.X("textarea",{el:l,class:"ytStandardsTextareaShapeTextarea",rows:y,disabled:t,placeholder:N1,"on:input":W,"on:keydown":sD},N)),_.X(_.YN,{cond:function(){return D()&&!jI()},
then:function(){var t5={};return _.X("div",{class:_.Mi("ytStandardsTextareaShapeHint",(t5.ytStandardsTextareaShapeHintDisabled=t,t5))},_.X("div",{class:"ytStandardsTextareaShapeHintHintMessage"},D))}}),_.X(_.YN,{cond:M,
then:function(){return _.X(fV6,{disabled:t},_.X("div",{class:"ytStandardsTextareaShapeErrorMessage"},M))}}),_.X(_.YN,{cond:r,
then:function(t5){return _.X(_.YN,{cond:fa,then:function(){return _.X(fV6,{disabled:t},_.X("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return t5().errorMessage}),_.X("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return N().length+"/"+t5().maxChars}))}})}}))},"Qe");
Ij.idomCompat={callbacks:{onInput:!0}};var fV6=_.Ax(function(y){var W={};return _.X("div",{class:_.Mi("ytStandardsTextareaShapeError",(W.ytStandardsTextareaShapeErrorDisabled=y.disabled,W)),role:"alert"},_.X(_.Gb,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),y.children)},"Re");_.om6=_.Ax(function(y){var W=y.data;return _.X("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.X(Ij,{text:y.text,label:function(){var c;return(c=W().contentProperties)==null?void 0:c.labelText},
placeholder:function(){var c;return(c=W().contentProperties)==null?void 0:c.placeholderText},
hint:function(){var c;return(c=W().contentProperties)==null?void 0:c.hintText},
outline:function(){var c;return!((c=W().displayProperties)==null?0:c.hideBorder)},
overflowStyle:function(){var c;return((c=W().displayProperties)==null?0:c.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:y.disabled,disableNewLines:function(){var c;return(c=W().displayProperties)==null?void 0:c.disableNewLines},
onInput:y.onInput,characterLimit:y.characterLimit,validation:y.validation,rows:function(){var c;return(c=W().displayProperties)==null?void 0:c.rows}}))},"Se");_.DMS=_.Ax(function(y){var W=y.data;return _.X("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.X(Ij,{text:y.text,label:function(){var c;return(c=W().contentProperties)==null?void 0:c.labelText},
placeholder:function(){var c;return(c=W().contentProperties)==null?void 0:c.placeholderText},
hint:function(){var c;return(c=W().contentProperties)==null?void 0:c.hintText},
outline:function(){var c;return!((c=W().displayProperties)==null?0:c.hideBorder)},
overflowStyle:function(){var c;return((c=W().displayProperties)==null?0:c.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var c;return(c=W().displayProperties)==null?void 0:c.disableNewLines},
onInput:y.onInput,characterLimit:y.characterLimit,validation:y.validation,rows:function(){var c;return(c=W().displayProperties)==null?void 0:c.rows}}))},"Te");var zPD=_.Ax(function(y){var W=_.z(_.WF(function(){var N1,bf;return((N1=y.data().structuredContextNoteFormSchema)==null?0:(bf=N1.initialValues)==null?0:bf.noteBody)?y.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),c=W.next().value,Z=W.next().value;
W=_.z(_.WF(function(){y.data();return!1}));
var G=W.next().value,D=W.next().value;W=_.z(_.WF(function(){y.data();return!1}));
var Y=W.next().value,u=W.next().value;W=_.z(_.WF(function(){var N1,bf;return((N1=y.data().structuredContextNoteFormSchema)==null?0:(bf=N1.initialValues)==null?0:bf.timestamp)?y.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var t=W.next().value,b=W.next().value;W=_.z(_.WF(function(){y.data();return!1}));
var r=W.next().value,F=W.next().value;W=_.z(_.WF(function(){var N1,bf;return((N1=y.data().structuredContextNoteFormSchema)==null?0:(bf=N1.initialValues)==null?0:bf.sources)?[y.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var K=W.next().value,l=W.next().value;W=_.z(_.WF(function(){y.data();return!1}));
var N=W.next().value,P=W.next().value;W=_.z(_.WF(function(){return!1}));
var V=W.next().value,Q=W.next().value;_.rj(function(){var N1;_.TzS((N1=y.data().structuredContextNoteFormSchema)==null?void 0:N1.id,{isSubmitting:V,onSubmit:function(){Q(!0);var bf=cES(c(),t(),K(),y.data()),Py=_.U().resolve(_.i1);bf&&Py&&Py.resolveCommand(bf,{commandController:{onSuccess:function(){Q(!1)}}})},
isValid:function(){return G()&&!Y()&&!r()&&!N()}})});
var S=function(N1){if(N1!==void 0&&(Z(N1),!G()&&N1.length>0&&D(!0),G())){var bf=wT9(y.data());if(bf){var Py=bf.minLength;bf=bf.maxLength;Py&&N1.length<Py?u(!0):bf&&N1.length>bf?u(!0):u(!1)}}},cy=function(N1){if(N1!==void 0){b(N1);
if(N1.length>0){var bf,Py,WJ,t5,xF=kr3((bf=y.data())==null?void 0:(Py=bf.structuredContextNoteFormSchema)==null?void 0:(WJ=Py.fieldSchemas)==null?void 0:(t5=WJ.timestamp)==null?void 0:t5.validationSchema);if(xF&&(bf=xF.regex)&&!(new RegExp(bf)).test(N1)){F(!0);return}}F(!1)}},M=function(N1){if(N1!==void 0){var bf=N1.split(/[ \n]/).map(function(Py){return Py.trim()});
l(bf);if(N1.length>0)for(N1=_.z(bf),bf=N1.next();!bf.done;bf=N1.next())if(!Wq9(bf.value)){P(!0);return}P(!1)}},fa=function(){return{validate:function(N1){if(G()){var bf=wT9(y.data());
if(bf){var Py=bf.minLength;bf=bf.translations;if(Py&&N1.length<Py)return bf==null?void 0:bf.minLengthErrorMessage}}}}},jI=function(){var N1=wT9(y.data()),bf=N1==null?void 0:N1.maxLength,Py;
N1=N1==null?void 0:(Py=N1.translations)==null?void 0:Py.maxLengthErrorMessage;if(bf&&N1)return{maxChars:bf,errorMessage:N1}},sD=function(){return{validate:function(N1){if(N1){var bf,Py,WJ,t5,xF=kr3((bf=y.data())==null?void 0:(Py=bf.structuredContextNoteFormSchema)==null?void 0:(WJ=Py.fieldSchemas)==null?void 0:(t5=WJ.timestamp)==null?void 0:t5.validationSchema);
if(xF&&(bf=xF.regex,xF=xF.translations,bf&&!(new RegExp(bf)).test(N1)))return xF==null?void 0:xF.regexErrorMessage}}}},ED=function(){return{validate:function(N1){if(N1){var bf,Py,WJ,t5,xF=yEQ((bf=y.data())==null?void 0:(Py=bf.structuredContextNoteFormSchema)==null?void 0:(WJ=Py.fieldSchemas)==null?void 0:(t5=WJ.sources)==null?void 0:t5.validationSchema);
if(xF&&(bf=xF.translations,bf==null?0:bf.selectedErrorMessage))for(N1=N1.split(/[ \n]/).map(function(M3){return M3.trim()}),N1=_.z(N1),Py=N1.next();!Py.done;Py=N1.next())if(!Wq9(Py.value))return N1=void 0,(N1=bf)==null?void 0:N1.selectedErrorMessage}}}};
return _.X("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.X("div",{class:"ytStructuredContextNoteViewModelTextField"},_.X(_.bg,{data:function(){var N1;return(N1=y.data())==null?void 0:N1.noteContents}},{textFormFieldViewModel:function(N1){return _.X(_.DMS,{data:N1.data,
onInput:S,validation:fa,characterLimit:jI})},
textFieldViewModel:function(N1){return _.X(_.om6,{data:N1.data,onInput:S,validation:fa,characterLimit:jI})}})),_.X("div",{class:"ytStructuredContextNoteViewModelTextField"},_.X(_.bg,{data:function(){var N1;
return(N1=y.data())==null?void 0:N1.noteTimestamp}},{textFormFieldViewModel:function(N1){return _.X(_.DMS,{data:N1.data,
onInput:cy,validation:sD})},
textFieldViewModel:function(N1){return _.X(_.om6,{data:N1.data,onInput:cy,validation:sD})}})),_.X("div",{class:"ytStructuredContextNoteViewModelTextField"},_.X(_.bg,{data:function(){var N1;
return(N1=y.data())==null?void 0:N1.noteSources}},{textFormFieldViewModel:function(N1){return _.X(_.DMS,{data:N1.data,
onInput:M,validation:ED})},
textFieldViewModel:function(N1){return _.X(_.om6,{data:N1.data,onInput:M,validation:ED})}})))},"Ue");
zPD.idomCompat=!0;_.A3(zPD,"yt-structured-context-note-view-model",{props:{data:_.Ix}});var Y0D=_.Ax(function(y){var W=_.z(_.WF(function(){var D;if((D=y.controlled)==null?0:D.call(y))return[];var Y;return(((Y=y.data())==null?void 0:Y.chips)||[]).map(function(u){u=_.g(u,_.IU);if(u==null?0:u.selected)return Zl9(u.chipValue)}).filter(function(u){return u!==void 0})})),c=W.next().value,Z=W.next().value,G=function(D){var Y=Zl9(D.chipValue);
if(Y!==void 0){var u;if((u=y.controlled)==null?0:u.call(y))return void y.controlled().onTap(Y);D=c().includes(Y)?[].concat(_.No(c().filter(function(b){return b!==Y}))):[].concat(_.No(c()),[Y]);
Z(D);var t;if((t=y.uncontrolled)==null?0:t.call(y))y.uncontrolled().onUpdate(D)}};
return _.X("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.X(_.mC,{each:function(){return y.data().chips||[]}},function(D){return _.X("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.X(_.p13,{data:function(){return _.g(D,_.IU)},
selected:function(){var Y;if(Y=_.g(D,_.IU)){var u=Zl9(Y.chipValue);if(u!==void 0){var t;Y=((t=y.controlled)==null?0:t.call(y))?y.controlled().selectedValues.includes(u):c().includes(u)}else Y=void 0}else Y=!1;return Y},
callback:G}))}))},"Ve");var mM9=_.Ax(function(y){var W=y.data;var c=function(){var u;return((u=W())==null?void 0:u.flowStateKey)||""},Z=_.Zx(_.kD,c),G=function(){var u;
return(u=_.g(Z(),eog))==null?void 0:u.chips},D=function(u){if(u!==void 0){var t=G()||[];
t=t.find(function(b){return b===u})?t.filter(function(b){return b!==u}):[].concat(_.No(t),[u]);
t=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.g(Z(),eog),{chips:t})});_.PQ(_.o3("flowStateEntity",c(),t))}},Y=function(){var u;
return _.g((u=W())==null?void 0:u.inputBox,wAH)};
y=_.u5(function(u){var t=Y();t=!(t==null?0:t.maxChars)||u.length<=t.maxChars;u=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.g(Z(),eog),{detail:u}),abuseReportFlowState:Object.assign({},_.g(Z(),eY),{navigationEnabled:t})});_.PQ(_.o3("flowStateEntity",c(),u))},150);
return _.X("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.X("div",{class:"ytFeedbackFormViewModelChips"},_.X(_.bg,{data:function(){var u;return(u=W())==null?void 0:u.chipSelection}},{chipSelectionFormFieldViewModel:function(u){return _.X(Y0D,{data:u.data,
controlled:function(){return{selectedValues:G()||[],onTap:D}}})}})),_.X("div",{class:"ytFeedbackFormViewModelInputBox"},_.X(Ij,{text:function(){var u;
return(u=_.g(Z(),eog))==null?void 0:u.detail},
placeholder:function(){var u;return((u=Y())==null?void 0:u.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var u=Y();if(u&&u.maxChars)return{maxChars:u.maxChars,errorMessage:u.maxCharsExceededErrorMessage||""}},
onInput:y})),_.X("div",{class:"ytFeedbackFormViewModelFooterText"},_.X(_.Da,{text:function(){return W().footerText}})))},"We");
mM9.idomCompat=!0;_.A3(mM9,"yt-feedback-form-view-model",{props:{data:_.Ix}});var s5D=_.Ax(function(y){var W=y.data;var c=function(){return W().flowStateKey||""},Z=_.Zx(jiD,c),G=function(){return _.g(Z(),eY)},D=function(){if(_.O("enable_gff_accessibility_fix")){var Y=!0,u;
if((u=G())==null?0:u.navigationEnabled){var t;_.OH((t=G())==null?void 0:t.navigationCommand);Y=!1}u=Object.assign({},Z(),{abuseReportFlowState:Object.assign({},G(),{isReportFormDirty:Y})});_.PQ(_.o3("flowStateEntity",c(),u))}else _.OH((Y=G())==null?void 0:Y.navigationCommand)};
return _.X("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.X("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.X(_.bg,{data:function(){return W().cancelButton}},{buttonViewModel:function(Y){return _.X(_.OV,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:D})}}),_.X(_.bg,{data:function(){var Y;
if(W().navButton){var u=Object;var t=u.assign,b=_.g(W().navButton,_.ri),r=((Y=G())==null?0:Y.navigationEnabled)||_.O("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",F,K;Y=_.g((F=G())==null?void 0:F.navigationCommand,_.Fx);F=(K=_.g(Y,_.CD))==null?void 0:K.url;u={buttonViewModel:t.call(u,{},b,{state:r,iconName:F?"OPEN_IN_NEW":""})}}else u=void 0;return u}},{buttonViewModel:function(Y){return _.X(_.OV,{data:Y.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:D})}})))},"Xe");
s5D.idomCompat=!0;_.A3(s5D,"yt-report-form-bottom-bar-view-model",{props:{data:_.Ix}});var uXf=_.Ax(function(y){var W=y.nextStep;return _.X("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.X("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.X(_.Gb,{icon:function(){return W().iconName||""}})),_.X("div",null,_.X(_.Da,{text:function(){return W().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ye"),tjD=_.Ax(function(y){var W=y.data;
var c,Z=(c=_.U().resolve(_.xN(_.EH)))==null?void 0:c(),G=_.Zx(_.kD,function(){return W().flowStateKey||""});
return _.X("yt-report-form-confirmation-page-view-model",{class:function(){var D;return((D=_.g(G(),eY))==null?void 0:D.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.X("div",{class:function(){var D;
return((D=_.g(G(),eY))==null?void 0:D.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.X(_.J3,{data:function(){return Z&&W().imageDark?W().imageDark:W().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.X("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.X("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return W().confirmationHeader}),_.X("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.X(_.Da,{text:function(){return W().confirmationText}})),_.X("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.X(_.Da,{text:function(){return W().lawEnforcementText}})),
_.X("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return W().whatToExpectHeader}),_.X(_.YN,{cond:function(){return W().nextSteps},
then:function(D){return _.X("div",null,_.X(_.mC,{each:D},function(Y){return _.X(uXf,{nextStep:Y})}))}}),_.X(_.YN,{cond:function(){return W().legalReportText},
then:function(D){return _.X("div",null,_.X(_.Da,{text:D,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Ze");
tjD.idomCompat=!0;_.A3(tjD,"yt-report-form-confirmation-page-view-model",{props:{data:_.Ix}});var nmZ=_.Ax(function(y){var W=y.data;var c=function(){var D;return((D=_.g(W().inputBox,wAH))==null?void 0:D.maxChars)||500},Z=function(){return W().flowStateKey||""},G=_.Zx(_.kD,Z);
y=_.u5(function(D){D=Object.assign({},G(),{flowFormState:{isValid:D.length<=c()},abuseReportFlowState:{userComments:D,navigationEnabled:!(D.length>c()),isReportFormDirty:!0}});_.I5().dispatch(_.$Y("flowStateEntity",Z(),D))},150);
_.rj(function(){var D=Object.assign({},G(),{flowFormState:{isValid:!0}});_.I5().dispatch(_.$Y("flowStateEntity",Z(),D))});
return _.X("yt-report-form-details-page-view-model",{class:function(){var D;return((D=_.g(G(),eY))==null?void 0:D.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.X("h1",{class:function(){var D;
return((D=_.g(G(),eY))==null?void 0:D.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return W().detailsPageHeader}),_.X("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.X(_.Da,{text:function(){return W().bodyText}})),_.X("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.X(Ij,{label:function(){var D;
return((D=_.g(W().inputBox,wAH))==null?void 0:D.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var D;return{errorMessage:((D=_.g(W().inputBox,wAH))==null?void 0:D.maxCharsExceededErrorMessage)||"",maxChars:c()}},
onInput:y})))},"$e");
nmZ.idomCompat=!0;_.A3(nmZ,"yt-report-form-details-page-view-model",{props:{data:_.Ix}});var XQ9=_.Ax(function(y){var W=y.data;var c=y.selectedKey;var Z=y.onSelected;var G=y.groupName;var D=_.X("div",{class:"ytRadioButtonItemViewModelLabel"},_.X("div",null,function(){return W().text}),_.X("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return W().subtext}));
y={};return _.X("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.X(_.H_V,{name:G,checked:function(){return!(c==null||!c()||W().key!==(c==null?void 0:c()))},
onChange:function(Y){Z==null||Z(Y.target,W(),G==null?void 0:G())},
labelRenderable:function(){return D},
ariaLabel:function(){return W().subtext?W().text+", "+W().subtext:W().text},
className:_.Mi((y.ytRadioButtonItemViewModelSubTitle=function(){return!!W().subtext},y))}))},"af");_.b63=_.Ax(function(y){var W=y.data;var c=y.onSelected;var Z=y.selectedKey;var G=y.groupName;return _.X("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.X("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.X(_.bg,{data:function(){return W().radioButtons}},{radioButtonItemViewModel:function(D){var Y=D.data;
return _.X(XQ9,{data:Y,onSelected:c,selectedKey:Z,groupName:function(){return G!=null?G:Y().key}})}})))},"bf");var rxQ=_.Ax(function(y){var W=y.data;var c=_.LD(),Z=function(){return W().flowStateKey||""},G=_.Zx(_.kD,Z),D=function(){return _.g(G(),eY)};
_.$k(function(){var Y,u;if(((Y=D())==null?0:Y.isReportFormDirty)&&((u=D())==null||!u.navigationEnabled)&&_.O("enable_gff_accessibility_fix")){var t;if(((t=D())==null?void 0:t.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var b;(b=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||b.scrollIntoView()}else{var r;(r=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||r.scrollIntoView()}}});
return _.X("yt-report-form-reason-select-page-view-model",{class:function(){var Y;return((Y=D())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.X("h1",{class:function(){var Y;
return((Y=D())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return W().pageHeader}),_.X("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.X(_.Da,{text:function(){return W().bodyText}})),_.X("div",{class:function(){var Y;
return((Y=D())==null?void 0:Y.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.X(_.YN,{cond:function(){var Y,u;
return((Y=D())==null?void 0:Y.isReportFormDirty)&&!((u=D())==null?0:u.navigationEnabled)&&_.O("enable_gff_accessibility_fix")},
then:function(){return _.X("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:c},_.X(_.Gb,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.X("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return W().emptyReasonSelectErrorMessage}))}}),_.X(_.b63,{data:function(){return _.g(W().radioButtonGroup,_.GxQ)},
onSelected:function(Y,u){Y=Object.assign({},G(),{abuseReportFlowState:Object.assign({},D(),{reasonKey:u.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:u.command})});_.PQ(_.o3("flowStateEntity",Z(),Y))},
selectedKey:function(){var Y;return(Y=D())==null?void 0:Y.reasonKey},
groupName:"report-form-reason-select-page"})))},"cf");
rxQ.idomCompat=!0;_.A3(rxQ,"yt-report-form-reason-select-page-view-model",{props:{data:_.Ix}});var FDf=_.Ax(function(y){var W=y.data;var c,Z=(c=_.U().resolve(_.xN(_.EH)))==null?void 0:c();return _.X("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.X("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.X(_.J3,{data:function(){return Z&&W().imageDark?W().imageDark:W().image},
alt:""})),_.X("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.X("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return W().header}),_.X(_.Da,{text:function(){return W().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"df");
FDf.idomCompat=!0;_.A3(FDf,"yt-report-form-sign-in-page-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c=function(){var b;return(b=W().textInputPlaceholder)==null?void 0:b.content},Z=function(b){b=b.target.value.trim();
var r=W().onUpdateText;r&&_.OH(r,{form:{userQuery:b}});W().userQuery=b},G=_.u5(function(b){Z(b)},150),D=_.j9(function(b){G(b);
return!1}),Y=_.j9(function(b){b.key==="Enter"&&(Z(b),(b=W().onNextStepCommand)&&_.OH(b,{}));
return!1}),u=_.HO(),t=function(){if(_.O("web_hide_explore_hub_until_user_navigates_back_to_home")){var b,r,F;
(F=(r=(b=u.value)==null?void 0:b.closest("ytd-flow-step-renderer"))==null?void 0:r.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||F.click()}};
return _.X("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:u},_.X("div",{class:"ytwTalkToRecsTopCornerButton"},_.X(_.bg,{data:function(){return W().topCornerButton}},{buttonViewModel:_.OV})),_.X("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.X("div",{class:"ytwTalkToRecsTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X("div",{class:"ytwTalkToRecsSubtitle"},_.X(_.Da,{text:function(){return W().subtitle}})),_.X("div",{class:"ytwTalkToRecsChipsShelf"},_.X(_.bg,{data:function(){return W().answersShelf}},
{chipsShelfViewModel:function(b){return _.X(_.A10,{data:b.data,
callback:t})}})),_.X(_.YN,{cond:function(){return W().showOpenTextInput&&!_.O("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.X("div",{class:"ytwTalkToRecsUserInputBox"},_.X("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:c,value:function(){return W().userQuery},
"on:input":D,"on:keyup":Y}))}})))},"ef"),"yt-talk-to-recs-view-model",{props:{data:_.Ix}});var GG9={sources:[{clientResource:{imageName:"CHECK"}}]};_.UMB=_.Ax(function(y){var W=_.HO();y=_.V0(y,{error:void 0});var c=y.data,Z=y.error,G=y.onSelected;y=_.z(_.WF(function(){return D23(c())}));
var D=y.next().value,Y=y.next().value;sPQ(c,function(F){Y(F);var K,l,N=oAQ((K=c().options)==null?void 0:(l=K[F])==null?void 0:l.value,c().type);G==null||G(N);W.value.focus()});
y=_.j9(function(){if(!c().disabled){var F=c(),K=D(),l=W.value;F.options&&(F=f2d(F.options,K,F.label),_.U().resolve(_.bc).openSheet({viewModel:F},l))}});
var u=_.rb1(),t=function(){return!!Z()},b=function(){return!!c().disabled},r={};
r=_.Mi("ytDropdownViewModelDropdownContainer",(r.ytDropdownViewModelDropdownContainerErrorBorder=t,r.ytDropdownViewModelDropdownContainerDisabled=b,r));return _.X("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.X("div",{class:r,"on:click":y,el:W,role:"combobox",tabindex:0,"on:keydown":u,"aria-invalid":t,"aria-disabled":b,"aria-describedby":function(){return t()?"dropdown-view-model-error":void 0}},_.X("div",{class:"ytDropdownViewModelText"},zoD(c,t,D),Ycg(c,D)),_.X("div",{class:"ytDropdownViewModelChevronDown"},
_.X(_.Gb,{icon:"CHEVRON_DOWN"}))),m2H(c,Z))},"ff");_.A3(_.Ax(function(y){var W=y.data;var c=function(G){var D=tGQ(W());D.videoMetadata||(D.videoMetadata={});D.videoMetadata.sponsorshipsMetadata||(D.videoMetadata.sponsorshipsMetadata={});D.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(G)},Z=function(G){var D=tGQ(W());
D.scheduledRedirectMetadata||(D.scheduledRedirectMetadata={});D.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(G)};
return _.X("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.X("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.X("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.X(_.Da,{text:function(){return W().title}}),_.X(_.Gb,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.X(_.Da,{text:function(){return W().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.X(_.bg,{data:function(){return W().tierChoices}},{dropdownViewModel:function(G){return _.X("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.X(_.UMB,{data:G.data,
onSelected:c}))}}),_.X(_.bg,{data:function(){return W().startTimeChoices}},{dropdownViewModel:function(G){return _.X("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.X(_.UMB,{data:G.data,
onSelected:Z}))}}),_.X(_.Da,{text:function(){return W().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.X("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.X(_.bg,{data:function(){return W().scheduleButton}},{panelFooterViewModel:_.NG})))},"gf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;y=y.className===void 0?"":y.className;var c=_.Zx(jiD,function(){return W().flowStateEntityKey||""}),Z={};
Z=_.Mi("ytFlowBottomBarViewModelFlowBottomBarButtons",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},Z));
var G={},D=_.Mi("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Z,(G.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},G.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},G));
G={};var Y=_.Mi("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Z,(G.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},G.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},G));
Z={};Z=_.Mi("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return W().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
Z));
return _.X("yt-flow-bottom-bar-view-model",{class:_.Mi("ytFlowBottomBarViewModelHost",y)},_.X(_.YN,{cond:function(){var u;return(u=W())==null?void 0:u.textSection},
then:function(u){return _.X("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.X(_.Da,{text:u}))}}),_.X("div",{class:Z},_.X(_.bg,{data:function(){return W().secondaryButton}},{buttonViewModel:function(u){return _.X(_.OV,{data:u.data,
className:Y})}}),_.X(_.bg,{data:function(){return W().primaryButton}},{buttonViewModel:function(u){return _.X(_.OV,{data:u.data,
className:D,buttonOverrides:function(){var t;return{disabled:!((t=c())==null||!t.primaryButtonDisabled)}}})}})))},"hf"),"yt-flow-bottom-bar-view-model",{props:{data:_.Ix,
className:_.QE}});var $Mf="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),KDg=function(){var y=_.v.apply(this,arguments)||this;y.enableScrollingFix=!0;y.bottomBar=!1;y.hideBottomBar=!1;y.fitContent=!1;return y};
_.R(KDg,_.v);_.f=KDg.prototype;_.f.ready=function(){_.O("enable_pdp_icon_prefetch")&&_.MG6(_.U().resolve(_.Ms),0,$Mf)};
_.f.focus=function(y){this.topBar?_.hv(this.topBar,y):this.paperDialog.focus(y)};
_.f.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16657_scroller&&(this.JSC$16657_scroller.dialogElement=this.paperDialog,this.JSC$16657_scroller.attached&&typeof this.JSC$16657_scroller.attached==="function"&&this.JSC$16657_scroller.attached())};
_.f.onDataChanged=function(){var y;this.fitContent=!((y=this.data)==null||!y.fitContent);var W;this.bottomBar=!((W=this.data)==null||!W.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.f.onProgressChanged=function(){var y,W,c=((W=(y=this.data)==null?void 0:y.progress)!=null?W:0)*100;this.progressElement.style.width=c+"%"};
_.f.isProgressHidden=function(){var y;return!((y=this.data)==null?0:y.progress)};
_.f.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(y){return _.O("enable_wiz_next_lp2_msof")&&y&&!y.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.dJ.Object.defineProperties(KDg.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var y;return _.O("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.g((y=this.data)==null?void 0:y.content,WZ6)}}});
var pr=KDg;pr.prototype.onProgressChanged=pr.prototype.onProgressChanged;pr.prototype.onDataChanged=pr.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],pr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pr.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pr.prototype,"enableScrollingFix",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pr.prototype,"bottomBar",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pr.prototype,"hideBottomBar",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],pr.prototype,"containsExploreHub",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],pr.prototype,"fitContent",void 0);
_.x([_.jj("#progress"),_.e("design:type",HTMLElement)],pr.prototype,"progressElement",void 0);_.x([_.jj("#scroller"),_.e("design:type",Object)],pr.prototype,"JSC$16657_scroller",void 0);_.x([_.jj("ytd-flow-top-bar-renderer"),_.e("design:type",HTMLElement)],pr.prototype,"topBar",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pr.prototype,"onDataChanged",null);
_.x([_.H("data.progress"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pr.prototype,"onProgressChanged",null);pr=_.x([_.d({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],pr);
_.T(pr,"ytd-flow-step-renderer",function(){if(Co9!==void 0)return Co9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Co9=y},{mode:1});var O69=function(y){this.resolveCommand=y;this.steps={}},gmQ=function(y,W){W=_.z(W||[]);
for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=Object.values(c)[0],G=void 0;if((G=Z)==null?0:G.stepId)y.steps[Z.stepId]=c}},Em9=function(y,W){var c,Z,G,D,Y;
return _.m(function(u){if((c=y.state)==null||!c.currentStepId)return u.return(void 0);Z=RP9(y);if(!Z)return u.return(lVB(y));if(G=_.g(Z,_.yKH)){var t;((t=G.screenLoggingData)==null?0:t.screenVeType)&&_.wR(_.Zz(),G.screenLoggingData.screenVeType);((D=G)==null?0:D.onStepStartCommand)&&y.resolveCommand((Y=G)==null?void 0:Y.onStepStartCommand,{})}if(G&&W){t=G;var b,r,F,K;((b=W.flowLoggingData)==null?0:b.eventNamespace)&&((r=t.flowEventData)==null?0:r.eventType)&&((F=t.flowEventData)==null?0:F.eventMetadata)&&
((K=W.flowLoggingData)==null?0:K.flowType)&&(b=_.cK(W.flowLoggingData.eventNamespace,t.flowEventData.eventType,t.flowEventData.eventMetadata),_.Zl(_.G2(),b,W.flowLoggingData.flowType));W.steps&&!W.steps.includes(Z)&&W.steps.push(Z)}return u.return(Z)})};
O69.prototype.back=function(){var y;(y=this.state)!=null&&y.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
O69.prototype.handleUpdateFlowCommand=function(y){y.steps&&gmQ(this,y.steps);y.entityUpdateCommand&&this.resolveCommand(y.entityUpdateCommand,{});y.flowContinuationCommand&&(y=y.flowContinuationCommand)&&(this.getFlowContinuationCommand=y);this.awaitFlowContinuation&&(this.awaitFlowContinuation(RP9(this)),this.awaitFlowContinuation=void 0)};
O69.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var lVB=function(y){return _.m(function(W){return y.getFlowContinuationCommand?W.return(new Promise(function(c){y.awaitFlowContinuation=c;y.getFlowContinuationCommand&&y.resolveCommand(y.getFlowContinuationCommand,{flow_state:y.state})})):W.return(Promise.resolve(void 0))})},RP9=function(y){var W;
if((W=y.state)!=null&&W.currentStepId)return y.steps[y.state.currentStepId]};var Npd=function(){var y=_.v.apply(this,arguments)||this;y.flowState=new O69(function(W,c){c=c===void 0?{}:c;_.km.instance.resolveCommand(W,{form:{form:c,element:y.hostElement}})});
y.initialState=!0;y.isLoading=!1;y.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 y};
_.R(Npd,_.v);_.f=Npd.prototype;_.f.onPopupClosed=function(y){y&&this.hostElement!==y.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.f.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"}}}};
_.f.focus=function(y){var W=this;_.O0(function(){var c=_.p(W.hostElement).querySelector("ytd-flow-step-renderer");c.topBar?c.focus(y):W.topBar&&_.hv(W.topBar,y)},1)};
_.f.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.f.computeTopBarHidden=function(y){var W;return!((W=_.g(y,_.yKH))==null||!W.topBarOverride)};
_.f.dataChanged=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1){((W=y.data)==null?0:W.steps)&&gmQ(y.flowState,y.data.steps);if((c=y.data)==null?0:c.flowContinuationCommand){var G=y.flowState,D=y.data.flowContinuationCommand;D&&(G.getFlowContinuationCommand=D)}return _.n(Z,Em9(y.flowState,y.data),2)}y.currentFlowStep=Z.yieldResult;_.F2(Z)})};
_.f.flowChanged=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1){if(!y.flow)return c.return();y.flowState.state=y.flow;y.isLoading=!0;return _.n(c,Em9(y.flowState,y.data),2)}W=c.yieldResult;if(!W||y.flow.isLoading)return c.return();y.currentFlowStep=W;y.initialState=!1;y.isLoading=!1;y.autofocusAndRefit();_.F2(c)})};
_.f.autofocusAndRefit=function(){var y=this,W=_.U().resolve(_.xN(_.ml)),c=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Z=document.querySelector("yt-report-form-confirmation-page-view-model"),G=document.querySelector("yt-report-form-details-page-view-model"),D=document.querySelector("yt-report-form-reason-select-page-view-model"),Y=document.querySelector("yt-contributor-zero-state-view-model"),
u=document.querySelector("yt-structured-context-note-view-model"),t=document.querySelector("yt-note-view-model");(!c&&W&&W.isKeyBoardInUse()||Z||!c&&G||!c&&D||Y||u||t)&&_.Bn(this.hostElement);_.Lv(this,function(){_.Z2(y.hostElement,"yt-refit")})};
_.f.handleUpdateFlowCommand=function(y){this.data&&(y=_.g(y,jv6),y.targetId===this.data.targetId&&(y.flowContinuationCommand&&(this.data.flowContinuationCommand=y.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(y),this.autofocusAndRefit()))};
_.f.handleFlowNextStepCommand=function(y){this.data&&this.flow&&this.flow.key&&(y=_.g(y,qcD),y.targetId===this.data.targetId&&(y=y.stepId||"",this.ytdReduxBehavior.dispatch(_.$Y("flowStateEntity",this.flow.key,{currentStepId:y,stepIdStack:(this.flow.stepIdStack||[]).concat(y)}))))};
_.f.handleFlowPrevStepCommand=function(y){if(this.data&&this.flow&&this.flow.key&&(y=_.g(y,kGZ),y.targetId===this.data.targetId)){var W=[].concat(_.No(this.flow.stepIdStack||[]));W.length>1?(W.pop(),this.ytdReduxBehavior.dispatch(_.$Y("flowStateEntity",this.flow.key,{currentStepId:W[W.length-1],stepIdStack:W}))):y.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(y.onFirstStepCommand)}};
_.f.handleYpcCancelRecurrenceCommand=function(y){if(this.data&&this.flow&&this.flow.key&&(y=_.g(y,fKH),y.targetId===this.data.targetId&&y.endpointCommand)){var W=_.g(this.flow,oRQ);W&&_.g(y.endpointCommand,_.OAT)&&(_.g(y.endpointCommand,_.OAT).feedbackData=W.surveyFeedback);this.ytComponentBehavior.resolveCommand(y.endpointCommand)}};
_.f.handlePartialUpdateFlowStateEntity=function(y){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.$Y("flowStateEntity",this.flow.key,y,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
var P6=Npd;P6.prototype.flowChanged=P6.prototype.flowChanged;P6.prototype.dataChanged=P6.prototype.dataChanged;P6.prototype.onPopupClosed=P6.prototype.onPopupClosed;_.x([_.C(_.$s),_.e("design:type",Object)],P6.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],P6.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],P6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],P6.prototype,"initialState",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],P6.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Object)],P6.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],P6.prototype,"currentFlowStep",void 0);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],P6.prototype,"onPopupClosed",null);_.x([_.L({selectorArgs:["data.flowStateEntityKey"],selector:jiD}),_.e("design:type",Object)],P6.prototype,"flow",void 0);_.x([_.jj("ytd-flow-top-bar-renderer"),_.e("design:type",HTMLElement)],P6.prototype,"topBar",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],P6.prototype,"dataChanged",null);_.x([_.Gs("flow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],P6.prototype,"flowChanged",null);P6=_.x([_.d({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],P6);
_.IVB=_.a5()(P6,"ytd-flow-root-renderer",function(){if(VvQ!==void 0)return VvQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return VvQ=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var pQd;var iY=null;_.A3(_.Ax(function(y){return _.X("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.X("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.X(_.Da,{text:function(){return y.data().text}}),_.X("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"jf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Ix}});var P66=_.Ax(function(y){var W=y.playerControlsProps;var c=y.isShortsPage;return _.X("yt-bigboard",null,_.X(_.YN,{cond:function(){return W().isDragging},
then:function(){return _.X("div",{class:"ytBigboardStoryboardHost"},_.X(_.NXZ,{progressBarProps:W,isShortsPage:c}))}}))},"kf");
P66.idomCompat=!0;_.J_={ACCOUNT_LABEL:MZ("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:MZ("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:MZ("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:MZ("AD_BADGE_HINT"),AD_BADGE_TEXT:MZ("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:MZ("ALL_CHANNELS_LABEL"),AMBIENT_MODE:MZ("AMBIENT_MODE"),AMBIENT_MODE_OFF:MZ("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:MZ("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:MZ("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:MZ("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:MZ("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:MZ("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:MZ("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:MZ("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:MZ("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:MZ("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:MZ("AUTOPLAY_UP_NEXT_IN"),BACK:MZ("BACK"),CANCEL:MZ("CANCEL"),CHANNEL_SWITCHER_LABEL:MZ("CHANNEL_SWITCHER_LABEL"),CLOSE:MZ("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:MZ("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:MZ("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:MZ("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:MZ("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:MZ("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:MZ("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:MZ("COMMENT_MODAL_CONTENT"),CONFIRM_OK:MZ("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:MZ("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:MZ("COPIED_TO_CLIPBOARD"),COPY:MZ("COPY"),COPY_DEBUG_INFO:MZ("COPY_DEBUG_INFO"),COPY_EMBED_CODE:MZ("COPY_EMBED_CODE"),COPY_LINK_LABEL:MZ("COPY_LINK_LABEL"),
COPY_VIDEO_URL:MZ("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:MZ("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:MZ("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:MZ("DELETE_FROM_DOWNLOADS"),DIALOG:MZ("DIALOG"),DONE:MZ("DONE"),DOWNLOAD:MZ("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:MZ("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:MZ("FLAG_CONFIRM"),FLAG_CONTENT:MZ("FLAG_CONTENT"),FLAG_LABEL:MZ("FLAG_LABEL"),FLAG_TITLE:MZ("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:MZ("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:MZ("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:MZ("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:MZ("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:MZ("HIDE_SEARCH_FILTERS_LABEL"),HOME:MZ("HOME","Home"),INVALID_RESPONSE_RECEIVED:MZ("INVALID_RESPONSE_RECEIVED"),LIBRARY:MZ("LIBRARY","Library"),LISTENING:MZ("LISTENING"),LOADING:MZ("LOADING"),LONG_PRESS_MIC_TO_SPEAK:MZ("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:MZ("LOOP"),MENU_DESKTOP:MZ("MENU_DESKTOP"),MENU_EXIT:MZ("MENU_EXIT"),
MENU_FEEDBACK:MZ("MENU_FEEDBACK"),MENU_HELP:MZ("MENU_HELP"),MENU_IMPRESSUM:MZ("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:MZ("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:MZ("MENU_SETTINGS"),MENU_SIGN_IN:MZ("MENU_SIGN_IN"),MENU_TITLE:MZ("MENU_TITLE"),MENU_YOUR_DATA:MZ("MENU_YOUR_DATA"),MORE_INFO:MZ("MORE_INFO"),MORE_OPTIONS:MZ("MORE_OPTIONS"),MUTE_VOLUME:MZ("MUTE_VOLUME"),NEW_PLAYLIST:MZ("NEW_PLAYLIST"),NEXT_VIDEO:MZ("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:MZ("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:MZ("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:MZ("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:MZ("NOT_FOUND_TITLE"),NO_DOWNLOADS:MZ("NO_DOWNLOADS"),NO_MIC_INPUT:MZ("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:MZ("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:MZ("OOPS_MESSAGE"),OPEN_APP:MZ("OPEN_APP"),OPEN_YOUTUBE:MZ("OPEN_YOUTUBE"),PAUSE:MZ("PAUSE"),PLAY:MZ("PLAY"),PLAYER_CAPTION:MZ("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:MZ("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:MZ("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:MZ("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:MZ("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:MZ("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:MZ("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:MZ("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:MZ("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:MZ("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:MZ("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:MZ("PLAYER_MINIMIZE"),PLAYER_NEXT:MZ("PLAYER_NEXT"),PLAYER_PAUSE:MZ("PLAYER_PAUSE"),PLAYER_PLAY:MZ("PLAYER_PLAY"),
PLAYER_PREVIOUS:MZ("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:MZ("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:MZ("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:MZ("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:MZ("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:MZ("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:MZ("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:MZ("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:MZ("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:MZ("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:MZ("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:MZ("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:MZ("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:MZ("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:MZ("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:MZ("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:MZ("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:MZ("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:MZ("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:MZ("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:MZ("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:MZ("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:MZ("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:MZ("PLAY_ALL"),PLEASE_FIX_ERRORS:MZ("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:MZ("PREVIOUS_VIDEO"),PRIVACY_POLICY:MZ("PRIVACY_POLICY"),RELOAD:MZ("RELOAD"),REQUIRED_LABEL:MZ("REQUIRED_LABEL"),SAVE_PLAYLIST:MZ("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:MZ("SCRUB_SLIDE_USER_EDU"),SEARCH:MZ("SEARCH","Search"),SEARCH_APPEND_LABEL:MZ("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:MZ("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:MZ("SEARCH_CLEAR_LABEL"),SEARCH_FILTERS_LABEL:MZ("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:MZ("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:MZ("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:MZ("SEEK_SLIDER"),SETTINGS_LABEL:MZ("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:MZ("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:MZ("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:MZ("SHOW_LESS"),SHOW_MORE:MZ("SHOW_MORE"),SHOW_PLAYER_CONTROLS:MZ("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:MZ("SHOW_PLAYLIST_VIDEOS"),
SHOW_SEARCH_FILTERS_LABEL:MZ("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:MZ("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:MZ("SIGN_IN_ON_WEB"),STABLE_VOLUME:MZ("STABLE_VOLUME"),STABLE_VOLUME_OFF:MZ("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:MZ("STABLE_VOLUME_ON"),STATS_FOR_NERDS:MZ("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:MZ("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:MZ("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:MZ("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:MZ("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:MZ("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:MZ("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:MZ("TIMESTAMP_SECONDS"),TOGGLE_OFF:MZ("TOGGLE_OFF"),TOGGLE_ON:MZ("TOGGLE_ON"),TRENDING:MZ("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:MZ("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:MZ("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:MZ("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:MZ("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:MZ("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:MZ("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:MZ("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:MZ("VIDEO_LINK_LABEL")};var Jxf=_.Ax(function(y){var W=y.playerApi;y=_.HO(function(G){dc(G,36843)});
var c=MZ("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),Z=_.j9(function(){SY(36843);W&&W().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.X("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.X("button",{el:y,class:"ytPlayerControlsJumpForwardButtonButton",title:c,"aria-label":c,"on:click":Z},_.X("span",null,_.X(_.Gb,{icon:"FAST_FORWARD"}))))},"lf");var VjQ=_.Ax(function(y){var W=y.appApi;y=_.HO(function(G){dc(G,62946)});
var c=MZ("OPEN_IN_MINIPLAYER"),Z=_.j9(function(){SY(62946);var G,D;(D=(G=W()).openInMiniplayer)==null||D.call(G);return!1});
return _.X("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.X("button",{el:y,class:"ytMiniplayerButtonButton",title:c,"aria-label":c,"on:click":Z},_.X(_.Gb,{icon:"PICTURE_IN_PICTURE",active:!1})))},"mf");var C6D=_.Ax(function(y){var W=y.playerApi;y=_.HO(function(Y){dc(Y,142812)});
var c=_.z(_.G9(!1,void 0,"I3VCyb")),Z=c.next().value,G=c.next().value;c=function(){return MZ("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Z()?1:2)})};
var D=_.j9(function(){SY(142812);if(W){var Y=W(),u=Z();Y.setPlaybackRate(u?1:2);G(!Z())}return!1});
return _.X("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.X("button",{el:y,class:"ytPlaybackSpeedButtonButton",title:c,"aria-label":c,"on:click":D},_.X("span",null,_.X(_.Gb,{icon:function(){return Z()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"nf");var Q5S=_.Ax(function(y){var W=y.title;var c=y.ariaLabel;var Z=y.icon;var G=y.command;var D=y.veType;y=_.HO(function(u){D&&dc(u,D())});
var Y=_.j9(function(){D&&SY(D());G&&_.U().resolve(_.i1).resolveCommand(G())});
return _.X("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.X("button",{el:y,class:"ytdThumbnailOverlayButtonButton",title:W,"aria-label":c,"on:click":Y},_.X(_.Gb,{icon:Z})))},"of");var AxD=["en-CA","en","es-MX","fr-CA"];var hPd=_.Ax(function(y){var W=_.V0(y,{isOverlay:!1}),c=W.captionIconType,Z=W.onClick;y=W.ariaLabel;var G=W.ariaPressed,D=W.isOverlay;W=_.HO(function(t){dc(t,127299)});
var Y=_.j9(function(t){SY(127299);Z==null||Z(t);return!1}),u={};
return _.X("ytm-closed-captioning-button",{class:_.Mi("ytmClosedCaptioningButtonHost",(u.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return c()===-1&&D()},u.ytmClosedCaptioningButtonIconDisabled=function(){return c()===-1&&!D()},u))},_.X("button",{el:W,
class:"ytmClosedCaptioningButtonButton",title:y,"aria-label":y,"aria-pressed":G,"on:click":Y},_.X(_.Gb,{icon:function(){var t="";var b=_.Uc().get("hl");b=!b||AxD.includes(b)?"CLOSED_CAPTION":"SUBTITLES";var r=c();switch(r){case -1:case 0:t=b;break;case 1:t=b+"_FILLED";break;default:_.d2(r)}return t}})))},"pf");
hPd.idomCompat={callbacks:{onClick:!0}};var vo="";var BpQ=_.Ax(function(y){var W=y.playerControlsProps,c=y.onClickFn;y=_.Yk(function(){var D=W(),Y=-1;D.captionsAvailable&&(Y=D.captionsEnabled?1:0);return Y},void 0,"WecR8e");
var Z=_.Yk(function(){var D=W();return D.captionsAvailable?_.bN(D.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.bN("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),G=_.Yk(function(){var D=W();
D=D.captionsAvailable?D.captionsEnabled:void 0;return D},void 0,"Q17ly");
return _.X("yt-closed-captions-toggle-button",null,_.X(hPd,{captionIconType:y,ariaLabel:Z,ariaPressed:G,onClick:function(D){var Y=W();if(Y.captionsAvailable){var u=Y.playerApi;if(u){var t=Y.playerApi;if(t){var b=vo;if(b){t=t.getOption("captions","track");var r;vo=(r=t?t.displayName:null)!=null?r:b}else t.getOptions("captions")?(b=cG6(t),vo=b.length?(r=ZOg(b))?r.displayName:b[0].displayName:""):vo=""}Grg(u);_.O("mweb_disable_set_state_captions_killswitch")&&Y.setState({captionsEnabled:!Y.captionsEnabled})}}var F,
K;(K=(F=Y.appApi).showCaptionsToggleToast)==null||K.call(F,Y);c==null||c(D)},
isOverlay:!0}))},"qf");var H6Q=_.Ax(function(y){var W=y.data;return _.X("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.X(_.TZ,{data:function(){return{type:16,text:_.tPI(W().label)}}}))},"rf");var LD3=_.Ax(function(y){var W=_.Mi("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return y.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return y.size()==="small"?y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
y.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.X("animated-seek-arrows",{class:_.Mi("ytPlayerControlsAnimatedSeekArrowsHost")},_.X("span",{class:W}),_.X("span",{class:W}),_.X("span",{class:W}))},"sf");
LD3.idomCompat=!0;var vm9=_.Ax(function(){var y=_.bN("PLAYER_SECONDS",{seconds_placeholder:"30"}),W=_.z(_.G9(!1,void 0,"Yj8msb")),c=W.next().value,Z=W.next().value,G=_.z(_.G9(!1,void 0,"r9Z50e"));W=G.next().value;var D=G.next().value;G={};var Y=_.Mi("jumpForwardOverlayOverlay",(G.jumpForwardOverlayOverlayHidden=W,G));_.rj(function(){var u=null,t=null,b=function(){u!==null&&_.gl().cancelJob(u);t!==null&&_.gl().cancelJob(t);D(!0);Z(!0);_.vh(_.gl(),function(){D(!1)});
u=_.vh(_.gl(),function(){D(!0);t=_.vh(_.gl(),function(){Z(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",b);_.KL(function(){window.removeEventListener("jump-forward-clicked",b)})});
return _.X("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.X(_.YN,{cond:c,then:function(){return _.X("div",{class:Y},_.X(LD3,{direction:1,size:"large"}),_.X("div",null,y))}}))},"tf");var EAH=_.J_.MUTE_VOLUME,l2d=_.J_.UNMUTE_VOLUME,dMQ=_.Ax(function(y){var W=y.muteIconType;var c=y.onClick;var Z=y.useOutlineIcon;y=_.HO(function(Y){dc(Y,28662)});
var G=function(){return NK9(W(),Z==null?void 0:Z()).ariaLabel},D=_.j9(function(Y){SY(28662);
c==null||c(Y);return!1});
return _.X("ytm-mute-button",{class:"ytmMuteButtonHost"},_.X("button",{el:y,class:"ytmMuteButtonButton",title:G,"aria-label":G,"on:click":D},_.X("span",null,_.X(_.Gb,{icon:function(){return NK9(W(),Z==null?void 0:Z()).iconName}}))))},"uf");var S0B=_.Ax(function(y){var W=y.volumeProps;var c=y.onClickFn;var Z=y.useOutlineIcon;return _.X("yt-mute-toggle-button",null,_.X(dMQ,{muteIconType:function(){var G=W(),D=!_.O("mweb_treat_zero_volume_as_muted_killswitch")&&G.volume===0;return G.volumeMuted||D?0:1},
onClick:function(G){var D=W().playerApi;D&&(D.isMuted()?D.unMute():D.mute(!1));c==null||c(G)},
useOutlineIcon:function(){return!(Z==null||!Z())}}))},"vf");
S0B.idomCompat=!0;var Tpf=_.Ax(function(y){var W=y.data;var c=_.HO();y=_.j9(function(){c.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.X("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:c,"on:animationend":y},_.X(_.oL,{command:function(){return W().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.X(_.YN,{cond:function(){var Z;return(Z=W().icon)==null?void 0:Z.iconType},
then:function(){return _.X("span",null,_.X(_.Gb,{icon:function(){var Z;return(Z=W().icon)==null?void 0:Z.iconType}}))}}),_.X("div",{class:"ytmPaidContentOverlayText"},_.X(_.Da,{text:function(){return W().text}})),_.X(_.YN,{cond:function(){return W().navigationEndpoint},
then:function(){return _.X(_.Gb,{icon:"CHEVRON_RIGHT"})}})))},"wf");
Tpf.idomCompat=!0;var I23=[].concat(_.No([{register:function(y){var W=HlH(y),c;(c=y().playerApi)==null||c.addEventListener("onVolumeChange",W);return function(){}}},
{register:function(y){var W=LqH(y);y=y().playerApi;y==null||y.addEventListener("captionschanged",W);y==null||y.addEventListener("captionssettingschanged",W);y==null||y.addEventListener("onCaptionsTrackListChanged",W);return function(){}}},
{register:function(y){if(!_.O("mweb_screenreader_accessible_player"))return function(){};
var W=vAd(y),c=document.querySelector("video");c==null||c.addEventListener("touchend",W);return function(){c==null||c.removeEventListener("touchend",W)}}},
{register:function(y){if(!_.O("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var W=vAd(y),c=document.querySelector("video");c==null||c.addEventListener("focus",W);return function(){c==null||c.removeEventListener("focus",W)}}}]),[{register:function(y){var W=QP6(y),c;
(c=y().playerApi)==null||c.addEventListener("onStateChange",W);return function(){}}},
{register:function(y){var W=AEH(y),c;(c=y().playerApi)==null||c.addEventListener("onPlaybackRateChange",W);return function(){}}},
{register:function(y){var W=hof(y),c;(c=y().playerApi)==null||c.addEventListener("onVideoDataChange",W);return function(){}}},
{register:function(y){var W=BKH(y),c,Z;(c=y())==null||(Z=c.playerApi)==null||Z.addEventListener("onVideoProgress",W);return function(){}}}]);var aV6=_.Ax(function(y){var W=y.data;var c=function(){return _.bN("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+W().playbackRate})};
return _.X(_.YN,{cond:function(){return W().playbackRate&&W().playbackRate!==1},
then:function(){return _.X("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.X("div",{class:"ytPlaybackRateOverlayOverlay"},_.X(LD3,{direction:1,size:"small"}),_.X("div",{class:"ytPlaybackRateOverlayLabel"},c)))}})},"xf");var xMD=_.Ax(function(y){var W=y.data;return _.X("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.X(_.YN,{cond:function(){var c,Z=(c=W())==null?void 0:c.playerResponse,G;return Z==null?void 0:(G=Z.paidContentOverlay)==null?void 0:G.paidContentOverlayRenderer},
then:function(c){return _.X(Tpf,{data:c})}}))},"zf"),i6Z=_.Ax(function(y){var W=y.props;
var c=y.data;var Z=y.options;var G=function(){var b,r,F,K;return(b=c())==null?void 0:(r=b.playerResponse)==null?void 0:(F=r.playerConfig)==null?void 0:(K=F.inlinePlaybackConfig)==null?void 0:K.showAudioControls},D=function(){var b,r;
if(G()&&((b=Z())==null?void 0:(r=b.additionalButton)==null?void 0:r.button)!==void 0){var F,K,l;b=(F=c())==null?void 0:(K=F.playerApi)==null?void 0:(l=K.getSize())==null?void 0:l.height;if(!(b===void 0||b<184)){var N,P;return(N=Z())==null?void 0:(P=N.additionalButton)==null?void 0:P.button}}},Y=function(){var b,r;
return(b=Z())==null?void 0:(r=b.additionalButton)==null?void 0:r.thumbnailOverlayButtonRenderers},u=function(){var b,r;
return(b=Z())==null?void 0:(r=b.additionalButton)==null?void 0:r.thumbnailOverlayButtonViewModels},t=function(){var b=[_.X(S0B,{volumeProps:W}),
_.X(BpQ,{playerControlsProps:W})];D()===1&&b.push(_.X(Jxf,{playerApi:function(){return W().playerApi}}));
D()===2&&b.push(_.X(VjQ,{appApi:function(){return W().appApi}}));
D()===3&&b.push(_.X(C6D,{playerApi:function(){return W().playerApi}}));
var r=Y();if(D()===4&&r){r=_.z(r);for(var F=r.next(),K={};!F.done;K={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$565:void 0},F=r.next()){F=F.value;K.tooltip$jscomp$2=F.tooltip;var l=void 0,N=void 0;K.ariaLabel$jscomp$20=((l=F.accessibility)==null?void 0:(N=l.accessibilityData)==null?void 0:N.label)||K.tooltip$jscomp$2;l=void 0;K.icon$jscomp$52=(l=F.icon)==null?void 0:l.iconType;K.command$jscomp$565=F.command;K.tooltip$jscomp$2&&K.ariaLabel$jscomp$20&&K.icon$jscomp$52&&
b.push(_.X(Q5S,{title:function(P){return function(){return P.tooltip$jscomp$2}}(K),
ariaLabel:function(P){return function(){return P.ariaLabel$jscomp$20}}(K),
icon:function(P){return function(){return P.icon$jscomp$52}}(K),
command:function(P){return function(){return P.command$jscomp$565}}(K)}))}}r=u();
if(D()===4&&r)for(r=_.z(r),F=r.next(),K={};!F.done;K={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$566:void 0},F=r.next())F=F.value,K.tooltip$jscomp$3=F.title,K.ariaLabel$jscomp$21=F.accessibilityText||K.tooltip$jscomp$3,K.icon$jscomp$53=F.iconName,K.command$jscomp$566=_.UH(F.onTap),K.tooltip$jscomp$3&&K.ariaLabel$jscomp$21&&K.icon$jscomp$53&&b.push(_.X(Q5S,{title:function(P){return function(){return P.tooltip$jscomp$3}}(K),
ariaLabel:function(P){return function(){return P.ariaLabel$jscomp$21}}(K),
icon:function(P){return function(){return P.icon$jscomp$53}}(K),
command:function(P){return function(){return P.command$jscomp$566}}(K)}));
return b};
return _.X(_.YN,{cond:G,then:function(){return _.X("div",{class:"ytInlinePlayerControlsTopRightControls"},_.X(_.mC,{each:t},function(b){return _.X("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.X("div",{class:"ytInlinePlayerControlsButtonIcon"},b))}))}})},"Af"),wQS=_.Ax(function(y){var W=y.props;
var c=y.data;var Z=y.options;y={};y=_.Mi("ytInlinePlayerControlsBottomRightControls",(y.ytInlinePlayerControlsBottomRightControlsHidden=function(){var G;return ScQ(c(),Z())&&((G=Z())==null?void 0:G.insetProgressBar)&&(W().isHovering||W().isDragging)},y));
return _.X("div",{class:y},_.X(Mj3,{data:c}),_.X(_.YN,{cond:function(){var G;return!((G=Z())==null?0:G.hideTimeDisplay)},
then:function(){return _.X(ePH,{props:W})}}))},"Bf"),Mj3=_.Ax(function(y){var W=y.data;
return _.X(_.bg,{data:function(){var c;return Ro6((c=W())==null?void 0:c.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:H6Q})},"Cf"),ePH=_.Ax(function(y){var W=y.props;
return _.X(_.YN,{cond:function(){return W().isLive},
then:function(){return _.X(q0f,null)},
else:function(){return _.X(ksH,{props:W})}})},"Df"),ksH=_.Ax(function(y){var W=y.props;
return _.X("div",{class:_.Mi("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.J_.PLAYER_TIME_ELAPSED+" "+_.L5E(W().playedTime)}},_.X(_.TZ,{data:function(){return{type:16,
text:_.L5E(W().videoDuration-W().playedTime)}}}))},"Ef"),q0f=_.Ax(function(){return _.X("div",{class:_.Mi("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.X(_.TZ,{data:{type:17,
text:_.J_.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Ff"),j9H=_.Ax(function(y){var W=y.props;
var c=y.data;var Z=y.options;return _.X(_.Cz3,{progressBarProps:W,config:function(){var G,D=_.g((G=c())==null?void 0:G.multiMarkersPlayerBar,_.eDi),Y;G=((Y=Z())==null?0:Y.insetProgressBar)?2:1;var u;Y=(u=Z())==null?void 0:u.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:G,chapterData:D,isInlinePlayback:!0,doSeekOnClick:Y,playheadDotBehavior:Y?1:0}}})},"Gf");_.A3(_.Ax(function(y){var W=y.data;var c=y.appApi;var Z=y.options;var G=CN9(W,d2Z(c));y={};c={};return _.X("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.X("div",{class:_.Mi("ytInlinePlayerControlsDarkenedOverlay",(y.ytInlinePlayerControlsDarkenedOverlayShow=function(){return G().isHovering},y))}),_.X(vm9,null),_.X(aV6,{data:G}),_.X(xMD,{data:W}),_.X(P66,{playerControlsProps:G,
isShortsPage:!1}),_.X("div",{class:_.Mi((c.ytInlinePlayerControlsControlsHidden=function(){return G().isDragging},c))},_.X(i6Z,{props:G,
data:W,options:Z}),_.X(wQS,{props:G,data:W,options:Z})),_.X(_.YN,{cond:function(){return ScQ(W(),Z())},
then:function(){return _.X(j9H,{props:G,data:W,options:Z})}}))},"yf"),"yt-inline-player-controls",{props:{data:_.Ix,
appApi:_.QE,options:_.Ix}});var Ve,y3S=function(){var y=_.v.apply(this,arguments)||this;y.opts=null;y.playerControlsData=null;y.playerControlsAppApi={openInMiniplayer:function(){y.openInMiniplayer()}};
y.playerControlsOptions={};y.noAnimation=!1;y.playbackIntentTriggered=!1;y.positionData=null;y.hidden=!0;y.active=!1;y.playing=!1;y.videoPreviewDataIndex=0;y.JSC$16711_playerPromise=null;y.player=null;y.enableAudioControls=!1;y.hasBeenUnmuted=!1;y.captionsHaveBeenTurnedOff=!1;y.JSC$16711_playerEvents=new Map;y.videoPreviewFetchRequest=null;y.scheduledPreviewEndJobId=null;y.JSC$16711_preventProgressSaveTimer=null;y.watchEndpointStartTimeUpdaterInterval=null;y.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};y.windowOnBlurFn=function(){y.deactivate()};
return y};
_.R(y3S,_.v);_.f=y3S.prototype;
_.f.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.O("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"}}}};
_.f.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16711_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16711_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16711_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16711_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.qO(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.f.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.f.onPageTypeChange=function(){this.deactivate()};
_.f.onWindowResized=function(){this.deactivate()};
_.f.onCaptionsChanged=function(y){y=!!y.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!y);this.setCaptionSize()};
_.f.setCaptionSize=function(){var y;if(this.active&&!this.captionsHaveBeenTurnedOff&&((y=this.player)==null?0:y.getCaptionWindowContainerId())){var W;(W=this.player)==null||W.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.f.currentPageAllowed=function(){return!this.isWatchPage};
_.f.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var y=this.positionData,W=y.initialTopPosition,c=y.initialHorizontalPosition;_.wM(this.hostElement,{"--ytd-video-preview-translate-left":y.finalHorizontalPosition-c+"px","--ytd-video-preview-translate-top":y.finalTopPosition-W+"px","--ytd-video-preview-original-top-position":W+"px","--ytd-video-preview-original-horizontal-position":c+"px",
"--ytd-video-preview-initial-scale":"scale("+y.initialScale+")","--ytd-video-preview-width":y.videoPreviewWidth+"px","--ytd-video-preview-height":y.videoPreviewHeight+"px"});return!0};
_.f.handleOpenVideoPreviewAction=function(y){var W=this,c;return _.m(function(Z){if(!W.currentPageAllowed())return Z.return(0);W.opts=y;return(c=W.alignVideoPreviewForAnimation(y.thumbnail))?Z.return(W.activate()):Z.return(0)})};
_.f.onMouseLeave=function(y){this.shouldDeactivateOnMouseLeave(y)&&this.deactivate()};
_.f.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.KX.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.f.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.f.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Ve.JSC$16710_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ve.JSC$16710_CLICK_LOCATION_ID_MAP)};
_.f.shouldDeactivateOnMouseLeave=function(y){y=y.relatedTarget;if(!y)return!0;var W;return(W=this.opts)!=null&&W.mediaRenderer?!_.x$(this.opts.mediaRenderer).contains(y):!0};
_.f.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.f.onPlaybackStart=function(){var y=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$16711_preventProgressSaveTimer=
_.vh(_.KX,function(){y.resetPreventProgressSaveTimer()},1E4);
var W;if((W=this.opts)==null?0:W.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.vh(_.KX,function(){y.hasMultipleVideoPreviews()?y.startPlaybackForNextVideo():y.deactivate()},this.opts.videoPreviewDurationMs);
var c;this.player.setGlobalCrop(((c=this.opts)==null?0:c.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.f.getRoundedCornersSize=function(){var y;if((y=this.opts)==null?0:y.roundedCornersSize){var W;return(W=this.opts)==null?void 0:W.roundedCornersSize}var c;if((c=this.opts)==null?0:c.enableRounding){var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="small")return 1;var G;if(((G=this.opts)==null?void 0:G.thumbnailSize)==="medium")return 2;var D;if(((D=this.opts)==null?void 0:D.thumbnailSize)==="large")return 3}return _.O("web_imp_inset_progress_bar")?3:0};
_.f.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.f.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.f.onMediaContainerClick=function(y){this.isShortcutClick(y)||(this.navigateToWatch(y),y.preventDefault(),y.stopPropagation())};
_.f.activate=function(){var y=this,W,c,Z,G,D,Y,u,t;return _.m(function(b){switch(b.nextAddress){case 1:if(!y.currentPageAllowed())return b.return(0);c=(W=y.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint;Z=_.Ee.instance;if(!c||!Z)return b.return(0);y.playbackIntentTriggered=!0;((G=y.opts)==null?0:G.mediaRenderer)&&gAH(y.opts.mediaRenderer,function(){y.deactivate()});
_.Lv(y,function(){y.revealPreviewUi()});
D={};_.O("enable_unknown_lact_fix_on_html5")&&(_.U().resolve(_.t7),D.lact=_.MV());y.videoPreviewFetchRequest=rE6(Z,y.getInlinePlaybackRequestData(y.videoPreviewData),D);_.tm(b,2);return _.n(b,y.videoPreviewFetchRequest,4);case 4:Y=b.yieldResult;if(((u=Y)==null?void 0:(t=u.playabilityStatus)==null?void 0:t.status)==="OK")return b.return(y.handlePlayerResponse(Y));throw Error("Ij");case 2:_.rs(b),y.deactivate();case 3:return b.return(1)}})};
_.f.getInlinePlaybackRequestData=function(y){var W,c=_.O("web_imp_player_mute_params")?((W=this.opts)==null?void 0:W.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:y.inlinePlaybackEndpoint,startPlaybackInMutedState:c}};
_.f.handlePlayerResponse=function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F;return _.m(function(K){if(K.nextAddress==1){c=W.getInlinePlaybackVideoId();if(!(((Z=y)==null?0:(G=Z.videoDetails)==null?0:G.videoId)&&W.currentPageAllowed()&&W.playbackIntentTriggered&&W.opts&&c))return W.deactivate(),K.return(0);if(y.videoDetails.videoId!==c)return K.return(0);W.enableAudioControls=!!((D=y.playerConfig)==null?0:(Y=D.inlinePlaybackConfig)==null?0:Y.showAudioControls);y.trackingParams=W.getInlinePlaybackTrackingParams();
if(!W.inlinePlayer)return K.return(0);u={};if(b=_.g((t=W.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint,_.Sb))u.watch_endpoint=b;if(W.videoPreviewData){var l,N=(l=_.g(W.videoPreviewData.inlinePlaybackEndpoint,_.Sb))==null?void 0:l.startTimeSeconds;N!==void 0&&(y.playerConfig||(y.playerConfig={}),y.playerConfig.playbackStartConfig||(y.playerConfig.playbackStartConfig={}),y.playerConfig.playbackStartConfig.startPosition||(y.playerConfig.playbackStartConfig.startPosition={}),y.playerConfig.playbackStartConfig.startSeconds=
N,y.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(N*1E3))}W.inlinePlayer.loadVideoWithPlayerResponse(y,u);if(W.JSC$16711_playerPromise)return K.jumpTo(2);W.JSC$16711_playerPromise=W.inlinePlayer.getPlayerPromise();return _.n(K,W.JSC$16711_playerPromise,3)}K.nextAddress!=2&&(r=K.yieldResult,r.setInlinePreview(!0),r.setSizeStyle(!1,!0),W.ytPlayerListenerBehavior.listenToPlayerEvents(r,W.JSC$16711_playerEvents),W.player=r,_.Z2(W.hostElement,"player-api-ready"));((F=W.opts)==
null?0:F.showPlayerControls)&&W.videoPreviewData&&W.player&&(W.playerControlsData={playerResponse:y,isInlinePlayback:!0,thumbnailOverlays:W.videoPreviewData.thumbnailOverlays,playerApi:W.player},W.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!W.unroundCornersForPlayback,additionalButton:W.getAdditionalButtonType(W.videoPreviewData.thumbnailOverlays)});return K.return(2)})};
_.f.revealPreviewUi=function(){var y=this;this.playbackIntentTriggered&&_.RJI(this,function(){y.hasThumbnailPositionChangedSinceTriggered()||(y.updateActiveState(!0),y.noAnimation=!1)})};
_.f.hasThumbnailPositionChangedSinceTriggered=function(){var y=this.positionData,W=this.getThumbnailPositionData();return(y==null?void 0:y.initialTopPosition)!==(W==null?void 0:W.initialTopPosition)||(y==null?void 0:y.initialHorizontalPosition)!==(W==null?void 0:W.initialHorizontalPosition)};
_.f.getThumbnailPositionData=function(){var y,W;if((W=this.opts)==null||!W.thumbnail)return null;W=this.opts.thumbnail;var c=((y=this.opts)==null?0:y.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Z=W.getBoundingClientRect();y=Z.width;W=Z.height;var G=Z.top+window.scrollY;Z=Z.left+window.scrollX;var D=c?Math.ceil(y):y;c=c?Math.ceil(W):W;var Y=y/D;y={initialScale:Y,initialTopPosition:G-12*Y,finalTopPosition:G-12-(c-W)/2,initialHorizontalPosition:Z-(12+(D-y)/2),finalHorizontalPosition:Z-12-(D-y)/
2,videoPreviewWidth:D,videoPreviewHeight:c};return y};
_.f.updateActiveState=function(y){this.active=y;this.ytdReduxBehavior.dispatch(_.jv({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:y}))};
_.f.stopPlayer=function(y){y=y.resetWatchEndpointStartTime===void 0?!1:y.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(y)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.KX.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.f.deactivate=function(y){y=y===void 0?{}:y;y=y.resetWatchEndpointStartTime===void 0?!1:y.resetWatchEndpointStartTime;iY&&(iY.disconnect(),iY=null);this.stopPlayer({resetWatchEndpointStartTime:y});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.f.isValidThumbnailOverlayButton=function(y,W){y=y.thumbnailOverlayButtonRenderer;var c;return!!y&&!!y.tooltip&&!((c=y.icon)==null||!c.iconType)&&W.includes(y.icon.iconType)};
_.f.isValidThumbnailOverlayButtonViewModel=function(y,W){var c;y=_.g((c=y.thumbnailOverlayButtonViewModel)==null?void 0:c.overlayButton,_.ri);return!!y&&!!y.title&&!!y.iconName&&W.includes(y.iconName)};
_.f.getAdditionalButtonType=function(y){var W=this;if(_.O("web_imp_fastforward_button"))return{button:1};if(_.O("web_imp_miniplayer_button"))return{button:2};if(_.O("web_imp_playback_speed_button"))return{button:3};var c=["AUTO_AWESOME"],Z=(y||[]).filter(function(D){return W.isValidThumbnailOverlayButton(D,c)}).map(function(D){return D.thumbnailOverlayButtonRenderer});
if(Z.length)return{button:4,thumbnailOverlayButtonRenderers:Z};var G=["AUTO_AWESOME"];y=(y||[]).filter(function(D){return W.isValidThumbnailOverlayButtonViewModel(D,G)}).map(function(D){return _.g(D.thumbnailOverlayButtonViewModel.overlayButton,_.ri)});
if(y.length)return{button:4,thumbnailOverlayButtonViewModels:y}};
_.f.allowCaptions=function(){var y;return!((y=this.opts)==null?0:y.forceCaptionsOff)};
_.f.allowUnmuting=function(){var y;return this.enableAudioControls&&!((y=this.opts)==null?0:y.forceMutedVolume)};
_.f.beginStartTimeUpdater=function(){var y=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.y2(function(){y.updateWatchEndpointStartTime()},1E3)};
_.f.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.f.resetPreventProgressSaveTimer=function(){this.JSC$16711_preventProgressSaveTimer!==null&&(_.KX.cancelJob(this.JSC$16711_preventProgressSaveTimer),this.JSC$16711_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.f.updateWatchEndpointStartTime=function(y){var W=this.videoPreviewData;if(this.player&&W!=null&&W.inlinePlaybackEndpoint&&!this.JSC$16711_preventProgressSaveTimer){y=y?0:Math.floor(this.player.getCurrentTime());var c=_.g(W.navigationEndpoint,_.Sb);c&&(c.startTimeSeconds=y);if(W=_.g(W.inlinePlaybackEndpoint,_.Sb))W.startTimeSeconds=y}};
_.f.isShortcutClick=function(y){return!!y&&(y.ctrlKey||y.shiftKey||y.metaKey)};
_.f.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.f.openInMiniplayer=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1){c=(W=y.videoPreviewData)==null?void 0:W.navigationEndpoint;if(!c)return Z.return();_.GR().lockupActivation=!0;return _.n(Z,_.mj8(_.U().resolve(_.Cy),c),2)}_.GR().userActivation=!0;_.F2(Z)})};
_.f.navigateToWatch=function(y){var W,c=(W=this.videoPreviewData)==null?void 0:W.navigationEndpoint;if(c){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(c,y,!0);else{if(_.O("web_thumbnail_to_watch_transition")){var Z,G;(Z=this.opts)==null||(G=Z.onNavigateToWatchCallback)==null||G.call(Z)}_.Z2(this.hostElement,"yt-navigate",{endpoint:c})}this.deactivate()}};
_.f.getInlinePlaybackVideoId=function(){var y,W;return(W=_.g((y=this.videoPreviewData)==null?void 0:y.inlinePlaybackEndpoint,_.Sb))==null?void 0:W.videoId};
_.f.getInlinePlaybackTrackingParams=function(){var y,W;return(y=this.videoPreviewData)==null?void 0:(W=y.inlinePlaybackEndpoint)==null?void 0:W.clickTrackingParams};
_.f.hasMultipleVideoPreviews=function(){var y;return!!(((y=this.opts)==null?0:y.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.f.startPlaybackForNextVideo=function(){var y;(y=this.opts)!=null&&y.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())};
_.dJ.Object.defineProperties(y3S.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.opts)==null?0:y.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.opts)==null||!y.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 y;if(Array.isArray((y=this.opts)==null?void 0:y.videoPreviewData)){var W;return(W=this.opts)==null?void 0:W.videoPreviewData[this.videoPreviewDataIndex]}var c;return(c=this.opts)==null?void 0:c.videoPreviewData}}});
var Cr=Ve=y3S;Ve.prototype.onIsAdsVideoChange=Ve.prototype.onIsAdsVideoChange;Ve.prototype.onInlinePreviewIsEnabledChange=Ve.prototype.onInlinePreviewIsEnabledChange;Ve.prototype.optsChanged=Ve.prototype.optsChanged;Ve.prototype.onMouseLeave=Ve.prototype.onMouseLeave;Cr.JSC$16710_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Cr.JSC$16710_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Cr.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],Cr.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Cr.prototype,"componentBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Cr.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.v2.YtSparklesClickLocationBehavior),_.e("design:type",Object)],Cr.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Cr.prototype,"opts",void 0);_.x([_.L(),_.e("design:type",Object)],Cr.prototype,"playerControlsData",void 0);
_.x([_.L(),_.e("design:type",Object)],Cr.prototype,"playerControlsAppApi",void 0);_.x([_.L(),_.e("design:type",Object)],Cr.prototype,"playerControlsOptions",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Cr.prototype,"noAnimation",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Cr.prototype,"hidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Cr.prototype,"active",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Cr.prototype,"playing",void 0);_.x([_.L({selector:_.PAt}),_.e("design:type",Boolean)],Cr.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.L(),_.e("design:type",String)],Cr.prototype,"pagePath",void 0);_.x([_.L({selector:_.NW}),_.e("design:type",Boolean)],Cr.prototype,"isWatchPage",void 0);_.x([_.A("videoPreviewData"),_.e("design:type",Object),_.e("design:paramtypes",[])],Cr.prototype,"thumbnailData",null);
_.x([_.A("opts","active"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Cr.prototype,"hidePlayerControls",null);_.x([_.A("opts"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Cr.prototype,"isAdsVideo",null);_.x([_.A("opts"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Cr.prototype,"roundedCornersSmall",null);
_.x([_.A("opts"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Cr.prototype,"roundedCornersMedium",null);_.x([_.A("opts"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Cr.prototype,"roundedCornersLarge",null);_.x([_.A("opts"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Cr.prototype,"unroundCornersForPlayback",null);
_.x([_.A("opts","videoPreviewDataIndex"),_.e("design:type",Object),_.e("design:paramtypes",[])],Cr.prototype,"videoPreviewData",null);_.x([_.L(),_.e("design:type",Object)],Cr.prototype,"videoPreviewDataIndex",void 0);_.x([_.jj("#inline-player"),_.e("design:type",Object)],Cr.prototype,"inlinePlayer",void 0);_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[MouseEvent]),_.e("design:returntype")],Cr.prototype,"onMouseLeave",null);
_.x([_.Gs("opts"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Cr.prototype,"optsChanged",null);_.x([_.Gs("inlinePreviewIsEnabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Cr.prototype,"onInlinePreviewIsEnabledChange",null);_.x([_.H("isAdsVideo"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Cr.prototype,"onIsAdsVideoChange",null);
Cr=Ve=_.x([_.d({is:"ytd-video-preview",disableElementRegistration:!0})],Cr);
_.T(Cr,"ytd-video-preview",function(){if(pQd!==void 0)return pQd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return pQd=y},{mode:2});
}catch(e){_._DumpException(e)}
try{
var fm9;var oMZ;/*

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
*/
_.mD({_template:function(){if(oMZ!==void 0)return oMZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;fm9===void 0&&(fm9=document.createElement("template"));var Z=fm9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return oMZ=y},
is:"tp-yt-paper-checkbox",behaviors:[_.CTZ],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Lv(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var y=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),W="px",c=y.match(/[A-Za-z]+$/);c!==null&&(W=c[0]);y=parseFloat(y);c=8/3*y;W==="px"&&(c=Math.floor(c),c%2!==y%2&&c++);this.updateStyles({"--paper-checkbox-ink-size":c+
W})}})},
_computeCheckboxClass:function(y,W){var c="";y&&(c+="checked ");W&&(c+="invalid");return c},
_computeCheckmarkClass:function(y){return y?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Jdi._createRipple.call(this)}});var D49=new _.w("radioButtonSurveyOptionRenderer"),z26=new _.w("checkboxSurveyOptionRenderer");var YQd;var m43;var sN3=0,uo3=function(){var y=_.v.call(this)||this;y.selected=!1;y.isOverlay=!1;y.inputId="toggle-option-"+sN3;sN3++;return y};
_.R(uo3,_.v);uo3.prototype.onTap=function(){_.Z2(this.hostElement,"ytd-toggle-option-clicked")};
var $d=uo3;_.x([_.L(),_.e("design:type",String)],$d.prototype,"label",void 0);_.x([_.L(),_.e("design:type",String)],$d.prototype,"inputId",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$d.prototype,"selected",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$d.prototype,"isOverlay",void 0);$d=_.x([_.d({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.e("design:paramtypes",[])],$d);
_.T($d,"ytd-toggle-option-renderer",function(){if(m43!==void 0)return m43;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return m43=y},{mode:1});var tNd=function(){var y=_.v.apply(this,arguments)||this;y.isToggleOption=!1;y.isOverlay=!1;return y};
_.R(tNd,_.v);tNd.prototype.onTap=function(y){y.preventDefault();this.data&&(y=!this.data.checked,this.set("data.checked",y),_.Z2(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:y,value:this.data.value}))};
_.dJ.Object.defineProperties(tNd.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
var KK=tNd;KK.prototype.onTap=KK.prototype.onTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],KK.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],KK.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],KK.prototype,"isToggleOption",void 0);_.x([_.L(),_.e("design:type",Object)],KK.prototype,"isOverlay",void 0);_.x([_.A("data.responseText"),_.e("design:type",String),_.e("design:paramtypes",[])],KK.prototype,"label",null);
_.x([_.B("ytd-toggle-option-clicked"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],KK.prototype,"onTap",null);KK=_.x([_.d({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],KK);
_.T(KK,"ytd-checkbox-survey-option-renderer",function(){if(YQd!==void 0)return YQd;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YQd=y},{mode:1});var nMB;var XR6;var bvd=function(){var y=_.v.apply(this,arguments)||this;y.checked=!1;y.isToggleOption=!1;return y};
_.R(bvd,_.v);bvd.prototype.onTap=function(){this.data&&(this.checked?_.GG(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.GG(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
var Oi=bvd;Oi.prototype.onTap=Oi.prototype.onTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Oi.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Oi.prototype,"checked",void 0);_.x([_.L(),_.e("design:type",Object)],Oi.prototype,"isToggleOption",void 0);
_.x([_.B("ytd-toggle-option-clicked"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Oi.prototype,"onTap",null);Oi=_.x([_.d({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],Oi);
_.T(Oi,"ytd-radio-button-survey-option-renderer",function(){if(XR6!==void 0)return XR6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return XR6=y},{mode:1});var rsB=function(){var y=_.v.apply(this,arguments)||this;y.disableAnimation=!1;y.isToggleOption=!0;y.followUpSurveyCommand=null;y.selectedRatingEndpoint=null;y.isSlimlineSurveyFollowUp=!1;y.isShortsStyle=!1;y.styleOverrideAttribute=!0;y.isDarkMode=!1;y.isSubmitted=!1;y.roundedContainer=!0;y.improveShortsResponseRate=_.O("web_improve_shorts_response_rate");y.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 y};
_.R(rsB,_.v);_.f=rsB.prototype;
_.f.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"}}}}};
_.f.attached=function(){var y=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(c){var Z;if((Z=c[0])!=null&&Z.isIntersecting){_.Wh().reportShown(y.hostElement);var G;(G=y.intersectionObserver)==null||G.unobserve(y.hostElement)}},{rootMargin:"0px",
threshold:.6});var W;(W=this.intersectionObserver)==null||W.observe(this.hostElement)};
_.f.onDarkModeToggledAction=function(y){this.isDarkMode=y};
_.f.dataChanged=function(){var y;if(((y=this.data)==null?void 0:y.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var W;((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var c,Z,G,D;this.darkColorPalette=(c=this.data)==null?void 0:(Z=c.inlineContent)==null?void 0:(G=Z.compactVideoRenderer)==null?void 0:(D=G.thumbnail)==null?
void 0:D.darkColorPalette;var Y,u,t,b;this.lightColorPalette=(Y=this.data)==null?void 0:(u=Y.inlineContent)==null?void 0:(t=u.compactVideoRenderer)==null?void 0:(b=t.thumbnail)==null?void 0:b.lightColorPalette;var r,F;if(((r=this.data)==null?0:(F=r.inlineContent)==null?0:F.compactVideoRenderer)&&this.isShortsStyle){var K,l,N,P;y=_.Bh((K=this.data)==null?void 0:(l=K.inlineContent)==null?void 0:(N=l.compactVideoRenderer)==null?void 0:(P=N.thumbnail)==null?void 0:P.thumbnails);_.wM(this.hostElement,
{"--yt-background-url":"url("+y+")"})}};
_.f.handleRequestCompletion=function(){this.hostElement.hidden&&_.Z2(this.hostElement,"yt-dismissible-item-dismissed")};
_.f.onPopupClosed=function(y){var W;((W=y.detail)==null?void 0:W.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.GG(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.f.handleInlineSurveyRatingSelect=function(y,W){var c=this;this.selectedRatingEndpoint=y;this.followUpSurveyCommand=W;this.expanded=!!y;this.getOptionRenderers().forEach(function(Z,G){c.notifyPath("followUpSurveyCommand.followUpOptions."+G+".checkboxSurveyOptionRenderer.checked");c.set("followUpSurveyCommand.followUpOptions."+G+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),y=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.GG(this.hostElement,"yt-reel-non-video-content-dismissal-command",[y]))};
_.f.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.GG(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var y,W=(y=this.data)==null?void 0:y.dismissalEndpoint;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.f.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.GG(this.hostElement,"yt-close-popup-action"))};
_.f.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var y=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{y=this.getOptionRenderers().filter(function(Z){return Z.checked});
if(y.length===0)return;y=y.map(function(Z){return Z.responseEndpoint})}var W=[];
y.forEach(function(Z,G){G!==0&&(Z=_.g(Z,_.Na))&&Z.feedbackToken&&W.push(Z.feedbackToken)});
if(y=y[0]){var c={};W.length>0&&(c.extra_feedback_tokens=W);this.ytComponentBehavior.resolveCommand(y,{form:c})}}};
_.f.getOptionRenderers=function(){var y=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(W){y.isSingleSelect=!!_.g(W,D49);return y.isSingleSelect?_.g(W,D49):_.g(W,z26)}):[]};
_.f.handleInlineSurveyOptionSelect=function(y){y=this.optionSelector.indexOf(y);y!==-1&&this.optionSelector.selectIndex(y)};
_.f.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.f.maybeGetBackgroundColor=function(y){return this.isDarkMode?y.section2Color:y.section3Color};
_.f.colorPaletteChanged=function(){var y=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;y=y&&this.maybeGetBackgroundColor(y);this.dismissibleEl.style.backgroundColor=!y||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.$$(y)};
_.dJ.Object.defineProperties(rsB.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
var gc=rsB;gc.prototype.colorPaletteChanged=gc.prototype.colorPaletteChanged;gc.prototype.onPopupClosed=gc.prototype.onPopupClosed;gc.prototype.handleRequestCompletion=gc.prototype.handleRequestCompletion;gc.prototype.dataChanged=gc.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],gc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],gc.prototype,"actionHandlerBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],gc.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gc.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],gc.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.jj("#follow-up-survey-options"),_.e("design:type",Object)],gc.prototype,"optionSelector",void 0);_.x([_.L(),_.e("design:type",Object)],gc.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],gc.prototype,"disableAnimation",void 0);_.x([_.L(),_.e("design:type",Object)],gc.prototype,"isToggleOption",void 0);_.x([_.L(),_.e("design:type",Object)],gc.prototype,"followUpSurveyCommand",void 0);_.x([_.L(),_.e("design:type",Object)],gc.prototype,"selectedRatingEndpoint",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],gc.prototype,"expanded",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gc.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gc.prototype,"isShortsStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gc.prototype,"styleOverrideAttribute",void 0);_.x([_.L(),_.e("design:type",Boolean)],gc.prototype,"isSingleSelect",void 0);_.x([_.L(),_.e("design:type",Object)],gc.prototype,"isDarkMode",void 0);
_.x([_.L(),_.e("design:type",Object)],gc.prototype,"lightColorPalette",void 0);_.x([_.L(),_.e("design:type",Object)],gc.prototype,"darkColorPalette",void 0);_.x([_.A("selectedRatingEndpoint","isShortsStyle"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],gc.prototype,"isOptionSelected",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gc.prototype,"roundedContainer",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gc.prototype,"improveShortsResponseRate",void 0);_.x([_.jj("#dismissible"),_.e("design:type",HTMLElement)],gc.prototype,"dismissibleEl",void 0);_.x([_.jj("#dismiss-button yt-icon-button"),_.e("design:type",HTMLElement)],gc.prototype,"dismissButtonEl",void 0);_.x([_.jj("#inline-survey-header yt-icon-button"),_.e("design:type",HTMLElement)],gc.prototype,"inlineHeaderDismissButtonEl",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gc.prototype,"dataChanged",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gc.prototype,"handleRequestCompletion",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],gc.prototype,"onPopupClosed",null);
_.x([_.H("darkColorPalette","lightColorPalette","isDarkMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gc.prototype,"colorPaletteChanged",null);gc=_.x([_.d({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],gc);
_.T(gc,"ytd-inline-survey-renderer",function(){if(nMB!==void 0)return nMB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return nMB=y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var VI7,Cf3,QIf;VI7=function(y){return _.O("kevlar_watch_cinematics_invisible")||y.fullscreen&&_.O("kevlar_watch_cinematics_invisible_in_fullscreen")||y.theater&&!y.fullscreen&&_.O("kevlar_watch_cinematics_invisible_in_theater")};
Cf3=function(){var y=document.createElement("canvas"),W=y.getContext("2d");if(!W)throw Error("Wl");_.Vy(y,{position:"absolute",width:"100%",height:"100%"});return{element:y,context:W}};
QIf=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.O("kevlar_watch_cinematics_css_blur")};
_.AHf=function(y,W,c){return Math.abs(y-W)<=(c||1E-6)};
_.htn=function(y,W){return y==W?!0:y&&W?y.width==W.width&&y.height==W.height:!1};_.Bgf=new _.w("notificationActionRenderer");var HaF=function(y){var W=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.WK;this.element.addEventListener("load",function(){W.loaded=!0;W.resolver.resolve(W.element)});
this.element.addEventListener("error",function(){W.failed=!0});
this.element.src=y};var LEf=function(y,W){this.image=y;this.frame=W};
LEf.prototype.drawToCanvas=function(y,W){var c=this.frame.width/this.frame.columns,Z=this.frame.height/this.frame.rows,G=W.offsetX,D=W.offsetY;VI7(W)?(y.fillStyle=W.fullscreen?"#000":"#0f0f0f",y.fillRect(G,D,(W==null?void 0:W.width)||c,(W==null?void 0:W.height)||Z)):y.drawImage(this.image,this.frame.column*c,this.frame.row*Z,c,Z,G,D,(W==null?void 0:W.width)||c,(W==null?void 0:W.height)||Z)};
var vF0=function(y){this.color=y};
vF0.prototype.drawToCanvas=function(y,W){var c=W.offsetX,Z=W.offsetY,G=W.width,D=W.height;y.fillStyle=VI7(W)?W.fullscreen?"#000":"#0f0f0f":this.color;y.fillRect(c,Z,G,D)};var zo=function(y,W){_.H6.call(this);this.playerApi=W;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.nP(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();d1X(this,y);_.SDf(this);this.update()},x1Q;
_.R(zo,_.H6);zo.prototype.addEventListeners=function(){var y=this,W=function(){y.update()},c=function(G){y.paused||(G.type==="newdata"&&(y.mosaics.clear(),Tgn(y),Yw(y)),_.SDf(y),y.update())},Z=function(){y.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",W);this.playerApi.addEventListener("onVideoDataChange",c);this.playerApi.addEventListener("onStateChange",Z);this.addOnDisposeCallback(function(){y.playerApi.removeEventListener("onVideoProgress",W);y.playerApi.removeEventListener("onVideoDataChange",c);y.playerApi.removeEventListener("onStateChange",Z)})};
var d1X=function(y,W){y.cinematicContainerRenderer!==W&&(y.cinematicContainerRenderer=W,Tgn(y),Yw(y),y.colorStoreUpdateJobId=_.KX.addLowPriorityJob(function(){var c;if((c=y.cinematicContainerRenderer.colorStore)!=null&&c.sampledColors){c=Infinity;for(var Z=_.z(y.cinematicContainerRenderer.colorStore.sampledColors),G=Z.next();!G.done;G=Z.next()){G=G.value;var D=Number(G.key);D!==0&&D<c&&(c=D);D=_.KZ(G.value);y.colorStore.set(G.key,D)}y.colorStoreTimeInterval=c}}))},Tgn=function(y){y.colorStoreUpdateJobId&&
(_.KX.cancelJob(y.colorStoreUpdateJobId),y.colorStoreUpdateJobId=void 0);
y.colorStore.clear();y.currentStoryboardColor=void 0},aHQ=function(y,W){var c;
return(c=y.getStoryboardFrame(W))==null?void 0:c.url};
zo.prototype.onPlayerStateChange=function(){this.update()};
zo.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.SDf=function(y){var W=y.getStoryboardFrame(0);W&&(W=new _.nP(W.width/W.columns,W.height/W.rows),_.htn(y.currentStoryboardSize,W)||(y.currentStoryboardSize=W,y.publish("STORYBOARD_SIZE_CHANGED",y.currentStoryboardSize)))};
x1Q=function(y,W){y.currentStoryboardIndex=W;y.pendingStoryboardIndex=NaN;W=y.getStoryboardFrame(y.currentStoryboardIndex);y.currentStoryboard=new LEf(y.mosaics.get(W.url).element,W);y.publish("STORYBOARD_CHANGED",y.currentStoryboard);y.lastUpdateTime=(0,_.Tj)()};
zo.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Yw=function(y){y.currentStoryboardIndex=NaN;y.pendingStoryboardIndex=NaN;y.currentStoryboard&&(y.currentStoryboard=void 0,y.publish("STORYBOARD_CHANGED",void 0));y.lastUpdateTime=NaN};
zo.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Yw(this);else{var y=this.playerApi.getPlayerState(1);if(y===-1||y===5||y===0)Yw(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Tj)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(y=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){y=""+Math.round(y*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var W=this.colorStore.get(y);W?W!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=W,this.currentStoryboard=new vF0(W),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Tj)()):(_.Rs(new _.ul("Could not find color for timestamp: "+y,this.cinematicContainerRenderer)),Yw(this))}else Yw(this);else iaf(this,y)}};
var iaf=function(y,W){var c=y.getStoryboardFrameIndex(W);if(c!==y.currentStoryboardIndex&&c!==y.pendingStoryboardIndex){W=aHQ(y,c);var Z=y.mosaics.get(W);Z?Z.loaded&&x1Q(y,c):(y.pendingStoryboardIndex=c,c=new HaF(W),y.mosaics.set(W,c),c.resolver.promise.then(function(){if(!y.isDisposed()&&!y.paused&&!isNaN(y.pendingStoryboardIndex)){var G=aHQ(y,y.pendingStoryboardIndex);if(G){var D;(D=y.mosaics.get(G))!=null&&D.loaded&&x1Q(y,y.pendingStoryboardIndex)}else Yw(y)}}))}};
zo.prototype.getStoryboardFrameIndex=function(y){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(y,W)};
zo.prototype.getStoryboardFrame=function(y){var W=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,c,Z;return((Z=(c=this.playerApi).getStoryboardFrame)==null?void 0:Z.call(c,y,W))||null};
zo.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var sC=function(y,W,c,Z){Z=Z===void 0?!1:Z;_.UR.call(this);this.cinematicContainerRenderer=W;this.playerApi=c;this.theater=this.fullscreen=!1;var G;this.ambientLightThemeEnabled=!Z&&!!(W==null?0:(G=W.config)==null?0:G.enableInLightTheme);this.ambientFullscreenEnabled=Z&&_.O("web_cinematic_fullscreen");this.container=document.createElement("div");y.appendChild(this.container);var D;if(_.O("web_cinematic_theater_mode")||_.O("web_cinematic_fullscreen")||(W==null?0:(D=W.config)==null?0:D.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);MIF(this);y=this.ambientV2Container||this.container;this.backCanvas=Cf3();this.frontCanvas=Cf3();y.appendChild(this.backCanvas.element);y.appendChild(this.frontCanvas.element);this.storyboardManager=new zo(W,this.playerApi);_.zY(this,this.storyboardManager);this.addEventListeners();etX(this)?wyM(this,100+mw(this)*3*2,100+mw(this)*3*2):qDf(this);kO9(this,this.storyboardManager.currentStoryboard)};
_.R(sC,_.UR);var MIF=function(y){y.ambientV2Container?jV3(y):(_.Vy(y.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+y5f(y)+", "+WQ3(y)+")"}),QIf()&&_.Vy(y.container,"filter","blur("+_.ey("cinematic_watch_css_filter_blur_strength",40)+"px)"))},jV3=function(y){if(y.ambientV2Container){var W=y.playerApi.getVideoAspectRatio();
_.Vy(y.container,{"aspect-ratio":""+W,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Vy(y.ambientV2Container,{"aspect-ratio":""+W,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+y5f(y)+", "+WQ3(y)+")"});QIf()&&_.Vy(y.ambientV2Container,"filter","blur("+_.ey("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
sC.prototype.setFullscreen=function(y,W){this.fullscreen=y;this.theater=!!W;MIF(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),y=this.storyboardManager.currentStoryboard,c5X(this),y&&Z83(this,y)};
sC.prototype.addEventListeners=function(){var y=this,W=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(G){kO9(y,G)}),c=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){qDf(y)});
this.addOnDisposeCallback(function(){y.storyboardManager.unsubscribeByKey(W);y.storyboardManager.unsubscribeByKey(c)});
if(this.ambientV2Container){var Z=function(){jV3(y)};
this.playerApi.addEventListener("onVideoDataChange",Z);this.addOnDisposeCallback(function(){y.playerApi.removeEventListener("onVideoDataChange",Z)})}};
var qDf=function(y){if(!etX(y)){var W=y.storyboardManager.currentStoryboardSize;isNaN(W.width)||isNaN(W.height)||wyM(y,Number(W.width)+mw(y)*3*2,Number(W.height)+mw(y)*3*2)}},wyM=function(y,W,c){y.backCanvas.element.width=W;
y.backCanvas.element.height=c;y.frontCanvas.element.width=W;y.frontCanvas.element.height=c},etX=function(y){return y.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},kO9=function(y,W){var c=y.frontCanvas.element.getAnimations()[0];
c?(c.pause(),y.backCanvas.context.globalAlpha=Number(getComputedStyle(y.frontCanvas.element).opacity),y.frontCanvas.element.style.opacity="0",c.finish()):y.backCanvas.context.globalAlpha=1;y.backCanvas.context.drawImage(y.frontCanvas.element,0,0,y.backCanvas.element.width,y.backCanvas.element.height);c5X(y);W&&Z83(y,W);W=W?y.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.ey("cinematic_watch_fade_out_duration",500);c=_.ey("cinematic_watch_transition_frame_rate")/1E3;var Z=
{};c&&(Z={easing:"steps("+Math.round(W*c)+")"});y.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:W,iterations:1},Z));y.frontCanvas.element.style.opacity="1"},c5X=function(y){var W=y.ambientLightThemeEnabled,c=y.ambientLightThemeEnabled||y.ambientFullscreenEnabled&&!_.O("web_cinematic_fullscreen_v2");
y.frontCanvas.context.fillStyle=y.theater&&W||y.fullscreen&&c?"#000":"#0f0f0f";QIf()||(y.frontCanvas.context.filter="blur(0)");y.frontCanvas.context.fillRect(0,0,y.frontCanvas.element.width,y.frontCanvas.element.height)},Z83=function(y,W){QIf()||(y.frontCanvas.context.filter="blur("+mw(y)+"px)");
y.frontCanvas.context.globalAlpha=_.ey("cinematic_watch_effect_opacity",.4);var c={offsetX:mw(y)*3,offsetY:mw(y)*3,theater:y.theater,fullscreen:y.fullscreen};etX(y)&&(c.width=100,c.height=100);W.drawToCanvas(y.frontCanvas.context,c);y.frontCanvas.context.globalAlpha=1},mw=function(y){var W;
return(W=y.cinematicContainerRenderer.config.blurStrength)!=null?W:5},y5f=function(y){var W,c;
if((y.fullscreen||y.theater)&&((W=y.cinematicContainerRenderer.config)==null?0:(c=W.watchFullscreenConfig)==null?0:c.colorSourceWidthMultiplier))return y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var Z;return(Z=y.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Z:y.cinematicContainerRenderer.config.colorSourceSizeMultiplier},WQ3=function(y){var W,c;
if((y.fullscreen||y.theater)&&((W=y.cinematicContainerRenderer.config)==null?0:(c=W.watchFullscreenConfig)==null?0:c.colorSourceHeightMultiplier))return y.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var Z;return(Z=y.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?Z:y.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
sC.prototype.disposeInternal=function(){_.UR.prototype.disposeInternal.call(this);this.container.remove()};
sC.prototype.clear=function(){kO9(this)};
sC.prototype.pause=function(){this.storyboardManager.pause()};var Gi0;Gi0=_.sf(function(){var y,W,c=!((W=(y=document.createElement("canvas")).getContext)==null||!W.call(y,"2d")),Z;y=!((Z=CSS)==null||!Z.supports("filter: blur(0)"));Z=!!Element.prototype.animate&&!!Element.prototype.getAnimations;W=_.O("web_cinematic_fullscreen")||_.O("web_cinematic_theater_mode")||_.O("web_cinematic_light_theme")||!1;var G;return c&&y&&Z&&(!W||!((G=CSS)==null||!G.supports("aspect-ratio: 1 / 1")))});
_.uw=function(y,W){_.H6.call(this);this.container=y;this.playerApi=W;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=f00(this);this.update()};
_.R(_.uw,_.H6);_.oWX=function(y){var W=document.documentElement.hasAttribute("dark");y.isDarkModeEnabled=W;y.update()};
_.D33=function(y,W){y.settingEnabled=W;y.update()};
_.uw.prototype.setFullscreen=function(y,W){this.fullscreen=y;this.theater=!!W;this.update()};
_.zEe=function(y,W){y.cinematicContainerRenderer=W;y.cinematicContainerRenderer&&(y.cinematicsVe=_.se(y.isShorts()?227858:159022),_.qY(_.Zz(),y.cinematicsVe),y.loggingClientData={watchCinematicContainerData:{presentationStyle:y.cinematicContainerRenderer.presentationStyle}});y.update()};
_.uw.prototype.isShorts=function(){var y,W;return((y=this.cinematicContainerRenderer)==null?void 0:(W=y.config)==null?void 0:W.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.uw.prototype.isAllowed=function(){var y;if(y=Gi0()){var W,c,Z;y=((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((Z=this.cinematicContainerRenderer)==null||!Z.colorStore)||((W=this.cinematicContainerRenderer)==null?void 0:W.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(y)if(_.O("web_cinematics_pausing")){var G,D;y=this.isDarkModeEnabled||!!((G=this.cinematicContainerRenderer)==
null?0:(D=G.config)==null?0:D.enableInLightTheme)}else{var Y,u;G=!!((Y=this.cinematicContainerRenderer)==null?0:(u=Y.config)==null?0:u.enableInLightTheme)&&(_.Nn("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);y=this.isDarkModeEnabled||G}if(Y=y){var t,b;Y=!((b=(t=this.prefersReducedMotionQuery)==null?void 0:t.matches)!=null&&b)}return Y};
_.uw.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var f00=function(y){if(!_.O("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var W=window.matchMedia("(prefers-reduced-motion: reduce)"),c=function(){y.update()};
W.addListener(c);y.addOnDisposeCallback(function(){W.removeListener(c)});
return W}};
_.uw.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var y=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new sC(this.container,y,this.playerApi,this.isDarkModeEnabled),_.zY(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var W=this.currentCinematicEffect;W.cinematicContainerRenderer!==
y&&(W.cinematicContainerRenderer=y,d1X(W.storyboardManager,y),MIF(W));y=_.Uc();_.$A(0,194,!0);y.save();y=_.NR();this.cinematicsVe&&y&&_.vA(y,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(y=_.NR(),this.cinematicsVe&&y&&_.dK(y,[this.cinematicsVe],!1,this.loggingClientData),_.Mg(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.dJ.Object.defineProperties(_.uw.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var B8H;var H_D;_.mD({_template:function(){if(H_D!==void 0)return H_D;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=
y.content,c=W.insertBefore;B8H===void 0&&(B8H=document.createElement("template"));var Z=B8H;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return H_D=y},
is:"tp-yt-iron-pages",behaviors:[_.K7,_.l6],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var $Xg;_.K5D=function(){if(_.O("kevlar_home_skeleton")&&!$Xg){var y=document.querySelector("#home-page-skeleton");y&&(_.PA("hgcr"),_.to(y),$Xg=!0)}};
$Xg=!1;_.Pc=new _.w("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var nf9=function(y){return _.zpH(_.DlI(y&16777215))<.5},Xc6=function(y,W,c){var Z=c.minimumRowsOfVideosBetweenSections===void 0?1:c.minimumRowsOfVideosBetweenSections;
return y<(c.minimumRowsOfVideosAtStart===void 0?2:c.minimumRowsOfVideosAtStart)||W!==null&&y-W<=Z?!1:!0},bhg=function(y,W){var c=0,Z=0;
y=_.z(y);for(var G=y.next();!G.done;G=y.next()){var D=G.value;if(D.richItemRenderer)D.richItemRenderer.rowIndex=Z,D.richItemRenderer.colIndex=c++,c===W&&(c=0,Z++);else if(D.richGroupRenderer&&D.richGroupRenderer.numColumns!==void 0)D.richGroupRenderer.rowIndex=Z,D.richGroupRenderer.colIndex=c,c+=D.richGroupRenderer.numColumns,c===W&&(c=0,Z++);else if(D.richSectionRenderer){var Y=G=void 0;if(D=_.g((G=D)==null?void 0:(Y=G.richSectionRenderer)==null?void 0:Y.content,_.Q7W))D.rowIndex=Z++}}},rR9=function(y,
W){var c=W.contentElement;
W=W.rendererToTagNameMap;if(c&&W&&W.size!==0){for(var Z=new Map,G=_.z(c.children),D=G.next();!D.done;D=G.next()){D=D.value;var Y=D.tagName.toLowerCase(),u=Z.get(Y);u||(u=[],Z.set(Y,u));u.push(D)}if(Z.size!==0)for(G=Math.min(y.length,c.children.length),D=new Map,Y=0;Y<G;Y++){u=Object.keys(y[Y])[0];u=W.get(u);if(!u)break;var t=D.get(u);t===void 0&&(t=0,D.set(u,t));var b=Z.get(u);if(!b||t>=b.length)break;D.set(u,t+1);u=b[t];t=c.children[Y];t!==u&&(_.xAH=!0,_.iMf.set(u,!0),c.insertBefore(u,t),_.iMf.delete(u),
_.xAH=!1)}}},Fr6=function(y,W,c,Z,G,D,Y){Z=Z===void 0?{}:Z;
if(!y||!y.length)return[];y=y.slice();var u=[],t=[];G=null;for(var b=0,r=function(Q){t.sort(function(M,fa){return fa.skippedOnRow-M.skippedOnRow});
for(var S,cy=(S=t.shift())==null?void 0:S.content;cy;)!cy.richSectionRenderer&&Q||u.push(cy),S=void 0,cy=(S=t.shift())==null?void 0:S.content},F=[];y.length>0||t.length>0;){for(var K=[],l=W;l>0;){var N=void 0,P=void 0,V=(P=t[0]&&t[0].skippedOnRow<b?(N=t.shift())==null?void 0:N.content:void 0)!=null?P:y.shift();
if(!V)break;if(V.richItemRenderer)N=V.richItemRenderer.targetId,P=void 0,N&&((P=Y)==null?0:P.has(N))&&F.push(Y.get(N)),K.push(V),l--;else if(V.richGroupRenderer&&V.richGroupRenderer.numColumns!==void 0)V.richGroupRenderer.numColumns<=l?(K.push(V),l-=V.richGroupRenderer.numColumns):l===W&&V.richGroupRenderer.numColumns>W?(K.push({richGroupRenderer:Object.assign({},V.richGroupRenderer,{numColumns:W})}),l=0):t.push({content:V,skippedOnRow:b});else if(V.richSectionRenderer)if(Xc6(b,G,Z)&&l===W){u.push(V);
G=b;b++;continue}else t.push({content:V,skippedOnRow:b});else if(V.continuationItemRenderer){r(!0);u.push(V);l=0;break}if(l===0)u.push.apply(u,_.No(K));else if(!c&&y.length===0){r(!1);u.push.apply(u,_.No(K));l=0;break}}b++;F=_.z(F);for(K=F.next();!K.done;K=F.next())u.push(K.value),b++;F=[]}bhg(u,W);D&&rR9(u,D);return u},$5S=function(y){var W=y.data;
var c=y.uniqueId;y=y.overrides;var Z,G=((Z=W.timedAnimationData)==null?void 0:Z.animationTiming)||[];return _.X("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.X(_.p6t,{settings:{uniqueId:c,timings:G,experimentEnabled:G.length>0,enabled:G.length>0}},U53(W.buttonRenderer,{buttonRenderer:{buttonOverrides:y}})))},Krf=function(y){return y.talkToRecs},ROg=function(y,W){if(W){var c=_.Sv().getState().entities.flowStateEntity,Z=OhS(y),G=[W];
Z&&Z!==W&&G.push(Z);var D=!0,Y;if(c&&y.flowStateEntityKey&&((Y=c[y.flowStateEntityKey])==null?void 0:Y.primaryButtonDisabled)!==void 0){var u;D=!((u=c[y.flowStateEntityKey])==null||!u.primaryButtonDisabled)}gf3(y,Z!=null?Z:W,G,D)}},EfB=function(y){return _.ot(_.Sv(),function(W){return W.entities.flowStateEntity},function(W,c){if(y.flowStateEntityKey){var Z,G=W==null?void 0:(Z=W[y.flowStateEntityKey])==null?void 0:Z.currentStepId,D;
c=c==null?void 0:(D=c[y.flowStateEntityKey])==null?void 0:D.currentStepId;D=_.Sv().getState().talkToRecs;if(G&&G!==c){var Y;W=(W==null?void 0:(Y=W[y.flowStateEntityKey])==null?void 0:Y.stepIdStack)||Object.keys(D.stepStates);Y=!lQZ(D==null?void 0:D.stepStates[G]);gf3(y,G,W,Y)}}})},Nn9=function(y){return _.ot(_.Sv(),Krf,function(W){var c=OhS(y);
if(c){var Z=Object.keys(W.stepStates);W=!lQZ(W==null?void 0:W.stepStates[c]);gf3(y,c,Z,W)}})},lQZ=function(y){var W=Object.keys((y==null?void 0:y.selectionStates)||{}).reduce(function(D,Y){return D||(y==null?void 0:y.selectionStates[Y].isSelected)},!1),c,Z,G=!!(y==null?0:(c=y.userQuery)==null?0:(Z=c.userQuery)==null?0:Z.trim());
return W||G},OhS=function(y){if(y.flowStateEntityKey){var W,c,Z=(W=_.Sv().getState().entities.flowStateEntity)==null?void 0:(c=W[y.flowStateEntityKey])==null?void 0:c.currentStepId;
if(Z)return Z}},gf3=function(y,W,c,Z){_.Sv().dispatch(_.o3("flowStateEntity",y.flowStateEntityKey,{currentStepId:W,
stepIdStack:c,key:y.flowStateEntityKey,primaryButtonDisabled:Z}))},IQg;var pcS;_.mD({_template:function(){if(pcS!==void 0)return pcS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
var W=y.content,c=W.insertBefore;IQg===void 0&&(IQg=document.createElement("template"));var Z=IQg;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return pcS=y},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var PPg=new _.w("talkToRecsFlowRenderer");var JRg=new _.w("flowRootRenderer");var Vf9=new _.w("chipsShelfViewModel");_.CPB=new _.w("engagementPanelSectionListRenderer");var QG3=function(){this.horizontal=!1},AR6=function(y,W){y.horizontal=W};
QG3.prototype.position=function(y,W,c,Z){Z=Z===void 0?1:Z;y=this.delta(y)*Z+W;Z=Math.max(W,c);return y>=Math.min(W,c)&&y<=Z?y:c};
QG3.prototype.axis=function(y){y=this.direction(y);return y==="up"||y==="down"?"Y":"X"};var Uz=function(y,W,c){W=W===void 0?_.yN():W;this.target=y;this.manager=W;this.touchAction=c;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Uz.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(_.No(this.events)));for(var y=_.z(this.events),W=y.next();!W.done;W=y.next())this.listen(W.value)}};
Uz.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.No(this.events)));for(var y=_.z(this.events),W=y.next();!W.done;W=y.next())this.unlisten(W.value)}};
Uz.prototype.listen=function(y){this.eventMap[y]&&this.target.addEventListener(y,this.eventMap[y])};
Uz.prototype.unlisten=function(y){this.eventMap[y]&&this.target.removeEventListener(y,this.eventMap[y])};var $f=function(){QG3.apply(this,arguments)};
_.R($f,QG3);$f.prototype.direction=function(y){var W=y.detail;y=W.deltaY;W=W.deltaX;return y&&!this.horizontal?y>0?"down":"up":W&&this.horizontal?W>0?"right":"left":"none"};
$f.prototype.distance=function(y){return Math.abs(this.delta(y))};
$f.prototype.delta=function(y){var W=this.direction(y),c=y.detail;y=c.deltaX;c=c.deltaY;return W==="up"||W==="down"?c||0:y||0};
$f.prototype.velocity=function(y){var W=this.direction(y),c=y.detail;y=c.velocityX;c=c.velocityY;return Math.abs(W==="up"||W==="down"?c||0:y||0)};_.Kh=function(y,W,c,Z,G,D){G=G===void 0?new $f:G;D=D===void 0?_.yN():D;Uz.call(this,W,D,Z);var Y=this;this.element=y;this.target=W;this.config=c;this.input=G;this.manager=D;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(u){var t=hOQ(Y,u);if(t){Y.move(u,t);t.fade&&Y.fade(u,t);var b=Y.input.direction(u);t.moveAction&&t.moveAction(BnQ(Y,u,t),b)}};
this.onPanEnd=function(u){var t,b,r,F,K,l;return _.m(function(N){if(N.nextAddress==1){Y.animationRequestId&&cancelAnimationFrame(Y.animationRequestId);Y.animationRequestId=void 0;t=hOQ(Y,u);if(!t)return N.return();b=t;r=b.triggerAction;F=b.fade;K=b.disableFinish;l=b.translateBack;var P=Y.input.velocity(u),V=Y.input.distance(u),Q=Y.threshold(t);return P>.3&&V>10||V>Q?K?N.jumpTo(6):F?_.n(N,HhB(Y,u),6):_.n(N,Lrg(Y,u,t),6):l?_.n(N,Y.translateBack(u),3):N.jumpTo(3)}N.nextAddress!=3&&r&&r();Y.config.draggingClass&&
Y.element.classList.remove(Y.config.draggingClass);Y.reset();_.F2(N)})};
y=Object.keys(c.triggers);this.directions=new Set(y);AR6(this.input,this.directions.has("right")||this.directions.has("left"))};
_.R(_.Kh,Uz);_.Kh.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var hOQ=function(y,W){W=y.input.direction(W);return y.config.triggers[W]};
_.Kh.prototype.move=function(y,W){var c=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Z=c.input.axis(y),G=c.input.position(y,c.config.startPosition,W.endPosition,W.moveRatio||1);c.element.style.transform="translate"+Z+"("+G+"px)";c.animationRequestId=void 0}))};
var BnQ=function(y,W,c){var Z=c.moveRatio||1;c=Math.abs(y.config.startPosition-c.endPosition);return Math.min(y.input.distance(W)*Z,c)/c};
_.Kh.prototype.fade=function(y,W){var c=W.endOpacity;y=BnQ(this,y,W);y>0&&(this.element.style.opacity=""+(((c||0)-1)*y+1))};
_.Kh.prototype.threshold=function(y){return y.threshold?y.threshold:Math.abs(y.endPosition-this.config.startPosition)/3};
var Lrg=function(y,W,c){var Z,G,D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1)return Z=y.input.delta(W)+y.config.startPosition,G=y.input.axis(W),D=c,Y=D.endPosition,u=D.transitionEndPosition,b=(t=u)!=null?t:Y,_.n(r,y.element.animate([{transform:"translate"+G+"("+Z+"px)"},{transform:"translate"+G+"("+b+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);y.element.style.transform="translate"+G+"("+b+"px)";_.F2(r)})};
_.Kh.prototype.translateBack=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1){if(!W.element.style.transform)return G.return();c=W.input.axis(y);Z=W.config.startPosition;return _.n(G,W.element.animate([{transform:W.element.style.transform},{transform:"translate"+c+"("+Z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}W.element.style.transform="translate"+c+"("+Z+"px)";_.F2(G)})};
var HhB=function(y,W){var c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return c=y.input.delta(W)+y.config.startPosition,Z=y.input.axis(W),G=c+70,D=y.element.style.opacity===""?1:y.element.style.opacity,_.n(Y,y.element.animate([{transform:"translate"+Z+"("+c+"px)",opacity:D},{transform:"translate"+Z+"("+G+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);y.element.style.transform="translate"+Z+"("+G+"px)";y.element.style.opacity="0";_.F2(Y)})};var vfQ=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;y.scrollRate=3;y.autoScrollAnimationStart=0;y.autoScrollPaused=!1;y.autoScrollRafId=0;return y};
_.R(vfQ,_.cQ);_.f=vfQ.prototype;_.f.created=function(){var y=this;this.boundAutoScrollHandler=function(W){y.autoScroll(W)}};
_.f.detached=function(){this.hostElement.removeEventListener("mouseout",_.qO(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.qO(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.qO(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.f.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.qO(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.qO(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.qO(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.qO(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.qO(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.qO(this,this.endAutoScroll)),this.endAutoScroll())};
_.f.autoScroll=function(y){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=y);var W;if(W=!this.autoScrollPaused&&this.scrollTarget)W=this.scrollTarget,W=W.scrollHeight-W.scrollTop!==W.clientHeight;W&&(W=1E3/this.scrollRate,y-=this.autoScrollAnimationStart,y>W&&(this.scrollTarget.scrollTop+=Math.ceil(y/W),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.f.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.f.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
var Oz=vfQ;Oz.prototype.autoScrollEnabledChanged=Oz.prototype.autoScrollEnabledChanged;_.x([_.L(),_.e("design:type",Object)],Oz.prototype,"scrollRate",void 0);_.x([_.L(),_.e("design:type",Object)],Oz.prototype,"scrollTarget",void 0);_.x([_.L(),_.e("design:type",Boolean)],Oz.prototype,"autoScrollEnabled",void 0);_.x([_.H("autoScrollEnabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Oz.prototype,"autoScrollEnabledChanged",null);Oz=_.x([_.ZV()],Oz);_.d5B=[Oz.prototype];var Sz6;_.A3(_.ZJ3,"yt-avatar-stack-view-model",{props:{className:_.Ix,data:_.Ix,isOverlay:_.Ix,useMediumText:_.Ix,decorations:_.Ix,hideAvatar:_.Ix}});var U53=_.ug({buttonRenderer:_.dx});_.eu($5S);_.TP($5S,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var TnH=function(){var y=_.v.apply(this,arguments)||this;y.hideJoinButtonBeforeSubscribed=_.O("hide_join_button_before_subscribed");y.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return y};
_.R(TnH,_.v);_.f=TnH.prototype;
_.f.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"}}}};
_.f.updateJoinButtonOverrides=function(){var y,W;(y=_.p(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(W=y.polymerController)==null||W.set("overrides",this.joinButtonOverrides);if(y=_.p(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))y.overrides=this.joinButtonOverrides};
_.f.handleButtonRefreshAction=function(y){if(y=_.g(y,_.Z$5))this.set("data.membershipButton",y.membershipButton),this.notifyPath("data.membershipButton")};
_.f.onYtServiceRequestError=function(y){_.bY(this.hostElement,y.detail.error.message)};
_.f.handleUnsubscribeAction=function(){var y,W,c;((y=this.data)==null?void 0:(W=y.membershipButton)==null?void 0:(c=W.buttonRenderer)==null?void 0:c.style)==="STYLE_PRIMARY"&&_.p(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.dJ.Object.defineProperties(TnH.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.subscriptionStateEntity)==null||!y.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.membershipButton,c;y=(W==null?void 0:W.buttonRenderer)||_.g(W==null?void 0:(c=W.timedAnimationButtonRenderer)==null?void 0:c.buttonRenderer,_.RU);return(y==null?void 0:y.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(y==null?void 0:y.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(y==null?void 0:y.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
var gn=TnH;gn.prototype.onYtServiceRequestError=gn.prototype.onYtServiceRequestError;gn.prototype.updateJoinButtonOverrides=gn.prototype.updateJoinButtonOverrides;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],gn.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],gn.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],gn.prototype,"data",void 0);_.x([_.A("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.e("design:type",Object),_.e("design:paramtypes",[])],gn.prototype,"hideJoin",null);_.x([_.L(),_.e("design:type",String)],gn.prototype,"subscribeKey",void 0);_.x([_.L({selectorArgs:["subscribeKey"],selector:_.Mu}),_.e("design:type",Object)],gn.prototype,"subscriptionStateEntity",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gn.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.x([_.A("subscriptionStateEntity"),_.L({reflectToAttribute:!0}),_.e("design:type",Object),_.e("design:paramtypes",[])],gn.prototype,"subscribed",null);_.x([_.A("subscribed","data.membershipButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],gn.prototype,"joinButtonOverrides",null);
_.x([_.H("joinButtonOverrides"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gn.prototype,"updateJoinButtonOverrides",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],gn.prototype,"onYtServiceRequestError",null);gn=_.x([_.d({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],gn);
_.T(gn,"ytd-video-owner-renderer",function(){if(Sz6!==void 0)return Sz6;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Sz6=y},{mode:1});var aQ6;var x5S=function(){var y=_.v.apply(this,arguments)||this;y.buttonUpdate=_.O("web_button_rework");y.dismissButtonOverrides=_.O("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;y.forceDarkTheme=!1;y.forceLightTheme=!1;y.dynamicTextHeight=94;y.hasOverflowButton=!1;y.isInfeedModernization=!1;return y};
_.R(x5S,_.v);_.f=x5S.prototype;_.f.computeUrlImg=function(y){if(y)return _.Bh(y.thumbnails)};
_.f.getLogoHeight=function(y){return this.logoWithPadding(y)?"31":"24"};
_.f.getLogoClassName=function(y){return this.logoWithPadding(y)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.f.logoWithPadding=function(y){var W,c;return(y=(W=y.thumbnails)==null?void 0:(c=W[0])==null?void 0:c.height)&&y%31===0?!0:!1};
_.f.sendImpressionEndpoints=function(y){y.impressionEndpoints&&_.D2(this.hostElement,y.impressionEndpoints)};
_.f.observeBasicPalette=function(){var y,W,c=(y=this.data)==null?void 0:(W=y.colorData)==null?void 0:W.basicColorPaletteData;c?_.nx(this.hostElement,c):_.nx(this.hostElement,{})};
_.f.observeDataChanged=function(){var y;this.dynamicTextHeight=((y=this.data)==null?0:y.supplementalText)?74:94;var W;this.hasSupplementalText=!((W=this.data)==null||!W.supplementalText);if(_.O("web_button_rework")){var c,Z,G,D;y=(c=this.data)==null?void 0:(Z=c.actionButton)==null?void 0:(G=Z.buttonRenderer)==null?void 0:(D=G.colorData)==null?void 0:D.basicColorPaletteData;var Y,u,t;if(!((Y=this.data)==null?0:(u=Y.actionButton)==null?0:(t=u.buttonRenderer)==null?0:t.style)&&y){this.computeIsInfeedModernization(this.data)||
(y.borderColor=y.foregroundTitleColor);var b,r;this.set("data.actionButton.buttonRenderer",_.Eb.unsafeClone((b=this.data)==null?void 0:(r=b.actionButton)==null?void 0:r.buttonRenderer))}}};
_.f.observeDataForCounterfactual=function(){if(_.O("kevlar_banner_cf_extra_logging")){var y;((y=this.data)==null?0:y.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.f.computeSupplementalStyle=function(){var y;if((y=this.data)!=null&&y.supplementalText){var W,c,Z;if((W=this.data)==null?0:(c=W.colorData)==null?0:(Z=c.basicColorPaletteData)==null?0:Z.foregroundActivatedColor)return y=_.$$(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+y+"; --yt-endpoint-hover-color:"+y+"; --yt-endpoint-visited-color:"+y+"; --yt-formatted-string-bold-font-weight:700;"}};
_.f.computeForcedDarkTheme=function(){var y,W,c,Z=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:(c=W.buttonRenderer)==null?void 0:c.style,G,D,Y;y=nf9(((G=this.data)==null?void 0:(D=G.colorData)==null?void 0:(Y=D.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return Z&&y};
_.f.computeForcedLightTheme=function(){var y,W,c,Z=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:(c=W.buttonRenderer)==null?void 0:c.style,G,D,Y;y=!nf9(((G=this.data)==null?void 0:(D=G.colorData)==null?void 0:(Y=D.basicColorPaletteData)==null?void 0:Y.backgroundColor)||0);return Z&&y};
_.f.computeHasOverflowButton=function(y){return!!y.overflowButton};
_.f.computeHasTitle=function(y){return!!y.title};
_.f.computeTitleMaxFontSize=function(y){return this.computeHasOverflowButton(y)?28:64};
_.f.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.f.computeIsInfeedModernization=function(){var y,W,c,Z,G=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:(c=W.buttonRenderer)==null?void 0:(Z=c.colorData)==null?void 0:Z.basicColorPaletteData;return(G==null?void 0:G.backgroundColor)===452984831||(G==null?void 0:G.backgroundColor)===218103808};
var RG=x5S;RG.prototype.observeDataForCounterfactual=RG.prototype.observeDataForCounterfactual;RG.prototype.observeDataChanged=RG.prototype.observeDataChanged;RG.prototype.observeBasicPalette=RG.prototype.observeBasicPalette;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],RG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],RG.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],RG.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],RG.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],RG.prototype,"buttonUpdate",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],RG.prototype,"hasSupplementalText",void 0);_.x([_.L(),_.e("design:type",Object)],RG.prototype,"dismissButtonOverrides",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.e("design:type",Boolean)],RG.prototype,"hasTitle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.e("design:type",Object)],RG.prototype,"forceDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.e("design:type",Object)],RG.prototype,"forceLightTheme",void 0);_.x([_.L(),_.e("design:type",Object)],RG.prototype,"dynamicTextHeight",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.e("design:type",Object)],RG.prototype,"hasOverflowButton",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.e("design:type",Object)],RG.prototype,"isInfeedModernization",void 0);_.x([_.H("data.colorData.basicColorPaletteData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],RG.prototype,"observeBasicPalette",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],RG.prototype,"observeDataChanged",null);_.x([_.H("data.isVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],RG.prototype,"observeDataForCounterfactual",null);RG=_.x([_.d({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],RG);
_.T(RG,"ytd-banner-promo-renderer",function(){if(aQ6!==void 0)return aQ6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return aQ6=y},{mode:1});var ihH;var MfH;var eOS;var wcH=function(){return _.v.apply(this,arguments)||this};
_.R(wcH,_.v);var qzZ=wcH;_.x([_.L(),_.e("design:type",Object)],qzZ.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qzZ.prototype,"ytRendererBehavior",void 0);qzZ=_.x([_.d({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],qzZ);
_.T(qzZ,"ytd-hashtag-grid-tile-renderer",function(){if(eOS!==void 0)return eOS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return eOS=y},{mode:1});var k8H=function(){return _.v.apply(this,arguments)||this};
_.R(k8H,_.v);k8H.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
k8H.prototype.updateRichGridTrendingHashtagsVisibility=function(){var y,W;if(((y=this.data)==null||!y.isExpanded)&&(W=this.data)!=null&&W.tiles){y=this.data.tiles.length;W=y>this.richGridItemsPerRow?this.richGridItemsPerRow+1:y;var c=Math.ceil(y/W);this.fullyVisibleRows=y%W===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
k8H.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var lP=k8H;lP.prototype.updateRichGridTrendingHashtagsVisibility=lP.prototype.updateRichGridTrendingHashtagsVisibility;_.x([_.L(),_.e("design:type",Object)],lP.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Number)],lP.prototype,"fullyVisibleRows",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],lP.prototype,"isShowMoreVisible",void 0);_.x([_.L({selector:_.lo,value:0}),_.e("design:type",Number)],lP.prototype,"richGridItemsPerRow",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],lP.prototype,"ytdReduxBehavior",void 0);_.x([_.H("data","richGridItemsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lP.prototype,"updateRichGridTrendingHashtagsVisibility",null);
lP=_.x([_.d({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],lP);
_.T(lP,"ytd-hashtag-grid-shelf-renderer",function(){if(MfH!==void 0)return MfH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return MfH=y},{mode:1});var jp9;var y8B;var W5g=function(){var y=_.v.apply(this,arguments)||this;y.visibleVideos=[];y.hiddenVideos=[];y.modern=_.O("web_modern_buttons");y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(W5g,_.v);_.f=W5g.prototype;_.f.attached=function(){var y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",y);this.onDarkModeToggledAction(y)};
_.f.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"}}}};
_.f.dataChanged=function(){var y=this;this.requestElementsPerRow();var W,c;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(c=this.data)==null?void 0:c.lightColorData;var Z;if((Z=this.currentColorPalette)==null?0:Z.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Lv(this,function(){y.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.f.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.f.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.f.computeIsFirstFeedItem=function(y){return y};
_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y);this.data&&(this.currentColorPalette=y?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.f.getCurrentLogo=function(y,W){if(y)return W?y.darkLogoImage:y.lightLogoImage};
_.f.computeTitleStyle=function(y){var W;if((W=this.data)!=null&&W.title&&y&&y.textPrimary!==void 0)return"color:"+_.$$(y.textPrimary)+";"};
_.f.computeSubtitleStyle=function(y){var W;if((W=this.data)!=null&&W.subtitle&&y&&y.textSecondary!==void 0)return"color:"+_.$$(y.textSecondary)+";"};
_.f.computeDismissIconStyle=function(y){if(this.data&&this.data.dismissButton){var W;if(y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor)return"--yt-button-color:"+_.$$(y.dismissButtonColorData.foregroundTitleColor)+";";var c,Z,G,D;if((c=this.data.dismissButton)==null?0:(Z=c.buttonRenderer)==null?0:(G=Z.colorData)==null?0:(D=G.basicColorPaletteData)==null?0:D.foregroundTitleColor)return"--yt-button-color:"+_.$$(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.f.computeOverflowButtonStyle=function(y){var W;if(this.data&&this.data.overflowButton&&(y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.$$(y.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.$$(y.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBackgroundStyle=function(y){if(y&&this.data){var W="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Bh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(W+='background-image:url("'+c+'");')}y.backgroundColor!==void 0&&(W+="background-color:"+_.KZ(y.backgroundColor)+";");return W}};
_.f.computeButton=function(){var y,W=Object.assign({},_.g((y=this.data)==null?void 0:y.showMoreButton,_.RU));if(this.modern&&W){W.style="STYLE_DEFAULT";var c,Z;if(y=(c=this.currentColorPalette)==null?void 0:(Z=c.dismissButtonColorData)==null?void 0:Z.foregroundTitleColor)W.colorData={basicColorPaletteData:{foregroundTitleColor:y,borderColor:y}}}return W};
_.f.shouldShowBottomButton=function(y,W){return!(y==null?0:y.header)&&!(y==null||!y.primaryButton)&&W<3};
_.f.checkExpanded=function(y){this.isExpanded=y&&y.content?this.hiddenVideos.length===0:!0};
_.f.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.f.getLogoHeight=function(y){return this.logoWithPadding(y)?"26":"20"};
_.f.getLogoImageId=function(y){return this.logoWithPadding(y)?"logo-image-with-padding":"logo-image"};
_.f.computeHasSectionHeader=function(y){return!!y.header};
_.f.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var y;if((y=this.data.primaryButton)==null?0:y.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var W;((W=this.data.dismissButton)==null?0:W.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var c,Z;((c=this.data)==null?0:(Z=c.primaryButton)==null?0:Z.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.f.setVisibleVideos=function(y){if(this.data&&this.data.content)if(this.data.content.length){var W=this.data.content.length;this.data.header?y?(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.slimItemsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(W,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow),W)):(this.visibleVideos=this.data.content.slice(0,Math.min(W,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(W,this.elementsPerRow-1),W))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.f.setHasMovieRenderer=function(){var y;if((y=this.data)!=null&&y.content){var W;this.hasMovieRenderer=!!_.g((W=this.data)==null?void 0:W.content[0],_.z8W)}else this.hasMovieRenderer=!1};
_.f.requestElementsPerRow=function(){_.Z2(this.hostElement,"yt-request-elements-per-row")};
_.f.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var y=_.z(this.hiddenMediaRenderers),W=y.next();!W.done;W=y.next())W.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(y=_.p(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&y.focus()}};
_.f.updateTitleSpec=function(){var y;(y=this.data)!=null&&y.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.f.logoWithPadding=function(y){var W,c,Z;return(y=(W=this.getCurrentLogo(y,this.isDarkTheme))==null?void 0:(c=W.thumbnails)==null?void 0:(Z=c[0])==null?void 0:Z.height)&&y%31===0?!0:!1};
_.f.onUpdateElementsPerRowAction=function(y,W,c){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y);c&&this.slimItemsPerRow!==c&&(this.slimItemsPerRow=c)};
var Ez=W5g;Ez.prototype.slimItemsPerRowChanged=Ez.prototype.slimItemsPerRowChanged;Ez.prototype.elementsPerRowChanged=Ez.prototype.elementsPerRowChanged;Ez.prototype.dataChanged=Ez.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ez.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.OO),_.e("design:type",Object)],Ez.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ez.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Ez.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ez.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Ez.prototype,"currentColorPalette",void 0);_.x([_.L(),_.e("design:type",Array)],Ez.prototype,"visibleVideos",void 0);
_.x([_.L(),_.e("design:type",Array)],Ez.prototype,"hiddenVideos",void 0);_.x([_.L(),_.e("design:type",Object)],Ez.prototype,"primaryButton",void 0);_.x([_.L({reflectToAttribute:!0,value:3}),_.e("design:type",Number)],Ez.prototype,"elementsPerRow",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ez.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ez.prototype,"isExpanded",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ez.prototype,"largeTitle",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ez.prototype,"hasMovieRenderer",void 0);_.x([_.L(),_.e("design:type",Number)],Ez.prototype,"slimItemsPerRow",void 0);_.x([_.L(),_.e("design:type",Boolean)],Ez.prototype,"showLightVideoMetadata",void 0);_.x([_.L(),_.e("design:type",Boolean)],Ez.prototype,"showDarkVideoMetadata",void 0);
_.x([_.L(),_.e("design:type",Number)],Ez.prototype,"videoMetadataColor",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],Ez.prototype,"miniMode",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.e("design:type",Boolean)],Ez.prototype,"isFirstFeedItem",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.e("design:type",Boolean)],Ez.prototype,"hasSectionHeader",void 0);
_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],Ez.prototype,"roundedContainer",void 0);_.x([_.y0("#visible-video-container ytd-rich-grid-media"),_.e("design:type",Array)],Ez.prototype,"visibleMediaRenderers",void 0);_.x([_.y0("#hidden-video-container ytd-rich-grid-media"),_.e("design:type",Array)],Ez.prototype,"hiddenMediaRenderers",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ez.prototype,"modern",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ez.prototype,"dataChanged",null);_.x([_.H("elementsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ez.prototype,"elementsPerRowChanged",null);_.x([_.H("slimItemsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ez.prototype,"slimItemsPerRowChanged",null);
Ez=_.x([_.d({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Ez);
_.T(Ez,"ytd-brand-video-shelf-renderer",function(){if(y8B!==void 0)return y8B;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return y8B=y},{mode:1});var c86;var ZzH=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(ZzH,_.v);_.f=ZzH.prototype;_.f.attached=function(){var y=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",y);this.onDarkModeToggledAction(y)};
_.f.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"}}}};
_.f.dataChanged=function(){this.requestElementsPerRow();var y,W;this.currentColorPalette=this.isDarkTheme?(y=this.data)==null?void 0:y.darkColorData:(W=this.data)==null?void 0:W.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.f.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.f.computeIsFirstFeedItem=function(y){return y};
_.f.onDarkModeToggledAction=function(y){y!==this.isDarkTheme&&this.set("isDarkTheme",y);this.data&&(this.currentColorPalette=y?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(y),this.updateButtonPalette())};
_.f.shouldShowThumbnailInMetadata=function(y){return y<=1};
_.f.getCurrentLogo=function(y,W){if(y)return W?y.darkLogoImage:y.lightLogoImage};
_.f.computeVideoMetadataColor=function(){if(this.data){var y;if((y=this.currentColorPalette)==null?0:y.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.f.computeTitleStyle=function(y){var W;if((W=this.data)!=null&&W.title&&y&&y.textPrimary!==void 0)return"color:"+_.$$(y.textPrimary)+";"};
_.f.computeSubtitleStyle=function(y){var W;if((W=this.data)!=null&&W.subtitle&&y&&y.textSecondary!==void 0)return"color:"+_.$$(y.textSecondary)+";"};
_.f.computeDismissIconStyle=function(y){if(this.data&&this.data.dismissButton){var W;if(y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor)return"--yt-button-color:"+_.$$(y.dismissButtonColorData.foregroundTitleColor)+";";var c,Z,G,D;if((c=this.data.dismissButton)==null?0:(Z=c.buttonRenderer)==null?0:(G=Z.colorData)==null?0:(D=G.basicColorPaletteData)==null?0:D.foregroundTitleColor)return"--yt-button-color:"+_.$$(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.f.computeOverflowButtonStyle=function(y){var W;if(this.data&&this.data.overflowButton&&(y==null?0:(W=y.dismissButtonColorData)==null?0:W.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.$$(y.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.$$(y.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBackgroundStyle=function(y){if(y&&this.data){var W="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Bh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(W+='background-image:url("'+c+'");')}y.backgroundColor!==void 0&&(W+="background-color:"+_.KZ(y.backgroundColor)+";");return W}};
_.f.computeHasOverflowButton=function(y){return!!y.overflowButton};
_.f.getLogoHeight=function(y){return this.logoWithPadding(y)?"26":"20"};
_.f.getLogoImageId=function(y){return this.logoWithPadding(y)?"logo-image-with-padding":"logo-image"};
_.f.updateButtonPalette=function(){if(this.data){var y;if((y=this.data.primaryButton)==null?0:y.buttonRenderer){var W;if((W=this.currentColorPalette)==null?0:W.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var c;if((c=this.currentColorPalette)==null?0:c.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 Z;if((Z=this.data.dismissButton)==null?0:Z.buttonRenderer){var G;if((G=this.currentColorPalette)==null?0:G.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.f.requestElementsPerRow=function(){_.Z2(this.hostElement,"yt-request-elements-per-row")};
_.f.updateTitleSpec=function(){var y;(y=this.data)!=null&&y.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")};
_.f.logoWithPadding=function(y){var W,c,Z;return(y=(W=this.getCurrentLogo(y,this.isDarkTheme))==null?void 0:(c=W.thumbnails)==null?void 0:(Z=c[0])==null?void 0:Z.height)&&y%31===0?!0:!1};
_.f.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y)};
var N5=ZzH;N5.prototype.elementsPerRowChanged=N5.prototype.elementsPerRowChanged;N5.prototype.dataChanged=N5.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],N5.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],N5.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],N5.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],N5.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],N5.prototype,"currentColorPalette",void 0);_.x([_.L(),_.e("design:type",Object)],N5.prototype,"primaryButton",void 0);
_.x([_.L({reflectToAttribute:!0,value:3}),_.e("design:type",Number)],N5.prototype,"elementsPerRow",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],N5.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],N5.prototype,"titleSize",void 0);_.x([_.L(),_.e("design:type",Number)],N5.prototype,"videoMetadataColor",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],N5.prototype,"miniMode",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.e("design:type",Boolean)],N5.prototype,"isFirstFeedItem",void 0);_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],N5.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.e("design:type",Boolean)],N5.prototype,"hasOverflowButton",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],N5.prototype,"dataChanged",null);_.x([_.H("elementsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],N5.prototype,"elementsPerRowChanged",null);N5=_.x([_.d({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],N5);
_.T(N5,"ytd-brand-video-singleton-renderer",function(){if(c86!==void 0)return c86;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return c86=y},{mode:_.xm("kevlar_poly_si_batch_j070")?1:2});var G_S;var fwd=_.Ax(function(y){var W=y.data;return _.X(_.J3,{data:function(){return W().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(W().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var c=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":c=88;break a;default:c=88}return c},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return W().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"xh"),DXQ=_.Ax(function(y){var W=y.metadataRow;
var c=y.delimiter;return _.X(_.mC,{each:function(){return W().textParts||[]},
keyBy:"INDEX"},function(Z,G){return _.X(_.a2,null,_.X(_.Da,{text:Z,noWrap:!0,userInput:!0}),_.X(o89,{delimiter:c,max:function(){return W().textParts.length},
index:G}))})},"yh"),o89=_.Ax(function(y){var W=y.delimiter;
var c=y.max;var Z=y.index;return _.X(_.YN,{cond:function(){return(W==null?void 0:W())&&c()-1>Z()},
then:function(){return _.X("span",null,W)}})},"zh"),zBQ=_.Ax(function(y){var W=y.data;
y={};return _.X("yt-profile-page-header-information-view-model",{class:_.Mi("profile-page-header-information-view-model-wiz",(y["profile-page-header-information-view-model-wiz--mobile"]=!1,y))},_.X(_.YN,{cond:function(){return W().onTap},
then:function(){return _.X(_.oL,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.UH(W().onTap)}},_.X(_.bg,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:fwd}))},
else:function(){return _.X("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.X(_.bg,{data:function(){return W().thumbnail}},{profilePageHeaderThumbnailViewModel:fwd}))}}),_.X("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.X(_.YN,{cond:function(){return W().onTap},
then:function(){return _.X(_.bg,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(c){var Z=c.data;
return _.X(_.oL,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.UH(Z().onTap)}},_.X(_.Da,{text:function(){return Z().title}}))}})},
else:function(){return _.X(_.bg,{data:function(){return W().title}},{profilePageHeaderTitleViewModel:function(c){var Z=c.data;
return _.X(_.Da,{text:function(){return Z().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.X(_.bg,{data:function(){return W().metadata}},{profilePageHeaderMetadataViewModel:function(c){var Z=c.data;
return _.X(_.YN,{cond:function(){return Z().metadataRows},
then:function(G){return _.X("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.X(_.mC,{each:G,keyBy:"INDEX"},function(D,Y){return _.X(_.a2,null,_.X(DXQ,{metadataRow:D,delimiter:" \u2022 "}),_.X(o89,{delimiter:" \u2022 ",max:function(){return G().length},
index:Y}))}))}})}})))},"Ah");
zBQ.idomCompat=!0;_.A3(zBQ,"yt-profile-page-header-information-view-model",{props:{data:_.Ix}});var YwH=function(){return _.v.apply(this,arguments)||this};
_.R(YwH,_.v);YwH.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var mXf=YwH;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],mXf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mXf.prototype,"data",void 0);mXf=_.x([_.d({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],mXf);
_.T(mXf,"ytd-effect-pivot-header-view-model",function(){if(G_S!==void 0)return G_S;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return G_S=
y},{mode:1});var spD;var u7Q=function(){return _.v.apply(this,arguments)||this};
_.R(u7Q,_.v);u7Q.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var tCZ=u7Q;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tCZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tCZ.prototype,"data",void 0);tCZ=_.x([_.d({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],tCZ);
_.T(tCZ,"ytd-source-pivot-header-renderer",function(){if(spD!==void 0)return spD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return spD=y},{mode:1});_.A3(_.Ax(function(y){var W=function(){return _.g(y.data().flowRoot,JRg)};
_.rj(function(){var c=W(),Z=function(){},G=function(){};
if(c){var D,Y,u=(Y=_.g((D=c.steps)==null?void 0:D[0],_.yKH))==null?void 0:Y.stepId;ROg(c,u||"");Z=EfB(c);G=Nn9(c)}_.KL(function(){Z();Z=function(){};
G();G=function(){}})});
return _.X("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.X(_.HkV,{contentId:function(){return y.data().contentId}},function(){return _.X("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.X(_.YN,{cond:W,
then:function(c){return _.X(_.IVB,{data:c})}}))}))},"Bh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Ix}});_.A3(_.Ax(function(){return _.X("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.X("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.X("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.X(_.mig,null)),_.X(_.ev8,{data:{rows:1},isExploreHub:!0}))},"Ch"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.A3(_.Ax(function(y){var W=y.data;var c=y.standardUnitMinWidth;y=_.HO();var Z=_.z((0,_.yV8)(W)),G=Z.next().value,D=Z.next().value,Y=function(){var t,b=(t=G())==null?void 0:t.contents;return b==null||b.length===0},u=function(){D(Object.assign({},G(),{contents:[]}))};
_.MF(y,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var t=_.g(W().chipsShelf,Vf9);if(t!=null&&t!=null&&t.autoselectChipOnVisible){var b,r,F=_.g(t==null?void 0:(b=t.contents)==null?void 0:b[(r=t.autoselectedChipIndex)!=null?r:0],_.IU);F&&F.tapCommand&&_.OH(F.tapCommand)}}});
return _.X("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:y},_.X(_.HkV,{contentId:function(){return W().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.X("div",null,_.X("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.X(_.bg,{data:function(){return W().header}},{sectionHeaderViewModel:function(t){return _.X(_.hr,{data:t.data,
disableHorizontalPadding:!0})}})),_.X("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.X(_.bg,{data:function(){return W().chipsShelf}},{chipsShelfViewModel:function(t){return _.X(_.A10,{data:t.data,
callback:u,enableSingleChipSelection:!0})}})),_.X("div",null,_.X(_.YN,{cond:Y,
then:function(){return _.X("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.X(_.ev8,{data:{rows:1},isExploreHub:!0}))}}),_.X(_.bg,{data:function(){var t;
return(t=G())==null?void 0:t.contents}},{richShelfRenderer:function(t){return _.X(_.fDZ,{data:t.data,
isInnerShelf:!0,standardUnitMinWidth:c})}})))}))},"Dh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Ix,
standardUnitMinWidth:_.Ix}});var n8Q=function(){return _.v.apply(this,arguments)||this};
_.R(n8Q,_.v);
n8Q.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",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}}};
n8Q.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
var IG=n8Q;_.x([_.C(_.$s),_.e("design:type",Object)],IG.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],IG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],IG.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],IG.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],IG.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Number)],IG.prototype,"standardUnitMinWidth",void 0);IG=_.x([_.d({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],IG);
_.T(IG,"ytd-rich-section-renderer",function(){if(jp9!==void 0)return jp9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return jp9=y},{mode:_.xm("kevlar_poly_si_batch_j029")?
1:2});_.A3(_.Oq9,"yt-profile-identity-info-view-model",{props:{data:_.Ix,hideDivider:_.Ix}});_.A3(_.rH9,"yt-page-header-view-model",{props:{data:_.Ix,noPadding:_.Ix,enableBanner:_.Ix,cinematicContainerTopbarOffset:_.Ix,allowCinematicContainerOverflow:_.Ix,displayAsSidebar:_.Ix,displayAsPanel:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c=function(){var G;return(G=W().numColumns)!=null?G:2},Z=function(){return c()>1?3:2};
y={};return _.X("ytd-rich-grid-group",{class:_.Mi("ytdRichGridGroupHost",(y.ytdRichGridGroupHostFirstColumn=function(){return W().colIndex===0},y)),
style:_.cF({"--ytd-rich-grid-group-num-columns":c,"--ytd-rich-grid-items-per-group":Z})},_.X("div",{class:"ytdRichGridGroupContents"},_.X(_.bg,{data:function(){var G;return(G=W().contents)==null?void 0:G.slice(0,Z())}},{richItemRenderer:function(G){return _.X(_.ciV,{data:G.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Eh"),"ytd-rich-grid-group",{props:{data:_.Ix}});var XdQ=function(){var y=_.v.apply(this,arguments)||this;y.resizeOnObserverInit=!1;y.isInlinePreviewDisabled=_.O("web_disable_inline_preview");y.disableStickyFilterBar=!1;y.transparentBackgroundChipsBar=!1;y.hideChipsBar=!1;y.isWatchDefaultLayout=!0;y.continuationShowButton=!1;y.rowReducedHorizontalMargin=!1;y.useCompactList=!1;y.manualDownloadsPresent=!1;y.smartDownloadsPresent=!1;y.shouldRenderDownloadsBanner=!1;y.hasOptedIntoSmartDownloads=!1;y.elementsPerRow=4;y.typographyBump=!1;y.showGnomeContents=
!1;y.showExploreHubContents=!1;y.slimItemsPerRow=1;y.pageLoadingFromNavigation=!1;y.loggingRefactor=_.O("kevlar_rich_grid_logging_fix");y.resizeObserver=null;y.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"};y.rendererToTagNameMap=
new Map(Object.entries(y.contentMapping()).map(function(W){var c=_.z(W);W=c.next().value;c=c.next().value;return[W,c.component]}));
y.insertedContent=new Map;return y};
_.R(XdQ,_.v);_.f=XdQ.prototype;_.f.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var y=_.z(_.p(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=y.next();!W.done;W=y.next())W.value.useCompactList=this.useCompactList};
_.f.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var y=_.z(_.p(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),W=y.next();!W.done;W=y.next())W=W.value,W.sizing=this.sizing,W.typographyBump=this.typographyBump};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.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]]"}}}};
_.f.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}}};
_.f.attached=function(){document.addEventListener("yt-page-type-changed",_.qO(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.ig(this.resizeObserved,_.ey("rich_grid_resize_delay_ms",50),this)};
_.f.detached=function(){var y;(y=this.resizeObserver)==null||y.disconnect();document.removeEventListener("yt-page-type-changed",_.qO(this,this.onPageChange))};
_.f.insertRichSection=function(y){var W=y.richItemTargetId;y=y.richSectionRendererToInsert;W&&y&&(this.insertedContent.set(W,y),this.reflowContent())};
_.f.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.f.computeIsInlinePreviewEnabled=function(y,W,c){return _.O("web_disable_inline_preview")?!1:!c&&_.TKB({miniplayerIsActive:y,miniplayerPlaybackState:W})};
_.f.computeSizing=function(){var y=_.aIy(this.data);if(y||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return y?this.useCompactList?"COMPACT":y:this.miniMode?"COMPACT":_.O("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.f.updateItemMinAndMaxWidth=function(){var y=_.ey("rich_grid_max_item_width",500);y>0&&_.wM(this.hostElement,{"--ytd-rich-grid-item-max-width":y+"px"});var W;y=this.getRichItemMinWidth((W=this.hostElement)==null?void 0:W.clientWidth);y>0&&_.wM(this.hostElement,{"--ytd-rich-grid-item-min-width":y+"px"})};
_.f.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.f.resizeObserved=function(){_.fl(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.f.navigateBackToHome=function(){_.O("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.O("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var y=_.U().resolve(_.h7).isOnWatch(),W,c=((W=_.b4a(location.pathname))==null?void 0:W.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(c)||y)&&this.gnomeContents&&_.O("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);y&&this.exploreHubContents&&_.O("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Sv().dispatch(_.jv({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.f.onPageChange=function(){var y=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.O("disable_chip_select_on_nav")||_.fl(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.KX.addJob(function(){y.pageLoadingFromNavigation=!1;_.O("disable_chip_select_on_nav")&&_.O("h5_reset_cache_and_filter_before_update_masthead")&&y.resetCacheAndIsFilteredFeed();y.setMasthead();y.maybeSetBigYoodle();y.forceRefreshAndLog();y.terminateVideoPreview();_.O("web_hide_gnome_until_user_navigates_back_to_home")&&
(y.dataChanged(),_.Lv(y,function(){if(y.showGnomeContents){var W=Array.from(_.p(y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Z){Z=_.p(Z).querySelector("ytd-rich-shelf-renderer");return!!Z&&Z.isGnomeShelf()});
if(W){W=W.offsetTop-y.contentsElement.offsetTop;var c=_.U().resolve(_.h7).getCurrentPage();c&&c.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}));
_.O("web_hide_explore_hub_until_user_navigates_back_to_home")&&(y.dataChanged(),_.Lv(y,function(){if(y.showExploreHubContents&&!_.O("web_explore_hub_no_scroll")){var W=Array.from(_.p(y.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(Z){return!!Z.querySelector("ytd-talk-to-recs-flow-renderer")});
if(W){W=W.offsetTop-y.contentsElement.offsetTop;var c=_.U().resolve(_.h7).getCurrentPage();c&&c.getPageScrollingElement().scrollTo({top:W,behavior:"smooth"})}}}))},8)):((_.O("web_hide_gnome_until_user_navigates_back_to_home")||_.O("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.f.dataChanged=function(){var y=this,W=_.ey("web_rich_grid_row_margin",0);W>0&&_.wM(this.hostElement,{"--ytd-rich-grid-row-margin":W+"px"});_.fl(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Lv(this,function(){y.updateRichItemGridPositions();y.contentsElement&&_.wM(y.hostElement,{"--ytd-rich-grid-content-offset-top":y.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.f.initResizeObserver=function(){var y=this;if(window.ResizeObserver){var W;(W=this.resizeObserver)==null||W.disconnect();var c=!1;this.resizeObserver=new ResizeObserver(function(){if(c){var Z;(Z=y.resizeObserver)==null||Z.disconnect();var G;(G=y.throttledOnResize)==null||G.fire();requestAnimationFrame(function(){var Y;(Y=y.throttledOnResize)==null||Y.fire();y.initResizeObserver()})}else if(c=!0,y.resizeOnObserverInit){var D;
(D=y.throttledOnResize)==null||D.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.f.contentLengthChanged=function(){if(_.O("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.fl(this.hostElement,"ytd-rich-item-index-update-action")};
_.f.updateElementsPerRow=function(){_.fl(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.jv({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.jv({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.f.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.f.onRichShelfRendererCollapse=function(y){if(this.shownItems){var W=y.detail;y=this.shownItems.findIndex(function(Z){var G,D;return((D=_.g(Z==null?void 0:(G=Z.richSectionRenderer)==null?void 0:G.content,_.Q7W))==null?void 0:D.trackingParams)===W});
var c=y+1;y<0||c>=this.contentsElement.children.length||!this.shownItems[c].richItemRenderer||this.contentsElement.children[c].scrollIntoView({behavior:"smooth",block:"start"})}};
_.f.onSoftReloadPage=function(){this.scrollUpToTop()};
_.f.handleRerenderDownloadsData=function(){_.O("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.f.handlePlaylistRemoveVideosAction=function(y){var W;if(((W=_.g(y,_.Z2Z))==null?0:W.setVideoIds)&&this.data&&this.data.contents){y=_.g(y,_.Z2Z).setVideoIds;for(W=this.data.contents.length-1;W>=0;){var c=_.g(this.data.contents[W],_.Fb);(c=c&&_.g(c.content,_.gR))&&c.setVideoId&&y.includes(c.setVideoId)&&this.splice("data.contents",W,1);W--}this.updateIndices()}};
_.f.updateIndices=function(){if(this.data&&this.data.contents)for(var y=0;y<this.data.contents.length;y++)this.set("data.contents."+y+".richItemRenderer.index",_.Lq(String(y+1)))};
_.f.hasTopRowInlinePlayableVideoWithEndorsement=function(y){var W;return!((W=y.slice(0,this.getItemsPerRow()))==null||!W.some(function(c){var Z;c=_.g(c==null?void 0:(Z=c.richItemRenderer)==null?void 0:Z.content,_.TR8);var G;return(c==null?void 0:c.inlinePlaybackEndpoint)&&(c==null?void 0:(G=c.thumbnailOverlays)==null?void 0:G.some(function(D){return D.thumbnailOverlayEndorsementRenderer}))}))};
_.f.refreshGridLayoutNew=function(y,W,c,Z){var G=Z.postsPerRow;var D=Z.slimItemsPerRow;var Y=Z.gameCardsPerRow;Z=Z.miniGameCardsPerRow;var u;if((u=this.data)==null||!u.contents||!this.containerWidth)return!1;var t;if((t=this.data.responsiveContainerConfiguration)==null?0:t.responsiveSize){var b=_.H3I(this.data.responsiveContainerConfiguration,this.containerWidth),r;u=_.S8(Object.assign({},b,{standardUnitMinWidth:(r=this.data)==null?void 0:r.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&b.isCompactList)}else u=_.S8({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(b=this.data)==null?void 0:b.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=u.typographyBump;r=!1;if(y||this.elementsPerRow!==u.numItems||this.postsPerRow!==G||this.slimItemsPerRow!==D||this.gameCardsPerRow!==
Y||this.miniGameCardsPerRow!==Z||this.gutter!==u.gutter)r=this.elementsPerRow!==u.numItems,this.elementsPerRow=u.numItems,this.postsPerRow=G,this.slimItemsPerRow=D,this.gameCardsPerRow=Y,this.miniGameCardsPerRow=Z,this.gutter=u.gutter,this.itemWidth=u.itemWidth,this.reflowContent(W),_.wM(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":u.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(c);this.ytdReduxBehavior.dispatch(_.jv({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:u.maxContainerWidth}));return r};
_.f.refreshGridLayout=function(y,W){var c,Z=(c=this.hostElement)==null?void 0:c.clientWidth;this.containerWidth=this.adjustRichGridWidth(Z,!0);var G;if((G=this.data)==null||!G.contents||!this.containerWidth)return y&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.O("rg_pending_reflow_ks")&&(y=!0,this.pendingForceReflow=!1);c=this.getRichItemMinWidth(Z);var D=this.isShortsPanel?146:194,Y=this.getMiniGameCardMinWidth(),u=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
Z=c=this.calcElementsPerRow(c,u);(G=c<=3&&this.miniModeAllowed())&&(c=this.calcElementsPerRow(240,4));var t=this.calcMaxSlimElementsPerRow(c,u,this.isDefaultGrid);u=this.calcElementsPerRow(D,t);var b=this.calcElementsPerRow(this.isCompactGrid?D:154,t);D=this.calcElementsPerRow(this.isCompactGrid?D:Y,t);Y=!1;if(this.sizing)return this.refreshGridLayoutNew(y,W,G,{postsPerRow:Z,slimItemsPerRow:u,gameCardsPerRow:b,miniGameCardsPerRow:D});if(y||this.elementsPerRow!==c||this.postsPerRow!==Z||this.slimItemsPerRow!==
u||this.gameCardsPerRow!==b||this.miniGameCardsPerRow!==D)Y=this.elementsPerRow!==c,this.elementsPerRow=c,this.postsPerRow=Z,this.slimItemsPerRow=u,this.gameCardsPerRow=b,this.miniGameCardsPerRow=D,this.reflowContent(W),this.updateElementsPerRow(),_.wM(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)&&_.wM(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(G);_.fl(this.hostElement,"yt-rich-grid-layout-refreshed");return Y};
_.f.getRichItemMinWidth=function(y){var W=_.ey("rich_grid_min_item_width",310);if(!_.O("kevlar_disable_min_width_override")){var c,Z;W=(Z=(c=this.data)==null?void 0:c.minItemWidth)!=null?Z:W}return W+_.B6h(y)};
_.f.calcMaxSlimElementsPerRow=function(y,W,c){return(c===void 0?0:c)?y===1?2:y%2===0?_.O("web_shorts_2_by_3_reduce_items_per_row")&&y>=4?y/2*3-1:y/2*3:_.O("web_shorts_2_by_3_reduce_items_per_row")&&y>=3?y+1:y+2:W*2};
_.f.adjustRichGridWidth=function(y,W){var c=_.O("disable_rich_grid_guide_compensation");if(!this.isWatch&&!c){c=_.U().resolve(_.xN(_.EO));var Z=c==null?void 0:c.guideElement;if(!(!c||c.getData()||Z!=null&&Z.opened||c.getMiniGuideVisible()))if(c.canFitPersistentGuide(y)&&c.getGuideExpandsAutomatically()){var G,D,Y=Number((G=window.getComputedStyle(this.hostElement))==null?void 0:(D=G.getPropertyValue("--app-drawer-width"))==null?void 0:D.replace("px",""));y-=Y||0}else if(c.canFitMiniGuide(y)){var u;
G=Number((Y=window.getComputedStyle(this.hostElement))==null?void 0:(u=Y.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:u.replace("px",""));y-=G||0}}y>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(y-=W?32:48));return y};
_.f.calcElementsPerRow=function(y,W){var c=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Z=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((c+Z)/(y+Z))||1,W)};
_.f.reflowContent=function(y){var W=this;if(!this.isReflowing){this.isReflowing=!0;var c,Z,G=!!((c=this.data)==null?0:(Z=c.contents)==null?0:Z.some(function(l){return _.g(l,_.yQ)}));
c=this.getItemsPerRow();var D;Z=(D=this.data)==null?void 0:D.reflowOptions;y&&(_.PA("rgr_s"),_.Lv(this,function(){_.PA("rgr_nrf")}));
y={};(D=_.p(this.hostElement).querySelector("#contents"))&&(y={contentElement:D,rendererToTagNameMap:this.rendererToTagNameMap});D=(D=this.data.contents)?D.slice():[];var Y=(_.O("web_hide_gnome_behind_feed_filter_chip")||_.O("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,u=_.O("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,t=-1,b=-1;if(this.isHomePage&&u){for(u=0;u<D.length;u++){var r=void 0,F=void 0;_.g((r=D[u])==null?void 0:
(F=r.richSectionRenderer)==null?void 0:F.content,PPg)&&(b=u)}b>-1&&(this.exploreHubContents=D.splice(b,1))}if(this.isHomePage&&Y){for(b=0;b<D.length;b++)F=r=void 0,(u=_.g((r=D[b])==null?void 0:(F=r.richSectionRenderer)==null?void 0:F.content,_.Q7W))&&Y&&(F=r=void 0,u=_.g((r=u)==null?void 0:(F=r.contents)==null?void 0:F[0],_.Fb),r=void 0,_.g((r=u)==null?void 0:r.content,_.AJ5)&&(t=b));t>-1&&(this.gnomeContents=D.splice(t,1))}var K=Fr6(D,c,G,Z,this.getRichGridStyle(),y,this.insertedContent);G=function(){W.shownItems=
K;W.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(K),_.Lv(this,G)):G()}};
_.f.getFirstRowItems=function(y){for(var W=[],c=0;c<y.length;c++){var Z=void 0,G=void 0,D=void 0,Y=void 0,u=void 0,t=void 0;if(((Z=y[c])==null?void 0:(G=Z.richItemRenderer)==null?void 0:G.rowIndex)===0||((D=y[c])==null?void 0:(Y=D.richGroupRenderer)==null?void 0:Y.rowIndex)===0||((u=y[c])==null?void 0:(t=u.richSectionRenderer)==null?void 0:t.rowIndex)===0)W.push(y[c]);else break}return W};
_.f.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.f.handleChipCloudChipSelectAction=function(y,W){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.O("web_hide_gnome_behind_feed_filter_chip")&&(W?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.f.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.O("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.f.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.O("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.f.terminateVideoPreview=function(){_.fl(this.hostElement,"yt-terminate-video-preview-action")};
_.f.updateRichItemGridPositions=function(){var y={gridData:{gridColumnCount:this.elementsPerRow}},W;if((W=this.data)==null?0:W.trackingParams)this.loggingRefactor?_.Zz().stateChanged(this.data.trackingParams,y):(W=_.NR())&&_.aP(W,_.Dz(this.data.trackingParams),y);_.fl(this.hostElement,"ytd-rich-item-index-update-action")};
_.f.miniModeAllowed=function(){return _.O("disable_channels_mini_mode")?!1:this.isChannelPage};
_.f.getMiniGameCardMinWidth=function(){return 154};
_.f.updateMiniMode=function(y){this.miniMode=this.miniModeAllowed()&&y;this.ytdReduxBehavior.dispatch(_.jv({type:"SET_RICH_GRID_MINI_MODE",payload:y}))};
_.f.isCurrentPage=function(){return location.pathname===this.pagePath};
_.f.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var y=_.U().resolve(_.h7).getCurrentPage();y&&y.setScrollTop(0)}};
_.f.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.f.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.f.maybeSetBigYoodle=function(){var y,W=(y=this.data)==null?void 0:y.bigYoodle;this.bigYoodleData!==W&&(this.bigYoodleData=W)};
_.f.setMasthead=function(){var y;((y=this.data)==null?0:y.masthead)?this.mastheadData=this.data.masthead:_.O("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.f.getRichGridStyle=function(){var y,W;return(W=(y=this.data)==null?void 0:y.style)!=null?W:"RICH_GRID_STYLE_UNKNOWN"};
_.f.onIsShortsGridChange=function(){var y=this.ytdReduxBehavior,W=y.dispatch,c=this.getRichGridStyle();W.call(y,_.jv({type:"SET_RICH_GRID_STYLE",payload:c}))};
_.dJ.Object.defineProperties(XdQ.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var y=_.U().resolve(_.h7).getCurrentPage(),W,c,Z;return(((W=this.data)==null?void 0:W.targetId)==="browse-feedFEsfv_audio_pivot"||_.O("web_enable_channel_pivot_panel")&&((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_channel_pivot"||_.O("web_enable_effect_pivot_panel")&&((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_effect_pivot")&&(y==null?void 0:y.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.O("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 y;return!((y=this.data)==null?0:y.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var y;return((y=_.U().resolve(_.h7).getCurrentPage())==null?void 0:y.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var y;return((y=_.U().resolve(_.h7).getCurrentPage())==null?void 0:y.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 y;return this.hideChipsBar||(((y=this.data)==null?void 0:y.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.O("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.targetId)||"")==="watch-next-feed"&&!_.O("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?0:y.enableContentSpecificAspectRatio)||((W=this.data)==null?0:(c=W.responsiveContainerConfiguration)==null?0:c.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.ey("web_continuation_handler_margin",0):0}}});
var ph=XdQ;ph.prototype.onIsShortsGridChange=ph.prototype.onIsShortsGridChange;ph.prototype.onReloadContinuationFinish=ph.prototype.onReloadContinuationFinish;ph.prototype.reflowContent=ph.prototype.reflowContent;ph.prototype.handleRerenderDownloadsData=ph.prototype.handleRerenderDownloadsData;ph.prototype.onRichShelfRendererCollapse=ph.prototype.onRichShelfRendererCollapse;ph.prototype.onRequestElementsPerRow=ph.prototype.onRequestElementsPerRow;ph.prototype.contentLengthChanged=ph.prototype.contentLengthChanged;
ph.prototype.dataChanged=ph.prototype.dataChanged;ph.prototype.onSizingChange=ph.prototype.onSizingChange;ph.prototype.onUseCompactListChange=ph.prototype.onUseCompactListChange;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],ph.prototype,"ironResizableBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],ph.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],ph.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ph.prototype,"componentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],ph.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ph.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],ph.prototype,"miniMode",void 0);_.x([_.L({value:[]}),_.e("design:type",Array)],ph.prototype,"shownItems",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],ph.prototype,"isReflowing",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],ph.prototype,"isFilteredFeed",void 0);_.x([_.L({selector:_.EPI}),_.e("design:type",Boolean)],ph.prototype,"guideIsExpanded",void 0);
_.x([_.L({selectorArgs:["entitySelectorType"],selector:function(y,W){if(_.O("kevlar_modern_downloads_page")&&W&&W!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(W){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var c=y.entities;W=_.Kq(c);var Z=_.Oq(c),G=_.aED(y),D=_.TFg(y);y=_.xtt(y);var Y=_.F_I(c),u=_.bo(W);c=_.gu(c);return _.JBa(W,Z,Y,G,D,u,c,y);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return W=_.Kq(y.entities),_.CKI(W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return W=
_.nPI(y.entities),_.QRt(W);default:_.Rs(new _.ul("Error: entitySelectorType defined but not matched in selector.",y,W))}}}),
_.e("design:type",Object)],ph.prototype,"entityDrivenRichGridData",void 0);_.x([_.L(),_.e("design:type",Object)],ph.prototype,"resizeOnObserverInit",void 0);_.x([_.L(),_.e("design:type",Object)],ph.prototype,"bigYoodleData",void 0);_.x([_.L(),_.e("design:type",Object)],ph.prototype,"mastheadData",void 0);_.x([_.L(),_.e("design:type",Boolean)],ph.prototype,"isInlinePreviewDisabled",void 0);_.x([_.L(),_.e("design:type",Object)],ph.prototype,"disableStickyFilterBar",void 0);
_.x([_.L(),_.e("design:type",Object)],ph.prototype,"transparentBackgroundChipsBar",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ph.prototype,"hideChipsBar",void 0);_.x([_.L(),_.e("design:type",Object)],ph.prototype,"isWatchDefaultLayout",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ph.prototype,"continuationShowButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ph.prototype,"rowReducedHorizontalMargin",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ph.prototype,"useCompactList",void 0);_.x([_.L({selector:function(y){return _.Oq(y.entities).length>0}}),
_.e("design:type",Object)],ph.prototype,"manualDownloadsPresent",void 0);_.x([_.L({selector:function(y){return _.Kq(y.entities).length>0}}),
_.e("design:type",Object)],ph.prototype,"smartDownloadsPresent",void 0);_.x([_.L({selector:_.TFg}),_.e("design:type",Object)],ph.prototype,"shouldRenderDownloadsBanner",void 0);_.x([_.L({selector:_.aED}),_.e("design:type",Object)],ph.prototype,"hasOptedIntoSmartDownloads",void 0);_.x([_.H("useCompactList"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"onUseCompactListChange",null);
_.x([_.H("sizing","typographyBump"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"onSizingChange",null);_.x([_.L({selector:_.JIO}),_.e("design:type",Number)],ph.prototype,"miniplayerPlaybackState",void 0);_.x([_.L({selector:_.Eq}),_.e("design:type",Boolean)],ph.prototype,"miniplayerIsActive",void 0);
_.x([_.L({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.e("design:type",Boolean)],ph.prototype,"isInlinePreviewEnabled",void 0);_.x([_.L({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.e("design:type",String)],ph.prototype,"sizing",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ph.prototype,"elementsPerRow",void 0);
_.x([_.L(),_.e("design:type",Object)],ph.prototype,"typographyBump",void 0);_.x([_.L(),_.e("design:type",Number)],ph.prototype,"itemWidth",void 0);_.x([_.jj("#header"),_.e("design:type",HTMLElement)],ph.prototype,"headerElement",void 0);_.x([_.jj("#contents"),_.e("design:type",HTMLElement)],ph.prototype,"contentsElement",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"dataChanged",null);
_.x([_.Gs("data.contents.length"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"contentLengthChanged",null);_.x([_.B("yt-request-elements-per-row"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"onRequestElementsPerRow",null);
_.x([_.B("yt-rich-shelf-renderer-collapse"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],ph.prototype,"onRichShelfRendererCollapse",null);_.x([_.Gs("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"handleRerenderDownloadsData",null);
_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],ph.prototype,"entitySelectorType",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.targetId"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isSub",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.targetId"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isWatch",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data.targetId"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isShortsPanel",null);_.x([_.L({reflectToAttribute:!0}),_.A("isWatch"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"reducedTopMargin",null);_.x([_.L({reflectToAttribute:!0}),_.A("data","isWatch","isWatchDefaultLayout"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"noTopMargin",null);
_.x([_.L({reflectToAttribute:!0}),_.A("isInlinePreviewEnabled","shownItems"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"topRowEndorsement",null);_.x([_.A("data.header"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"hideHeader",null);_.x([_.B("yt-rich-grid-reflow"),_.e("design:type",Function),_.e("design:paramtypes",[Boolean]),_.e("design:returntype")],ph.prototype,"reflowContent",null);
_.x([_.B("yt-reload-continuation-finish"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"onReloadContinuationFinish",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isSlimGrid",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isShortsGrid",null);
_.x([_.A("data","isSlimGrid","isShortsGrid"),_.L(),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"noRichItemGutterMargins",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isShortsGridSlim",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isCompactGrid",null);
_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"isDefaultGrid",null);_.x([_.A("data.targetId"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"hideChipsBarOnHome",null);_.x([_.A("data.targetId"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"hideChipsBarOnWatch",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ph.prototype,"onIsShortsGridChange",null);_.x([_.A("data.enableContentSpecificAspectRatio"),_.L(),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ph.prototype,"force16By9ThumbnailAspectRatio",null);_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],ph.prototype,"continuationTriggerOffset",null);ph=_.x([_.d({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],ph);
_.T(ph,"ytd-rich-grid-renderer",function(){if(ihH!==void 0)return ihH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ihH=y},{mode:2});var bzQ;var r8Q;var F59=function(){return _.v.apply(this,arguments)||this};
_.R(F59,_.v);var UX3=F59;_.x([_.L(),_.e("design:type",Object)],UX3.prototype,"data",void 0);UX3=_.x([_.n6({is:"yt-alert-renderer",disableElementRegistration:!0})],UX3);
_.T(UX3,"yt-alert-renderer",function(){if(r8Q===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;bzQ===void 0&&(bzQ=document.createElement("template"));var Z=bzQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);r8Q=y}y=r8Q;return y},{mode:2});
}catch(e){_._DumpException(e)}
try{
var s9H;s9H={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}};_.uxH=_.Ax(function(y){var W=_.qu(),c=_.U().resolve(_.I9);_.Xl(function(){requestAnimationFrame(function(){var G;(G=W.lottieEl)==null||G.addEventListener("DOMLoaded",function(){var D;(D=y.onLottieLoaded)==null||D.call(y)})})});
var Z={};return _.X("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var G;return((G=y.data)==null?void 0:G.call(y).targetId)||""}},_.X(_.el,{className:_.Mi((Z.ytChatLoadingViewModelRtl=c==="rtl",Z)),
animationName:function(){return s9H.animationConfig.name},
data:s9H,animationRef:W}))},"If");
}catch(e){_._DumpException(e)}
try{
var dFd;dFd=function(y,W){W=W.width!==window.innerWidth||W.height!==window.innerHeight;document.visibilityState==="hidden"||W||y&&_.OP(y)};
_.SP6=function(y,W){W=W===void 0?{}:W;var c,Z,G,D,Y,u,t,b,r,F,K,l;return _.m(function(N){switch(N.nextAddress){case 1:c=W;Z=c.shouldWrap===void 0?!0:c.shouldWrap;G=c.skipTransitionTimeoutMs===void 0?300:c.skipTransitionTimeoutMs;D=c.beforeTransition;Y=c.afterTransition;if(!Z||!document.startViewTransition||document.visibilityState==="hidden")return N.return(y());u={width:window.innerWidth,height:window.innerHeight};(t=D)==null||t();_.tm(N,2);b=document.startViewTransition(y);r=setTimeout(function(){b.skipTransition();
var P;(P=Y)==null||P()},G);
return _.n(N,b.ready,4);case 4:return clearTimeout(r),_.n(N,b.finished,5);case 5:clearTimeout(r);(F=Y)==null||F();_.J6(N,0);break;case 2:K=_.rs(N),(l=Y)==null||l(),dFd(K,u),_.F2(N)}})};
_.si=function(y){return y.watch.isTheaterMode};
_.TCS=function(y){var W=_.uC("DIV");y&&(W.className=y);W.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";y=_.uC("DIV");_.VQJ(y,"200px","200px");W.appendChild(y);document.body.appendChild(W);y=W.offsetWidth-W.clientWidth;_.to(W);return y};
_.uY=function(){for(var y=Array(36),W=0,c,Z=0;Z<36;Z++)Z==8||Z==13||Z==18||Z==23?y[Z]="-":Z==14?y[Z]="4":(W<=2&&(W=33554432+Math.random()*16777216|0),c=W&15,W>>=4,y[Z]=_.yD8[Z==19?c&3|8:c]);return y.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 aJB=_.dl(['<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>']),
xF9=_.dWE(aJB);xF9.setAttribute("style","display: none;");document.head.appendChild(xF9.content);_.tN=_.qAa(_.TCS);var iD6;var MuH;var eX3=function(){var y=_.v.apply(this,arguments)||this;y.icon=null;return y};
_.R(eX3,_.v);eX3.prototype.dismiss=function(){_.Z2(this.hostElement,"yt-live-chat-error-message-dismiss")};
eX3.prototype.computeIcon=function(y){return y&&y.iconType?"yt-icons:"+y.iconType.toLowerCase():"yt-icons:close"};
var nK=eX3;_.x([_.L(),_.e("design:type",Object)],nK.prototype,"data",void 0);_.x([_.L({computed:"computeIcon(data.icon)"}),_.e("design:type",Object)],nK.prototype,"icon",void 0);nK=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],nK);
_.T(nK,"yt-live-chat-error-message-renderer",function(){if(MuH===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;iD6===void 0&&(iD6=document.createElement("template"));var Z=iD6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);MuH=y}y=MuH;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var r9f,F6M,UH0,$Hf,K6M,Ji,NS0,Ig3,p30,P9Q,J9e,VD0,QP,C9F,QHM,A9f,h6F,BS3,HQ3,L60,vQ$,dH7,SBX,TS3,agX,xH0,iQX,MD7,e69,w39,qBn,kf3,j$F,ynf,Wff,cnX,Zf3,GeX,f33,oXM,D93,m9F,uMX,nX$,XXM,bfF,rn3,z09,Y3$,$97,Kf0,Off,gXQ,R09,Ff$,Nfn;r9f=function(y,W,c){W=W===void 0?5:W;if(W!==0){var Z=typeof y==="function"?y():document.querySelector(y);Z?(c==null?0:c.enableSmartFocus)?_.IPF(Z):Z.focus():setTimeout(function(){r9f(y,W-1,c)},500)}};
F6M=function(y,W){return _.fq(y.entities,"timedMarkersListSyncEntity",W)};
UH0=function(y,W){return _.fq(y.entities,"liveReactionsDataEntity",W)};
$Hf=function(y,W){y=_.fq(y.entities,"booleanEntity",W);return!(!y||!y.value)};
K6M=function(y,W){var c=_.NR();c&&y&&_.HA(c,_.Dz(y),W)};
_.OQ$=function(){_.O("web_watch_log_theater_mode")&&_.f1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.gQ3=function(y,W,c){if(!y.includes("START_TIME_PLACEHOLDER")||!y.includes("END_TIME_PLACEHOLDER"))return y;var Z=new Date(0),G=new Date(0);Z.setUTCMilliseconds(W);G.setUTCMilliseconds(c);return y.replace("START_TIME_PLACEHOLDER",_.AK(Z,7)).replace("END_TIME_PLACEHOLDER",_.AK(G,7))};
Ji=function(y){return y.watch.isWatchActive};
_.VP=function(y){return y!=null&&y.watch?y.watch.isWatchFullscreen:!1};
_.R6F=function(y){return y.watch.watchWindowSize};
_.lge=function(y){return _.si(y)||_.VP(y)||_.mIO(y)};
_.EQ0=function(y){return!_.lge(y)};
_.CI=function(y){return y.watch.watchScrollTop};
NS0=function(y){return y.watch.isLiveChatCollapsed};
Ig3=function(y){return y.watch.openEngagementPanels};
p30=function(y){switch(y){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}};
P9Q=function(y,W,c){var Z=_.UH(c);y&&W&&Z&&y.getPlayerPromise().then(function(G){_.F0t(Z)&&_.KD();(new _.O7(G)).executeCommand(Z,W);_.O("continue_playback_on_desktop_companion_click")||G.pauseVideo()})};
J9e=function(y){var W=_.HF(),c;if(c=_.JW("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;c=(Z=c())==null?void 0:Z.layoutId}else c=null;P9Q(W,c,y)};
VD0=function(y){var W=_.HF(),c;if(c=_.JW("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;c=(Z=c())==null?void 0:Z.layoutId}else c=null;P9Q(W,c,y)};
QP=function(y,W){var c=y<0?"-":"";y=Math.abs(y);var Z=Math.floor(y/3600),G=Math.floor(y)%3600,D=Math.floor(G/60);G=Math.floor(G)%60;var Y="";(W===void 0?0:W)&&(Y="."+Math.round((y-Math.floor(y))*10));return Z>0?c+Z+":"+(D<10?"0"+D:""+D)+":"+(G<10?"0"+G:""+G)+Y:c+D+":"+(G<10?"0"+G:""+G)+Y};
C9F=function(y){var W=y.match(/[^0-9:\.]/g);if(W&&W.length>0)return null;y=y.split(":");if(y.length===0||y.length>3)return null;W=1;for(var c=0;y.length>0;){var Z=y.pop();if(Z===void 0)break;var G=Number(Z);if(Z===""||isNaN(G))return null;c+=G*W;W*=60}return c};
QHM=function(y,W,c,Z){y=Math.max(c,y);W=Math.min(W,Z-c);y+W>Z?(c=Z,y=c-W):c=y+W;return{start:y,end:c}};
A9f=function(y,W,c,Z,G,D){y<c?y=c:y+G>Z&&(y=Z-G);W>Z&&(W=Z);W=Math.min(y+D,Math.max(y+G,W));return{start:y,end:W}};
h6F=function(y,W,c,Z,G,D){W>Z?W=Z:W-G<c&&(W=c+G);y<c&&(y=c);y=Math.min(W-G,Math.max(W-D,y));return{start:y,end:W}};
BS3=function(y){return _.O("web_transcript_cue_id_killswitch")?String(y):"ytd-transcript-renderer_"+y};
HQ3=function(y){return _.O("web_transcript_cue_id_killswitch")?!0:y.startsWith("ytd-transcript-renderer")};
L60=function(y){var W=_.HF(),c;if(c=_.JW("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;c=(Z=c())==null?void 0:Z.layoutId}else c=null;P9Q(W,c,y)};
vQ$=function(y,W){return _.fq(y.entities,"youchatPendingResponseEntity",W)};
dH7=function(y){return function(W){_.PQ(_.o3("youchatPendingResponseEntity",y,{entityKey:y,isPendingResponse:W}))}};
SBX=function(y,W){return _.fq(y.entities,"booleanEntity",W)};
TS3=function(){return function(y){_.PQ(_.o3("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:y}))}};
agX=function(y){y==null||y.addEventListener("DOMLoaded",function(){y.goToAndPlay(y.totalFrames-48,!0)})};
xH0=function(y){y.style.height="auto";y.style.height=Math.min(y.scrollHeight||20,80)+"px"};
iQX=function(y,W){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:W}}],insertByPositionInSection:{sectionTargetId:y,position:"INSERTION_POSITION_LAST"}}}]}}}};
MD7=function(y){var W=_.HF(),c;c=(c=_.JW("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;P9Q(W,c,y)};
e69=function(y){var W=_.HF(),c;c=(c=_.JW("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;P9Q(W,c,y)};
w39=function(y,W){W=W===void 0?!1:W;if(y.simpleText)y=[{text:y.simpleText}];else{var c;y=((c=y.runs)!=null?c:[]).map(function(Z){return Object.assign({},Z)})}if(W)for(W=_.z(y),c=W.next();!c.done;c=W.next())c.value.bold=!0;
return y};
qBn=function(y){var W=y.startEndTimeTemplate,c=y.startTimeUtcMillis;y=y.endTimeUtcMillis;if(W&&c&&y)return _.Lq(_.gQ3(_.v$(W),Number(c),Number(y)))};
kf3=function(y,W){var c,Z,G=y==null?void 0:(c=y.viewCount)==null?void 0:(Z=c.videoViewCountRenderer)==null?void 0:Z.shortViewCount;if(!W&&G)return G;var D,Y;return y==null?void 0:(D=y.viewCount)==null?void 0:(Y=D.videoViewCountRenderer)==null?void 0:Y.viewCount};
j$F=function(y,W){var c=y==null?void 0:y.relativeDateText;return!W&&c?[c,!0]:[y==null?void 0:y.dateText,!1]};
ynf=function(y,W,c,Z,G){Z=Z===void 0?!0:Z;G=G===void 0?"":G;var D=kf3(y,W),Y=_.z(j$F(y,W)),u=Y.next().value;Y=Y.next().value;W=W?y==null?void 0:y.sponsorsOnlyFirstTimeLongText:y==null?void 0:y.sponsorsOnlyFirstTimeShortText;var t=[];c&&D&&t.push(D);!c&&Y||!u||t.push(u);y=[].concat(_.No(t),[W,y==null?void 0:y.stationName,y==null?void 0:y.rating,y?qBn(y):void 0,y==null?void 0:y.upNextProgramText,y==null?void 0:y.superTitleLink]).filter(function(b){return!!b});
c={runs:[]};for(D=0;D<y.length;D++)c.runs.push.apply(c.runs,_.No(w39(y[D],Z))),D<y.length-1&&c.runs.push({text:" "+G+" ",bold:Z});return c};
Wff=function(y){if(y)return{runs:[{text:y,bold:!0}]}};
cnX=function(y){var W,c,Z,G;if(y=y==null?void 0:(W=y.contents)==null?void 0:(c=W.twoColumnWatchNextResults)==null?void 0:(Z=c.results)==null?void 0:(G=Z.results)==null?void 0:G.contents){var D,Y;return(Y=(D=y.find(function(u){return!!u.videoPrimaryInfoRenderer}))==null?void 0:D.videoPrimaryInfoRenderer)==null?void 0:Y.updatedMetadataEndpoint}};
Zf3=function(y,W){var c;return(c=y.sourceConfigs)==null?void 0:c.find(function(Z){return Z.videoId===W})};
GeX=function(y){return y==="End of video"||y==="End of playlist"};
f33=function(y){var W,c,Z,G;return(W=y.getWatchNextResponse())==null?void 0:(c=W.contents)==null?void 0:(Z=c.twoColumnWatchNextResults)==null?void 0:(G=Z.playlist)==null?void 0:G.playlist};
oXM=function(y){var W,c,Z,G,D,Y;return(W=f33(y))==null?void 0:(c=W.playlistButtons)==null?void 0:(Z=c.menuRenderer)==null?void 0:(G=Z.topLevelButtons)==null?void 0:(D=G[0])==null?void 0:(Y=D.playlistLoopButtonRenderer)==null?void 0:Y.playlistLoopStateEntityKey};
D93=function(y){var W=_.U().resolve(_.EU),c;return(W=(c=_.g(W.getAutoplayEndpoint(),_.Sb))==null?void 0:c.playlistId)&&W===y};
m9F=function(y,W,c,Z,G){function D(){_.KX.cancelJob(Ai);var Y=z09(W,c/y.getPlaybackRate()),u=Y.hours,t=Y.minutes;Y=(Y.seconds*1E3||6E4)/y.getPlaybackRate();y.setVideoTimeLeft(Y3$(u,t));Z&&y.getPlayerState()!==0&&y.setSleepTimerTimeLeft(Y3$(u,t,!0));(u>0||t>0)&&!G&&(Ai=_.YY(_.KX,D,Y))}
_.KX.cancelJob(Ai);Ai=_.YY(_.KX,D)};
uMX=function(y,W,c){function Z(){_.KX.cancelJob(s$X);var G=z09(W,c),D=G.hours;G=G.minutes;var Y=6E4/y.getPlaybackRate();if(D>0||G>0)y.setSleepTimerTimeLeft(Y3$(D,G,!0)),s$X=_.YY(_.KX,Z,Y)}
_.KX.cancelJob(s$X);s$X=_.YY(_.KX,Z)};
nX$=function(y,W){var c=y.getVolume()/(W/500),Z=function(G){_.KX.cancelJob(tQn);var D=Math.floor(G-c);y.setVolume(D,!1);D>0&&(tQn=_.YY(_.KX,function(){Z(D)},500))};
_.KX.cancelJob(tQn);tQn=_.YY(_.KX,function(){Z(y.getVolume())})};
XXM=function(y,W){_.KX.cancelJob(tQn);W&&y.syncVolume()};
bfF=function(){var y={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.bN("SLEEP_TIMER_DISRUPTED")}}}}};_.U().resolve(_.i1).resolveCommand(y)};
rn3=function(y){return(y.getDuration()-y.getProgressState().current)*1E3};
z09=function(y,W){y=y+W-(0,_.Tj)();if(y<=0)return{hours:0,minutes:0,seconds:0};var c=new Ff$(0,0,0,0,0,0,y);y=c.getHours();W=c.getMinutes();c=c.getSeconds();c!==0&&W++;W!==0&&W%60===0&&(y++,W=0);return{hours:y,minutes:W,seconds:c}};
Y3$=function(y,W,c){return y>0&&W>0?c?_.bN("TIME_LEFT_HOURS_MINUTES",{hours:y.toString(),minutes:W.toString()}):_.bN("TIME_HOURS_MINUTES",{hours:y.toString(),minutes:W.toString()}):y>0?c?_.rK("TIME_LEFT_HOURS",y):_.rK("TIME_HOURS",y):c?_.bN("TIME_LEFT_MINUTES",{minutes:W.toString()}):_.bN("TIME_MINUTES",{minutes:W.toString()})};
$97=function(y,W){if(y.timelyActions)return y.timelyActions.find(function(c){var Z;return((Z=_.g(c,U9f))==null?void 0:Z.cueRangeId)===W})};
Kf0=function(y){var W=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.yp(y);y.keyMap_.forEach(function(c,Z){_.Hy(W,Z)||this.remove(Z)},y)};
Off=function(y,W){y.reloadContinuationItemsCommandMatcher=W};
_.hi=function(y,W){y.insertBefore(W,y.childNodes[0]||null)};
gXQ=function(y){if(y>=48&&y<=57||y>=96&&y<=106||y>=65&&y<=90||_.oE&&y==0)return!0;switch(y){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 _.fi;default:return!1}};
R09=function(y){if(y.altKey&&!y.ctrlKey||y.metaKey||y.keyCode>=112&&y.keyCode<=123)return!1;if(gXQ(y.keyCode))return!0;switch(y.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!_.fi;default:return y.keyCode<166||y.keyCode>183}};
Ff$=function(y,W,c,Z,G,D,Y){this.date=typeof y==="number"?new Date(y,W||0,c||1,Z||0,G||0,D||0,Y||0):new Date(y&&y.getTime?y.getTime():_.k3())};
_.j6(Ff$,_.nG);_.f=Ff$.prototype;_.f.getHours=function(){return this.date.getHours()};
_.f.getMinutes=function(){return this.date.getMinutes()};
_.f.getSeconds=function(){return this.date.getSeconds()};
_.f.getMilliseconds=function(){return this.date.getMilliseconds()};
_.f.getUTCDay=function(){return this.date.getUTCDay()};
_.f.getUTCHours=function(){return this.date.getUTCHours()};
_.f.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.f.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.f.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.f.setHours=function(y){this.date.setHours(y)};
_.f.setMinutes=function(y){this.date.setMinutes(y)};
_.f.setSeconds=function(y){this.date.setSeconds(y)};
_.f.setMilliseconds=function(y){this.date.setMilliseconds(y)};
_.f.setUTCHours=function(y){this.date.setUTCHours(y)};
_.f.setUTCMinutes=function(y){this.date.setUTCMinutes(y)};
_.f.setUTCSeconds=function(y){this.date.setUTCSeconds(y)};
_.f.setUTCMilliseconds=function(y){this.date.setUTCMilliseconds(y)};
_.f.add=function(y){_.nG.prototype.add.call(this,y);y.hours&&this.setUTCHours(this.date.getUTCHours()+y.hours);y.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+y.minutes);y.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+y.seconds)};
_.f.JSC$9084_toIsoString=function(y){var W=_.nG.prototype.JSC$9084_toIsoString.call(this,y);return y?W+"T"+_.e6(this.getHours(),2)+":"+_.e6(this.getMinutes(),2)+":"+_.e6(this.getSeconds(),2):W+"T"+_.e6(this.getHours(),2)+_.e6(this.getMinutes(),2)+_.e6(this.getSeconds(),2)};
_.f.equals=function(y){return this.getTime()==y.getTime()};
_.f.toString=function(){return this.JSC$9084_toIsoString()};
_.f.clone=function(){var y=new Ff$(this.date);y.firstDayOfWeek_=this.firstDayOfWeek_;y.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return y};
_.l3X=function(y){return _.jv({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:y}})};
_.EXM=function(y){return _.jv({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:y}})};
Nfn=new _.w("imageTileRenderer");var I3f=new _.w("adGridCardCollectionViewModel");var pXf=new _.w("carouselTitleViewModel");var PFM=new _.w("ctaCarouselItemViewModel");var Jnf=new _.w("textFieldViewModel");_.VQX=new _.w("engagementPanelHeaderShowNavigationButtonCommand");var CFX=new _.w("hideEngagementPanelScrimAction");var Q$X=new _.w("setActivePanelItemAction");var An7=new _.w("showEngagementPanelScrimAction");var h0X=new _.w("updateEngagementPanelAction");var BfX=new _.w("updateSearchInVideoResultsAction");var HfF=new _.w("transcriptCueGroupRenderer");var LfF=new _.w("transcriptCueRenderer");var vX7=new _.w("transcriptFooterRenderer");var d9f=new _.w("engagementPanelAdSubtitleRenderer");var S33=new _.w("videoDescriptionFantasySectionViewModel");var Tf$=new _.w("deleteClipEngagementPanelCommand");var a33=new _.w("loopCommand");var x97=new _.w("changeCreatorEndscreenVisibilityCommand");var if$=new _.w("liveChatCallForQuestionsRenderer");var MQ3=new _.w("updateTimedMarkersSyncObserverCommand");var U9f=new _.w("timelyActionViewModel");var e0$=new _.w("timelyActionsOverlayViewModel");var wX0=new _.w("repeatChapterCommand");var q3X=new _.w("watchPlayerOverflowMenuCommand");var keF=new _.w("compositeVideoOverlayRenderer");var jQe=new _.w("sortFilterSubMenuRenderer");var ym9=new _.w("horizontalShelfViewModel");var WpF=new _.w("switchListItemViewModel");var cme=new _.w("inputComposerViewModel");var Zcf=new _.w("transcriptEditSegmentCommand");var Gt9=new _.w("transcriptUpdateSegmentTextCommand");var fGf=new _.w("transcriptSearchBoxRenderer");var oiF=new _.w("transcriptSegmentListRenderer");var DoX=new _.w("transcriptSegmentRenderer");_.zlf=new _.w("updateDateTextAction");var Y$$=new _.w("updateTitleAction");var mo$=new _.w("updateViewershipAction");var sQ0=new _.w("carouselLockupRenderer");var u2X=new _.w("expandableVideoDescriptionBodyRenderer");var tqf=new _.w("videoDescriptionYouchatSectionViewModel");var nif=new _.w("conversationResourceViewModel");_.BC=_.ey("kevlar_watch_page_horizontal_margin",24);_.XpM=_.ey("kevlar_watch_page_columns_top_padding",24);_.bcf=_.ey("web_screen_width_midpoint",1500);_.rm0=_.ey("web_watch_sidebar_width_offset_per_100",10);_.FpM=426+_.BC*2;_.HC=_.ey("kevlar_watch_two_column_width_threshold",1E3);_.Uo9=_.BC*2;_.LI=_.ey("kevlar_watch_secondary_width",402);_.$of=_.ey("kevlar_watch_secondary_max_width",600);_.Kpn=_.ey("kevlar_watch_max_player_width",1280);_.Oce=_.ey("kevlar_watch_flexy_metadata_height",136);
_.gif=_.Uo9+310+_.BC;_.Rln=_.Uo9+360+_.BC;var lG3={PAUSE_CHAT:18};var EiX;var Nse;var IG3=function(){return _.v.apply(this,arguments)||this};
_.R(IG3,_.v);IG3.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
IG3.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var y=_.g(this.data.button,_.ri);y&&(y.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.dJ.Object.defineProperties(IG3,{template:{configurable:!0,enumerable:!0,get:function(){if(Nse===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;EiX===void 0&&(EiX=document.createElement("template"));var Z=EiX;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Nse=y}y=Nse;return y}}});
var vC=IG3;_.x([_.C(_.Uo),_.e("design:type",Object)],vC.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],vC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({selectorArgs:["data.enabledEntityKey"],selector:$Hf,observer:"onEnabledChange"}),_.e("design:type",Boolean)],vC.prototype,"enabled",void 0);_.x([_.L(),_.e("design:type",Object)],vC.prototype,"data",void 0);
vC=_.x([_.n6({is:"yt-disableable-button-view-model",noInjection:!0})],vC);var ppf;var PRe;var JmF=["transVert01","transVert02","transVert03"],Vq0="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),CRn=function(){var y=_.v.apply(this,arguments)||this;y.emojiManager=_.RZ;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};y.reactionBuckets=[];y.noEmojiIdentifier="NO_EMOJI";return y};
_.R(CRn,_.v);_.f=CRn.prototype;_.f.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.f.desktopFountainEmojiSizePxChanged=function(){_.wM(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.f.createUserReactionAnimation=function(y){this.createEmojiAnimation(y,!0)};
_.f.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var y;((y=this.data)==null?0:y.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.o3("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.No(this.emojiContainer.children)).forEach(function(W){W.remove()})};
_.f.detached=function(){this.cleanupFountain()};
_.f.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var y;this.reactionBuckets=_.Eb.unsafeClone((y=this.emojiFountainData)==null?void 0:y.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.f.processEmojiBucket=function(y){var W=this;if(this.reactionBuckets&&!(y>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var c=this.reactionBuckets[y];this.generateEmojiAnimations(c);if(y<this.reactionBuckets.length-1){var Z;if(c==null?0:(Z=c.duration)==null?0:Z.seconds)this.emojiBucketTimerId=setTimeout(function(){W.processEmojiBucket(y+1)},Number(c.duration.seconds)*1E3)}}};
_.f.generateEmojiAnimations=function(y){var W=this,c=this.getRandomEmojiIdFromBucketWithOverride(y);if(c&&c!==this.noEmojiIdentifier){var Z=0;y.targetEps?(Z=this.linearInterpolateBounded(1,20,100,12,y.emojiSizeIndex||0),this.createEmojiAnimation(c,!1,y.emojiAnimationMs,Z),Z=this.getEmojiDelayMsFromTargetEps(y.targetEps)):(this.createEmojiAnimation(c),Z=this.getEmojiDelayMsFromDistribution(y.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){W.generateEmojiAnimations(y)},Z)}};
_.f.getRandomEmojiIdFromBucketWithOverride=function(y){if(!(y&&y.reactionsData&&y.reactionsData.length&&y.totalReactions))return this.noEmojiIdentifier;for(var W=y.totalReactions,c=1,Z=_.z(y.reactionsData),G=Z.next();!G.done;G=Z.next())G=G.value,(G.reactionWeightOverride||G.reactionWeightOverride===0)&&G.reactionCount&&(W-=G.reactionCount,c-=G.reactionWeightOverride);Z=!0;c<0&&(Z=!1,W=y.totalReactions,c=1);if(Z&&c>0&&W===0)if(c===1){G=0;for(var D=_.z(y.reactionsData),Y=D.next();!Y.done;Y=D.next())Y=
Y.value,Y.reactionCount&&Y.reactionCount>0&&G++;G=1/G;D=_.z(y.reactionsData);for(Y=D.next();!Y.done;Y=D.next())Y.value.reactionWeightOverride=G}else for(G=1/(1-c),D=_.z(y.reactionsData),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y.reactionWeightOverride&&(Y.reactionWeightOverride*=G);G=Math.random();D=0;Y=_.z(y.reactionsData);for(var u=Y.next();!u.done;u=Y.next())if(u=u.value,u.reactionCount&&(D=(u.reactionWeightOverride||u.reactionWeightOverride===0)&&Z?D+u.reactionWeightOverride:D+c*u.reactionCount/
W,D>G&&(u.reactionCount--,y.totalReactions--,u=this.reactionItemToEmojiString(u),u!==this.noEmojiIdentifier)))return u;return this.noEmojiIdentifier};
_.f.reactionItemToEmojiString=function(y){if(y.unicodeEmojiId)return y.unicodeEmojiId;if(y.emoteId)return y.emoteId;if(y.videoReactionType)switch(y.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.f.createEmojiAnimation=function(y,W,c,Z){W=W===void 0?!1:W;this.lastEmojiRequestedForTesting=y;var G=y.startsWith("yt-icons:"),D=_.Os(this.emojiManager,y);if(D||G){var Y=document.createElement("emoji");Y.classList.add("yt-emoji-fountain-view-model");Y.classList.add(JmF[Math.floor(Math.random()*JmF.length)]);var u=document.createElement("div");u.classList.add("yt-emoji-fountain-view-model");u.classList.add("horizontal-container");u.classList.add(Vq0[Math.floor(Math.random()*Vq0.length)]);W?(c=document.createElement("div"),
c.classList.add("user-reaction-bubble"),c.classList.add("yt-emoji-fountain-view-model"),u.appendChild(c)):(c&&(Y.style.animationDuration=c+"ms",u.style.animationDuration=c+"ms"),Z&&(Y.style.width=Z+"px",Y.style.height=Z+"px"));G?(G=document.createElement("yt-icon"),G.polymerController.icon=y,Z&&(G.style.width=Z+"px",G.style.height=Z+"px"),y=G):y=this.emojiManager.createEmoji(D,!1);y.classList.add("yt-emoji-fountain-view-model");u.appendChild(y);Y.appendChild(u);this.emojiContainer.appendChild(Y);
Y.addEventListener("animationend",function(){Y.remove()});
var t,b;if((t=this.data)==null?0:(b=t.loggingDirectives)==null?0:b.trackingParams)W=W?_.se(183501):_.se(183500),K6M(this.data.loggingDirectives.trackingParams,W),_.NkE(W);setTimeout(function(){Y&&Y.remove()},2E3)}};
_.f.getEmojiDelayMsFromDistribution=function(y){return Math.random()*(y||1)*1E3};
_.f.getEmojiDelayMsFromTargetEps=function(y){return Math.random()*2*(1/y)*1E3};
_.f.linearInterpolateBounded=function(y,W,c,Z,G){G=Math.min(Math.max(G,y),c);return(W*(c-G)+Z*(G-y))/(c-y)};
var dD=CRn;dD.prototype.onEmojiFountainDataEntityUpdate=dD.prototype.onEmojiFountainDataEntityUpdate;dD.prototype.desktopFountainEmojiSizePxChanged=dD.prototype.desktopFountainEmojiSizePxChanged;dD.prototype.isActiveChanged=dD.prototype.isActiveChanged;_.x([_.L(),_.e("design:type",_.KB)],dD.prototype,"emojiManager",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dD.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Uo),_.e("design:type",Object)],dD.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],dD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],dD.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(y,W){return _.fq(y.entities,"emojiFountainDataEntity",W)}}),
_.e("design:type",Object)],dD.prototype,"emojiFountainData",void 0);_.x([_.L(),_.e("design:type",Boolean)],dD.prototype,"isActive",void 0);_.x([_.H("isActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dD.prototype,"isActiveChanged",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dD.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",String)],dD.prototype,"lastEmojiRequestedForTesting",void 0);
_.x([_.L({value:function(){return _.ey("desktop_fountain_emoji_size_px",20)}}),
_.e("design:type",Number)],dD.prototype,"desktopFountainEmojiSizePx",void 0);_.x([_.H("desktopFountainEmojiSizePx"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dD.prototype,"desktopFountainEmojiSizePxChanged",null);_.x([_.jj("#emoji-container"),_.e("design:type",HTMLElement)],dD.prototype,"emojiContainer",void 0);
_.x([_.H("emojiFountainData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dD.prototype,"onEmojiFountainDataEntityUpdate",null);dD=_.x([_.n6({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],dD);
_.T(dD,"yt-emoji-fountain-view-model",function(){if(PRe===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;ppf===void 0&&(ppf=document.createElement("template"));var Z=ppf;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);PRe=y}y=PRe;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var QQn;var Amf;var hln=function(){return _.v.apply(this,arguments)||this};
_.R(hln,_.v);hln.prototype.onChoiceChanged=function(){this.data&&_.wM(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
var Sh=hln;Sh.prototype.onChoiceChanged=Sh.prototype.onChoiceChanged;_.x([_.L(),_.e("design:type",Object)],Sh.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sh.prototype,"onChoiceChanged",null);Sh=_.x([_.d({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],Sh);
_.T(Sh,"yt-live-chat-banner-poll-choice",function(){if(Amf===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;QQn===void 0&&(QQn=document.createElement("template"));var Z=QQn;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Amf=y}y=Amf;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var Bsf;var Hcf;var Lp7=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_button_rework_with_live");y.small=!1;return y};
_.R(Lp7,_.v);Lp7.prototype.computeIsSmall=function(){var y;return((y=this.buttonOverrides)==null?void 0:y.size)==="S"};
Lp7.prototype.computeId=function(){return this.data&&this.data.targetId};
var To=Lp7;_.x([_.C(_.$S.YtLiveChatTooltipTargetingBehavior),_.e("design:type",Object)],To.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.e("design:type",String)],To.prototype,"id",void 0);_.x([_.L(),_.e("design:type",Object)],To.prototype,"buttonOverrides",void 0);_.x([_.L(),_.e("design:type",Object)],To.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],To.prototype,"modern",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.e("design:type",Object)],To.prototype,"small",void 0);To=_.x([_.d({disableElementRegistration:!0,is:"yt-live-chat-button"})],To);
_.T(To,"yt-live-chat-button",function(){if(Hcf===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Bsf===void 0&&(Bsf=document.createElement("template"));var Z=Bsf;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Hcf=y}y=Hcf;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var vif;var doe;var S$M=function(){var y=_.v.apply(this,arguments)||this;y.inCollapsedBanner=!1;y.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};y.questionButtonOverrides={style:"mono",type:"filled"};return y};
_.R(S$M,_.v);_.f=S$M.prototype;_.f.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]]"}}}}}};
_.f.onContextMenuButtonClick=function(y){this.ytLiveChatItemBehavior.showContextMenu(y)};
_.f.onYtRendererstamperFinished=function(){this.menuButton=_.p(this.hostElement).querySelector("#menu-button")};
_.f.dataChanged=function(){var y,W;if((W=_.g((y=this.data)==null?void 0:y.overflowMenuButton,_.RU))==null?0:W.command)this.data.contextMenuEndpoint=_.g(this.data.overflowMenuButton,_.RU).command};
_.f.onButtonClick=function(){var y,W=_.g((y=this.data)==null?void 0:y.askQuestionButton,_.RU);if(W){if(W.trackingParams&&(y=_.Dz(W.trackingParams))){var c=_.NR();c&&_.SG(c,y)}_.Z2(this.hostElement,"innertube-command",W.command)}};
var ay=S$M;ay.prototype.onYtRendererstamperFinished=ay.prototype.onYtRendererstamperFinished;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],ay.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],ay.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.L({observer:"dataChanged"}),_.e("design:type",Object)],ay.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ay.prototype,"inCollapsedBanner",void 0);_.x([_.L(),_.e("design:type",Object)],ay.prototype,"buttonOverrides",void 0);_.x([_.L(),_.e("design:type",Object)],ay.prototype,"questionButtonOverrides",void 0);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ay.prototype,"onYtRendererstamperFinished",null);
ay=_.x([_.d({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],ay);
_.T(ay,"yt-live-chat-call-for-questions-renderer",function(){if(doe===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;vif===void 0&&(vif=document.createElement("template"));var Z=vif;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);doe=y}y=doe;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var Tsf={};Tsf.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 y=this;window.requestAnimationFrame(function(){y.restoreFocusNode_||(y.restoreFocusNode_=document.activeElement);var W=_.uGi(y.hostElement);W.length&&W[W.length-1].focus()})},
isAttachedChanged_:function(y,W){y?this.focusChild_():W&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(y){this.hidden||_.Aq(y).indexOf(this.hostElement)!==-1||(y.stopPropagation(),this.focusChild_())}};var aG3;var xof;var icf=function(){return _.v.apply(this,arguments)||this};
_.R(icf,_.v);icf.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
icf.prototype.onClick=function(y){y.target!==this.confirmButton&&y.target!==this.cancelButton&&(this.hidden=!0)};
var xw=icf;_.x([_.jj("#confirm_button"),_.e("design:type",Object)],xw.prototype,"confirmButton",void 0);_.x([_.jj("#cancel_button"),_.e("design:type",Object)],xw.prototype,"cancelButton",void 0);_.x([_.L(),_.e("design:type",Mq0)],xw.prototype,"data",void 0);_.x([_.L({value:!0,reflectToAttribute:!0}),_.e("design:type",Boolean)],xw.prototype,"hidden",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(Tsf.YtLiveChatDialogBehavior),_.e("design:type",Object)],xw.prototype,"ytLiveChatDialogBehavior",void 0);xw=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],xw);
var Mq0=_.T(xw,"yt-live-chat-dialog-renderer",function(){if(xof===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;aG3===void 0&&(aG3=document.createElement("template"));var Z=aG3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);xof=y}y=xof;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var el7;var wp3,q$X=function(){if(wp3!==void 0)return wp3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;el7===void 0&&(el7=document.createElement("template"));var Z=el7;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return wp3=y};var ktQ;var jf3;var ySM=function(){var y=_.v.apply(this,arguments)||this;y.tooltip=null;y.data=null;y.id="";y.active=!1;y.icon="";y.disabled=!1;y.showTooltip=!1;y.useToggledActiveState=!0;y.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return y};
_.R(ySM,_.v);_.f=ySM.prototype;
_.f.dataChanged=function(){var y;((y=this.data)==null?0:y.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,_.ed)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var W;if((W=this.data)==null?0:W.disabled)this.disabled=!0};
_.f.computeId=function(y){return y};
_.f.computeIcon=function(y,W){if(!y)return"";if(this.useToggledActiveState)return"yt-icons:"+y.toLowerCase();var c,Z;return W&&((c=this.data)==null?0:(Z=c.toggledIcon)==null?0:Z.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+y.toLowerCase()};
_.f.logPDGEntryPoint=function(){_.uKH(_.cK("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")};
_.f.immediatelyShowTooltip=function(){var y=_.p(this.hostElement).querySelector("#tooltip");y.animationDelay=0;y.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};y.show()};
_.f.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.f.onClick=function(y){var W;((W=this.data)==null?0:W.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),y.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Z2(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.f.computeShowTooltip=function(y,W){return!!(y&&y.tooltip&&W)};
_.f.maybeUpdateTooltipText=function(){var y=this,W;if((W=this.data)==null?0:W.tooltip){var c=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.ed)(y.tooltip).textContent=c},250)}};
_.f.handleLiveChatActions=function(y){var W=this;y.length&&(this.id!=="creator"&&this.id!=="product-picker"||y.forEach(function(c){(c=W.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",c))&&c.durationSec===c.fullDurationSec&&W.startBubble(W.colorFromDecimal(c.startBackgroundColor))}))};
_.f.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.f.startBubble=function(y){_.wM(this.hostElement,{"--yt-live-chat-monetization-button-glow":y});this.hostElement.setAttribute("bubble","")};
_.f.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.f.colorFromDecimal=function(y){typeof y==="string"&&(y=Number(y));return"rgba("+[y>>16&255,y>>8&255,y&255,(y>>24&255)/255].join()+")"};
var iw=ySM;iw.prototype.onAnimationEnd=iw.prototype.onAnimationEnd;iw.prototype.disabledChanged=iw.prototype.disabledChanged;iw.prototype.dataChanged=iw.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],iw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.$S.YtLiveChatTooltipTargetingBehavior),_.e("design:type",Object)],iw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iw.prototype,"data",void 0);_.x([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.e("design:type",Object)],iw.prototype,"id",void 0);_.x([_.L({notify:!0,reflectToAttribute:!0}),_.e("design:type",Object)],iw.prototype,"active",void 0);
_.x([_.L({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.e("design:type",Object)],iw.prototype,"icon",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iw.prototype,"disabled",void 0);_.x([_.L({computed:"computeShowTooltip(data, disabled)"}),_.e("design:type",Object)],iw.prototype,"showTooltip",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iw.prototype,"useToggledActiveState",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iw.prototype,"dataChanged",null);_.x([_.H("disabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iw.prototype,"disabledChanged",null);_.x([_.B("animationend"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],iw.prototype,"onAnimationEnd",null);
iw=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],iw);
_.T(iw,"yt-live-chat-icon-toggle-button-renderer",function(){if(jf3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;ktQ===void 0&&(ktQ=document.createElement("template"));var Z=ktQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);jf3=y}y=jf3;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var WVf;var cSX;var ZP7=function(){return _.v.apply(this,arguments)||this};
_.R(ZP7,_.v);ZP7.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var GaQ=ZP7;_.x([_.L(),_.e("design:type",Object)],GaQ.prototype,"data",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],GaQ.prototype,"ytRendererstamperBehavior",void 0);GaQ=_.x([_.d({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],GaQ);
_.T(GaQ,"yt-live-chat-message-input-prompt-header-renderer",function(){if(cSX===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;WVf===void 0&&(WVf=document.createElement("template"));var Z=WVf;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);cSX=y}y=cSX;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var f_F;var oyM;var Dg$;var z9M;var YbX;var mgM;var sfX=function(){return _.v.apply(this,arguments)||this};
_.R(sfX,_.v);var uFX=sfX;_.x([_.L(),_.e("design:type",Object)],uFX.prototype,"data",void 0);uFX=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],uFX);
_.T(uFX,"yt-live-chat-message-subtext-renderer",function(){if(mgM===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;YbX===void 0&&(YbX=document.createElement("template"));var Z=YbX;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);mgM=y}y=mgM;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var tLF=function(){var y=_.v.apply(this,arguments)||this;y.subtextOnBottom=!1;y.buttonOverrides={style:"mono",type:"tonal"};return y};
_.R(tLF,_.v);tLF.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"}}}};
var Mx=tLF;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Mx.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Mx.prototype,"subtextOnBottom",void 0);_.x([_.L(),_.e("design:type",Object)],Mx.prototype,"buttonOverrides",void 0);
Mx=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Mx);
_.T(Mx,"yt-live-chat-message-renderer",function(){if(z9M===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Dg$===void 0&&(Dg$=document.createElement("template"));var Z=Dg$;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);z9M=y}y=z9M;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var ny3;var Xu7;var bPf=function(){var y=_.v.apply(this,arguments)||this;y.isRemovable=!1;y.hasPrefilledText=!1;y.isInputDirty=!1;y.overCharacterLimit=!1;y.underCharacterLimit=!1;y.showErrorMessage=!1;return y};
_.R(bPf,_.v);_.f=bPf.prototype;_.f.computeId=function(){return this.data.id};
_.f.computeInputData=function(){return this.data.inputData};
_.f.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.f.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.f.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.f.getLiveChatRichMessageInput=function(){return _.p(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.f.clearInput=function(){_.p(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.f.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.f.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.f.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.f.handleTextInputCharCountChanged=function(y){y=y.detail&&y.detail.characterCount;y!==void 0&&(this.characterCount=y,y!==0&&(this.isInputDirty=!0))};
_.f.onInputFocusOut=function(){this.isInputDirty=!0};
_.f.onClickCloseButton=function(){_.Z2(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
var eh=bPf;eh.prototype.handleTextInputCharCountChanged=eh.prototype.handleTextInputCharCountChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],eh.prototype,"data",void 0);_.x([_.L({computed:"computeId(data.id)"}),_.e("design:type",String)],eh.prototype,"id",void 0);_.x([_.L({computed:"computeInputData(data.inputData)"}),_.e("design:type",Object)],eh.prototype,"inputData",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.e("design:type",Object)],eh.prototype,"isRemovable",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.e("design:type",Object)],eh.prototype,"hasPrefilledText",void 0);_.x([_.L({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.e("design:type",Number)],eh.prototype,"charactersRemaining",void 0);
_.x([_.L(),_.e("design:type",Number)],eh.prototype,"characterCount",void 0);_.x([_.L(),_.e("design:type",Object)],eh.prototype,"isInputDirty",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.e("design:type",Object)],eh.prototype,"overCharacterLimit",void 0);_.x([_.L({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.e("design:type",Object)],eh.prototype,"underCharacterLimit",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.e("design:type",Object)],eh.prototype,"showErrorMessage",void 0);_.x([_.B("yt-live-chat-text-input-field-renderer-character-count-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],eh.prototype,"handleTextInputCharCountChanged",null);
eh=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],eh);
_.T(eh,"yt-live-chat-poll-editor-input",function(){if(Xu7===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;ny3===void 0&&(ny3=document.createElement("template"));var Z=ny3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Xu7=y}y=Xu7;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var rSM;var FVQ;var UgX={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},$g$=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_button_rework_with_live");y.closeButtonOverrides={iconPosition:"icon-only"};y.startButtonOverrides={style:"mono",type:"filled"};y.addOptionButtonOverrides={style:"mono",type:"text"};return y};
_.R($g$,_.v);_.f=$g$.prototype;
_.f.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"}}}}};
_.f.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var y;_.g((y=this.data)==null?void 0:y.startButton,_.RU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.f.computeId=function(){return this.data&&this.data.id||""};
_.f.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.f.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.f.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.f.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.f.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var y=0;y<this.pollEditorInfoWithDefaults.minPollOptions;y++)this.addPollOptionData()};
_.f.getIsValidPoll=function(){var y=this;if(!this.pollEditorInfoWithDefaults)return!1;var W=this.pollEditorInfoWithDefaults,c=W.minPollOptionChars,Z=W.maxPollOptionChars,G=W.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>W.maxPollQuestionChars)return!1;W=_.p(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(W).every(function(D,Y){D=D.characterCount;!D&&G[Y]&&(D=y.ytRendererBehavior.getSimpleString(G[Y]).length);return D!==void 0&&D>=c&&D<=Z})};
_.f.isValidPollChanged=function(){var y;_.g((y=this.data)==null?void 0:y.startButton,_.RU)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.f.addPollOptionData=function(){var y=this.pollEditorInfoWithDefaults,W=y.maxPollOptionChars,c=y.optionPlaceholderText,Z=y.customOptionPlaceholderText,G=y.pollOptionData;this.currentNumPollOptions>=y.maxPollOptions||(y={liveChatPollOptionInput:{inputData:{placeholder:Z[this.currentNumPollOptions]||c,maxCharacterLimit:W},maxCharacterLimit:W,minCharacterLimit:y.minPollOptionChars,hasPrefilledText:!!Z[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=y.minPollOptions}},G.charCountErrorText&&
(y.liveChatPollOptionInput.charCountErrorText=G.charCountErrorText),G.charsRemainingAltLabel&&(y.liveChatPollOptionInput.charsRemainingAltLabel=G.charsRemainingAltLabel),G.removeOptionAltText&&(y.liveChatPollOptionInput.removeOptionAltText=G.removeOptionAltText),this.push("pollOptionsData",y),G=Array.from(_.p(_.p(this.hostElement).querySelector("#poll-options")).children),G.forEach(function(D,Y){D.polymerController.set("data.id",Y)}),_.p(G[G.length-1]).querySelector("#input").focus())};
_.f.getPollOptionInputValues=function(){var y=this,W=[],c=_.p(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Z=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(c).forEach(function(G,D){var Y=null;G=G.getLiveChatRichMessageInput();var u;(G==null?0:(u=G.textSegments)==null?0:u.length)?Y=_.gI(G):Z[D]&&(Y=y.formattedStringToLiveChatRichMessageInput(Z[D]));W.push(Y)});
return W};
_.f.requestCreateAndStartPoll=function(y){var W=this.getPollOptionInputValues();if(!W.some(function(Z){return!Z})){W={optionText:W};
var c=_.p(_.p(this.hostElement).querySelector("#poll-question")).firstChild;c&&c.liveChatRichMessageInput&&(W.questionText=_.gI(c.liveChatRichMessageInput));_.D2(this.hostElement,[y,W])}};
_.f.selectedChanged=function(){if(this.selected){var y=_.p(_.p(this.hostElement).querySelector("#start-button")).firstElementChild;if(y){var W;(W=_.p(y).querySelector("#button")||_.x$(y).querySelector("button"))==null||W.focus()}}};
_.f.handleTextInputChanged=function(y){var W;((W=y.target)==null?void 0:W.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=y.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.f.handleStartButtonAction=function(y){y.detail.actionName==="yt-service-request"&&(y.stopPropagation(),(y=y.detail.args[1])&&this.requestCreateAndStartPoll(y))};
_.f.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.f.handleServiceRequestCompleted=function(y){this.createPollRequestInFlight=!1;(y=y.detail&&y.detail.data)&&y.success&&(_.Z2(this.hostElement,"picker-cancelled"),_.GG(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.f.onCloseClick=function(){_.Z2(this.hostElement,"picker-cancelled");_.GG(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.f.handlePollEditorInputClosed=function(y){var W=this.pollOptionsData.findIndex(function(c){return c.liveChatPollOptionInput.id===y.detail.id});
this.splice("pollOptionsData",W,1);this.isValidPoll=this.getIsValidPoll()};
_.f.onPickerCancelled=function(){this.reset()};
_.f.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var y=_.p(_.p(this.hostElement).querySelector("#poll-question")).firstChild;y&&y.setLiveChatRichMessageInput(null);if(y=_.p(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){y=_.z(Array.from(y));for(var W=y.next();!W.done;W=y.next())W.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.f.formattedStringToLiveChatRichMessageInput=function(y){return y.simpleText?{text_segments:[y.simpleText]}:{text_segments:y.runs}};
_.dJ.Object.defineProperties($g$.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(UgX,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
var wD=$g$;wD.prototype.onPickerCancelled=wD.prototype.onPickerCancelled;wD.prototype.handlePollEditorInputClosed=wD.prototype.handlePollEditorInputClosed;wD.prototype.handleServiceRequestCompleted=wD.prototype.handleServiceRequestCompleted;wD.prototype.handleServiceRequestSent=wD.prototype.handleServiceRequestSent;wD.prototype.handleTextInputChanged=wD.prototype.handleTextInputChanged;wD.prototype.selectedChanged=wD.prototype.selectedChanged;wD.prototype.isValidPollChanged=wD.prototype.isValidPollChanged;
wD.prototype.shouldInitializePollChanged=wD.prototype.shouldInitializePollChanged;wD.prototype.dataChanged=wD.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wD.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],wD.prototype,"modern",void 0);
_.x([_.L(),_.e("design:type",Object)],wD.prototype,"closeButtonOverrides",void 0);_.x([_.L(),_.e("design:type",Object)],wD.prototype,"startButtonOverrides",void 0);_.x([_.L(),_.e("design:type",Object)],wD.prototype,"addOptionButtonOverrides",void 0);_.x([_.L({computed:"computeId(data.id)",reflectToAttribute:!0}),_.e("design:type",String)],wD.prototype,"id",void 0);_.x([_.L({value:function(){return[]}}),
_.e("design:type",Array)],wD.prototype,"pollOptionsData",void 0);_.x([_.A("pollEditorInfoWithDefaults"),_.e("design:type",Object),_.e("design:paramtypes",[])],wD.prototype,"pollQuestionData",null);_.x([_.L({value:0}),_.e("design:type",Number)],wD.prototype,"pollQuestionCharacterCount",void 0);_.x([_.A("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.e("design:type",Object),_.e("design:paramtypes",[])],wD.prototype,"pollQuestionCharactersRemaining",null);
_.x([_.L({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.e("design:type",Boolean)],wD.prototype,"overQuestionCharacterLimit",void 0);_.x([_.A("data.pollEditorInfo"),_.e("design:type",Object),_.e("design:paramtypes",[])],wD.prototype,"pollEditorInfoWithDefaults",null);_.x([_.L({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.e("design:type",Number)],wD.prototype,"currentNumPollOptions",void 0);
_.x([_.L({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.e("design:type",Boolean)],wD.prototype,"hasMaxNumPollOptions",void 0);_.x([_.A("pollEditorInfoWithDefaults","pollOptionsData"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],wD.prototype,"shouldInitializePoll",null);_.x([_.L(),_.e("design:type",Object)],wD.prototype,"isValidPoll",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],wD.prototype,"createPollRequestInFlight",void 0);_.x([_.L(),_.e("design:type",Object)],wD.prototype,"selected",void 0);_.x([_.L({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.e("design:type",Boolean)],wD.prototype,"showQuestionErrorMessage",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wD.prototype,"dataChanged",null);_.x([_.H("shouldInitializePoll"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wD.prototype,"shouldInitializePollChanged",null);_.x([_.H("isValidPoll"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wD.prototype,"isValidPollChanged",null);
_.x([_.H("selected"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wD.prototype,"selectedChanged",null);_.x([_.B("yt-live-chat-text-input-field-renderer-character-count-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],wD.prototype,"handleTextInputChanged",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wD.prototype,"handleServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],wD.prototype,"handleServiceRequestCompleted",null);
_.x([_.B("yt-live-chat-poll-editor-input-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],wD.prototype,"handlePollEditorInputClosed",null);_.x([_.B("picker-cancelled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wD.prototype,"onPickerCancelled",null);wD=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],wD);
_.T(wD,"yt-live-chat-poll-editor-panel-renderer",function(){if(FVQ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;rSM===void 0&&(rSM=document.createElement("template"));var Z=rSM;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);FVQ=y}y=FVQ;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var KV7;var OPX;var gy3=function(){return _.v.apply(this,arguments)||this};
_.R(gy3,_.v);gy3.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
gy3.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.dJ.Object.defineProperties(gy3.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var y,W;return(y=this.data)==null?void 0:(W=y.title)==null?void 0:W.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var y;return _.UH((y=this.data)==null?void 0:y.onTapCommand)}}});
var qx=gy3;_.x([_.C(_.wU.YtEndpointBehavior),_.e("design:type",Object)],qx.prototype,"ytEndpointBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qx.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],qx.prototype,"itemId",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qx.prototype,"hasPromotion",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],qx.prototype,"innertubeCommand",null);qx=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],qx);
_.T(qx,"yt-live-chat-product-picker-panel-item-view-model",function(){if(OPX===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;KV7===void 0&&(KV7=document.createElement("template"));var Z=KV7;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);OPX=y}y=OPX;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var R9f;var l_X;var EyX=function(){var y=_.v.apply(this,arguments)||this;y.id="product-picker";y.selected=!1;y.closeButtonId="close-button";y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return y};
_.R(EyX,_.v);_.f=EyX.prototype;_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.f.observeSelected=function(){this.selected&&this.hostElement.focus();var y=_.p(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");y.length&&y[0].focus()};
_.f.onCloseBuyFlow=function(){_.Z2(this.hostElement,"picker-cancelled")};
_.f.onCloseClick=function(){_.Z2(this.hostElement,"picker-cancelled");var y;((y=this.data)==null?0:y.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.closeButton,_.ri))};
_.f.onCloseEngageWithAudienceEditorPanels=function(){_.Z2(this.hostElement,"picker-cancelled")};
var kw=EyX;kw.prototype.observeSelected=kw.prototype.observeSelected;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],kw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kw.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kw.prototype,"id",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kw.prototype,"selected",void 0);_.x([_.L(),_.e("design:type",Object)],kw.prototype,"closeButtonId",void 0);_.x([_.H("selected"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],kw.prototype,"observeSelected",null);
kw=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],kw);
_.T(kw,"yt-live-chat-product-picker-panel-view-model",function(){if(l_X===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;R9f===void 0&&(R9f=document.createElement("template"));var Z=R9f;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);l_X=y}y=l_X;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var NQn;var I_3;var pu7=function(){var y=_.v.apply(this,arguments)||this;y.iconId="";y.icon="";y.disabled=!1;y.systemIcons=_.O("kevlar_system_icons");return y};
_.R(pu7,_.v);_.f=pu7.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.f.computeIconId=function(y){return y&&y.icon&&y.icon.iconType?y.icon.iconType.toLowerCase():""};
_.f.computeIcon=function(y){return y&&y.icon&&y.icon.iconType?(y=y.icon.iconType.toLowerCase(),(y.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+y):""};
_.f.computeDisabled=function(y){return!!y};
_.f.computeCommand=function(y,W){return W?void 0:y};
_.f.computeTooltip=function(y,W){return W&&y?y:""};
_.f.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
var jE=pu7;_.x([_.C(_.wU.YtEndpointBehavior),_.e("design:type",Object)],jE.prototype,"ytEndpointBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jE.prototype,"data",void 0);_.x([_.L({computed:"computeIconId(data)",reflectToAttribute:!0}),_.e("design:type",Object)],jE.prototype,"iconId",void 0);
_.x([_.L({computed:"computeIcon(data)",reflectToAttribute:!0}),_.e("design:type",Object)],jE.prototype,"icon",void 0);_.x([_.L({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.e("design:type",Object)],jE.prototype,"disabled",void 0);_.x([_.L({computed:"computeCommand(data.command, disabled)"}),_.e("design:type",Object)],jE.prototype,"command",void 0);_.x([_.L({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.e("design:type",String)],jE.prototype,"tooltip",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],jE.prototype,"systemIcons",void 0);jE=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],jE);
_.T(jE,"yt-live-chat-product-button-renderer",function(){if(I_3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;NQn===void 0&&(NQn=document.createElement("template"));var Z=NQn;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);I_3=y}y=I_3;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var PGF;var JSf;var VL0=function(){var y=_.v.apply(this,arguments)||this;y.selected=!1;y.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return y};
_.R(VL0,_.v);_.f=VL0.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.computeId=function(y){return y.id||""};
_.f.onCloseClick=function(){_.Z2(this.hostElement,"picker-cancelled")};
_.f.observeSelected=function(){this.selected&&this.hostElement.focus();var y=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");y.length&&y[0].focus()};
_.f.onCloseBuyFlow=function(){_.Z2(this.hostElement,"picker-cancelled")};
_.f.onCloseEngageWithAudienceEditorPanels=function(){_.Z2(this.hostElement,"picker-cancelled")};
var yX=VL0;yX.prototype.observeSelected=yX.prototype.observeSelected;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],yX.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yX.prototype,"data",void 0);
_.x([_.L({computed:"computeId(data)",reflectToAttribute:!0}),_.e("design:type",String)],yX.prototype,"id",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yX.prototype,"selected",void 0);_.x([_.H("selected"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yX.prototype,"observeSelected",null);yX=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],yX);
_.T(yX,"yt-live-chat-product-picker-renderer",function(){if(JSf===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;PGF===void 0&&(PGF=document.createElement("template"));var Z=PGF;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);JSf=y}y=JSf;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var CGe;var Qf3;var ASF;var h9X;var BQ3=function(){return _.v.apply(this,arguments)||this};
_.R(BQ3,_.v);BQ3.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()};
BQ3.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
BQ3.prototype.created=function(){this.ids={background:_.uY(),maskOne:_.uY(),maskTwo:_.uY(),gradient:_.uY(),largeBackground:_.uY(),largeGradientOne:_.uY(),largeGradientTwo:_.uY(),largeGradientPath:_.uY()}};
var Wq=BQ3;Wq.prototype.maybeLoadAnimationBackground=Wq.prototype.maybeLoadAnimationBackground;_.x([_.L({value:!1}),_.e("design:type",Boolean)],Wq.prototype,"useLargeBackground",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Wq.prototype,"useAnimationBackground",void 0);_.x([_.L({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.e("design:type",Boolean)],Wq.prototype,"useRegularBackground",void 0);
_.x([_.L(),_.e("design:type",Object)],Wq.prototype,"ids",void 0);_.x([_.L(),_.e("design:type",Object)],Wq.prototype,"lottieAnimation",void 0);_.x([_.jj("#animation-background"),_.e("design:type",HTMLDivElement)],Wq.prototype,"animationBackground",void 0);_.x([_.H("useAnimationBackground"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Wq.prototype,"maybeLoadAnimationBackground",null);
Wq=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Wq);
_.T(Wq,"yt-live-interactivity-component-background",function(){if(h9X===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;ASF===void 0&&(ASF=document.createElement("template"));var Z=ASF;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);h9X=y}y=h9X;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var HPe=function(){var y=_.v.apply(this,arguments)||this;y.characterCount=0;y.showInputErrorMessage=!1;y.startQnaRequestInFlight=!1;y.modern=_.O("web_button_rework_with_live");y.buttonOverrides={style:"mono",type:"filled"};y.closeButtonOverrides={iconPosition:"icon-only"};y.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return y};
_.R(HPe,_.v);_.f=HPe.prototype;
_.f.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]]"}}}}}};
_.f.onCharacterCountChanged=function(y){var W,c,Z,G,D=(c=_.g(this==null?void 0:(W=this.data)==null?void 0:W.creatorCallForQuestions,if$))==null?void 0:(Z=c.inputField)==null?void 0:(G=Z.liveChatTextInputFieldRenderer)==null?void 0:G.maxCharacterLimit,Y,u;D!=null&&(y==null?void 0:(Y=y.detail)==null?void 0:Y.characterCount)!=null&&_.g(this==null?void 0:(u=this.data)==null?void 0:u.startButton,_.RU)&&(W=y.detail.characterCount>D,this.set("data.startButton.buttonRenderer.isDisabled",y.detail.characterCount===
0||W),this.showInputErrorMessage=W)};
_.f.onCloseClick=function(){_.Z2(this.hostElement,"picker-cancelled");_.GG(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.onPickerCancelled=function(){var y=_.p(this.hostElement).querySelector("#qna-creator-text-input-field");y&&y.setLiveChatRichMessageInput(null)};
_.f.handleOpenQnaStartPanel=function(){var y=_.p(this.hostElement).querySelector("#qna-creator-text-input-field");y&&y.focus()};
_.f.handleStartButtonAction=function(y){var W=this;if(y.detail.actionName==="yt-service-request"&&(y.stopPropagation(),y=y.detail.args[1])){var c=_.p(this.hostElement).querySelector("#qna-creator-text-input-field"),Z;(c==null?0:(Z=c.liveChatRichMessageInput)==null?0:Z.textSegments)&&c.liveChatRichMessageInput.textSegments.length!==0&&(Z={rich_message:_.gI(c.liveChatRichMessageInput)},_.D2(this.hostElement,[y,Z]).then(function(){_.Z2(W.hostElement,"picker-cancelled")}))}};
_.f.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.f.handleServiceRequestCompleted=function(y){var W;y=y==null?void 0:(W=y.detail)==null?void 0:W.data;(y==null?0:y.actions)&&y.actions.length>0?this.startQnaRequestInFlight=!1:_.GG(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
var cq=HPe;cq.prototype.handleServiceRequestError=cq.prototype.handleServiceRequestError;cq.prototype.handleServiceRequestCompleted=cq.prototype.handleServiceRequestCompleted;cq.prototype.handleServiceRequestSent=cq.prototype.handleServiceRequestSent;cq.prototype.onPickerCancelled=cq.prototype.onPickerCancelled;cq.prototype.onCharacterCountChanged=cq.prototype.onCharacterCountChanged;_.x([_.L(),_.e("design:type",Object)],cq.prototype,"characterCount",void 0);
_.x([_.L(),_.e("design:type",Object)],cq.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],cq.prototype,"showInputErrorMessage",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],cq.prototype,"startQnaRequestInFlight",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],cq.prototype,"modern",void 0);_.x([_.L(),_.e("design:type",Object)],cq.prototype,"buttonOverrides",void 0);
_.x([_.L(),_.e("design:type",Object)],cq.prototype,"closeButtonOverrides",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],cq.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.C(_.lu.YtLiveChatItemBehavior),_.e("design:type",_.Es)],cq.prototype,"ytLiveChatItemBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],cq.prototype,"ytActionHandlerBehavior",void 0);_.x([_.B("yt-live-chat-text-input-field-renderer-character-count-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],cq.prototype,"onCharacterCountChanged",null);_.x([_.B("picker-cancelled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cq.prototype,"onPickerCancelled",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cq.prototype,"handleServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],cq.prototype,"handleServiceRequestCompleted",null);
_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],cq.prototype,"handleServiceRequestError",null);cq=_.x([_.d({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],cq);
_.T(cq,"yt-live-chat-qna-start-panel-renderer",function(){if(Qf3===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;CGe===void 0&&(CGe=document.createElement("template"));var Z=CGe;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Qf3=y}y=Qf3;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var LVM;var vy0;var dg3=function(){return _.v.apply(this,arguments)||this};
_.R(dg3,_.v);dg3.prototype.dismiss=function(){_.Z2(this.hostElement,"yt-live-chat-error-message-dismiss")};
dg3.prototype.edit=function(){_.Z2(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
var Sb3=dg3;_.x([_.L(),_.e("design:type",Object)],Sb3.prototype,"data",void 0);Sb3=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Sb3);
_.T(Sb3,"yt-live-chat-text-actions-error-message-renderer",function(){if(vy0===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;LVM===void 0&&(LVM=document.createElement("template"));var Z=LVM;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);vy0=y}y=vy0;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var TQ0;var a_7;var xgX;var iPf;var Zb=function(){var y=_.v.apply(this,arguments)||this;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.newnessDotEligible=!1;return y};
_.R(Zb,_.v);Zb.prototype.sendReaction=function(){var y,W,c=((y=this.data)==null?void 0:y.emojiId)||((W=this.data)==null?void 0:W.emoteId),Z;c&&((Z=this.data)==null?0:Z.shouldTriggerAnimation)&&_.GG(this.hostElement,"yt-create-user-reaction-animation",[c]);var G;(y=_.UH((G=this.data)==null?void 0:G.onTap))&&_.jl(y,this.hostElement);this.showNewnessDot&&_.GG(this.hostElement,"yt-hide-newness-dot")};
Zb.prototype.onClick=function(y){(!y||y.clientX||y.clientY)&&this.sendReaction()};
Zb.prototype.onKeyDown=function(y){y.key!=="Enter"&&y.key!==" "||y.repeat||this.sendReaction()};
_.dJ.Object.defineProperties(Zb.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!(((y=this.data)==null?0:y.emojiId)||((W=this.data)==null?0:W.emoteId))}}});
var GL=Zb;_.x([_.L(),_.e("design:type",Object)],GL.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GL.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",Object)],GL.prototype,"newnessDotEligible",void 0);_.x([_.A("data.maybeShowNewnessDot"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],GL.prototype,"showNewnessDot",null);
_.x([_.A("data.emojiId","data.emoteId"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],GL.prototype,"useYtImage",null);GL=_.x([_.n6({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],GL);
_.T(GL,"yt-reaction-control-panel-button-view-model",function(){if(iPf===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;xgX===void 0&&(xgX=document.createElement("template"));var Z=xgX;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);iPf=y}y=iPf;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var MLe;var e9f;var wuF=function(){var y=_.v.apply(this,arguments)||this;y.reactionControlPanelExpanded=!1;y.isDarkTheme=document.documentElement.hasAttribute("dark");y.newnessDotEligible=!1;return y};
_.R(wuF,_.v);_.f=wuF.prototype;_.f.expandedButtonsChanged=function(){var y,W;_.wM(this.hostElement,{"--expanded-buttons-height":((W=(y=this.expandedButtonsData)==null?void 0:y.length)!=null?W:0)*36+"px"})};
_.f.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}}};
_.f.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.f.onMouseLeave=function(){var y=this;this.collapseTimer=setTimeout(function(){y.reactionControlPanelExpanded=!1},500)};
_.f.onFocusIn=function(){this.onMouseEnter()};
_.f.onFocusOut=function(){this.onMouseLeave()};
_.f.onCollapsedButtonFocusIn=function(){var y=this;setTimeout(function(){var W;(W=y.expandedButtons.querySelector("button"))==null||W.focus()},100)};
_.f.onCollapsedButtonFocusOut=function(y){y.stopPropagation()};
_.dJ.Object.defineProperties(wuF.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var y,W;return _.Eb.unsafeClone((y=this.liveReactionsData)==null?void 0:y.emojiButtonData)||((W=this.data)==null?void 0:W.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var y;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((y=this.data)==null||!y.maybeShowNewnessDot)}}});
var ft=wuF;ft.prototype.expandedButtonsChanged=ft.prototype.expandedButtonsChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],ft.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ft.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ft.prototype,"reactionControlPanelExpanded",void 0);_.x([_.L({selectorArgs:["data.liveReactionsDataEntityKey"],selector:UH0}),_.e("design:type",Object)],ft.prototype,"liveReactionsData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ft.prototype,"isDarkTheme",void 0);_.x([_.L(),_.e("design:type",Object)],ft.prototype,"newnessDotEligible",void 0);
_.x([_.A("liveReactionsData","data.expandedButtons"),_.e("design:type",Object),_.e("design:paramtypes",[])],ft.prototype,"expandedButtonsData",null);_.x([_.A("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.L({reflectToAttribute:!0}),_.e("design:type",Object),_.e("design:paramtypes",[])],ft.prototype,"showNewnessDot",null);_.x([_.jj("#expanded-buttons"),_.e("design:type",HTMLElement)],ft.prototype,"expandedButtons",void 0);
_.x([_.H("expandedButtonsData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ft.prototype,"expandedButtonsChanged",null);ft=_.x([_.n6({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],ft);
_.T(ft,"yt-reaction-control-panel-view-model",function(){if(e9f===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;MLe===void 0&&(MLe=document.createElement("template"));var Z=MLe;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);e9f=y}y=e9f;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var oo=new _.EW("yt-live-chat"),qb$=Date.parse("2024-7-24"),kan=function(){var y=_.v.apply(this,arguments)||this;y.emojiManager=_.RZ;y.newnessDotEligible=!1;y.newnessDotImpressionCounted=!1;y.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return y};
_.R(kan,_.v);_.f=kan.prototype;_.f.emojiCustomizationEnabledChanged=function(){var y;((y=this.data)==null?0:y.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((y=oo.getCreationTime("emoji-customization-count"))&&y<qb$&&oo.set("emoji-customization-count","0"),y=Number(oo.get("emoji-customization-count"))||0,y<3&&(this.newnessDotEligible=!0,oo.set("emoji-customization-count",(y+1).toString())),this.newnessDotImpressionCounted=!0)};
_.f.hideNewnessDot=function(){this.newnessDotEligible=!1;oo.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.f.handleReactionsMute=function(y){var W=_.NR(),c=_.se(206221),Z={checkboxData:{state:y?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};W&&_.SG(W,c,Z);this.reactionsMuted=y};
_.f.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.f.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}}};
_.dJ.Object.defineProperties(kan.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var y;return(!((y=this.liveReactionsData)==null||!y.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
var Db=kan;Db.prototype.liveReactionsSettingChanged=Db.prototype.liveReactionsSettingChanged;Db.prototype.emojiCustomizationEnabledChanged=Db.prototype.emojiCustomizationEnabledChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Uo),_.e("design:type",Object)],Db.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Db.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Db.prototype,"data",void 0);_.x([_.L(),_.e("design:type",_.KB)],Db.prototype,"emojiManager",void 0);_.x([_.L(),_.e("design:type",Object)],Db.prototype,"newnessDotEligible",void 0);_.x([_.L(),_.e("design:type",Object)],Db.prototype,"newnessDotImpressionCounted",void 0);
_.x([_.L({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:$Hf}),_.e("design:type",Boolean)],Db.prototype,"liveReactionsSetting",void 0);_.x([_.L({selectorArgs:["data.liveReactionsDataEntityKey"],selector:UH0}),_.e("design:type",Object)],Db.prototype,"liveReactionsData",void 0);_.x([_.L({value:function(){var y=_.O("enable_lwe_web_mute"),W=oo.get("allow-reactions");return W===void 0?!1:!W&&y}}),
_.e("design:type",Boolean)],Db.prototype,"reactionsMuted",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Db.prototype,"liveReactionsEnabled",null);_.x([_.H("data.emojiCustomizationEnabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Db.prototype,"emojiCustomizationEnabledChanged",null);
_.x([_.H("liveReactionsEnabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Db.prototype,"liveReactionsSettingChanged",null);Db=_.x([_.n6({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Db);
_.T(Db,"yt-reaction-control-panel-overlay-view-model",function(){if(a_7===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;TQ0===void 0&&(TQ0=document.createElement("template"));var Z=TQ0;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);a_7=y}y=a_7;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var jeF={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(y){var W=this.$.pickers.selected;if(W){_.p(this.hostElement).removeAttribute(W+"-open");var c="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(c="#picker-buttons",W==="emoji"&&_.p(this.hostElement).querySelector("#emoji-picker-button")&&(c="#emoji-picker-button"));if(c=_.p(this.hostElement).querySelector(c).querySelector("#"+W))c.active=!1}c=y;W==y&&(c=null);W!=y&&
_.p(this.hostElement).setAttribute(y+"-open","");this.$.pickers.selected=c;_.GG(this.hostElement,"yt-live-chat-picker-changed",[c])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var yof=function(){var y=_.v.apply(this,arguments)||this;y.numSentMessages=0;y.timeoutDurationMs=0;y.timeoutMs=0;y.lastTimeoutTimeMs=0;y.pendingMessageId="";y.hasFiredInitialFocusActions=!1;y.isBeforeFocusEnabled=!0;y.id="";y.characterCount=0;y.maxCharacterLimit=0;y.remainingCharacterCount=0;y.inputExpanded=!1;y.buttonOverrides={iconPosition:"icon-only"};y.inReplyPanel=!1;y.countdownRatio=0;y.isTooltipVisible=!1;y.tooltipTimeout=1E4;y.systemIcons=_.O("kevlar_system_icons");y.tallerEmojiPicker=_.O("live_chat_taller_emoji_picker");
y.blockSendMessageWithCountdown=!_.O("live_chat_enable_send_button_in_slow_mode");y.sendReplyMessageInFlight=!1;y.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"};y.onResize=function(){y.maybeToggleCharacterCount()};
return y};
_.R(yof,_.v);_.f=yof.prototype;
_.f.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"}}}};
_.f.attached=function(){window.addEventListener("resize",this.onResize)};
_.f.detached=function(){window.removeEventListener("resize",this.onResize)};
_.f.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.f.sendMessage=function(){var y=this,W,c,Z,G;return _.m(function(D){if(y.sendDisabled)return D.return();y.isTooltipVisible&&_.GG(y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(y.data.sendButton&&y.data.sendButton.buttonRenderer){y.input.completeEmojis();W=y.data.sendButton.buttonRenderer.serviceEndpoint;if(!W)return D.return();Z=((c=_.g(W,_.fNW))==null?void 0:c.clientIdPrefix)||"";G={client_message_id:Z+String(y.numSentMessages++),rich_message:_.gI(y.input.liveChatRichMessageInput)};
y.pendingMessageId=G.client_message_id;y.inReplyPanel&&(y.sendReplyMessageInFlight=!0);_.D2(y.hostElement,[W,G]);y.input.setLiveChatRichMessageInput(null)}_.F2(D)})};
_.f.handleSendButtonAction=function(y){y.detail.actionName==="yt-service-request"&&(y.stopPropagation(),this.sendMessage())};
_.f.onSendCompleted=function(y,W){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(y=this.get("timeoutDurationUsec",W.data))&&this.handleTimeout(Number(y)/1E3);this.errorMessage=this.get("errorMessage",W.data);this.pendingMessageId=""};
_.f.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.GG(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.f.handlePickerButtonToggle=function(y){y=y.detail.targetId;this.ytPickerBehavior.togglePicker_(y);if(y==="emoji")this.input.focus();else if(y==="qna-start-panel"){var W,c;(W=_.p(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(c=W.querySelector("#qna-creator-text-input-field"))==null||c.focus()}};
_.f.onComponentReplaced=function(y){var W,c;y.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((W=y.replacement.liveChatMessageInputRenderer)==null?0:(c=W.headerRenderer)==null?0:c.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.f.onEmojiSelect=function(y){this.input.focus();this.input.insertEmoji(y.detail)};
_.f.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.f.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.GG(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.GG(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.f.onOpenPopupAction=function(y,W){var c=this;W===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.GG(c.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.f.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.f.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.f.focusChanged=function(){this.maybeToggleCharacterCount()};
_.f.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var y=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",y>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.f.computeId=function(){return this.data&&this.data.targetId||""};
_.f.computeSendDisabled=function(y,W,c,Z){y=!!(this.blockSendMessageWithCountdown&&c||!y||W&&y>W||Z);(W=_.p(this.hostElement).querySelector("#send-button"))&&W.children.length&&(W.children[0].disabled=y);return y};
_.f.handleTimeout=function(y){this.timeoutDurationMs=this.timeoutMs=y;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.f.updateTimeout=function(y){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(y-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=y,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.f.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.f.onErrorMessageEdit=function(y){this.input.setLiveChatRichMessageInput(y.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.f.errorMessageChanged=function(){var y=this;_.O0(function(){_.GG(y.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.f.computeAuthorNameColor=function(y){var W;if(_.O("live_chat_author_name_color_usernames")&&(y==null?0:(W=y.authorName)==null?0:W.simpleText))return _.uvt(_.tkH(y.authorName.simpleText));if(_.O("live_chat_seed_color_usernames")&&(y==null?0:y.authorSeedColorArgb))return _.uvt(_.MM(y.authorSeedColorArgb));if(_.O("live_chat_colored_usernames"))return"#cc0000";var c;return _.O("live_chat_simple_color_usernames")&&(y==null?0:(c=y.authorName)==null?0:c.simpleText)&&(y==null?0:y.authorUsernameColorLight)&&
(y==null?0:y.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.MM(y.authorUsernameColorDark):_.MM(y.authorUsernameColorLight):""};
_.f.onIsTooltipVisibleChanged=function(){var y=_.p(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){y.hidden=!1;y.setAttribute("role","alert")},0):(y.hidden=!0,y.removeAttribute("role"))};
_.f.onFocusedChanged=function(y){this.inputFocused=y.detail.value};
_.dJ.Object.defineProperties(yof.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 y;return!((y=this.data)==null||!y.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.pickers)==null?void 0:W.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return y?this.ytRendererBehavior.getSimpleString(y):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
var zL=yof;zL.prototype.onIsTooltipVisibleChanged=zL.prototype.onIsTooltipVisibleChanged;zL.prototype.errorMessageChanged=zL.prototype.errorMessageChanged;zL.prototype.onErrorMessageEdit=zL.prototype.onErrorMessageEdit;zL.prototype.onErrorMessageDismiss=zL.prototype.onErrorMessageDismiss;zL.prototype.focusChanged=zL.prototype.focusChanged;zL.prototype.characterCountChanged=zL.prototype.characterCountChanged;zL.prototype.onEmojiSelect=zL.prototype.onEmojiSelect;
zL.prototype.handlePickerButtonToggle=zL.prototype.handlePickerButtonToggle;zL.prototype.onSendError=zL.prototype.onSendError;zL.prototype.onSendCompleted=zL.prototype.onSendCompleted;zL.prototype.sendMessage=zL.prototype.sendMessage;zL.prototype.dataChanged=zL.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],zL.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(jeF.YtPickerBehavior),_.e("design:type",Object)],zL.prototype,"ytPickerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$S.YtLiveChatTooltipTargetingBehavior),_.e("design:type",Object)],zL.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"hasFiredInitialFocusActions",void 0);
_.x([_.L(),_.e("design:type",Object)],zL.prototype,"isBeforeFocusEnabled",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"data",void 0);_.x([_.L({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.e("design:type",Object)],zL.prototype,"id",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"characterCount",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"maxCharacterLimit",void 0);
_.x([_.L(),_.e("design:type",Object)],zL.prototype,"remainingCharacterCount",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zL.prototype,"inputExpanded",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],zL.prototype,"inputFocused",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],zL.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.x([_.L(),_.e("design:type",_.pB)],zL.prototype,"participantsManager",void 0);
_.x([_.L(),_.e("design:type",Object)],zL.prototype,"buttonOverrides",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zL.prototype,"inReplyPanel",void 0);_.x([_.A("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zL.prototype,"sendDisabled",null);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"countdownRatio",void 0);
_.x([_.A("countdownRatio"),_.e("design:type",Number),_.e("design:paramtypes",[])],zL.prototype,"countdownStrokeDashOffset",null);_.x([_.A("countdownRatio"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zL.prototype,"countdownActive",null);_.x([_.A("data.interactionMessage"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zL.prototype,"hasInteractionMessage",null);
_.x([_.A("data.emojiPickerButton"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zL.prototype,"hasEmojiPickerButton",null);_.x([_.A("data, characterCount"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zL.prototype,"showAvatar",null);_.x([_.A("data.pickers"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zL.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.L(),_.e("design:type",Object)],zL.prototype,"errorMessage",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"genericErrorMessage",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"isTooltipVisible",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"tooltipTimeout",void 0);_.x([_.A("data.onInitialFocusCommand"),_.e("design:type",String),_.e("design:paramtypes",[])],zL.prototype,"tooltipMessage",null);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zL.prototype,"systemIcons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zL.prototype,"tallerEmojiPicker",void 0);_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],zL.prototype,"authorNameColor",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zL.prototype,"blockSendMessageWithCountdown",void 0);_.x([_.L(),_.e("design:type",Object)],zL.prototype,"sendReplyMessageInFlight",void 0);
_.x([_.jj("#input"),_.e("design:type",_.AXE)],zL.prototype,"input",void 0);_.x([_.jj("#count"),_.e("design:type",HTMLElement)],zL.prototype,"count",void 0);_.x([_.jj("#input-container"),_.e("design:type",HTMLElement)],zL.prototype,"inputContainer",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zL.prototype,"dataChanged",null);
_.x([_.B("yt-live-chat-send-message"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],zL.prototype,"sendMessage",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[Event,_.Vf]),_.e("design:returntype")],zL.prototype,"onSendCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zL.prototype,"onSendError",null);
_.x([_.B("yt-live-chat-icon-toggle-button-renderer-toggle"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],zL.prototype,"handlePickerButtonToggle",null);_.x([_.B("yt-emoji-select"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],zL.prototype,"onEmojiSelect",null);
_.x([_.H("characterCount"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zL.prototype,"characterCountChanged",null);_.x([_.H("inputFocused"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zL.prototype,"focusChanged",null);_.x([_.B("yt-live-chat-error-message-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zL.prototype,"onErrorMessageDismiss",null);
_.x([_.B("yt-live-chat-error-message-edit"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],zL.prototype,"onErrorMessageEdit",null);_.x([_.H("errorMessage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zL.prototype,"errorMessageChanged",null);_.x([_.H("isTooltipVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zL.prototype,"onIsTooltipVisibleChanged",null);
zL=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],zL);
_.T(zL,"yt-live-chat-message-input-renderer",function(){if(oyM===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;f_F===void 0&&(f_F=document.createElement("template"));var Z=f_F;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);oyM=y}y=oyM;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var WMX;var coX;var YL=function(){var y=_.v.apply(this,arguments)||this;y.systemIcons=_.O("kevlar_system_icons");y.firedOnClickCommand=!1;y.inReplyPanel=!1;return y};
_.R(YL,_.v);
YL.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"}}}};
YL.prototype.onButtonToggle=function(y){y.target.disabled||this.ytPickerBehavior.togglePicker_(y.detail.targetId)};
YL.prototype.onClick=function(){var y=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.GG(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return y.firedOnClickCommand=!1},5E3))};
_.dJ.Object.defineProperties(YL.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.panels)==null?void 0:W.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}}});
var mO=YL;mO.prototype.onButtonToggle=mO.prototype.onButtonToggle;_.x([_.C(jeF.YtPickerBehavior),_.e("design:type",Object)],mO.prototype,"ytPickerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mO.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mO.prototype,"systemIcons",void 0);_.x([_.L({reflectToAttribute:!1}),_.e("design:type",Object)],mO.prototype,"firedOnClickCommand",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mO.prototype,"inReplyPanel",void 0);_.x([_.A("data.pickers"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],mO.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.B("yt-live-chat-icon-toggle-button-renderer-toggle"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],mO.prototype,"onButtonToggle",null);mO=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],mO);
_.T(mO,"yt-live-chat-restricted-participation-renderer",function(){if(coX===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;WMX===void 0&&(WMX=document.createElement("template"));var Z=WMX;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);coX=y}y=coX;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var Zg0=function(){var y=_.v.apply(this,arguments)||this;y.genericErrorMessage=_.Lq("Error, try again.");y.inReplyPanel=!1;y.hideBorder=!1;return y};
_.R(Zg0,_.v);Zg0.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}}}}}};
_.dJ.Object.defineProperties(Zg0,{template:{configurable:!0,enumerable:!0,get:function(){return q$X()}}});
var s4=Zg0;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],s4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],s4.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],s4.prototype,"genericErrorMessage",void 0);_.x([_.L(),_.e("design:type",Object)],s4.prototype,"inReplyPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],s4.prototype,"hideBorder",void 0);
s4=_.x([_.n6({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],s4);_.T(s4,"yt-live-chat-engagement-panel-input-renderer",function(){return q$X()},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var GY3,fde;GY3=_.se(115994);fde=_.se(115993);_.orf=function(y,W,c){var Z=this;var G=c.dragDownAction;this.layer=0;this.JSC$19706_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$19706_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var D=_.Zz();_.kI(D,GY3,this.layer);_.kI(D,fde,this.layer);this.dragDownAction=function(){G();_.lv(D,{visualElement:Z.fullscreen?GY3:fde})};
this.gesture=new _.Kh(y,W,this.JSC$19706_watchConfig,"pandown");this.attach()};
_.orf.prototype.attach=function(){this.gesture.attach()};
_.orf.prototype.detach=function(){this.gesture.detach()};
_.orf.prototype.update=function(y){this.fullscreen=y;this.gesture.config=y?this.JSC$19706_watchFullScreenConfig:this.JSC$19706_watchConfig};var DQ0={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(y){if(y&&y.length==1&&Array.isArray(y[0].loggingUrls)){y=_.Eb.unsafeClone(y[0]);var W=this.macros||{},c=this.getAdModuleClient_();if(!c)return _.sc();y.loggingUrls.forEach(function(Z){if(Z.baseUrl){var G=Z.baseUrl;var D=W;D=D===void 0?{}:D;G=c.getOptions().includes("replaceUrlMacros")?_.O3E(c,"replaceUrlMacros",{url:G,additionalMapping:D}):G;Z.baseUrl=G}},this);
y=[y]}return _.D2(this.hostElement,y)},
getAdModuleClient_:function(){var y=_.HF(this);return y?(y=y.getPlayer())?new _.O7(y):null:null}}]};var zKe;var YR3=function(){var y=_.v.apply(this,arguments)||this;y.isCollapsed=!1;y.modernPanels=_.O("kevlar_watch_modern_panels");y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return y};
_.R(YR3,_.v);_.f=YR3.prototype;_.f.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.onDonateTap=function(){var y=this.get("data.donateButton.buttonRenderer.command");if(y){var W=_.NR(),c=this.get("data.donateButton.buttonRenderer.trackingParams");W&&c&&_.SG(W,_.Dz(c));this.ytOpenPopupBehavior.openPopup(y)}};
_.f.onShowMore=function(){this.isCollapsed=!1;var y=_.NR(),W=this.get("data.expandButton.buttonRenderer.trackingParams");y&&W&&_.SG(y,_.Dz(W))};
_.f.onShowLess=function(){this.isCollapsed=!0};
_.f.dataChanged=function(){_.wM(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.f.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.handleUpdate=function(y){if(y=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",y))this.set("data.startLabel",y.startLabel),this.set("data.endLabel",y.endLabel),this.set("data.progress",y.progress),this.set("data.amountRaisedLabel",y.amountRaisedLabel),this.dataChanged()};
_.f.handleOpenPopupAction=function(y){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",y)&&_.GG(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.f.computeHeaderBackgroundUrl=function(y,W){if(y)return W?y.headerBackgroundDarkUrl:y.headerBackgroundUrl};
_.f.isProgressBarVisible=function(y){return!(!y||y.progress===void 0)};
_.f.headerBackgroundClass=function(){return _.Nn("HTML_DIR")==="rtl"?"flip":""};
var uV=YR3;uV.prototype.dataChanged=uV.prototype.dataChanged;_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],uV.prototype,"ytOpenPopupBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],uV.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],uV.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],uV.prototype,"isCollapsed",void 0);_.x([_.L({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.e("design:type",String)],uV.prototype,"headerBackgroundUrl",void 0);_.x([_.L(),_.e("design:type",Boolean)],uV.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uV.prototype,"modernPanels",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uV.prototype,"dataChanged",null);uV=_.x([_.d({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],uV);
_.T(uV,"ytd-donation-shelf-renderer",function(){if(zKe!==void 0)return zKe;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return zKe=y},{mode:1});var mQf;var se3=function(){return _.v.apply(this,arguments)||this};
_.R(se3,_.v);var ue$=se3;_.x([_.L(),_.e("design:type",Object)],ue$.prototype,"data",void 0);ue$=_.x([_.d({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ue$);
_.T(ue$,"ytd-donation-unavailable-renderer",function(){if(mQf!==void 0)return mQf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mQf=y},{mode:1});var tZ0;var nr$=function(){return _.v.apply(this,arguments)||this};
_.R(nr$,_.v);nr$.prototype.computeIconType=function(y){return y?"yt-icons:"+y.toLowerCase():null};
var Xke=nr$;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Xke.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Xke.prototype,"data",void 0);Xke=_.x([_.d({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Xke);
_.T(Xke,"ytd-limited-state-message-renderer",function(){if(tZ0!==void 0)return tZ0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tZ0=y},{mode:1});var bg9;var rof=function(){return _.v.apply(this,arguments)||this};
_.R(rof,_.v);rof.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
rof.prototype.onTap=function(y){var W=this.data&&this.data.endpoint;W&&!_.Cx(_.Aq(y),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Z2(this.hostElement,"yt-navigate",{endpoint:W})};
var tY=rof;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tY.prototype,"data",void 0);tY=_.x([_.d({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],tY);
_.T(tY,"ytd-autotagging-metadata-renderer",function(){if(bg9!==void 0)return bg9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return bg9=y},{mode:1});var FM3;var UQ9=function(){return _.v.apply(this,arguments)||this};
_.R(UQ9,_.v);UQ9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
var nt=UQ9;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nt.prototype,"data",void 0);nt=_.x([_.d({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],nt);
_.T(nt,"ytd-autotagging-metadata-row-renderer",function(){if(FM3!==void 0)return FM3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return FM3=y},{mode:1});var $QF;var KM3;var OgX=function(){var y=_.v.apply(this,arguments)||this;y.engagementPanelContent=!1;return y};
_.R(OgX,_.v);OgX.prototype.computeHasDividerLine=function(y,W){return y&&!W};
var XC=OgX;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],XC.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.e("design:type",Boolean)],XC.prototype,"hasDividerLine",void 0);_.x([_.L(),_.e("design:type",Object)],XC.prototype,"engagementPanelContent",void 0);
XC=_.x([_.d({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],XC);
_.T(XC,"ytd-metadata-row-header-renderer",function(){if(KM3!==void 0)return KM3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return KM3=y},{mode:1});var gr$;var RK3=function(){return _.v.apply(this,arguments)||this};
_.R(RK3,_.v);RK3.prototype.computeHasDividerLine=function(y){return y};
var bV=RK3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bV.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.e("design:type",Boolean)],bV.prototype,"hasDividerLine",void 0);bV=_.x([_.d({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],bV);
_.T(bV,"ytd-metadata-row-renderer",function(){if(gr$!==void 0)return gr$;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return gr$=y},{mode:1});var lde;var Ern=function(){return _.v.apply(this,arguments)||this};
_.R(Ern,_.v);var NLf=Ern;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],NLf.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],NLf.prototype,"data",void 0);NLf=_.x([_.d({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],NLf);
_.T(NLf,"ytd-metadata-with-image-row-renderer",function(){if(lde!==void 0)return lde;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lde=y},{mode:1});var IdX;var pkM=function(){var y=_.v.apply(this,arguments)||this;y.rounded=!0;y.fixie=!1;y.fullWidth=!1;return y};
_.R(pkM,_.v);_.f=pkM.prototype;_.f.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.onDataChanged=function(){var y=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(W){y.onEndpointLinkKeyPress(W)}))};
_.f.onEndpointLinkKeyPress=function(y){y.target===this.endpointLink&&y.keyCode===13&&_.Z2(this.hostElement,"click")};
_.f.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var y;if((y=this.data)==null?0:y.endpoint)_.mq(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.f.onYtNavigate=function(y){this.endpointHref||(y.stopPropagation(),y.preventDefault())};
_.f.onInformationButtonContainerClick=function(y){y.target.id!=="information-button-container"&&(y.stopPropagation(),y.preventDefault())};
_.f.computeStyle=function(y){return y};
_.f.computeIsThumbnailStyle=function(y){return y==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.f.computeThumbnailWidth=function(y){switch(y){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}};
_.f.computeThumbnailObjectFit=function(y){switch(y){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.dJ.Object.defineProperties(pkM.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?0:y.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
var r7=pkM;r7.prototype.onYtNavigate=r7.prototype.onYtNavigate;r7.prototype.onClick=r7.prototype.onClick;r7.prototype.onDataChanged=r7.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],r7.prototype,"componentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],r7.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.e("design:type",String)],r7.prototype,"componentStyle",void 0);_.x([_.L({computed:"computeIsThumbnailStyle(data.style)"}),_.e("design:type",Boolean)],r7.prototype,"isThumbnailStyle",void 0);_.x([_.L({computed:"computeThumbnailObjectFit(data.style)"}),_.e("design:type",String)],r7.prototype,"thumbnailObjectFit",void 0);
_.x([_.L({computed:"computeThumbnailWidth(data.style)"}),_.e("design:type",Number)],r7.prototype,"thumbnailWidth",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],r7.prototype,"rounded",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],r7.prototype,"fixie",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],r7.prototype,"fullWidth",void 0);_.x([_.jj("#endpoint-link"),_.e("design:type",HTMLAnchorElement)],r7.prototype,"endpointLink",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],r7.prototype,"onDataChanged",null);_.x([_.A("data.endpoint"),_.e("design:type",Object),_.e("design:paramtypes",[])],r7.prototype,"endpointHref",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],r7.prototype,"onClick",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],r7.prototype,"onYtNavigate",null);r7=_.x([_.d({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],r7);
_.T(r7,"ytd-rich-metadata-renderer",function(){if(IdX!==void 0)return IdX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return IdX=y},{mode:_.xm("kevlar_poly_si_batch_j075")?1:2});var PCX;var Jo3=function(){var y=_.v.apply(this,arguments)||this;y.fixie=!1;y.fullWidth=!1;return y};
_.R(Jo3,_.v);Jo3.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Jo3.prototype.computeHasDividerLine=function(y){return y};
var FC=Jo3;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],FC.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.e("design:type",Boolean)],FC.prototype,"hasDividerLine",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],FC.prototype,"fixie",void 0);
_.x([_.L(),_.e("design:type",Object)],FC.prototype,"fullWidth",void 0);FC=_.x([_.d({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],FC);
_.T(FC,"ytd-rich-metadata-row-renderer",function(){if(PCX!==void 0)return PCX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return PCX=y},{mode:1});var VZn=function(){var y=_.v.apply(this,arguments)||this;y.engagementPanelContent=!1;y.fixie=!1;y.fullWidth=!1;return y};
_.R(VZn,_.v);
VZn.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"}}}};
VZn.prototype.computeCollapsibleItems=function(y,W,c){return y===void 0||W===void 0||c===void 0||c?[]:y.slice(W)};
VZn.prototype.computeAlwaysShownItems=function(y,W){return y&&y.length?y.slice(0,W):[]};
var U4=VZn;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],U4.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],U4.prototype,"collapsed",void 0);
_.x([_.L({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.e("design:type",Array)],U4.prototype,"alwaysShownItems",void 0);_.x([_.L({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.e("design:type",Array)],U4.prototype,"collapsibleItems",void 0);_.x([_.L(),_.e("design:type",Object)],U4.prototype,"engagementPanelContent",void 0);_.x([_.L(),_.e("design:type",Object)],U4.prototype,"fixie",void 0);
_.x([_.L(),_.e("design:type",Object)],U4.prototype,"fullWidth",void 0);U4=_.x([_.d({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],U4);
_.T(U4,"ytd-metadata-row-container-renderer",function(){if($QF!==void 0)return $QF;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return $QF=y},{mode:1});var CC0;var Qe9=function(){var y=_.v.apply(this,arguments)||this;y.currentPageUrl="";y.baseUrl="";y.isHiddenByUser=null;y.hidden=!1;y.showAboveScrim=!1;y.watchNextGrid=_.O("kevlar_watch_grid");y.modernButtons=_.O("web_modern_buttons");y.roundedContainer=!0;y.noBorder=!1;y.roundBackground=!_.O("live_chat_round_background_killswitch");y.overflowHideChat=_.O("live_chat_overflow_hide_chat");y.forceDarkTheme=!1;y.theaterWatchWhile=!1;y.isListeningForPlayerProgress=!1;y.JSC$19742_playerEvents=new Map;y.isFrameReady=
!1;y.player=null;y.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 y};
_.R(Qe9,_.v);_.f=Qe9.prototype;_.f.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.fl(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.f.created=function(){var y=this;this.handleIframeEventListener=function(W){y.handleIframeEvent(W)};
this.handleKeyboardEventListener=function(W){y.handleKeyboardEvent(W)};
this.JSC$19742_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19742_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19742_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19742_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19742_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.f.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()};
_.f.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};
_.f.computeBaseUrl=function(y){var W="/live_chat";this.isChatReplay()&&(W="/live_chat_replay");return _.ew(_.MK(_.iU(_.ho(y),W),null),"").toString()};
_.f.dataChanged=function(){_.O("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.f.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var y=this.url;if(this.isChatReplay()&&this.player){var W=Math.floor(this.player.getProgressState().current*1E3);y=_.Hk(_.ho(y),"playerOffsetMs",W.toString()).toString()}W=this.chatframe;try{var c=y==="about:blank"?_.sVJ:_.Jn(y),Z=W.contentDocument.location,G=_.An(c);G!==void 0&&Z.replace(G)}catch(D){W.src=y}}};
_.f.collapsedChanged=function(){_.Z2(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.f.handleIframeEvent=function(y){if(y&&this.baseUrl.startsWith(y.origin)&&y.source===this.chatframe.contentWindow&&_.q1(y.data))if(y.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(y);else if(y.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(y.data["yt-show-feedback-dialog"]){var W=_.U().resolve(_.xN(_.Vq6));if(W){var c=y.ports,Z;c&&c.length&&(Z=function(){c[0].postMessage({})});
y=y.data["yt-show-feedback-dialog"];W.showFeedbackDialog(y.customProductData,y.feedbackContent,Z,y.bucket)}}else if(y.data["yt-show-survey"])_.Z2(this.hostElement,"yt-show-survey",y.data["yt-show-survey"]);else if(y.data["yt-purchase-membership"])_.U().resolve(_.i1).resolveCommand(y.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(y.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(y.data["yt-tunnel-out-live-service-request"]);else if(y.data["yt-user-activity"])_.iz();
else if(y.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(y.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(y.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(y.data["yt-open-popup"]);else if(y.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(y.data["yt-log-flow-logging-event-command"]);else if(y.data["yt-hide-live-chat"])this.onShowHideChat();else y.data["yt-report-moderation-state-log"]&&
this.player&&(W={cpn:this.player.getVideoData().cpn},_.$g("liveChatBeingModerated",W))};
_.f.attachLiveChatResponseVeTrackingParams=function(y){y=_.Dz(y);var W=_.NR(),c=_.JW("liveChatRenderer.trackingParams",this.data);W&&c&&_.HA(W,_.Dz(c),y)};
_.f.handleBuyflowMessages=function(y){var W=y.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,c=y.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Z=y.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.rCE(_.WU(_.QM),W.replace(/-/g,"+").replace(/_/g,"/"),function(G){y.ports[0].postMessage({success:!0,buyFlowResponse:G})},void 0,function(G){y.ports[0].postMessage({success:!1,
error:G&&G.message||"Buyflow rejected without error."})},_.Uc().get("hl"),void 0,function(){y.ports[0].postMessage({closed:!0})},c,Z)};
_.f.setupPlayerProgressRelay=function(){var y=this;if(!this.isListeningForPlayerProgress){var W=_.Lx();W!=null&&W.getPlayerPromise&&(W.getPlayerPromise().then(function(c){y.playerApiReady(c)}),this.isListeningForPlayerProgress=!0)}};
_.f.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.f.playerApiReady=function(y){this.setPlayer(y)};
_.f.playerProgressHandler=function(){if(this.player){var y=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":y.current})}};
_.f.playerAdStartHandler=function(y){this.postToContentWindow({"yt-player-ad-start":y})};
_.f.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.f.playerStateChangeHandler=function(y){this.postToContentWindow({"yt-player-state-change":y})};
_.f.setPlayer=function(y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19742_playerEvents);y&&(this.player=y,this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$19742_playerEvents),_.Z2(this.hostElement,"player-api-ready"))};
_.f.liveChatPageUrl=function(y,W,c,Z){return!c||W?"about:blank":c.liveChatRenderer?(W=_.ho(this.currentPageUrl).JSC$7898_queryData_,Kf0(W),y=_.ho(y),W.add("continuation",c.liveChatRenderer.continuations[0].reloadContinuationData.continuation),c=_.NO()==="USER_INTERFACE_THEME_DARK",(Z||c)&&W.add("dark_theme","true"),_.MK(y,W),Z=_.ho(y.toString()),c=Z.JSC$7898_queryData_,"SESSION_INDEX"in _.R8&&(c.add("authuser",_.Nn("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.R8&&c.add("pageId",_.Nn("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.R8&&c.add("sdc",_.Nn("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Z.toString()):""};
_.f.isCollapsed=function(y,W){return W!==null?W:this.isChatReplay()||y&&y.conversationBarRenderer&&y.conversationBarRenderer.availabilityMessage?!0:y&&y.liveChatRenderer?y.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!1};
_.f.isHidden=function(y,W,c){var Z=W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage,G=W&&W.liveChatRenderer&&W.liveChatRenderer.showHideButton,D=W&&W.liveChatRenderer&&W.liveChatRenderer.showButton;return c&&y&&!Z&&!D||!c&&y&&!Z&&!G?!0:W&&W.liveChatRenderer&&W.liveChatRenderer.initialDisplayState?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.f.computeButtonOverride=function(y,W){if(y&&W)return{type:"outline"}};
_.f.setCollapsedState=function(y){_.g(y,_.aYE)&&(this.isHiddenByUser=!!_.g(y,_.aYE).collapsed,!this.isHiddenByUser&&_.O("enable_teaser_framework_web_client")&&_.GG(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.f.forwardReduxActionToIframe=function(y){this.postToContentWindow({"yt-live-chat-forward-redux-action":y})};
_.f.onLoopRangeChange=function(y){this.showAboveScrim=!(y==null||!y.postId)};
_.f.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.f.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.f.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.f.sendDarkThemePostMessage=function(y){this.postToContentWindow({"yt-live-chat-set-dark-theme":y})};
_.f.onLiveChatBuyFlowCallback=function(y){this.postToContentWindow({"yt-live-chat-buy-flow-callback":y})};
_.f.handleKeyboardEvent=function(y){(0,_.Eb.containsValue)(lG3,y.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:y.type,keyCode:y.keyCode}})};
_.f.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.f.postToContentWindow=function(y){if(this.isFrameReady)try{var W=window.location.protocol+"//"+window.location.host,c;(c=this.chatframe)!=null&&c.contentWindow?this.chatframe.contentWindow.postMessage(y,W):_.Rs(new _.ul("Tried posting a message to an iframe with no content window",y))}catch(Z){_.OP(Z)}};
_.f.shouldHideChatFrame=function(y){return y&&_.O("hide_live_chat_button_when_collapsed")};
_.dJ.Object.defineProperties(Qe9.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.O("live_chat_overflow_hide_chat")||_.O("web_watch_chat_hide_button_killswitch"))return _.O("live_chat_overflow_hide_chat");var y,W,c,Z;return!!((y=this.data)==null?0:(W=y.liveChatRenderer)==null?0:(c=W.header)==null?0:(Z=c.liveChatHeaderRenderer)==null?0:Z.collapseButton)}}});
var $L=Qe9;$L.prototype.collapsedChanged=$L.prototype.collapsedChanged;$L.prototype.urlChanged=$L.prototype.urlChanged;$L.prototype.dataChanged=$L.prototype.dataChanged;$L.prototype.onShowHideChat=$L.prototype.onShowHideChat;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],$L.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],$L.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],$L.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],$L.prototype,"ytOpenPopupBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$L.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],$L.prototype,"currentPageUrl",void 0);
_.x([_.L({computed:"computeBaseUrl(currentPageUrl,data)"}),_.e("design:type",Object)],$L.prototype,"baseUrl",void 0);_.x([_.L({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.e("design:type",String)],$L.prototype,"url",void 0);_.x([_.L(),_.e("design:type",Object)],$L.prototype,"isHiddenByUser",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.e("design:type",Object)],$L.prototype,"hidden",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.e("design:type",Boolean)],$L.prototype,"collapsed",void 0);_.x([_.L({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.e("design:type",Boolean)],$L.prototype,"hideChatFrame",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$L.prototype,"showAboveScrim",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$L.prototype,"watchNextGrid",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$L.prototype,"modernButtons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$L.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$L.prototype,"noBorder",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$L.prototype,"roundBackground",void 0);
_.x([_.L({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.e("design:type",Object)],$L.prototype,"toggleButtonOverride",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$L.prototype,"overflowHideChat",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$L.prototype,"forceDarkTheme",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],$L.prototype,"enableShowWithoutHideChatButton",null);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$L.prototype,"theaterWatchWhile",void 0);_.x([_.jj("#chatframe"),_.e("design:type",HTMLIFrameElement)],$L.prototype,"chatframe",void 0);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$L.prototype,"onShowHideChat",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$L.prototype,"dataChanged",null);
_.x([_.H("url"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$L.prototype,"urlChanged",null);_.x([_.H("collapsed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$L.prototype,"collapsedChanged",null);$L=_.x([_.d({is:"ytd-live-chat-frame",disableElementRegistration:!0})],$L);
_.T($L,"ytd-live-chat-frame",function(){if(CC0!==void 0)return CC0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return CC0=y},{mode:1});var Aof;var Kt=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_modern_buttons");y.buttonOverrides={style:"call-to-action",type:"filled"};return y};
_.R(Kt,_.v);Kt.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=_.$$(this.data.backgroundColor)))};
Kt.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var y=this.getFormattedStringLoggingDirectives(this.data.headline);y&&this.rendererBehavior.logExplicitClick(y)}};
Kt.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var y=this.getFormattedStringLoggingDirectives(this.data.description);y&&this.rendererBehavior.logExplicitClick(y)}};
Kt.prototype.getFormattedStringLoggingDirectives=function(y){return y&&y.runs&&y.runs.length>0&&y.runs[0]&&y.runs[0].loggingDirectives?y.runs[0].loggingDirectives:null};
var O4=Kt;O4.prototype.dataChanged=O4.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],O4.prototype,"rendererBehavior",void 0);_.x([_.C(DQ0.YtMacroReplacementBehavior),_.e("design:type",Object)],O4.prototype,"macroReplacementBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],O4.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],O4.prototype,"navigationEndpoint",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],O4.prototype,"enableColors",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],O4.prototype,"modern",void 0);_.x([_.L(),_.e("design:type",Object)],O4.prototype,"buttonOverrides",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],O4.prototype,"dataChanged",null);O4=_.x([_.d({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],O4);
_.T(O4,"ytd-action-basic-immersive-content-renderer",function(){if(Aof!==void 0)return Aof;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Aof=y},{mode:1});var hKf;var BLX;var HgX=function(){return _.v.apply(this,arguments)||this};
_.R(HgX,_.v);HgX.prototype.dataChanged=function(){var y;((y=this.data)==null?void 0:y.backgroundColor)!==void 0&&_.wM(this.hostElement,{"--bgu-color":_.$$(this.data.backgroundColor)})};
HgX.prototype.onImageTileClick=function(){var y;((y=this.data)==null?0:y.navigationEndpoint)&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var W;((W=this.data)==null?0:W.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.dJ.Object.defineProperties(HgX.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var y;if(((y=this.data)==null?void 0:y.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 y;return((y=this.data)==null?void 0:y.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var y,W,c;if(((y=this.data)==null?void 0:(W=y.detailsLine)==null?void 0:W.texts)!=null&&((c=this.data)==null?void 0:c.detailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.detailsLine.texts.map(function(G){return G.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var y,W,c;if(((y=this.data)==null?void 0:(W=y.optionalDetailsLine)==null?void 0:W.texts)!=null&&((c=this.data)==null?void 0:c.optionalDetailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.optionalDetailsLine.texts.map(function(G){return G.text}).join("")}return null}}});
var g7=HgX;g7.prototype.dataChanged=g7.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],g7.prototype,"rendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],g7.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],g7.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.backgroundColor"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],g7.prototype,"hasBackgroundColor",null);
_.x([_.A("data.objectFit"),_.e("design:type",Object),_.e("design:paramtypes",[])],g7.prototype,"getObjectFit",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.tileRenderingStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],g7.prototype,"hasTileMetadata",null);_.x([_.A("data.detailsLine"),_.e("design:type",Object),_.e("design:paramtypes",[])],g7.prototype,"getSecondaryDetails",null);
_.x([_.A("data.optionalDetailsLine"),_.e("design:type",Object),_.e("design:paramtypes",[])],g7.prototype,"getOptionalDetails",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],g7.prototype,"dataChanged",null);g7=_.x([_.d({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],g7);
_.T(g7,"ytd-image-tile-renderer",function(){if(BLX!==void 0)return BLX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return BLX=y},{mode:1});var LM3;var vrf=function(){return _.v.apply(this,arguments)||this};
_.R(vrf,_.v);vrf.prototype.getOpenLinkIcon=function(){return _.O("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
vrf.prototype.onSitelinkTap=function(){_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.O("kevlar_command_handler_migration_killswitch"))_.mq(this.hostElement,this.data.clickCommands,this.hostElement);else for(var y=_.z(this.data.clickCommands),W=y.next();!W.done;W=y.next())this.ytComponentBehavior.resolveCommand(W.value)};
var Ro=vrf;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ro.prototype,"rendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ro.prototype,"data",void 0);Ro=_.x([_.d({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Ro);
_.T(Ro,"ytd-sitelink-renderer",function(){if(LM3!==void 0)return LM3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return LM3=y},{mode:1});var lV=function(){var y=_.v.apply(this,arguments)||this;y.paddingFix=_.O("enable_ads_web_ep_buenos_aires_and_padding_fix");return y};
_.R(lV,_.v);lV.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"}}}};
lV.prototype.dataChanged=function(){var y=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;y.ytMacroReplacementBehavior.sendServiceRequestAction([W])})};
lV.prototype.shouldHideFooter=function(y){return!(y&&_.O("use_ads_engagement_panel_desktop_footer_cta"))};
_.dJ.Object.defineProperties(lV.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var Z;return(Z=_.g(c,Nfn))==null?void 0:Z.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.imageTileRenderers)===void 0||((W=this.data)==null?void 0:W.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var Z;return((Z=_.g(c,Nfn))==null?void 0:Z.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
var E4=lV;E4.prototype.dataChanged=E4.prototype.dataChanged;_.x([_.C(DQ0.YtMacroReplacementBehavior),_.e("design:type",Object)],E4.prototype,"ytMacroReplacementBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],E4.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],E4.prototype,"paddingFix",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.imageTileRenderers"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],E4.prototype,"removeBorderFromImageTiles",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.imageTileRenderers"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],E4.prototype,"useFooteredMetadataRenderingStyle",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],E4.prototype,"dataChanged",null);E4=_.x([_.d({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],E4);
_.T(E4,"ytd-action-engagement-panel-content-renderer",function(){if(hKf!==void 0)return hKf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return hKf=y},{mode:1});var dQX;var SRf=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;y=_.HO();_.di(y,function(){return W().interaction},c);
_.MF(y,{visibilityCallback:function(Z){var G,D=(G=W().interaction)==null?void 0:G.onFirstVisible;Z&&D&&_.OH(D)},
showOption:_.wx});return _.X("ad-grid-card-image-full-metadata-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:y,"aria-label":function(){var Z,G;return(Z=W().interaction)==null?void 0:(G=Z.accessibility)==null?void 0:G.label}},_.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.X(_.bg,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.X(_.$E,{data:Z.data,
customCommandResolver:c})}})),_.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.X(_.YN,{cond:function(){return W().headline},
then:function(Z){return _.X(_.Da,{text:Z,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.X(_.YN,{cond:function(){return W().detailsLine},
then:function(Z){return _.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.X(_.bg,{data:Z},{adDetailsLineViewModel:function(G){return _.X(_.cB,{data:G.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.X(_.YN,{cond:function(){return W().secondaryDetailsLine},
then:function(Z){return _.X("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.X(_.bg,{data:Z},{adDetailsLineViewModel:function(G){return _.X(_.cB,{data:G.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ih");var TL3=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;y=_.HO();_.di(y,function(){return W().interaction},c);
_.MF(y,{visibilityCallback:function(Z){var G,D=(G=W().interaction)==null?void 0:G.onFirstVisible;Z&&D&&_.OH(D)},
showOption:_.wx});return _.X("ad-grid-card-image-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:y,"aria-label":function(){var Z,G;return(Z=W().interaction)==null?void 0:(G=Z.accessibility)==null?void 0:G.label}},_.X(_.bg,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.X(_.$E,{data:Z.data,
customCommandResolver:c})}}),_.X("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.X(_.bg,{data:function(){return W().adCardBadge}},{adCardBadgeViewModel:_.cp8})))},"Jh");var ad3=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;y=_.HO();_.di(y,function(){return W().interaction},c);
_.MF(y,{visibilityCallback:function(Z){var G,D=(G=W().interaction)==null?void 0:G.onFirstVisible;Z&&D&&_.OH(D)},
showOption:_.wx});return _.X("ad-grid-card-text-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:y,"aria-label":function(){var Z,G;return(Z=W().interaction)==null?void 0:(G=Z.accessibility)==null?void 0:G.label}},_.X("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.X(_.YN,{cond:function(){return W().title},
then:function(Z){return _.X(_.Da,{text:Z,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.X("div",{class:function(){return _.O("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.X(_.mC,{each:function(){var Z;
return((Z=W())==null?void 0:Z.descriptions)||[]},
keyBy:"INDEX"},function(Z){return _.X(_.Da,{text:Z,className:function(){return _.O("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.X("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.X(_.bg,{data:function(){return W().moreInfoButton}},{adButtonViewModel:function(Z){return _.X(_.ka,{data:Z.data,
customCommandResolver:c})}})))},"Kh");var xQ3=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;var Z=y.adGridCardCollectionStyle;y=_.HO();_.MF(y,{visibilityCallback:function(G){var D,Y=(D=W().interaction)==null?void 0:D.onFirstVisible;G&&Y&&_.OH(Y)},
showOption:_.wx});return _.X("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:y,style:function(){return"grid-template-columns: repeat("+p30(Z?Z():W().style)+", minmax(0, 1fr));"}},_.X(_.bg,{data:function(){var G;
return(G=W())==null?void 0:G.gridCards}},{adGridCardImageViewModel:function(G){return _.X(TL3,{data:G.data,
customCommandResolver:c})},
adGridCardImageFullMetadataViewModel:function(G){return _.X(SRf,{data:G.data,customCommandResolver:c})},
adGridCardTextViewModel:function(G){return _.X(ad3,{data:G.data,customCommandResolver:c})}}))},"Lh");_.A3(_.Ax(function(y){var W=y.data;y=_.HO();_.di(y,function(){return W().interaction},J9e);
_.MF(y,{visibilityCallback:function(c){var Z,G=(Z=W().interaction)==null?void 0:Z.onFirstVisible;c&&G&&_.OH(G)},
showOption:_.wx});return _.X("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:y},_.X("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.X(_.YN,{cond:_.eCI("(min-width: "+((0,_.tN)()+_.HC)+"px)"),then:function(){return _.X(_.bg,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.X(xQ3,{data:c.data,
customCommandResolver:J9e})}})},
else:function(){return _.X(_.bg,{data:function(){return W().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.X(xQ3,{data:c.data,
customCommandResolver:J9e,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.X("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.X(_.bg,{data:function(){return W().adButton}},{adButtonViewModel:function(c){return _.X(_.ka,{data:c.data,
customCommandResolver:J9e})}})))},"Mh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;y=_.HO();_.di(y,function(){return W().interaction},VD0);
_.MF(y,{visibilityCallback:function(c){var Z,G=(Z=W().interaction)==null?void 0:Z.onFirstVisible;c&&G&&_.OH(G)},
showOption:_.wx});return _.X("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:y},_.X("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.X(_.bg,{data:function(){if(_.eCI("(min-width: "+((0,_.tN)()+_.HC)+"px)")())var c=W().adGridCardCollection;else{c=Object.assign({},_.g(W().adGridCardCollection,I3f));var Z;c.gridCards!==void 0&&((Z=c.gridCards)==null?void 0:Z.length)>1?c.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":c.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";c={adGridCardCollectionViewModel:c}}return c}},{adGridCardCollectionViewModel:function(c){return _.X(xQ3,{data:c.data,
customCommandResolver:VD0})}})),_.X("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.X(_.bg,{data:function(){return W().adButton}},{adButtonViewModel:function(c){return _.X(_.ka,{data:c.data,
customCommandResolver:VD0})}})))},"Nh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Ix}});var igf=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return y};
_.R(igf,_.v);_.f=igf.prototype;_.f.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"}}}};
_.f.attached=function(){this.getDataFromPlayerAndRender()};
_.f.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.f.getDataFromPlayerAndRender=function(){var y=this,W=_.HF(this.hostElement);W&&W.getPlayerPromise().then(function(c){y.getCachedDataAndListen(c)})};
_.f.getCachedDataAndListen=function(y){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(y,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(y,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=y)};
_.f.resolveCachedActions=function(){var y=_.JW("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(y=y&&y())&&!_.Eb.isEmpty(y)&&this.sendUpdateEngagementPanelAction(y);(y=(y=_.JW("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&y())&&!_.Eb.isEmpty(y)&&this.sendChangeEngagementPanelVisibilityAction(y);(y=(y=_.JW("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&y())&&!_.Eb.isEmpty(y)&&this.sendScrollToEngagementPanelCommand(y)};
_.f.sendUpdateEngagementPanelAction=function(y){var W;_.GG(this.hostElement,"yt-update-engagement-panel-action",[(W=_.Eb.get(y,"action"))!=null?W:y])};
_.f.sendChangeEngagementPanelVisibilityAction=function(y){_.GG(this.hostElement,"yt-change-engagement-panel-visibility-action",[y])};
_.f.sendScrollToEngagementPanelCommand=function(y){_.GG(this.hostElement,"yt-scroll-to-engagement-panel-command",[y])};
_.f.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.O("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Rs(Error("fm"))};
var Nj=igf;Nj.prototype.dataChanged=Nj.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Nj.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Nj.prototype,"componentBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],Nj.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Nj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Nj.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Nj.prototype,"player",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Nj.prototype,"dataChanged",null);Nj=_.x([_.d({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Nj);
_.T(Nj,"ytd-ads-engagement-panel-content-renderer",function(){if(dQX!==void 0)return dQX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return dQX=y},{mode:1});var MZ3;var eK0=function(){var y=_.v.apply(this,arguments)||this;y.player=null;y.JSC$19779_playerEvents=new Map;y.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return y};
_.R(eK0,_.v);_.f=eK0.prototype;_.f.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]]"}}}}}};
_.f.created=function(){this.player=null;this.JSC$19779_playerEvents=new Map;this.JSC$19779_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19779_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19779_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19779_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.f.attached=function(){var y=this,W=_.HF();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));W&&W.getPlayerPromise().then(function(c){y.setPlayer(c);y.set("isPageLoad",!1)})};
_.f.setPlayer=function(y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19779_playerEvents);this.set("player",y);y&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$19779_playerEvents),y.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.f.onLoopRangeChange=function(y){var W=_.U().resolve(_.xN(_.h7));if((!W||W.isOnWatch())&&this.hostElement.clientHeight){var c;!y&&((c=this.data)==null?0:c.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.f.onVideoProgress=function(y){var W,c,Z=((W=this.player)==null?void 0:(c=W.getPresentingPlayerType)==null?void 0:c.call(W))===2;this.isAdPlaying!==Z&&this.set("isAdPlaying",Z);var G;if(!Z&&(G=this.player)!=null&&G.getLoopRange()){c=this.player.getLoopRange();W=c.startTimeMs;c=c.endTimeMs;Z=this.player.getProgressState(1).seekableStart;var D;W<Z*1E3&&((D=this.data)==null?0:D.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
y=c<y*1E3;var Y;((Y=this.player)==null?0:Y.getLoopRange())&&y&&this.player.seekTo(W/1E3)}};
_.f.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.f.onYtDeleteClipEngagementPanelCommand=function(y){_.g(y,Tf$).command&&this.ytComponentBehavior.resolveCommand(_.g(y,Tf$).command)};
_.dJ.Object.defineProperties(eK0.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.voteCount)||_.Lq("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
var Io=eK0;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Io.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Io.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],Io.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Io.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Io.prototype,"isAdPlaying",void 0);_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],Io.prototype,"isPageLoad",void 0);_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],Io.prototype,"isDarkTheme",void 0);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Io.prototype,"voteCount",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Io.prototype,"channelEndpoint",null);_.x([_.A("channelEndpoint"),_.e("design:type",Object),_.e("design:paramtypes",[])],Io.prototype,"channelHref",null);Io=_.x([_.d({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Io);
_.T(Io,"ytd-clip-attribution-renderer",function(){if(MZ3!==void 0)return MZ3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return MZ3=y},{mode:1});var wkf;var qRf=function(){var y=_.v.apply(this,arguments)||this;y.player=null;y.JSC$19784_playerEvents=new Map;return y};
_.R(qRf,_.v);_.f=qRf.prototype;_.f.created=function(){this.player=null;this.JSC$19784_playerEvents=new Map;this.JSC$19784_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19784_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19784_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.f.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.f.attached=function(){var y=this,W=_.HF();W&&W.getPlayerPromise().then(function(c){y.setPlayer(c);y.set("isPageLoad",!1)})};
_.f.setPlayer=function(y){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19784_playerEvents);this.set("player",y);if(y){this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$19784_playerEvents);var W;(y==null?void 0:(W=y.getPresentingPlayerType)==null?void 0:W.call(y))===2&&this.playerAdStartHandler()}};
_.f.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.f.onVideoProgress=function(){var y,W,c=((y=this.player)==null?void 0:(W=y.getPresentingPlayerType)==null?void 0:W.call(y))===2;this.isAdPlaying!==c&&this.set("isAdPlaying",c)};
var pt=qRf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],pt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],pt.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pt.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],pt.prototype,"isAdPlaying",void 0);_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],pt.prototype,"isPageLoad",void 0);pt=_.x([_.d({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],pt);
_.T(pt,"ytd-clip-section-footer-renderer",function(){if(wkf!==void 0)return wkf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return wkf=y},{mode:1});var kY7;var j2X;var yln=function(){return _.v.apply(this,arguments)||this};
_.R(yln,_.v);var WTM=yln;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WTM.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WTM.prototype,"data",void 0);WTM=_.x([_.d({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],WTM);
_.T(WTM,"ytd-clip-ad-state-renderer",function(){if(j2X!==void 0)return j2X;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return j2X=y},{mode:1});var cl7;var ZLf=function(){var y=_.v.apply(this,arguments)||this;y.value="";y.valid=!1;y.userChangedValue=!1;y.disabled=!1;y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return y};
_.R(ZLf,_.v);_.f=ZLf.prototype;_.f.detached=function(){this.userChangedValue=!1};
_.f.handleKeyDown=function(y){if(_.fi)var W=13;else _.RfI&&_.oE?W=13:W=13;y.keyCode===W&&y.preventDefault()};
_.f.handleInput=function(){var y=_.p(this.hostElement).querySelector("#title");if(y){var W=(y.value||"").replace(/\r|\n/g," ");this.set("value",W);y.value=W;this.valid=y.validate();this.userChangedValue=!0}};
_.f.handleBlur=function(){this.valid=_.p(this.hostElement).querySelector("#title").validate()};
_.f.onValueChanged=function(){_.Z2(this.hostElement,"title-changed",{title:this.value})};
_.f.onValidChanged=function(){_.Z2(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.f.setInput=function(y,W){var c=_.p(this.hostElement).querySelector("#title");c&&(c.value=y,this.handleInput(),W&&(c.invalid=!1,this.valid=!0))};
_.f.onClipCreationDisable=function(){this.set("disabled",!0)};
_.f.onClipCreationEnable=function(){this.set("disabled",!1)};
_.f.onClipCreationVisibilityChange=function(y){var W=this;y.visible?requestAnimationFrame(function(){var c;((c=_.p(W.hostElement).querySelector("#title"))==null?void 0:c.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
var Pq=ZLf;Pq.prototype.onValidChanged=Pq.prototype.onValidChanged;Pq.prototype.onValueChanged=Pq.prototype.onValueChanged;Pq.prototype.handleBlur=Pq.prototype.handleBlur;Pq.prototype.handleInput=Pq.prototype.handleInput;Pq.prototype.handleKeyDown=Pq.prototype.handleKeyDown;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Pq.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Pq.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Pq.prototype,"value",void 0);_.x([_.L(),_.e("design:type",Object)],Pq.prototype,"valid",void 0);_.x([_.L(),_.e("design:type",Object)],Pq.prototype,"userChangedValue",void 0);_.x([_.L(),_.e("design:type",Object)],Pq.prototype,"disabled",void 0);_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent]),_.e("design:returntype")],Pq.prototype,"handleKeyDown",null);
_.x([_.B("input"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pq.prototype,"handleInput",null);_.x([_.B("blur"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pq.prototype,"handleBlur",null);_.x([_.H("value"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pq.prototype,"onValueChanged",null);
_.x([_.H("valid"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Pq.prototype,"onValidChanged",null);Pq=_.x([_.d({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Pq);
_.T(Pq,"ytd-clip-creation-text-input-renderer",function(){if(cl7!==void 0)return cl7;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return cl7=y},{mode:1});var G93;var fS3;var okX;var DP3;var zy3;var YNX=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};y.pendingStoryboardImages_={};y.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];y.tickLabelInterval=30;y.mediumTickInterval=5;y.largeTickInterval=15;y.aboveRulerHeight=32;y.rulerHeight=50;y.smallTickHeight=4;y.mediumTickHeight=8;y.largeTickHeight=16;y.mediaListeners_=
{};return y};
_.R(YNX,_.v);_.f=YNX.prototype;_.f.attached=function(){var y=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(W){W=_.z(["screen and (min-resolution: "+W+")","screen and (max-resolution: "+W+")"]);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=window.matchMedia(c);Z&&(y.mediaListeners_[c]=y.updatePixelRatio_.bind(y),Z.addEventListener?Z.addEventListener("change",y.mediaListeners_[c]):Z.addListener?Z.addListener(y.mediaListeners_[c]):delete y.mediaListeners_[c])}})};
_.f.detached=function(){this.setPlayer(null);for(var y=_.z(Object.keys(this.mediaListeners_)),W=y.next();!W.done;W=y.next()){var c=W.value;W=this.mediaListeners_[c];(c=window.matchMedia(c))&&(c.removeEventListener?c.removeEventListener("change",W):c.removeListener&&c.removeListener(W))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.f.onVisibilityChangedAction_=function(y){var W=this;y.visible&&!this.player_&&(y=_.HF())&&y.getPlayerPromise().then(function(c){W.setPlayer(c)})};
_.f.setPlayer=function(y){y&&this.set("player_",y)};
_.f.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.f.setUpCanvas_=function(){var y=this.rulerWidth,W=this.devicePixelRatio_,c=this.visible;this.set("canvasReady_",!1);if(c&&W!==0){c=this.aboveRulerHeight+this.rulerHeight;var Z=_.p(this.hostElement).querySelector("#ticks");Z.width=y*W;Z.height=c*W;Z.style.width=y+"px";Z.style.height=c+"px";Z.getContext("2d").scale(W,W);this.set("canvasReady_",!0)}};
_.f.drawRuler_=function(y,W,c,Z,G,D,Y,u,t,b,r,F){y&&c&&W&&(y=_.p(this.hostElement).querySelector("#ticks"),W=y.getContext("2d"),W.clearRect(0,0,y.width,y.height),W.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),W.lineWidth=2,W.beginPath(),W.moveTo(0,this.aboveRulerHeight),W.lineTo(y.width,this.aboveRulerHeight),W.moveTo(0,y.height),W.lineTo(y.width,y.height),W.stroke(),this.drawRulerTicks_(y,D,G,Z),this.drawStoryboardImages_(y,c,D,G,Z),W.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
W.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Y-D,Z,!1),this.rulerHeight),c=this.timeToPixels_(u-D,Z,!1),W.fillRect(c,this.aboveRulerHeight,y.width-c,this.rulerHeight),this.drawSpeedLines_(y,D,F))};
_.f.drawRulerTicks_=function(y,W,c,Z){var G=y.getContext("2d");G.save();G.lineWidth=1;for(var D=Math.floor(Math.max(0,W-this.tickLabelInterval));D<W+c;D++){G.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Y=(D-W)*Z;G.beginPath();G.moveTo(Y,y.height);var u=this.smallTickHeight;D%this.largeTickInterval===0?u=this.largeTickHeight:D%this.mediumTickInterval===0&&(u=this.mediumTickHeight);G.lineTo(Y,y.height-u);G.stroke();D%this.tickLabelInterval===0&&(G.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),G.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),G.fillText(QP(D),Y+4,12),G.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),G.moveTo(Y,0),G.lineTo(Y,this.aboveRulerHeight),G.stroke())}G.restore()};
_.f.percentToHex_=function(y){y=Math.round(y*255).toString(16);y.length<2&&(y="0"+y);return y};
_.f.drawSpeedLines_=function(y,W,c){var Z=y.getContext("2d");Z.save();var G=Math.min(25,Math.abs(c)-15)/25,D=y.width*.3*G,Y=y.width*-.3,u=y.width*1.3,t=this.aboveRulerHeight;y=y.height;var b=Math.round(4*G),r=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");r.length<7&&(r="#"+r.substring(1,4).repeat(2));var F=this.percentToHex_(.5+G/2);F=r+F;r+="00";if(G>0)for(G=0;G<b;G++){var K=Y+Math.random()*(u-Y),l=t+Math.random()*(y-t),N=D+W%D,P=Z.createLinearGradient(K,l,K+N,l);
c<0?(P.addColorStop(0,F),P.addColorStop(.4,F),P.addColorStop(.9,r)):(P.addColorStop(.1,r),P.addColorStop(.6,F),P.addColorStop(1,F));Z.strokeStyle=P;Z.lineWidth=1;Z.beginPath();Z.moveTo(K,l);Z.lineTo(K+N,l);Z.stroke()}Z.restore()};
_.f.getStoryboardForTime_=function(y,W,c){c===void 0&&(c=W.getNumberOfStoryboardLevels()-1);y=W.getStoryboardFrameIndex(y,c);return W.getStoryboardFrame(y,c)};
_.f.drawStoryboardImages_=function(y,W,c,Z,G){if(!this.disabled){y=y.getContext("2d");var D=this.getStoryboardForTime_(0,W);if(D){var Y=D.width/D.columns;D=D.height/D.rows;var u=Y/D,t=this.rulerHeight*u;t=this.tickLabelInterval*(u<this.tickLabelInterval*G/this.rulerHeight?1/Math.floor(this.tickLabelInterval*G/t):Math.round(t/(this.tickLabelInterval*G)));var b=t*G,r=this.rulerHeight,F=b/this.rulerHeight,K=Math.floor(Math.max(0,c-t));for(K-=K%t;K<c+Z;K+=t){var l=this.getStoryboardForTime_(K,W),N=this.getPreloadedStoryboard_(l.url);
if(N){var P=(K-c)*G,V=this.aboveRulerHeight,Q=l.column*Y,S=l.row*D;if(u<F){var cy=r/(b/u);l=Y;cy*=D;S+=(D-cy)/2}else l=b/(r*u)*Y,cy=D,Q+=(Y-l)/2;y.drawImage(N,Q,S,l,cy,P,V,b,r)}else this.fetchStoryboardImage_(l)}}}};
_.f.getPreloadedStoryboard_=function(y){return this.storyboardImages_.find(function(W){if(W.src==y)return!0;var c=W.src.indexOf(y);return c!=-1&&c==W.src.length-y.length})};
_.f.fetchStoryboardImage_=function(y){var W=this,c=this.getPreloadedStoryboard_(y.url),Z=this.pendingStoryboardImages_[y.url];c||Z!==void 0||(c=new Promise(function(G){var D=new Image(y.width,y.height);D.src=y.url;D.onload=function(){G(D)};
D.onerror=function(){G(null)}}),this.pendingStoryboardImages_[y.url]=c,c.then(function(G){G&&W.push("storyboardImages_",G);
return G}).finally(function(){delete W.pendingStoryboardImages_[y.url]}))};
_.f.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.f.timeToPixels_=function(y,W,c){y*=W;return c===void 0||c?y+"px":y};
_.f.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
var JY=YNX;JY.prototype.drawRuler_=JY.prototype.drawRuler_;JY.prototype.setUpCanvas_=JY.prototype.setUpCanvas_;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],JY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],JY.prototype,"start",void 0);_.x([_.L({value:30}),_.e("design:type",Number)],JY.prototype,"end",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],JY.prototype,"visible",void 0);_.x([_.L(),_.e("design:type",Object)],JY.prototype,"player_",void 0);_.x([_.L(),_.e("design:type",Number)],JY.prototype,"tickSpacing",void 0);_.x([_.L(),_.e("design:type",Number)],JY.prototype,"windowSizeSec",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],JY.prototype,"rulerWidth",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],JY.prototype,"rulerShift",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],JY.prototype,"canvasReady_",void 0);_.x([_.L({value:function(){return[]}}),
_.e("design:type",Array)],JY.prototype,"storyboardImages_",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],JY.prototype,"disabled",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],JY.prototype,"forceRender_",void 0);_.x([_.L({value:1}),_.e("design:type",Number)],JY.prototype,"devicePixelRatio_",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],JY.prototype,"windowSpeed",void 0);
_.x([_.H("visible","devicePixelRatio_","rulerWidth"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JY.prototype,"setUpCanvas_",null);
_.x([_.H("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.e("design:type",Function),_.e("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.e("design:returntype")],JY.prototype,"drawRuler_",null);JY=_.x([_.n6({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],JY);
_.T(JY,"yt-clip-creation-scrubber-canvas",function(){if(zy3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);zy3=y}y=zy3;return y},
{mode:2});var mPX;var s23;var u8e=function(){var y=_.v.apply(this,arguments)||this;y.start=0;y.end=30;y.visible=!1;y.draggingLeft_=!1;y.draggingRight_=!1;y.draggingRuler_=!1;y.draggingWindow_=!1;y.seekableStart=0;y.seekableEnd=0;y.rulerWidth_=0;y.rulerShift_=0;y.windowSlideSpeed=0;y.disabled=!1;y.initialized=!1;y.durationAccessibilityLabel="";y.activeLoopRange_=!1;y.rulerDragMouseStart_=0;y.rulerDragRulerStart_=0;y.rulerDragStartTime_=0;y.rulerDragEndTime_=0;y.dragMouseLastX_=0;y.scrollInterval_=null;y.scrubberVe_=null;y.boundHandlers_=
{};y.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return y};
_.R(u8e,_.v);_.f=u8e.prototype;
_.f.created=function(){var y=this;this.JSC$19797_playerEvents=new Map;this.JSC$19797_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19797_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19797_playerEvents.set("onStateChange",this.onStateChange_);var W={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(W).forEach(function(c){y.boundHandlers_[c]=W[c].bind(y)})};
_.f.attached=function(){this.activeLoopRange_=!1;_.p(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.p(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.se(156731)};
_.f.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.p(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.p(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.f.onVisibilityChangedAction_=function(y){var W=this;y.visible&&!this.player_&&(y=_.HF())&&y.getPlayerPromise().then(function(c){W.setPlayer(c)})};
_.f.setPlayer=function(y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19797_playerEvents);y&&(this.set("player_",y),this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$19797_playerEvents))};
_.f.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.f.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.f.beginHandleDrag_=function(y){this.disabled||(y.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=y.clientX,y.target===_.p(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():y.target===_.p(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.f.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.f.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.f.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.f.beginRulerDrag_=function(y){this.disabled||(y.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=y.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.f.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.f.beginWindowScroll_=function(){var y=this;this.scrollInterval_=setInterval(function(){var W=y.windowSlideSpeed;if(W=_.AHf(y.start,y.boundedRulerStartLimit_())?W-.1:_.AHf(y.end,y.boundedRulerEndLimit_())?W+.1:0){var c=y.capRulerOffset_(y.rulerShift_+W);c==y.rulerShift_?W=0:(y.set("rulerShift_",c),_.Z2(y.hostElement,"set-fixed-length-range",{start:y.start+W,duration:y.end-y.start}))}y.set("windowSlideSpeed",W)},33)};
_.f.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.f.endDrag_=function(){this.logClick();var y=void 0;this.draggingRight_?y=this.end-1:this.draggingLeft_&&(y=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,y);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))};
_.f.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.f.updateRulerSize_=function(){this.set("rulerWidth_",_.p(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.f.handleMouseDrag_=function(y){y.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(y):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(y):this.draggingWindow_&&this.handleWindowDrag_(y))};
_.f.handleRulerDrag_=function(y){y=this.pixelsToTime_(y.clientX-this.rulerDragMouseStart_);y=this.capRulerOffset_(this.rulerDragRulerStart_-y);this.set("rulerShift_",y);var W=this.rulerDragStartTime_-(this.rulerDragRulerStart_-y);_.Z2(this.hostElement,"set-fixed-length-range",{start:W,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-y)-W})};
_.f.handleWindowDrag_=function(y){var W=y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=y.clientX;y=this.pixelsToTime_(W);_.Z2(this.hostElement,"set-fixed-length-range",{start:this.start+y,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.f.capRulerOffset_=function(y){var W=this.seekableStart-this.pixelsToTime_(16),c=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(W,y),c)};
_.f.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.f.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.f.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.f.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.f.handleWindowHandleDrag_=function(y){var W=y.clientX-this.dragMouseLastX_;this.dragMouseLastX_=y.clientX;y=this.pixelsToTime_(W);if(this.draggingLeft_){var c=this.start+y;var Z=this.end}else this.draggingRight_&&(c=this.start,Z=this.end+y);_.Z2(this.hostElement,"set-range",{start:c,end:Z,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.f.onVideoProgress_=function(y){this.disabled||(y=this.timeToPixels_(y-this.rulerShift_,this.tickSpacing_),_.p(this.hostElement).querySelector("#playhead").style.transform="translateX("+y+")")};
_.f.onClipCreationDisable_=function(){this.endDrag_()};
_.f.timeToPixels_=function(y,W,c){y*=W;return c===void 0||c?y+"px":y};
_.f.pixelsToTime_=function(y){return y/this.tickSpacing_};
_.f.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.f.centerRuler_=function(y,W,c){this.set("rulerShift_",this.capRulerOffset_(y+(W-y)/2-c/2))};
_.f.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.f.updateLoopRange_=function(y,W,c,Z,G,D,Y){y&&(W&&Z&&!c?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(y.pauseVideo(),y.seekTo(G,!1,void 0,void 0,50)):this.draggingRight_?(y.pauseVideo(),y.seekTo(D-.1,!1,void 0,void 0,50)):(Y!==void 0?y.seekTo(Y,!0,void 0,void 0,50):(W=y.getCurrentTime(),W<G||W>D?y.seekTo(G,!0,void 0,void 0,50):y.seekTo(W,!0,void 0,void 0,50)),y.playVideo()),y.setLoopRange({startTimeMs:G*1E3,endTimeMs:D*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(y.getCurrentTime())):
this.activeLoopRange_&&(y.setLoopRange(null),this.activeLoopRange_=!1))};
_.f.updateHandles_=function(){_.p(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.p(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.f.updateRuler_=function(){var y=this.end,W=this.start,c=this.draggableStartLimit_(),Z=this.draggableEndLimit_();(W<c-.001||y>Z+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.f.computeDurationLabel_=function(y,W){return y?y.replace("$clip_length",parseFloat(W).toFixed(1)):""};
_.f.computeDuration_=function(y,W){return this.isValidTime_(y)&&this.isValidTime_(W)&&y<W?W-y:0};
_.f.isValidTime_=function(y){return isNaN(parseFloat(y))||y<0?!1:this.player_?y>=this.seekableStart&&y<=this.seekableEnd:!0};
_.f.computeWindowSizeSec_=function(y,W,c){return Math.min((y||12E4)/1E3,c-W)};
_.f.computeTickSpacing_=function(y,W){return W?W/y:1};
_.f.onDragStateChanged_=function(){_.Z2(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.f.centerRangeOnTime_=function(y){var W=this.duration;y=QHM(y-W/2,W,this.seekableStart,this.seekableEnd);_.Z2(this.hostElement,"set-fixed-length-range",{start:y.start,duration:y.end-y.start})};
_.f.nearlyLessThan_=function(y,W,c){return y+(c===void 0?1E-6:c)<W};
_.f.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var y=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(y,this.start)||this.nearlyLessThan_(this.end,y))&&this.centerRangeOnTime_(y)}};
_.f.onStateChange_=function(y){this.visible&&!this.disabled&&y==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.f.computeDragState_=function(y,W,c,Z){return y?"left":W?"right":c?"ruler":Z?"window":"none"};
_.f.logClick=function(){var y=_.NR(),W=_.EL();y&&W&&this.scrubberVe_&&(_.O("combine_ve_grafts")?_.qY(_.Zz(),this.scrubberVe_,W):_.HA(y,W,this.scrubberVe_),_.SG(y,this.scrubberVe_))};
var VX=u8e;VX.prototype.onDragStateChanged_=VX.prototype.onDragStateChanged_;VX.prototype.updateRuler_=VX.prototype.updateRuler_;VX.prototype.updateHandles_=VX.prototype.updateHandles_;VX.prototype.onUpdateLoopRange=VX.prototype.onUpdateLoopRange;VX.prototype.onInitializedChanged_=VX.prototype.onInitializedChanged_;VX.prototype.onVisibleChanged_=VX.prototype.onVisibleChanged_;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],VX.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",Object)],VX.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"start",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"end",void 0);_.x([_.L({computed:"computeDuration_(start, end)"}),_.e("design:type",Number)],VX.prototype,"duration",void 0);
_.x([_.L(),_.e("design:type",String)],VX.prototype,"lengthTemplate",void 0);_.x([_.L({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.e("design:type",String)],VX.prototype,"durationLabel",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"visible",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"player_",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"draggingLeft_",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"draggingRight_",void 0);
_.x([_.L(),_.e("design:type",Object)],VX.prototype,"draggingRuler_",void 0);_.x([_.L({value:!1}),_.e("design:type",Object)],VX.prototype,"draggingWindow_",void 0);_.x([_.L({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.e("design:type",Number)],VX.prototype,"tickSpacing_",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"seekableStart",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"seekableEnd",void 0);
_.x([_.L(),_.e("design:type",Number)],VX.prototype,"windowSizeMs",void 0);_.x([_.L({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.e("design:type",Number)],VX.prototype,"windowSizeSec_",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"rulerWidth_",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"rulerShift_",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"windowSlideSpeed",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],VX.prototype,"disabled",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"initialized",void 0);_.x([_.L(),_.e("design:type",Object)],VX.prototype,"durationAccessibilityLabel",void 0);_.x([_.L({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.e("design:type",String)],VX.prototype,"dragState",void 0);
_.x([_.H("visible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VX.prototype,"onVisibleChanged_",null);_.x([_.H("initialized"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VX.prototype,"onInitializedChanged_",null);_.x([_.H("player_","visible","disabled","initialized","start","end"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VX.prototype,"onUpdateLoopRange",null);
_.x([_.H("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VX.prototype,"updateHandles_",null);_.x([_.H("start","end"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VX.prototype,"updateRuler_",null);
_.x([_.H("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VX.prototype,"onDragStateChanged_",null);VX=_.x([_.n6({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],VX);
_.T(VX,"yt-clip-creation-scrubber-view",function(){if(s23===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;mPX===void 0&&(mPX=document.createElement("template"));var Z=mPX;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);s23=y}y=s23;return y},{mode:2});var tt3=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};y.startHighlightTimeout=0;y.endHighlightTimeout=0;return y};
_.R(tt3,_.v);_.f=tt3.prototype;_.f.attached=function(){var y=this;this.startInput.addEventListener("input",function(W){return y.handleStartInput_(W)});
this.endInput.addEventListener("input",function(W){return y.handleEndInput_(W)});
this.startInput.addEventListener("focusout",function(W){return y.handleStartBlur_(W)});
this.endInput.addEventListener("focusout",function(W){return y.handleEndBlur_(W)})};
_.f.setPlayer=function(y){this.set("player_",y)};
_.f.onSetFixedLengthRange_=function(y){var W=y.detail;y=W.start;var c=W.duration,Z=W.startLimit;W=W.endLimit;Z||(Z=this.seekableStart_);W||(W=this.seekableEnd_);y=QHM(y,c,Z,W);this.start=y.start;this.end=y.end};
_.f.onSetRange_=function(y){var W=y.detail;y=W.start;var c=W.end,Z=W.startLimit;W=W.endLimit;Z||(Z=this.seekableStart_);W||(W=this.seekableEnd_);if(y=A9f(y,c,Z,W,this.minLengthSec,this.maxLengthSec))this.start=y.start,this.end=y.end};
_.f.updateInputs_=function(){var y=this.end,W=this.start;this.startInput.focused||(this.startInput.value=QP(W,!0));this.endInput.focused||(this.endInput.value=QP(y,!0))};
_.f.handleStartInput_=function(y){y=C9F(y.target.value);if(y===null)this.set("startValid",!1);else{var W=this.end,c=A9f(y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("endWillUpdate",c.end!==W),this.set("startValid",c.start===y)):this.set("startValid",!1)}};
_.f.handleEndInput_=function(y){y=C9F(y.target.value);if(y===null)this.set("endValid",!1);else{var W=this.start,c=h6F(this.start,y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("startWillUpdate",c.start!==W),this.set("endValid",c.end===y)):this.set("endValid",!1)}};
_.f.handleStartBlur_=function(y){y=C9F(y.target.value);y===null?this.startInput.value=QP(this.start,!0):this.forceUpdateInputs_(A9f(y,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.f.handleEndBlur_=function(y){y=C9F(y.target.value);y===null?this.endInput.value=QP(this.end,!0):this.forceUpdateInputs_(h6F(this.start,y,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.f.forceUpdateInputs_=function(y){y&&(this.start=y.start,this.end=y.end);this.startInput.value=QP(this.start,!0);this.endInput.value=QP(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.f.initializeClipRange_=function(){var y=this.seekableEnd_,W=this.seekableStart_,c=this.visible_,Z=this.player_;if(!Z||!c||W===null||!y)this.set("initialized",!1);else if(!this.initialized){var G=Z.getCurrentTime(),D=this.getDefaultLengthSec_();c=Z.getVideoData();var Y=Z.getPlayerState()==1,u=c.isLive;D=Math.min(D,y-W);G=Math.max(0,G);y=u?h6F(G-D,G,W,y,this.minLengthSec,this.maxLengthSec):Y?QHM(G-D/2,D,W,y):QHM(G,D,W,y);this.start=y.start;this.end=y.end;this.set("initialized",!0);c.isLive&&Z.seekTo(y.start);
this.startInput.value=QP(this.start,!0);this.endInput.value=QP(this.end,!0)}};
_.f.onStartChanged_=function(){var y=this;_.Z2(this.hostElement,"start-changed",{start:this.start});var W;isNaN((W=this.oldStart)!=null?W:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){y.set("highlightStart",!1);y.startHighlightTimeout=0;y.oldStart=y.start},3E3))};
_.f.onEndChanged_=function(){var y=this;_.Z2(this.hostElement,"end-changed",{end:this.end});var W;isNaN((W=this.oldEnd)!=null?W:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){y.set("highlightEnd",!1);y.endHighlightTimeout=0;y.oldEnd=y.end},3E3))};
_.f.onVisibilityChangedAction_=function(y){var W=this;this.set("visible_",y.visible);this.visible_&&!this.player_&&(y=_.HF())&&y.getPlayerPromise().then(function(c){W.setPlayer(c)})};
_.f.computeMinLengthSec_=function(y){return y/1E3||5};
_.f.computeMaxLengthSec_=function(y){return y/1E3||60};
_.f.computeDefaultLengthSec_=function(y){return y/1E3};
_.f.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.f.computeSeekableStart_=function(y,W){return y&&W?y.getProgressState(1).seekableStart:0};
_.f.computeSeekableEnd_=function(y,W){return y&&W?y.getProgressState(1).seekableEnd:0};
_.f.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.f.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.f.onDragState_=function(y){this.set("highlightStart",y.detail.startChanging);this.set("highlightEnd",y.detail.endChanging)};
var Ct=tt3;Ct.prototype.onDragState_=Ct.prototype.onDragState_;Ct.prototype.onEndChanged_=Ct.prototype.onEndChanged_;Ct.prototype.onStartChanged_=Ct.prototype.onStartChanged_;Ct.prototype.initializeClipRange_=Ct.prototype.initializeClipRange_;Ct.prototype.updateInputs_=Ct.prototype.updateInputs_;Ct.prototype.onSetRange_=Ct.prototype.onSetRange_;Ct.prototype.onSetFixedLengthRange_=Ct.prototype.onSetFixedLengthRange_;
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ct.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ct.prototype,"data",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],Ct.prototype,"start",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],Ct.prototype,"startValid",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Ct.prototype,"startWillUpdate",void 0);_.x([_.L({value:30}),_.e("design:type",Number)],Ct.prototype,"end",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],Ct.prototype,"endValid",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Ct.prototype,"endWillUpdate",void 0);_.x([_.L({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.e("design:type",Number)],Ct.prototype,"minLengthSec",void 0);
_.x([_.L({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.e("design:type",Number)],Ct.prototype,"maxLengthSec",void 0);_.x([_.L({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.e("design:type",Number)],Ct.prototype,"defaultLengthSec",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Ct.prototype,"visible_",void 0);_.x([_.L(),_.e("design:type",Object)],Ct.prototype,"player_",void 0);
_.x([_.L({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.e("design:type",Number)],Ct.prototype,"seekableStart_",void 0);_.x([_.L({computed:"computeSeekableEnd_(player_, visible_)"}),_.e("design:type",Number)],Ct.prototype,"seekableEnd_",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Ct.prototype,"initialized",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Ct.prototype,"disabled",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Ct.prototype,"highlightStart",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],Ct.prototype,"highlightEnd",void 0);_.x([_.jj("#start"),_.e("design:type",HTMLInputElement)],Ct.prototype,"startInput",void 0);_.x([_.jj("#end"),_.e("design:type",HTMLInputElement)],Ct.prototype,"endInput",void 0);
_.x([_.B("set-fixed-length-range"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ct.prototype,"onSetFixedLengthRange_",null);_.x([_.B("set-range"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ct.prototype,"onSetRange_",null);_.x([_.H("start","end"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ct.prototype,"updateInputs_",null);
_.x([_.H("player_","visible_","seekableStart_","seekableEnd_"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ct.prototype,"initializeClipRange_",null);_.x([_.H("start"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ct.prototype,"onStartChanged_",null);_.x([_.H("end"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ct.prototype,"onEndChanged_",null);
_.x([_.B("clips-drag-state"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Ct.prototype,"onDragState_",null);Ct=_.x([_.n6({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Ct);
_.T(Ct,"yt-clip-creation-scrubber-renderer",function(){if(DP3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;okX===void 0&&(okX=document.createElement("template"));var Z=okX;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);DP3=y}y=DP3;return y},{mode:2});var nkf=function(){var y=_.v.apply(this,arguments)||this;y.player_=null;y.JSC$19811_playerEvents=new Map;y.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return y};
_.R(nkf,_.v);_.f=nkf.prototype;_.f.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"}}}};
_.f.created=function(){this.JSC$19811_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19811_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19811_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19811_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.f.detached=function(){this.setPlayer(null)};
_.f.onVisibilityChangedAction_=function(y){var W=this,c;if((c=this.data)==null?0:c.externalVideoId){var Z;this.videoId=(Z=this.data)==null?void 0:Z.externalVideoId}this.getPlayer().then(function(G){if(y.visible)W.returnTime=G.getCurrentTime(),W.isAtLiveHead=G.getProgressState().isAtLiveHead;else{var D=W.returnTime;W.isAtLiveHead&&(D=Number.POSITIVE_INFINITY);G.seekTo(D,void 0,void 0,void 0,51)}})};
_.f.getPlayer=function(){var y=this;if(!this.player_){var W=_.HF();if(W)return W.getPlayerPromise().then(function(c){y.setPlayer(c);return c})}return Promise.resolve(this.player_)};
_.f.setPlayer=function(y){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19811_playerEvents);if(y){this.player_=y;var W;((W=this.data)==null?0:W.externalVideoId)||this.set("videoId",y.getVideoData().video_id||"");var c;(y==null?void 0:(c=y.getPresentingPlayerType)==null?void 0:c.call(y))===2&&(this.set("isAdPlaying",!0),_.GG(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(y,this.JSC$19811_playerEvents)}};
_.f.ready=function(){_.p(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.f.onTitleChanged_=function(y){this.set("titleValue",y.detail.title)};
_.f.onStartChanged_=function(y){this.set("start",y.detail.start)};
_.f.onEndChanged_=function(y){this.set("end",y.detail.end)};
_.f.onTitleValidChanged_=function(y){this.set("titleValid",y.detail.valid)};
_.f.onStartValidChanged_=function(y){this.set("startValid",y.detail.valid)};
_.f.onEndValidChanged_=function(y){this.set("endValid",y.detail.valid)};
_.f.onVideoDataChange_=function(){var y;if((y=this.data)==null||!y.externalVideoId){var W;this.set("videoId",((W=this.player_)==null?void 0:W.getVideoData().video_id)||"")}};
_.f.computeFormValid_=function(y,W,c,Z){return!!(y&&W&&c&&Z)};
_.f.computeCancelButton_=function(y,W,c){return y&&_.g(y,_.RU)?{buttonRenderer:Object.assign({},_.g(y,_.RU),{isDisabled:W||c})}:null};
_.f.computeSubmitButton_=function(y,W,c){return y&&_.g(y,_.RU)?{buttonRenderer:Object.assign({},_.g(y,_.RU),{command:void 0,isDisabled:!this.formValid||W||c})}:null};
_.f.computeSubmitCommand_=function(y){return y||null};
_.f.onSubmit_=function(y){var W=this;y.stopPropagation();y.preventDefault();this.submitCommand_&&(y={},y.comment_text=this.titleValue,y.clip_external_video_id=this.videoId,y.clip_offset_ms=parseInt(this.start*1E3,10),y.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.D2(this.hostElement,[this.submitCommand_,y]).then(function(){W.set("isLoading_",!1)},function(){W.set("isLoading_",!1)}))};
_.f.playerAdStartHandler_=function(){_.GG(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler_=function(){_.GG(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.f.onVideoProgress_=function(){var y=this;this.getPlayer().then(function(W){var c,Z=(W==null?void 0:(c=W.getPresentingPlayerType)==null?void 0:c.call(W))===2;y.isAdPlaying!==Z&&(Z?y.playerAdStartHandler_():y.playerAdEndHandler_())})};
var QX=nkf;QX.prototype.onEndValidChanged_=QX.prototype.onEndValidChanged_;QX.prototype.onStartValidChanged_=QX.prototype.onStartValidChanged_;QX.prototype.onTitleValidChanged_=QX.prototype.onTitleValidChanged_;QX.prototype.onEndChanged_=QX.prototype.onEndChanged_;QX.prototype.onStartChanged_=QX.prototype.onStartChanged_;QX.prototype.onTitleChanged_=QX.prototype.onTitleChanged_;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],QX.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",Object)],QX.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],QX.prototype,"data",void 0);_.x([_.L({value:""}),_.e("design:type",String)],QX.prototype,"titleValue",void 0);
_.x([_.L({value:!1}),_.e("design:type",Boolean)],QX.prototype,"titleValid",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],QX.prototype,"start",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],QX.prototype,"startValid",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],QX.prototype,"end",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],QX.prototype,"endValid",void 0);_.x([_.L({value:""}),_.e("design:type",String)],QX.prototype,"videoId",void 0);
_.x([_.L({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.e("design:type",Boolean)],QX.prototype,"formValid",void 0);_.x([_.L({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.e("design:type",Object)],QX.prototype,"submitButton_",void 0);_.x([_.L({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.e("design:type",Object)],QX.prototype,"submitCommand_",void 0);
_.x([_.L({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.e("design:type",Object)],QX.prototype,"cancelButton_",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],QX.prototype,"isLoading_",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],QX.prototype,"isAdPlaying",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],QX.prototype,"returnTime",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],QX.prototype,"isAtLiveHead",void 0);
_.x([_.B("title-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QX.prototype,"onTitleChanged_",null);_.x([_.B("start-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QX.prototype,"onStartChanged_",null);_.x([_.B("end-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QX.prototype,"onEndChanged_",null);
_.x([_.B("title-valid-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QX.prototype,"onTitleValidChanged_",null);_.x([_.B("start-valid-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QX.prototype,"onStartValidChanged_",null);_.x([_.B("end-valid-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QX.prototype,"onEndValidChanged_",null);
QX=_.x([_.n6({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],QX);
_.T(QX,"yt-clip-creation-renderer",function(){if(fS3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;G93===void 0&&(G93=document.createElement("template"));var Z=G93;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);fS3=y}y=fS3;return y},{mode:2});var Xaf=function(){return _.v.apply(this,arguments)||this};
_.R(Xaf,_.v);Xaf.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"}}}};
Xaf.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(y){return y.hasOwnProperty("clipCreationRenderer")})&&_.GG(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
var AY=Xaf;AY.prototype.onPanelContentVisibleChanged=AY.prototype.onPanelContentVisibleChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],AY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Rx.YtVisibilityBehavior),_.e("design:type",Object)],AY.prototype,"ytVisibilityBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],AY.prototype,"ytdReduxBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],AY.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],AY.prototype,"panelContentVisible",void 0);_.x([_.H("panelContentVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],AY.prototype,"onPanelContentVisibleChanged",null);AY=_.x([_.d({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],AY);
_.T(AY,"ytd-clip-section-renderer",function(){if(kY7!==void 0)return kY7;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kY7=y},{mode:1});var bLf;var rlX=function(){return _.v.apply(this,arguments)||this};
_.R(rlX,_.v);_.f=rlX.prototype;
_.f.onKeyDown=function(y){if(this.snippetElements.length!==0&&(y=y.keyCode,y===38||y===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);y===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.IT(this.highlightedIndex,-1,this.snippetElements.length);y=this.snippetElements.length;var W=this.highlightedIndex%y;this.highlightedIndex=W*y<0?W+y:W;y=this.snippetElements[this.highlightedIndex];this.highlightSnippet(y);this.ensureVisible(y)}};
_.f.onKeyUp=function(y){var W=this;R09(y)&&(y.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.KX.cancelJob(this.inputTimerId),this.inputTimerId=_.KX.addLowPriorityJob(function(){W.typedValue&&(W.fetchSnippets(W.typedValue),W.logInputGesture(W.data))},1E3))};
_.f.onClick=function(y){(y=_.l3W(y.target,null,"snippet-item"))&&this.selectSnippet(y)};
_.f.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.f.ready=function(){var y=this;this.inputElement.addEventListener("focus",function(){y.snippetsWrapper.style.removeProperty("display")})};
_.f.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.f.getSourceTimelines=function(){if(!this.data)return[];var y=[];if(this.data.searchInVideoSources)for(var W=_.z(this.data.searchInVideoSources),c=W.next();!c.done;c=W.next())c=c.value,c==="SEARCH_IN_VIDEO_SOURCE_ASR"?y.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):c==="SEARCH_IN_VIDEO_SOURCE_OCR"&&y.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return y};
_.f.fetchSnippets=function(y){var W=_.GG(this.hostElement,"yt-get-current-video-id-action")[0],c=this.getSourceTimelines();y={getSearchInVideoCommand:{externalVideoId:W,query:y!=null?y:"",sourceTimelines:c},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}})};
_.f.filterSnippets=function(y,W){var c=this;if(W){this.filteredSnippets=(0,_.Eb.unsafeClone)(y);var Z=RegExp(_.JUt(W),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Y){return Z.test(c.ytRendererBehavior.getSimpleString(Y.snippet))});
y=_.z(this.filteredSnippets);for(var G=y.next();!G.done;G=y.next()){G=G.value;var D=this.ytRendererBehavior.getSimpleString(G.snippet);G.snippet={runs:[{text:D.substring(0,D.toLowerCase().indexOf(W))},{text:D.substring(D.toLowerCase().indexOf(W),D.toLowerCase().indexOf(W)+W.length),bold:!0},{text:D.substring(D.toLowerCase().indexOf(W)+W.length,D.length)}]}}}else this.filteredSnippets=y};
_.f.onUpdateSearchInVideoResults=function(y){if(!(this.snippets.length>0)){var W,c,Z;if((Z=(W=_.g(y,BfX))==null?void 0:(c=W.results)==null?void 0:c.length)!=null&&Z){var G;this.filteredSnippets=this.snippets=((G=_.g(y,BfX))==null?void 0:G.results).map(function(D){var Y,u,t;return{startMs:D==null?void 0:(Y=D.searchInVideoResultRenderer)==null?void 0:Y.startMs,startTimeText:D==null?void 0:(u=D.searchInVideoResultRenderer)==null?void 0:u.startTimeText,snippet:D==null?void 0:(t=D.searchInVideoResultRenderer)==
null?void 0:t.snippet}})}}};
_.f.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};
_.f.highlightSnippet=function(y){y.classList.add("highlighted")};
_.f.removeSnippetHighlight=function(y){y.classList.remove("highlighted")};
_.f.selectSnippet=function(y){this.typedValue=String(y.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(y);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.f.ensureVisible=function(y){var W=this.snippetsWrapper.scrollTop,c=W+this.snippetsWrapper.clientHeight,Z=y.offsetTop-this.snippetsWrapper.offsetTop;y=Z+y.clientHeight;Z<W?this.snippetsWrapper.scrollTop-=W-Z:y>c&&(this.snippetsWrapper.scrollTop+=y-c)};
_.f.seekPlayer=function(y){var W,c;return _.m(function(Z){if(Z.nextAddress==1){if(!y)return Z.jumpTo(0);W=Number(y.dataset.startOffset);return _.n(Z,_.Lx().getPlayerPromise(),3)}c=Z.yieldResult;c.seekTo(W/1E3,!0);c.wakeUpControls();_.F2(Z)})};
_.f.logInputGesture=function(y){var W=_.NR();W&&(y==null?0:y.trackingParams)&&_.TG(W,_.Dz(y.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.f.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("typed-value-changed",this.typedValue))};
_.f.updateTypedValueFromBinding=function(y){this.typedValue=y.currentTarget.value};
var hY=rlX;hY.prototype.typedValueChangedForBinding=hY.prototype.typedValueChangedForBinding;hY.prototype.dataChanged=hY.prototype.dataChanged;hY.prototype.panelContentVisibleChanged=hY.prototype.panelContentVisibleChanged;hY.prototype.onClick=hY.prototype.onClick;hY.prototype.onKeyUp=hY.prototype.onKeyUp;hY.prototype.onKeyDown=hY.prototype.onKeyDown;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],hY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hY.prototype,"data",void 0);_.x([_.L({value:[]}),_.e("design:type",Array)],hY.prototype,"snippets",void 0);_.x([_.L({value:[]}),_.e("design:type",Array)],hY.prototype,"filteredSnippets",void 0);_.x([_.L({value:[]}),_.e("design:type",Array)],hY.prototype,"snippetElements",void 0);
_.x([_.jj("#siv-input"),_.e("design:type",HTMLElement)],hY.prototype,"inputElement",void 0);_.x([_.jj("#siv-snippets-wrapper"),_.e("design:type",HTMLElement)],hY.prototype,"snippetsWrapper",void 0);_.x([_.L(),_.e("design:type",String)],hY.prototype,"typedValue",void 0);_.x([_.L({value:-1}),_.e("design:type",Number)],hY.prototype,"highlightedIndex",void 0);_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[_.zF]),_.e("design:returntype")],hY.prototype,"onKeyDown",null);
_.x([_.B("keyup"),_.e("design:type",Function),_.e("design:paramtypes",[_.zF]),_.e("design:returntype")],hY.prototype,"onKeyUp",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],hY.prototype,"onClick",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],hY.prototype,"panelContentVisible",void 0);
_.x([_.H("panelContentVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hY.prototype,"panelContentVisibleChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hY.prototype,"dataChanged",null);_.x([_.H("typedValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hY.prototype,"typedValueChangedForBinding",null);
hY=_.x([_.d({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],hY);
_.T(hY,"ytd-search-in-video-renderer",function(){if(bLf!==void 0)return bLf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return bLf=y},{mode:1});var FTf;var Bq=function(){return _.v.apply(this,arguments)||this};
_.R(Bq,_.v);Bq.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Bq.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]]"}}}}}};
Bq.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var y,W,c,Z,G=(W=_.g((y=this.data)==null?void 0:y.onClickCommand,_.WSV))==null?void 0:(c=W.item)==null?void 0:(Z=c.notificationTextRenderer)==null?void 0:Z.successResponseText;G&&_.S6I(this.hostElement,G)}};
_.dJ.Object.defineProperties(Bq.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;return this.isProductPlaceholder&&((y=this.data)==null?void 0:(W=y.hiddenProductOptions)==null?void 0:W.showDropCountdown)&&!!((c=this.data)==null?0:(Z=c.hiddenProductOptions)==null?0:Z.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var y;return!this.isProductPlaceholder&&!((y=this.data)==null?0:y.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null?0:y.priceReplacementText)&&!((W=this.data)==null||!W.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
var Hq=Bq;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Hq.prototype,"componentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Hq.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("isProductPlaceholder"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hq.prototype,"useCenterLayoutContainer",null);_.x([_.L({computed:"computeButtonOverride(data)"}),_.e("design:type",Object)],Hq.prototype,"buttonOverride",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hq.prototype,"isProductPlaceholder",null);
_.x([_.A("isProductPlaceholder"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hq.prototype,"showDropCountdown",null);_.x([_.A("isProductPlaceholder","data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hq.prototype,"showBrandName",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hq.prototype,"showPriceReplacementText",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hq.prototype,"showPrice",null);
_.x([_.A("isProductPlaceholder"),_.e("design:type",Object),_.e("design:paramtypes",[])],Hq.prototype,"showMetadata",null);Hq=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Hq);
_.T(Hq,"ytd-product-list-item-renderer",function(){if(FTf!==void 0)return FTf;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return FTf=y},{mode:1});var UPX;var $Pf=function(){return _.v.apply(this,arguments)||this};
_.R($Pf,_.v);$Pf.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
$Pf.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
$Pf.prototype.panelContentVisibleChanged=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return y.playerApi?c.jumpTo(2):_.n(c,_.Lx().getPlayerPromise(),3);c.nextAddress!=2&&(y.playerApi=c.yieldResult);(W=y.playerApi)==null||W.productsInVideoVisibilityUpdated(!!y.panelContentVisible);_.F2(c)})};
var Lt=$Pf;Lt.prototype.panelContentVisibleChanged=Lt.prototype.panelContentVisibleChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Lt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Lt.prototype,"panelContentVisible",void 0);_.x([_.L(),_.e("design:type",Object)],Lt.prototype,"data",void 0);
_.x([_.H("panelContentVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],Lt.prototype,"panelContentVisibleChanged",null);Lt=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Lt);
_.T(Lt,"ytd-product-list-renderer",function(){if(UPX!==void 0)return UPX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return UPX=y},{mode:1});var KT9;var OLf=function(){var y=_.v.apply(this,arguments)||this;y.hideTimestamps=!!_.cj("hide-transcript-timestamps");y.currentCueIndex=-1;y.flatCues=[];y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};y.TEST_ONLY={getFlatCues:function(){return y.flatCues}};
return y};
_.R(OLf,_.v);_.f=OLf.prototype;_.f.hideTimestampsChanged=function(){_.Wj("hide-transcript-timestamps",this.hideTimestamps)};
_.f.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.f.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.f.dataChanged=function(){var y;if((y=this.data)!=null&&y.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;y=_.z(this.data.cueGroups);for(var W=y.next();!W.done;W=y.next()){W=_.z(_.g(W.value,HfF).cues);for(var c=W.next();!c.done;c=W.next())this.flatCues.push(Number(_.g(c.value,LfF).startOffsetMs))}}};
_.f.onYtPlayerTimeChanged=function(y){if(!(y<0)){for(var W=this.currentCueIndex,c=W;;){var Z=c>=0?this.flatCues[c]/1E3:-1;if(y+.5<Z)--c;else if(Z=c+1<this.flatCues.length?this.flatCues[c+1]/1E3:Infinity,y+.5>Z)c+=1;else break}c!==W&&(W>=0&&((y=this.getCueElement(W))&&y.classList.remove("active"),(W=this.getCueGroupElement(W))&&W.classList.remove("active")),(W=this.getCueElement(c))&&W.classList.add("active"),(W=this.getCueGroupElement(c))&&W.classList.add("active"),this.currentCueIndex=c,this.isHovered||
this.scrollElementToTop(c))}};
_.f.scrollElementToTop=function(y){y=this.getCueElement(y>=3?y-3:0);this.hostElement.scrollTop=Math.min(y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.f.getCueElement=function(y){return _.p(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[y]+'"]')};
_.f.getCueGroupElement=function(y){return(y=this.getCueElement(y))&&y.parentElement?y.parentElement.parentElement:null};
_.f.onTap=function(y){var W=_.hq(y);y.target.classList.contains("cue")&&this.seekCueElement(W)};
_.f.onKeyPress=function(y){y.keyCode==13&&(y=_.l3W(y.target,null,"cue"))&&this.seekCueElement(y)};
_.f.seekCueElement=function(y){y=Number(y.getAttribute("start-offset"));_.GG(this.hostElement,"yt-transcript-player-seek",[y/1E3])};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
var vq=OLf;vq.prototype.onMouseLeave=vq.prototype.onMouseLeave;vq.prototype.onMouseEnter=vq.prototype.onMouseEnter;vq.prototype.onKeyPress=vq.prototype.onKeyPress;vq.prototype.onTap=vq.prototype.onTap;vq.prototype.dataChanged=vq.prototype.dataChanged;vq.prototype.hideTimestampsChanged=vq.prototype.hideTimestampsChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],vq.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vq.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],vq.prototype,"hideTimestamps",void 0);_.x([_.L(),_.e("design:type",Boolean)],vq.prototype,"isHovered",void 0);_.x([_.H("hideTimestamps"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vq.prototype,"hideTimestampsChanged",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vq.prototype,"dataChanged",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],vq.prototype,"onTap",null);_.x([_.B("keypress"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],vq.prototype,"onKeyPress",null);
_.x([_.B("mouseenter"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vq.prototype,"onMouseEnter",null);_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vq.prototype,"onMouseLeave",null);vq=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],vq);
_.T(vq,"ytd-transcript-body-renderer",function(){if(KT9!==void 0)return KT9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return KT9=y},{mode:1});var gk0;var Ryn=function(){var y=_.v.apply(this,arguments)||this;y.darkerPanels=_.O("web_watch_darker_panels");return y};
_.R(Ryn,_.v);Ryn.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
var d7=Ryn;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],d7.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],d7.prototype,"darkerPanels",void 0);d7=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],d7);
_.T(d7,"ytd-transcript-footer-renderer",function(){if(gk0!==void 0)return gk0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return gk0=y},{mode:1});var lSn;var Ekf;var NV3=function(){var y=_.v.apply(this,arguments)||this;y.systemIcons=_.O("kevlar_system_icons");y.showClearButton=!1;return y};
_.R(NV3,_.v);_.f=NV3.prototype;_.f.handleInput=function(y){var W=this;y.target.value.length?_.gp(this,"ytdTranscriptSearchBoxSearch",function(){W.emitSearchEvent(y)},500):(_.$fH(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=y.target.value.length>0};
_.f.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.f.handleClick=function(){var y,W=(y=this.data)==null?void 0:y.trackingParams;W&&_.yk(_.Zz(),W)};
_.f.handleClear=function(){_.$fH(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var y,W,c=(W=_.g((y=this.data)==null?void 0:y.clearButton,_.RU))==null?void 0:W.trackingParams;c&&_.yk(_.Zz(),c);this.clear()};
_.f.emitSearchEvent=function(y){_.Z2(this.hostElement,"yt-transcript-search-box-search",{query:y.target.value});var W,c;(y=(c=_.g((W=this.data)==null?void 0:W.searchButton,_.RU))==null?void 0:c.trackingParams)&&_.yk(_.Zz(),y)};
_.f.emitClearEvent=function(){_.Z2(this.hostElement,"yt-transcript-search-box-clear")};
_.dJ.Object.defineProperties(NV3.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.p(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
var SE=NV3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],SE.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],SE.prototype,"systemIcons",void 0);SE=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],SE);
_.T(SE,"ytd-transcript-search-box-renderer",function(){if(Ekf!==void 0)return Ekf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Ekf=y},{mode:1});var ISX;var pa0;var TL=function(){return _.v.apply(this,arguments)||this};
_.R(TL,_.v);TL.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var y,W;this.sectionHeaderAriaLabel=(y=this.data)==null?void 0:(W=y.accessibility)==null?void 0:W.accessibilityData.label}};
TL.prototype.fireSelectedEvent=function(y){_.Z2(this.hostElement,"ytd-transcript-section-header",{startMs:y})};
TL.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
TL.prototype.handleKeyPress=function(y){this.data&&y.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.dJ.Object.defineProperties(TL.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.data)==null?void 0:y.enableTappableTranscriptHeader)!=null?W:!1}}});
var ao=TL;ao.prototype.dataChanged=ao.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],ao.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],ao.prototype,"sectionHeaderAriaLabel",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],ao.prototype,"enableTappableTranscriptHeader",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ao.prototype,"dataChanged",null);
ao=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],ao);
_.T(ao,"ytd-transcript-section-header-renderer",function(){if(pa0!==void 0)return pa0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return pa0=y},{mode:1});var P73;var Jl$;var Vt9=function(){var y=_.v.apply(this,arguments)||this;y.isEditMode=!1;y.touchCaptionsEnabled=!1;y.deleteCaptionCorrectionPopupCommand=null;y.voteCaptionCorrectionPopupCommand=null;y.roundedContainer=!0;y.mouseOver=!1;y.textChanged=!1;y.messages={suggest_correction:_.bN("suggest_correction",void 0,"Edit caption"),suggested_caption:_.bN("suggested_caption",void 0,"Suggested caption"),submit_correction:_.bN("submit_correction",void 0,"Submit for review"),cancel_correction:_.bN("cancel_correction",
void 0,"Cancel"),replay_segment:_.bN("replay_segment",void 0,"Re-play segment"),delete_correction:_.bN("delete_correction",void 0,"Delete correction")};y.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return y};
_.R(Vt9,_.v);_.f=Vt9.prototype;_.f.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)};
_.f.handleDelete=function(y){if(this.deleteCaptionCorrectionPopupCommand){var W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);W&&this.ytdOpenPopupBehavior.openPopup(W);y.stopPropagation()}};
_.f.handleSubmit=function(y){if(this.data&&this.data.submitCaptionCorrectionCommand&&(y.stopPropagation(),this.textChanged)){var W;y=(W=_.g(this.data.submitCaptionCorrectionCommand,_.vPT))==null?void 0:W.params;W=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:y,correctionText:String(this.ironTextAreaElement.value),originalText:_.v$(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(W);this.isEditMode=!1}};
_.f.handleUpdateSegmentText=function(y){(y=_.g(y,Gt9))&&y.targetId&&this.data&&y.targetId===this.data.targetId&&(y.userCorrection&&(this.editedText=y.userCorrection),y.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.v$(this.data.snippet)),y.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=y.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=y.voteCaptionCorrectionPopupCommand?
y.voteCaptionCorrectionPopupCommand:null,y.accessibility&&(this.segmentAriaLabel=y.accessibility.accessibilityData.label))};
_.f.handleCancel=function(y){this.isEditMode=!1;y.stopPropagation();this.logClientVe(159409)};
_.f.handleEditSegmentCommand=function(y){(y=_.g(y,Zcf))&&y.targetId&&this.data&&y.targetId===this.data.targetId&&this.handleEdit()};
_.f.handleEditButtonClick=function(y){this.data&&(this.handleEdit(),y.stopPropagation())};
_.f.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var y;(y=this.ironTextAreaElement.textarea)==null||y.focus();this.logClientVe(159407)}};
_.f.handleMouseEnter=function(){this.mouseOver=!0};
_.f.handleMouseLeave=function(){this.mouseOver=!1};
_.f.handleReplay=function(y){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),y.stopPropagation(),this.logClientVe(159408))};
_.f.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()))};
_.f.handleKeypress=function(y){this.data&&(this.isEditMode?y.stopPropagation():this.isEnterPress(y)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(y)&&this.logClientVe(138758))};
_.f.handleTextboxClick=function(y){y.stopPropagation()};
_.f.handleTextboxKeydown=function(y){this.isControlEnterPress(y)?this.handleSubmit(y):y.key==="Escape"&&this.handleCancel(y)};
_.f.handleTextboxKeyup=function(){this.textChanged=_.v$(this.latestText)!==String(this.ironTextAreaElement.value)};
_.f.fireSelectedEvent=function(y){_.Z2(this.hostElement,"yt-transcript-segment-selected",{startMs:y})};
_.f.fireReplayEvent=function(y,W){_.Z2(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(y-100,0),endMs:W})};
_.f.fireEditEvent=function(y,W){_.Z2(this.hostElement,"yt-transcript-segment-edit",{startMs:y,endMs:W})};
_.f.isEnterPress=function(y){return y.key==="Enter"||y.code==="Enter"||y.code==="NumpadEnter"||y.keyCode===13?!0:!1};
_.f.isControlEnterPress=function(y){var W=y.key==="Enter"||y.code==="Enter"||y.code==="NumpadEnter"||y.keyCode===13;return(y.ctrlKey||y.metaKey)&&W};
_.f.isCopyPress=function(y){var W=y.ctrlKey;return y.key==="c"&&W};
_.f.logClick=function(){var y,W=(y=this.data)==null?void 0:y.trackingParams;W&&_.yk(_.Zz(),W)};
_.f.logClientVe=function(y){_.jz(_.Zz(),_.se(y))};
_.dJ.Object.defineProperties(Vt9.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}}});
var xL=Vt9;xL.prototype.handleMouseLeave=xL.prototype.handleMouseLeave;xL.prototype.handleMouseEnter=xL.prototype.handleMouseEnter;xL.prototype.dataChanged=xL.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],xL.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],xL.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],xL.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xL.prototype,"isEditMode",void 0);_.x([_.L(),_.e("design:type",Object)],xL.prototype,"touchCaptionsEnabled",void 0);_.x([_.L(),_.e("design:type",Object)],xL.prototype,"editedText",void 0);_.x([_.L(),_.e("design:type",Object)],xL.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.x([_.L(),_.e("design:type",Object)],xL.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.x([_.L(),_.e("design:type",String)],xL.prototype,"segmentAriaLabel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xL.prototype,"roundedContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xL.prototype,"mouseOver",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xL.prototype,"textChanged",void 0);_.x([_.L(),_.e("design:type",Object)],xL.prototype,"messages",void 0);
_.x([_.jj("#suggestion"),_.e("design:type",Object)],xL.prototype,"ironTextAreaElement",void 0);_.x([_.A("data","editedText"),_.e("design:type",Object),_.e("design:paramtypes",[])],xL.prototype,"latestText",null);_.x([_.A("touchCaptionsEnabled","isEditMode"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],xL.prototype,"enableEditButton",null);
_.x([_.A("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],xL.prototype,"enableUndoButton",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xL.prototype,"dataChanged",null);_.x([_.B("mouseenter"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xL.prototype,"handleMouseEnter",null);
_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xL.prototype,"handleMouseLeave",null);xL=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],xL);
_.T(xL,"ytd-transcript-segment-renderer",function(){if(Jl$!==void 0)return Jl$;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Jl$=y},{mode:1});var C70=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};y.isError=!1;y.darkerPanels=_.O("web_watch_darker_panels");y.segmentOffsets=[];y.segmentIndex=-1;return y};
_.R(C70,_.v);_.f=C70.prototype;_.f.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"}}}}};
_.f.segmentsChanged=function(){this.updateOffsets()};
_.f.onYtPlayerTimeChanged=function(y){for(var W=this.segmentIndex,c=W;;){if(c>=0){var Z=this.segmentOffsets[c].start;var G=this.segmentOffsets[c].isAutoScrollable}else Z=-1,G=!0;var D=y+.5;if(!G){Z=c+1<this.segmentOffsets.length?this.segmentOffsets[c+1].start:Infinity;if(D>=Z){c+=1;continue}c=-1;break}if(D<Z)Z=c-1>=0&&this.segmentOffsets[c-1].isAutoScrollable,G=c===0||Z?1:2,c-=G;else if(G=c+1<this.segmentOffsets.length&&this.segmentOffsets[c+1].isAutoScrollable?1:2,Z=c+G<this.segmentOffsets.length?
this.segmentOffsets[c+G].start:Infinity,D>Z)c+=G;else{if(c<0)break;c<this.segmentOffsets.length&&D>this.segmentOffsets[c].end&&(c=-1);break}}if(W!==c){if(W>=0){var Y;(Y=this.getSegmentElement(W))==null||Y.classList.remove("active")}this.segmentIndex=c;if(!(c<0)){var u;(u=this.getSegmentElement(c))==null||u.classList.add("active");this.isHovered||this.scrollElementToTop(c)}}};
_.f.handleSegmentEdit=function(y){y.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=y.target,_.GG(this.hostElement,"yt-transcript-player-edit",[y.detail.startMs/1E3,y.detail.endMs/1E3]))};
_.f.handleSegmentSelected=function(y){_.GG(this.hostElement,"yt-transcript-player-seek",[y.detail.startMs/1E3])};
_.f.handleSegmentReplay=function(y){_.GG(this.hostElement,"yt-transcript-player-replay",[y.detail.startMs/1E3,y.detail.endMs/1E3])};
_.f.handleSectionHeaderSelected=function(y){_.GG(this.hostElement,"yt-transcript-player-seek",[y.detail.startMs/1E3])};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
_.f.onRetryButtonClick=function(){_.Z2(this.hostElement,"transcript-retry-button-click")};
_.f.getSegmentElement=function(y){return _.p(this.hostElement).querySelector(":nth-child("+(y+1)+")")};
_.f.scrollElementToTop=function(y){y=this.getSegmentElement(y>=2?y-2:0);this.hostElement.scrollTop=Math.min(y.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.f.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(y){var W,c=(W=y.transcriptSegmentRenderer)!=null?W:y.transcriptSectionHeaderRenderer;return{start:Number(c.startMs)/1E3,end:Number(c.endMs)/1E3,isAutoScrollable:y.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.f.clearHighlightedSegments=function(){var y=_.p(this.hostElement);y=_.z(y.querySelectorAll("ytd-transcript-segment-renderer"));for(var W=y.next();!W.done;W=y.next())W.value.classList.remove("active")};
_.dJ.Object.defineProperties(C70.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.searchResultSegments)||((W=this.data)==null?void 0:W.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
var iV=C70;iV.prototype.onMouseLeave=iV.prototype.onMouseLeave;iV.prototype.onMouseEnter=iV.prototype.onMouseEnter;iV.prototype.handleSectionHeaderSelected=iV.prototype.handleSectionHeaderSelected;iV.prototype.handleSegmentReplay=iV.prototype.handleSegmentReplay;iV.prototype.handleSegmentSelected=iV.prototype.handleSegmentSelected;iV.prototype.handleSegmentEdit=iV.prototype.handleSegmentEdit;iV.prototype.segmentsChanged=iV.prototype.segmentsChanged;
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],iV.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iV.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],iV.prototype,"isError",void 0);
_.x([_.L(),_.e("design:type",Object)],iV.prototype,"noResultLabel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iV.prototype,"darkerPanels",void 0);_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],iV.prototype,"segments",null);_.x([_.A("segments","noResultLabel"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],iV.prototype,"displayNoResults",null);
_.x([_.H("segments"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iV.prototype,"segmentsChanged",null);_.x([_.B("yt-transcript-segment-edit"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],iV.prototype,"handleSegmentEdit",null);_.x([_.B("yt-transcript-segment-selected"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],iV.prototype,"handleSegmentSelected",null);
_.x([_.B("yt-transcript-segment-replay"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],iV.prototype,"handleSegmentReplay",null);_.x([_.B("ytd-transcript-section-header"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],iV.prototype,"handleSectionHeaderSelected",null);_.x([_.B("mouseenter"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iV.prototype,"onMouseEnter",null);
_.x([_.B("mouseleave"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iV.prototype,"onMouseLeave",null);iV=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],iV);
_.T(iV,"ytd-transcript-segment-list-renderer",function(){if(P73!==void 0)return P73;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return P73=y},{mode:1});var Q2n=function(){var y=_.v.apply(this,arguments)||this;y.hideTimestamps=!!_.cj("hide-transcript-timestamps");y.isLoadingTranscripts=!1;y.darkerPanels=_.O("web_watch_darker_panels");y.isError=!1;y.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return y};
_.R(Q2n,_.v);_.f=Q2n.prototype;_.f.headerChanged=function(){var y,W;this.baseGetTranscriptsCommand=(W=_.g((y=this.data)==null?void 0:y.header,fGf))==null?void 0:W.onTextChangeCommand};
_.f.bodyChanged=function(){var y=this.getBodyRenderer();y&&(y.initialSegments&&(this.initialTranscriptsRenderer=y),y.noResultLabel&&(this.noResultLabel=y.noResultLabel),y.retryLabel&&(this.retryLabel=y.retryLabel))};
_.f.detached=function(){this.clearSearchBoxText()};
_.f.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.f.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"}}}};
_.f.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.f.fireSearch=function(y){var W=this;if(y){var c=y.detail.query;if(this.baseGetTranscriptsCommand){var Z;y=(Z=_.g(this.baseGetTranscriptsCommand,_.dJV))==null?void 0:Z.params;var G;Z=_.g((G=this.data)==null?void 0:G.footer,vX7);var D;if((G=(D=_.g(Z==null?void 0:Z.languageMenu,jQe))==null?void 0:D.subMenuItems)&&G.length>0&&(D=G.find(function(t){return t.selected}))){var Y,u;
y=(Y=D.continuation)==null?void 0:(u=Y.reloadContinuationData)==null?void 0:u.continuation}Y=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:y,searchQuery:c}});this.ytComponentBehavior.resolveCommand(Y,{commandController:{onServerError:function(){W.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Off(this.ytContinuationHandlerBehavior,function(){return c===W.getCurrentSearchBoxText()})}}};
_.f.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.f.onRetryButtonClick=function(){this.isError=!1;var y={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:y}))};
_.f.hideTimestampsChanged=function(){_.Wj("hide-transcript-timestamps",this.hideTimestamps)};
_.f.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.f.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.f.handleSignalActionCopyTranscript=function(){var y=this,W=this.getBodyRenderer();W&&(W=((W==null?void 0:W.searchResultSegments)||(W==null?void 0:W.initialSegments)||[]).map(function(c){return _.g(c,DoX)}).filter(function(c){return!!c}).map(function(c){return{snippet:c.snippet||{runs:[{text:""}]},
startTimeText:c.startTimeText||{simpleText:""}}}).map(function(c){var Z=(c.snippet.runs||[]).reduce(function(G,D){return G+D.text},"");
return y.hideTimestamps?Z:c.startTimeText.simpleText+" "+Z}).join("\n"),this.copyToClipboard(W))};
_.f.copyToClipboard=function(y){navigator.clipboard&&navigator.clipboard.writeText(y)};
_.f.getCurrentSearchBoxText=function(){var y;return(y=this.searchBox)==null?void 0:y.value};
_.f.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.f.getBodyRenderer=function(){var y;return _.g((y=this.data)==null?void 0:y.body,oiF)};
_.f.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.dJ.Object.defineProperties(Q2n.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.p(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
var Mj=Q2n;Mj.prototype.hideTimestampsChanged=Mj.prototype.hideTimestampsChanged;Mj.prototype.searchCleared=Mj.prototype.searchCleared;Mj.prototype.fireSearch=Mj.prototype.fireSearch;Mj.prototype.onReloadContinuationFinish=Mj.prototype.onReloadContinuationFinish;Mj.prototype.bodyChanged=Mj.prototype.bodyChanged;Mj.prototype.headerChanged=Mj.prototype.headerChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Mj.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Mj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],Mj.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Mj.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Mj.prototype,"hideTimestamps",void 0);
_.x([_.L(),_.e("design:type",Object)],Mj.prototype,"isLoadingTranscripts",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Mj.prototype,"darkerPanels",void 0);_.x([_.L(),_.e("design:type",Object)],Mj.prototype,"isError",void 0);_.x([_.H("data.header"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Mj.prototype,"headerChanged",null);
_.x([_.Gs("data.body"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Mj.prototype,"bodyChanged",null);_.x([_.B("yt-reload-continuation-finish"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Mj.prototype,"onReloadContinuationFinish",null);_.x([_.B("yt-transcript-search-box-search"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Mj.prototype,"fireSearch",null);
_.x([_.B("yt-transcript-search-box-clear"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Mj.prototype,"searchCleared",null);_.x([_.H("hideTimestamps"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Mj.prototype,"hideTimestampsChanged",null);Mj=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Mj);
_.T(Mj,"ytd-transcript-search-panel-renderer",function(){if(ISX!==void 0)return ISX;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ISX=y},{mode:1});var AlX=function(){var y=_.v.apply(this,arguments)||this;y.player=null;y.playerPollJobId=0;return y};
_.R(AlX,_.v);_.f=AlX.prototype;_.f.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.f.onLoadReloadContinuation=function(y){_.O("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:y.target.data.continuation}}):(y={clickTrackingParams:y.target.data.clickTrackingParams,getTranscriptEndpoint:{params:y.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}}))};
_.f.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"}}}};
_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.f.attached=function(){this.updatePlayerListening()};
_.f.detached=function(){this.updatePlayerListening()};
_.f.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.f.startPlayerListening=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return(W=_.HF())?_.n(c,W.getPlayerPromise(),2):c.return();y.player=c.yieldResult;y.playerPollJobId=_.KX.addLowPriorityJob(function(){y.getPlayerVideoProgress()},1E3);
y.player.addEventListener("onCueRangeEnter",function(Z){y.onCueRangeEnter(Z)});
y.player.addEventListener("onCueRangeExit",function(Z){y.onCueRangeExit(Z)});
y.player.addEventListener("onStateChange",function(Z){y.onPlayerStateChange(Z)});
y.player.addEventListener("SEEK_TO",function(Z){y.onPlayerSeek(Z)});
_.F2(c)})};
_.f.getPlayerVideoProgress=function(){var y=this;_.KX.cancelJob(this.playerPollJobId);if(this.player){var W=this.player.getCurrentTime();_.GG(this.hostElement,"yt-player-time-changed",[W])}this.playerPollJobId=_.KX.addLowPriorityJob(function(){y.getPlayerVideoProgress()},1E3)};
_.f.stopPlayerListening=function(){this.player=null;_.KX.cancelJob(this.playerPollJobId)};
_.f.onPlayerStateChange=function(y){y===2&&this.removePendingCue()};
_.f.onPlayerSeek=function(y){var W;if(W=this.pendingReplayCueId)W=this.pendingReplayCueId,W=y===(_.O("web_transcript_cue_id_killswitch")?Number(W):Number(W.split("_")[1]));W||this.removePendingCue()};
_.f.onCueRangeEnter=function(y){HQ3(y)&&(this.pendingReplayCueId=y)};
_.f.onCueRangeExit=function(y){HQ3(y)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.f.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.f.onYtTranscriptPlayerSeek=function(y){this.player&&this.player.seekTo(y,!0)};
_.f.onYtTranscriptPlayerReplay=function(y,W){this.player&&(this.player.addCueRange(BS3(y),y,W),this.player.seekTo(y,!0),this.player.playVideo())};
_.f.onYtTranscriptPlayerEdit=function(y,W){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(BS3(y),y,W),this.player.seekTo(y,!0))};
var eE=AlX;eE.prototype.onLoadReloadContinuation=eE.prototype.onLoadReloadContinuation;eE.prototype.panelContentVisibleChanged=eE.prototype.panelContentVisibleChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],eE.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],eE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],eE.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],eE.prototype,"panelContentVisible",void 0);_.x([_.H("panelContentVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],eE.prototype,"panelContentVisibleChanged",null);
_.x([_.B("yt-load-reload-continuation"),_.e("design:type",Function),_.e("design:paramtypes",[Object]),_.e("design:returntype")],eE.prototype,"onLoadReloadContinuation",null);eE=_.x([_.d({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],eE);
_.T(eE,"ytd-transcript-renderer",function(){if(lSn!==void 0)return lSn;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lSn=y},{mode:1});var hyn;var BVQ;var HL3=function(){return _.v.apply(this,arguments)||this};
_.R(HL3,_.v);HL3.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.mq(this.hostElement,[this.data.clickCommand],this.hostElement))};
HL3.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.tN)()+_.HC)+"px)"};
HL3.prototype.updateShouldHideFromBinding=function(y){this.shouldHide=y.detail.value};
var w7=HL3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],w7.prototype,"rendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],w7.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],w7.prototype,"shouldHide",void 0);w7=_.x([_.d({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],w7);
_.T(w7,"ytd-ad-engagement-panel-banner-renderer",function(){if(BVQ!==void 0)return BVQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return BVQ=y},{mode:_.xm("kevlar_poly_si_batch_j070")?1:2});var LTe;var vk3=function(){var y=_.v.apply(this,arguments)||this;y.modernPanels=_.O("kevlar_watch_modern_panels");y.buttonUpdate=_.O("web_modern_buttons");y.adsSemanticText=_.O("enable_ads_web_ep_buenos_aires_and_padding_fix");return y};
_.R(vk3,_.v);vk3.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
var qj=vk3;_.x([_.L(),_.e("design:type",Object)],qj.prototype,"data",void 0);_.x([_.L({computed:"computeHideDefaultAdBadge(data)"}),_.e("design:type",Boolean)],qj.prototype,"hideDefaultAdBadge",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qj.prototype,"modernPanels",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qj.prototype,"buttonUpdate",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qj.prototype,"adsSemanticText",void 0);
qj=_.x([_.d({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],qj);
_.T(qj,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(LTe!==void 0)return LTe;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return LTe=y},{mode:1});var dPF;var SNF=function(){var y=_.v.apply(this,arguments)||this;y.darkerPanels=_.O("web_watch_darker_panels");y.enableSqueezebackPanels=_.O("web_shorts_enable_squeezeback_panels");y.enableAnchoredPanel=_.O("desktop_shorts_v2_anchored_panel");y.modernPanels=_.O("kevlar_watch_modern_panels");y.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return y};
_.R(SNF,_.v);_.f=SNF.prototype;_.f.computeAdsInfoButton=function(){if(_.O("web_modern_buttons")){var y,W;return(W=_.g((y=this.data)==null?void 0:y.subtitleComplex,d9f))==null?void 0:W.adInfoRenderer}};
_.f.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}}}}}};
_.f.collapsedChanged=function(){var y;(y=this.data)!=null&&y.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.O("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.f.focus=function(y){this.titleElement&&_.hv(this.titleElement,y)};
_.f.computeTitleAriaLabel=function(y){var W=[];y.title&&W.push(this.ytRendererBehavior.getSimpleString(y.title));y.contextualInfo&&W.push(this.ytRendererBehavior.getSimpleString(y.contextualInfo));return W.join(" ")};
_.f.onHeaderClick=function(y){this.shouldTriggerHeaderClick(y)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.mq(this.hostElement,[this.data.onClickCommand],this.hostElement)):(y=this.getVisibilityToggleButton())&&y.click())};
_.f.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var y=_.g(this.data.visibilityButton,_.RU)||_.g(this.data.visibilityButton,_.lX);y&&this.ytRendererBehavior.logExplicitClick(y)}};
_.f.getVisibilityToggleButton=function(){var y=_.p(this.hostElement).querySelector("#visibility-button").firstElementChild;return(y==null?void 0:y.is)==="ytd-toggle-button-renderer"?y:null};
_.f.shouldTriggerHeaderClick=function(y){return!_.Cx(_.Aq(y),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.f.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(y){y=_.g(y,_.VQX);this.targetId&&(y==null?void 0:y.targetId)===this.targetId&&(y=y.navigationButton)&&this.set("data.navigationButton",y)};
_.dJ.Object.defineProperties(SNF.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.O("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var y;return!!(((y=this.entity)==null?0:y.isActionButtonHidden)||this.hideActionButton)}}});
var kL=SNF;kL.prototype.collapsedChanged=kL.prototype.collapsedChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],kL.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],kL.prototype,"ytdReduxBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],kL.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],kL.prototype,"targetId",void 0);_.x([_.L(),_.e("design:type",Boolean)],kL.prototype,"collapsed",void 0);_.x([_.L(),_.e("design:type",Boolean)],kL.prototype,"hideActionButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],kL.prototype,"shortsPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],kL.prototype,"liveChatEngagementPanel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kL.prototype,"darkerPanels",void 0);_.x([_.jj("#title"),_.e("design:type",HTMLElement)],kL.prototype,"titleElement",void 0);_.x([_.L({computed:"computeAdsInfoButton(data)"}),_.e("design:type",Object)],kL.prototype,"adsInfoButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kL.prototype,"enableSqueezebackPanels",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kL.prototype,"enableAnchoredPanel",void 0);_.x([_.L({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(y,W){return _.fq(y.entities,"engagementPanelTitleHeaderEntity",W)}}),
_.e("design:type",Object)],kL.prototype,"entity",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kL.prototype,"modernPanels",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("targetId"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],kL.prototype,"adsSemanticText",null);_.x([_.Gs("collapsed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],kL.prototype,"collapsedChanged",null);
_.x([_.A("entity","hideActionButton"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],kL.prototype,"isActionButtonHidden",null);kL=_.x([_.d({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],kL);
_.T(kL,"ytd-engagement-panel-title-header-renderer",function(){if(dPF!==void 0)return dPF;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dPF=y},{mode:1});var TVM;var aS0=function(){return _.v.apply(this,arguments)||this};
_.R(aS0,_.v);aS0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var jT=aS0;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jT.prototype,"data",void 0);jT=_.x([_.d({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],jT);
_.T(jT,"ytd-macro-markers-info-item-renderer",function(){if(TVM!==void 0)return TVM;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return TVM=y},{mode:1});var xPX;var ey7=function(y,W,c,Z,G){_.UR.call(this);this.JSC$19912_containerElement=y;this.hostElement=W;this.supportedSyncItems=c;this.syncEntityKey=Z;this.options=G;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;iLF(this);Mt3(this);this.JSC$19912_scrollAnimation=new _.NA(function(D){y.scrollTop=D});
_.zY(this,this.JSC$19912_scrollAnimation)};
_.R(ey7,_.UR);var iLF=function(y){var W=_.ot(_.U().resolve(_.Fq),function(c){return c.entities.markersEngagementPanelSyncEntity||{}},function(c,Z){var G;
c[y.syncEntityKey]!==Z[y.syncEntityKey]&&((G=c[y.syncEntityKey])==null?void 0:G.activeItemIndex)!==void 0&&y.updatePanelActiveItem(c[y.syncEntityKey].activeItemIndex)});
y.addOnDisposeCallback(W)},Mt3=function(y){var W=new _.ig(y.onScroll,50,y);
_.zY(y,W);var c=function(){W.fire()};
y.JSC$19912_containerElement.addEventListener("scroll",c);y.addOnDisposeCallback(function(){y.JSC$19912_containerElement.removeEventListener("scroll",c)})};
_.f=ey7.prototype;
_.f.updatePanelActiveItem=function(y){var W=this.getItemByIndex(y);if(W){if(this.setActiveItem(W),this.contentVisible)if(this.browsingMode){var c;((c=this.options)==null?void 0:c.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(y=waf(this),W.offsetTop<this.JSC$19912_containerElement.clientHeight+this.JSC$19912_containerElement.scrollTop&&y&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));qNX(this)}else this.scrollToItem(W)}else _.Rs(new _.ul("Could not find "+this.supportedSyncItems+
" sync child to set active.",y,this.JSC$19912_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.f.getItemByIndex=function(y){var W;(W=this.renderLazyListItems)==null||W.call(this,y);W=this.JSC$19912_containerElement.querySelectorAll(this.supportedSyncItems);if(W.length>y)return W[y]};
_.f.setActiveItem=function(y){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));y.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=y};
_.f.scrollToItem=function(y){y=this.getScrollPositionForItem(y);this.JSC$19912_containerElement.scrollTop!==y&&this.JSC$19912_scrollAnimation.start(this.JSC$19912_containerElement.scrollTop,y,300)};
_.f.getScrollPositionForItem=function(y){if(this.JSC$19912_containerElement.querySelectorAll(this.supportedSyncItems)[0]===y)return 0;var W,c=((W=this.options)==null?0:W.percentOffset)?this.JSC$19912_containerElement.clientHeight*this.options.percentOffset:0;y=_.Vx(y).y+this.JSC$19912_containerElement.scrollTop-(_.Vx(this.JSC$19912_containerElement).y+c);return Math.max(0,Math.min(y,this.JSC$19912_containerElement.scrollHeight-this.JSC$19912_containerElement.offsetHeight))};
_.f.onScroll=function(){this.activeItemBelowSyncPosition=waf(this);if(this.activeItem&&!this.JSC$19912_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19912_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var y;switch((y=this.options)==null?void 0:y.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!k9n(this));qNX(this);break;default:this.enterBrowsingMode(!0)}}};
_.f.enterBrowsingMode=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1){if(W.browsingMode)return G.return();W.browsingMode=!0;y&&W.hostElement.classList.add("browsing-mode");W.playerExitBrowsingModeListener=function(){W.exitBrowsingMode(!1)};
return _.n(G,_.wI(),2)}c=G.yieldResult;(Z=c)==null||Z.addEventListener("SEEK_TO",W.playerExitBrowsingModeListener);_.F2(G)})};
_.f.exitBrowsingMode=function(y){y=y===void 0?!0:y;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),y&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.f.removePlayerSeekListener=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1)return y.playerExitBrowsingModeListener?_.n(Z,_.wI(),3):Z.jumpTo(0);W=Z.yieldResult;(c=W)==null||c.removeEventListener("SEEK_TO",y.playerExitBrowsingModeListener);y.playerExitBrowsingModeListener=void 0;_.F2(Z)})};
var qNX=function(y){var W;((W=y.options)==null?void 0:W.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(k9n(y)?y.hostElement.classList.remove("browsing-mode"):y.activeItem&&y.hostElement.classList.add("browsing-mode"))},waf=function(y){if(!y.activeItem)return!1;
var W,c=((W=y.options)==null?0:W.percentOffset)?y.JSC$19912_containerElement.clientHeight*y.options.percentOffset:0;return y.activeItem.offsetTop>=y.JSC$19912_containerElement.scrollTop+c},k9n=function(y){if(!y.activeItem)return!1;
var W=y.activeItem.offsetTop+14<=y.JSC$19912_containerElement.scrollTop+y.JSC$19912_containerElement.clientHeight;return y.activeItem.offsetTop+y.activeItem.clientHeight-14>=y.JSC$19912_containerElement.scrollTop&&W};
ey7.prototype.panelContentVisibleChanged=function(y){(this.contentVisible=y)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var j8X=function(y,W){y.renderLazyListItems=W};var yW0=function(){var y=_.v.apply(this,arguments)||this;y.browsingMode=!1;y.modern=_.O("web_button_rework");y.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return y};
_.R(yW0,_.v);_.f=yW0.prototype;_.f.activeItemChanged=function(){if(!_.O("synced_panel_scrolling_controller")){var y;((y=this.syncEntity)==null?void 0:y.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.f.created=function(){var y=this;_.O("synced_panel_scrolling_controller")||(this.JSC$19917_scrollAnimation=new _.NA(function(W){y.contents.scrollTop=W}),this.boundExitBrowsingMode=function(){y.exitBrowsingMode(!1)})};
_.f.attached=function(){var y=this;if(_.O("synced_panel_scrolling_controller")&&!this.scrollController){var W,c,Z,G;this.scrollController=new ey7(this.contents,this.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(G=(W=this.data)==null?void 0:W.syncModelEntityKey)!=null?G:"default-macro-markers-list-renderer-entity-key",{percentOffset:(c=this.data)==null?void 0:c.selectedItemAlignmentPercentOffset,floatingPillType:(Z=this.data)==null?void 0:Z.floatingPillType});
j8X(this.scrollController,function(D){y.renderLazyListItems(D)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.f.detached=function(){if(_.O("synced_panel_scrolling_controller")){var y;(y=this.scrollController)==null||y.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.f.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"}}}};
_.f.dataChanged=function(){if(_.O("synced_panel_scrolling_controller")){var y;(y=this.scrollController)==null||y.exitBrowsingMode();var W,c;if((y=this.scrollController)!=null){var Z=(c=(W=this.data)==null?void 0:W.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key";y.syncEntityKey=Z}var G,D;(W=this.scrollController)!=null&&(c={percentOffset:(G=this.data)==null?void 0:G.selectedItemAlignmentPercentOffset,floatingPillType:(D=this.data)==null?void 0:D.floatingPillType},W.options=
c)}else this.exitBrowsingMode()};
_.f.computeButtonShape=function(){var y=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){y.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.f.computeSyncEnabled=function(y){return!(y==null||!y.syncButtonLabel)};
_.f.renderLazyListItems=function(y){for(var W=this.contents.children,c=0,Z=0;Z<W.length;Z++){var G=void 0;(G=W[Z].ytLazyListBehavior)==null||G.fillRemainingListItems();var D=void 0,Y=void 0;G=_.g((D=this.data)==null?void 0:(Y=D.contents)==null?void 0:Y[Z],_.yCh);Y=D=void 0;if((D=G)==null?0:(Y=D.contents)==null?0:Y.length)c+=G.contents.length;if(c>=y)break}};
_.f.getItemByIndex=function(y){this.renderLazyListItems(y);var W=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(W.length>y)return W[y]};
_.f.setActiveItem=function(y){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);y.active!==void 0&&(y.active=!0);this.currentActiveItem=y};
_.f.handleSetActivePanelItemAction=function(y){if((y=_.g(y,Q$X))&&this.panelTargetId===y.panelTargetId){y=y.itemIndex;if(_.O("synced_panel_scrolling_controller")){var W,c;var Z=(c=(W=this.data)==null?void 0:W.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key"}else{var G;Z=(G=this.data)==null?void 0:G.syncModelEntityKey}var D;Z&&((D=this.syncEntity)==null?void 0:D.activeItemIndex)!==y?this.ytdReduxBehavior.dispatch(_.o3("markersEngagementPanelSyncEntity",Z,{key:Z,activeItemIndex:y})):
this.updatePanelActiveItem(y)}};
_.f.updatePanelActiveItem=function(y){var W=this.getItemByIndex(y);W?(this.setActiveItem(W),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(W)):_.Rs(new _.ul("Could not find ytd-macro-markers-list-renderer sync child to set active.",y,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.f.scrollToItem=function(y){y=this.getScrollPositionForItem(y);this.contents.scrollTop!==y&&this.JSC$19917_scrollAnimation.start(this.contents.scrollTop,y,300)};
_.f.getScrollPositionForItem=function(y){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===y)return 0;y=_.Vx(y).y+this.contents.scrollTop-_.Vx(this.contents).y-this.getStickyHeaderHeight(y);return Math.min(y,this.contents.scrollHeight-this.contents.offsetHeight)};
_.f.getStickyHeaderHeight=function(y){if(y.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var W,c,Z;return(Z=(W=y.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(c=W.header)==null?void 0:c.offsetHeight)!=null?Z:0}return 0};
_.f.onScroll=function(){_.O("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19917_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.f.enterBrowsingMode=function(){var y=this;return _.m(function(W){if(W.nextAddress==1){if(y.browsingMode)return W.return();y.browsingMode=!0;return _.n(W,_.Lx().getPlayerPromise(),2)}y.player=W.yieldResult;y.player.addEventListener("SEEK_TO",y.boundExitBrowsingMode);_.F2(W)})};
_.f.exitBrowsingMode=function(y){this.browsingMode&&(this.browsingMode=!1,(y===void 0||y)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.f.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.f.onSyncClick=function(){if(_.O("synced_panel_scrolling_controller")){var y;(y=this.scrollController)==null||y.exitBrowsingMode()}else this.exitBrowsingMode()};
_.f.panelContentVisibleChanged=function(){if(_.O("synced_panel_scrolling_controller")){var y;(y=this.scrollController)==null||y.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
var yC=yW0;yC.prototype.panelContentVisibleChanged=yC.prototype.panelContentVisibleChanged;yC.prototype.dataChanged=yC.prototype.dataChanged;yC.prototype.activeItemChanged=yC.prototype.activeItemChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],yC.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],yC.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yC.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],yC.prototype,"useCustomColors",void 0);_.x([_.L({computed:"computeSyncEnabled(data)"}),_.e("design:type",Boolean)],yC.prototype,"syncEnabled",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],yC.prototype,"panelTargetId",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],yC.prototype,"panelContentVisible",void 0);_.x([_.jj("#contents"),_.e("design:type",HTMLElement)],yC.prototype,"contents",void 0);_.x([_.jj("#sync-container"),_.e("design:type",HTMLElement)],yC.prototype,"syncContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yC.prototype,"browsingMode",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],yC.prototype,"modern",void 0);_.x([_.L({selectorArgs:["data.syncModelEntityKey"],selector:_.O5a}),_.e("design:type",Object)],yC.prototype,"syncEntity",void 0);_.x([_.H("syncEntity.activeItemIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yC.prototype,"activeItemChanged",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yC.prototype,"dataChanged",null);_.x([_.H("panelContentVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yC.prototype,"panelContentVisibleChanged",null);yC=_.x([_.d({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],yC);
_.T(yC,"ytd-macro-markers-list-renderer",function(){if(xPX!==void 0)return xPX;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return xPX=y},{mode:1});var WC3;var cW7=function(){return _.v.apply(this,arguments)||this};
_.R(cW7,_.v);var W1=cW7;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],W1.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],W1.prototype,"data",void 0);W1=_.x([_.d({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],W1);
_.T(W1,"ytd-error-corrections-section-item-renderer",function(){if(WC3!==void 0)return WC3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return WC3=y},{mode:1});var ZjM;var GwQ=function(){return _.v.apply(this,arguments)||this};
_.R(GwQ,_.v);GwQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
var c1=GwQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],c1.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],c1.prototype,"data",void 0);c1=_.x([_.d({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],c1);
_.T(c1,"ytd-error-corrections-section-renderer",function(){if(ZjM!==void 0)return ZjM;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ZjM=y},{mode:1});var fL0;var oN9=function(){return _.v.apply(this,arguments)||this};
_.R(oN9,_.v);var Zp=oN9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Zp.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Zp.prototype,"data",void 0);Zp=_.x([_.d({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Zp);
_.T(Zp,"ytd-topic-link-renderer",function(){if(fL0!==void 0)return fL0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return fL0=y},{mode:1});var Dn0;var zT7=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("kevlar_modern_sd_v2");y.modernLockupV2=_.O("modernize_structured_description_playlist_lockups_v2");y.modernTypography=_.O("web_modern_typography");return y};
_.R(zT7,_.v);zT7.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"}}}};
var GD=zT7;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],GD.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GD.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GD.prototype,"modernLockupV2",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GD.prototype,"modernTypography",void 0);GD=_.x([_.d({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],GD);
_.T(GD,"ytd-video-description-course-section-renderer",function(){if(Dn0!==void 0)return Dn0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Dn0=y},{mode:1});var YE7;var mnM=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("kevlar_modern_sd_v2");y.modernTypography=_.O("web_modern_typography");return y};
_.R(mnM,_.v);mnM.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"}}}};
var f_=mnM;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],f_.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],f_.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],f_.prototype,"modernTypography",void 0);
f_=_.x([_.d({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],f_);
_.T(f_,"ytd-video-description-files-section-renderer",function(){if(YE7!==void 0)return YE7;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YE7=y},{mode:1});var s8f;var ul$=function(){return _.v.apply(this,arguments)||this};
_.R(ul$,_.v);ul$.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"}}}};
var od=ul$;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],od.prototype,"data",void 0);od=_.x([_.d({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],od);
_.T(od,"ytd-video-description-gaming-section-renderer",function(){if(s8f!==void 0)return s8f;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return s8f=y},{mode:1});var tyX;var nNX=function(){var y=_.v.apply(this,arguments)||this;y.isExpanded=!1;return y};
_.R(nNX,_.v);nNX.prototype.computeHasDefaultMetadataEndpoint=function(y){var W;y=y==null?void 0:(W=y.defaultMetadata)==null?void 0:W.runs;return!(!y||y.length!==1||!y[0].navigationEndpoint)};
nNX.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.dJ.Object.defineProperties(nNX.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
var Dp=nNX;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Dp.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Dp.prototype,"isExpanded",void 0);_.x([_.L({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Dp.prototype,"hasDefaultMetadataEndpoint",void 0);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Dp.prototype,"isExpandable",null);_.x([_.A("data","isExpandable","isExpanded"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Dp.prototype,"showExpandedMetadata",null);Dp=_.x([_.d({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Dp);
_.T(Dp,"ytd-info-row-renderer",function(){if(tyX!==void 0)return tyX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tyX=y},{mode:1});var XIX;var bjf=function(){var y=_.v.apply(this,arguments)||this;y.currentIndex=0;y.supportComponentResize=!0;y.modern=_.O("kevlar_modern_sd_v2");y.JSC$19943_lastScrollContainerWidth=NaN;return y};
_.R(bjf,_.v);_.f=bjf.prototype;
_.f.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"}}}};
_.f.getItemsPath=function(){return"videoLockups"};
_.f.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.f.onIronResize=function(){this.updateVideoLockupStyles()};
_.f.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.f.updateVideoLockupStyles=function(){var y;this.JSC$19943_scrollContainer!==void 0&&(y=this.videoLockups)!=null&&y.length&&(y=this.JSC$19943_scrollContainer.clientWidth,y!==this.JSC$19943_lastScrollContainerWidth&&(this.JSC$19943_lastScrollContainerWidth=y,_.wM(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(y*.8,415)+"px"}),_.Z2(this.hostElement,"iron-resize")))};
_.dJ.Object.defineProperties(bjf.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var y=[],W;if((W=this.data)==null||!W.carouselLockups)return y;W=_.z(this.data.carouselLockups);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0;((Z=_.g(c,sQ0))==null?0:Z.videoLockup)&&y.push(_.g(c,sQ0).videoLockup)}return y}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.videoLockups)==null||!y.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var y=[],W;if((W=this.data)==null||!W.carouselLockups)return y;var c;return(c=_.g(this.data.carouselLockups[this.scrollCount],sQ0))==null?void 0:c.infoRows}}});
var zD=bjf;zD.prototype.dataChanged=zD.prototype.dataChanged;zD.prototype.onIronResize=zD.prototype.onIronResize;zD.prototype.hiddenChanged=zD.prototype.hiddenChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],zD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],zD.prototype,"componentBehavior",void 0);_.x([_.C(_.Si.YtdHorizontalListBehavior),_.e("design:type",Object)],zD.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zD.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],zD.prototype,"inlineStructuredDescription",void 0);_.x([_.L({value:2}),_.e("design:type",Number)],zD.prototype,"initialCount",void 0);_.x([_.L(),_.e("design:type",Object)],zD.prototype,"currentIndex",void 0);
_.x([_.L(),_.e("design:type",Number)],zD.prototype,"scrollCount",void 0);_.x([_.L(),_.e("design:type",Object)],zD.prototype,"supportComponentResize",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],zD.prototype,"contentHidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],zD.prototype,"modern",void 0);_.x([_.jj("#scroll-container"),_.e("design:type",HTMLDivElement)],zD.prototype,"JSC$19943_scrollContainer",void 0);
_.x([_.H("contentHidden"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zD.prototype,"hiddenChanged",null);_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],zD.prototype,"videoLockups",null);_.x([_.A("videoLockups"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],zD.prototype,"hasVideoLockups",null);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zD.prototype,"onIronResize",null);
_.x([_.A("data","scrollCount"),_.e("design:type",Object),_.e("design:paramtypes",[])],zD.prototype,"infoRows",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zD.prototype,"dataChanged",null);zD=_.x([_.d({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],zD);
_.T(zD,"ytd-video-description-music-section-renderer",function(){if(XIX!==void 0)return XIX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return XIX=y},{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var rWf;var FC9=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("kevlar_modern_sd_v2");y.modernTypography=_.O("web_modern_typography");return y};
_.R(FC9,_.v);FC9.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Y4=FC9;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.x([_.L({}),_.e("design:type",Object)],Y4.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Y4.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Y4.prototype,"modernTypography",void 0);
Y4=_.x([_.d({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Y4);
_.T(Y4,"ytd-video-description-transcript-section-renderer",function(){if(rWf!==void 0)return rWf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return rWf=y},{mode:1});var UnM;_.A3(_.Ax(function(y){var W=_.Zx(_.xGw,function(){return y.data().firstProviderLinkStatusEntityKey}),c=_.Zx(_.xGw,function(){return y.data().secondProviderLinkStatusEntityKey}),Z=function(){var G,D;
return((G=W())==null?void 0:G.linked)||((D=c())==null?void 0:D.linked)};
return _.X("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.X(_.Da,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return y.data().sectionTitle}}),_.X(_.Da,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Z()?y.data().connectedMessage:y.data().notConnectedMessage}}),_.X(_.YN,{cond:Z,
then:function(){return _.X(_.bg,{data:function(){return y.data().connectedButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.X(_.YN,{cond:function(){return!Z()},
then:function(){return _.X(_.bg,{data:function(){return y.data().notConnectedButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Oh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;return _.X("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.X("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.X(_.Da,{text:function(){return W().sectionTitle}})),_.X("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.X(_.Da,{text:function(){return W().bodyHeader}})),_.X("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.X(_.Da,{text:function(){return W().bodyText}})),_.X(_.YN,
{cond:function(){return W().attributionText},
then:function(){return _.X("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.X(_.Da,{text:function(){return W().attributionText}}))}}))},"Ph"),"how-this-was-made-section-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){return _.X("yt-video-description-youchat-section-view-model",{class:_.Mi("ytVideoDescriptionYouchatSectionViewModelHost")},_.X("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.X(_.Da,{text:function(){return y.data().sectionTitle}})),_.X("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.X(_.Da,{text:function(){return y.data().subHeaderText}})),_.X("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.X(_.OV,{data:function(){return _.g(y.data().primaryButton,
_.ri)}})))},"Qh"),"yt-video-description-youchat-section-view-model",{props:{data:_.Ix}});var $ne=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("kevlar_modern_sd_v2");y.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return y};
_.R($ne,_.v);_.f=$ne.prototype;
_.f.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}}}}}};
_.f.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.f.dataChanged=function(){var y,W;this.hasDescriptionOnly=!(((y=this.data)==null?void 0:(W=y.items)==null?void 0:W.length)!==1||!_.g(this.data.items[0],u2X))};
_.f.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.f.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.f.autoFocusDescription=function(){var y;((y=_.U().resolve(_.xN(_.ml)))==null?0:y.isKeyBoardInUse())&&this.description&&_.Bn(this.description)};
_.f.resize=function(){if(_.O("kevlar_disable_sd_resize"))this.JSC$19951_cardList&&_.Z2(this.JSC$19951_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Z2(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Z2(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.f.scrollToSection=function(y){if(y=this.getSectionElement(y))_.GG(this.hostElement,"yt-scroll-to-watch-element",[y]),y.focus()};
_.f.getSectionElement=function(y){switch(y){case "infocards-item-section":var W;return(W=this.infocardsSection)!=null?W:null;case "transcript-item-section":var c;return(c=this.transcriptSection)!=null?c:null;case "how-this-was-made-section-item-section":var Z;return(Z=this.howThisWasMadeSection)!=null?Z:null;case "files-item-section":var G;return(G=this.filesSection)!=null?G:null;default:return null}};
_.f.handleSetActiveItemAction=function(y){var W=_.g(y,Q$X),c=W&&(W==null?void 0:W.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19951_cardList;if(W&&c){y=this.currentActiveChapter;var Z=this.currentActiveProblem;W=c==null?void 0:c.getItemByIndex(W.itemIndex);var G=c=!0;W&&(W.active=!0,W.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(c=y!==W,G=!1,this.currentActiveChapter=W):(W==null?void 0:W.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(c=!1,G=Z!==W,this.currentActiveProblem=W));y&&c&&(y.active=!1);Z&&G&&(Z.active=!1)}};
_.dJ.Object.defineProperties($ne.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.O("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
var md=$ne;md.prototype.onYtExpanderMoreTapped=md.prototype.onYtExpanderMoreTapped;md.prototype.onHiddenChanged=md.prototype.onHiddenChanged;md.prototype.dataChanged=md.prototype.dataChanged;md.prototype.panelContentVisibleChanged=md.prototype.panelContentVisibleChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],md.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],md.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],md.prototype,"ironResizableBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],md.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],md.prototype,"panelContentVisible",void 0);_.x([_.L(),_.e("design:type",Boolean)],md.prototype,"hasDescriptionOnly",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],md.prototype,"inlineStructuredDescription",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],md.prototype,"hidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],md.prototype,"shortsPanel",void 0);_.x([_.L(),_.e("design:type",Object)],md.prototype,"videoSummary",void 0);_.x([_.L(),_.e("design:type",Object)],md.prototype,"merchShelf",void 0);
_.x([_.A("videoSummary"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],md.prototype,"showVideoSummary",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],md.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],md.prototype,"engagementPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],md.prototype,"watchWhileSdp",void 0);
_.x([_.jj("ytd-expandable-video-description-body-renderer"),_.e("design:type",Object)],md.prototype,"description",void 0);_.x([_.jj("ytd-horizontal-card-list-renderer"),_.e("design:type",Object)],md.prototype,"JSC$19951_cardList",void 0);_.x([_.jj("ytd-horizontal-card-list-renderer[center-items]"),_.e("design:type",Object)],md.prototype,"problemWalkthroughCardList",void 0);_.x([_.jj("ytd-shelf-renderer"),_.e("design:type",Object)],md.prototype,"shelfSection",void 0);
_.x([_.jj("ytd-video-description-music-section-renderer"),_.e("design:type",Object)],md.prototype,"musicMetadataSection",void 0);_.x([_.jj("ytd-video-description-infocards-section-renderer"),_.e("design:type",Object)],md.prototype,"infocardsSection",void 0);_.x([_.jj("ytd-video-description-transcript-section-renderer"),_.e("design:type",Object)],md.prototype,"transcriptSection",void 0);
_.x([_.jj("how-this-was-made-section-view-model"),_.e("design:type",Object)],md.prototype,"howThisWasMadeSection",void 0);_.x([_.jj("ytd-video-description-files-section-renderer"),_.e("design:type",Object)],md.prototype,"filesSection",void 0);_.x([_.H("panelContentVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],md.prototype,"panelContentVisibleChanged",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],md.prototype,"dataChanged",null);_.x([_.H("hidden"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],md.prototype,"onHiddenChanged",null);_.x([_.B("yt-expander-more-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],md.prototype,"onYtExpanderMoreTapped",null);
md=_.x([_.d({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],md);
_.T(md,"ytd-structured-description-content-renderer",function(){if(UnM!==void 0)return UnM;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return UnM=y},{mode:2});var KC3;var Ojn;var gNf=function(){return _.v.apply(this,arguments)||this};
_.R(gNf,_.v);gNf.prototype.computeAriaLabel=function(y){var W,c;return(y==null?void 0:(W=y.accessibility)==null?void 0:(c=W.accessibilityData)==null?void 0:c.label)||_.bN("LOADING",void 0,"Loading")};
var sj=gNf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sj.prototype,"data",void 0);_.x([_.L({computed:"computeAriaLabel(data)"}),_.e("design:type",String)],sj.prototype,"ariaLabel",void 0);sj=_.x([_.n6({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],sj);
_.T(sj,"yt-content-loading-renderer",function(){if(Ojn===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;KC3===void 0&&(KC3=document.createElement("template"));var Z=KC3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Ojn=y}y=Ojn;return y},{mode:_.xm("kevlar_poly_si_batch_j043")?1:2});var RTM=_.Ax(function(y){var W=y.data;y=_.HO();_.VL(y,function(){return W().rendererContext});
var c=function(){var Z;return _.PG((Z=W())==null?void 0:Z.rendererContext)};
return _.X("content-list-item-view-model",{el:y,class:"ytContentListItemViewModelHost",role:function(){return c()?"listitem":void 0},
tabindex:function(){return c()?0:void 0}},_.X("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.X("div",{class:"ytContentListItemViewModelImageContainer"},_.X(_.YN,{cond:function(){return W().image},
then:function(Z){return _.X(_.J3,{data:Z,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.X(_.bg,{data:function(){var Z;
return(Z=W())==null?void 0:Z.avatar}},{avatarViewModel:_.Om})),_.X("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.X("div",{class:"ytContentListItemViewModelTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X("div",{class:"ytContentListItemViewModelMetadata"},_.X(_.bg,{data:function(){return W().metadata}},{contentMetadataViewModel:function(Z){return _.X(_.Cqm,{data:Z.data,
layout:1})}})))),_.X("div",{class:"ytContentListItemViewModelActionButton"},_.X(_.bg,{data:function(){var Z;
return(Z=W())==null?void 0:Z.actionButton}},{buttonViewModel:_.OV,
toggleButtonViewModel:_.UV})))},"Rh");_.A3(_.Ax(function(y){var W=_.z(_.G9(!1,void 0,"WbYeXc")),c=W.next().value,Z=W.next().value;W=_.z(_.G9(!1,void 0,"msXkzc"));var G=W.next().value,D=W.next().value;_.rj(function(){var t=_.g(y.data().collaboratePlaylistCollaborationSetting,WpF);t&&Z(t.switchedOnByDefault);var b=_.g(y.data().allowNewCollaboratorsPlaylistCollaborationSetting,WpF);b&&D(b.switchedOnByDefault);if(!t&&!b||!t&&y.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Z(!0),D(!0)});
var Y=function(t){Z(t);D(t);var b=y.data().playlistCollaborationEntityKey||"";var r=_.I5().getState();(r=_.fq(r.entities,"playlistCollaborationEntity",b))&&(r==null?void 0:r.isCollaborative)===t||_.I5().dispatch(_.o3("playlistCollaborationEntity",b,Object.assign({},r,{isCollaborative:t})))},u=function(t){D(t)};
return _.X("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.X("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.X(_.bg,{data:function(){return y.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(t){return _.X(_.LdE,{data:t.data,
onSwitch:Y})}})),_.X(_.YN,{cond:c,
then:function(){return _.X("div",null,_.X("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.X(_.bg,{data:function(){return y.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(t){return _.X(_.LdE,{data:t.data,
onSwitch:u,overrideDisabled:!1})}})),_.X(_.YN,{cond:G,
then:function(){return _.X("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.X(_.bg,{data:function(){return y.data().copyLinkButton}},{buttonViewModel:_.OV}))}}),_.X("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.X(_.bg,{data:function(){return y.data().playlistCollaborators}},{contentListItemViewModel:RTM})))}}))},"Sh"),"playlist-collaboration-view-model",{props:{data:_.Ix}});var lLM=_.Ax(function(y){var W=y.data;var c=y.customCommandResolver;return _.X(_.a2,null,_.X("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.X(_.bg,{data:function(){return W().adAvatar}},{adAvatarViewModel:function(Z){return _.X(_.L1i,{data:Z.data,
customCommandResolver:c})}})),_.X("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.X(_.YN,{cond:function(){return W().headline},
then:function(Z){return _.X(_.Da,{text:Z,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.X("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.X(_.bg,{data:function(){return W().adBadge}},{adBadgeViewModel:function(Z){return _.X(_.WB,{data:Z.data,
hasDot:function(){return W().primaryDetailsLine!==void 0},
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.X(_.bg,{data:function(){return W().primaryDetailsLine}},{adDetailsLineViewModel:function(Z){return _.X(_.cB,{data:Z.data,
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Th"),ENF=_.Ax(function(y){var W=y.data;
var c=y.customCommandResolver;y=_.HO();_.di(y,function(){return W().interaction},c);
_.MF(y,{visibilityCallback:function(Z){var G,D=(G=W().interaction)==null?void 0:G.onFirstVisible;Z&&D&&_.OH(D)},
showOption:_.wx});return _.X("ad-avatar-lockup-view-model",{class:function(){var Z;return((Z=W().interaction)==null?0:Z.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:y,"aria-label":function(){var Z,G;return(Z=W().interaction)==null?void 0:(G=Z.accessibility)==null?void 0:G.label}},_.X(_.u1,null,_.X(_.sE,{when:function(){return W().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.X(lLM,{data:W,
customCommandResolver:c})}),_.X(_.L4y,null,function(){return null})))},"Uh");_.A3(_.Ax(function(y){var W=y.data;var c=y.panelContentVisibility;y=_.HO();_.di(y,function(){return W().interaction},L60);
_.MF(y,{visibilityCallback:function(G){var D,Y=(D=W().interaction)==null?void 0:D.onFirstVisible;G&&Y&&_.OH(Y)},
showOption:_.wx});_.UN(function(){var G,D;if(D=_.JW("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Y;D=(Y=D())==null?void 0:Y.onLayoutVisibleCallback}else D=null;(G=D)==null||G()});
var Z=function(){return c()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.X("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:y},_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.X(_.YN,{cond:_.eCI("(min-width: "+((0,_.tN)()+_.HC)+"px) or (max-width: 600px)"),then:function(){return _.X(_.bg,{data:function(){return W().adImage}},{adImageViewModel:function(G){return _.X(_.$E,{data:G.data,
targetHeight:80,customCommandResolver:L60})}})}})),_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.X(_.bg,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(G){return _.X(ENF,{data:G.data,
customCommandResolver:L60})}})),_.X(_.YN,{cond:Z,
then:function(){return _.X(_.bg,{data:function(){return W().adButton}},{adButtonViewModel:function(G){return _.X(_.ka,{data:G.data,
customCommandResolver:L60})}})},
else:function(){return _.X(_.bg,{data:function(){return W().menu}},{buttonViewModel:_.OV})}}),_.X("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.X(_.bg,{data:function(){var G=_.g(W().toggleButton,_.F5);
return{toggleButtonViewModel:Object.assign({},G,{isTogglingDisabled:!0,isToggled:Z()})}}},{toggleButtonViewModel:_.UV})))))},"Vh"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Ix,
panelContentVisibility:_.Ix}});var Njf=_.Ax(function(y){var W=y.thumbsUp;y=y.thumbsDown;var c=_.z(_.G9(!1,void 0,"OxPsH")),Z=c.next().value,G=c.next().value;c=_.z(_.G9(!1,void 0,"V5vWne"));var D=c.next().value,Y=c.next().value;return _.X("div",{class:"ytwThumbsUpDownThumbs"},_.X(_.UV,{data:W,onToggle:function(u){G(u);D()&&Y(!1)},
buttonShapeOverrides:function(){return{toggled:Z()}}}),_.X(_.UV,{data:y,
onToggle:function(u){Y(u);Z()&&G(!1)},
buttonShapeOverrides:function(){return{toggled:D()}}}))},"Wh");
Njf.idomCompat=!0;var pIX=_.Ax(function(y){var W=function(){return y.data().pendingStateEntityKey||""},c=_.Zx(vQ$,W),Z=function(){var G;
if(!(G=y.disabled())){var D;G=!((D=c())==null||!D.isPendingResponse)}return G};
return _.X("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.X(_.mC,{each:function(){return y.data().chipData||[]},
keyBy:"REFERENCE"},function(G){return _.X(IL9,{data:G,disabled:Z,pendingStateKey:W,onError:y.onError})}))},"Xh"),IL9=_.Ax(function(y){var W=_.HO(),c=_.z(_.G9(!0,void 0,"HBREAe")),Z=c.next().value,G=c.next().value,D=function(){return y.data().text.content},Y=_.j9(function(u){var t,b,r,F,K,l,N,P;
return _.m(function(V){switch(V.nextAddress){case 1:u.stopPropagation();if(y.disabled())return V.return();b=String(Math.floor(((t=_.U().resolve(_.e9)())==null?void 0:t.getCurrentTime())||0)*1E3);r="youchat-"+Date.now();F=function(){_.$0(y.data().onClick||{});var Q=_.y8({continuationCommand:{token:y.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),S={inputComposerFormData:{clientMessageId:r,playerOffsetMs:b}};return new Promise(function(cy,M){_.$0(Q,{form:{formData:S},commandController:{onSuccess:function(fa,
jI){cy(jI)},
onServerError:function(fa,jI){M(jI.error)}}})})};
K=dH7(y.pendingStateKey());K(!0);r9f("#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");G(!1);_.tm(V,2);return _.n(V,F(),4);case 4:_.J6(V,3);break;case 2:l=_.rs(V),(P=(N=y).onError)==null||P.call(N,l);case 3:K(!1),_.F2(V)}})});
return _.X(_.YN,{cond:Z,then:function(){return _.X("div",{class:"ytwYouChatChipsDataChipWrapper"},_.X("button",{el:W,class:"ytwYouChatChipsDataChip","data-disabled":y.disabled,"on:click":Y,tabindex:0},D))}})},"Yh");var P1F=_.Ax(function(y){var W=y.data;return _.X("yt-conversation-resource-view-model",{class:_.Mi("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.X(_.YN,{cond:function(){var c;return(c=W().conversationResourceData)==null?void 0:c.learningGuideData},
then:function(c){return _.X(_.mC,{each:function(){return c().sectionData||[]}},function(Z){return _.X("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.X(_.Da,{text:function(){return Z.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.X("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.X(_.Da,{text:function(){return Z.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.X(_.Da,{text:function(){return Z.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"Zh");
P1F.idomCompat=!0;var JW9={animationConfig:{autoplay:!1,loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}},VyQ=_.Ax(function(y){var W=function(){var V;return(V=y.data().text)==null?void 0:V.content},c=function(){var V,Q;
return(V=y.data().webData)==null?void 0:(Q=V.textResult)==null?void 0:Q.content},Z=_.U().resolve(_.I9),G=_.qu(),D=function(){return y.data().chatResponseStyle},Y=function(){var V;
return y.data().webData||((V=y.data().text)==null?void 0:V.content)||y.data().videoResultsData||y.data().conversationResourceViewModel},u=function(){var V;
return(V=y.data().videoResultsData)==null?void 0:V.videoShelf},t=function(){var V;
return _.g(((V=y.data().videoResultsData)==null?void 0:V.videoShelf)||{},ym9)},b=function(){var V;
return(V=y.data().webData)==null?void 0:V.sourcesShelf},r=function(){var V;
return _.g(((V=y.data().webData)==null?void 0:V.sourcesShelf)||{},ym9)},F=function(){return _.g(y.data().conversationResourceViewModel||{},nif)},K=function(){return D()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||D()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:y.data().thumbsDownViewModel&&y.data().thumbsUpViewModel},l=function(){return _.g(y.data().thumbsUpViewModel,_.F5)},N=function(){return _.g(y.data().thumbsDownViewModel,_.F5)};
_.Xl(function(){requestAnimationFrame(function(){var V;(V=y.shouldAnimateIcon)!=null&&V.call(y)&&agX(G.lottieEl)})});
var P={};return _.X("you-chat-item-view-model",{class:_.Mi("ytwYouChatItemViewModelYouChatItemViewModel",(P.ytwYouChatItemViewModelHostNoPadding=function(){return!1},P)),
"data-target-id":function(){return y.data().id||""}},_.X(_.YN,{cond:Y,
then:function(){var V={};return _.X("div",{"aria-hidden":"true"},_.X(_.el,{className:_.Mi("ytwYouChatItemViewModelIcon",(V.ytwYouChatItemViewModelRtl=Z==="rtl",V.ytwYouChatItemViewModelHidden=function(){return!(y.data().hideIcon||D()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||D()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:Y())},V)),
animationName:function(){return JW9.animationConfig.name},
data:JW9,animationRef:G}))}}),_.X(_.YN,{cond:Y,
then:function(){var V={};return _.X("div",{class:_.Mi("ytwYouChatItemViewModelHost",(V.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return D()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return D()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},V.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return D()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},V)),
role:"alert"},_.X(_.YN,{cond:W,then:function(Q){return _.X(_.mN,{text:Q})}}),_.X(_.YN,{cond:c,
then:function(Q){return _.X(_.mN,{text:Q})}}),_.X(_.YN,{cond:u,
then:function(){return _.X("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.X(_.Yv,{data:t,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.X(_.YN,{cond:b,
then:function(){return _.X("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.X(_.Yv,{data:r,hasPeek:!0,disableArrows:!1}))}}),_.X(_.YN,{cond:F,
then:function(){return _.X(P1F,{data:F})}}),_.X(_.YN,{cond:K,
then:function(){return _.X(Njf,{thumbsUp:l,thumbsDown:N})}}))}}),_.X(_.YN,{cond:function(){return y.data().chipsData},
then:function(V){return _.X(pIX,{data:V,disabled:y.pending,onError:y.onError})}}))},"$h");
VyQ.idomCompat={callbacks:{onError:!0,onSend:!0}};var C1X=_.Ax(function(y){var W=function(){return y.data().choiceSelectedText};
return _.X("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.X(_.YN,{cond:W,then:function(){return _.X("div",{class:"ytYouChatUserTurnChoiceSelected"},_.X(_.Da,{text:W}))}}),_.X("div",{class:"ytYouChatUserTurnUserMessage"},function(){return y.data().text}))},"ai");var Q8F=_.Ax(function(y){var W=_.z((0,_.ZTV)(y.data)).next().value;return _.X("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return y.data().targetId||""}},_.X(_.bg,{data:function(){return W().contents}},{chatLoadingViewModel:_.uxH,
youChatItemViewModel:function(c){return _.X(VyQ,{data:c.data,pending:!1})},
chatUserTurnViewModel:function(c){return _.X(C1X,{data:c.data})},
accordionViewModel:function(c){return _.X(_.cHd,{data:c.data})},
learningJourneyLoaderViewModel:function(c){return _.X(_.kD3,{data:c.data})}}))},"bi");_.A3(_.Ax(function(y){var W=_.z((0,_.ZTV)(y.data)).next().value;return _.X("yt-section-list-renderer",{class:_.Mi("ytSectionListRendererHost",y.className),"data-target-id":function(){return y.data().targetId||""}},_.X(_.bg,{data:function(){return W().contents}},{itemSectionRenderer:Q8F}))},"ci"),"yt-section-list-renderer",{props:{data:_.Ix,
className:_.QE}});_.A3(_.Ax(function(y){var W=function(){return _.g(y.data().inputComposerViewModel,cme)},c=function(){var V;
return((V=W())==null?void 0:V.youchatPendingResponseEntityKey)||""},Z=_.Zx(vQ$,c),G=function(){var V;
return!((V=Z())==null||!V.isPendingResponse)},D=_.z(_.G9(!0,void 0,"DR0q1d")),Y=D.next().value,u=D.next().value,t=function(){return W().sectionTargetId||"youchat_messages_section"};
D=_.LD();var b=_.HO(),r=_.Zx(SBX,"chat_input_view_model_state"),F=TS3(),K=function(){var V;return!((V=r())==null||!V.value)};
_.rj(function(){var V;!K()&&((V=W())==null?0:V.welcomeFeatureContinuation)&&(V=_.y8({continuationCommand:{token:W().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),_.$0(V),F(!0));var Q=t(),S;(S=_.U().resolve(_.xN(_.kP)))==null||S.addEventListener("yt-navigate-start",function(){_.tz.remove(Q);F(!1)},{once:!0})});
var l=_.j9(function(V){var Q=G()||!1;xH0(b.value);Q||V.key!=="Enter"||V.shiftKey||(V.preventDefault(),P());return!1}),N=_.j9(function(){u(b.value.value.length===0);
return!1}),P=function(){var V,Q,S,cy,M,fa,jI,sD,ED;
return _.m(function(N1){V=b.value.value;b.value.value="";xH0(b.value);Q=iQX(t(),V);_.$0(Q);S=dH7(c());_.OH(((cy=W())==null?void 0:cy.onSubmitCommand)||{});S(!0);fa=String(Math.floor(((M=_.U().resolve(_.e9)())==null?void 0:M.getCurrentTime())||0)*1E3);sD=_.y8({continuationCommand:{token:(jI=W())==null?void 0:jI.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});ED=_.y8({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:V,playerOffsetMs:fa}});_.$0(sD,{form:{formData:ED},
commandController:{onSuccess:function(){S(!1)},
onServerError:function(){var bf=t();_.$0({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:bf}}]}}});S(!1)}}});
_.F2(N1)})};
return _.X("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:D},_.X("div",{class:"chatInputViewModelChatInputWrapper"},_.X("form",{class:"chatInputViewModelChatInputForm"},_.X("textarea",{class:"chatInputViewModelChatInput",el:b,"on:keydown":l,"on:keyup":N,placeholder:function(){var V,Q;var S=_.g((Q=W())==null?void 0:Q.inputFormField,Jnf);return S==null?void 0:(V=S.contentProperties)==null?void 0:V.placeholderText},
rows:1}),_.X(_.OV,{data:function(){return _.g(y.data().sendButton,_.ri)},
onClick:function(V){V.preventDefault();P();u(b.value.value.length===0)},
buttonOverrides:function(){return{disabled:Y()||G()}}})),_.X(_.Da,{className:"chatInputViewModelChatDisclaimer",
text:function(){var V;return(V=_.g(y.data().disclaimer,_.dYE))==null?void 0:V.text}})))},"di"),"yt-chat-input-view-model",{props:{data:_.Ix}});var AWM=["engagement-panel-clip-create","engagement-panel-clip-view"],hTf=0,BjQ=function(){var y=_.v.apply(this,arguments)||this;var W;y.headerData=(W=y.data)==null?void 0:W.header;y.darkerPanels=_.O("web_watch_darker_panels");y.disableAutoFill=!1;y.isFullscreen=!1;y.modernPanels=_.O("kevlar_watch_modern_panels");y.liveChatReplyPanel=!1;y.enableAnchoredPanel=_.O("desktop_shorts_v2_anchored_panel");y.disableBackdropFilter=_.O("web_disable_backdrop_filter");y.trackEngagementPanelVisibility=_.O("web_watch_track_engagement_panel_visibility");
y.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 y};
_.R(BjQ,_.v);_.f=BjQ.prototype;
_.f.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(y){y=
y==null?void 0:y.contents;if(!y||y.length<1)return"ytd-section-list-renderer";var W,c;y=(W=y[0])==null?void 0:(c=W.itemSectionRenderer)==null?void 0:c.contents;if(!y||y.length<1)return"ytd-section-list-renderer";var Z;return((Z=y[0])==null?0:Z.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"}}}};
_.f.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var y;if((y=this.hostElement.parentElement)==null?0:y.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.f.detached=function(){this.updateTheaterDisablement()};
_.f.showPanel=function(){var y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.KX.addJob(function(){y.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.f.maybeScrollToItemSection=function(y){var W=this,c,Z=y==null?void 0:(c=y.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;Z&&_.KX.addJob(function(){var G;(G=W.sectionListRendererElement)==null||G.scrollToItemSection(Z)},8)};
_.f.hidePanel=function(){var y=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.KX.addJob(function(){y.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.f.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.f.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.f.updatePanel=function(y,W,c,Z){var G=this;if((y=y==null?void 0:y.engagementPanelSectionListRenderer)||Z){if(y){Z=y.header;var D=y.content,Y=y.footer;(y=y.targetId)&&this.set("data.targetId",y);Z&&this.set("data.header",Z);D&&this.set("data.content",D);Y&&this.set("data.footer",Y)}else Z&&(y=Z.content,D=Z.secondaryHeaderContent,(Z=Z.targetId)&&this.set("data.targetId",Z),y&&this.set("data.content",y),D&&(this.secondaryHeaderData=D));this.updateChildVisibilityProperties();if(W){var u;_.O("kevlar_update_panel_focus_scroll_killswitch")||
(u={preventScroll:!0});this.focus(u)}_.Lv(this,function(){_.Z2(G.hostElement,"yt-refit");G.maybeScrollToItemSection(c)})}};
_.f.computeHeaderData=function(){var y,W=(0,_.Eb.unsafeClone)((y=this.data)==null?void 0:y.header);if(W){y=new _.w(Object.keys(W)[0]);var c=_.g(W,y),Z=_.g(this.secondaryHeaderData,y);Z&&_.nN(W,y,Object.assign({},Z,c))}return W};
_.f.getReloadContinuation=function(){var y,W,c,Z=_.z(((y=this.data)==null?void 0:(W=y.content)==null?void 0:(c=W.sectionListRenderer)==null?void 0:c.continuations)||[]);for(y=Z.next();!y.done;y=Z.next())if(y=y.value,y.reloadContinuationData)return y.reloadContinuationData.continuation};
_.f.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var y;((y=this.data)==null?0:y.targetId)&&(y=this.contentElement.firstElementChild)&&y.setAttribute("panel-target-id",this.data.targetId)};
_.f.forwardPopupClosedToFlowRootRenderer=function(){var y=_.p(this.hostElement).querySelector("ytd-flow-root-renderer");if(y)y.onPopupClosed()};
_.f.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.O("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var y;this.visibility=(y=this.data)==null?void 0:y.visibility;var W;this.trackEngagementPanelVisibility&&((W=this.data)==null?void 0:W.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var c,Z,G,D;this.contentEmpty=!!(((c=this.data)==null?0:(Z=c.content)==null?0:Z.structuredDescriptionContentRenderer)&&Object.keys((G=this.data)==null?void 0:(D=G.content)==null?void 0:D.structuredDescriptionContentRenderer).length===0);(y=_.U().resolve(_.Xi))&&y.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.f.isFullscreenChanged=function(){this.isFullscreen&&_.O("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.f.focus=function(y){if(this.header)this.header.focus(y);else{var W;(W=_.p(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||W.focus(y)}};
_.f.visibilityChanged=function(){if(!_.O("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var y=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=Z||!this.lastVisibility,D,Y,u=(D=this.data)==null?void 0:(Y=D.identifier)==null?void 0:Y.tag,
t;if(((t=this.data)==null?0:t.onShowCommands)&&y&&G)_.mq(this.hostElement,this.data.onShowCommands,this.hostElement),u&&_.Sv().dispatch(_.jv({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:u}}));else{var b;((b=this.data)==null?0:b.onHideCommands)&&W&&c&&(_.mq(this.hostElement,this.data.onHideCommands,this.hostElement),u&&_.Sv().dispatch(_.jv({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:u}})))}y&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*hTf++));_.O("kevlar_watch_focus_on_engagement_panels")&&
y&&Z&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.f.notifyVisibilityChanged=function(y){var W;_.fl(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,y,(W=this.data)==null?void 0:W.targetId])};
_.f.updateTheaterDisablement=function(){if(!_.O("kevlar_watch_theater_disablement_killswitch")){var y=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&AWM.includes(y)&&!_.O("watch_next_grid_ignore_disallowed_panels")){var W=_.si(_.Sv().getState()),c=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";y!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():c?(this.originalTheaterState===void 0&&(this.originalTheaterState=W,this.theaterDisablementPanelIdentifier=
y),W&&_.GG(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.f.clearTheaterDisablement=function(){_.GG(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.f.updateChildVisibilityProperties=function(){this.hostElement||_.O("kevlar_panel_property_init_killswitch")||this._enableProperties();var y=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=y);var W,c=(W=this.headerElement)==null?void 0:W.firstElementChild;if(c&&!this.adHeaderImageLockupViewModel){W=y==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";c.collapsed=W;c=_.p(c).querySelector("#visibility-button");if(!c)return;(c=c.firstElementChild)&&
c.polymerController.is==="ytd-toggle-button-renderer"&&c.polymerController.data.isToggled!==W&&c.polymerController.set("data.isToggled",W)}var Z;if(W=(Z=this.contentElement)==null?void 0:Z.firstElementChild)if(y&&y!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")W.removeAttribute("panel-content-visible");else{W.setAttribute("panel-content-visible","");var G;(G=W.markDirty)==null||G.call(W)}};
_.f.onYtChangeEngagementPanelVisibilityAction=function(y){var W=this,c,Z=(c=this.data)==null?void 0:c.targetId,G,D,Y;c=((G=this.data)==null?void 0:(D=G.identifier)==null?void 0:D.tag)||((Y=this.data)==null?void 0:Y.panelIdentifier);var u=_.g(y,_.yh5),t;y=Z&&(u==null?void 0:u.targetId)===Z||c&&(u==null?void 0:(t=u.panelIdentifier)==null?void 0:t.tag)===c;this.dialog&&y&&(u==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Z==="engagement-panel-comments-section"?_.GG(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.GG(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",c]));Z=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";t=this.isFullscreen&&_.O("kevlar_single_panel_fullscreen");Z=!y&&(u==null?void 0:u.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!Z&&t;_.O("kevlar_use_engagement_panel_management_component")||(y?(Z=u.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!Z?_.KX.addJob(function(){W.visibility=u.visibility},2,this.hideDelayMs):this.visibility=u.visibility,u.visibility&&this.notifyVisibilityChanged(u.visibility)):Z&&this.hidePanel())};
_.f.onYtScrollToEngagementPanelCommand=function(y){var W,c=(W=this.data)==null?void 0:W.targetId,Z,G,D;W=((Z=this.data)==null?void 0:(G=Z.identifier)==null?void 0:G.tag)||((D=this.data)==null?void 0:D.panelIdentifier);y=_.g(y,_.s72);var Y;(c&&(y==null?void 0:y.targetId)===c||W&&(y==null?void 0:(Y=y.panelIdentifier)==null?void 0:Y.tag)===W)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.GG(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.f.attachVEs=function(y){var W,c;(y==null?0:(W=y.content)==null?0:(c=W.productListRenderer)==null?0:c.trackingParams)&&_.Zz().graftServerVe(y.content.productListRenderer.trackingParams);var Z,G;(y==null?0:(Z=y.content)==null?0:(G=Z.transcriptRenderer)==null?0:G.trackingParams)&&_.Zz().graftServerVe(y.content.transcriptRenderer.trackingParams)};
_.f.onYtUpdateEngagementPanelAction=function(y){var W,c=(W=this.data)==null?void 0:W.targetId;y=_.g(y,h0X);c&&(y==null?void 0:y.targetId)===c&&(this.updatePanel({engagementPanelSectionListRenderer:{header:y==null?void 0:y.header,content:y==null?void 0:y.content}},!1),this.attachVEs(y))};
_.f.onYtShowEngagementPanelScrimAction=function(y){var W,c=(W=this.data)==null?void 0:W.targetId;y=_.g(y,An7);c&&(y==null?void 0:y.engagementPanelTargetId)===c&&(this.scrimmed=!0)};
_.f.onYtHideEngagementPanelScrimAction=function(y){var W,c=(W=this.data)==null?void 0:W.targetId;y=_.g(y,CFX);c&&(y==null?void 0:y.engagementPanelTargetId)===c&&(this.scrimmed=!1)};
_.f.getIdentifier=function(){var y,W,c;return((y=this.data)==null?void 0:y.panelIdentifier)||((W=this.data)==null?void 0:(c=W.identifier)==null?void 0:c.tag)};
_.f.getSurface=function(){var y,W;return(y=this.data)==null?void 0:(W=y.identifier)==null?void 0:W.surface};
_.dJ.Object.defineProperties(BjQ.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var y=this.getIdentifier();return y==="engagement-panel-youchat"||y==="PAyouchat"}}});
var uI=BjQ;uI.prototype.visibilityChanged=uI.prototype.visibilityChanged;uI.prototype.isFullscreenChanged=uI.prototype.isFullscreenChanged;uI.prototype.dataChanged=uI.prototype.dataChanged;uI.prototype.forwardPopupClosedToFlowRootRenderer=uI.prototype.forwardPopupClosedToFlowRootRenderer;uI.prototype.onYtRendererstamperFinished=uI.prototype.onYtRendererstamperFinished;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],uI.prototype,"actionHandlerBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],uI.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],uI.prototype,"ytEventForwardingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uI.prototype,"data",void 0);
_.x([_.L({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.e("design:type",Object)],uI.prototype,"headerData",void 0);_.x([_.L(),_.e("design:type",Object)],uI.prototype,"secondaryHeaderData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uI.prototype,"visibility",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uI.prototype,"contentEmpty",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uI.prototype,"scrimmed",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uI.prototype,"dialog",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uI.prototype,"dropdown",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uI.prototype,"darkerPanels",void 0);_.x([_.L(),_.e("design:type",Object)],uI.prototype,"disableAutoFill",void 0);
_.x([_.L({reflectToAttribute:!0,value:_.O("optimal_reading_width_comments_ep")}),_.e("design:type",Boolean)],uI.prototype,"optimalReadingWidthComments",void 0);_.x([_.L(),_.e("design:type",Number)],uI.prototype,"hideDelayMs",void 0);_.x([_.L({selector:_.VP,reflectToAttribute:!0}),_.e("design:type",Object)],uI.prototype,"isFullscreen",void 0);_.x([_.L(),_.e("design:type",Number)],uI.prototype,"showDelayMs",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data.targetId"),_.e("design:type",Object),_.e("design:paramtypes",[])],uI.prototype,"targetId",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],uI.prototype,"webSize",null);_.x([_.L(),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],uI.prototype,"hideFooterBorder",null);_.x([_.L(),_.e("design:type",Object)],uI.prototype,"isWatch",void 0);
_.x([_.L(),_.e("design:type",Object)],uI.prototype,"originalTheaterState",void 0);_.x([_.L(),_.e("design:type",Object)],uI.prototype,"theaterDisablementPanelIdentifier",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uI.prototype,"modernPanels",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uI.prototype,"isWatchWhilePanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uI.prototype,"shortsPanel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uI.prototype,"liveChatEngagementPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uI.prototype,"liveChatReplyPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uI.prototype,"enableAnchoredPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uI.prototype,"disableBackdropFilter",void 0);
_.x([_.L(),_.e("design:type",Object)],uI.prototype,"trackEngagementPanelVisibility",void 0);_.x([_.jj("#header"),_.e("design:type",HTMLElement)],uI.prototype,"headerElement",void 0);_.x([_.jj("#header > *"),_.e("design:type",HTMLElement)],uI.prototype,"header",void 0);_.x([_.jj("ytd-section-list-renderer"),_.e("design:type",Object)],uI.prototype,"sectionListRendererElement",void 0);
_.x([_.jj("panel-ad-header-image-lockup-view-model"),_.e("design:type",HTMLElement)],uI.prototype,"adHeaderImageLockupViewModel",void 0);_.x([_.jj("#content"),_.e("design:type",HTMLElement)],uI.prototype,"contentElement",void 0);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uI.prototype,"onYtRendererstamperFinished",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uI.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uI.prototype,"dataChanged",null);_.x([_.H("isFullscreen"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uI.prototype,"isFullscreenChanged",null);
_.x([_.H("visibility"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uI.prototype,"visibilityChanged",null);uI=_.x([_.d({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],uI);
_.T(uI,"ytd-engagement-panel-section-list-renderer",function(){if(hyn!==void 0)return hyn;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return hyn=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var Hjn;var LC3=function(){var y=_.v.apply(this,arguments)||this;y.lastRenderedPanelIds=new Set;y.visiblePanels=[];y.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return y};
_.R(LC3,_.v);_.f=LC3.prototype;_.f.dataChanged=function(){if(this.data){for(var y=[],W=_.z(this.data),c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0,G=void 0,D=(Z=c)==null?void 0:(G=Z.engagementPanelSectionListRenderer)==null?void 0:G.visibility;G=Z=void 0;((Z=c)==null?0:(G=Z.engagementPanelSectionListRenderer)==null?0:G.targetId)&&D!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&y.push(c)}this.visiblePanels=y}else this.visiblePanels=[]};
_.f.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}}};
_.f.withoutVisiblePanelById=function(y){return this.visiblePanels.filter(function(W){var c;return((c=W.engagementPanelSectionListRenderer)==null?void 0:c.targetId)!==y})};
_.f.onYtChangeEngagementPanelVisibilityAction=function(y){var W=this,c=_.g(y,_.yh5);if(this.data&&(c==null?0:c.targetId)&&(c==null?0:c.visibility)){var Z,G=(Z=this.data.find(function(Y){var u;return((u=Y.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===c.targetId}))==null?void 0:Z.engagementPanelSectionListRenderer;
if(G){var D=this.withoutVisiblePanelById(c.targetId);c.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(y=this.data.find(function(Y){var u;return((u=Y.engagementPanelSectionListRenderer)==null?void 0:u.targetId)===c.targetId}))&&(D=[y].concat(_.No(D)));
this.hideDelayMs&&c.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&D.length===0?_.KX.addJob(function(){G.visibility=c.visibility;W.visiblePanels=D},10,this.hideDelayMs):(G.visibility=c.visibility,this.visiblePanels=D);
_.fl(this.hostElement,"yt-engagement-panels-visible-changed",[D])}}};
_.f.onRendererstamperFinished=function(){var y=new Set(this.visiblePanels.map(function(W){var c;return(c=W.engagementPanelSectionListRenderer)==null?void 0:c.targetId}));
this.handlePanelVisibilityChange(y,this.lastRenderedPanelIds);this.lastRenderedPanelIds=y};
_.f.handlePanelVisibilityChange=function(y,W){y=y===void 0?new Set:y;W=W===void 0?new Set:W;if(this.data)for(var c=_.z(this.data),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var G=void 0,D=void 0,Y=(G=Z)==null?void 0:(D=G.engagementPanelSectionListRenderer)==null?void 0:D.targetId;if(Y&&(G=W.has(Y),D=y.has(Y),Y=void 0,!G&&D?(D=G=void 0,Y=(G=Z)==null?void 0:(D=G.engagementPanelSectionListRenderer)==null?void 0:D.onShowCommands):G&&!D&&(D=G=void 0,Y=(G=Z)==null?void 0:(D=G.engagementPanelSectionListRenderer)==
null?void 0:D.onHideCommands),Y))for(Z=_.z(Y),Y=Z.next();!Y.done;Y=Z.next())this.ytComponentBehavior.resolveCommand(Y.value)}};
var t1=LC3;t1.prototype.onRendererstamperFinished=t1.prototype.onRendererstamperFinished;t1.prototype.dataChanged=t1.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],t1.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],t1.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],t1.prototype,"lastRenderedPanelIds",void 0);_.x([_.L(),_.e("design:type",Number)],t1.prototype,"hideDelayMs",void 0);_.x([_.L(),_.e("design:type",Array)],t1.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Array)],t1.prototype,"visiblePanels",void 0);_.x([_.L(),_.e("design:type",Boolean)],t1.prototype,"isWatchWhilePanel",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],t1.prototype,"dataChanged",null);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],t1.prototype,"onRendererstamperFinished",null);t1=_.x([_.d({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],t1);
_.T(t1,"ytd-watch-engagement-panels",function(){if(Hjn!==void 0)return Hjn;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Hjn=y},{mode:1});var vNf;var n_=function(){return _.v.apply(this,arguments)||this};
_.R(n_,_.v);n_.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.wf(_.p(this.hostElement).querySelector("#text"),_.J9i(_.QHm,this.data.companionLegalText))};
n_.prototype.computeAutoScrollEnabled=function(y,W){return y&&!W};
n_.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
n_.prototype.onToggleTap=function(){this.expanded=!this.expanded};
var Xk=n_;Xk.prototype.expandedChanged=Xk.prototype.expandedChanged;Xk.prototype.dataChanged=Xk.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Xk.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.d5B),_.e("design:type",Object)],Xk.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Xk.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Xk.prototype,"expanded",void 0);
_.x([_.L({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.e("design:type",Boolean)],Xk.prototype,"autoScrollEnabled",void 0);_.x([_.L(),_.e("design:type",String)],Xk.prototype,"expanderIcon",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Xk.prototype,"dataChanged",null);
_.x([_.H("expanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Xk.prototype,"expandedChanged",null);Xk=_.x([_.d({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Xk);
_.T(Xk,"ytd-companion-legal-text-renderer",function(){if(vNf!==void 0)return vNf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vNf=y},{mode:1});var dnf;var bI,SE3=function(){var y=_.v.apply(this,arguments)||this;y.buttonUpdate=_.O("web_modern_buttons");y.kevlarWatchGrid=_.O("kevlar_watch_grid");y.centerAlignDescription=_.O("action_companion_center_align_description");y.truncateDomain=_.O("action_companion_truncate_domain");return y};
_.R(SE3,_.v);_.f=SE3.prototype;_.f.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.f.getOnLayoutVisibleCallback=function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
_.f.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",bI.JSC$20013_DEFAULT_AD_BADGE_RENDERER);var y=this.getOnLayoutVisibleCallback();y&&y()}};
_.f.getButtonRenderer=function(y){return y.actionButton&&_.g(y.actionButton,_.RU)?(delete _.g(y.actionButton,_.RU).navigationEndpoint,_.g(y.actionButton,_.RU)):{}};
_.f.onClick=function(y){var W=this;if((!_.O("web_modern_buttons")||!_.Cx(_.Aq(y),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){y=_.HF();var c=this.getLayoutId();y&&c&&_.O("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?y.getPlayerPromise().then(function(Z){(new _.O7(Z)).executeCommand(W.data.navigationEndpoint,c)}):_.O("kevlar_companion_resolve_command_killswitch")?_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.GG(this.hostElement,"yt-companion-ad-clicked",["action-companion",c])}};
_.dJ.Object.defineProperties(SE3.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?0:(W=y.detailsLine)==null?0:(c=W.adRating)==null?0:c.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 y,W,c,Z;return((y=this.data)==null?0:(W=y.detailsLine)==null?0:(c=W.adRating)==null?0:(Z=c.ratingIcon)==null?0:Z.iconType)?_.wp(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;return((y=this.data)==null?0:(W=y.detailsLine)==null?0:(c=W.texts)==null?0:(Z=c[0])==null?0:Z.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 y,W;return((y=this.data)==null?0:(W=y.description)==null?0:W.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var y=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return y?y.indexOf("/default_banner")!==-1:!0}}});
var r8=bI=SE3;bI.prototype.onClick=bI.prototype.onClick;bI.prototype.dataChanged=bI.prototype.dataChanged;r8.JSC$20013_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.bN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],r8.prototype,"rendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],r8.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],r8.prototype,"buttonUpdate",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],r8.prototype,"kevlarWatchGrid",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],r8.prototype,"centerAlignDescription",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],r8.prototype,"truncateDomain",void 0);
_.x([_.L({computed:"computeButtonOverride(buttonUpdate)"}),_.e("design:type",Object)],r8.prototype,"buttonOverride",void 0);_.x([_.A("data.detailsLine.adRating.ratingText"),_.e("design:type",Object),_.e("design:paramtypes",[])],r8.prototype,"getRating",null);_.x([_.A("getRating"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],r8.prototype,"computeRatingHidden",null);
_.x([_.A("data.detailsLine.adRating.ratingIcon.iconType"),_.e("design:type",Object),_.e("design:paramtypes",[])],r8.prototype,"iconType",null);_.x([_.A("data.detailsLine.texts.0.text"),_.e("design:type",Object),_.e("design:paramtypes",[])],r8.prototype,"getDetailsLine",null);_.x([_.A("getDetailsLine"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],r8.prototype,"computeDetailsLineHidden",null);
_.x([_.A("data.description.text"),_.e("design:type",Object),_.e("design:paramtypes",[])],r8.prototype,"getDescriptionText",null);_.x([_.A("getDescriptionText"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],r8.prototype,"computeDescriptionTextHidden",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],r8.prototype,"interactionLoggingClientData",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],r8.prototype,"hideBanner",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],r8.prototype,"dataChanged",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],r8.prototype,"onClick",null);r8=bI=_.x([_.d({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],r8);
_.T(r8,"ytd-action-companion-ad-renderer",function(){if(dnf!==void 0)return dnf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return dnf=y},{mode:_.xm("kevlar_poly_si_batch_j067")?1:2});var Tj$;var aLf;var xn7=function(){var y=_.v.apply(this,arguments)||this;y.buttonUpdate=_.O("web_modern_buttons");y.hideLegacyBanner=_.O("enable_dsa_one_click_ata_translators_infeed_elements");y.adInfoButtonStyle="mono";y.adInfoButtonType="text";y.noDotAdBadge=!0;return y};
_.R(xn7,_.v);_.f=xn7.prototype;_.f.getOnLayoutVisibleCallback=function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
_.f.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 y=this.data.image.thumbnail.thumbnails[0];this.imageSrc=y.url?_.Jn(y.url):void 0;this.imageWidth=y.width||0;this.imageHeight=y.height||0}this.data.clickthroughEndpoint&&_.g(this.data.clickthroughEndpoint,_.CD)&&(y=_.g(this.data.clickthroughEndpoint,_.CD).url,_.O("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
y||"":y?(y=_.Jn(y),this.clickThroughUrl=_.N9(y)):this.clickThroughUrl=void 0);(y=this.getOnLayoutVisibleCallback())&&y()}};
_.f.onClick=function(y){_.Cx(_.Aq(y),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(y)};
_.f.handleClick=function(){var y=this;this.data&&this.data.clickthroughEndpoint&&(_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(W){y.macroReplacementBehavior.sendServiceRequestAction([W])}),_.GG(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.f.onLoad=function(){_.fl(this.hostElement,"yt-refit-popups-action")};
_.dJ.Object.defineProperties(xn7.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.interactionLoggingClientData:null}}});
var Fk=xn7;Fk.prototype.onLoad=Fk.prototype.onLoad;Fk.prototype.onClick=Fk.prototype.onClick;Fk.prototype.dataChanged=Fk.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Fk.prototype,"rendererBehavior",void 0);_.x([_.C(DQ0.YtMacroReplacementBehavior),_.e("design:type",Object)],Fk.prototype,"macroReplacementBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Fk.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Fk.prototype,"buttonUpdate",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Fk.prototype,"hideLegacyBanner",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Fk.prototype,"adInfoButtonStyle",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Fk.prototype,"adInfoButtonType",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fk.prototype,"macros",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fk.prototype,"interactionLoggingClientData",null);_.x([_.L(),_.e("design:type",String)],Fk.prototype,"clickThroughUrl",void 0);_.x([_.L(),_.e("design:type",_.O3)],Fk.prototype,"imageSrc",void 0);_.x([_.L(),_.e("design:type",Number)],Fk.prototype,"imageWidth",void 0);_.x([_.L(),_.e("design:type",Number)],Fk.prototype,"imageHeight",void 0);_.x([_.L(),_.e("design:type",Object)],Fk.prototype,"noDotAdBadge",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Fk.prototype,"dataChanged",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Fk.prototype,"onClick",null);_.x([_.B("load"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Fk.prototype,"onLoad",null);Fk=_.x([_.d({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Fk);
_.T(Fk,"ytd-image-companion-renderer",function(){if(aLf!==void 0)return aLf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return aLf=y},{mode:_.xm("kevlar_poly_si_batch_j067")?1:2});var ij$;var Uj,MyF=function(){return _.v.apply(this,arguments)||this};
_.R(MyF,_.v);_.f=MyF.prototype;_.f.dataChanged=function(){this.set("data.adBadge",Uj.JSC$20022_DEFAULT_AD_BADGE_RENDERER);if(this.data){var y=this.getOnLayoutVisibleCallback();y&&y()}};
_.f.getOnLayoutVisibleCallback=function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.layoutId:null};
_.f.onCompanionClicked=function(y){this.data&&(y.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.GG(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.f.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var y=_.HF(),W=this.getLayoutId(),c=this.data.clickToAdvSiteEndpoint;y&&W&&_.O("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?y.getPlayerPromise().then(function(Z){(new _.O7(Z)).executeCommand(c,W)}):_.Z2(this.hostElement,"yt-navigate",{endpoint:c})}};
_.f.sendTrackingPings=function(y){if(y&&y.length!==0&&y[0].loggingUrls&&(y=y[0].loggingUrls.map(this.getBaseUrl)))for(var W=0;W<y.length;W++)_.Jv(y[W])};
_.f.getBaseUrl=function(y){return y.baseUrl||""};
_.dJ.Object.defineProperties(MyF.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var y=_.JW("yt.www.ads.eventcache.getLastCompanionData");return y?(y=y())&&y.interactionLoggingClientData:null}}});
var $4=Uj=MyF;Uj.prototype.onCompanionClicked=Uj.prototype.onCompanionClicked;Uj.prototype.dataChanged=Uj.prototype.dataChanged;$4.JSC$20022_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.bN("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$4.prototype,"data",void 0);
_.x([_.jj("#title"),_.e("design:type",HTMLElement)],$4.prototype,"shopTitle",void 0);_.x([_.Gs("data.impressionEndpoints"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$4.prototype,"dataChanged",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],$4.prototype,"interactionLoggingClientData",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],$4.prototype,"onCompanionClicked",null);$4=Uj=_.x([_.d({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],$4);
_.T($4,"ytd-shopping-companion-renderer",function(){if(ij$!==void 0)return ij$;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ij$=y},{mode:1});_.A3(_.Ax(function(y){var W=y.data;var c=_.HO();_.di(c,function(){return W().interaction},MD7);
_.MF(c,{visibilityCallback:function(Z){var G,D=(G=W().interaction)==null?void 0:G.onFirstVisible;Z&&D&&_.OH(D)},
showOption:_.wx});_.UN(function(){var Z,G;G=(G=_.JW("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.onLayoutVisibleCallback:null;(Z=G)==null||Z()});
_.vO(c,"load",function(){_.fl(c.value,"yt-refit-popups-action")});
return _.X("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:c,"aria-label":function(){var Z,G;return(Z=W().interaction)==null?void 0:(G=Z.accessibility)==null?void 0:G.label}},_.X("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.X(_.bg,{data:function(){return W().adImage}},{adImageViewModel:function(Z){return _.X(_.$E,{data:Z.data,
targetHeight:80,customCommandResolver:MD7})}})),_.X("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.X("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.X(_.bg,{data:function(){return W().adBadge}},{adBadgeViewModel:function(Z){return _.X(_.WB,{data:Z.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.X("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.X(_.bg,{data:function(){return W().menu}},{buttonViewModel:_.OV}))))},"ei"),"banner-image-layout-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;y=_.HO();_.di(y,function(){return W().interaction},e69);
_.MF(y,{visibilityCallback:function(c){var Z,G=(Z=W().interaction)==null?void 0:Z.onFirstVisible;c&&G&&_.OH(G)},
showOption:_.wx});_.UN(function(){var c,Z;Z=(Z=_.JW("yt.www.ads.eventcache.getLastCompanionData"))?(Z=Z())&&Z.onLayoutVisibleCallback:null;(c=Z)==null||c()});
return _.X("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:y},_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.X(_.bg,{data:function(){return W().adImage}},{adImageViewModel:function(c){return _.X(_.$E,{data:c.data,
targetHeight:80,customCommandResolver:e69})}})),_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.X(_.bg,{data:function(){return W().adAvatarLockup}},{adAvatarLockupViewModel:function(c){return _.X(ENF,{data:c.data,
customCommandResolver:e69})}})),_.X(_.bg,{data:function(){return W().adButton}},{adButtonViewModel:function(c){return _.X(_.ka,{data:c.data,
customCommandResolver:e69})}}),_.X("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.X(_.bg,{data:function(){return W().menu}},{buttonViewModel:_.OV}))))},"fi"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Ix}});var eTM={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"},wI3=function(){var y=_.v.apply(this,arguments)||this;y.updateCompanionDataJobId=0;y.contentVideoId=null;y.player=null;y.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return y};
_.R(wI3,_.v);_.f=wI3.prototype;_.f.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:eTM}}};
_.f.attached=function(){var y=this,W=_.HF();W&&W.getPlayerPromise().then(function(c){y.getCachedDataAndListen(c)})};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.f.updateRendererStamper=function(){var y={};if(this.data)for(var W in eTM)if(this.data[W]){y[W]=this.data[W];break}if(this.oneofRenderer!=void 0||Object.keys(y).length)this.oneofRenderer=y};
_.f.getCachedDataAndListen=function(y){var W=this.retrieveCachedCompanionData();W&&Object.keys(W).length&&this.receiveCompanionData(W);this.ytPlayerListenerBehavior.listenToPlayerEvent(y,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=y};
_.f.retrieveCachedCompanionData=function(){return _.DH.yt&&_.DH.yt.www&&_.DH.yt.www.ads&&_.DH.yt.www.ads.eventcache&&_.DH.yt.www.ads.eventcache.getLastCompanionData?_.DH.yt.www.ads.eventcache.getLastCompanionData():null};
_.f.receiveCompanionData=function(y){y&&Object.keys(y).length?(this.contentVideoId=y.contentVideoId,this.setCompanionData(y)):this.setCompanionData(y)};
_.f.setCompanionData=function(y){this.cancelPendingCompanionAdJobs();if(y){this.updateCompanionDataJobId=0;for(var W in eTM)eTM.hasOwnProperty(W)&&(this.data[W]=void 0);y.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",y.shoppingCompanionCarouselRenderer):y.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",y.imageCompanionAdRenderer):y.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",y.actionCompanionAdRenderer),_.fl(this.hostElement,
"yt-hide-unlimited-offer-module"),_.fl(this.hostElement,"yt-hide-tvfilm-offer-module")):y.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",y.bannerImageLayoutViewModel):y.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",y.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.f.dataChanged=function(){var y=this,W=_.HF();W?W.getPlayerPromise().then(function(c){y.contentVideoId&&c.getVideoUrl().includes("v="+y.contentVideoId)||(y.cancelPendingCompanionAdJobs(),y.updateRendererStamper())}):_.Va(Error("gm"))};
_.f.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.KX.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.f.handleCompanionAdClicked=function(y,W){this.player.onAdUxClicked(y,W);this.player.pauseVideo()};
var K_=wI3;K_.prototype.dataChanged=K_.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],K_.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],K_.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],K_.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],K_.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],K_.prototype,"oneofRenderer",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],K_.prototype,"dataChanged",null);K_=_.x([_.d({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],K_);
_.T(K_,"ytd-companion-slot-renderer",function(){if(Tj$!==void 0)return Tj$;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Tj$=y},{mode:_.xm("kevlar_poly_si_batch_j067")?
1:2});var qEF;var kw3=function(){return _.v.apply(this,arguments)||this};
_.R(kw3,_.v);kw3.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
var Oj=kw3;Oj.prototype.dataChanged=Oj.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Oj.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Oj.prototype,"companionSlotData",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Oj.prototype,"dataChanged",null);
Oj=_.x([_.d({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Oj);
_.T(Oj,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(qEF!==void 0)return qEF;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return qEF=y},{mode:1});var jSX;var y6X=function(){var y=_.v.apply(this,arguments)||this;y.skinnyMode=!1;y.COMPACT_EVENT_COUNT=4;y.onShelfToggleButtonTap=function(){y.logTap(y.data);y.showingMore=!y.showingMore};
y.onShelfToggleButtonFocus=function(){y.showingMore||(y.logTap(y.data),y.showingMore=!0,_.Lv(y,function(){var W=y.COMPACT_EVENT_COUNT-1,c;(c=_.p(y.hostElement).querySelector("#event-"+W))==null||c.focus()}))};
return y};
_.R(y6X,_.v);_.f=y6X.prototype;_.f.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.f.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.f.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.qO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.qO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.qO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.qO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.qO(this.infoTooltip,this.infoTooltip.hide))};
_.f.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.qO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.qO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.qO(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.qO(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.qO(this.infoTooltip,this.infoTooltip.hide))};
_.f.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)};
_.f.onShowingMoreChanged=function(){var y;this.showingMoreChanged((y=this.showingMore)!=null?y:!1)};
_.f.showingMoreChanged=function(y){var W=this.get("data.events")||[];this.set("restEvents",W.slice(1,y?W.length:this.COMPACT_EVENT_COUNT).map(function(c){return c.ticketEventRenderer}));
W.slice(0,y?W.length:this.COMPACT_EVENT_COUNT).forEach(function(c){var Z=_.NR();c=c.ticketEventRenderer.trackingParams;_.EL()&&Z&&c&&(c=_.Dz(c),Z&&_.Ll(Z,c))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.f.computeAriaLabel=function(y){return y.subtitle1+", "+y.subtitle2};
_.f.logTap=function(y){_.EL()&&this.ytRendererBehavior.logExplicitClick(y)};
_.f.isKeyboardAction=function(y){return this.get("detail.x",y)===0&&this.get("detail.y",y)===0};
_.f.onFirstEventTap=function(y){y.target&&this.handleTap(y.target,this.firstEvent,this.isKeyboardAction(y))};
_.f.onTicketLinkTap=function(y){y.target&&this.handleTap(y.target,y.model.item,this.isKeyboardAction(y))};
_.f.handleTap=function(y,W,c){if(W.buttonCommand)if(W.hasMultipleOffers)Object.assign(_.g(W.buttonCommand,_.bX),{properties:{source:c?"keyboard":"tap"}}),this.logTap(W),this.popupPositionTarget=y,_.mq(this.hostElement,[W.buttonCommand],this.hostElement);else{var Z;if((Z=_.g(W.buttonCommand,_.CD))==null?0:Z.url)this.logTap(W),_.SQ(window,_.g(W.buttonCommand,_.CD).url)}};
var g8=y6X;g8.prototype.onShowingMoreChanged=g8.prototype.onShowingMoreChanged;g8.prototype.dataChanged=g8.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],g8.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],g8.prototype,"firstEvent",void 0);_.x([_.L(),_.e("design:type",Object)],g8.prototype,"restEvents",void 0);
_.x([_.L(),_.e("design:type",String)],g8.prototype,"imageUrl",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],g8.prototype,"showingMore",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],g8.prototype,"canShowMore",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],g8.prototype,"skinnyMode",void 0);_.x([_.L(),_.e("design:type",HTMLElement)],g8.prototype,"popupPositionTarget",void 0);
_.x([_.jj("#banner-info-tooltip"),_.e("design:type",Object)],g8.prototype,"infoTooltip",void 0);_.x([_.jj("#info-container"),_.e("design:type",HTMLElement)],g8.prototype,"infoContainer",void 0);_.x([_.jj("#shelf-toggler"),_.e("design:type",HTMLElement)],g8.prototype,"shelfToggleButton",void 0);_.x([_.jj("#separator"),_.e("design:type",HTMLDivElement)],g8.prototype,"separator",void 0);_.x([_.L(),_.e("design:type",String)],g8.prototype,"shelfTogglerLabelText",void 0);
_.x([_.L(),_.e("design:type",String)],g8.prototype,"shelfTogglerIcon",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],g8.prototype,"dataChanged",null);_.x([_.Gs("showingMore"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],g8.prototype,"onShowingMoreChanged",null);g8=_.x([_.d({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],g8);
_.T(g8,"ytd-ticket-shelf-renderer",function(){if(jSX!==void 0)return jSX;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return jSX=y},{mode:1});var W9X;var c6X;var ZRF=function(){return _.v.apply(this,arguments)||this};
_.R(ZRF,_.v);var Gj3=ZRF;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Gj3.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Gj3.prototype,"data",void 0);Gj3=_.x([_.d({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Gj3);
_.T(Gj3,"ytd-comments-entry-point-message-renderer",function(){if(c6X!==void 0)return c6X;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return c6X=y},{mode:1});var fP0;var o7M=function(){return _.v.apply(this,arguments)||this};
_.R(o7M,_.v);_.dJ.Object.defineProperties(o7M.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.teaserAvatar)}}});
var Rd=o7M;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Rd.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Rd.prototype,"hasAvatar",null);Rd=_.x([_.d({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Rd);
_.T(Rd,"ytd-comments-entry-point-teaser-renderer",function(){if(fP0!==void 0)return fP0;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return fP0=y},{mode:1});var DCM;var zeF=function(){return _.v.apply(this,arguments)||this};
_.R(zeF,_.v);var YA3=zeF;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],YA3.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],YA3.prototype,"data",void 0);YA3=_.x([_.d({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],YA3);
_.T(YA3,"ytd-comments-simplebox-renderer",function(){if(DCM!==void 0)return DCM;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return DCM=y},{mode:1});var lI=function(){var y=_.v.apply(this,arguments)||this;y.fullHeight=!_.O("comment_teaser_full_height_kill_switch")&&_.O("kevlar_watch_grid");return y};
_.R(lI,_.v);lI.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"}}}};
lI.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
lI.prototype.onTap=function(){var y=this.tapCommand;y&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(y))};
lI.prototype.onKeyUp=function(y){if(y.keyCode===13)this.onTap()};
_.dJ.Object.defineProperties(lI.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.onTap)return this.data.onTap;var W,c;if(((W=this.data)==null?0:W.teaserContent)||((c=this.data)==null?0:c.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)!=null&&y.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
var Ej=lI;Ej.prototype.onKeyUp=Ej.prototype.onKeyUp;Ej.prototype.onTap=Ej.prototype.onTap;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ej.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ej.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ej.prototype,"fullHeight",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ej.prototype,"tapCommand",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ej.prototype,"simpleboxPlaceholder",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ej.prototype,"hasSimpleboxPlaceholder",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ej.prototype,"simpleboxAvatar",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ej.prototype,"teaserContent",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ej.prototype,"hasTeaserContent",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ej.prototype,"teaserAvatar",null);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ej.prototype,"hasTeaserAvatar",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ej.prototype,"messageText",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ej.prototype,"contentRenderer",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ej.prototype,"hasContents",null);
_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Ej.prototype,"hasContentRenderer",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ej.prototype,"onTap",null);_.x([_.B("keypress"),_.e("design:type",Function),_.e("design:paramtypes",[_.zF]),_.e("design:returntype")],Ej.prototype,"onKeyUp",null);Ej=_.x([_.d({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Ej);
_.T(Ej,"ytd-comments-entry-point-header-renderer",function(){if(W9X!==void 0)return W9X;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return W9X=y},{mode:1});var mC9;_.TP(_.k0,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var sS3=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),uWf={numberText:"",heightPx:2*sS3,shouldAnimate:!1},t59=function(){var y=_.v.apply(this,arguments)||this;y.usingAnimatedComponents=!0;y.wasDetailed=!1;y.JSC$20058_browserSupportsAnimation=_.O("web_supports_animations_api");y.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};y.detailed=!1;y.shouldAnimate=!1;y.viewCountProps=uWf;y.dateTextProps=
uWf;y.metadataBadgesInDescription=_.O("web_metadata_badges_in_description");return y};
_.R(t59,_.v);_.f=t59.prototype;_.f.resetAnimationState=function(){this.shouldAnimate=!1};
_.f.updateDynamicMetadata=function(){if(this.JSC$20058_browserSupportsAnimation){if(!this.detailed){var y,W,c,Z;var G=(y=this.videoPrimaryInfoRenderer)==null?void 0:(W=y.viewCount)==null?void 0:(c=W.videoViewCountRenderer)==null?void 0:(Z=c.extraShortViewCount)==null?void 0:Z.simpleText;var D,Y,u,t;var b=(D=this.videoPrimaryInfoRenderer)==null?void 0:(Y=D.viewCount)==null?void 0:(u=Y.videoViewCountRenderer)==null?void 0:(t=u.shortViewCount)==null?void 0:t.simpleText}if(!b){var r,F,K,l;G=(r=this.videoPrimaryInfoRenderer)==
null?void 0:(F=r.viewCount)==null?void 0:(K=F.videoViewCountRenderer)==null?void 0:(l=K.unlabeledViewCountValue)==null?void 0:l.simpleText;var N,P,V,Q;b=(N=this.videoPrimaryInfoRenderer)==null?void 0:(P=N.viewCount)==null?void 0:(V=P.videoViewCountRenderer)==null?void 0:(Q=V.viewCount)==null?void 0:Q.simpleText}var S,cy,M;y=Number((S=this.videoPrimaryInfoRenderer)==null?void 0:(cy=S.viewCount)==null?void 0:(M=cy.videoViewCountRenderer)==null?void 0:M.originalViewCount);var fa,jI;S=(fa=this.videoPrimaryInfoRenderer)==
null?void 0:(jI=fa.relativeDateText)==null?void 0:jI.simpleText;var sD;fa=!((sD=this.videoPrimaryInfoRenderer)==null||!sD.relativeDateText);if(G&&b&&y&&(S||!fa)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;sD=b.split(new RegExp("("+G+")"));G=Wff(sD[0]);var ED;b={numberText:(ED=sD[1])!=null?ED:"",numberValue:y,heightPx:2*sS3,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var N1;ED=((N1=sD[2])!=null?N1:"")+"  ";this.setViewCount(b,G,
Wff(ED));if(!this.detailed&&fa){G=S.split(/(\d+)/);N1=Wff(G[0]);var bf;ED={numberText:(bf=G[1])!=null?bf:"",heightPx:2*sS3,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Py;bf=((Py=G[2])!=null?Py:"")+"  ";this.setDateText(ED,N1,Wff(bf))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.f.setViewCount=function(y,W,c){_.v$(W)!==_.v$(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=W);this.viewCountProps.numberText!==(y==null?void 0:y.numberText)&&(this.viewCountProps=y||uWf);_.v$(c)!==_.v$(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=c)};
_.f.setDateText=function(y,W,c){_.v$(W)!==_.v$(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=W);this.dateTextProps.numberText!==(y==null?void 0:y.numberText)&&(this.dateTextProps=y||uWf);_.v$(c)!==_.v$(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=c)};
_.f.onYtUpdateViewershipAction=function(y){this.videoPrimaryInfoRenderer&&(_.g(y,mo$).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.g(y,mo$).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.g(y,mo$).viewCount)))};
_.f.onYtUpdateDateTextAction=function(y){if(this.videoPrimaryInfoRenderer){y=_.g(y,_.zlf).dateText;this.shouldAnimate=!0;var W;((W=this.videoPrimaryInfoRenderer)==null?0:W.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",y):this.set("videoPrimaryInfoRenderer.dateText",y)}};
_.dJ.Object.defineProperties(t59.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return ynf(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.v$(ynf(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.v$(this.viewCountPreNumberText),this.viewCountProps.numberText,_.v$(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.v$(this.dateTextPreNumberText),this.dateTextProps.numberText,_.v$(this.dateTextPostNumberText)].join("")}}});
var Nk=t59;Nk.prototype.updateDynamicMetadata=Nk.prototype.updateDynamicMetadata;Nk.prototype.resetAnimationState=Nk.prototype.resetAnimationState;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Nk.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Nk.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Nk.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Nk.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"detailed",void 0);_.x([_.L(),_.e("design:type",Object)],Nk.prototype,"shouldAnimate",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"viewCountPreNumberText",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"viewCountProps",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"viewCountPostNumberText",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"dateTextPreNumberText",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"dateTextProps",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"dateTextPostNumberText",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Nk.prototype,"metadataBadgesInDescription",void 0);_.x([_.A("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.e("design:type",Object),_.e("design:paramtypes",[])],Nk.prototype,"infoText",null);
_.x([_.A("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.e("design:type",String),_.e("design:paramtypes",[])],Nk.prototype,"descriptionInfoTooltipText",null);_.x([_.A("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.e("design:type",String),_.e("design:paramtypes",[])],Nk.prototype,"animatedViewCountAccessibilityLabel",null);
_.x([_.A("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.e("design:type",String),_.e("design:paramtypes",[])],Nk.prototype,"animatedDateTextAccessibilityLabel",null);_.x([_.H("videoPrimaryInfoRenderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Nk.prototype,"resetAnimationState",null);
_.x([_.H("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Nk.prototype,"updateDynamicMetadata",null);Nk=_.x([_.d({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Nk);
_.T(Nk,"ytd-watch-info-text",function(){if(mC9!==void 0)return mC9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mC9=y},{mode:1});var n7f;var X7f=_.Ax(function(y){var W=y.data;var c=y.setTapCommand;_.$k(function(){var Z=_.UH(W().onTap);c(Z)});
return _.X("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.X(_.bg,{data:function(){return W().avatar}},{avatarViewModel:_.Om}),_.X("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.X("span",null,function(){return W().simpleboxText})))},"gi");var bR3=_.Ax(function(y){return _.X("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.X(_.YN,{cond:function(){return _.g(y.data().avatar,_.hz)},
then:function(W){return _.X(_.Om,{data:W,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.X("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.X(_.Da,{text:function(){return y.data().teaserText}})))},"hi");var r63=_.Ax(function(y){var W=y.data;var c=y.setTapCommand;_.$k(function(){var Z=_.UH(W().onTap);c(Z)});
return _.X("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.X(_.bg,{data:function(){return W().teasers}},{commentsEntryPointTeaserViewModel:bR3}))},"ii");var F9Q=_.Ax(function(y){var W=y.data;var c=y.setTapCommand;_.$k(function(){var Z=_.UH(W().onTap);c(Z)});
return _.X("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.X(_.Da,{text:function(){return W().messageText}}))},"ji");var UCf=_.Ax(function(y){var W=y.data;var c=y.setTapCommand;var Z=y.isDisabled;_.$k(function(){var G=(Z==null?0:Z())?void 0:_.UH(W().onTap);c(G)});
return _.X("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.X(_.Gb,{icon:function(){return W().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.X(_.YN,{cond:function(){return W().image},
then:function(G){return _.X(_.J3,{data:G,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.X(_.Da,{text:function(){return W().text},
className:function(){return W().image||W().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.X(_.bg,{data:function(){return W().button}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Z==null?void 0:Z()}}})}}))},"ki");var $Cn=_.Ax(function(y){var W=y.data;var c=y.itemIndex;var Z=y.selectedIndex;var G=y.indexUpdatedCallback;var D=y.observer;y=y.title;var Y=_.HO(),u=function(F){c()===Z()&&G(F)},t=_.FP(NS0),b=_.FP(Ig3),r=function(){var F,K,l;
return((F=W())==null?void 0:F.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!t()||((K=W())==null?void 0:K.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&b().includes("PAposts_by_host")||((l=W())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&b().includes("PAyouchat")};
_.rj(function(){D&&D().observe(Y.value)});
return _.X("yt-carousel-item-view-model",{el:Y,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":y},_.X(_.bg,{data:function(){var F,K;return(K=(F=_.g(W().carouselItem,PFM))==null?void 0:F.textCarousel)!=null?K:W().carouselItem}},{textCarouselItemViewModel:function(F){return _.X(UCf,{data:F.data,
setTapCommand:u,isDisabled:r})},
commentTeaserCarouselItemViewModel:function(F){return _.X(r63,{data:F.data,setTapCommand:u})},
commentInputBoxCarouselItemViewModel:function(F){return _.X(X7f,{data:F.data,setTapCommand:u})},
commentsEntryPointMessageViewModel:function(F){return _.X(F9Q,{data:F.data,setTapCommand:u})}}))},"li");var K9f=_.Ax(function(y){var W=y.numDots;var c=y.activeIndex;return _.X("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.X(_.mC,{each:function(){return Array.from({length:W()})},
keyBy:"INDEX"},function(Z,G){return _.X("div",{class:function(){var D={};return _.wZ("ytCarouselDotsShapeDot",(D.ytCarouselDotsShapeDotActive=G===c(),D))}})}))},"mi");var ORQ=_.Ax(function(y){var W=y.data;var c=y.handleCarouselNavigation;var Z=y.numItems;var G=y.selectedIndex;var D=function(){return{disabled:G()===0}},Y=function(){return{disabled:G()===Z()-1}};
return _.X("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.X("div",null,_.X("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return W().title}),_.X(_.YN,{cond:function(){return W().subtitle},
then:function(u){return _.X("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return W().subtitleAccessibilityText}},u)}})),_.X(_.YN,{cond:function(){return Z()>1},
then:function(){return _.X("div",{class:"ytCarouselTitleViewModelNavigation"},_.X(K9f,{numDots:Z,activeIndex:G}),_.X(_.YN,{cond:function(){return W().previousButton},
then:function(u){return _.X(_.bg,{data:u},{buttonViewModel:function(t){return _.X(_.OV,{data:t.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(-1)},
buttonOverrides:D})}})}}),_.X(_.YN,{cond:function(){return W().nextButton},
then:function(u){return _.X(_.bg,{data:u},{buttonViewModel:function(t){return _.X(_.OV,{data:t.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(1)},
buttonOverrides:Y})}})}}))}}))},"ni");_.A3(_.Ax(function(y){var W=y.data;var c=_.HO(),Z=_.HO(),G=_.Nn("HTML_DIR")==="rtl",D=!1,Y=0,u=0;y=_.z(_.G9(0,void 0,"m0dtIf"));var t=y.next().value,b=y.next().value;y=_.z(_.G9(0,void 0,"fL6I6"));var r=y.next().value,F=y.next().value;y=_.z(_.G9(!1,void 0,"ZPrwNb"));var K=y.next().value,l=y.next().value,N=function(){var sD,ED,N1;return(N1=(sD=W())==null?void 0:(ED=sD.carouselTitles)==null?void 0:ED.length)!=null?N1:0},P=function(){Z.value&&Z.value.scrollLeft!==Y&&b((G?Z.value.scrollLeft<Y:Z.value.scrollLeft>
Y)?Math.min(t()+1,N()-1):Math.max(t()-1,0))},V;
window.IntersectionObserver&&(V=new IntersectionObserver(function(sD){sD=_.z(sD);for(var ED=sD.next();!ED.done;ED=sD.next())if(ED.value.isIntersecting){if(D){D=!1;break}P()}else b(u)},{threshold:.2}));
_.$k(function(){if(Z.value){var sD=(G?-1:1)*(r()/N()+12)*(K()&&V?u:t());typeof Z.value.scrollTo==="function"?Z.value.scrollTo({left:sD,behavior:"smooth"}):Z.value.scrollLeft=sD;Y=sD;u=K()&&V?u:t()}});
var Q,S=function(sD){Q=sD};
_.rj(function(){var sD=function(){var N1=Z.value.offsetWidth*N(),bf=24*(N()-1);F(N1+bf)};
sD();if(window.ResizeObserver){var ED=new ResizeObserver(sD);ED.observe(Z.value);_.KL(function(){ED.disconnect();V&&V.disconnect()})}});
y=_.j9(function(sD){if(_.Fkw(_.N8(sD),c.value,["BUTTON".toString()])||!Q)return!1;_.U().resolve(_.i1).resolveCommand(Q,{forceClickLogging:!0});return!1});
var cy=function(sD){sD=t()+sD;sD>=0&&sD<N()&&(D=!0,b(sD))},M=_.j9(function(){l(!0);
return!1}),fa=_.j9(function(){V||P();
l(!1);return!1}),jI={};
return _.X("yt-video-metadata-carousel-view-model",{class:_.Mi("ytVideoMetadataCarouselViewModelHost",(jI.ytVideoMetadataCarouselViewModelShortMode=_.O("mweb_video_metadata_carousel_short_mode"),jI)),el:c,"on:click":y,"on:touchstart":M,"on:touchend":fa,hidden:function(){var sD,ED;return!((sD=W())==null?0:(ED=sD.carouselItems)==null?0:ED.length)}},_.X("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.X(_.YN,{cond:function(){return W().carouselTitles},
then:function(sD){return _.X(_.bg,{data:function(){return sD()[K()&&V?u:t()]}},{carouselTitleViewModel:function(ED){return _.X(ORQ,{data:ED.data,
handleCarouselNavigation:cy,numItems:N,selectedIndex:t})}})}})),_.X("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:Z},_.X("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+r()+"px;"}},_.X(_.YN,{cond:function(){return W().carouselItems},
then:function(sD){return _.X(_.mC,{each:sD},function(ED,N1){return _.X(_.bg,{data:function(){return ED}},{carouselItemViewModel:function(bf){return _.X($Cn,{data:bf.data,
itemIndex:N1,selectedIndex:t,indexUpdatedCallback:S,observer:V,title:function(){a:{var Py=N1();var WJ,t5=(WJ=W())==null?void 0:WJ.carouselTitles;if(t5&&(Py=t5[Py])){var xF;Py=(xF=_.g(Py,pXf))==null?void 0:xF.title;break a}Py=void 0}return Py}})}})})}}))))},"oi"),"yt-video-metadata-carousel-view-model",{props:{data:_.Ix}});var g7F=_.O("web_action_buttons_update_owner_width")?32:12,ReM=function(){var y=_.v.apply(this,arguments)||this;y.metadataBadgesInDescription=_.O("web_metadata_badges_in_description");y.descriptionCollapsed=!0;y.useFadedScrimDescription=_.O("kevlar_enable_faded_scrim_on_description");y.skinnyMode=!1;y.playlist=!1;y.isDark=document.documentElement.hasAttribute("dark");y.disableVideoOwnerOnTap=_.O("swatchie_video_owner_on_tap_ks");y.swatcherooDelayLoad=_.O("swatcheroo_enable_ghost_cards");y.primaryMenuWidth=
0;y.videoId="";y.titleHeadlineXs=_.O("web_watch_typography_title_headline_xs");y.titleHeadlineS=_.O("web_watch_typography_title_headline_s");y.titleHeadlineM=_.O("web_watch_typography_title_headline_m");y.titleHashtagBlackLinkified=_.O("web_title_hashtag_black_linkified");y.titleHashtagGreyLinkified=_.O("web_title_hashtag_grey_linkified");y.actionButtonsUpdateOwnerWidth=_.O("web_action_buttons_update_owner_width");y.shouldForceIconOnly=!1;y.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return y};
_.R(ReM,_.v);_.f=ReM.prototype;_.f.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.f.updateOwnerAndDescriptionPosition=function(){_.O("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.hi(this.bottomRowElement,this.ownerElement)):(_.hi(this.bottomRowElement,this.descriptionElement),_.hi(this.topRowElement,this.ownerElement)))};
_.f.titleOnTap=function(y){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||this.handleExpandDescriptionCommands()}};
_.f.videoOwnerOnTap=function(y){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.f.detached=function(){var y=this,W;return _.m(function(c){(W=y.resizeObserver)==null||W.disconnect();_.F2(c)})};
_.f.maybeAttachResizeObserver=function(){var y=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.ig(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){y.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.f.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var y=this.hostElement.clientWidth,W=Math.max(this.largerItemWrap?400:350,y/2-g7F);if(_.O("web_action_buttons_update_owner_width")){var c;W=(((c=document.getElementById("owner"))==null?void 0:c.clientWidth)||0)+g7F}this.actionsOnSeparateLine=this.primaryMenuWidth>y-W?!0:!1}};
_.f.stripAttributedDescription=function(y){return{content:y.content.replace(/[\r\n]{2,}/g,"\n")}};
_.f.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.O("web_modern_buttons"),forceIconButton:!_.O("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:_.O("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"}}}};
_.f.videoPrimaryInfoRendererChanged=function(){var y;if((y=this.videoPrimaryInfoRenderer)==null?0:y.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.f.videoSecondaryInfoRendererChanged=function(){var y,W;(W=(y=this.descriptionInlineExpander).collapse)==null||W.call(y);this.descriptionExpandClientVe=_.se(110509);this.descriptionCollapseClientVe=_.se(110510);y=_.NR();W=_.EL();y&&W&&(_.O("combine_ve_grafts")?(_.qY(_.Zz(),this.descriptionExpandClientVe,W),_.qY(_.Zz(),this.descriptionCollapseClientVe,W)):_.h_(y,W,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.f.structuredDescriptionContentRendererChanged=function(){_.O("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.f.updateTopLevelIconsOnly=function(){var y=this;_.O("top_level_update_killswitch")||this.menu&&_.KX.addLowPriorityJob(function(){y.menu.topLevelIconsOnly=y.skinnyMode},_.ey("swathceroo_delay_flexible_menu_update",100))};
_.f.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.O("web_action_buttons_minimize_subscribe")};
_.f.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.f.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.f.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.f.onYtTextInlineExpanderExpandedChanged=function(){if(!_.O("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var y,W;(W=(y=this.structuredDescriptionContentRendererElement).resize)==null||W.call(y)}};
_.f.onRenderStamperFinished=function(y){(y==null?void 0:y.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.f.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.f.onYtExpanderLessTapped=function(){var y,W=(y=this.videoSecondaryInfoRenderer)==null?void 0:y.showLessCommand;W&&this.ytComponentBehavior.resolveCommand(W)};
_.f.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.f.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.f.onDescriptionClick=function(y){if(!_.Cx(_.Aq(y)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var W;((W=window.getSelection())==null?0:W.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.O("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.f.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.f.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.f.logCollapseClick=function(){var y=_.NR();y&&this.descriptionCollapseClientVe&&_.SG(y,this.descriptionCollapseClientVe)};
_.f.logExpandClick=function(){var y=_.NR();y&&this.descriptionExpandClientVe&&_.SG(y,this.descriptionExpandClientVe)};
_.f.collapseDescription=function(){this.descriptionCollapsed=!0};
_.f.scrollToTopOfContainer=function(){_.GG(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.f.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.f.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.f.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.f.resize=function(){if(this.descriptionInlineExpander){var y,W;(W=(y=this.descriptionInlineExpander).resize)==null||W.call(y)}else _.Rs(new _.ul("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var c;(c=this.menu)==null||c.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.O("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.f.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var y,W,c,Z,G=_.O("web_action_buttons_update_owner_width")?(c=(y=_.p(this.menu).querySelector("#button-shape"))==null?void 0:y.clientWidth)!=null?c:0:(Z=(W=_.p(this.menu).querySelector("#button"))==null?void 0:W.clientWidth)!=null?Z:0,D,Y;y=((Y=(D=_.p(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:D.clientWidth)!=null?Y:0)+8+G;var u,t;G=(t=(u=_.p(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:u.children.length)!=null?t:2;y<=8*G||(this.primaryMenuWidth=y)}};
_.f.onYtUpdateTitleAction=function(y){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.g(y,Y$$).title)};
_.f.onYtUpdateDescriptionAction=function(y){if(y=_.g(y,_.xtE)){var W,c=!((W=this.videoSecondaryInfoRenderer)==null||!W.attributedDescription);y.isEmpty||!y.description&&!y.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):y.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",y.attributedDescription):y.description&&(c?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.Xx(y.description)):this.set("videoSecondaryInfoRenderer.description",y.description))}};
_.f.onYtDarkModeToggledAction=function(y){this.isDark=y};
_.f.registerPanel=function(){if(!_.O("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var y=_.U().resolve(_.Xi);y&&y.registerPanel("engagement-panel-structured-description",this)}};
_.f.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.f.showPanel=function(y){this.expandDescription();var W=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;W.resize();var c,Z=y==null?void 0:(c=y.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;Z?_.KX.addJob(function(){W==null||W.scrollToSection(Z)},8):this.scrollToTopOfContainer()};
_.f.isVisible=function(){return!this.descriptionCollapsed};
_.f.getReloadContinuation=function(){};
_.f.hidePanel=function(){};
_.f.updatePanel=function(){};
_.dJ.Object.defineProperties(ReM.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.structuredDescriptionContentRenderer)!=null&&y.items){var W;y=_.z((W=this.structuredDescriptionContentRenderer)==null?void 0:W.items);for(W=y.next();!W.done;W=y.next())if(W=_.g(W.value,_.oHJ))return W}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.videoPrimaryInfoRenderer)==null?0:y.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return!!((y=this.videoSecondaryInfoRenderer)==null?0:(W=y.owner)==null?0:(c=W.videoOwnerRenderer)==null?0:c.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.O("swatchie_sd_new_line_strip_ks")){var y,W;if((y=this.videoSecondaryInfoRenderer)==null?0:(W=y.attributedDescription)==null?0:W.content){var c,Z;return(Z=this.stripAttributedDescription((c=this.videoSecondaryInfoRenderer)==null?void 0:c.attributedDescription))!=null?Z:{runs:[]}}}var G,D,Y,u;return(u=(Y=(G=this.videoSecondaryInfoRenderer)==null?void 0:G.description)!=null?Y:(D=this.videoSecondaryInfoRenderer)==null?
void 0:D.attributedDescription)!=null?u:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.videoSecondaryInfoRenderer)==null?void 0:y.headerRuns)!=null?W:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.commentsEntryPointHeaderRenderer)==null||!y.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.videoMetadataCarousel)==null||!y.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.ey("swatchie_desc_lines",3):this.hasTeaserCarousel?_.ey("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var y,W,c=Object.assign({},(y=this.videoSecondaryInfoRenderer)==null?void 0:(W=y.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0&&!(c.rows.length<=c.collapsedItemCount))return c.rows=c.rows.slice(c.collapsedItemCount),c.collapsedItemCount=0,c}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var y,W,c=Object.assign({},(y=this.videoSecondaryInfoRenderer)==null?void 0:(W=y.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0)return c.rows=c.rows.slice(0,c.collapsedItemCount),c.collapsedItemCount=c.rows.length,c}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.structuredDescriptionContentRenderer)==null?0:(W=y.items)==null?0:W.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var y;return(y=this.videoSecondaryInfoRenderer)==null?void 0:y.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.videoSecondaryInfoRenderer)==null?0:(W=y.owner)==null?0:(c=W.videoOwnerRenderer)==null?0:c.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;return!!((y=this.videoPrimaryInfoRenderer)==null?0:(W=y.videoActions)==null?0:(c=W.menuRenderer)==null?0:(Z=c.flexibleItems)==null?0:Z.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Ni(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Ni(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var y=this;if(_.O("web_title_hashtag_grey_delinkified")){var W,c=_.Eb.unsafeClone((W=this.videoPrimaryInfoRenderer)==null?void 0:W.title);(W=c==null?void 0:c.runs)&&W.forEach(function(Z){if(Z==null?0:Z.navigationEndpoint)Z.textColor=4284506208,y.isDark&&(Z.textColor=4289374890)});
return c}return(c=this.videoPrimaryInfoRenderer)==null?void 0:c.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.O("web_title_hashtag_black_delinkified")||_.O("web_title_hashtag_grey_delinkified")}}});
var Id=ReM;Id.prototype.resetDescriptionState=Id.prototype.resetDescriptionState;Id.prototype.registerPanel=Id.prototype.registerPanel;Id.prototype.onYtExpanderLessTapped=Id.prototype.onYtExpanderLessTapped;Id.prototype.onYtExpanderMoreTapped=Id.prototype.onYtExpanderMoreTapped;Id.prototype.onRenderStamperFinished=Id.prototype.onRenderStamperFinished;Id.prototype.onYtTextInlineExpanderExpandedChanged=Id.prototype.onYtTextInlineExpanderExpandedChanged;
Id.prototype.onYtTextInlineExpanderCollapseClicked=Id.prototype.onYtTextInlineExpanderCollapseClicked;Id.prototype.onYtTextInlineExpanderExpandClicked=Id.prototype.onYtTextInlineExpanderExpandClicked;Id.prototype.moveActionsElement=Id.prototype.moveActionsElement;Id.prototype.updateShouldForceIconOnly=Id.prototype.updateShouldForceIconOnly;Id.prototype.updateTopLevelIconsOnly=Id.prototype.updateTopLevelIconsOnly;Id.prototype.structuredDescriptionContentRendererChanged=Id.prototype.structuredDescriptionContentRendererChanged;
Id.prototype.videoSecondaryInfoRendererChanged=Id.prototype.videoSecondaryInfoRendererChanged;Id.prototype.videoPrimaryInfoRendererChanged=Id.prototype.videoPrimaryInfoRendererChanged;Id.prototype.maybeUpdateActionsOnSeparateLine=Id.prototype.maybeUpdateActionsOnSeparateLine;Id.prototype.updateOwnerAndDescriptionPosition=Id.prototype.updateOwnerAndDescriptionPosition;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Id.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Id.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("#above-the-fold"),_.e("design:type",HTMLElement)],Id.prototype,"aboveTheFoldContainer",void 0);
_.x([_.jj("#menu ytd-menu-renderer"),_.e("design:type",Object)],Id.prototype,"menu",void 0);_.x([_.jj("#description-inline-expander"),_.e("design:type",Object)],Id.prototype,"descriptionInlineExpander",void 0);_.x([_.jj("#faded-structured-description"),_.e("design:type",Object)],Id.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.x([_.jj("#structured-description"),_.e("design:type",Object)],Id.prototype,"structuredDescriptionContentRendererElement",void 0);
_.x([_.jj("#title"),_.e("design:type",HTMLElement)],Id.prototype,"titleElement",void 0);_.x([_.jj("#description"),_.e("design:type",HTMLElement)],Id.prototype,"descriptionElement",void 0);_.x([_.jj("#description-interaction"),_.e("design:type",Object)],Id.prototype,"descriptionInteraction",void 0);_.x([_.jj("#owner"),_.e("design:type",HTMLElement)],Id.prototype,"ownerElement",void 0);_.x([_.jj("#top-row"),_.e("design:type",HTMLElement)],Id.prototype,"topRowElement",void 0);
_.x([_.jj("#bottom-row"),_.e("design:type",HTMLElement)],Id.prototype,"bottomRowElement",void 0);_.x([_.jj("#actions"),_.e("design:type",HTMLElement)],Id.prototype,"actionsElement",void 0);_.x([_.jj("#bottom-actions"),_.e("design:type",HTMLElement)],Id.prototype,"bottomActionsElement",void 0);_.x([_.jj("#ytd-watch-info-text"),_.e("design:type",Object)],Id.prototype,"watchInfoTextElement",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],Id.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"commentsEntryPointHeaderRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"videoMetadataCarousel",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"structuredDescriptionContentRenderer",void 0);
_.x([_.L(),_.e("design:type",Object)],Id.prototype,"videoSummary",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"merchShelf",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"infoPanelBelowMetadata",void 0);_.x([_.A("structuredDescriptionContentRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"productShelf",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"metadataBadgesInDescription",void 0);
_.x([_.A("videoPrimaryInfoRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"shouldHideBadges",null);_.x([_.A("productShelf","descriptionCollapsed"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Id.prototype,"shouldShowProductShelf",null);_.x([_.L(),_.e("design:type",Boolean)],Id.prototype,"isWatchFlexy",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"descriptionCollapsed",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Id.prototype,"useFadedScrimDescription",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"skinnyMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("videoSecondaryInfoRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"largerItemWrap",null);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"playlist",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"clarifyBox",void 0);
_.x([_.L(),_.e("design:type",Object)],Id.prototype,"playerAds",void 0);_.x([_.L(),_.e("design:type",Boolean)],Id.prototype,"isDark",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Id.prototype,"actionsOnSeparateLine",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"disableVideoOwnerOnTap",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"swatcherooDelayLoad",void 0);
_.x([_.L(),_.e("design:type",Boolean)],Id.prototype,"suppressTopLevelMetadataRows",void 0);_.x([_.L(),_.e("design:type",Object)],Id.prototype,"primaryMenuWidth",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"videoId",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"titleHeadlineXs",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"titleHeadlineS",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"titleHeadlineM",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"titleHashtagBlackLinkified",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"titleHashtagGreyLinkified",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Id.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.x([_.L(),_.e("design:type",Object)],Id.prototype,"shouldForceIconOnly",void 0);_.x([_.Gs("skinnyMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"updateOwnerAndDescriptionPosition",null);_.x([_.Gs("skinnyMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.x([_.A("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"descriptionText",null);_.x([_.A("videoSecondaryInfoRenderer.headerRuns"),_.e("design:type",Array),_.e("design:paramtypes",[])],Id.prototype,"headerRuns",null);_.x([_.L({value:!1}),_.A("commentsEntryPointHeaderRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"hasTeaser",null);
_.x([_.L({value:!1,reflectToAttribute:!0}),_.A("videoMetadataCarousel"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"hasTeaserCarousel",null);_.x([_.L({value:3}),_.A("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"descriptionMaxLines",null);_.x([_.A("videoSecondaryInfoRenderer.metadataRowContainer"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"collapsibleMetadataRows",null);
_.x([_.A("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"alwaysVisibleMetadataRows",null);_.x([_.A("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Id.prototype,"hasInlineStructuredDescription",null);
_.x([_.A("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Id.prototype,"showInlineStructuredDescription",null);_.x([_.A("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"descriptionExpandCommand",null);
_.x([_.A("videoSecondaryInfoRenderer.owner"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"videoOwnerCommand",null);_.x([_.L({reflectToAttribute:!0}),_.A("videoPrimaryInfoRenderer.videoActions"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Id.prototype,"flexMenuEnabled",null);_.x([_.A("descriptionText","useFadedScrimDescription"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Id.prototype,"showAttributedStringDescription",null);
_.x([_.A("descriptionText","useFadedScrimDescription"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Id.prototype,"showFormattedStringDescription",null);_.x([_.A("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Id.prototype,"showFadedStructuredDescription",null);
_.x([_.Gs("videoPrimaryInfoRenderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"videoPrimaryInfoRendererChanged",null);_.x([_.A("videoPrimaryInfoRenderer.title"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"videoTitle",null);_.x([_.A("videoPrimaryInfoRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],Id.prototype,"noEndpoints",null);
_.x([_.Gs("videoSecondaryInfoRenderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"videoSecondaryInfoRendererChanged",null);_.x([_.H("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"structuredDescriptionContentRendererChanged",null);
_.x([_.H("skinnyMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"updateTopLevelIconsOnly",null);_.x([_.H("skinnyMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"updateShouldForceIconOnly",null);_.x([_.H("skinnyMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"moveActionsElement",null);
_.x([_.B("yt-text-inline-expander-expand-clicked"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"onYtTextInlineExpanderExpandClicked",null);_.x([_.B("yt-text-inline-expander-collapse-clicked"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.x([_.B("yt-text-inline-expander-expanded-changed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Id.prototype,"onRenderStamperFinished",null);
_.x([_.B("yt-expander-more-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"onYtExpanderMoreTapped",null);_.x([_.B("yt-expander-less-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"onYtExpanderLessTapped",null);
_.x([_.H("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"registerPanel",null);_.x([_.H("videoSecondaryInfoRenderer"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Id.prototype,"resetDescriptionState",null);Id=_.x([_.d({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Id);
_.T(Id,"ytd-watch-metadata",function(){if(n7f!==void 0)return n7f;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return n7f=y},{mode:2});var V5M=function(y){_.UR.call(this);this.JSC$20082_watchApi=y;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;lP$(this);E7$(this);NrM(this);IPX(this);p7X(this);Ple(this);J6f(this)};
_.R(V5M,_.UR);var NrM=function(y){var W=function(){_.O("kevlar_is_pupi_enabled")||p_(y)};
y.JSC$20082_watchApi.getRoot().addEventListener("yt-player-updated",W);y.addOnDisposeCallback(function(){y.JSC$20082_watchApi.getRoot().removeEventListener("yt-player-updated",W)})},p7X=function(y){if(_.O("kevlar_endscreen_auto_theater_mode")){var W=_.ot(_.Sv(),Ji,function(){Cl3(y)});
y.addOnDisposeCallback(W)}},lP$=function(y){var W,c,Z,G,D;
_.m(function(Y){if(Y.nextAddress==1)return _.n(Y,y.JSC$20082_watchApi.playerApi,2);W=Y.yieldResult;c=function(u){u=!!u;QSF(y)&&(u=u?2:1,_.LF.getInstance().setState(u,!0,!1))};
Z=function(u){u&&_.EQ0(_.Sv().getState())&&(_.GG(y.JSC$20082_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),y.temporaryTheaterMode=!0)};
G=function(u){_.O("kevlar_player_update_autonav_on_new_data")&&u.type==="newdata"&&(_.O("kevlar_is_pupi_enabled")||p_(y))};
D=function(u){y.onPlayerStateChange(u)};
_.O("kevlar_endscreen_auto_theater_mode")&&W.addEventListener("onAutonavCancelled",Z);W.addEventListener("onAutonavChangeRequest",c);W.addEventListener("onVideoDataChange",G);W.addEventListener("onStateChange",D);y.addOnDisposeCallback(function(){W.removeEventListener("onAutonavChangeRequest",c);W.removeEventListener("onVideoDataChange",G);W.removeEventListener("onStateChange",D);_.O("kevlar_endscreen_auto_theater_mode")&&W.removeEventListener("onAutonavCancelled",Z)});
_.F2(Y)})},E7$=function(y){y.JSC$20082_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){y.autonavCancelledBySignal=!0;
_.O("kevlar_is_pupi_enabled")||p_(y)});
y.JSC$20082_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(W,c,Z){c&&p_(y,Z)});
y.JSC$20082_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){QSF(y)&&_.LF.getInstance().setState(2,!0,!0)});
y.JSC$20082_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){QSF(y)&&_.LF.getInstance().setState(1,!0,!0)});
y.addOnDisposeCallback(function(){P1(y.JSC$20082_watchApi,"yt-signal-action-cancel-autonav");P1(y.JSC$20082_watchApi,"yt-autonav-state-changed-action");P1(y.JSC$20082_watchApi,"yt-enable-autoplay-command");P1(y.JSC$20082_watchApi,"yt-disable-autoplay-command")})},IPX=function(y){var W=y.JSC$20082_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){J6f(y)}),c=y.JSC$20082_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ple(y)});
y.addOnDisposeCallback(function(){y.JSC$20082_watchApi.unsubscribeByKey(W);y.JSC$20082_watchApi.unsubscribeByKey(c)})},J6f=function(y){y.autonavCancelledBySignal=!1;
_.O("kevlar_is_pupi_enabled")||p_(y)},Ple=function(y){var W=y.JSC$20082_watchApi.getWatchNextResponse(),c,Z;
var G=(W=(Z=_.g(W==null?void 0:(G=W.playerOverlays)==null?void 0:(c=G.playerOverlayRenderer)==null?void 0:c.autonavToggle,_.Mz5))==null?void 0:Z.enabled)?2:1;_.O("kevlar_is_pupi_enabled")?_.LF.getInstance().setState(G,!1,!1):p_(y);_.O("web_persist_server_autonav_state_on_client")&&typeof W==="boolean"&&_.Xs1(G===2)},QSF=function(y){if(y.autonavCancelledBySignal)return!1;
var W,c,Z,G;return!!((W=y.JSC$20082_watchApi.getWatchNextResponse())==null?0:(c=W.contents)==null?0:(Z=c.twoColumnWatchNextResults)==null?0:(G=Z.autoplay)==null?0:G.autoplay)};
V5M.prototype.onPlayerStateChange=function(y){if(y===0){y=!_.LF.getInstance().isAutoplaySetExplicitly();var W=this.JSC$20082_watchApi.getWatchNextResponse(),c,Z,G,D;W=_.g(W==null?void 0:(c=W.contents)==null?void 0:(Z=c.twoColumnWatchNextResults)==null?void 0:(G=Z.autoplay)==null?void 0:(D=G.autoplay)==null?void 0:D.autoplayExplicitChoiceDialogRenderer,_.Vxi);QSF(this)&&y&&W&&_.km.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:W},popupType:"DIALOG"}})}else Cl3(this)};
var Cl3=function(y){y.temporaryTheaterMode&&(y.temporaryTheaterMode=!1,_.GG(y.JSC$20082_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},p_=function(y,W){W=W===void 0?!1:W;
var c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20082_watchApi.playerApi,2);c=Z.yieldResult;QSF(y)?c.setAutonavState(_.LF.getInstance().getState(),W):c.setAutonavState(1,W);_.F2(Z)})};var A67={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 BrM=function(y){_.UR.call(this);var W=this;this.JSC$20087_watchApi=y;var c=this.JSC$20087_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){he$(W)});
this.addOnDisposeCallback(function(){W.JSC$20087_watchApi.unsubscribeByKey(c)});
he$(this)};
_.R(BrM,_.UR);var he$=function(y){var W=y.JSC$20087_watchApi.getPlayerResponse(),c=y.JSC$20087_watchApi.getWatchNextResponse();if(!_.bhH(W==null?void 0:W.playabilityStatus,c==null?void 0:c.playerOverlays)){var Z;var G=W==null?void 0:(Z=W.playabilityStatus)==null?void 0:Z.errorScreen}y.JSC$20087_watchApi.provideRenderingData("ERROR_SCREEN",G)};var HRf=_.Ax(function(y){var W=y.data;return _.X("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.X("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.X(_.bg,{data:function(){return W().channelAvatar}},{avatarViewModel:_.Om}),_.X(_.Da,{text:function(){return W().subtitle}})))},"pi");var L9F=_.Ax(function(y){return _.X("yt-player-quick-action-buttons",{class:_.Mi("ytPlayerQuickActionButtonsHost")},_.X(_.mC,{each:y.data},function(W){return _.X(_.bg,{data:function(){return W}},{buttonViewModel:_.OV,
likeButtonViewModel:function(c){return _.X(_.Wk8,{data:c.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.ybZ})}))},"qi");var dC$=function(y){_.UR.call(this);var W=this;this.JSC$20090_watchApi=y;y=_.z(_.G9({},void 0,"ufFdVc"));this.quickActionsViewModel=y.next().value;this.setQuickActionsViewModel=y.next().value;y=_.z(_.G9({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=y.next().value;this.setPlayerOverlayVideoDetailsRenderer=y.next().value;var c=this.JSC$20090_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){v7Q(W)});
this.addOnDisposeCallback(function(){W.JSC$20090_watchApi.unsubscribeByKey(c)})};
_.R(dC$,_.UR);
var v7Q=function(y){var W,c,Z,G,D,Y,u,t,b,r,F,K,l,N;_.m(function(P){if(P.nextAddress==1)return _.n(P,y.JSC$20090_watchApi.playerApi,2);W=P.yieldResult;c=y.JSC$20090_watchApi.getWatchNextResponse();D=(Z=c)==null?void 0:(G=Z.playerOverlays)==null?void 0:G.playerOverlayRenderer;u=_.g((Y=D)==null?void 0:Y.fullscreenQuickActionsBar,_.txT);(b=(t=y).setQuickActionsViewModel)==null||b.call(t,u||{});u&&SA3(y,W);K=(r=D)==null?void 0:(F=r.videoDetails)==null?void 0:F.playerOverlayVideoDetailsRenderer;(N=(l=
y).setPlayerOverlayVideoDetailsRenderer)==null||N.call(l,K||{});K&&Tr3(y,W);_.F2(P)})},SA3=function(y,W){if(!y.quickActionButtonsContainer){y.quickActionButtonsContainer=document.createElement("div");
W.setFullscreenQuickActions(y.quickActionButtonsContainer);var c=function(){return y.quickActionsViewModel().quickActionButtons||[]},Z=_.nj(y.quickActionButtonsContainer,function(){return _.X(L9F,{data:c})});
y.addOnDisposeCallback(function(){W.setFullscreenQuickActions(void 0);Z()})}},Tr3=function(y,W){if(!y.playerOverlayVideoDetailsRendererContainer){y.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
W.setPlayerOverlayVideoDetailsRenderer(y.playerOverlayVideoDetailsRendererContainer);var c=_.nj(y.playerOverlayVideoDetailsRendererContainer,function(){return _.X(HRf,{data:y.playerOverlayVideoDetailsRenderer})});
y.addOnDisposeCallback(function(){W.setPlayerOverlayVideoDetailsRenderer(void 0);c()})}};var J1=function(y){_.UR.call(this);var W=this;this.JSC$20095_watchApi=y;this.JSC$20095_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;y=_.ot(_.Sv(),_.VP,function(c){aPn(W,c)});
this.addOnDisposeCallback(y);y=_.ot(_.Sv(),_.CI,function(c){W.onWatchScroll(c)});
this.addOnDisposeCallback(y);_.O("kevlar_watch_while_v2")&&(y=_.ot(_.Sv(),_.Eq,function(c){xCF(W,c)}),this.addOnDisposeCallback(y));
iRX(this);M59(this);ee$();this.onWatchScroll(_.CI(_.Sv().getState()));_.I8("START_IN_FULL_WINDOW_MODE")&&this.JSC$20095_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.R(J1,_.UR);var iRX=function(y){y.JSC$20095_watchApi.registerActionHandler("yt-fullscreen-change-action",function(W){var c=Ji(_.Sv().getState());W&&!c||_.Sv().dispatch(_.jv({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!W}}))});
y.addOnDisposeCallback(function(){P1(y.JSC$20095_watchApi,"yt-fullscreen-change-action")})},M59=function(y){var W,c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20095_watchApi.playerApi,2);W=Z.yieldResult;c=function(){y.onFullerscreenEduClicked()};
W.addEventListener("onFullerscreenEduClicked",c);y.addOnDisposeCallback(function(){W.removeEventListener("onFullerscreenEduClicked",c)});
_.F2(Z)})},aPn=function(y,W){var c;
_.m(function(Z){if(Z.nextAddress==1)return y.isFullscreen=!!_.jG(),_.n(Z,y.JSC$20095_watchApi.playerApi,2);c=Z.yieldResult;y.JSC$20095_miniplayerActive||c.setFauxFullscreen(y.isFullscreen);if(W&&(y.JSC$20095_watchApi.focusOnPlayer(),!y.fullerscreenEduButtonShownThisPlayback)){y.fullerscreenEduButtonShownThisPlayback=!0;var G=_.cj("yt-fullerscreen-edu-button-shown-count")||0;_.Wj("yt-fullerscreen-edu-button-shown-count",G+1,31536E3);y.updateFullerscreenEduButtonSubtleModeState()}_.F2(Z)})},xCF=function(y,
W){var c;
_.m(function(Z){if(Z.nextAddress==1)return y.JSC$20095_miniplayerActive=W,_.n(Z,y.JSC$20095_watchApi.playerApi,2);c=Z.yieldResult;c.setFauxFullscreen(!y.JSC$20095_miniplayerActive&&y.isFullscreen);_.F2(Z)})};
J1.prototype.onWatchScroll=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1)return _.O("external_fullscreen_with_edu")?_.n(G,W.JSC$20095_watchApi.playerApi,2):G.return();c=G.yieldResult;Z=y<=0;W.shouldShowFullerscreenEdu!==Z&&(W.shouldShowFullerscreenEdu=Z,c.updateFullerscreenEduButtonVisibility(!W.shouldShowFullerscreenEdu));_.F2(G)})};
J1.prototype.onFullerscreenEduClicked=function(){this.JSC$20095_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var y=_.cj("yt-fullerscreen-edu-button-click-count")||0;_.Wj("yt-fullerscreen-edu-button-click-count",y+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
J1.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var y=this,W,c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return W=_.cj("yt-fullerscreen-edu-button-click-count")||0,c=_.cj("yt-fullerscreen-edu-button-shown-count")||0,Z=_.ey("external_fullscreen_button_click_threshold"),G=_.ey("external_fullscreen_button_shown_threshold"),D=W>=Z||c>=G,_.n(u,y.JSC$20095_watchApi.playerApi,2);Y=u.yieldResult;Y.updateFullerscreenEduButtonSubtleModeState(D);_.F2(u)})};
J1.prototype.disposeInternal=function(){_.UR.prototype.disposeInternal.call(this);var y=_.jG();_.O("kevlar_exit_fullscreen_leaving_watch")&&y&&_.yu(y)};
var ee$=function(){if(_.O("web_watch_add_viewport_meta_tag")){var y=document.querySelector("meta[name=viewport]"),W=document.head;W&&!y&&(y=document.createElement("meta"),y.name="viewport",y.content="width=device-width, initial-scale=1.0, viewport-fit=cover",W.appendChild(y))}};var qAf=function(y){_.UR.call(this);var W=this;this.JSC$20099_watchApi=y;this.jobId=0;this.pendingRequestId=void 0;var c=this.JSC$20099_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){w7f(W)});
this.addOnDisposeCallback(function(){W.JSC$20099_watchApi.unsubscribeByKey(c)});
w7f(this)};
_.R(qAf,_.UR);var kj0=function(y){_.KX.cancelJob(y.jobId);y.pendingRequestId=void 0},w7f=function(y){kj0(y);
var W=cnX(y.JSC$20099_watchApi.getWatchNextResponse());if(W){var c=250,Z,G=(Z=_.g(W,_.mtE))==null?void 0:Z.initialDelayMs;_.O("web_watch_updated_metadata_server_initial_delay")&&G&&(c=G);y.jobId=_.KX.addLowPriorityJob(function(){return y.fetchUpdatedMetadata(W)},c)}};
qAf.prototype.fetchUpdatedMetadata=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q;return _.m(function(S){switch(S.nextAddress){case 1:W&&(Z={continuation:W});if(!_.O("web_get_updated_metadata_fantasy_panel_continuation_params")){S.jumpTo(2);break}G=_.U().resolve(_.Xi);D="PAsports_fantasy";return _.n(S,G.isVisible(D,!0),3);case 3:S.yieldResult&&(b=(u=(Y=G).getUpdatePanelContinuationData)==null?void 0:(t=u.call(Y,D))==null?void 0:t.updatePanelContinuationRequest)&&(Z||(Z={}),Z.clientParams=
{panelContinuationParams:{panelContinuation:b}});case 2:r=_.U().resolve(_.b0);if(!r)return _.OP(Error("hm")),S.return();F={};c.pendingRequestId=F;return _.n(S,_.IL(r,y,Z),4);case 4:K=S.yieldResult;if(F!==c.pendingRequestId)return S.return();P=(l=K)==null?void 0:(N=l.continuation)==null?void 0:N.timedContinuationData;((V=P)==null?0:V.continuation)&&((Q=P)==null?0:Q.timeoutMs)&&(c.jobId=_.KX.addLowPriorityJob(function(){return c.fetchUpdatedMetadata(y,P.continuation)},P.timeoutMs));
_.F2(S)}})};
qAf.prototype.disposeInternal=function(){_.UR.prototype.disposeInternal.call(this);kj0(this)};var jlf=_.Ax(function(y){var W=_.j9(function(){var Z=y.data().videoId;if(y.active())Z=_.eG(Z),_.U().resolve(_.i1).resolveCommand(Z);else{var G=y.playerApi(),D=G.getAvailableAudioTracks(),Y,u,t=(Y=y.sourceVideoConfig().audioTracks)==null?void 0:(u=Y.find(function(b){return b.isDefaultForSource}))==null?void 0:u.id;
if(D=D.find(function(b){return b.getLanguageInfo().getId()===t}))G.setAudioTrack(D,!0),G.setCompositeParam({activeVideoId:Z}),y.setActiveSourceId(Z)}}),c={};
return _.X("ytw-composite-source-video-overlay",{class:_.Mi("ytwCompositeSourceVideoOverlayHost",(c.ytwCompositeSourceVideoOverlayActive=y.active,c.ytwCompositeSourceVideoOverlayInteracting=y.interacting,c)),style:_.cF({left:function(){var Z;return((Z=y.data().topLeftCornerX)!=null?Z:0)*100+"%"},
top:function(){var Z;return((Z=y.data().topLeftCornerY)!=null?Z:0)*100+"%"},
width:function(){var Z;return((Z=y.data().width)!=null?Z:0)*100+"%"},
height:function(){var Z;return((Z=y.data().height)!=null?Z:0)*100+"%"}}),
"on:click":W},_.X("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ri");var yvf=_.Ax(function(y){var W=_.z(_.WF(function(){var u,t=(u=y.data().sources)==null?void 0:u.find(function(b){return b.isActive});
if(t)return t.videoId})),c=W.next().value,Z=W.next().value;
W=_.z(_.G9(!1,void 0,"WI4BUb"));var G=W.next().value,D=W.next().value;W=_.j9(function(){D(!0)});
var Y=_.j9(function(){D(!1)});
return _.X("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":W,"on:mouseout":Y},_.X(_.YN,{cond:function(){return y.data().sources},
then:function(u){return _.X(_.mC,{each:u},function(t){return _.X(jlf,{data:t,active:function(){return t.videoId===c()},
setActiveSourceId:Z,interacting:G,playerApi:y.playerApi,sourceVideoConfig:function(){return Zf3(y.compositeVideoConfig(),t.videoId)}})})}}))},"si");var ZXM=function(y){_.UR.call(this);this.JSC$20115_watchApi=y;y=_.z(_.G9({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=y.next().value;this.setCompositeVideoOverlayRenderer=y.next().value;y=_.z(_.G9({},void 0,"U5hcq"));this.compositeVideoConfig=y.next().value;this.setCompositeVideoConfig=y.next().value;WhX(this);cvM(this)};
_.R(ZXM,_.UR);var WhX=function(y){var W=y.JSC$20115_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){cvM(y)});
y.addOnDisposeCallback(function(){y.JSC$20115_watchApi.unsubscribeByKey(W)})},GMf=function(y){var W;
return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$20115_watchApi.playerApi,2);W=c.yieldResult;W.setCompositeVideoOverlayRendererComponent(y.container);_.F2(c)})},fn7=function(y){var W;
return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$20115_watchApi.playerApi,2);W=c.yieldResult;W.setCompositeVideoOverlayRendererComponent(void 0);_.F2(c)})},o27=function(y){var W,c;
return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20115_watchApi.playerApi,2);W=Z.yieldResult;y.container=document.createElement("div");c=_.nj(y.container,function(){return _.X(yvf,{data:y.compositeVideoOverlayRenderer,compositeVideoConfig:y.compositeVideoConfig,playerApi:W})});
y.addOnDisposeCallback(c);_.F2(Z)})},cvM=function(y){var W,c,Z,G,D,Y,u,t;
_.m(function(b){return b.nextAddress==1?(W=y.JSC$20115_watchApi.getPlayerResponse(),D=_.g((c=W)==null?void 0:(Z=c.overlay)==null?void 0:(G=Z.playerControlsOverlayRenderer)==null?void 0:G.compositeVideoOverlay,keF),t=(Y=W)==null?void 0:(u=Y.playerConfig)==null?void 0:u.compositeVideoConfig,D&&y.setCompositeVideoOverlayRenderer(D),t&&y.setCompositeVideoConfig(t),D&&t?y.container?b.jumpTo(6):_.n(b,o27(y),6):DV9(y)?_.n(b,fn7(y),0):b.jumpTo(0)):DV9(y)?b.jumpTo(0):_.n(b,GMf(y),0)})},DV9=function(y){var W;
return!((W=y.container)==null||!W.parentElement)};
ZXM.prototype.disposeInternal=function(){DV9(this)&&fn7(this);_.UR.prototype.disposeInternal.call(this)};var uDF=function(y){_.UR.call(this);var W=this;this.JSC$20121_watchApi=y;var c=this.JSC$20121_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Z=W.JSC$20121_watchApi.getPlayerResponse();if(Z){var G,D;if(Z=_.g((G=Z.endscreen)==null?void 0:(D=G.endscreenRenderer)==null?void 0:D.hideButton,_.F5)){var Y;(Y=W.setEndscreenHideButton)==null||Y.call(W,Z);z$f(W)}}});
this.addOnDisposeCallback(function(){W.JSC$20121_watchApi.unsubscribeByKey(c)});
y=_.z(_.G9({},void 0,"PPHRb"));this.endscreenHideButton=y.next().value;this.setEndscreenHideButton=y.next().value;YW$(this);mVf(this);slX(this)};
_.R(uDF,_.UR);var z$f=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return y.creatorEndscreenHideButtonContainer?Z.return():_.n(Z,y.JSC$20121_watchApi.playerApi,2);W=Z.yieldResult;y.creatorEndscreenHideButtonContainer=document.createElement("div");_.Lg(y.creatorEndscreenHideButtonContainer,!1);W.setCreatorEndscreenHideButton(y.creatorEndscreenHideButtonContainer);c=_.nj(y.creatorEndscreenHideButtonContainer,function(){return _.X(_.UV,{data:y.endscreenHideButton,useOutlinedIcon:!0})});
y.addOnDisposeCallback(function(){c();W.setCreatorEndscreenHideButton(void 0)});
_.F2(Z)})},YW$=function(y){var W,c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20121_watchApi.playerApi,2);W=Z.yieldResult;c=function(){y.creatorEndscreenHideButtonContainer&&_.Lg(y.creatorEndscreenHideButtonContainer,!0)};
W.addEventListener("endscreenelementshown",c);y.addOnDisposeCallback(function(){W.removeEventListener("endscreenelementshown",c)});
_.F2(Z)})},mVf=function(y){var W=function(){y.creatorEndscreenHideButtonContainer&&_.Lg(y.creatorEndscreenHideButtonContainer,!1)},c=y.JSC$20121_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",W),Z=y.JSC$20121_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",W);
y.addOnDisposeCallback(function(){y.JSC$20121_watchApi.unsubscribeByKey(c);y.JSC$20121_watchApi.unsubscribeByKey(Z)})},slX=function(y){y.JSC$20121_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(W){var c=_.g(W,x97);
y.JSC$20121_watchApi.playerApi.then(function(Z){Z==null||Z.setCreatorEndscreenVisibility(!!c.hide)})});
y.addOnDisposeCallback(function(){P1(y.JSC$20121_watchApi,"yt-change-creator-endscreen-visibility-command")})};var n23=function(y){_.UR.call(this);this.JSC$20127_watchApi=y;tSX(this)};
_.R(n23,_.UR);var tSX=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20127_watchApi.playerApi,2);W=Z.yieldResult;c=function(G){_.Sv().dispatch(_.jv({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:G}}))};
W.addEventListener("onRetroModeChanged",c);y.addOnDisposeCallback(function(){W.removeEventListener("onRetroModeChanged",c)});
_.F2(Z)})};var s$X=0,Ai=0,tQn=0;var Xn$=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),VC=function(y){_.UR.call(this);this.JSC$20140_watchApi=y;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;bXf(this)};
_.R(VC,_.UR);
var bXf=function(y){var W,c,Z;_.m(function(G){if(G.nextAddress==1)return _.n(G,y.JSC$20140_watchApi.playerApi,2);W=G.yieldResult;if(y.isDisposed())return G.return();y.sessionStorage=_.ijH("yt-sleep-timer");y.sessionStorage||_.Rs(new _.ul("SessionStorage for Sleep Timer is undefined."));((c=y.sessionStorage)==null?void 0:c.get("yt-sleep-timer"))==="true"&&(bfF(),(Z=y.sessionStorage)==null||Z.remove("yt-sleep-timer"),W.syncVolume());rvM(y,W);Fh9(y,W);UV$(y,W);_.F2(G)})},rvM=function(y,W){var c=function(b){y.onSleepTimerSettingsChanged(b,
W)},Z=function(b){y.onPlayerStateChange(b,W)},G=function(){y.onLoopChange(W)},D=function(){y.onCloseMiniplayer(W)},Y=function(){m9F(W,(0,_.Tj)(),rn3(W),y.selectedOption==="End of video",W.getPlayerState()!==1)},u=function(){y.onSeekComplete(W)},t=function(){_.KX.cancelJob(Ai);
var b=W.getCurrentTime()>=W.getDuration(),r=y.selectedOption==="End of video"||y.selectedOption==="End of playlist"&&!D93(y.playlistId);b&&r&&$V0(y,W)};
W.addEventListener("onSleepTimerSettingsChanged",c);W.addEventListener("onLoopChange",G);W.addEventListener("onLoopRangeChange",G);W.addEventListener("onStateChange",Z);W.addEventListener("onCloseMiniplayer",D);W.addEventListener("onSleepTimerFeatureAvailable",Y);W.addEventListener("SEEK_COMPLETE",u);W.addEventListener("onAdStart",t);y.addOnDisposeCallback(function(){W.removeEventListener("onSleepTimerSettingsChanged",c);W.removeEventListener("onLoopChange",G);W.removeEventListener("onLoopRangeChange",
G);W.removeEventListener("onStateChange",Z);W.removeEventListener("onCloseMiniplayer",D);W.removeEventListener("onSleepTimerFeatureAvailable",Y);W.removeEventListener("SEEK_COMPLETE",u);W.removeEventListener("onAdStart",t)})},Fh9=function(y,W){var c=y.JSC$20140_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Z=W.getVideoData().video_id,G,D=(G=f33(y.JSC$20140_watchApi))==null?void 0:G.playlistId;
y.pauseAutonavPlayback&&(W.pauseVideo(),W.syncVolume(),y.pauseAutonavPlayback=!1);if(y.selectedOption==="End of video"&&Z!==y.videoId)C_(y,W);else{if(y.selectedOption==="End of playlist"){G=D93(y.playlistId);if(D!==y.playlistId){C_(y,W);break a}G?G&&KhX(y,W):OXX(y,W)}y.videoId=Z;y.playlistId=D}}});
y.addOnDisposeCallback(function(){y.JSC$20140_watchApi.unsubscribeByKey(c)})},UV$=function(y,W){var c=_.U().resolve(_.Fq),Z=_.ot(c,_.IEt,function(D){D&&y.selectedOption!=="Off"&&C_(y,W)}),G=_.ot(c,Ji,function(D){var Y,u;
return _.m(function(t){if(t.nextAddress==1)return _.n(t,_.GR().navigationFinishPromise,2);Y=!_.DlV();u=_.U().resolve(_.Cy).isMiniplayerActive();D||!GeX(y.selectedOption)||u||Y||C_(y,W);_.F2(t)})});
c=_.ot(c,function(D){return D.entities.playlistLoopStateEntity||{}},function(D){D=D===void 0?{}:D;
var Y=oXM(y.JSC$20140_watchApi);if(Y){var u;((u=D[Y])==null?void 0:u.state)==="PLAYLIST_LOOP_STATE_ALL"&&GeX(y.selectedOption)&&C_(y,W)}});
y.addOnDisposeCallback(Z);y.addOnDisposeCallback(c);y.addOnDisposeCallback(G)};
VC.prototype.onSleepTimerSettingsChanged=function(y,W){switch(y){case "Off":this.selectedOption!=="Off"&&C_(this,W);break;case "End of video":case "End of playlist":g27(this,y,W);break;default:g27(this,y,W,Xn$.get(y))}};
VC.prototype.onLoopChange=function(y){(y.getLoopVideo()||y.getLoopRange())&&GeX(this.selectedOption)&&C_(this,y)};
VC.prototype.onCloseMiniplayer=function(y){GeX(this.selectedOption)&&C_(this,y)};
var g27=function(y,W,c,Z){R$$(y,c);y.selectedOption=W;y.videoId=c.getVideoData().video_id;y.playlistId="";var G;(G=y.sessionStorage)==null||G.set("yt-sleep-timer","true");y.adjustmentsCount++;m9F(c,(0,_.Tj)(),rn3(c),y.selectedOption==="End of video");if(y.selectedOption==="End of video")OXX(y,c),lnf(y,c);else if(y.selectedOption==="End of playlist"){lnf(y,c);var D,Y;y.playlistId=(Y=(D=f33(y.JSC$20140_watchApi))==null?void 0:D.playlistId)!=null?Y:"";D93(y.playlistId)||OXX(y,c)}else Z&&(y.presetFadeSchedulerId=
_.YY(_.KX,function(){nX$(c,15E3)},Z-15E3),y.presetPauseSchedulerId=_.YY(_.KX,function(){$V0(y,c)},Z),uMX(c,(0,_.Tj)(),Z))},$V0=function(y,W){if(Ji(_.U().resolve(_.Fq).getState())){var c={dismissDialogEndpoint:{}};
var Z={commandExecutorCommand:{commands:[c,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};c={buttonViewModel:{title:_.bN("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:c}}};Z={buttonViewModel:{title:_.bN("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Z}}};var G={dialogHeaderViewModel:{headline:{content:_.bN("SLEEP_TIMER_ENDED_TITLE")}}};
var D={basicContentViewModel:{paragraphs:[{text:{content:_.bN("SLEEP_TIMER_ENDED_TEXT")}}]}};c={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:G,content:D,footer:{panelFooterViewModel:{primaryButton:c,secondaryButton:Z,shouldHideDivider:!0}}}}}}};_.U().resolve(_.i1).resolveCommand(c,{form:{element:y}})}else bfF();E2Q(y,!1);NXM(y,W);W.pauseVideo();_.LF.getInstance().getState()===2&&W.getPlayerState()===5&&(y.pauseAutonavPlayback=!0)},C_=function(y,W){E2Q(y,!0);
NXM(y,W);bfF()},NXM=function(y,W){R$$(y,W);
y.selectedOption="Off";y.videoId="";y.playlistId="";y.adjustmentsCount=0;var c;(c=y.sessionStorage)==null||c.remove("yt-sleep-timer");_.KX.cancelJob(s$X);W.resetSleepTimerMenuSettings()},E2Q=function(y,W){W={timer_length_adjustment_times_during_session:y.adjustmentsCount-1,
is_session_cancelled:W};switch(y.selectedOption){case "Off":W.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":W.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:W.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",W.option_duration_in_minutes=Xn$.get(y.selectedOption)/6E4}_.$g("sleepTimerSessionFinishEvent",W)};
VC.prototype.onPlayerStateChange=function(y,W){y===1?m9F(W,(0,_.Tj)(),rn3(W),this.selectedOption==="End of video"):y===0?(_.KX.cancelJob(Ai),W.setVideoTimeLeft(Y3$(0,0))):y===2&&_.KX.cancelJob(Ai);this.selectedOption==="End of video"?y===0?$V0(this,W):y===2&&XXM(W):this.selectedOption!=="End of playlist"||D93(this.playlistId)||(y===0?$V0(this,W):y===2&&XXM(W))};
VC.prototype.onSeekComplete=function(y){y.getPlayerState()===2&&m9F(y,(0,_.Tj)(),rn3(y),this.selectedOption==="End of video",!0)};
VC.prototype.onCueRangeEnter=function(y,W){y==="sleep-timer-fade-audio"&&(y=(W.getDuration()-W.getProgressState().current)*1E3,nX$(W,y))};
VC.prototype.onCueRangeExit=function(y,W){y==="sleep-timer-fade-audio"&&W.getPlayerState()!==0&&XXM(W,!0)};
var OXX=function(y,W){W.addCueRange("sleep-timer-fade-audio",W.getDuration()-15,W.getDuration());W.addEventListener("onCueRangeEnter",function(c){y.onCueRangeEnter(c,W)});
W.addEventListener("onCueRangeExit",function(c){y.onCueRangeExit(c,W)})},KhX=function(y,W){W.removeCueRange("sleep-timer-fade-audio");
W.removeEventListener("onCueRangeEnter",function(c){y.onCueRangeEnter(c,W)});
W.removeEventListener("onCueRangeExit",function(c){y.onCueRangeExit(c,W)})},R$$=function(y,W){GeX(y.selectedOption)?KhX(y,W):(_.KX.cancelJob(y.presetPauseSchedulerId),_.KX.cancelJob(y.presetFadeSchedulerId),y.presetPauseSchedulerId=0,y.presetFadeSchedulerId=0);
XXM(W,!0)},lnf=function(y,W){W.setLoop(!1);
W.setLoopVideo(!1);W.setLoopRange(null);(y=oXM(y.JSC$20140_watchApi))&&_.U().resolve(_.Fq).dispatch(_.o3("playlistLoopStateEntity",y,{key:y,state:"PLAYLIST_LOOP_STATE_NONE"}))};var JvX=function(y){_.UR.call(this);this.JSC$20143_watchApi=y;In$(this);pnF(this);Pzf(this);y=y.getRoot();if(y.is==="ytd-watch-flexy"||y.is==="ytd-watch-grid")y.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.OQ$();_.O("web_watch_log_theater_mode_cookie_state")&&_.DP.get("wide","0")==="1"&&_.f1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.R(JvX,_.UR);var In$=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20143_watchApi.playerApi,2);W=Z.yieldResult;c=function(G){VSM(y,!!G)};
W.addEventListener("SIZE_CLICKED",c);y.addOnDisposeCallback(function(){W.removeEventListener("SIZE_CLICKED",c)});
_.F2(Z)})},pnF=function(y){y.JSC$20143_watchApi.registerActionHandler("yt-toggle-theater-mode",function(W,c){VSM(y,W,c===void 0?!0:c)});
y.addOnDisposeCallback(function(){P1(y.JSC$20143_watchApi,"yt-toggle-theater-mode")})};
JvX.prototype.getState=function(){return _.si(_.Sv().getState())};
var VSM=function(y,W,c){c=c===void 0?!0:c;var Z,G,D,Y=_.O("enable_player_resize_transition")&&!!y.JSC$20143_watchApi.getWatchNextResponse()&&!((Z=y.JSC$20143_watchApi.getWatchNextResponse())==null?0:(G=Z.contents)==null?0:(D=G.twoColumnWatchNextResults)==null?0:D.conversationBar);_.SP6(function(){_.Sv().dispatch(_.jv({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:W}}));_.O("theater_mode_scroll_to_top_killswitch")||y.JSC$20143_watchApi.scrollWatchTo(0,!1);_.jG()&&_.O("external_fullscreen")&&_.yu(document.documentElement);
Pzf(y);c&&_.zj("wide",W?"1":"0",-1);_.GG(y.JSC$20143_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);y.JSC$20143_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:W});W&&_.OQ$()},{shouldWrap:Y})},Pzf=function(y){var W;
_.m(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$20143_watchApi.playerApi,2);W=c.yieldResult;W.setSizeStyle(!0,y.getState());_.F2(c)})};var Av7=function(y){_.UR.call(this);var W=this;this.playerApi=y;this.timeToPanelSyncKeyMap={};var c;if(y==null?0:(c=y.isReady)==null?0:c.call(y)){c=_.ot(_.U().resolve(_.Fq),function(G){return G.entities.timedMarkersListSyncEntity||{}},function(G,D){G=G===void 0?{}:G;
D=D===void 0?{}:D;for(var Y=_.z(Object.keys(D)),u=Y.next();!u.done;u=Y.next())u=u.value,G[u]!==D[u]&&CzX(W,D[u]);D=_.z(Object.keys(G));for(Y=D.next();!Y.done;Y=D.next())Y=Y.value,u=G[Y],W.timeToPanelSyncKeyMap[Y]&&Ql3(W,u)});
this.addOnDisposeCallback(c);var Z=function(G){W.onCueRangeEnter(G)};
y.addEventListener("onCueRangeEnter",Z);this.addOnDisposeCallback(function(){var G;(G=y.removeEventListener)==null||G.call(y,"onCueRangeEnter",Z)})}};
_.R(Av7,_.UR);
var Ql3=function(y,W){var c,Z;if((c=y.playerApi)==null?0:(Z=c.isReady)==null?0:Z.call(c)){var G;if((c=W==null?void 0:(G=W.timedListData)==null?void 0:G.sections)&&W!=null&&W.key)for(G=_.z(c),c=G.next();!c.done;c=G.next())if(c=c.value,c.timedSyncDataList&&c.sectionId)for(Z=0;Z<c.timedSyncDataList.length;Z++){var D=c.timedSyncDataList[Z];D.syncItemId&&y.playerApi.addCueRange(c.sectionId+"_"+W.key+"_"+D.syncItemId,Number(D.videoTimeMs)/1E3,Z===c.timedSyncDataList.length-1?0x8000000000000:Number(c.timedSyncDataList[Z+
1].videoTimeMs)/1E3)}}},CzX=function(y,W){var c,Z;
if((c=y.playerApi)==null?0:(Z=c.isReady)==null?0:Z.call(c)){var G;if((c=W==null?void 0:(G=W.timedListData)==null?void 0:G.sections)&&W!=null&&W.key)for(G=_.z(c),c=G.next();!c.done;c=G.next())if(c=c.value,c.timedSyncDataList&&c.sectionId){Z=_.z(c.timedSyncDataList);for(var D=Z.next();!D.done;D=Z.next())D=D.value,D.syncItemId&&y.playerApi.removeCueRange(c.sectionId+"_"+W.key+"_"+D.syncItemId)}}};
Av7.prototype.onCueRangeEnter=function(y){for(var W=_.z(Object.keys(this.timeToPanelSyncKeyMap)),c=W.next();!c.done;c=W.next()){c=c.value;var Z=_.z(y.split("_"+c+"_")),G=Z.next().value;Z=Z.next().value;if(G&&Z){y=_.U().resolve(_.Fq);W=this.timeToPanelSyncKeyMap[c];var D=_.O5a(y.getState(),W);c=h$f(c,G,Z);if(c===-1)break;c={activeSyncId:Z,activeItemIndex:c,activeSectionInfo:{sectionIdentifier:G}};D?y.dispatch(_.$Y("markersEngagementPanelSyncEntity",W,c)):y.dispatch(_.o3("markersEngagementPanelSyncEntity",
W,Object.assign({},{key:W},c)));break}}};
var h$f=function(y,W,c){var Z=_.U().resolve(_.Fq),G,D;y=(G=F6M(Z.getState(),y))==null?void 0:(D=G.timedListData)==null?void 0:D.sections;if(!y)return-1;G=0;D=_.z(y);for(y=D.next();!y.done;y=D.next()){y=y.value;Z=y.timedSyncDataList||[];if(y.sectionId===W)return W=Z.findIndex(function(Y){return Y.syncItemId===c}),W===-1?W:G+W;
G+=Z.length}return-1};var Lhf=function(y){_.UR.call(this);var W=this;this.JSC$20155_watchApi=y;this.unresolvedCommands=[];this.JSC$20155_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(c){BXf(W,c)});
this.addOnDisposeCallback(function(){P1(W.JSC$20155_watchApi,"yt-update-timed-markers-sync-observer-command")});
HXX(this)};
_.R(Lhf,_.UR);var HXX=function(y){var W;_.m(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$20155_watchApi.playerApi,2);W=c.yieldResult;if(y.isDisposed())return c.return();y.timedSyncObserver=new Av7(W);y.unresolvedCommands.length&&(y.unresolvedCommands.forEach(function(Z){return BXf(y,Z)}),y.unresolvedCommands=[]);
_.zY(y,y.timedSyncObserver);_.F2(c)})},BXf=function(y,W){if(y.timedSyncObserver){var c=_.g(W,MQ3);
if(c&&c.timedSyncEntityKey&&c.panelSyncEntityKey){y=y.timedSyncObserver;W=c.timedSyncEntityKey;var Z=c.panelSyncEntityKey;c=!!c.isEnabled;c=c===void 0?!0:c;var G=_.U().resolve(_.Fq);G=F6M(G.getState(),W);c?y.timeToPanelSyncKeyMap[W]||(y.timeToPanelSyncKeyMap[W]=Z,Ql3(y,G)):(delete y.timeToPanelSyncKeyMap[W],CzX(y,G))}}else y.unresolvedCommands.push(W)};var v2$=_.Ax(function(y){var W=y.data,c=y.maybeLogSmartSkipClientData,Z=_.HO();_.VL(Z,function(){return W().rendererContext},{onTap:function(r,F){F({disableClickTracking:!0})}});
var G=null,D=null,Y=_.O("web_enable_auto_focus_for_timely_action_button"),u=function(){G=document.activeElement},t=function(){W().smartSkipMetadata&&(G=document.activeElement,r9f(function(){return D}))},b=function(r){if(W().smartSkipMetadata&&(!r||r.key!=="Enter")){G&&G.isConnected&&(r9f(function(){return G}),G=null);
var F;(F=D)==null||F.blur()}};
y=_.j9(function(){c==null||c(!0,W());return!1});
_.MF(Z,{visibilityCallback:function(r){if(Y)r?D&&W().smartSkipMetadata&&(t(),document.addEventListener("focusin",u)):(document.removeEventListener("focusin",u),b());else if(r&&_.O("web_ephemeral_actions")){r=_.pp(W().rendererContext);var F=Number(W().maxVisibleDurationMilliseconds),K,l=(K=_.g(W().rendererContext,_.Cp))==null?void 0:K.label;r&&F&&l&&(K={label:l,command:r,durationMs:F},_.U().resolve(_.wE).enqueue(K))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.Xl(function(){if(Y){var r;if((D=(r=Z.value)==null?void 0:r.querySelector("button"))&&W().smartSkipMetadata){var F;(F=Z.value)==null||F.addEventListener("keydown",b)}}});
_.KL(function(){Y&&(D&&W().smartSkipMetadata&&D.removeEventListener("keydown",b),document.removeEventListener("focusin",u),b())});
return _.X("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:Z,"on:click":y},_.X(_.bg,{data:function(){return W().content}},{buttonViewModel:_.OV}))},"ti");var dVf=_.Ax(function(y){var W=y.data,c=y.playerApi,Z=_.U().resolve(_.je9);y=_.z(_.WF(function(){W()}));
var G=y.next().value,D=y.next().value,Y=function(){return $97(W(),G())},u=function(b,r){var F,K,l=(F=_.g(r==null?void 0:r.rendererContext,_.JrD))==null?void 0:(K=F.loggingDirectives)==null?void 0:K.trackingParams;
if((r=r==null?void 0:r.smartSkipMetadata)&&r.loggingData&&(K=r.loggingData,r=K.algorithmId,F=K.startMilliseconds,K=K.endMilliseconds,r&&F!==void 0&&K!==void 0)){var N,P;b={smartSkipData:Object.assign({},{versionName:r,startMediaTimeMs:F,endMediaTimeMs:K},b&&{userInteractionMediaTimeMs:(Math.floor(((N=_.HF())==null?void 0:(P=N.getPlayer())==null?void 0:P.getCurrentTime())||0)*1E3).toString()})};N=_.NR();var V;l&&(V=_.Dz(l));N&&V&&_.aP(N,V,b)}},t=function(b,r){var F=$97(W(),b);
if(F){var K=_.g(F,U9f),l;if(l=r)l=c(),F=_.g(F,U9f),l=F!=null&&F.smartSkipMetadata?!(l==null?0:l.isSameMarkerTypeVisible((F==null?void 0:F.smartSkipMetadata.markerKey)||"")):!0;if(l){var N,P;(K==null?0:(N=K.smartSkipMetadata)==null?0:(P=N.loggingData)==null?0:P.isCounterfactual)||(u(!1,K),D(b))}else r||G()!==b||D(void 0)}};
_.$k(function(){var b=W().timelyActions;if(b){b=_.z(b);for(var r=b.next();!r.done;r=b.next()){r=_.g(r.value,U9f);var F=void 0;(F=r)!=null&&F.cueRangeId&&Z.timelyActionsMap.set(r.cueRangeId,t)}_.KL(function(){Z.timelyActionsMap.clear()})}});
return _.X("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.X(_.bg,{data:Y},{timelyActionViewModel:function(b){return _.X(v2$,{data:b.data,maybeLogSmartSkipClientData:function(){u(!0,_.g(Y(),U9f))}})}}))},"ui");var TX0=function(y){_.UR.call(this);this.JSC$20167_watchApi=y;y=_.z(_.G9({},void 0,"pLDp2"));this.timelyActionsOverlay=y.next().value;this.setTimelyActionsOverlay=y.next().value;SWM(this)};
_.R(TX0,_.UR);var SWM=function(y){var W,c,Z,G;_.m(function(D){if(D.nextAddress==1)return an9(y),xVn(y),y.timelyActionsContainer=document.createElement("div"),_.n(D,y.JSC$20167_watchApi.playerApi,2);W=D.yieldResult;(Z=(c=W).insertTimelyActionUi)==null||Z.call(c,y.timelyActionsContainer);G=_.nj(y.timelyActionsContainer,function(){return _.X(dVf,{data:y.timelyActionsOverlay,playerApi:W})});
y.addOnDisposeCallback(G);_.F2(D)})},xVn=function(y){var W=y.JSC$20167_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){an9(y)});
y.addOnDisposeCallback(function(){y.JSC$20167_watchApi.unsubscribeByKey(W)})},an9=function(y){var W=y.JSC$20167_watchApi.getWatchNextResponse();
if(W){var c,Z;if(W=_.g((c=W.playerOverlays)==null?void 0:(Z=c.playerOverlayRenderer)==null?void 0:Z.timelyActionsOverlayViewModel,e0$)){var G;(G=y.setTimelyActionsOverlay)==null||G.call(y,W)}}};var MS0=function(y){_.UR.call(this);this.JSC$20171_watchApi=y;iXf(this)};
_.R(MS0,_.UR);var iXf=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20171_watchApi.playerApi,2);W=Z.yieldResult;c=function(G){_.km.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.g(G,_.Bgf)},popupType:"TOAST"}})};
W.addEventListener("onYtShowToast",c);y.addOnDisposeCallback(function(){W.removeEventListener("onYtShowToast",c)});
_.F2(Z)})};var e$F=!1,jsX=function(y){_.UR.call(this);this.JSC$20174_watchApi=y;this.fullscreen=this.theater=!1;wnX(this);qWQ(this);kM0(this)};
_.R(jsX,_.UR);var kM0=function(y){var W,c,Z;_.m(function(G){if(G.nextAddress==1)return _.n(G,y.JSC$20174_watchApi.playerApi,2);W=G.yieldResult;if(y.isDisposed())return G.return();c=y.JSC$20174_watchApi.getElement("CINEMATICS");if(!c)return G.return();y.JSC$20174_cinematicController=new _.uw(c,W);_.zY(y,y.JSC$20174_cinematicController);_.oWX(y.JSC$20174_cinematicController);ycX(y,_.Esy());Z=y.JSC$20174_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(D){Wsf(y,D)});
y.addOnDisposeCallback(function(){y.JSC$20174_watchApi.unsubscribeByKey(Z)});
ccX(y);Wsf(y,y.JSC$20174_cinematicController.isAllowed());ZD0(y,y.fullscreen,y.theater);G5M(y);_.F2(G)})},wnX=function(y){var W=y.JSC$20174_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ccX(y)});
y.addOnDisposeCallback(function(){y.JSC$20174_watchApi.unsubscribeByKey(W)})},qWQ=function(y){var W,c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20174_watchApi.playerApi,2);W=Z.yieldResult;c=function(G){ycX(y,G)};
W.addEventListener("cinematicSettingsToggleChange",c);y.addOnDisposeCallback(function(){W.removeEventListener("cinematicSettingsToggleChange",c)});
_.F2(Z)})},ccX=function(y){var W=y.JSC$20174_watchApi.getWatchNextResponse(),c;
W=_.g(W==null?void 0:(c=W.pageVisualEffects)==null?void 0:c[0],_.Pc);var Z;(Z=y.JSC$20174_cinematicController)==null||_.zEe(Z,W)},ycX=function(y,W){var c;
(c=y.JSC$20174_cinematicController)==null||_.D33(c,W);fJQ(y)},Wsf=function(y,W){var c;
_.m(function(Z){if(Z.nextAddress==1)return _.O("kevlar_watch_cinematics_invisible")&&(W=!1),_.n(Z,y.JSC$20174_watchApi.playerApi,2);c=Z.yieldResult;c.updateCinematicSettings(W);fJQ(y);_.F2(Z)})},G5M=function(y){var W=_.Uc();
if(_.O("kevlar_measure_ambient_mode_idle")&&!W.getFlag(192)&&!e$F){e$F=!0;var c=_.Xc(_.KX,function(){_.U().resolve(_.aL6).start(1E4)},5E3);
y.addOnDisposeCallback(function(){_.KX.cancelJob(c);_.U().resolve(_.aL6).stop()})}},ZD0=function(y,W,c){y.fullscreen=W;
y.theater=c;var Z;(Z=y.JSC$20174_cinematicController)==null||Z.setFullscreen(y.fullscreen,y.theater);if(_.O("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(y.theater||y.fullscreen){var G;(G=y.JSC$20174_cinematicController)!=null&&(G=G.currentCinematicEffect)!=null&&(G=G.storyboardManager,G.paused=!1,_.SDf(G),G.update())}else(y=y.JSC$20174_cinematicController)==null||(G=y.currentCinematicEffect)!=null&&G.pause()},fJQ=function(y){if(_.O("web_cinematic_theater_mode")||_.O("web_cinematic_fullscreen")){var W;
y.JSC$20174_watchApi.getRoot().toggleCinematicsActive(!((W=y.JSC$20174_cinematicController)==null||!W.isEnabled()))}};var YP0=function(y){_.UR.call(this);var W=this;this.JSC$20177_watchApi=y;this.commentsReady=!1;this.setCommentsJobId=0;y=_.ot(_.Sv(),_.CI,function(){ogX(W)});
this.addOnDisposeCallback(y);var c=this.JSC$20177_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){DFF(W)}),Z=this.JSC$20177_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){DFF(W)});
this.addOnDisposeCallback(function(){W.JSC$20177_watchApi.unsubscribeByKey(c);W.JSC$20177_watchApi.unsubscribeByKey(Z)});
var G=function(){_.O("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&zXM(W,"false")};
this.JSC$20177_watchApi.getRoot().addEventListener("yt-page-data-will-update",G);this.addOnDisposeCallback(function(){W.JSC$20177_watchApi.getRoot().removeEventListener("yt-page-data-will-update",G)});
DFF(this)};
_.R(YP0,_.UR);var DFF=function(y){y.commentsReady=!1;_.KX.cancelJob(y.setCommentsJobId);y.setCommentsJobId=_.Xc(_.KX,function(){ogX(y)},1E3)},ogX=function(y){if(!y.commentsReady){_.PA("cmi");
_.KX.cancelJob(y.setCommentsJobId);var W,c,Z,G,D=(W=y.JSC$20177_watchApi.getWatchNextResponse())==null?void 0:(c=W.contents)==null?void 0:(Z=c.twoColumnWatchNextResults)==null?void 0:(G=Z.results)==null?void 0:G.results.contents;W=void 0;if(D&&D.length)for(D=_.z(D),c=D.next();!c.done;c=D.next())if(c=c.value,G=Z=void 0,((Z=c)==null?void 0:(G=Z.itemSectionRenderer)==null?void 0:G.sectionIdentifier)==="comment-item-section"){_.O("web_watch_provide_undefined_comments")?W=c.itemSectionRenderer:y.JSC$20177_watchApi.provideRenderingData("COMMENTS",
c.itemSectionRenderer);zXM(y,"true");break}_.O("web_watch_provide_undefined_comments")&&y.JSC$20177_watchApi.provideRenderingData("COMMENTS",W);y.commentsReady=!0;y.JSC$20177_watchApi.dispatchEvent("yt-watch-comments-ready")}},zXM=function(y,W){var c;
(c=y.JSC$20177_watchApi.getElement("COMMENTS"))==null||c.setAttribute("canScheduleJobs",W)};var XOe;_.mFf=["engagement-panel-ads"];
XOe=function(y){_.UR.call(this);var W=this;this.JSC$20180_watchApi=y;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.O("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.O("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.O("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.ey("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)ss$(this);
else{var c=this.JSC$20180_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){uc$(W);QC(W)}),Z=this.JSC$20180_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){A1(W);
QC(W)});
this.JSC$20180_watchApi.getRoot().is==="ytd-watch-grid"&&_.O("swatcheroo_pbs_load_grid")&&(tu3(this),ngM(this));this.addOnDisposeCallback(function(){W.JSC$20180_watchApi.unsubscribeByKey(c);W.JSC$20180_watchApi.unsubscribeByKey(Z);_.KX.cancelJob(W.provideRichGridJobId)});
uc$(this);A1(this)}};
_.R(XOe,_.UR);var ss$=function(y){var W=y.JSC$20180_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){y.providePlayerJobId=_.X5(_.KX,function(){uc$(y);QC(y)},y.provideAllDataDelayMs)}),c=y.JSC$20180_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){y.provideWatchNextJobId=_.X5(_.KX,function(){A1(y);
QC(y)},y.provideAllDataDelayMs)}),Z=y.JSC$20180_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){y.provideWatchNextJobId=_.X5(_.KX,function(){A1(y);
QC(y)},y.provideAllDataDelayMs)});
y.JSC$20180_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Xc(_.KX,function(){uc$(y);A1(y);QC(y)},100)});
bD$(y.JSC$20180_watchApi,function(){_.KX.cancelJob(y.provideWatchNextJobId);_.KX.cancelJob(y.providePlayerJobId)});
y.addOnDisposeCallback(function(){P1(y.JSC$20180_watchApi,"yt-pending-navigation-cancelled");y.JSC$20180_watchApi.unsubscribeByKey(W);y.JSC$20180_watchApi.unsubscribeByKey(c);y.JSC$20180_watchApi.unsubscribeByKey(Z);_.KX.cancelJob(y.providePlayerJobId);_.KX.cancelJob(y.provideWatchNextJobId)});
uc$(y);A1(y)},uc$=function(y){var W=y.JSC$20180_watchApi.getPlayerResponse(),c,Z,G=(Z=W==null?void 0:(c=W.playabilityStatus)==null?void 0:c.messageRenderers)!=null?Z:[],D,Y;
W=(Y=W==null?void 0:(D=W.playabilityStatus)==null?void 0:D.messages)!=null?Y:[];D=_.z(W);for(Y=D.next();!Y.done;Y=D.next())G.push({alertRenderer:{text:_.Lq(Y.value),type:"WARNING"}});y.JSC$20180_watchApi.provideRenderingData("ALERTS",G)},A1=function(y){var W=[],c,Z,G,D=y.JSC$20180_watchApi.getWatchNextResponse(),Y,u,t,b,r=D==null?void 0:(Y=D.contents)==null?void 0:(u=Y.twoColumnWatchNextResults)==null?void 0:(t=u.results)==null?void 0:(b=t.results)==null?void 0:b.contents;
if(r)for(Y=_.z(r),u=Y.next();!u.done;u=Y.next())if(u=u.value,u.videoPrimaryInfoRenderer)var F=u;else if(u.videoSecondaryInfoRenderer){var K=u;b=t=void 0;u=Object.assign({},(t=u.videoSecondaryInfoRenderer)==null?void 0:(b=t.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(u.rows&&u.collapsedItemCount!==void 0){u.rows=u.rows.slice(0,u.collapsedItemCount).filter(function(La){return!!La.richMetadataRowRenderer});
u.collapsedItemCount=u.rows.length;var l={metadataRowContainerRenderer:u}}}else if(u.merchandiseShelfRenderer)var N=u;else if(u.ticketShelfRenderer)var P=u;else if(u.expandableMetadataRenderer)var V=u;else if(u.itemSectionRenderer)if(t=u.itemSectionRenderer.contents,b=void 0,y.directlyProvideComments&&((b=u.itemSectionRenderer)==null?void 0:b.sectionIdentifier)==="comment-item-section")_.PA("cmi"),y.JSC$20180_watchApi.provideRenderingData("COMMENTS",u.itemSectionRenderer);else if(t)for(u=_.z(t),t=
u.next();!t.done;t=u.next())if(t=t.value,t.commentsEntryPointHeaderRenderer)var Q=t;else if(t.clarificationRenderer||t.infoPanelContainerRenderer||t.infoPanelContentRenderer||t.emergencyOneboxRenderer){W.push(t);var S=S||!!K}else t.limitedStateMessageRenderer?Z=t:t.videoMetadataCarouselViewModel&&(G=t);if(_.O("web_watch_merch_in_sd_when_ticket_shelf_present")&&N&&P){var cy=N;N=void 0}if(y.provideWatchNextSecondaryResults){var M,fa,jI;y.JSC$20180_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
D==null?void 0:(M=D.contents)==null?void 0:(fa=M.twoColumnWatchNextResults)==null?void 0:(jI=fa.secondaryResults)==null?void 0:jI.secondaryResults)}if(y.JSC$20180_watchApi.getRoot().is==="ytd-watch-grid"&&!_.O("swa_prov_panels_ks")&&(D==null?0:D.engagementPanels)){var sD=D.engagementPanels.filter(function(La){var sZ,w2;return _.mFf.includes((w2=La==null?void 0:(sZ=La.engagementPanelSectionListRenderer)==null?void 0:sZ.targetId)!=null?w2:"")});
var ED=D.engagementPanels.filter(function(La){var sZ,w2;return!_.mFf.includes((w2=La==null?void 0:(sZ=La.engagementPanelSectionListRenderer)==null?void 0:sZ.targetId)!=null?w2:"")})}if(y.JSC$20180_watchApi.getRoot().is==="ytd-watch-grid"){var N1,bf;
y.JSC$20180_watchApi.provideRenderingData("LIVE_CHAT",D==null?void 0:(N1=D.contents)==null?void 0:(bf=N1.twoColumnWatchNextResults)==null?void 0:bf.conversationBar)}var Py,WJ,t5,xF;(M=D==null?void 0:(Py=D.contents)==null?void 0:(WJ=Py.twoColumnWatchNextResults)==null?void 0:(t5=WJ.secondaryResults)==null?void 0:(xF=t5.secondaryResults)==null?void 0:xF.offerModule)&&(M.donationShelfRenderer||M.donationUnavailableRenderer)&&y.JSC$20180_watchApi.getRoot().is!=="ytd-watch-grid"&&(c=M);Py=y.JSC$20180_watchApi.getPlayerResponse();
if(!Py||!_.bhH(Py.playabilityStatus,D==null?void 0:D.playerOverlays)){var M3;if(D==null?0:(M3=D.contents)==null?0:M3.singleColumnWatchNextResults){var wS,f8;var eV=D==null?void 0:(wS=D.contents.singleColumnWatchNextResults.results)==null?void 0:(f8=wS.results)==null?void 0:f8.contents}else{var N3,K8,PJ,cX;M3=!!(r==null?0:(N3=r[0])==null?0:(K8=N3.itemSectionRenderer)==null?0:(PJ=K8.contents)==null?0:(cX=PJ[0])==null?0:cX.backgroundPromoRenderer);var a$,oI;N3=!!(D==null?0:(a$=D.contents)==null?0:(oI=
a$.twoColumnWatchNextResults)==null?0:oI.secondaryResults);M3&&!N3&&(eV=r)}}r=W[0];a$=W[1];S&&W.length===1&&(a$=r,r=void 0);y.JSC$20180_watchApi.provideRenderingData("PRIMARY_INFO",F);y.JSC$20180_watchApi.provideRenderingData("SECONDARY_INFO",K);y.JSC$20180_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",Q);y.JSC$20180_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",G);y.JSC$20180_watchApi.provideRenderingData("CLARIFICATION",r);y.JSC$20180_watchApi.provideRenderingData("RICH_METADATA",
l);y.JSC$20180_watchApi.getRoot().is!=="ytd-watch-grid"||_.O("swa_prov_panels_ks")||_.O("web_watch_inject_placeholder_panels")||(y.JSC$20180_watchApi.provideRenderingData("ENGAGEMENT_PANELS",ED),y.JSC$20180_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",sD));y.JSC$20180_watchApi.provideRenderingData("MERCH_SHELF",N);_.O("web_watch_merch_in_sd_when_ticket_shelf_present")&&y.JSC$20180_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",cy);y.JSC$20180_watchApi.provideRenderingData("TICKET_SHELF",
P);y.JSC$20180_watchApi.provideRenderingData("LIMITED_STATE",Z);y.JSC$20180_watchApi.getRoot().is!=="ytd-watch-grid"&&y.JSC$20180_watchApi.provideRenderingData("DONATION_SHELF",c);y.JSC$20180_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",eV);y.JSC$20180_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",a$);y.JSC$20180_watchApi.provideRenderingData("EXPANDABLE_METADATA",V);if(y.swatcherooProvideAllDataOnScheduledJob){var Zg,xW,dS,bE,EZ,jV;F=D==null?void 0:(Zg=D.contents)==null?void 0:
(xW=Zg.twoColumnWatchNextResults)==null?void 0:(dS=xW.secondaryResults)==null?void 0:(bE=dS.secondaryResults)==null?void 0:(EZ=bE.results)==null?void 0:(jV=EZ[0])==null?void 0:jV.richGridRenderer;y.JSC$20180_watchApi.provideRenderingData("RICH_GRID_RENDERER",F)}};
XOe.prototype.hasCompanionAds=function(y){var W,c;return(c=y==null?void 0:(W=y.adPlacements)==null?void 0:W.some(function(Z){var G,D,Y,u;return(Z==null?void 0:(G=Z.adPlacementRenderer)==null?void 0:(D=G.renderer)==null?void 0:D.actionCompanionAdRenderer)||(Z==null?void 0:(Y=Z.adPlacementRenderer)==null?void 0:(u=Y.renderer)==null?void 0:u.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?c:!1};
var QC=function(y){if(!_.O("swaterdoo_ps_wn_handle_ks")){y.swatcherooProvideAllDataOnScheduledJob||ngM(y,3E3);var W=y.JSC$20180_watchApi.getPlayerResponse(),c,Z,G,D,Y,u=(c=y.JSC$20180_watchApi.getWatchNextResponse())==null?void 0:(Z=c.contents)==null?void 0:(G=Z.twoColumnWatchNextResults)==null?void 0:(D=G.secondaryResults)==null?void 0:(Y=D.secondaryResults)==null?void 0:Y.offerModule;W=y.hasCompanionAds(W);var t,b;c=(u==null?void 0:(t=u.tvfilmOfferModuleRenderer)==null?void 0:t.clientShouldSuppressIfCompanionAdDisplayed)||
(u==null?void 0:(b=u.unlimitedOfferModuleRenderer)==null?void 0:b.suppressIfCompanionAds);t=W&&c;y.JSC$20180_watchApi.getRoot().is==="ytd-watch-grid"&&y.JSC$20180_watchApi.provideRenderingData("OFFER_MODULE",t?void 0:u)}},ngM=function(y,W){_.O("swatcheroo_pbs_load_grid")&&(y.provideRichGridJobId&&_.KX.cancelJob(y.provideRichGridJobId),y.provideRichGridJobId=_.X5(_.KX,function(){y.provideRichGridJobId=0;
var c,Z,G,D,Y,u,t,b=(c=y.JSC$20180_watchApi.getWatchNextResponse())==null?void 0:(Z=c.contents)==null?void 0:(G=Z.twoColumnWatchNextResults)==null?void 0:(D=G.secondaryResults)==null?void 0:(Y=D.secondaryResults)==null?void 0:(u=Y.results)==null?void 0:(t=u[0])==null?void 0:t.richGridRenderer;b&&y.JSC$20180_watchApi.provideRenderingData("RICH_GRID_RENDERER",b)},W))},tu3=function(y){var W,c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20180_watchApi.playerApi,2);W=Z.yieldResult;c=function(){y.onPlaybackStart()};
W.addEventListener("onPlaybackStartExternal",c);y.addOnDisposeCallback(function(){W.removeEventListener("onPlaybackStartExternal",c)});
_.F2(Z)})};
XOe.prototype.onPlaybackStart=function(){ngM(this)};var FsM=function(y){_.UR.call(this);var W=this;this.JSC$20190_watchApi=y;y.playerApi.then(function(c){W.player=c});
this.gestures=new _.orf(this.JSC$20190_watchApi.getRoot(),y.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(Ji(_.Sv().getState())&&_.CI(_.Sv().getState())<=0)if(_.VP(_.Sv().getState())){var c;(c=W.player)==null||c.toggleFullscreen()}else _.GG(W.JSC$20190_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
rcX(this)};
_.R(FsM,_.UR);var rcX=function(y){var W=_.ot(_.Sv(),_.VP,function(c){y.gestures&&y.gestures.update(c)});
y.addOnDisposeCallback(W);W=_.ot(_.Sv(),_.CI,function(c){y.gestures&&(c>0?y.gestures.detach():y.gestures.attach())});
y.addOnDisposeCallback(W)};var $FX=function(y){_.UR.call(this);var W=this;this.JSC$20193_watchApi=y;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
y=_.ot(_.Sv(),Ji,function(c){W.onActiveChanged(c)});
this.addOnDisposeCallback(y);UFM(this);this.onActiveChanged(Ji(_.Sv().getState()))};
_.R($FX,_.UR);var Kse=function(y){if(_.O("swatcheroo_page_dispose_all_watch_data"))y.pageDisposalDataTypes=Object.values(A67).filter(function(c){return c!=="PLAYLIST"});
else if(_.O("swatcheroo_page_dispose_rich_grid")){var W;(W=y.pageDisposalDataTypes)==null||W.push("RICH_GRID_RENDERER")}},UFM=function(y){_.O("swatcheroo_enable_ghost_cards")&&(Kse(y),y.JSC$20193_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.KX.cancelJob(y.clearDataJobId);
y.clearDataJobId=0}),y.runPageDisposeJob=function(){var W=_.U().resolve(_.h7).getDestinationPageType()==="watch";
y.clearDataJobId=_.X5(_.KX,y.runClearDataJob,W?0:_.ey("web_watch_delay_page_dispose_ms",1E4))},y.runClearDataJob=function(){ODF(y)},y.runOnYtNavigateAwayFinish=function(){y.clearDataJobId&&(_.KX.cancelJob(y.clearDataJobId),y.clearDataJobId=0,ODF(y))},document.addEventListener("yt-navigate-finish",y.runOnYtNavigateAwayFinish),bD$(y.JSC$20193_watchApi,y.runPageDisposeJob),y.addOnDisposeCallback(function(){var W=y.JSC$20193_watchApi;
W.rootElement.pageDisposeJobs&&_.dg(W.rootElement.pageDisposeJobs,y.runPageDisposeJob);P1(y.JSC$20193_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",y.runOnYtNavigateAwayFinish)}))},ODF=function(y){y.pageDisposalDataTypes.forEach(function(W){y.JSC$20193_watchApi.provideRenderingData(W,void 0)});
y.clearDataJobId=0};
$FX.prototype.onActiveChanged=function(y){y&&((y=document.querySelector("#watch-page-skeleton"))&&_.to(y),gg3(this),document.body.removeAttribute("no-y-overflow"),_.I8("IS_SHELL_LOAD")&&_.K5D())};
var gg3=function(y){_.m(function(W){if(W.nextAddress==1)return _.n(W,y.JSC$20193_watchApi.playerApi,2);_.Ss();_.F2(W)})};var RXf=_.O("kevlar_watch_while_counterfactual")?0:.25,IJQ=function(y){_.UR.call(this);this.JSC$20196_watchApi=y;this.JSC$20196_watchWhileEnabled=_.O("kevlar_watch_while_v2");this.pipEnabled=_.O("web_enable_pip_on_miniplayer");lJX(this);Ege(this);NCf(this)};
_.R(IJQ,_.UR);var lJX=function(y){y.JSC$20196_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){pO9(y)});
y.addOnDisposeCallback(function(){P1(y.JSC$20196_watchApi,"yt-activate-miniplayer-from-watch-action")})},Ege=function(y){var W,c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20196_watchApi.playerApi,2);W=Z.yieldResult;c=function(){pO9(y)};
W.addEventListener("onCollapseMiniplayer",c);y.addOnDisposeCallback(function(){W.removeEventListener("onCollapseMiniplayer",c)});
_.F2(Z)})},NCf=function(y){var W=y.JSC$20196_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&W&&y.JSC$20196_watchWhileEnabled&&(y.playerIntersectionObserver=new IntersectionObserver(function(c){y.handleIntersect(c)},{threshold:[RXf]}),y.playerIntersectionObserver.observe(W),y.addOnDisposeCallback(function(){var c;
(c=y.playerIntersectionObserver)==null||c.disconnect()}))},pO9=function(y){var W,c,Z;
_.m(function(G){if(G.nextAddress==1){W=_.U().resolve(_.h7);c=W.data;Z=_.zBa(c.response,c.playerResponse);_.GR().miniplayerButtonActivation=!0;if(y.pipEnabled)return _.GR().watchPipActivation=!0,G.jumpTo(2);_.U().resolve(_.Cy).collapse();return _.n(G,_.GR().navigationFinishPromise,2)}if(G.nextAddress!=4)return _.GR().currentEndpoint=Z.watchEndpoint||null,_.n(G,_.U().resolve(_.Cy).activate(y.JSC$20196_watchApi.getElement("PLAYER"),Z,c),4);_.GR().userActivation=!0;_.F2(G)})};
IJQ.prototype.handleIntersect=function(y){Ptf(this,y[y.length-1])};
var Ptf=function(y,W){y.watchWhileJobId&&_.KX.cancelJob(y.watchWhileJobId);y.watchWhileJobId=_.KX.addLowPriorityJob(function(){var c,Z;return _.m(function(G){if(G.nextAddress==1)return y.watchWhileJobId=void 0,c=_.U().resolve(_.Cy),W.intersectionRatio>RXf?c.isMiniplayerActive()?_.n(G,c.deactivate(),0):G.jumpTo(0):(Z=!c.isMiniplayerActive())?_.n(G,Jce(y),5):G.jumpTo(4);G.nextAddress!=4&&(Z=G.yieldResult);if(!Z)return G.jumpTo(0);_.GR().watchWhileActivation=!0;return _.n(G,Vue(y),0)})},100)},Jce=function(y){return _.m(function(W){return W.nextAddress==
1?_.O("kevlar_watch_while_paused")?W.return(!0):_.n(W,y.isPlayerPlaying(),2):W.return(W.yieldResult)})};
IJQ.prototype.isPlayerPlaying=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$20196_watchApi.playerApi,2);W=c.yieldResult;return c.return(W.getPlayerStateObject().isPlaying)})};
var Vue=function(y){var W,c;return _.m(function(Z){W=_.U().resolve(_.h7).data;c=_.zBa(W.response,W.playerResponse);_.GR().currentEndpoint=c.watchEndpoint||null;return _.n(Z,_.U().resolve(_.Cy).activate(y.JSC$20196_watchApi.getElement("PLAYER"),c,W),0)})};var AcX=function(y){_.UR.call(this);this.JSC$20200_watchApi=y;Ct7(this);Qsf(this)};
_.R(AcX,_.UR);var Qsf=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20200_watchApi.playerApi,2);W=Z.yieldResult;c=function(G){var D;G.sessionData&&G.sessionData.itct&&(D=G.sessionData.itct);var Y=G.watchEndpoint;if(Y&&G.sessionData&&G.sessionData.autonav)Y=_.C2H(Y,D);else{var u;Y=_.eG(G.videoId,(u=G.listId)!=null?u:void 0,D)}D={endpoint:Y};G.sessionData&&(D.tempData=G.sessionData);y.JSC$20200_watchApi.dispatchEvent("yt-navigate",D)};
W.addEventListener("onPlayVideo",c);y.addOnDisposeCallback(function(){W.removeEventListener("onPlayVideo",c)});
_.F2(Z)})},Ct7=function(y){var W=function(c){y.onYtNavigate(c)};
y.JSC$20200_watchApi.getRoot().addEventListener("yt-navigate",W);y.addOnDisposeCallback(function(){y.JSC$20200_watchApi.getRoot().removeEventListener("yt-navigate",W)})};
AcX.prototype.onYtNavigate=function(y){var W=this,c,Z,G,D,Y,u,t,b,r;return _.m(function(F){if(F.nextAddress==1){if(!((c=y.detail)==null?0:(Z=c.endpoint)==null?0:Z.watchEndpoint))return F.return();G=y.detail.endpoint.watchEndpoint;D=W.JSC$20200_watchApi.getWatchNextResponse();u=_.g((Y=D)==null?void 0:Y.currentVideoEndpoint,_.Sb);if(!u)return F.return();if(G.videoId!==u.videoId||G.playlistId&&G.playlistId!==u.playlistId||typeof G.startTimeSeconds!=="number")return F.jumpTo(0);y.stopPropagation();(t=
_.O("kevlar_watch_while_v2")&&!_.O("kevlar_watch_while_counterfactual"))&&_.U().resolve(_.Cy).isMiniplayerActive()||W.JSC$20200_watchApi.scrollWatchTo(0,!0);return _.n(F,W.JSC$20200_watchApi.playerApi,3)}b=F.yieldResult;r=G.startTimeSeconds;b.seekTo(r,void 0,void 0,void 0,84);b.wakeUpControls();r<b.getDuration()&&b.playVideo();_.F2(F)})};var vg3=function(y){_.UR.call(this);var W=this;this.JSC$20203_watchApi=y;y=_.ot(_.Sv(),_.mIO,function(){hX3(W)});
this.addOnDisposeCallback(y);y=_.ot(_.Sv(),_.R6F,function(){hX3(W)});
this.addOnDisposeCallback(y);BC3(this);HDM(this);LsM()};
_.R(vg3,_.UR);var BC3=function(y){var W=function(Z){_.Sv().dispatch(_.EXM(Z.matches))},c=window.matchMedia("(max-width: "+(999+_.tN())+"px)");
c.addListener(W);y.addOnDisposeCallback(function(){c.removeListener(W)});
W(c)},HDM=function(y){y.JSC$20203_watchApi.registerActionHandler("yt-window-resized",function(){LsM()});
y.addOnDisposeCallback(function(){P1(y.JSC$20203_watchApi,"yt-window-resized")})},LsM=function(){var y=_.Y$();
_.Sv().dispatch(_.jv({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:y.width,height:y.height}}}))},hX3=function(y){var W;
_.m(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$20203_watchApi.playerApi,2);W=c.yieldResult;W.setSize(NaN,NaN);_.F2(c)})};var SP0=function(y){_.UR.call(this);var W=this;this.JSC$20207_watchApi=y;var c=this.JSC$20207_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dF7(W)});
this.addOnDisposeCallback(function(){W.JSC$20207_watchApi.unsubscribeByKey(c)});
dF7(this)};
_.R(SP0,_.UR);var dF7=function(y){var W=y.JSC$20207_watchApi.getWatchNextResponse();if(W){var c,Z=[].concat(_.No((c=W==null?void 0:W.engagementPanels)!=null?c:[]));Z.unshift.apply(Z,_.No(TCf(W)));y.JSC$20207_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Z)}},aJ3=function(y){var W;
if(_.O("enable_yoututor_for_learning_journeys")&&((W=_.Q4(window.location.href,"list"))==null?0:W.startsWith("LJ")))return!0;var c,Z,G;W=(c=y.engagementPanels)==null?void 0:(Z=c.find(function(l){var N;return((N=l.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(G=Z.engagementPanelSectionListRenderer.content)==null?void 0:G.structuredDescriptionContentRenderer;
var D;if(_.g(W==null?void 0:(D=W.items)==null?void 0:D.find(function(l){return!!_.g(l,tqf)}),tqf))return!0;
var Y,u,t,b;if(y=(((Y=y.contents)==null?void 0:(u=Y.twoColumnWatchNextResults)==null?void 0:(t=u.results)==null?void 0:(b=t.results)==null?void 0:b.contents)||[]).find(function(l){return l.videoPrimaryInfoRenderer})){var r,F,K;
return(((r=y.videoPrimaryInfoRenderer)==null?void 0:(F=r.videoActions)==null?void 0:(K=F.menuRenderer)==null?void 0:K.flexibleItems)||[]).some(function(l){l=_.g(l,_.QUJ);if(!l)return!1;var N,P;l=(N=l.topLevelButton)==null?void 0:(P=N.buttonViewModel)==null?void 0:P.onTap;if(!l)return!1;N=_.UH(l);if(!N)return!1;var V;return((V=_.g(N,_.E9))==null?void 0:V.panelIdentifier)==="PAyouchat"})}return!1},TCf=function(y){var W=[];
if(!_.O("web_watch_inject_placeholder_fantasy_panel_killswitch")){var c,Z,G,D=(c=y.engagementPanels)==null?void 0:(Z=c.find(function(u){var t;return((t=u.engagementPanelSectionListRenderer)==null?void 0:t.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(G=Z.engagementPanelSectionListRenderer.content)==null?void 0:G.structuredDescriptionContentRenderer,Y;
_.g(D==null?void 0:(Y=D.items)==null?void 0:Y.find(function(u){return!!_.g(u,S33)}),S33)&&(c=_.ZwO("PAsports_fantasy"),c.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(c))}aJ3(y)&&(y=_.ZwO("PAyouchat"),y.engagementPanelSectionListRenderer.targetId="PAyouchat",y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W.push(y));
return W};var iDf=function(y){_.UR.call(this);this.JSC$20210_watchApi=y;xFF(this)};
_.R(iDf,_.UR);var xFF=function(y){y.JSC$20210_watchApi.registerActionHandler("yt-loop-command",function(W){Mu$(y,W)});
y.JSC$20210_watchApi.registerActionHandler("yt-repeat-chapter-command",function(W){eXX(y,W)});
y.addOnDisposeCallback(function(){P1(y.JSC$20210_watchApi,"yt-loop-command");P1(y.JSC$20210_watchApi,"yt-repeat-chapter-command")})},Mu$=function(y,W){var c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20210_watchApi.playerApi,2);c=Z.yieldResult;_.g(W,a33).loop?(c.setLoopRange({startTimeMs:Number(_.g(W,a33).startTimeMs),endTimeMs:Number(_.g(W,a33).endTimeMs),postId:_.g(W,a33).postId,type:"clips"}),c.playVideo()):c.setLoopRange(null);_.F2(Z)})},eXX=function(y,W){var c,Z;
_.m(function(G){if(G.nextAddress==1)return _.n(G,y.JSC$20210_watchApi.playerApi,2);c=G.yieldResult;Z=_.g(W,wX0).repeat;Z==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(c.setLoopRange({startTimeMs:Number(_.g(W,wX0).startTimeMs),endTimeMs:Number(_.g(W,wX0).endTimeMs),type:"repeatChapter"}),c.playVideo()):Z==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&c.setLoopRange(null);_.F2(G)})};var qP9=function(y){_.UR.call(this);this.JSC$20215_watchApi=y;wOX(this)};
_.R(qP9,_.UR);var wOX=function(y){y.JSC$20215_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(W){k5X(y,W)});
y.addOnDisposeCallback(function(){P1(y.JSC$20215_watchApi,"yt-watch-player-overflow-menu-command")})},k5X=function(y,W){var c,Z,G,D,Y,u,t,b,r,F,K;
_.m(function(l){if(l.nextAddress==1)return _.n(l,y.JSC$20215_watchApi.playerApi,2);c=l.yieldResult;if(D=(G=(Z=_.g(W,q3X))==null?void 0:Z.highlightedMenuItemKey)!=null?G:"")(u=(Y=c).highlightSettingsMenuItem)==null||u.call(Y,D);if(r=(b=(t=_.g(W,q3X))==null?void 0:t.openMenuItemKey)!=null?b:"")(K=(F=c).openSettingsMenuItem)==null||K.call(F,r);_.F2(l)})};var jN7=_.Gx("/youtube/app/watch/player_state","playerStateEntity");var Wy7=function(y){_.UR.call(this);this.JSC$20218_watchApi=y;ysF(this)};
_.R(Wy7,_.UR);var csf=function(y){switch(y){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"}},ysF=function(y){var W,c;
_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20218_watchApi.playerApi,2);W=Z.yieldResult;c=function(G){y.onPlayerStateChange(G)};
W.addEventListener("onStateChange",c);y.addOnDisposeCallback(function(){W.removeEventListener("onStateChange",c)});
_.F2(Z)})};
Wy7.prototype.onPlayerStateChange=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,W.JSC$20218_watchApi.playerApi,2);c=G.yieldResult;Z=c.getVideoData().video_id;_.I5().dispatch(_.o3("playerStateEntity",jN7,{key:jN7,playerState:csf(y),videoId:Z}));_.F2(G)})};var ZvM=function(y){_.UR.call(this);var W=this;this.JSC$20222_watchApi=y;y=_.Sv();var c=_.ot(y,Ji,function(Z){W.onActiveChanged(Z)});
this.addOnDisposeCallback(c);_.U().resolve(_.EU).setPlayer(this.JSC$20222_watchApi.getElement("PLAYER"));this.onActiveChanged(Ji(y.getState()))};
_.R(ZvM,_.UR);ZvM.prototype.onActiveChanged=function(y){var W=this,c=_.U().resolve(_.EU),Z=function(){G7Q(W)};
y?(y=this.JSC$20222_watchApi.getElement("PLAYLIST_PANEL"))?(c.setPlaylistComponent(y),c.addEventListener("yt-playlist-data-updated",Z),this.addOnDisposeCallback(function(){c.removeEventListener("yt-playlist-data-updated",Z)}),G7Q(this)):_.Va(Error("im")):(c.removeEventListener("yt-playlist-data-updated",Z),c.cancelVideoSkip())};
var G7Q=function(y){var W=_.U().resolve(_.EU);y.JSC$20222_watchApi.provideRenderingData("PLAYLIST",W.getPlaylistData())};var z20=function(y){_.UR.call(this);var W=this;this.JSC$20225_watchApi=y;this.onPageScroll=function(){W.scrollThrottle.fire();W.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.ig(this.onThrottledScroll,200,this);_.zY(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.ig(this.onMastheadThrottledScroll,50,this);_.zY(this,this.mastheadScrollThrottle);this.animation=new _.NA(function(c){W.JSC$20225_watchApi.getRoot().setScrollTop(c)});
y=_.ot(_.Sv(),_.VP,function(){fmF(W)});
this.addOnDisposeCallback(y);oMM(this);D4n(this);this.onThrottledScroll()};
_.R(z20,_.UR);
var fmF=function(y){var W=y.JSC$20225_watchApi.getRoot();!y.pageScrollElement&&W.pageScrollElement?(y.pageScrollElement=W.pageScrollElement,W.pageScrollElement.addEventListener("scroll",y.onPageScroll),y.addOnDisposeCallback(function(){y.pageScrollElement&&y.pageScrollElement.removeEventListener("scroll",y.onPageScroll)})):y.pageScrollElement&&!W.pageScrollElement&&(y.pageScrollElement.removeEventListener("scroll",y.onPageScroll),y.pageScrollElement=void 0)},oMM=function(y){window.addEventListener("scroll",y.onPageScroll);
y.addOnDisposeCallback(function(){window.removeEventListener("scroll",y.onPageScroll)})},D4n=function(y){y.JSC$20225_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(W){a:{var c;
if(c=y.JSC$20225_watchApi.getRoot().contains(W)&&!y.animation.isAnimating()){c=W.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Z,G,D=(W==null?void 0:(Z=W.parentElement)==null?void 0:(G=Z.parentElement)==null?void 0:G.id)==="fixed-secondary";c=!(c&&D)}if(c){if(_.O("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Z=W.offsetTop;else for(Z=0,G=W;G!==null;)Z+=G.offsetTop,Z-=G.scrollTop,G=G.offsetParent;G=Z;Z=G-24;W=G+W.offsetHeight+24;G=y.JSC$20225_watchApi.getRoot().getPageScrollingElement();
c=y.JSC$20225_watchApi.getRoot().getScrollTop();D=c+G.clientHeight-56;if(Z<c+56)W=Z-56;else if(W>D)W-=G.clientHeight;else break a;y.scrollWatchTo(Math.max(0,W),!0)}}});
y.addOnDisposeCallback(function(){P1(y.JSC$20225_watchApi,"yt-scroll-to-watch-element")})};
z20.prototype.onThrottledScroll=function(){var y=_.Sv(),W=y.dispatch,c=this.JSC$20225_watchApi.getRoot().getScrollTop();W.call(y,_.jv({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:c}}))};
z20.prototype.onMastheadThrottledScroll=function(){this.JSC$20225_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20225_watchApi.getRoot().getScrollTop())};
z20.prototype.scrollWatchTo=function(y,W){(W===void 0?0:W)?this.animation.start(this.JSC$20225_watchApi.getRoot().getScrollTop(),Math.max(0,y),500):this.JSC$20225_watchApi.getRoot().setScrollTop(y)};var sNX=function(y){_.UR.call(this);var W=this;this.JSC$20228_watchApi=y;var c=this.JSC$20228_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){YQ7(W)}),Z=this.JSC$20228_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){m4X(W)});
this.addOnDisposeCallback(function(){W.JSC$20228_watchApi.unsubscribeByKey(c);W.JSC$20228_watchApi.unsubscribeByKey(Z)});
YQ7(this);m4X(this)};
_.R(sNX,_.UR);
var YQ7=function(y){var W,c,Z,G=(Z=(W=y.JSC$20228_watchApi.getPlayerResponse())==null?void 0:(c=W.videoDetails)==null?void 0:c.title)!=null?Z:"";y.JSC$20228_watchApi.dispatchEvent("yt-update-title",G)},m4X=function(y){var W,c,Z,G,D,Y,u,t=(u=((Y=(W=y.JSC$20228_watchApi.getWatchNextResponse())==null?void 0:(c=W.contents)==null?void 0:(Z=c.twoColumnWatchNextResults)==null?void 0:(G=Z.results)==null?void 0:(D=G.results)==null?void 0:D.contents)!=null?Y:[]).find(function(b){return!!b.videoPrimaryInfoRenderer}))==null?
void 0:u.videoPrimaryInfoRenderer;
(W=_.v$(t==null?void 0:t.title))&&y.JSC$20228_watchApi.dispatchEvent("yt-update-title",W)};var tN7=function(y){_.UR.call(this);this.JSC$20231_watchApi=y;uoX(this)};
_.R(tN7,_.UR);var uoX=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$20231_watchApi.playerApi,2);W=Z.yieldResult;c=function(){y.onYpcContentRequest()};
W.addEventListener("onYpcContentRequest",c);y.addOnDisposeCallback(function(){W.removeEventListener("onYpcContentRequest",c)});
_.F2(Z)})};
tN7.prototype.onYpcContentRequest=function(){var y,W,c,Z,G,D=(y=this.JSC$20231_watchApi.getWatchNextResponse())==null?void 0:(W=y.contents)==null?void 0:(c=W.twoColumnWatchNextResults)==null?void 0:(Z=c.secondaryResults)==null?void 0:(G=Z.secondaryResults)==null?void 0:G.offerModule,Y,u,t,b;y=(b=(t=(u=(Y=D==null?void 0:D.episodeOfferModuleRenderer)!=null?Y:D==null?void 0:D.movieOfferModuleRenderer)!=null?u:D==null?void 0:D.unlimitedOfferModuleRenderer)!=null?t:D==null?void 0:D.liveOfferModuleRenderer)!=
null?b:D==null?void 0:D.tvfilmOfferModuleRenderer;var r,F,K;D=(K=D==null?void 0:(r=D.tvfilmOfferModuleRenderer)==null?void 0:(F=r.actionButtons)==null?void 0:F.length)!=null?K:0;F=Math.max(D-1,0);var l,N,P;r=(P=y==null?void 0:(l=y.offerButton)==null?void 0:l.buttonRenderer)!=null?P:y==null?void 0:(N=y.actionButtons)==null?void 0:N[F].buttonRenderer;var V,Q;(l=(Q=(V=r==null?void 0:r.navigationEndpoint)!=null?V:r==null?void 0:r.serviceEndpoint)!=null?Q:r==null?void 0:r.command)&&_.km.instance.resolveCommand(l)};_.h1=function(y){_.H6.call(this);var W=this;this.rootElement=y;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return W.activeModules}};
nM3(this);y=_.ot(_.Sv(),Ji,function(c){W.initOrDisposeActiveModules(c)});
this.addOnDisposeCallback(y);this.initOrDisposeActiveModules(Ji(_.Sv().getState()));this.onAttached()};
_.R(_.h1,_.H6);_.h1.prototype.getRoot=function(){return this.rootElement};
_.h1.prototype.getElement=function(y){return this.rootElement.getElement(y)};
_.B1=function(y,W){y.playerResponse=W;y.publish("PLAYER_RESPONSE_UPDATED",W)};
_.h1.prototype.getPlayerResponse=function(){return this.playerResponse};
_.H1=function(y,W){y.watchNextResponse===W?y.publish("WATCH_NEXT_RESPONSE_RELOADED"):(y.watchNextResponse=W,y.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.h1.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.h1.prototype.registerActionHandler=function(y,W){var c=this;if(_.O("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.Ac(_.Q8.getInstance(),(Z[y]=W,Z),this.getRoot())}else this.actionHandlers.has(y)||(this.actionHandlers.set(y,[]),Z={},_.Ac(_.Q8.getInstance(),(Z[y]=function(){var G=_.Cf.apply(0,arguments);return(c.actionHandlers.get(y)||[]).map(function(D){return D.apply(null,_.No(G))})},Z),this.getRoot())),this.actionHandlers.get(y).push(W)};
var P1=function(y,W){if(_.O("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.hc(_.Q8.getInstance(),(c[W]=!0,c),y.getRoot())}else(c=y.actionHandlers.get(W))?(c.pop(),c.length===0&&(c={},_.hc(_.Q8.getInstance(),(c[W]=!0,c),y.getRoot()),y.actionHandlers.delete(W))):_.Rs(new _.ul("Attempted to unregister an action handler which is not registered.",W))},bD$=function(y,W){y.rootElement.pageDisposeJobs||(y.rootElement.pageDisposeJobs=[]);
_.$1I(y.rootElement.pageDisposeJobs,W)};
_.h1.prototype.dispatchEvent=function(y,W){_.Z2(this.rootElement,y,W)};
_.h1.prototype.provideRenderingData=function(y,W){this.rootElement.provideRenderingData(y,W)};
_.h1.prototype.scrollWatchTo=function(y,W){var c;(c=this.watchScrollManager)==null||c.scrollWatchTo(y,W)};
_.h1.prototype.focusOnPlayer=function(){var y=this.getElement("PLAYER");_.Lv(y,function(){if(y&&y.firstElementChild){var W=y.querySelector(".html5-video-player");W&&(_.YiT(_.U().resolve(_.t7)),W.focus())}else _.Rs(Error("jm"))})};
_.XRf=function(y){var W=!!y.rootElement.theater,c=!!y.rootElement.fullscreen,Z;(Z=y.watchCinematicManager)==null||ZD0(Z,c,W)};
_.h1.prototype.onAttached=function(){var y=_.O("external_fullscreen");_.O("use_unified_flag_accessor")&&(y=_.U().resolve(_.NjQ).retriever.getFlag(_.LTi));(y||_.I8("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var bv7=function(y){return y.getRoot().is==="ytd-watch-flexy"||y.getRoot().is==="ytd-watch-grid"},L_=function(y){return y.getRoot().is==="ytd-watch-fixie"},nM3=function(y){if(L_(y)||bv7(y)&&_.O("kevlar_watch_flexy_theater_manager")){var W=new JvX(y);
_.zY(y,W)}W=new $FX(y);_.zY(y,W);W=new J1(y);_.zY(y,W);W=new XOe(y);_.zY(y,W);W=new Wy7(y);_.zY(y,W);W=new VC(y);_.zY(y,W);if(L_(y)||bv7(y)&&_.O("kevlar_watch_flexy_playlist_manager"))W=new ZvM(y),_.zY(y,W)};
_.h1.prototype.initOrDisposeActiveModules=function(y){y?(this.watchScrollManager=new z20(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new AcX(this)),this.activeModules.push(new V5M(this)),L_(this)&&this.activeModules.push(new vg3(this)),this.activeModules.push(new sNX(this)),this.activeModules.push(new IJQ(this)),(L_(this)||_.O("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new BrM(this)),this.activeModules.push(new iDf(this)),(L_(this)||
_.O("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new tN7(this)),(L_(this)||_.O("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new MS0(this)),_.O("kevlar_watch_cinematics")&&(this.watchCinematicManager=new jsX(this),this.activeModules.push(this.watchCinematicManager),_.XRf(this)),_.O("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new qP9(this)),_.O("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new FsM(this)),y=_.O("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.O("kevlar_watch_flexy_comments_manager")&&!y&&this.activeModules.push(new YP0(this)),_.O("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new qAf(this)),this.activeModules.push(new Lhf(this)),_.O("web_watch_inject_placeholder_panels")&&this.activeModules.push(new SP0(this)),_.O("web_enable_timely_actions")&&this.activeModules.push(new TX0(this)),_.O("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new uDF(this)),_.O("web_watch_enable_multiview_manager")&&
this.activeModules.push(new ZXM(this)),_.O("web_fullscreen_video_action_bar")&&this.activeModules.push(new dC$(this)),_.O("web_player_rtr_ctrls")&&this.activeModules.push(new n23(this))):(_.bjg(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.h1.prototype.disposeInternal=function(){_.H6.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.dJ.Object.defineProperties(_.h1.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var WI6;WI6=function(y){switch(y){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:_.d2(y,"unknown result type")}};
_.c3Z=function(y,W,c){W=_.m6D[W];c={detected:y===0,source:W.als,detectionResult:WI6(y),contentCpn:c};_.$g("biscottiBasedDetection",c);_.O("ab_l_sig_st")&&_.qmT.increment(W.als,y);W.hEE!==void 0&&_.l1("CATSTAT",_.z5F(y,W))};
_.Qe=function(y,W){var c={};c.key=y;c.value=W;return _.BY1().then(function(Z){return new Promise(function(G,D){try{var Y=Z.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(c);Y.onsuccess=function(){G()};
Y.onerror=function(){D()}}catch(u){D(u)}})})};
_.GP6=function(){var y=_.ey("user_engagement_experiments_rate_limit_ms"),W=ZND.get("last-user-engagement-exp-trigger-timestamp");return!W||(0,_.Tj)()>=W+y?(ZND.set("last-user-engagement-exp-trigger-timestamp",(0,_.Tj)()),!0):!1};
_.A_=function(y,W,c,Z,G){W=W===void 0?null:W;c=c===void 0?null:c;Z=Z===void 0?null:Z;G=G===void 0?null:G;y={youThereEventType:y};c&&(y.lactThresholdMs=c.lactThresholdMs,y.mediaPosSec=c.promptDelaySec,y.lactServerRequestMs=c.lactServerRequestMs,y.triggerReason=c.triggerReason);G!=null&&(y.renderingMediaPosSec=Math.round(G));W||(W=_.NR());W&&(y.clientScreenNonce=W);Z&&(y.clientPlaybackNonce=Z);_.$g("youThere",y)};var ZND=new _.EW("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.qQd=function(y){return _.jv({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:y})};
}catch(e){_._DumpException(e)}
try{
var R23,pRf,Pn3,Js7,Ov7,Kyf,Cn9;_.FyM=function(){var y=window.location.hash;y.charAt(0)==="#"&&(y=y.charAt(1)==="!"?y.substring(2):y.substring(1));return _.AW(y)};
_.U4F=function(y){var W;_.m(function(c){W=["b.f_","j.s_","r.s_","e.h_"];_.O("ab_det_sc_inj")&&W.push("s.i_");_.O("ab_deg_unex_thr")||W.push("a.o_");_.O("ks_get_o_pp")||W.push("g.o_");_.O("ks_det_gpbl")||W.push("p.i_");W.push("f.i_");W.push("a.b_");W.push("p.m_");_.O("ab_det_el_h_v2")&&W.push("n.h_");W.push("o.p_");_.O("ab_det_apm")&&W.push("o.a_");W.forEach(function(Z){var G;return _.m(function(D){if(D.nextAddress==1)return _.n(D,_.ie3[Z](),2);G=D.yieldResult;y(G,Z);_.F2(D)})});
_.F2(c)})};
_.$49=function(y,W){y={videoId:y};W&&(y.playlistId=W);return y};
_.gMF=function(){if(!_.O("disable_biscotti_fetch_for_ad_blocker_detection")&&!_.O("disable_biscotti_fetch_entirely_for_all_web_clients")&&_.iUa()){var y=_.Nn("PLAYER_VARS",{});if(_.Eb.get(y,"privembed",!1)!="1"&&!_.wiF(y)){var W=function(){Kyf=!0;"google_ad_status"in window?_.l1("DCLKSTAT",1):_.l1("DCLKSTAT",2)};
try{_.Vn("//static.doubleclick.net/instream/ad_status.js",W)}catch(c){}Ov7.push(_.KX.addLowPriorityJob(function(){if(!(Kyf||"google_ad_status"in window)){try{_.AJH("//static.doubleclick.net/instream/ad_status.js",W)}catch(c){}Kyf=!0;_.l1("DCLKSTAT",3)}},5E3))}}};
R23=function(y){return _.O("web_watch_adjust_sidebar_width")?_.LI+((y===void 0?1500:y)-_.bcf)/100*_.rm0:_.LI};
_.lmQ=function(y,W){y=y.width-_.TCS();var c=R23(y);return Math.max(c,Math.min(_.$of,c+(y-(_.Uo9+R23(y)+_.BC+2*_.BC+W))))};
_.EM0=function(y,W,c){c=c===void 0?!1:c;var Z=Math.max(y.width,_.FpM);if(_.O("kevlar_watch_feed_big_thumbs")&&y.width>=1550-_.tN()&&y.height>=800)Z-=_.Rln;else if(y.width>=_.HC){var G=_.Uo9+R23(y.width)+_.BC;_.O("kevlar_watch_feed_big_thumbs")&&(G=_.gif);Z-=G}else Z-=_.Uo9;Z=Math.min(Z,_.Kpn);G=240;c&&(G=380);W<.5624||(!_.O("kevlar_watch_flexy_disable_small_window_sizing")&&(y.height<630&&y.width>=657||y.height>=630&&y.width>=_.HC&&y.width<1327)?G=360:!_.O("kevlar_watch_flexy_disable_large_window_sizing")&&
y.height>=630&&y.width>=1327&&(G=480));var D=Math.min(Z*W,y.height-(56+_.XpM+_.Oce));D=Math.max(D,G);W<1?Z=D/W:y.width>=_.HC&&(Z=_.EM0(y,.5625,c).width);return new _.nP(Math.round(Z),Math.round(D))};
_.NJn=function(y){var W=0;y.indexOf("h")!=-1&&(y=y.split("h"),W=y[0]*60*60,y=y[1]);y.indexOf("m")!=-1&&(y=y.split("m"),W=y[0]*60+W,y=y[1]);y.indexOf("s")!=-1?(y=y.split("s"),W=y[0]*1+W):W=y*1+W;return W};
_.Im9=function(){_.ey("service_worker_push_logged_out_prompt_watches")!=-1&&_.LK("WatchCount").then(function(y){y>=100||_.Qe("WatchCount",y+1)})};
pRf=function(y){var W=y.externalVideoId||"";return W?(_.O("webfe_watch_shorts_canonical_url_fix")||_.Nn("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&y.isShortsEligible?"https://www.youtube.com/shorts/"+W:"https://www.youtube.com/watch?v="+W:""};
Pn3=function(y){var W=[];y.viewCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:y.viewCount});y.likeCount&&W.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:y.likeCount});return W};
Js7=function(y){var W,c,Z={"@context":"https://schema.org","@type":"VideoObject",description:_.v$(y.description),duration:"PT"+(y.lengthSeconds||"0")+"S",embedUrl:y.embed?y.embed.iframeUrl:"",name:_.v$(y.title),thumbnailUrl:((W=y.thumbnail)==null?void 0:(c=W.thumbnails)==null?void 0:c.map(function(r){return r&&r.url||""}))||[],
uploadDate:y.publishDate};_.O("mweb_video_schema_id_killswitch")||(Z["@id"]=pRf(y));W=Pn3(y);W.length&&(Z.interactionStatistic=W);y.category&&(Z.genre=y.category);y.ownerChannelName&&(Z.author=y.ownerChannelName);y.liveBroadcastDetails&&(Z.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:y.liveBroadcastDetails.startTimestamp,endDate:y.liveBroadcastDetails.endTimestamp}]);if(y.learningResource){y=y.learningResource;Z["@type"]=["VideoObject","LearningResource"];var G;if((G=y.learningResourceType)==
null?0:G.length)Z.learningResourceType=y.learningResourceType[0];var D;if((D=y.educationalAlignment)==null?0:D.length)Z.educationalAlignment={"@type":"AlignmentObject",targetName:y.educationalAlignment[0]};var Y;if((Y=y.educationalLevel)==null?0:Y.length){G=y.educationalLevel[0];var u;if((u=y.educationalLevelCountry)==null?0:u.length)G+=" ("+y.educationalLevelCountry+")";Z.educationalLevel=G}var t,b;if(((t=y.learningResourceType)==null?0:t.length)&&y.learningResourceType[0]==="Problem walkthrough"&&
((b=y.problemDescriptions)==null?0:b.length))for(Z.hasPart=[],u=_.z(y.problemDescriptions),t=u.next();!t.done;t=u.next())G=t.value,t=G.problemDescriptionText,b=G.startOffset,G=G.url,t&&b!==void 0&&G&&Z.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:t,text:t,startOffset:b,url:G})}return Z};
_.VNX=function(y){return _.jv({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:y}})};
Ov7=[];Kyf=!1;Cn9=new _.w("updateSentimentBarStateCommand");_.QN$=new _.w("showSurveyCommand");_.d8=new _.w("changeMarkersVisibilityCommand");var h2f,BJf,d4M,vMf,Lyn,ST;_.AsQ=function(y,W){this.playerProvider_=y;this.actionSenderElement_=W;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.AsQ.prototype.reset=function(){h2f(this);this.isUserPredictedAbsent_=!1};
h2f=function(y,W){!y.youThereData_||y.showWarningJob_||W!==void 0&&W||(_.A_("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.NR(),y.youThereData_,y.clientPlaybackNonce_),_.KD());_.KX.cancelJob(y.showWarningJob_);y.showWarningJob_=0;_.KX.cancelJob(y.showBlockingWarningJob_);y.showBlockingWarningJob_=0;_.KX.cancelJob(y.pausePlaybackJob_);y.pausePlaybackJob_=0;y.youThereData_=null;y.clientPlaybackNonce_=void 0;y.inYouThereFlow_=!1};
_.Hv3=function(y,W){var c,Z,G;_.m(function(D){if(D.nextAddress==1)return y.reset(),_.n(D,y.playerProvider_().getPlayerPromise(),2);c=D.yieldResult;y.clientPlaybackNonce_=c.getVideoData().cpn;y.youThereData_=W.configData.youThereData;if(!y.youThereData_)return D.return();if(y.youThereData_.triggerReason&&y.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.GP6())return _.A_("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.NR(),y.youThereData_,y.clientPlaybackNonce_),D.return();Z=y.youThereData_.promptDelaySec;
G=c.getCurrentTime();y.showWarningJob_=_.KX.addLowPriorityJob(function(){return _.m(function(Y){y.showWarningJob_=0;return _.n(Y,BJf(y),0)})},Math.max(Z-G,0)*1E3);
_.F2(D)})};
BJf=function(y){var W,c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return _.n(u,y.playerProvider_().getPlayerPromise(),2);if(u.nextAddress!=3)return W=u.yieldResult,c=W.getCurrentTime(),_.n(u,Lyn(y),3);Z=u.yieldResult;if(!Z||!y.youThereData_)return u.return();if(_.O("check_user_lact_at_prompt_shown_time_on_web")&&(G=parseInt(y.youThereData_.lactThresholdMs,10),_.MV()<G))return _.A_("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.NR(),y.youThereData_,y.clientPlaybackNonce_),u.return();if(y.youThereData_.playbackPauseDelayMs<=
0)return vMf(y),u.return();!_.O("external_fullscreen")&&(D=_.jG())&&(y.ignoreFullscreenExitUserActivity_=!0,_.KX.addLowPriorityJob(function(){y.ignoreFullscreenExitUserActivity_=!1},2E3),_.yu(D));
y.youThereData_.showToastWarningPrompt&&(ST(y,y.youThereData_.showWarningActions),y.inYouThereFlow_=!0,_.A_("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.NR(),y.youThereData_,y.clientPlaybackNonce_,c),_.A_("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.NR(),y.youThereData_,y.clientPlaybackNonce_,c));Y=0;y.youThereData_.blockingPromptDelayMs&&(Y=y.youThereData_.blockingPromptDelayMs);y.showBlockingWarningJob_=_.KX.addLowPriorityJob(function(){return _.m(function(t){y.showBlockingWarningJob_=0;return _.n(t,
d4M(y),0)})},Y);
_.F2(u)})};
d4M=function(y){var W,c,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,Lyn(y),2);W=G.yieldResult;if(!y.youThereData_)return G.return();W&&(y.youThereData_.showBlockingWarningAction&&(_.A_("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.NR(),y.youThereData_,y.clientPlaybackNonce_),(c=_.g(y.youThereData_.showBlockingWarningAction,_.uN))?ST(y,c.commands):ST(y,[y.youThereData_.showBlockingWarningAction]),y.inYouThereFlow_=!0),Z=y.youThereData_.playbackPauseDelayMs,y.pausePlaybackJob_=
_.KX.addLowPriorityJob(function(){return _.m(function(D){y.pausePlaybackJob_=0;return _.n(D,vMf(y),0)})},Z));
_.F2(G)})};
vMf=function(y){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,Lyn(y),2);W=c.yieldResult;if(!y.youThereData_)return c.return();W&&(_.A_("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.NR(),y.youThereData_,y.clientPlaybackNonce_),ST(y,y.youThereData_.showPausedActions),y.inYouThereFlow_=!0);_.F2(c)})};
_.AsQ.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var y=_.g(this.youThereData_.userActiveDuringFlowAction,_.uN);y?ST(this,y.commands):ST(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.A_("YOU_THERE_EVENT_TYPE_LACT_RESET",_.NR(),this.youThereData_,this.clientPlaybackNonce_),_.KD());h2f(this,!0)}_.SQ0(this,!1)};
_.TJe=function(y){_.A_("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.NR(),y.youThereData_,y.clientPlaybackNonce_)};
Lyn=function(y){var W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.playerProvider_().getPlayerPromise(),2);W=Z.yieldResult;c=W.getPlayerState();return Z.return(c==-1||c==1||c==3)})};
_.SQ0=function(y,W){var c;_.m(function(Z){if(Z.nextAddress==1){if(y.isUserPredictedAbsent_==W)return Z.jumpTo(0);y.isUserPredictedAbsent_=W;return _.n(Z,y.playerProvider_().getPlayerPromise(),3)}c=Z.yieldResult;c.setUserEngagement(W);W&&_.A_("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.NR(),y.youThereData_,y.clientPlaybackNonce_);_.F2(Z)})};
ST=function(y,W){if(_.O("handle_service_request_actions")||_.O("kevlar_youthere_service_endpoint_actions_killswitch"))_.mq(y.actionSenderElement_,W,y.actionSenderElement_);else{W=_.z(W);for(var c=W.next();!c.done;c=W.next())c=c.value,c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.sendPost?_.D2(y.actionSenderElement_,[c]):_.mq(y.actionSenderElement_,[c],y.actionSenderElement_)}};var amf;var x47;var iv3=function(){var y=_.v.apply(this,arguments)||this;y.systemIcons=_.O("kevlar_system_icons");y.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return y};
_.R(iv3,_.v);iv3.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var y=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(y=this.data.percentIfLiked||0,this.activated=!0):(y=this.data.percentIfIndifferent||0,this.activated=!1);_.p(this.hostElement).querySelector("#like-bar").style.width=y+"%"}};
iv3.prototype.handleUpdateSentimentBarStateCommand=function(y){this.data&&this.set("data.likeStatus",_.g(y,Cn9).likeStatus)};
var TD=iv3;TD.prototype.observeLikeStatus=TD.prototype.observeLikeStatus;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],TD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],TD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TD.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],TD.prototype,"activated",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],TD.prototype,"systemIcons",void 0);_.x([_.H("data.likeStatus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TD.prototype,"observeLikeStatus",null);TD=_.x([_.d({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],TD);
_.T(TD,"ytd-sentiment-bar-renderer",function(){if(x47!==void 0)return x47;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return x47=y},{mode:1});var MN9;var e2F=function(){var y=_.v.apply(this,arguments)||this;y.small=!0;return y};
_.R(e2F,_.v);var ad=e2F;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ad.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ad.prototype,"small",void 0);ad=_.x([_.d({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],ad);
_.T(ad,"ytd-video-view-count-renderer",function(){if(MN9!==void 0)return MN9;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return MN9=y},{mode:_.xm("kevlar_poly_si_batch_j080")?1:2});var x4=function(){var y=_.v.apply(this,arguments)||this;y.infoFormattedStrings=[];y.wrapVideoActions=_.O("kevar_watch_wrap_video_actions");y.hideSentimentBar=_.O("kevlar_watch_hide_sentiment_bar");y.actionMap={};return y};
_.R(x4,_.v);_.f=x4.prototype;_.f.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.O("web_modern_buttons"),forceIconButton:!_.O("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.f.dataChanged=function(){_.O("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.f.computeInfoFormattedStrings=function(y){if(!y)return[];var W=[];y.dateText&&W.push(y.dateText);y.stationName&&W.push(y.stationName);y.rating&&W.push(y.rating);y.startEndTimeTemplate&&y.startTimeUtcMillis&&y.endTimeUtcMillis&&W.push(_.Lq(_.gQ3(_.v$(y.startEndTimeTemplate),Number(y.startTimeUtcMillis),Number(y.endTimeUtcMillis))));y.upNextProgramText&&W.push(y.upNextProgramText);return W};
_.f.scheduleInitialUpdatedMetadataRequest=function(){var y,W=(y=this.data)==null?void 0:y.updatedMetadataEndpoint;if(W){var c;y=Number((c=_.g(W,_.mtE))==null?void 0:c.initialDelayMs);c=isNaN(y)?250:y;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),c)}};
_.f.setSentimentBarWidth=function(){var y=this;_.Lv(this,function(){var W=_.p(y.hostElement).querySelector("ytd-menu-renderer");if(W){W=W.topLevelButtons;for(var c=0,Z=0;Z<W.length;Z++){var G=W[Z],D=y.get("toggleButtonSupportedData.toggleButtonIdData.id",G.data);if(D==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||D==="TOGGLE_BUTTON_ID_TYPE_LIKE")c+=G.clientWidth+8;else break}c&&(y.sentiment.style.width=c-8+" px")}})};
_.f.fetchUpdatedMetadata=function(y){var W;y&&(W={continuation:y});var c;(y=(c=this.data)==null?void 0:c.updatedMetadataEndpoint)&&_.U().resolve(_.i1).resolveCommand(y,{form:Object.assign({},W,{element:this.hostElement})})};
_.f.onYtServiceRequestSent=function(y,W){W.endpoint&&_.g(W.endpoint,_.Ls)&&(this.hasUpdateSentimentBarStateCommands()&&!_.O("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.g(W.endpoint,_.Ls).status),this.setSentimentBarWidth())};
_.f.hasUpdateSentimentBarStateCommands=function(){var y,W,c,Z,G=(Z=(y=this.data)==null?void 0:(W=y.videoActions)==null?void 0:(c=W.menuRenderer)==null?void 0:c.topLevelButtons)!=null?Z:[];y=_.z(G);for(W=y.next();!W.done;W=y.next()){W=W.value;G=Z=c=void 0;var D=(c=W.toggleButtonRenderer)==null?void 0:(Z=c.toggleButtonSupportedData)==null?void 0:(G=Z.toggleButtonIdData)==null?void 0:G.id;if(D==="TOGGLE_BUTTON_ID_TYPE_LIKE"||D==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Z=c=void 0;W=(Z=_.g((c=W.toggleButtonRenderer)==
null?void 0:c.defaultServiceEndpoint,_.uN))==null?void 0:Z.commands;if(!W)break;W=_.z(W);for(c=W.next();!c.done;c=W.next())if(_.g(c.value,Cn9))return!0}}return!1};
_.f.onYtServiceRequestCompleted=function(y,W){var c;(y=(c=W.data)==null?void 0:c.loggingDirectives)&&_.S81(_.Zz(),y);this.get("continuation.timedContinuationData",W.data)&&this.data&&this.data.updatedMetadataEndpoint&&(W=W.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,W.continuation),W.timeoutMs))};
_.f.computeHasDateText=function(y){return!!y&&!!y.dateText};
_.dJ.Object.defineProperties(x4.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;return!((Z=(y=this.data)==null?void 0:(W=y.videoActions)==null?void 0:(c=W.menuRenderer)==null?void 0:c.flexibleItems)==null||!Z.length)}}});
x4.prototype.onYtServiceRequestCompleted=x4.prototype.onYtServiceRequestCompleted;x4.prototype.onYtServiceRequestSent=x4.prototype.onYtServiceRequestSent;x4.prototype.dataChanged=x4.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.CA.YtTaskEmitterBehavior),_.e("design:type",Object)],x4.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],x4.prototype,"data",void 0);_.x([_.L({computed:"computeInfoFormattedStrings(data)"}),_.e("design:type",Array)],x4.prototype,"infoFormattedStrings",void 0);
_.x([_.L({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],x4.prototype,"hasDateText",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],x4.prototype,"wrapVideoActions",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],x4.prototype,"hideSentimentBar",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],x4.prototype,"flexMenuEnabled",null);
_.x([_.jj("#sentiment"),_.e("design:type",Object)],x4.prototype,"sentiment",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],x4.prototype,"dataChanged",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],x4.prototype,"onYtServiceRequestSent",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],x4.prototype,"onYtServiceRequestCompleted",null);
_.T(x4,"ytd-video-primary-info-renderer",function(){if(amf===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);amf=y}y=amf;return y},{mode:1});var wR0;var iI=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return y};
_.R(iI,_.v);_.f=iI.prototype;_.f.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"}}}};
_.f.dataChanged=function(){var y;this.descriptionToggled=!((y=this.data)==null||!y.defaultExpanded);var W;this.collapsed=this.descriptionAlwaysCollapsed||!((W=this.data)==null?0:W.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.se(110509);this.showLessClientVe=_.se(110510);y=_.NR();W=_.EL();y&&W&&_.h_(y,W,[this.showMoreClientVe,this.showLessClientVe])};
_.f.onYtExpanderMoreTapped=function(){var y,W=(y=this.data)==null?void 0:y.showMoreCommand;W&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(W);(y=_.NR())&&this.showMoreClientVe&&_.SG(y,this.showMoreClientVe)};
_.f.onYtExpanderLessTapped=function(){var y=_.NR();y&&this.showLessClientVe&&_.SG(y,this.showLessClientVe);var W;(y=(W=this.data)==null?void 0:W.showLessCommand)&&this.componentBehavior.resolveCommand(y)};
_.f.handleUpdateDateTextAction=function(y){this.data&&this.data.dateText&&this.set("data.dateText",_.g(y,_.zlf).dateText)};
_.f.handleUpdateDescriptionAction=function(y){if(y=_.g(y,_.xtE))y.isEmpty||!y.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.Xx(y.description)):this.set("data.description",y.description)};
_.f.onYtChangeEngagementPanelVisibilityAction=function(y){if(_.O("web_structured_description_show_more")||_.O("web_engagement_panel_open_description")){var W,c=(W=_.g(y,_.yh5))==null?void 0:W.targetId,Z;y=((Z=_.g(y,_.yh5))==null?void 0:Z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";c==="engagement-panel-structured-description"&&y&&(this.descriptionToggled=!0)}};
_.f.updateCollapsedFromBinding=function(y){this.collapsed=y.detail.value};
_.f.updateDescriptionToggledFromBinding=function(y){this.descriptionToggled=y.detail.value};
_.f.updateCanCollapseFromBinding=function(y){this.canCollapse=y.detail.value};
_.dJ.Object.defineProperties(iI.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.data)==null?void 0:(W=y.metadataRowContainer)==null?void 0:W.metadataRowContainerRenderer;return!!c&&!!c.rows&&c.rows.length>c.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.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}}});
iI.prototype.onYtExpanderLessTapped=iI.prototype.onYtExpanderLessTapped;iI.prototype.onYtExpanderMoreTapped=iI.prototype.onYtExpanderMoreTapped;iI.prototype.dataChanged=iI.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],iI.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],iI.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iI.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],iI.prototype,"collapsed",void 0);_.x([_.L(),_.e("design:type",Boolean)],iI.prototype,"descriptionToggled",void 0);
_.x([_.L(),_.e("design:type",Boolean)],iI.prototype,"canCollapse",void 0);_.x([_.L(),_.e("design:type",Object)],iI.prototype,"subscribeButtonData",void 0);_.x([_.L(),_.e("design:type",Number)],iI.prototype,"descriptionCollapsedHeight",void 0);_.x([_.L(),_.e("design:type",Object)],iI.prototype,"structuredDescriptionContentRenderer",void 0);_.x([_.L({value:function(){return _.O("web_watch_description_always_collapsed")}}),
_.e("design:type",Boolean)],iI.prototype,"descriptionAlwaysCollapsed",void 0);_.x([_.jj("#description"),_.e("design:type",HTMLDivElement)],iI.prototype,"description",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iI.prototype,"dataChanged",null);_.x([_.B("yt-expander-more-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iI.prototype,"onYtExpanderMoreTapped",null);
_.x([_.B("yt-expander-less-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iI.prototype,"onYtExpanderLessTapped",null);_.x([_.A("data.metadataRowContainer"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],iI.prototype,"metadataCollapsible",null);_.x([_.A("data","structuredDescriptionContentRenderer"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],iI.prototype,"hasInlineStructuredDescription",null);
_.x([_.A("data.attributedDescription"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],iI.prototype,"hasAttributedDescription",null);_.x([_.A("hasInlineStructuredDescription","collapsed"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],iI.prototype,"loadStructuredDescription",null);_.x([_.A("data","structuredDescriptionContentRenderer","collapsed"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],iI.prototype,"showInlineStructuredDescription",null);
_.x([_.A("data","hasInlineStructuredDescription","metadataCollapsible"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],iI.prototype,"descriptionAlwaysCollapsible",null);
_.T(iI,"ytd-video-secondary-info-renderer",function(){if(wR0===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);wR0=y}y=wR0;return y},{mode:2});var qQ7;var Mk=function(){return _.v.apply(this,arguments)||this};
_.R(Mk,_.v);Mk.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:_.O("web_modern_buttons"),forceIconButton:!_.O("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Mk.prototype.activate=function(y){y.appendTo(this.player);y.getPlayerPromise().then(function(W){W.setMinimized(!0)});
this.active=!0};
Mk.prototype.deactivate=function(){var y=this.player.firstElementChild;y.getPlayerPromise().then(function(W){W.setMinimized(!1)});
this.active=!1;return y};
Mk.prototype.onScrollUpTap=function(){var y=_.U().resolve(_.h7).getCurrentPage();y&&y.setScrollTop(0)};
var eT=Mk;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],eT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],eT.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],eT.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],eT.prototype,"active",void 0);
_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.e("design:type",Boolean)],eT.prototype,"darkLaunch",void 0);_.x([_.jj("#player"),_.e("design:type",HTMLDivElement)],eT.prototype,"player",void 0);eT=_.x([_.d({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],eT);
_.T(eT,"ytd-miniplayer-bar-renderer",function(){if(qQ7!==void 0)return qQ7;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return qQ7=y},{mode:1});_.A3(_.Ax(function(y){var W=_.HO();_.$k(function(){var c;if(c=JSON)c=Js7(y.data()),c=_.iF(JSON.stringify(c).replace(/</g,"\\u003C"));var Z=y.data(),G=_.v$(Z.title).trim().length===0,D=!Z.publishDate||Z.publishDate.trim().length===0,Y,u,t,b,r=!((Y=Z.thumbnail)==null?0:(u=Y.thumbnails)==null?0:u.length)||!((t=Z.thumbnail)==null?0:t.thumbnails[0].url)||((b=Z.thumbnail)==null?void 0:b.thumbnails[0].url.trim().length)===0;W.value&&c&&!(G||D||r)&&_.M9(W.value,c)});
return _.X("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.X("script",{el:W,type:"application/ld+json"}))},"vi"),"player-microformat-renderer",{props:{data:_.QE}});
}catch(e){_._DumpException(e)}
try{
var RBf,V_,lw3,E8f,Iw9,pdB,NBZ,PHd;RBf=function(){var y=_.Kl();y.info||(y.info={});return y.info};
V_=function(y){return Math.round(_.gK()+y)};
lw3=function(){var y;if(_.O("csi_use_performance_navigation_timing")||_.O("csi_use_performance_navigation_timing_tvhtml5")){var W,c,Z,G=_.Oc==null?void 0:(y=_.Oc.getEntriesByType)==null?void 0:(W=y.call(_.Oc,"navigation"))==null?void 0:(c=W[0])==null?void 0:(Z=c.toJSON)==null?void 0:Z.call(c);G?(G.requestStart=V_(G.requestStart),G.responseEnd=V_(G.responseEnd),G.redirectStart=V_(G.redirectStart),G.redirectEnd=V_(G.redirectEnd),G.domainLookupEnd=V_(G.domainLookupEnd),G.connectStart=V_(G.connectStart),
G.connectEnd=V_(G.connectEnd),G.responseStart=V_(G.responseStart),G.secureConnectionStart=V_(G.secureConnectionStart),G.domainLookupStart=V_(G.domainLookupStart),G.isPerformanceNavigationTiming=!0,y=G):y=_.Oc.timing}else y=_.O("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Oc.timing)):_.Oc.timing;return y};
E8f=function(){if(_.Oc.getEntriesByType){var y=_.Oc.getEntriesByType("paint");if(y=_.Qw(y,function(c){return c.name==="first-paint"}))return V_(y.startTime)}var W;
_.O("csi_use_performance_navigation_timing")||_.O("csi_use_performance_navigation_timing_tvhtml5")?W=_.Oc.getEntriesByType("first-paint")[0].startTime:W=_.Oc.timing.msFirstPaint;return W?Math.max(0,W):0};
Iw9=function(){var y=window.location.protocol,W=_.Oc.getEntriesByType("resource");W=_.cN(W,function(c){return c.name.indexOf(y+"//fonts.gstatic.com/s/")===0});
(W=NBZ(W,function(c,Z){return Z.duration>c.duration?Z:c}))&&W.startTime>0&&W.responseEnd>0&&(_.RP("wffs",V_(W.startTime)),_.RP("wffe",V_(W.responseEnd)))};
pdB=function(y,W){y=document.querySelector(y);if(!y)return!1;var c="",Z=y.nodeName;Z==="SCRIPT"?(c=y.src,c||(c=y.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):Z==="LINK"&&(c=y.href);_.Te(document)&&y.setAttribute("nonce",_.Te(document));return c?(y=_.Oc.getEntriesByName(c))&&y[0]&&(y=y[0],c=_.gK(),_.RP("rsf_"+W,c+Math.round(y.fetchStart)),_.RP("rse_"+W,c+Math.round(y.responseEnd)),y.transferSize!==void 0&&y.transferSize===0)?!0:!1:!1};
_.J8d=function(y,W){_.PI(function(){_.EKI("").info.actionType=y;W&&_.l1("TIMING_AFT_KEYS",W);_.l1("TIMING_ACTION",y);var c=_.SME(_.Nn("TIMING_INFO",{}));Object.keys(c).length>0&&_.lN(c);c={isNavigation:!0,actionType:_.psg(_.Nn("TIMING_ACTION"))};var Z=_.Nn("PREVIOUS_ACTION");Z&&(c.previousAction=_.psg(Z));if(Z=_.Nn("CLIENT_PROTOCOL"))c.httpProtocol=Z;if(Z=_.Nn("CLIENT_TRANSPORT"))c.transportProtocol=Z;(Z=_.NR())&&Z!=="UNDEFINED_CSN"&&(c.clientScreenNonce=Z);Z=_.dhy();if(Z===1||Z===-1)c.isVisible=
!0;Z=_.Uhw().loadType==="cold";var G=RBf();Z||(Z=G.yt_lt==="cold");if(Z){c.loadType="cold";Z=RBf();G=lw3();var D=_.gK(),Y=_.Nn("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!_.O("embeds_web_enable_csi_start_override_killswitch")&&(D=Y);D&&(_.RP("srt",G.responseStart),Z.prerender!==1&&_.QXE(D));Z=E8f();Z>0&&_.RP("fpt",Z);Z=lw3();Z.isPerformanceNavigationTiming&&_.lN({performanceNavigationTiming:!0},void 0);_.RP("nreqs",Z.requestStart,void 0);_.RP("nress",Z.responseStart,void 0);_.RP("nrese",Z.responseEnd,void 0);
Z.redirectEnd-Z.redirectStart>0&&(_.RP("nrs",Z.redirectStart,void 0),_.RP("nre",Z.redirectEnd,void 0));Z.domainLookupEnd-Z.domainLookupStart>0&&(_.RP("ndnss",Z.domainLookupStart,void 0),_.RP("ndnse",Z.domainLookupEnd,void 0));Z.connectEnd-Z.connectStart>0&&(_.RP("ntcps",Z.connectStart,void 0),_.RP("ntcpe",Z.connectEnd,void 0));Z.secureConnectionStart>=_.gK()&&Z.connectEnd-Z.secureConnectionStart>0&&(_.RP("nstcps",Z.secureConnectionStart,void 0),_.RP("ntcpe",Z.connectEnd,void 0));_.Oc&&"getEntriesByType"in
_.Oc&&Iw9();Z=[];if(document.querySelector&&_.Oc&&_.Oc.getEntriesByName)for(var u in PHd)PHd.hasOwnProperty(u)&&(G=PHd[u],pdB(u,G)&&Z.push(G));if(Z.length>0)for(c.resourceInfo=[],u=_.z(Z),Z=u.next();!Z.done;Z=u.next())c.resourceInfo.push({resourceCache:Z.value})}_.lN(c);c=_.KxI();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);u=c.preLoggedGelInfos;c=_.OGf();Z=void 0;for(G=0;G<u.length;G++)if(D=u[G],D.loadType){Z=D.loadType;break}if(_.Uhw().loadType==="cold"&&(c.loadType==="cold"||Z==="cold")){Z=_.$hh();
G=_.KxI();G=G.gelTicks?G.gelTicks:G.gelTicks={};for(var t in Z)if(!(t in G))if(typeof Z[t]==="number")_.RP(t,_.Ec(t));else if(_.O("log_repeated_ytcsi_ticks"))for(D=_.z(Z[t]),Y=D.next();!Y.done;Y=D.next())Y=Y.value,_.RP(t.slice(1),Y);t={};Z=!1;u=_.z(u);for(G=u.next();!G.done;G=u.next())Z=G.value,_.bUI(c,Z),_.bUI(t,Z),Z=!0;Z&&_.lN(t)}_.aNy(!0);t=_.Nn("TIMING_ACTION");_.JW("ytglobal.timingready_")&&t&&_.WXh()&&_.THH()&&_.Lx1()})()};
NBZ=function(y,W){return Array.prototype.reduce.call(y,W,{duration:0})};
PHd={'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 VCQ={};VCQ.YtVisibilityRootBehavior=[_.ioE.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Mg(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Nn("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var y=_.Nn("INNERTUBE_CLIENT_NAME")!=="WEB";_.O("kevlar_use_vimio_behavior")&&y&&_.af8()}}];_.Ch={};_.Ch.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(y){y.detail.contextProvider=this;y.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
VCQ.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.px();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(y){var W=this;this.pageCount+=1;_.O("kevlar_use_vimio_behavior")&&(_.Nn("INNERTUBE_CLIENT_NAME")==="WEB"?_.KX.addJob(function(){W.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(y)},
loadPage_:function(y){this.data=y},
ytPageBehaviorActiveObserver_:function(y){var W=this;_.O("kevlar_use_vimio_behavior")&&(y?_.Nn("INNERTUBE_CLIENT_NAME")==="WEB"?_.KX.addJob(function(){W.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(y){if(!this.setScrollTopJobId_){var W=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){W.setScrollTopJobId_=0;var c=_.U().resolve(_.xN(_.t7));c&&_.YiT(c);this.getPageScrollingElement().scrollTop=y}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Kd(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Oz9;var g8D=function(){var y=_.v.apply(this,arguments)||this;y.playerListenerConfig=null;y.actionMap={"yt-show-watch-page-survey":"openSurvey"};return y};
_.R(g8D,_.v);_.f=g8D.prototype;_.f.dataChanged=function(){var y=this,W=_.HF();W&&W.getPlayerPromise().then(function(Z){y.maybeRemovePlayerListeners(Z)});
var c=this.data&&this.data.survey;c&&((c=(c=c.singleOptionSurveyRenderer||c.checkboxSurveyRenderer||c.multiStageSurveyRenderer)&&c.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(W,c):this.openSurvey())};
_.f.triggerWatchPageSurvey=function(y,W){var c=this,Z,G,D,Y,u,t,b,r,F;return _.m(function(K){if(K.nextAddress==1)return y?_.n(K,y.getPlayerPromise(),2):K.return();c.player=K.yieldResult;if(!c.player)return K.return();Z={};G=_.z(W);for(D=G.next();!D.done;D=G.next())Y=D.value,u=_.z(c.createEventListenerPair(Y)),t=u.next().value,b=u.next().value,r=t,F=b,r&&F&&(Z[r]=F,c.ytPlayerListenerBehavior.listenToPlayerEvent(c.player,r,F));c.playerListenerConfig=Z;_.F2(K)})};
_.f.createEventListenerPair=function(y){var W=y.playbackEventTrigger;return W?this.handlePlaybackTrigger(W):(y=y.watchTimeTrigger)?this.handleWatchTimeTrigger(y):[void 0,void 0]};
_.f.handleWatchTimeTrigger=function(y){var W=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var c=y.videoWatchFraction,Z=y.watchTimeSec;return Z&&c?["onVideoProgress",function(){W.player&&W.isWatchTimeConditionMet(W.player,c,Z)&&W.showSurvey()}]:[void 0,
void 0]};
_.f.isWatchTimeConditionMet=function(y,W,c){var Z=y.getProgressState(),G=Z.current-this.lastKnownPlaybackPosition;G<5&&(this.accumulatedMediaTime+=G);this.lastKnownPlaybackPosition=Z.current;Z=Math.round(this.accumulatedMediaTime/Z.duration*1E3)/1E3;return y.getPresentingPlayerType&&y.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>c||Z>W)};
_.f.handlePlaybackTrigger=function(y){var W=this;y=y.playbackEvent;if(y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var c="onStateChange";var Z=function(G){G===0&&W.showSurvey()}}else y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(c="onVideoProgress",Z=function(G){W.player&&W.player.getPresentingPlayerType&&W.player.getPresentingPlayerType()===1&&G&&W.showSurvey()}):y==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(c="onAdEnd",Z=this.showSurvey);
return[c,Z]};
_.f.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.f.openSurvey=function(){var y=this,W=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.qQd(!!W));_.KX.addJob(function(){y.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:W}})},0,0)};
_.f.maybeRemovePlayerListeners=function(y){if(this.playerListenerConfig){for(var W=_.z(Object.keys(this.playerListenerConfig)),c=W.next();!c.done;c=W.next())c=c.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(y,c,this.playerListenerConfig[c]);this.playerListenerConfig=null}};
var JR=g8D;JR.prototype.dataChanged=JR.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],JR.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],JR.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],JR.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],JR.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JR.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],JR.prototype,"playerListenerConfig",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],JR.prototype,"lastKnownPlaybackPosition",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],JR.prototype,"accumulatedMediaTime",void 0);_.x([_.L(),_.e("design:type",Object)],JR.prototype,"player",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JR.prototype,"dataChanged",null);JR=_.x([_.d({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],JR);
_.T(JR,"ytd-survey-trigger-renderer",function(){if(Oz9!==void 0)return Oz9;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Oz9=y},{mode:1});
}catch(e){_._DumpException(e)}
try{
var qZf=new _.w("promotedSparklesWebRenderer");var ki3=new _.w("relatedChipCommand");var jHn;var y9f;var W6f=function(){return _.v.apply(this,arguments)||this};
_.R(W6f,_.v);W6f.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var OC=W6f;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],OC.prototype,"data",void 0);OC=_.x([_.d({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],OC);
_.T(OC,"ytd-compact-tvfilm-entry-point-renderer",function(){if(y9f!==void 0)return y9f;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return y9f=y},{mode:1});var c90;var ZQf;var GfQ;var gD=function(){return _.v.apply(this,arguments)||this};
_.R(gD,_.v);gD.prototype.ready=function(){this.initializeDefs()};
gD.prototype.initializeDefs=function(){var y=this.meta.byKey("yt-icons"),W=_.p(y).querySelector("#star"),c=_.p(y).querySelector("#star_half");y=_.p(y).querySelector("#star_border");W&&this.defs.appendChild(W.cloneNode(!0));c&&this.defs.appendChild(c.cloneNode(!0));y&&this.defs.appendChild(y.cloneNode(!0))};
gD.prototype.percentChanged=function(){for(var y=this.rating;y.firstChild;)y.removeChild(y.firstChild);var W=Math.round(this.percent/10);y=Math.floor(W/2);W%=2;var c=5-y-W;this.appendStars("star",y,0);this.appendStars("star_half",W,y);this.appendStars("star_border",c,y+W)};
gD.prototype.appendStars=function(y,W,c){for(var Z=0;Z<W;Z++){var G=(18+this.spacing)*(Z+c),D=document.createElementNS("http://www.w3.org/2000/svg","use");_.k7S(D,"#"+y);D.setAttribute("x",""+G);D.setAttribute("y","0");this.rating.appendChild(D)}};
var Ry=gD;Ry.prototype.percentChanged=Ry.prototype.percentChanged;_.x([_.jj("#defs"),_.e("design:type",HTMLElement)],Ry.prototype,"defs",void 0);_.x([_.jj("#rating"),_.e("design:type",HTMLElement)],Ry.prototype,"rating",void 0);_.x([_.L(),_.e("design:type",Number)],Ry.prototype,"percent",void 0);_.x([_.L({value:6}),_.e("design:type",Number)],Ry.prototype,"spacing",void 0);_.x([_.L({value:_.te.create("iron-meta",{type:"iconset"})}),_.e("design:type",_.rt)],Ry.prototype,"meta",void 0);
_.x([_.H("percent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ry.prototype,"percentChanged",null);Ry=_.x([_.d({disableElementRegistration:!0,is:"ytd-ratings"})],Ry);
_.T(Ry,"ytd-ratings",function(){if(GfQ!==void 0)return GfQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return GfQ=y},{mode:1});var fgX=function(){return _.v.apply(this,arguments)||this};
_.R(fgX,_.v);var oQX=fgX;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],oQX.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],oQX.prototype,"data",void 0);oQX=_.x([_.d({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],oQX);
_.T(oQX,"ytd-offer-review-renderer",function(){if(ZQf!==void 0)return ZQf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ZQf=y},{mode:1});var DHf=function(){var y=_.v.apply(this,arguments)||this;y.badges=[{textBadge:{label:_.Lq("CC")}}];return y};
_.R(DHf,_.v);_.f=DHf.prototype;_.f.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.f.dataChanged=function(){var y=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(y&&y.commandMetadata&&_.g(y.commandMetadata,_.rR)&&_.g(y.commandMetadata,_.rR).fireAutomatically)_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}});else{var W;y&&((W=_.g(y,_.rR))==null?0:W.fireAutomatically)&&_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}})}};
_.f.isEmptyContent=function(y){return this.isStorefrontEntryPointEmpty(y)&&this.shouldHideOfferModule(y)};
_.f.isStorefrontEntryPointEmpty=function(y){return!y||!y.storefrontEntryPoint};
_.f.shouldHideOfferModule=function(y){return!!y.hideVideoDetails};
_.f.isOfferModuleNavigationInactive=function(y){return!y.navigationEndpoint&&!y.serviceEndpoint};
_.f.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
var lw=DHf;lw.prototype.dataChanged=lw.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],lw.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.e("design:type",Boolean)],lw.prototype,"hidden",void 0);
_.x([_.L(),_.e("design:type",Object)],lw.prototype,"badges",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lw.prototype,"dataChanged",null);lw=_.x([_.d({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],lw);
_.T(lw,"ytd-movie-offer-module-renderer",function(){if(c90!==void 0)return c90;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return c90=y},{mode:1});var z63;var YB9=function(){return _.v.apply(this,arguments)||this};
_.R(YB9,_.v);var mH3=YB9;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],mH3.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mH3.prototype,"data",void 0);mH3=_.x([_.d({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],mH3);
_.T(mH3,"ytd-media-masthead-renderer",function(){if(z63!==void 0)return z63;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return z63=y},{mode:1});var sHM;_.A3(_.tIQ,"course-metadata-view-model",{props:{data:_.QE,isOverlay:_.QE}});var uZe=function(){var y=_.v.apply(this,arguments)||this;y.isMetadataVisible=!1;y.modernPanels=_.O("kevlar_watch_modern_panels");y.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return y};
_.R(uZe,_.v);_.f=uZe.prototype;
_.f.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"}}}}};
_.f.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.f.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.f.expanderChanged=function(){var y;if((y=this.data)==null?0:y.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.f.isExpandButtonToggled=function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.expandMetadataButton,_.F5))==null?void 0:W.isToggled};
_.f.onVisibilityButtonClick=function(){var y;if((y=this.data)==null?0:y.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.f.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
var EC=uZe;EC.prototype.expanderChanged=EC.prototype.expanderChanged;EC.prototype.dataChanged=EC.prototype.dataChanged;EC.prototype.descriptionChanged=EC.prototype.descriptionChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],EC.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C([_.Hj.YtActionHandlerBehavior]),_.e("design:type",Object)],EC.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],EC.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],EC.prototype,"isMetadataVisible",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],EC.prototype,"modernPanels",void 0);_.x([_.jj("#expander"),_.e("design:type",Object)],EC.prototype,"expander",void 0);
_.x([_.H("data.description"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],EC.prototype,"descriptionChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],EC.prototype,"dataChanged",null);_.x([_.H("isMetadataVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],EC.prototype,"expanderChanged",null);
EC=_.x([_.d({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],EC);
_.T(EC,"ytd-tvfilm-offer-module-renderer",function(){if(sHM!==void 0)return sHM;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sHM=y},{mode:2});var tD0;var Nx=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return y};
_.R(Nx,_.v);Nx.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Nx.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Nx.prototype.onThumbnailTap=function(y){this.data&&this.data.serviceEndpoint&&(_.U().resolve(_.i1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),y.stopPropagation())};
Nx.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
var Iy=Nx;Iy.prototype.dataChanged=Iy.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Iy.prototype,"rendererBehaviors",void 0);_.x([_.C([_.Hj.YtActionHandlerBehavior]),_.e("design:type",Object)],Iy.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Iy.prototype,"data",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Iy.prototype,"dataChanged",null);Iy=_.x([_.d({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Iy);
_.T(Iy,"ytd-unlimited-offer-module-renderer",function(){if(tD0!==void 0)return tD0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tD0=y},{mode:1});var nQ3;var X3f;var bQ9=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return y};
_.R(bQ9,_.v);bQ9.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
bQ9.prototype.handleRelatedChipCommand=function(y){y=_.g(y,ki3);var W=y.contents;W?_.fl(this.hostElement,"yt-item-section-replace-action",[W,y.targetSectionIdentifier]):_.fl(this.hostElement,"yt-item-section-continuation-action",[y.continuationData,y.targetSectionIdentifier])};
var pI=bQ9;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],pI.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],pI.prototype,"data",void 0);pI=_.x([_.n6({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],pI);
_.T(pI,"yt-related-chip-cloud-renderer",function(){if(X3f===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;nQ3===void 0&&(nQ3=document.createElement("template"));var Z=nQ3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);X3f=y}y=X3f;return y},{mode:2});var PC=function(){var y=_.v.apply(this,arguments)||this;y.isTwoColumns=!0;y.hideOfferModules=!1;y.watchFeedBigThumbs=_.O("kevlar_watch_feed_big_thumbs");y.watchNextGridHideChips=_.O("kevlar_watch_grid_hide_chips");y.eligibleToSwitchToGrid=_.O("web_watch_eligible_to_switch_to_grid");y.disableShortsShelfHeightOverride=_.O("web_shorts_wn_shelf_ratio_tuning");y.isWatchNextGrid=!1;y.reuseComponents=!_.O("kevlar_watch_grid");y.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return y};
_.R(PC,_.v);_.f=PC.prototype;
_.f.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:!_.O("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}}};
_.f.getItemsPath=function(){return"data.results"};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.f.created=function(){this.ytLazyListBehavior.initialCount=1};
_.f.ready=function(){_.wM(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%"})};
_.f.resultsChanged=function(){if(this.data&&this.data.results){for(var y=this.data.results,W=null,c=null,Z=0;Z<y.length;Z++)y[Z].relatedChipCloudRenderer?W=y[Z].relatedChipCloudRenderer:y[Z].itemSectionRenderer&&(c=y[Z].itemSectionRenderer);if(W&&c)for(this.set("data.continuations",[]),y=_.g(W.content,_.BR3).chips,W=0;W<y.length;W++)if(Z=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",y[W]),Z.loadCached||!Z.contents){Z.contents=c.contents;break}}};
_.f.dataChanged=function(){var y=this,W;if((W=this.data)!=null&&W.results&&this.hasAllowedInstreamAd(this.playerData)){if(W=this.data.results.filter(function(u){return!!u.promotedSparklesWebRenderer})){for(var c=0;c<W.length;c++){var Z=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",W[c]);
if(Z)for(var G=0;G<Z.length;G++)Z[G]&&Z[G].baseUrl&&_.Jv(Z[G].baseUrl)}this.set("data.results",this.data.results.filter(function(u){return!u.promotedSparklesWebRenderer}))}if(W=this.data.results.filter(function(u){return!!y.getSparklesAd(u)})){W=_.z(W);
for(G=W.next();!G.done;G=W.next())if(Z=c=void 0,G=(c=this.getSparklesAd(G.value))==null?void 0:(Z=c.errorCommand)==null?void 0:Z.loggingUrls)for(c=_.z(G),Z=c.next();!Z.done;Z=c.next())(Z=Z.value)&&Z.baseUrl&&_.Jv(Z.baseUrl);var D,Y;this.set("data.results",(D=this.data)==null?void 0:(Y=D.results)==null?void 0:Y.filter(function(u){return!u.adSlotRenderer}))}}};
_.f.getSparklesAd=function(y){var W,c;y=_.g((W=y.adSlotRenderer)==null?void 0:(c=W.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.zGJ);return _.g(y==null?void 0:y.renderingContent,qZf)};
_.f.hasAllowedInstreamAd=function(y){y=this.get("adPlacements",y)||[];for(var W=0;W<y.length;W++){var c=this.get("adPlacementRenderer.config.adPlacementConfig",y[W]);if(c&&c.suppressDisplayAd)return!0}return!1};
_.f.computeHideUnlimitedOfferModule=function(y,W){return y&&y.offerModule&&W&&y.offerModule.unlimitedOfferModuleRenderer&&y.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(W)?!0:!1};
_.f.hideUnlimitedOfferModuleChanged=function(){var y=_.p(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");y&&(y.hidden=this.hideUnlimitedOfferModule)};
_.f.updateLockupContainerTypes=function(y){if(this.eligibleToSwitchToGrid){var W;(W=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||W.forEach(function(c){c.containerType=y})}};
_.f.computeHideTvfilmOfferModule=function(y,W){var c,Z;return!!((y==null?0:(c=y.offerModule)==null?0:(Z=c.tvfilmOfferModuleRenderer)==null?0:Z.clientShouldSuppressIfCompanionAdDisplayed)&&W&&this.hasCompanionAds(W))};
_.f.hideTvfilmOfferModuleChanged=function(){var y=_.p(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");y&&(y.hidden=this.hideTvfilmOfferModule)};
_.f.hasCompanionAds=function(y){y=this.get("adPlacements",y)||[];for(var W=0;W<y.length;W++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",y[W]))return!0;var c=void 0,Z=void 0,G=void 0;if(!_.O("web_watch_top_banner_companion_check_killswitch")&&((c=y[W])==null?0:(Z=c.adPlacementRenderer)==null?0:(G=Z.renderer)==null?0:G.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.f.hasSuppressedResults=function(y){return y==null?!0:y.filter(function(W){return!W.continuationItemRenderer&&!W.compactPromotedVideoRenderer&&!W.promotedSparklesWebRenderer}).length===0};
_.f.computeShowButton=function(y,W){return this.isWatchNextGrid?y:y||this.hasSuppressedResults(W)};
_.f.showButtonChanged=function(){if(this.isWatchNextGrid){var y=_.p(this.hostElement).querySelector("ytd-rich-grid-renderer");y&&this.showButton!==null&&(y.continuationShowButton=this.showButton)}else{y=_.p(this.hostElement).querySelector("yt-next-continuation");var W=_.p(this.hostElement).querySelector("ytd-continuation-item-renderer"),c=_.p(this.hostElement).querySelector("ytd-item-section-renderer");y&&(y.showButton=this.showButton);W&&(W.showButton=this.showButton);c&&(c.continuationShowButton=
this.showButton)}};
_.f.continuationTap=function(y){var W;if(((W=this.data)==null?void 0:W.continuations)!=null&&y.target.tagName==="TP-YT-PAPER-BUTTON")for(y=this.data.continuations,W=0;W<y.length;W++)y[W].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(y[W].nextContinuationData||{})};
_.f.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("shown-items-changed",this.shownItems))};
_.dJ.Object.defineProperties(PC.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 y;return!((y=this.shownItems)==null||!y.some(function(W){return!!W.lockupViewModel}))}}});
PC.prototype.shownItemsChangedForBinding=PC.prototype.shownItemsChangedForBinding;PC.prototype.showButtonChanged=PC.prototype.showButtonChanged;PC.prototype.hideTvfilmOfferModuleChanged=PC.prototype.hideTvfilmOfferModuleChanged;PC.prototype.updateLockupContainerTypes=PC.prototype.updateLockupContainerTypes;PC.prototype.hideUnlimitedOfferModuleChanged=PC.prototype.hideUnlimitedOfferModuleChanged;PC.prototype.dataChanged=PC.prototype.dataChanged;PC.prototype.resultsChanged=PC.prototype.resultsChanged;
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],PC.prototype,"ytLazyListBehavior",void 0);_.x([_.C(_.S7.YtNextContinuationBehavior),_.e("design:type",Object)],PC.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.C(_.dO),_.e("design:type",Object)],PC.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],PC.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],PC.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],PC.prototype,"playerData",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],PC.prototype,"autoFill",void 0);_.x([_.L({value:60}),_.e("design:type",Number)],PC.prototype,"targetFramerate",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],PC.prototype,"isTwoColumns",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],PC.prototype,"hideOfferModules",void 0);_.x([_.L(),_.e("design:type",Object)],PC.prototype,"shownItems",void 0);_.x([_.L({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.e("design:type",Boolean)],PC.prototype,"hideUnlimitedOfferModule",void 0);
_.x([_.L({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.e("design:type",Boolean)],PC.prototype,"hideTvfilmOfferModule",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],PC.prototype,"watchFeedBigThumbs",void 0);_.x([_.L(),_.e("design:type",Object)],PC.prototype,"watchNextGridHideChips",void 0);_.x([_.L(),_.e("design:type",Object)],PC.prototype,"eligibleToSwitchToGrid",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],PC.prototype,"disableShortsShelfHeightOverride",void 0);_.x([_.L({selector:_.R3}),_.e("design:type",Object)],PC.prototype,"isGridViewEnabled",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],PC.prototype,"showMoreButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],PC.prototype,"isWatchNextGrid",void 0);
_.x([_.L({computed:"computeShowButton(showMoreButton, data.results)"}),_.e("design:type",Boolean)],PC.prototype,"showButton",void 0);_.x([_.Gs("data.results.*"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],PC.prototype,"resultsChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],PC.prototype,"dataChanged",null);
_.x([_.H("hideUnlimitedOfferModule"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],PC.prototype,"hideUnlimitedOfferModuleChanged",null);_.x([_.A("isGridViewEnabled","containsLockupViewModel","data"),_.L({reflectToAttribute:!0}),_.e("design:type",Number),_.e("design:paramtypes",[])],PC.prototype,"lockupContainerType",null);
_.x([_.H("lockupContainerType","data"),_.e("design:type",Function),_.e("design:paramtypes",[Number]),_.e("design:returntype")],PC.prototype,"updateLockupContainerTypes",null);_.x([_.H("hideTvfilmOfferModule"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],PC.prototype,"hideTvfilmOfferModuleChanged",null);_.x([_.H("showButton"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],PC.prototype,"showButtonChanged",null);
_.x([_.H("shownItems"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],PC.prototype,"shownItemsChangedForBinding",null);_.x([_.A("shownItems"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],PC.prototype,"containsLockupViewModel",null);
_.T(PC,"ytd-watch-next-secondary-results-renderer",function(){if(jHn===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);jHn=y}y=jHn;return y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.k7f={};
_.k7f.YtdWatchBehavior=[_.k.YtRendererBehavior,_.VW.YtPlayerListenerBehavior,_.Bj.YtRendererstamperBehavior,_.Hj.YtActionHandlerBehavior,_.Ch.YtPageBehavior,_.wU.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 _.I8("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.O("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 _.I8("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 _.O("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.O("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 _.ey("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ey("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!_.O("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.O("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 _.O("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.O("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("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 _.O("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.O("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.O("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("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 _.O("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("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 _.O("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 y={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:_.rc(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.rc(["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"||_.O("swa_prov_panels_ks")?_.O("web_watch_inject_placeholder_panels")?y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.O("kevlar_use_engagement_panel_management_component")||
(y["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},y.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return y},
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 y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){y.showMetadataPlaceholder_()},
function(){_.O("web_watch_dont_clear_comments")||y.clearComments_()},
function(){y.clearPlayerAds_()},
function(){y.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;_.O("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.O("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.AsQ(function(){return _.BF(y)},this.hostElement);
this.pageDisposeJobs.push(function(){y.youThereManager_.reset()});
_.O("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){y.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.je;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;_.O("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.O("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));_.O("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.qO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(y){y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:y}),y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(y){_.O("kevlar_watch_flexy_theater_manager")&&(this.theater=y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(y){!_.O("kevlar_watch_while_v2")&&!_.O("web_watch_pip")||y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(y){this.active!==void 0&&(this.fullscreen=y,_.O("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(y){this.active!==void 0&&(_.Z2(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.O("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(y){this.initCsi_();this.updatePageData_(y)},
updatePageData_:function(y){var W=this;if(y)if(this.data===y){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||_.H1(c,this.data)}else this.data=y;this.playlist&&_.IP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.PA("nw");this.loading=!1;_.Xc(_.KX,function(){W.initDclkstatus_();var Z,G=((Z=W.player)==null?void 0:Z.getVideoData().cpn)||"";_.U4F(function(D,Y){_.c3Z(D,Y,G)})})},
onPageLoadWithSameData_:function(){_.O("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 y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!y);this.set("loadingData.playlistLoading",y&&y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),y=this.watchNextSkeletonEl_.firstElementChild;y;)y.classList.remove("hidden"),y=y.nextElementSibling;if(_.O("kevlar_watch_frame0_loading_state")){var W,c,Z;y=(W=this.loadingData)==null?void 0:(c=W.endpoint)==null?void 0:(Z=c.watchEndpoint)==null?void 0:Z.videoId;var G;y&&(G="https://i.ytimg.com/vi/"+y+"/frame0.jpg");_.p(this.hostElement).querySelector("#player").style.backgroundImage=G?"url("+G+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var y=_.p(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&y&&(y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var W,c;(c=(W=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(W);var Z,G;(G=(Z=this.watchMetadata).resize)==null||G.call(Z)}_.O("kevlar_watch_frame0_loading_state")&&(_.p(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(y){var W=_.p(this.hostElement).querySelector(y);W?_.WA(W,!1):_.Rs(new _.ul("Overscroll monitor not found for component: ",y))},
removeSplitScrollMouseTrap:function(y){var W=_.p(this.hostElement).querySelector(y);W?_.cA(W):_.Rs(new _.ul("Disposal component for  overscroll monitoring not found: ",y))},
onLoadingChanged_:function(y){y?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(y){var W=this;y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.KX.addLowPriorityJob(function(){W.onWindowResized_(_.Y$(!0))})},
updateTheaterModeState_:function(y){if(!_.O("kevlar_watch_flexy_theater_manager")){y=y||this.fullWindowMode_;if(this.theater!==void 0||y)this.theater=y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();y&&_.OQ$()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var y=this.theater;_.O("external_fullscreen")&&this.fullscreen&&(y=!0);y=y?_.p(this.hostElement).querySelector("#player-full-bleed-container"):_.p(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),c=_.O("kevlar_watch_while_v2")||_.O("web_watch_pip");W.parentElement!==y&&(c&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.BF(this).appendTo(y,W),y.appendChild(_.p(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var y=this;return _.m(function(W){if(W.nextAddress==1)return _.n(W,_.U().resolve(_.Cy).deactivate(),2);y.updatePlayerLocation();_.F2(W)})},
updateCinematicsLocation:function(){var y=this.getElement("CINEMATICS");if(y){var W=this.getCinematicsLocationContainer();y.parentElement!==W&&W.appendChild(y);var c;(c=this.watchController)==null||_.XRf(c)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.p(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.p(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(y,W){var c=document.documentElement.hasAttribute("dark"),Z=c&&_.O("web_cinematic_theater_mode"),G=c&&_.O("web_cinematic_fullscreen");c=!c&&this.cinematicLightTheme;return y&&Z||W&&G||(W||y)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var y=this,W;(W=this.watchController)==null||_.H1(W,this.data);_.O("kevlar_watch_flexy_comments_manager")||this.initComments_();_.O("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.U().resolve(_.EU).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,_.O("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.KX.addLowPriorityJob(function(){_.fl(y.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.O("web_watch_start_chat_in_theater_mode")){var c,Z,G;if((c=this.data)==null?0:(Z=c.contents)==null?0:(G=Z.twoColumnWatchNextResults)==null?0:G.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var D,Y;((D=this.data)==null?0:(Y=D.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(y){var W;(W=this.watchController)==null||_.B1(W,this.playerData);y&&y.playabilityStatus&&(W=this.isVideoPlayable_(y.playabilityStatus,this.getPlayerOverlays_(this.data)),y=this.isLiveStreamOffline_(y.playabilityStatus),W&&!y||_.Lv(this,function(){_.PA("pbu")}));
this.setPlayerAds_();_.fl(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(y,W){if((_.O("kevlar_watch_while_v2")||_.O("web_watch_pip"))&&this.playerData&&W)return this.playerData.videoDetails},
watchPageActiveChanged_:function(y){_.Sv().dispatch(_.l3X(this.active));y?this.activate_():this.deactivate_()},
attached:function(){var y=this;this.watchController=new _.h1(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.B1(this.watchController,this.playerData);this.data&&_.H1(this.watchController,this.data);_.O("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.BF(this);_.O("kevlar_disable_prepare_player")||W.preparePlayer();
_.O("kevlar_watch_flexy_playlist_manager")||_.U().resolve(_.EU).setPlayer(W);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.tN()+"px"};this.is==="ytd-watch-grid"&&(W["--ytd-watch-flexy-sidebar-width"]=_.LI+"px",W["--ytd-watch-grid-horizontal-page-margins"]=_.BC+"px",W["--ytd-watch-grid-columns-top-margins"]=_.XpM+"px",W["--ytd-watch-grid-min-player-height-medium"]="360px");!_.ey("kv_pl_mx_sz_ks")&&_.ey("kevlar_watch_max_player_width")&&
(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Kpn+"px");_.ey("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.Oce+"px");this.safeUpdateStyles(W);_.O("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.orf(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return y.onPlayerTouchPanDown_()}}));
_.O("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.p(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var y=_.tN(),W=_.HC+y,c=W;this.fixedPanels&&(W+=_.LI);var Z=657+y;y=1327+y;_.p(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.p(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(y+"px)");_.p(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(y+"px)");_.p(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)"},
calculateCurrentPlayerSize_:function(){var y=_.p(this.hostElement).querySelector("#miniplayer-bar").firstChild;return y&&y.active||this.theater||_.O("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.nP(NaN,NaN):_.EM0(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.EM0(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Mg(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var y=this;this.onWindowResized_(_.Y$());_.O("browse_skeleton_removal_on_watch_killswitch")||_.I8("IS_SHELL_LOAD")&&_.K5D();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.BF(this);W.addEventListener("yt-player-updated",_.qO(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(c){y.playerApiReady_(c)});
_.O("kevlar_watch_flexy_playlist_manager")||(W=_.U().resolve(_.EU),_.O("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.qO(this,this.onYtNavigate_)),W.setPlaylistComponent(_.p(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.qO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.KX.addLowPriorityJob(function(){_.Z2(y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.BF(this).removeEventListener("yt-player-updated",_.qO(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.O("kevlar_watch_flexy_playlist_manager")){var y=_.U().resolve(_.EU);_.O("kevlar_watch_observe_playlist_navigations_killswitch")&&y.removeEventListener("yt-navigate",_.qO(this,this.onYtNavigate_));
y.cancelVideoSkip();y.removeEventListener("yt-playlist-data-updated",_.qO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Z2(this.hostElement,"yt-autonav-pause-player",!1);y=_.jG();_.O("kevlar_exit_fullscreen_leaving_watch")&&y&&_.yu(y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(y){this.player&&this.player.updateVideoData({rvs:y.rvs})},
getPageContents:function(y){return y&&y.contents&&y.contents.twoColumnWatchNextResults&&y.contents.twoColumnWatchNextResults.results&&y.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(y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y)},
onRetrieveLocation_:function(y,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);y.stopPropagation()},
onSubscriptionChanged_:function(y,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.J8d("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.p(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.p(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(y){this.player=y;this.setPlayerState(y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.O("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.O("kevlar_unified_player")||_.O("kevlar_player_new_bootstrap_adoption"))&&_.Ss()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(y,W){W=W===void 0?!0:W;_.jG()&&_.O("external_fullscreen")&&_.yu(document.documentElement);this.theaterRequested_=y;W&&_.zj("wide",y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.GG(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Z2(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(y){_.NF(y,typeof this.player),this.player&&_.NF(y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var y;((y=this.player)==null?0:y.isFullscreen())?this.player.toggleFullscreen():_.GG(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(y,W){return this.loading?W:!!Object.keys(y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(y){if(y){y=_.z(y);for(var W=y.next();!W.done;W=y.next())W=W.value,W.youThereRenderer&&_.Hv3(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(y){return y||{}},
userEngagementConfigDataChanged_:function(y){if(y)if(y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.MV()<y.lowEngagementThresholdMs||_.SQ0(W,!0)}else y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.GG(this.hostElement,"yt-autonav-pause-user-engagement",[y])},
isPlayerUnavailable_:function(y,W,c){return!!y&&!this.isVideoPlayable_(y,c)&&!W},
getPlayerOverlays_:function(y){return(y==null?void 0:y.playerOverlays)||null},
isVideoPlayable_:function(y,W){if(!y)return!1;var c=y.status==="OK"||y.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",y)||this.get("errorScreen.ypcTrailerRenderer",y);y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",y);var G;W=W==null?void 0:(G=W.playerOverlayRenderer)==null?void 0:G.gatedActionsOverlayRenderer;return!!c||!!Z||!!y||!!W},
hasWatchNextResponseErrorRenderer:function(y){var W=this.getPageContents(y),c,Z,G,D,Y;return!(y==null?0:(c=y.contents)==null?0:(Z=c.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((G=W[0])==null?0:(D=G.itemSectionRenderer)==null?0:(Y=D.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(y){return y?y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(y,W,c){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),G=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];G=_.O("web_no_skip_video_on_verification_checks")?(y==null?void 0:y.status)&&G.includes(y.status):y&&y.status==="AGE_CHECK_REQUIRED";var D=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",y);D==void 0&&(D=!0);!c||this.isVideoPlayable_(y,this.getPlayerOverlays_(W))||
Z||G||!D||_.U().resolve(_.EU).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Im9()},
onPlayerFeedbackStartRequest_:function(y){_.GG(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:y}])},
onPlayerFeedbackArticleRequest_:function(y){_.GG(this.hostElement,"yt-help-dialog-requested",[y])},
onPlayerYpcContentRequest_:function(){var y,W,c,Z,G,D,Y,u,t=((y=this.data)==null?NaN:(W=y.contents)==null?NaN:(c=W.twoColumnWatchNextResults)==null?NaN:(Z=c.secondaryResults)==null?NaN:(G=Z.secondaryResults)==null?NaN:(D=G.offerModule)==null?NaN:(Y=D.tvfilmOfferModuleRenderer)==null?NaN:(u=Y.actionButtons)==null?NaN:u.length)-1;y=[".offerButton.buttonRenderer.",".actionButtons."+(t>=0?t:0)+".buttonRenderer."];W=_.z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=W.next();!c.done;c=W.next())for(c=c.value,Z=_.z(y),G=Z.next();!G.done;G=Z.next())if(G="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+G.value,G=this.get(G+"navigationEndpoint",this.data)||this.get(G+"serviceEndpoint",this.data)||this.get(G+"command",this.data)){_.jl(G,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(y){_.Z2(this.hostElement,"yt-autonav-pause-player",y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(y){y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Z2(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(y)},
setPlayerState:function(y){_.Sv().dispatch(_.ZeZ(y))},
onPlayerSubscribe_:function(y){_.GG(this.hostElement,"yt-player-subscribe",[y])},
onPlayerUnsubscribe_:function(y){_.GG(this.hostElement,"yt-player-unsubscribe",[y])},
onPlayerAdYtShowToast_:function(y){_.GG(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(y){if(y)return y},
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(y){return!_.O("web_watch_move_summary_to_sd")&&!!y},
computeWatchMetadataRefresh:function(){return _.O("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.O("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var y,W,c,Z;this.watchNextSecondaryResults=(y=this.data)==null?void 0:(W=y.contents)==null?void 0:(c=W.twoColumnWatchNextResults)==null?void 0:(Z=c.secondaryResults)==null?void 0:Z.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.O("swatcheroo_pbs_load_grid")&&!_.O("swatcheroo_provide_all_data_on_scheduled_job")){_.KX.cancelJob(this.setRichGridJobId_);var y,W,c,Z,G,D,Y;this.setRichGridRendererData((y=this.data)==null?void 0:(W=y.contents)==null?void 0:(c=W.twoColumnWatchNextResults)==null?void 0:(Z=c.secondaryResults)==null?void 0:(G=Z.secondaryResults)==null?void 0:(D=G.results)==null?void 0:(Y=D[0])==null?
void 0:Y.richGridRenderer)}},
setRichGridRendererData:function(y){this.richGridRendererData=y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var y,W=(y=this.data)==null?void 0:y.engagementPanels;if(W==null?0:W.length){y=null;W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0;if(((Z=c.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){y=c;break}}var G,D,Y;y=(G=y)==null?void 0:(D=G.engagementPanelSectionListRenderer)==null?void 0:(Y=D.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(y==null?0:y.items){G=
[];D=_.z(y.items);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;if(!_.O("sd_horizontal_list_show_nav_killswitch")){var u=Z=c=W=y=void 0,t=void 0,b=(y=Y.horizontalCardListRenderer)==null?void 0:(W=y.header)==null?void 0:(c=W.richListHeaderRenderer)==null?void 0:(Z=c.navigationButton)==null?void 0:(u=Z.buttonRenderer)==null?void 0:(t=u.command)==null?void 0:t.commandExecutorCommand;b&&b.commands&&(b.commands=b.commands.filter(function(r){return!_.g(r,_.VQX)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||G.push(Y)}return{items:G}}}},
constructWarning_:function(y){return{text:_.Lq(y),type:"WARNING"}},
isPlaShelfEnabled_:function(y){if((this.get("adPlacements",y)||[]).length)return!0;y=this.get("playerAds",y)||[];return!(!y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var y=this;_.Z2(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.O("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.BF(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonVisibility(y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Z2(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var y=this;this.commentsReady=!1;_.KX.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Xc(_.KX,function(){y.setComments_()},1E3)},
setComments_:function(){if(!_.O("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.PA("cmi");_.KX.cancelJob(this.setCommentsJobId_);var y=this.getPageContents(this.data);if(y&&y.length){y=_.z(y);for(var W=y.next();!W.done;W=y.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Z2(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.O("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.O("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.PA("cmc")},
doRemoveComments_:function(){this.comments={};_.O("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.KX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.KX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(y,W){var c=_.g(W.endpoint,_.Sb);c&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==W.videoId||c.playlistId&&c.playlistId!==W.playlistId||_.O("kevlar_watch_timestamp_seek_playlist_index_comparison")&&c.index!==void 0&&c.index!==W.index||typeof c.startTimeSeconds!=="number"||(y.stopPropagation(),this.setScrollTop(0),_.BF(this).getPlayerPromise().then(function(Z){var G=c.startTimeSeconds;Z.seekTo(G);Z.wakeUpControls();G<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var y=_.FyM();"t"in y&&(y=_.NJn(y.t),this.player.seekTo(y,!0))},
updateTitleFromWatchNext:function(y){y=this.getPageContents(y);var W,c;(y=_.v$(y==null?void 0:(W=y[0])==null?void 0:(c=W.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.Z2(this.hostElement,"yt-update-title",y)},
updateTitle_:function(y){y=this.get("videoDetails.title",y)||"";_.Z2(this.hostElement,"yt-update-title",y)},
syncWithRemoteVideo_:function(y,W,c){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===c&&(c=Z.list,_.O("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),Z.video_id!==y||c!=W)){var G;_.O("kevlar_player_watch_endpoint_navigation")?G=_.C2H(_.$49(y,W)):G=this.buildWatchEndpoint_(y,W);_.Z2(this.hostElement,"yt-navigate",{endpoint:G,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(y,W,c){return _.eG(y,W,c)},
initDclkstatus_:function(){_.gMF()},
attachWatchPageSkeleton_:function(){var y=document.querySelector("#watch-page-skeleton");if(y){var W=y.querySelector("#primary-info"),c=y.querySelector("#secondary-info"),Z=y.querySelector("#related");W&&_.p(this.hostElement).querySelector("#info-skeleton").appendChild(W);c&&_.p(this.hostElement).querySelector("#meta-skeleton").appendChild(c);Z&&(_.p(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.to(y)}},
handlePlayerUpdated_:function(){_.BF(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(y,W){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof W!=="undefined"){var c=this.watchNextSkeletonEl_.children,Z=y&&y.indexSplices.length?y.indexSplices[0].index:0;y=Math.min(this.watchNextShownItems.length,c.length);W||(Z=0,y=c.length);for(W=Z;W<y;W++)c[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(y){_.O("external_fullscreen")||_.GG(this.hostElement,"yt-player-fullscreen",[y.fullscreen])},
onFullscreenChange_:function(y){this.fullscreen=y;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.BF(this);W.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.jG())});
this.updateFullBleedElementLocations();y&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(y,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(y){return y},
computeShouldShowMerchShelf:function(y,W){return W&&!!y},
computeResponseHasComments:function(y){var W,c,Z,G,D;return!!(y==null?0:(W=y.contents)==null?0:(c=W.twoColumnWatchNextResults)==null?0:(Z=c.results)==null?0:(G=Z.results)==null?0:(D=G.contents)==null?0:D.some(function(Y){var u;return(Y==null?void 0:(u=Y.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(y,W,c,Z){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Z?!1:!!y&&!!Object.keys(y).length&&!W},
identity:_.AH,onWindowResized_:function(y){this.windowSize_=y;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(y){var W=this;y&&y.type!=="dataloaded"&&y.type!=="dataupdated"||_.BF(this).getPlayerPromise().then(function(c){var Z=c.getPlayerState();Z!==5&&Z!==0&&(c=1/c.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==c&&(W.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(y){var W=this,c=_.O("kevlar_watch_while_v2")||_.O("web_watch_pip"),Z=function(){if(W.watchMetadata){var G,D;(D=(G=W.watchMetadata).resize)==null||D.call(G)}_.BF(W).getPlayerPromise().then(function(Y){if(_.O("kevlar_set_internal_player_size")){if(!c||!W.isMiniplayerActive()){var u=W.calculateCurrentPlayerSize_();Y.setInternalSize(u.width,u.height)}}else Y.setSize(NaN,NaN);_.O("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
y?Z():_.X5(_.KX,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(y){this.set("data.survey",y.detail)},
onYtShowSurveyCommand_:function(y){this.set("data.survey",_.g(y,_.QN$).survey)},
onDownloadedVideoDeleted:function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1){if(!W.active||(c=W.playerData)==null||!c.offlineState||W.videoId!==y)return G.return();(Z=W.player)==null||Z.stopVideo();_.GR().navigatingAwayFromWatchDeletedVideo=!0;_.jl(_.KoI,W.hostElement);return _.n(G,_.GR().navigationFinishPromise,2)}_.GR().navigatingAwayFromWatchDeletedVideo=!1;_.F2(G)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var y;this.theater?y=_.IT(.5625*this.windowSize_.width,480,this.windowSize_.height-185):y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==y&&(this.watchWhileScrollThreshold_=y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var y=_.p(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&y){var W=this.windowSize_.height>=624,c=this.active?this.getScrollTop():0;!y.active&&W&&c>=this.watchWhileScrollThreshold_?(y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):y.active&&(!W||c<this.watchWhileScrollThreshold_&&!_.jG())&&(y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var y=_.p(this.hostElement).querySelector("#secondary-inner");if(y){var W=_.p(this.hostElement).querySelector("#below"),c=_.p(this.hostElement).querySelector("#secondary"),Z=_.p(this.hostElement).querySelector("#comments");Z&&c&&W&&(this.defaultTwoColumnLayout?(y.appendChild(Z),c.appendChild(y)):(W.appendChild(Z),_.hi(W,y)))}}},
isTwoColumnsChanged_:function(y,W){if(y!==!0||W!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(y=_.p(this.hostElement).querySelector("#secondary-inner"))){W=_.p(this.hostElement).querySelector("#below");var c=_.p(this.hostElement).querySelector("#secondary"),Z=_.p(this.hostElement).querySelector("#comments");Z&&c&&W&&(this.isTwoColumns_?(y.appendChild(Z),c.appendChild(y)):(W.appendChild(Z),_.hi(W,y)))}}else{y=!_.O("live_chat_over_engagement_panels");W=_.p(this.hostElement).querySelector("#chat-container");
c=_.p(this.hostElement).querySelector("#panels");var G=_.p(this.hostElement).querySelector("#alerts");Z=_.p(this.hostElement).querySelector("#playlist");var D=_.p(this.hostElement).querySelector("#related"),Y=_.p(this.hostElement).querySelector("#donation-shelf"),u=_.p(this.hostElement).querySelector("#comments");this.isTwoColumns_?(G=_.p(this.hostElement).querySelector("#secondary-inner"),y&&G.appendChild(c),G.appendChild(Z),_.O("web_watch_theater_chat")||G.appendChild(W),y||G.appendChild(c),G.appendChild(Y),
G.appendChild(D)):(y&&_.NL(c,G),_.NL(Z,G),_.O("web_watch_theater_chat")||_.NL(W,G),y||_.NL(c,G),_.NL(Y,G),u&&_.NL(D,u));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.O("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.O("web_watch_theater_chat")){var y=_.p(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.O("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?_.O("web_watch_theater_chat_beside_player")?(W=_.p(this.hostElement).querySelector("#panels-full-bleed-container"),(y==null?void 0:y.parentElement)!==W&&W.append(y),this.panelsBesidePlayer=!0):
_.O("web_watch_theater_fixed_chat")&&(W=_.p(this.hostElement).querySelector("#columns"),(y==null?void 0:y.parentElement)!==W&&W.append(y),this.fixedPanels=!0):(_.O("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.O("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),W=_.p(this.hostElement).querySelector("#playlist"),y&&W?_.I_(y,W):_.Rs(new _.ul("Missing element when updating chat location",{"chatContainer defined":!!y,"playlist defined":!!W})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(y,W){return _.O("sw_metadata_vis_toggle_ks")?!0:!!y||!!W},
computeForceDarkPanelTheme:function(y){return _.O("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&y:!1},
safeUpdateStyles:function(y){try{_.wM(this.hostElement,y)}catch(W){_.Rs(W)}},
videoHeightToWidthRatioChanged_:function(y,W){W&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(y){this.videoHeightToWidthRatio_=1/y},
computeIsVerticalVideo_:function(y){return y>=1},
computeIsFourThreeToSixteenNineVideo_:function(y){return y<=.7501&&y>=.5624},
computeIsExtraWideVideo_:function(y){return y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.BF(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.BF(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.TJe(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(y){var W=_.cj(y)||0;_.Wj(y,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var y=_.cj("yt-fullerscreen-edu-button-click-count")||0,W=_.cj("yt-fullerscreen-edu-button-shown-count")||0,c=_.ey("external_fullscreen_button_shown_threshold"),Z=y>=_.ey("external_fullscreen_button_click_threshold")||W>=c;_.BF(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(y,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.U().resolve(_.EU).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var y=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.KX.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.KX.addLowPriorityJob(function(){y.fullHeightPanelPositionUpdateJobId=0;var W=_.p(y.hostElement).querySelector("#secondary"),c=_.p(y.hostElement).querySelector("#fixed-secondary");W=W.getBoundingClientRect();var Z=W.width;y.swatcherooSqueezeback&&
(Z+=_.BC);if(y.swatcherooSqueezeback){var G=_.p(y.hostElement).querySelector("#squeezeback-constraining-container");G.style.width=Z+"px";G.style.flex="0 0 "+Z+"px"}c.style.width=Z+"px";c.style.left=W.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var y=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.KX.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.KX.addLowPriorityJob(function(){y.panelMaxHeightUpdateJob_=0;var W;!y.isTwoColumns_||y.theater||y.fullscreen?W=460:W=y.calculateNormalPlayerSize_().height;var c=W+"px";_.O("live_chat_taller_height")&&!y.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.O("live_chat_medium_height")&&!y.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.O("live_chat_scaled_height")&&!y.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var y=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.O("web_watch_flexy_adjust_sidebar_width"))&&!_.O("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.KX.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.KX.addLowPriorityJob(function(){y.panelMaxHeightUpdateJob_=0;if(y.isTwoColumns_){var W=_.lmQ(y.windowSize_,y.calculateNormalPlayerSize_().width);W!==y.currentSidebarWidth&&(y.currentSidebarWidth=
W,y.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":W+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.mq(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(y){var W=_.p(this.hostElement).querySelector("#engagement-panel-scrim");y?W.addEventListener("tap",_.qO(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.qO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(y){if(this.hostElement.contains(y)&&!this.scrollToAnimation_.isAnimating()){var W=y.offsetTop-24;y=y.offsetTop+y.offsetHeight+24;var c=this.getPageScrollingElement(),Z=this.getScrollTop(),G=Z+c.clientHeight-56;if(W<Z+56)W-=56;else if(y>G)W=y-c.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var y=this.hostElement.querySelector("#comments");if(y&&!this.scrollToAnimation_.isAnimating()){y=y.offsetTop-56-24;if(_.O("kevlar_comment_teaser_scroll_to_midpoint")&&(y-=_.bG().height/3,y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtEngagementPanelVisibleChanged:function(y,W,c){this.active&&this.trackEngagementPanelVisibility&&!_.mFf.includes(c)&&(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(c),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.fl(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),W!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(y){return y?"":"watch-active-metadata"},
computeNewMetadataClass:function(y){return y?"watch-active-metadata":""},
computeFullBleedPlayer:function(y,W){return y||W},
computeDefaultLayout:function(y){return!y},
computeDefaultTwoColumnLayout:function(y,W){return!y&&W},
updatePanelsLocation:function(){if(_.O("web_watch_enable_fs_squeezeback_panels")){var y=_.p(this.hostElement).querySelector("#below"),W=_.p(this.hostElement).querySelector("#panels"),c=_.p(this.hostElement).querySelector("#panels-full-bleed-container"),Z=_.p(this.hostElement).querySelector("#secondary-inner");this.fullscreen?c.appendChild(W):this.isTwoColumns_?_.hi(Z,W):y.appendChild(W)}},
swatcherooUpdatePanelsLocation:function(y,W,c,Z,G,D){if(this.is==="ytd-watch-grid"){W=y&&!W;this.swatcherooSplitScroll&&(W?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));c=_.p(this.hostElement).querySelector("#panels");var Y=_.p(this.hostElement).querySelector("#playlist"),u=_.p(this.hostElement).querySelector("#fixed-secondary"),t=_.p(this.hostElement).querySelector("#fixed-below"),
b=_.p(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),r=_.p(this.hostElement).querySelector("#chat-container");D&&(y?u.appendChild(c):t.appendChild(c));G?y?u.appendChild(r):t.appendChild(r):_.I_(r,b);Z?y?u.appendChild(Y):t.appendChild(Y):_.I_(Y,b);this.swatcherooSplitScroll&&(y=_.p(this.hostElement).querySelector("#secondary"),Z=_.p(this.hostElement).querySelector("#columns"),G=_.p(this.hostElement).querySelector("#fixed-columns-secondary"),W?G.appendChild(y):
Z.appendChild(y))}},
computeMetadataSkinnyMode:function(y,W,c){return this.is!=="ytd-watch-grid"?!1:y?c:W},
computeWatchWhilePanelsActive:function(y,W){return y||W},
computeNoBorderOnChat:function(y){return _.O("web_watch_theater_chat_no_border")&&y},
computeLiveChatPresentAndExpanded:function(y,W){return y&&!W},
computePanelExpanded:function(y,W,c){return y||W||c},
computeSqueezeback:function(y,W){if(_.O("web_watch_enable_fs_squeezeback_panels"))return y&&W},
computeSwatcherooSqueezeback:function(y,W,c){return this.is!=="ytd-watch-grid"||_.O("ww_squeezeback_killswitch")?!1:y&&W&&c},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(y){_.BF(this).getPlayerPromise().then(function(W){var c;(c=W.changeMarkerVisibility)==null||c.call(W,_.g(y,_.d8).isVisible||!1,_.g(y,_.d8).entityKeys||[],_.g(y,_.d8).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(y){this.liveChatCollapsed=y.detail;_.Sv().dispatch(_.VNX(y.detail))},
onSetPlaylistCollapsed:function(y){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!y)},
provideRenderingData:function(y,W){switch(y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.O("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.O("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=W;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=
W;break;case "DONATION_SHELF":this.donation=W;break;case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
W}},
toggleCinematicsActive:function(y){this.cinematicsActive=y},
isMiniplayerActive:function(){return _.U().resolve(_.Cy).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var o09;_.fzH=function(y){return y.shorts.isShortsActive};
_.Di9=function(y){return y.findIndex(function(W){return o09.indexOf(W.tagName)>-1})>-1};
_.zWg=function(y){return _.jv({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:y}})};
_.YHH=function(){var y=_.U().resolve(_.Mt);_.IzO(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(y.isFullscreenEnabled()?_.yu(document.documentElement):_.GCF(document.documentElement))};
o09=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Lr=new Map;_.Lr.set(32,59972);_.Lr.set(27,50765);_.Lr.set(70,60102);_.Lr.set(76,60221);_.Lr.set(77,60222);_.Lr.set(74,60223);_.Lr.set(84,60224);_.Lr.set(38,61941);_.Lr.set(40,61942);_.Lr.set(73,62521);_.Lr.set(67,62522);_.Lr.set(80,63390);_.Lr.set(78,63397);_.Lr.set(75,59972);_.Lr.set(188,63385);_.Lr.set(190,63384);_.Lr.set(36,63387);
_.Lr.set(35,63386);_.Lr.set(37,63388);_.Lr.set(39,63389);_.Lr.set(79,63423);_.Lr.set(87,63424);_.Lr.set(107,63426);_.Lr.set(109,63425);_.Lr.set(65,63428);_.Lr.set(83,63430);_.Lr.set(68,63429);_.Lr.set(221,63431);_.Lr.set(219,63432);_.Lr.set(97,63439);_.Lr.set(98,63440);_.Lr.set(99,63441);_.Lr.set(100,63442);_.Lr.set(101,63443);_.Lr.set(102,63444);_.Lr.set(103,63445);_.Lr.set(104,63446);_.Lr.set(105,63447);_.v6=new Map;_.v6.set(80,63390);_.v6.set(78,63397);_.v6.set(188,63400);_.v6.set(190,63401);
_.v6.set(191,60765);_.v6.set(13,247917);_.d0=new Map;_.S$=new Map;
}catch(e){_._DumpException(e)}
try{
var Ovd,lmD,EM6,NJ9;_.FyZ=function(y){return y.ui.guideIsVisibleButNotPersistent};
_.U49=function(y){return y.ui.tabGesturesIsActive};
_.$4H=function(){var y=_.wj("service_worker_scope");try{return navigator.serviceWorker.getRegistration(y)}catch(W){return Promise.reject(W)}};
_.KyS=function(y){return!(!y||!y.pushManager)};
Ovd=function(){return _.$4H().then(_.KyS).catch(function(){return!1})};
_.gM9=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Ovd():Promise.resolve(!1)};
_.R2B=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
lmD=function(){var y,W,c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.n(Z,_.tI.getInstance(),2);case 2:y=Z.yieldResult;if(!y){W=void 0;Z.jumpTo(3);break}return _.n(Z,y.get("lmqf"),4);case 4:W=Z.yieldResult;case 3:switch((c=W)||(c="SD"),c){case "HD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
EM6=function(y){var W,c,Z;return _.m(function(G){if(G.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var D=window.localStorage["yt-player-av1-pref"];D=D==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":D==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else D="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(W=y===D)return G.jumpTo(2);Z=c=y;return _.n(G,lmD(),3)}G.nextAddress!=2&&(W=Z===G.yieldResult);return G.return(W)})};var ImH;var pRQ=_.XB.IronButtonState,Png=(0,_.u_)(HTMLElement);
_.mD({_template:function(){if(ImH!==void 0)return ImH;var y=document.createElement("template");_.E(y,'\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]]" 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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;NJ9===void 0&&(NJ9=document.createElement("template"));var Z=NJ9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return ImH=y},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[pRQ,_.tk,_.bO,_.Uu],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}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(y){var W=(0,_.my)(this);W.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:y});
W.shadowRoot.appendChild(y);return Png.prototype._attachDom.call(this,y)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var y=this.contentElement;y&&y.selectedItem&&this._setSelectedItem(y.selectedItem)},
get contentElement(){for(var y=_.UL(this.$.content).getDistributedNodes(),W=0,c=y.length;W<c;W++)if(y[W].nodeType===Node.ELEMENT_NODE)return y[W]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(y){this._setSelectedItem(y.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(y){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y)===this&&this.open()},
_selectedItemChanged:function(y){var W="";y?W=y.label||y.getAttribute("label")||y.textContent.trim():W="";this.value=W;this._setSelectedItemLabel(W)},
_computeMenuVerticalOffset:function(y,W){return W?W:y?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var y=this.opened?"true":"false",W=this.contentElement;W&&W.setAttribute("aria-expanded",y)}});_.RC=new _.w("navigateAction");var Jsd=new _.w("formRenderer");var VN3=function(){var y=_.cQ.apply(this,arguments)||this;y.showInput=!1;return y};
_.R(VN3,_.cQ);_.f=VN3.prototype;_.f.detached=function(){this.showInput&&window.removeEventListener("click",_.qO(this,this.closeOnOutsideClick_))};
_.f.stopPropagation_=function(y){this.showInput&&y.stopPropagation()};
_.f.closeOnOutsideClick_=function(y){this.closeOnOutsideClickCondition(y)&&(this.showInput=!1,window.removeEventListener("click",_.qO(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.f.closeOnOutsideClickCondition=function(){return!0};
_.f.closeOnOutsideClickHandler=function(){};
_.f.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.qO(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.f.openOnClickHandler=function(){};
_.f.showInputChanged=function(){};
_.f.setShowInput=function(y){this.showInput=y};
var lY=VN3;lY.prototype.setShowInput=lY.prototype.setShowInput;lY.prototype.showInputChanged=lY.prototype.showInputChanged;lY.prototype.openOnClickHandler=lY.prototype.openOnClickHandler;lY.prototype.openOnClick_=lY.prototype.openOnClick_;lY.prototype.closeOnOutsideClickHandler=lY.prototype.closeOnOutsideClickHandler;lY.prototype.closeOnOutsideClickCondition=lY.prototype.closeOnOutsideClickCondition;lY.prototype.closeOnOutsideClick_=lY.prototype.closeOnOutsideClick_;
lY.prototype.stopPropagation_=lY.prototype.stopPropagation_;_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],lY.prototype,"showInput",void 0);_.x([_.B("click"),_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],lY.prototype,"stopPropagation_",null);_.x([_.H("showInput"),_.e("design:type",Function),_.e("design:paramtypes",[Boolean]),_.e("design:returntype")],lY.prototype,"showInputChanged",null);lY=_.x([_.ZV()],lY);_.CnH=[lY.prototype];var QNH;var AsD;var h26=function(){return _.v.apply(this,arguments)||this};
_.R(h26,_.v);_.f=h26.prototype;_.f.computePreselectedOption=function(y,W){return W===this.itemSelected_?y:void 0};
_.f.dataChanged_=function(){var y=this;this.preselectedSubreason=this.itemSelected_=-1;var W;(W=this.data)!=null&&W.key&&_.Lv(this,function(){var c,Z=Number((c=y.data)==null?void 0:c.key);!Number.isNaN(Z)&&(y.itemSelected_=Z,c=(c=(y.data.items||[])[Z])&&c.optionSelectableItemRenderer&&c.optionSelectableItemRenderer.preselectedIndex)&&(y.preselectedSubreason=c)})};
_.f.isSubReasonHidden_=function(y,W){return y!=W};
_.f.onTopItemSelected_=function(y,W){for(var c=_.p(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Z=0,G=c.length;Z<G;Z++)c[Z].select(0);_.GG(this.hostElement,"yt-report-form-update",[W.item.value]);y.stopPropagation()};
_.f.onItemSelected_=function(y,W){_.GG(this.hostElement,"yt-report-form-update",[W.item.value]);y.stopPropagation()};
_.f.getItem_=function(y){return y.serviceItem?y.serviceItem:y.navigationItem?y.navigationItem:y.optionSelectableItemRenderer?y.optionSelectableItemRenderer:null};
_.f.computeText_=function(y){return(y=this.getItem_(y))?this.ytRendererBehavior.getSimpleString(y.text):null};
_.f.validate=function(){return this.itemSelected_!==-1};
_.f.computeAriaLabel_=function(y){var W=_.v$(y.text);(y=y.accessibility&&y.accessibility.accessibilityData&&y.accessibility.accessibilityData.label)&&(W+=". "+y);return W};
_.f.computeItemSelected_=function(y){return y};
_.f.preventSelection_=function(y){y.stopPropagation();this.tooltipTapped=!0};
_.f.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.f.updateItemSelectedFromBinding=function(y){this.itemSelected_=y.detail.value};
_.f.save=function(){var y;this.validate()&&(y=this.data)!=null&&y.items&&(y=this.data.items[this.itemSelected_],y!=null&&y.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(y.optionSelectableItemRenderer.submitEndpoint)||_.D2(this.hostElement,[y.optionSelectableItemRenderer.submitEndpoint])))};
var Ei=h26;Ei.prototype.onPaperRippleTransitionEnd_=Ei.prototype.onPaperRippleTransitionEnd_;Ei.prototype.dataChanged_=Ei.prototype.dataChanged_;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ei.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ei.prototype,"data",void 0);_.x([_.L({value:-1}),_.e("design:type",Number)],Ei.prototype,"itemSelected_",void 0);
_.x([_.L({computed:"computeItemSelected_(itemSelected_)"}),_.e("design:type",Number)],Ei.prototype,"value",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Ei.prototype,"restoreFocusOnClose",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],Ei.prototype,"tooltipTapped",void 0);_.x([_.L({value:-1}),_.e("design:type",Number)],Ei.prototype,"preselectedSubreason",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ei.prototype,"dataChanged_",null);_.x([_.B("transitionend"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ei.prototype,"onPaperRippleTransitionEnd_",null);Ei=_.x([_.n6({is:"yt-options-renderer",disableElementRegistration:!0})],Ei);
_.T(Ei,"yt-options-renderer",function(){if(AsD===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;QNH===void 0&&(QNH=document.createElement("template"));var Z=QNH;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);AsD=y}y=AsD;return y},{mode:2});var BJQ;var Hvg;var Ly9;var vM6;var d4Z;var SQ6;var NZ=function(){return _.v.apply(this,arguments)||this};
_.R(NZ,_.v);NZ.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
NZ.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
NZ.prototype.onTap=function(y){if(this.hostElement.classList.contains("selected")||_.oP(this.hostElement,"yt-share-panel-can-select-contact-action"))y&&y.detail&&(y.detail.x||y.detail.y)&&_.p(this.hostElement).querySelector("#target").blur(),(y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:y?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.GG(this.hostElement,"yt-share-panel-select-contact-action",[y])};
var IC=NZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],IC.prototype,"ytRendererBehavior",void 0);_.x([_.L({observer:"onDataChanged"}),_.e("design:type",Object)],IC.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.e("design:type",String)],IC.prototype,"componentTitle",void 0);_.x([_.jj("#thumbnail"),_.e("design:type",Object)],IC.prototype,"thumbnail",void 0);
IC=_.x([_.n6({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],IC);
_.T(IC,"yt-enrolled-contact-renderer",function(){if(SQ6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;d4Z===void 0&&(d4Z=document.createElement("template"));var Z=d4Z;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);SQ6=y}y=SQ6;return y},{mode:2});var TJf;var amS;var pK=function(){return _.v.apply(this,arguments)||this};
_.R(pK,_.v);pK.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
pK.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
pK.prototype.onTap=function(y){if(this.hostElement.classList.contains("selected")||_.oP(this.hostElement,"yt-share-panel-can-select-contact-action"))y&&y.detail&&(y.detail.x||y.detail.y)&&_.p(this.hostElement).querySelector("#target").blur(),(y=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),y={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:y?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.GG(this.hostElement,"yt-share-panel-select-contact-action",[y])};
var Po=pK;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.x([_.L({observer:"onDataChanged"}),_.e("design:type",Object)],Po.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.e("design:type",String)],Po.prototype,"componentTitle",void 0);_.x([_.jj("#thumbnail"),_.e("design:type",Object)],Po.prototype,"thumbnail",void 0);
Po=_.x([_.n6({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Po);
_.T(Po,"yt-suggested-contact-renderer",function(){if(amS===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;TJf===void 0&&(TJf=document.createElement("template"));var Z=TJf;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);amS=y}y=amS;return y},{mode:2});var JN=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-share-panel-reset-action":"onReset"};return y};
_.R(JN,_.v);JN.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"}}}}}};
JN.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.GG(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
JN.prototype.onReset=function(){for(var y=_.p(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),W=y.length-1;W>=0;W--)y[W].classList.toggle("selected")};
var VD=JN;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],VD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({observer:"onDataChanged"}),_.e("design:type",Object)],VD.prototype,"data",void 0);
VD=_.x([_.n6({is:"yt-contact-section-renderer",disableElementRegistration:!0})],VD);
_.T(VD,"yt-contact-section-renderer",function(){if(vM6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Ly9===void 0&&(Ly9=document.createElement("template"));var Z=Ly9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);vM6=y}y=vM6;return y},{mode:2});var x4d=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return y};
_.R(x4d,_.v);_.f=x4d.prototype;_.f.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"}}}};
_.f.onYtRefreshFormCommand=function(y){var W;(y=_.g((W=_.g(y,_.YXE))==null?void 0:W.formRenderer,Jsd))&&this.set("data",y)};
_.f.reset=function(){var y=_.p(this.hostElement).querySelector("#fields").children;y=_.z(y);for(var W=y.next();!W.done;W=y.next())W=W.value,W.reset&&W.reset()};
_.f.getForm=function(){var y={},W=_.p(this.hostElement).querySelector("#fields").children;W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;if(!c.validate())return null;y[c.data.key]=c.value}return y};
_.f.submitFormFields=function(){if(this.fields)for(var y=_.z(this.fields),W=y.next();!W.done;W=y.next())W=W.value,W.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?W.save():W.nodeName==="YT-OPTIONS-RENDERER"&&W.save()};
var CK=x4d;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],CK.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],CK.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],CK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],CK.prototype,"data",void 0);_.x([_.y0("#fields > *"),_.e("design:type",Array)],CK.prototype,"fields",void 0);
CK=_.x([_.n6({is:"yt-form-renderer",disableElementRegistration:!0})],CK);
_.T(CK,"yt-form-renderer",function(){if(Hvg===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;BJQ===void 0&&(BJQ=document.createElement("template"));var Z=BJQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Hvg=y}y=Hvg;return y},{mode:2});var ivg;var MNH=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return y};
_.R(MNH,_.v);MNH.prototype.onCheckboxChange=function(y){this.data&&(y=(this.checked=_.hq(y).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}})};
MNH.prototype.handleUpdateCheckboxCommand=function(y){(y=_.g(y,_.O28))&&this.data&&this.data.id===y.id&&(this.set("data.disabled",y.disabled),this.set("data.title",y.title))};
var QD=MNH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],QD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],QD.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],QD.prototype,"checked",void 0);QD=_.x([_.d({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],QD);
_.T(QD,"ytd-settings-checkbox-renderer",function(){if(ivg!==void 0)return ivg;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ivg=y},{mode:1});var e29;var AN=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return y};
_.R(AN,_.v);AN.prototype.dataChanged=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return y.radio.removeAttribute("checked"),!y.data||!y.data.id||y.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.R2B()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(W=y.data&&y.data.id)?_.n(c,EM6(y.data.id),4):c.jumpTo(3):(y.set("data.hidden",!0),c.jumpTo(0));c.nextAddress!=3&&(W=c.yieldResult);W&&_.GG(y.hostElement,"yt-select-settings-radio-option",[y.data.id]);_.F2(c)})};
AN.prototype.onButtonChanged=function(y){_.hq(y).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.GG(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
AN.prototype.onSelectOption=function(y){this.data&&this.data.id&&(this.data.id===y?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
var hN=AN;hN.prototype.dataChanged=hN.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],hN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.jj("#radio"),_.e("design:type",Object)],hN.prototype,"radio",void 0);_.x([_.L(),_.e("design:type",Object)],hN.prototype,"data",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],hN.prototype,"dataChanged",null);hN=_.x([_.d({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],hN);
_.T(hN,"ytd-settings-radio-option-renderer",function(){if(e29!==void 0)return e29;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return e29=y},{mode:1});var wR6;var Bo=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return y};
_.R(Bo,_.v);
Bo.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"}}}};
Bo.prototype.handleUpdateTextCommand=function(y){(y=_.g(y,_.gbV))&&this.data&&this.data.id===y.id&&this.set("data",y)};
Bo.prototype.handleUpdateConnectedAppRendererCommand=function(y){if(_.g(y,_.EbW)&&this.data){var W,c;if(y=(W=_.g(y,_.EbW))==null?void 0:(c=W.newConnectedAppRenderer)==null?void 0:c.connectedAppRenderer)this.data=y}};
Bo.prototype.computeConnectedAppStyle=function(y){return y.style?y.style.toLowerCase().replace(/_/g,"-"):""};
var Ho=Bo;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ho.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ho.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.e("design:type",String)],Ho.prototype,"connectedAppStyle",void 0);Ho=_.x([_.d({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],Ho);
_.T(Ho,"ytd-connected-app-renderer",function(){if(wR6!==void 0)return wR6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return wR6=y},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ER("iuT5Oc");

_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("L3n37");
var zhn=_.se(115994),YL7=_.se(115993),mRf=function(y,W,c){var Z=this;var G=c.dragDownAction;this.layer=0;this.JSC$20294_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$20294_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var D=_.Zz();_.kI(D,zhn,this.layer);_.kI(D,YL7,this.layer);this.dragDownAction=function(){G();_.lv(D,{visualElement:Z.fullscreen?zhn:YL7})};
this.gesture=new _.Kh(y,W,this.JSC$20294_watchConfig,"pandown");this.attach()};
mRf.prototype.attach=function(){this.gesture.attach()};
mRf.prototype.detach=function(){this.gesture.detach()};
mRf.prototype.update=function(y){this.fullscreen=y;this.gesture.config=y?this.JSC$20294_watchFullScreenConfig:this.JSC$20294_watchConfig};var sif={},usf=["PAyouchat"];
sif.YtdLearningJourneyWatchBehavior=[_.k.YtRendererBehavior,_.VW.YtPlayerListenerBehavior,_.Bj.YtRendererstamperBehavior,_.Hj.YtActionHandlerBehavior,_.Ch.YtPageBehavior,_.wU.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 _.I8("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.O("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 _.I8("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 _.O("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.O("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 _.ey("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ey("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!_.O("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.O("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 _.O("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.O("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("web_watch_rounded_player_large")||_.O("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 _.O("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.O("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.O("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("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 _.O("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.O("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 _.O("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 y={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:_.rc(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.rc(["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"||_.O("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(y.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},y.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.O("web_watch_inject_placeholder_panels")?y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.O("kevlar_use_engagement_panel_management_component")||(y["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(y.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},y.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return y},
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 y=this;this.watchController=void 0;this.pageDisposeJobs=[function(){y.showMetadataPlaceholder_()},
function(){_.O("web_watch_dont_clear_comments")||y.clearComments_()},
function(){y.clearPlayerAds_()},
function(){y.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;_.O("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.O("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.AsQ(function(){return _.BF(y)},this.hostElement);
this.pageDisposeJobs.push(function(){y.youThereManager_.reset()});
_.O("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){y.resetFullerscreenEduButtonForNewPlayback_()}));
_.O("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.je;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;_.O("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.O("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));_.O("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.qO(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(y){y&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:y}),y.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(y){_.O("kevlar_watch_flexy_theater_manager")&&(this.theater=y,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.O("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(y){!_.O("kevlar_watch_while_v2")&&!_.O("web_watch_pip")||y||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(y){this.active!==void 0&&(this.fullscreen=y,_.O("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(y){this.active!==void 0&&(_.Z2(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.O("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(y>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(y){this.initCsi_();this.updatePageData_(y)},
updatePageData_:function(y){var W=this;if(y)if(this.data===y){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||_.H1(c,this.data)}else this.data=y;this.playlist&&_.IP({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.PA("nw");this.loading=!1;_.Xc(_.KX,function(){W.initDclkstatus_();var Z,G=((Z=W.player)==null?void 0:Z.getVideoData().cpn)||"";_.U4F(function(D,Y){_.c3Z(D,Y,G)})})},
onPageLoadWithSameData_:function(){_.O("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 y=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!y);this.set("loadingData.playlistLoading",y&&y!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),y=this.watchNextSkeletonEl_.firstElementChild;y;)y.classList.remove("hidden"),y=y.nextElementSibling;if(_.O("kevlar_watch_frame0_loading_state")){var W,c,Z;y=(W=this.loadingData)==null?void 0:(c=W.endpoint)==null?void 0:(Z=c.watchEndpoint)==null?void 0:Z.videoId;var G;y&&(G="https://i.ytimg.com/vi/"+y+"/frame0.jpg");_.p(this.hostElement).querySelector("#player").style.backgroundImage=G?"url("+G+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var y=_.p(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&y&&(y.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var W,c;(c=(W=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(W);var Z,G;(G=(Z=this.watchMetadata).resize)==null||G.call(Z)}_.O("kevlar_watch_frame0_loading_state")&&(_.p(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(y){var W=_.p(this.hostElement).querySelector(y);W?_.WA(W,!1):_.Rs(new _.ul("Overscroll monitor not found for component: ",y))},
removeSplitScrollMouseTrap:function(y){var W=_.p(this.hostElement).querySelector(y);W?_.cA(W):_.Rs(new _.ul("Disposal component for  overscroll monitoring not found: ",y))},
onLoadingChanged_:function(y){y?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(y){var W=this;y?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.KX.addLowPriorityJob(function(){W.onWindowResized_(_.Y$(!0))})},
updateTheaterModeState_:function(y){if(!_.O("kevlar_watch_flexy_theater_manager")){y=y||this.fullWindowMode_;if(this.theater!==void 0||y)this.theater=y;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();y&&_.OQ$()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var y=this.theater;_.O("external_fullscreen")&&this.fullscreen&&(y=!0);y=y?_.p(this.hostElement).querySelector("#player-full-bleed-container"):_.p(this.hostElement).querySelector("#player-container-inner");var W=this.getPlayerContainer(),c=_.O("kevlar_watch_while_v2")||_.O("web_watch_pip");W.parentElement!==y&&(c&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.BF(this).appendTo(y,W),y.appendChild(_.p(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var y=this;return _.m(function(W){if(W.nextAddress==1)return _.n(W,_.U().resolve(_.Cy).deactivate(),2);y.updatePlayerLocation();_.F2(W)})},
updateCinematicsLocation:function(){var y=this.getElement("CINEMATICS");if(y){var W=this.getCinematicsLocationContainer();y.parentElement!==W&&W.appendChild(y);var c;(c=this.watchController)==null||_.XRf(c)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.p(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.p(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(y,W){var c=document.documentElement.hasAttribute("dark"),Z=c&&_.O("web_cinematic_theater_mode"),G=c&&_.O("web_cinematic_fullscreen");c=!c&&this.cinematicLightTheme;return y&&Z||W&&G||(W||y)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var y=this,W;(W=this.watchController)==null||_.H1(W,this.data);_.O("kevlar_watch_flexy_comments_manager")||this.initComments_();_.O("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.U().resolve(_.EU).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,_.O("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.KX.addLowPriorityJob(function(){_.fl(y.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.O("web_watch_start_chat_in_theater_mode")){var c,Z,G;if((c=this.data)==null?0:(Z=c.contents)==null?0:(G=Z.twoColumnWatchNextResults)==null?0:G.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var D,Y;((D=this.data)==null?0:(Y=D.contents)==null?0:Y.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(y){var W;(W=this.watchController)==null||_.B1(W,this.playerData);y&&y.playabilityStatus&&(W=this.isVideoPlayable_(y.playabilityStatus,this.getPlayerOverlays_(this.data)),y=this.isLiveStreamOffline_(y.playabilityStatus),W&&!y||_.Lv(this,function(){_.PA("pbu")}));
this.setPlayerAds_();_.fl(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(y){_.Sv().dispatch(_.l3X(this.active));y?this.activate_():this.deactivate_()},
attached:function(){var y=this;this.watchController=new _.h1(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.B1(this.watchController,this.playerData);this.data&&_.H1(this.watchController,this.data);_.O("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var W=_.BF(this);_.O("kevlar_disable_prepare_player")||W.preparePlayer();
_.O("kevlar_watch_flexy_playlist_manager")||_.U().resolve(_.EU).setPlayer(W);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();W={"--ytd-watch-flexy-scrollbar-width":_.tN()+"px"};this.is==="ytd-watch-grid"&&(W["--ytd-watch-flexy-sidebar-width"]=_.LI+"px",W["--ytd-watch-grid-horizontal-page-margins"]=_.BC+"px",W["--ytd-watch-grid-columns-top-margins"]=_.XpM+"px",W["--ytd-watch-grid-min-player-height-medium"]="360px");!_.ey("kv_pl_mx_sz_ks")&&_.ey("kevlar_watch_max_player_width")&&
(W["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Kpn+"px");_.ey("kevlar_watch_flexy_metadata_height")&&(W["--ytd-watch-flexy-space-below-player"]=_.Oce+"px");this.safeUpdateStyles(W);_.O("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new mRf(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return y.onPlayerTouchPanDown_()}}));
_.O("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.p(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var y=_.tN(),W=_.HC+y,c=W;this.fixedPanels&&(W+=_.LI);var Z=657+y;y=1327+y;_.p(this.hostElement).querySelector("#two-column-query").query="(min-width: "+W+"px)";_.p(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(W+"px) and (max-width: ")+(y+"px)");_.p(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(y+"px)");_.p(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)"},
calculateCurrentPlayerSize_:function(){var y=_.p(this.hostElement).querySelector("#miniplayer-bar").firstChild;return y&&y.active||this.theater||_.O("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.nP(NaN,NaN):_.EM0(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.EM0(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Mg(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var y=this;this.onWindowResized_(_.Y$());_.O("browse_skeleton_removal_on_watch_killswitch")||_.I8("IS_SHELL_LOAD")&&_.K5D();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var W=_.BF(this);W.addEventListener("yt-player-updated",_.qO(this,this.onPlayerUpdated_));W.getPlayerPromise().then(function(c){y.playerApiReady_(c)});
_.O("kevlar_watch_flexy_playlist_manager")||(W=_.U().resolve(_.EU),_.O("kevlar_watch_observe_playlist_navigations_killswitch")&&W.addEventListener("yt-navigate",_.qO(this,this.onYtNavigate_)),W.setPlaylistComponent(_.p(this.hostElement).querySelector("#playlist")),W.addEventListener("yt-playlist-data-updated",_.qO(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.KX.addLowPriorityJob(function(){_.Z2(y.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.BF(this).removeEventListener("yt-player-updated",_.qO(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.O("kevlar_watch_flexy_playlist_manager")){var y=_.U().resolve(_.EU);_.O("kevlar_watch_observe_playlist_navigations_killswitch")&&y.removeEventListener("yt-navigate",_.qO(this,this.onYtNavigate_));
y.cancelVideoSkip();y.removeEventListener("yt-playlist-data-updated",_.qO(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Z2(this.hostElement,"yt-autonav-pause-player",!1);y=_.jG();_.O("kevlar_exit_fullscreen_leaving_watch")&&y&&_.yu(y)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(y){this.player&&this.player.updateVideoData({rvs:y.rvs})},
getPageContents:function(y){return y&&y.contents&&y.contents.twoColumnWatchNextResults&&y.contents.twoColumnWatchNextResults.results&&y.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(y){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",y)},
onRetrieveLocation_:function(y,W){W.hasComments?W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):W.locationRetrieved("/related_ajax",void 0);y.stopPropagation()},
onSubscriptionChanged_:function(y,W){this.player&&(W?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.J8d("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.p(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.p(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(y){this.player=y;this.setPlayerState(y.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.O("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.O("kevlar_unified_player")||_.O("kevlar_player_new_bootstrap_adoption"))&&_.Ss()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(y,W){W=W===void 0?!0:W;_.jG()&&_.O("external_fullscreen")&&_.yu(document.documentElement);this.theaterRequested_=y;W&&_.zj("wide",y?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.O("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.GG(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Z2(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(y){_.NF(y,typeof this.player),this.player&&_.NF(y,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var y;((y=this.player)==null?0:y.isFullscreen())?this.player.toggleFullscreen():_.GG(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(y,W){return this.loading?W:!!Object.keys(y).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(y){if(y){y=_.z(y);for(var W=y.next();!W.done;W=y.next())W=W.value,W.youThereRenderer&&_.Hv3(this.youThereManager_,W.youThereRenderer)}},
setPlaylistData_:function(y){return y||{}},
userEngagementConfigDataChanged_:function(y){if(y)if(y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var W=this.youThereManager_;_.MV()<y.lowEngagementThresholdMs||_.SQ0(W,!0)}else y.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.GG(this.hostElement,"yt-autonav-pause-user-engagement",[y])},
isPlayerUnavailable_:function(y,W,c){return!!y&&!this.isVideoPlayable_(y,c)&&!W},
getPlayerOverlays_:function(y){return(y==null?void 0:y.playerOverlays)||null},
isVideoPlayable_:function(y,W){if(!y)return!1;var c=y.status==="OK"||y.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",y)||this.get("errorScreen.ypcTrailerRenderer",y);y=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",y);var G;W=W==null?void 0:(G=W.playerOverlayRenderer)==null?void 0:G.gatedActionsOverlayRenderer;return!!c||!!Z||!!y||!!W},
hasWatchNextResponseErrorRenderer:function(y){var W=this.getPageContents(y),c,Z,G,D,Y;return!(y==null?0:(c=y.contents)==null?0:(Z=c.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((G=W[0])==null?0:(D=G.itemSectionRenderer)==null?0:(Y=D.contents[0])==null?0:Y.backgroundPromoRenderer)},
isLiveStreamOffline_:function(y){return y?y.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(y,W,c){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W),G=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];G=_.O("web_no_skip_video_on_verification_checks")?(y==null?void 0:y.status)&&G.includes(y.status):y&&y.status==="AGE_CHECK_REQUIRED";var D=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",y);D==void 0&&(D=!0);!c||this.isVideoPlayable_(y,this.getPlayerOverlays_(W))||
Z||G||!D||_.U().resolve(_.EU).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Im9()},
onPlayerFeedbackStartRequest_:function(y){_.GG(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:y}])},
onPlayerFeedbackArticleRequest_:function(y){_.GG(this.hostElement,"yt-help-dialog-requested",[y])},
onPlayerYpcContentRequest_:function(){var y,W,c,Z,G,D,Y,u,t=((y=this.data)==null?NaN:(W=y.contents)==null?NaN:(c=W.twoColumnWatchNextResults)==null?NaN:(Z=c.secondaryResults)==null?NaN:(G=Z.secondaryResults)==null?NaN:(D=G.offerModule)==null?NaN:(Y=D.tvfilmOfferModuleRenderer)==null?NaN:(u=Y.actionButtons)==null?NaN:u.length)-1;y=[".offerButton.buttonRenderer.",".actionButtons."+(t>=0?t:0)+".buttonRenderer."];W=_.z(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=W.next();!c.done;c=W.next())for(c=c.value,Z=_.z(y),G=Z.next();!G.done;G=Z.next())if(G="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+G.value,G=this.get(G+"navigationEndpoint",this.data)||this.get(G+"serviceEndpoint",this.data)||this.get(G+"command",this.data)){_.jl(G,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(y){_.Z2(this.hostElement,"yt-autonav-pause-player",y)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(y){y()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(y){switch(y){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Z2(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(y)},
setPlayerState:function(y){_.Sv().dispatch(_.ZeZ(y))},
onPlayerSubscribe_:function(y){_.GG(this.hostElement,"yt-player-subscribe",[y])},
onPlayerUnsubscribe_:function(y){_.GG(this.hostElement,"yt-player-unsubscribe",[y])},
onPlayerAdYtShowToast_:function(y){_.GG(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:y.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(y){if(y)return y},
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(y){return!_.O("web_watch_move_summary_to_sd")&&!!y},
computeWatchMetadataRefresh:function(){return _.O("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var y,W,c,Z;this.watchNextSecondaryResults=(y=this.data)==null?void 0:(W=y.contents)==null?void 0:(c=W.twoColumnWatchNextResults)==null?void 0:(Z=c.secondaryResults)==null?void 0:Z.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.O("swatcheroo_pbs_load_grid")&&!_.O("swatcheroo_provide_all_data_on_scheduled_job")){_.KX.cancelJob(this.setRichGridJobId_);var y,W,c,Z,G,D,Y;this.setRichGridRendererData((y=this.data)==null?void 0:(W=y.contents)==null?void 0:(c=W.twoColumnWatchNextResults)==null?void 0:(Z=c.secondaryResults)==null?void 0:(G=Z.secondaryResults)==null?void 0:(D=G.results)==null?void 0:(Y=D[0])==null?
void 0:Y.richGridRenderer)}},
setRichGridRendererData:function(y){this.richGridRendererData=y},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var y,W=(y=this.data)==null?void 0:y.engagementPanels;if(W==null?0:W.length){y=null;W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0;if(((Z=c.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){y=c;break}}var G,D,Y;y=(G=y)==null?void 0:(D=G.engagementPanelSectionListRenderer)==null?void 0:(Y=D.content)==null?void 0:Y.structuredDescriptionContentRenderer;if(y==null?0:y.items){G=
[];D=_.z(y.items);for(Y=D.next();!Y.done;Y=D.next()){Y=Y.value;if(!_.O("sd_horizontal_list_show_nav_killswitch")){var u=Z=c=W=y=void 0,t=void 0,b=(y=Y.horizontalCardListRenderer)==null?void 0:(W=y.header)==null?void 0:(c=W.richListHeaderRenderer)==null?void 0:(Z=c.navigationButton)==null?void 0:(u=Z.buttonRenderer)==null?void 0:(t=u.command)==null?void 0:t.commandExecutorCommand;b&&b.commands&&(b.commands=b.commands.filter(function(r){return!_.g(r,_.VQX)}))}Y.expandableVideoDescriptionBodyRenderer||
Y.videoDescriptionHeaderRenderer||G.push(Y)}return{items:G}}}},
constructWarning_:function(y){return{text:_.Lq(y),type:"WARNING"}},
isPlaShelfEnabled_:function(y){if((this.get("adPlacements",y)||[]).length)return!0;y=this.get("playerAds",y)||[];return!(!y.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",y[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var y=this;_.Z2(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var W=this.getScrollTop()>0;this.gestures_&&(W?this.gestures_.detach():this.gestures_.attach());W!==this.showFullerscreenEdu_&&_.O("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=W,_.BF(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonVisibility(y.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Z2(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var y=this;this.commentsReady=!1;_.KX.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Xc(_.KX,function(){y.setComments_()},1E3)},
setComments_:function(){if(!_.O("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.PA("cmi");_.KX.cancelJob(this.setCommentsJobId_);var y=this.getPageContents(this.data);if(y&&y.length){y=_.z(y);for(var W=y.next();!W.done;W=y.next())if(W=W.value,this.get("itemSectionRenderer.sectionIdentifier",W)==="comment-item-section"){this.comments=W.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Z2(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.O("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.O("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.PA("cmc")},
doRemoveComments_:function(){this.comments={};_.O("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.KX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.KX.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(y,W){var c=_.g(W.endpoint,_.Sb);c&&(!(W=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==W.videoId||c.playlistId&&c.playlistId!==W.playlistId||_.O("kevlar_watch_timestamp_seek_playlist_index_comparison")&&c.index!==void 0&&c.index!==W.index||typeof c.startTimeSeconds!=="number"||(y.stopPropagation(),this.setScrollTop(0),_.BF(this).getPlayerPromise().then(function(Z){var G=c.startTimeSeconds;Z.seekTo(G);Z.wakeUpControls();G<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var y=_.FyM();"t"in y&&(y=_.NJn(y.t),this.player.seekTo(y,!0))},
updateTitleFromWatchNext:function(y){y=this.getPageContents(y);var W,c;(y=_.v$(y==null?void 0:(W=y[0])==null?void 0:(c=W.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.Z2(this.hostElement,"yt-update-title",y)},
updateTitle_:function(y){y=this.get("videoDetails.title",y)||"";_.Z2(this.hostElement,"yt-update-title",y)},
syncWithRemoteVideo_:function(y,W,c){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===c&&(c=Z.list,_.O("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),Z.video_id!==y||c!=W)){var G;_.O("kevlar_player_watch_endpoint_navigation")?G=_.C2H(_.$49(y,W)):G=this.buildWatchEndpoint_(y,W);_.Z2(this.hostElement,"yt-navigate",{endpoint:G,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(y,W,c){return _.eG(y,W,c)},
initDclkstatus_:function(){_.gMF()},
attachWatchPageSkeleton_:function(){var y=document.querySelector("#watch-page-skeleton");if(y){var W=y.querySelector("#primary-info"),c=y.querySelector("#secondary-info"),Z=y.querySelector("#related");W&&_.p(this.hostElement).querySelector("#info-skeleton").appendChild(W);c&&_.p(this.hostElement).querySelector("#meta-skeleton").appendChild(c);Z&&(_.p(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.to(y)}},
handlePlayerUpdated_:function(){_.BF(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(y,W){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof W!=="undefined"){var c=this.watchNextSkeletonEl_.children,Z=y&&y.indexSplices.length?y.indexSplices[0].index:0;y=Math.min(this.watchNextShownItems.length,c.length);W||(Z=0,y=c.length);for(W=Z;W<y;W++)c[W].classList.add("hidden")}},
onPlayerFullscreenChange_:function(y){_.O("external_fullscreen")||_.GG(this.hostElement,"yt-player-fullscreen",[y.fullscreen])},
onFullscreenChange_:function(y){this.fullscreen=y;this.gestures_&&this.gestures_.update(this.fullscreen);var W=_.BF(this);W.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.jG())});
this.updateFullBleedElementLocations();y&&(W.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(y,W){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!W},
computeIsDonationShelfCollapsed_:function(y){return y},
computeShouldShowMerchShelf:function(y,W){return W&&!!y},
computeResponseHasComments:function(y){var W,c,Z,G,D;return!!(y==null?0:(W=y.contents)==null?0:(c=W.twoColumnWatchNextResults)==null?0:(Z=c.results)==null?0:(G=Z.results)==null?0:(D=G.contents)==null?0:D.some(function(Y){var u;return(Y==null?void 0:(u=Y.itemSectionRenderer)==null?void 0:u.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(y,W,c,Z){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Z?!1:!!y&&!!Object.keys(y).length&&!W},
identity:_.AH,onWindowResized_:function(y){this.windowSize_=y;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.O("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.O("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(y){var W=this;y&&y.type!=="dataloaded"&&y.type!=="dataupdated"||_.BF(this).getPlayerPromise().then(function(c){var Z=c.getPlayerState();Z!==5&&Z!==0&&(c=1/c.getVideoAspectRatio(),W.videoHeightToWidthRatio_!==c&&(W.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(y){var W=this,c=_.O("kevlar_watch_while_v2")||_.O("web_watch_pip"),Z=function(){if(W.watchMetadata){var G,D;(D=(G=W.watchMetadata).resize)==null||D.call(G)}_.BF(W).getPlayerPromise().then(function(Y){if(_.O("kevlar_set_internal_player_size")){if(!c||!W.isMiniplayerActive()){var u=W.calculateCurrentPlayerSize_();Y.setInternalSize(u.width,u.height)}}else Y.setSize(NaN,NaN);_.O("kevlar_watch_while")&&W.updateWatchWhileScrollThreshold_()})};
y?Z():_.X5(_.KX,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(y){this.set("data.survey",y.detail)},
onYtShowSurveyCommand_:function(y){this.set("data.survey",_.g(y,_.QN$).survey)},
onDownloadedVideoDeleted:function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1){if(!W.active||(c=W.playerData)==null||!c.offlineState||W.videoId!==y)return G.return();(Z=W.player)==null||Z.stopVideo();_.GR().navigatingAwayFromWatchDeletedVideo=!0;_.jl(_.KoI,W.hostElement);return _.n(G,_.GR().navigationFinishPromise,2)}_.GR().navigatingAwayFromWatchDeletedVideo=!1;_.F2(G)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var y;this.theater?y=_.IT(.5625*this.windowSize_.width,480,this.windowSize_.height-185):y=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==y&&(this.watchWhileScrollThreshold_=y,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var y=_.p(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&y){var W=this.windowSize_.height>=624,c=this.active?this.getScrollTop():0;!y.active&&W&&c>=this.watchWhileScrollThreshold_?(y.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):y.active&&(!W||c<this.watchWhileScrollThreshold_&&!_.jG())&&(y.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var y=_.p(this.hostElement).querySelector("#secondary-inner");if(y){var W=_.p(this.hostElement).querySelector("#below"),c=_.p(this.hostElement).querySelector("#secondary"),Z=_.p(this.hostElement).querySelector("#comments");Z&&c&&W&&(this.defaultTwoColumnLayout?(y.appendChild(Z),c.appendChild(y)):(W.appendChild(Z),_.hi(W,y)))}}},
isTwoColumnsChanged_:function(y,W){if(y!==!0||W!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(y=_.p(this.hostElement).querySelector("#secondary-inner"))){W=_.p(this.hostElement).querySelector("#below");var c=_.p(this.hostElement).querySelector("#secondary"),Z=_.p(this.hostElement).querySelector("#comments");Z&&c&&W&&(this.isTwoColumns_?(y.appendChild(Z),c.appendChild(y)):(W.appendChild(Z),_.hi(W,y)))}}else{y=!_.O("live_chat_over_engagement_panels");W=_.p(this.hostElement).querySelector("#chat-container");
c=_.p(this.hostElement).querySelector("#plj-sidebar");Z=_.p(this.hostElement).querySelector("#panels");var G=_.p(this.hostElement).querySelector("#plj-panels"),D=_.p(this.hostElement).querySelector("#plj-playlist"),Y=_.p(this.hostElement).querySelector("#alerts"),u=_.p(this.hostElement).querySelector("#playlist"),t=_.p(this.hostElement).querySelector("#related"),b=_.p(this.hostElement).querySelector("#donation-shelf"),r=_.p(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Y=_.p(this.hostElement).querySelector("#secondary-inner"),
Y.appendChild(c),c.appendChild(D),D.appendChild(u),c.appendChild(G),y&&Y.appendChild(Z),_.O("web_watch_theater_chat")||Y.appendChild(W),y||Y.appendChild(Z),Y.appendChild(b),Y.appendChild(t)):(y&&_.NL(Z,Y),_.NL(u,Y),_.O("web_watch_theater_chat")||_.NL(W,Y),y||_.NL(Z,Y),_.NL(b,Y),r&&_.NL(t,r));_.O("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.O("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.O("web_watch_theater_chat")){var y=_.p(this.hostElement).querySelector("#chat-container"),W=this.theater&&!this.fullscreen||_.O("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&W?_.O("web_watch_theater_chat_beside_player")?(W=_.p(this.hostElement).querySelector("#panels-full-bleed-container"),(y==null?void 0:y.parentElement)!==W&&W.append(y),this.panelsBesidePlayer=!0):
_.O("web_watch_theater_fixed_chat")&&(W=_.p(this.hostElement).querySelector("#columns"),(y==null?void 0:y.parentElement)!==W&&W.append(y),this.fixedPanels=!0):(_.O("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.O("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),W=_.p(this.hostElement).querySelector("#playlist"),y&&W?_.I_(y,W):_.Rs(new _.ul("Missing element when updating chat location",{"chatContainer defined":!!y,"playlist defined":!!W})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(y,W){return _.O("sw_metadata_vis_toggle_ks")?!0:!!y||!!W},
computeForceDarkPanelTheme:function(y){return _.O("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&y:!1},
safeUpdateStyles:function(y){try{_.wM(this.hostElement,y)}catch(W){_.Rs(W)}},
videoHeightToWidthRatioChanged_:function(y,W){W&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.O("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(y){this.videoHeightToWidthRatio_=1/y},
computeIsVerticalVideo_:function(y){return y>=1},
computeIsFourThreeToSixteenNineVideo_:function(y){return y<=.7501&&y>=.5624},
computeIsExtraWideVideo_:function(y){return y<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.BF(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.BF(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.TJe(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(y){var W=_.cj(y)||0;_.Wj(y,W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var y=_.cj("yt-fullerscreen-edu-button-click-count")||0,W=_.cj("yt-fullerscreen-edu-button-shown-count")||0,c=_.ey("external_fullscreen_button_shown_threshold"),Z=y>=_.ey("external_fullscreen_button_click_threshold")||W>=c;_.BF(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(y,W){return W},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.U().resolve(_.EU).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var y=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.KX.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.KX.addLowPriorityJob(function(){y.fullHeightPanelPositionUpdateJobId=0;var W=_.p(y.hostElement).querySelector("#secondary"),c=_.p(y.hostElement).querySelector("#fixed-secondary");W=W.getBoundingClientRect();var Z=W.width;y.swatcherooSqueezeback&&
(Z+=_.BC);if(y.swatcherooSqueezeback){var G=_.p(y.hostElement).querySelector("#squeezeback-constraining-container");G.style.width=Z+"px";G.style.flex="0 0 "+Z+"px"}c.style.width=Z+"px";c.style.left=W.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var y=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.KX.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.KX.addLowPriorityJob(function(){y.panelMaxHeightUpdateJob_=0;var W;!y.isTwoColumns_||y.theater||y.fullscreen?W=460:W=y.calculateNormalPlayerSize_().height;var c=W+"px";_.O("live_chat_taller_height")&&!y.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.O("live_chat_medium_height")&&!y.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.O("live_chat_scaled_height")&&!y.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");y.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":W+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":W+"px","--ytd-watch-flexy-comments-panel-max-height":W+"px","--ytd-comments-engagement-panel-content-height":W+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var y=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.O("web_watch_flexy_adjust_sidebar_width"))&&!_.O("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.KX.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.KX.addLowPriorityJob(function(){y.panelMaxHeightUpdateJob_=0;if(y.isTwoColumns_){var W=_.lmQ(y.windowSize_,y.calculateNormalPlayerSize_().width);W!==y.currentSidebarWidth&&(y.currentSidebarWidth=
W,y.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":W+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(y){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",y)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.mq(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(y){var W=_.p(this.hostElement).querySelector("#engagement-panel-scrim");y?W.addEventListener("tap",_.qO(this,this.onEngagementPanelScrimClick_)):W.removeEventListener("tap",_.qO(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(y){if(this.hostElement.contains(y)&&!this.scrollToAnimation_.isAnimating()){var W=y.offsetTop-24;y=y.offsetTop+y.offsetHeight+24;var c=this.getPageScrollingElement(),Z=this.getScrollTop(),G=Z+c.clientHeight-56;if(W<Z+56)W-=56;else if(y>G)W=y-c.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtSignalActionScrollToComments:function(){var y=this.hostElement.querySelector("#comments");if(y&&!this.scrollToAnimation_.isAnimating()){y=y.offsetTop-56-24;if(_.O("kevlar_comment_teaser_scroll_to_midpoint")&&(y-=_.bG().height/3,y<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,y),500)}},
onYtEngagementPanelVisibleChanged:function(y,W,c){this.active&&this.trackEngagementPanelVisibility&&!_.mFf.includes(c)&&(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(c),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.fl(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),W!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(y){return y?"":"watch-active-metadata"},
computeNewMetadataClass:function(y){return y?"watch-active-metadata":""},
computeFullBleedPlayer:function(y,W){return y||W},
computeDefaultLayout:function(y){return!y},
computeDefaultTwoColumnLayout:function(y,W){return!y&&W},
swatcherooUpdatePanelsLocation:function(y,W,c,Z,G,D){if(this.is==="ytd-watch-grid"){W=y&&!W;this.swatcherooSplitScroll&&(W?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));c=_.p(this.hostElement).querySelector("#panels");var Y=_.p(this.hostElement).querySelector("#playlist"),u=_.p(this.hostElement).querySelector("#fixed-secondary"),t=_.p(this.hostElement).querySelector("#fixed-below"),
b=_.p(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),r=_.p(this.hostElement).querySelector("#chat-container");D&&(y?u.appendChild(c):t.appendChild(c));G?y?u.appendChild(r):t.appendChild(r):_.I_(r,b);Z?y?u.appendChild(Y):t.appendChild(Y):_.I_(Y,b);this.swatcherooSplitScroll&&(y=_.p(this.hostElement).querySelector("#secondary"),Z=_.p(this.hostElement).querySelector("#columns"),G=_.p(this.hostElement).querySelector("#fixed-columns-secondary"),W?G.appendChild(y):
Z.appendChild(y))}},
computeMetadataSkinnyMode:function(y,W,c){return this.is!=="ytd-watch-grid"?!1:y?c:W},
computeWatchWhilePanelsActive:function(y,W){return y||W},
computeNoBorderOnChat:function(y){return _.O("web_watch_theater_chat_no_border")&&y},
computeLiveChatPresentAndExpanded:function(y,W){return y&&!W},
computePanelExpanded:function(y,W,c){return y||W||c},
computeSwatcherooSqueezeback:function(y,W,c){return this.is!=="ytd-watch-grid"||_.O("ww_squeezeback_killswitch")?!1:y&&W&&c},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(y){_.BF(this).getPlayerPromise().then(function(W){var c;(c=W.changeMarkerVisibility)==null||c.call(W,_.g(y,_.d8).isVisible||!1,_.g(y,_.d8).entityKeys||[],_.g(y,_.d8).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(y){this.liveChatCollapsed=y.detail;_.Sv().dispatch(_.VNX(y.detail))},
onSetPlaylistCollapsed:function(y){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!y)},
provideRenderingData:function(y,W){switch(y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=W;break;case "PRIMARY_INFO":_.O("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=W);this.videoPrimaryInfoRendererValue=W==null?void 0:W.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.O("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=W);this.videoSecondaryInfoRendererValue=W==null?void 0:W.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
W;break;case "CLARIFICATION":this.clarifyBoxValue=W;break;case "LIVE_CHAT":this.conversationBar=W;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=W;break;case "PLAYLIST":this.externalPlaylistData_=W!=null?W:{};break;case "MERCH_SHELF":this.merchShelfValue=W==null?void 0:W.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=W;break;case "OFFER_MODULE":this.offerModule=W;break;case "LIMITED_STATE":this.limitedStateValue=W;break;case "DONATION_SHELF":this.donation=W;break;
case "ALERTS":this.alertsValue=W;break;case "COMMENTS":this.comments=W;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=W;break;case "ENGAGEMENT_PANELS":this.engagementPanels=W;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=W;break;case "RICH_GRID_RENDERER":this.richGridRendererData=W;break;case "EXPANDABLE_METADATA":this.expandableMetadata=W;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=W}},
toggleCinematicsActive:function(y){this.cinematicsActive=y},
isMiniplayerActive:function(){return _.U().resolve(_.Cy).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(y){return y.filter(function(W){var c;return usf.includes((W==null?void 0:(c=W.engagementPanelSectionListRenderer)==null?void 0:c.targetId)||"")})},
getNonLearningJourneyEngagementPanels:function(y){return y.filter(function(W){var c;return!usf.includes((W==null?void 0:(c=W.engagementPanelSectionListRenderer)==null?void 0:c.targetId)||"")})},
getHasLearningJourneyPanels:function(y){return y.length>0}}];var tbX;var nT3=function(){var y=_.v.apply(this,arguments)||this;y.flexy=!0;y.learningJourney=!0;y.roundedInfoPanel=!0;y.viewTransitionEnabled=_.O("enable_player_resize_transition");y.smallerChatMinHeight=_.O("live_chat_smaller_min_height");y.cinematicTheaterMode=_.O("web_cinematic_theater_mode");y.transparentTheaterMode=_.O("web_transparent_theater_mode");y.cinematicFullscreen=_.O("web_cinematic_fullscreen");y.useLargerMaxPlayerValue=_.O("kevlar_flexy_use_larger_player_value");y.cinematicFullscreenV2=_.O("web_cinematic_fullscreen_v2");
y.isDarkTheme=document.documentElement.hasAttribute("dark");y.theaterLargerPlayer=_.O("web_watch_theater_larger_player");y.defaultCollapsePlaylist=_.O("web_watch_default_collapse_playlist");return y};
_.R(nT3,_.v);_.f=nT3.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.f.ready=function(){var y=this,W=function(){y.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(y){_.O("web_watch_update_narrow_width_killswitch")||_.Sv().dispatch(_.EXM(!y.detail.value));this.ytdWatchBehavior.isTwoColumns_=y.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(y){this.ytdWatchBehavior.flexySmallWindow_=y.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(y){this.ytdWatchBehavior.flexyLargeWindow_=y.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=y.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(y){this.ytdWatchBehavior.watchNextCanShowMore=y.detail.value};
_.f.updateShownItemsFromBinding=function(y){y.detail.path?this.set(y.detail.path,y.detail.value):this.ytdWatchBehavior.watchNextShownItems=y.detail.value};
_.f.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20300_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20300_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.dJ.Object.defineProperties(nT3.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(y=_.g(this.data.pageVisualEffects[W],_.Pc))return W=void 0,(W=y.config)==null?void 0:W.enableInLightTheme;return!1}}});
_.dJ.Object.defineProperties(nT3,{template:{configurable:!0,enumerable:!0,get:function(){if(tbX===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);tbX=y}y=tbX;return y}}});
var k4=nT3;k4.prototype.updateMiniplayerIsActiveValue=k4.prototype.updateMiniplayerIsActiveValue;k4.prototype.updateScrollTopValue=k4.prototype.updateScrollTopValue;k4.prototype.updateFullscreenValue=k4.prototype.updateFullscreenValue;k4.prototype.updateTheaterValue=k4.prototype.updateTheaterValue;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);
_.x([_.C(sif.YtdLearningJourneyWatchBehavior),_.e("design:type",Object)],k4.prototype,"ytdWatchBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],k4.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],k4.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],k4.prototype,"playerData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"flexy",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"learningJourney",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"roundedInfoPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"viewTransitionEnabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"smallerChatMinHeight",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"cinematicTheaterMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"transparentTheaterMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"cinematicFullscreen",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"useLargerMaxPlayerValue",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"cinematicFullscreenV2",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],k4.prototype,"theaterLargerPlayer",void 0);_.x([_.L(),_.e("design:type",Object)],k4.prototype,"defaultCollapsePlaylist",void 0);_.x([_.L({selector:_.si}),_.e("design:type",Object)],k4.prototype,"theaterValue",void 0);
_.x([_.L({selector:_.VP}),_.e("design:type",Object)],k4.prototype,"fullscreenValue",void 0);_.x([_.L({selector:_.CI}),_.e("design:type",Object)],k4.prototype,"scrollTopValue",void 0);_.x([_.L({selector:_.Eq}),_.e("design:type",Object)],k4.prototype,"miniplayerIsActiveValue",void 0);_.x([_.B6("ytd-player"),_.e("design:type",HTMLElement)],k4.prototype,"ytdPlayer",void 0);_.x([_.jj("#playlist"),_.e("design:type",HTMLElement)],k4.prototype,"JSC$20300_ytdPlaylistPanelRenderer",void 0);
_.x([_.B6("ytd-comments"),_.e("design:type",HTMLElement)],k4.prototype,"ytdComments",void 0);_.x([_.jj("#primary"),_.e("design:type",HTMLElement)],k4.prototype,"primary",void 0);_.x([_.jj("#secondary"),_.e("design:type",HTMLElement)],k4.prototype,"secondary",void 0);_.x([_.jj("#player-container"),_.e("design:type",HTMLElement)],k4.prototype,"playerContainer",void 0);_.x([_.jj("#cinematics"),_.e("design:type",HTMLElement)],k4.prototype,"JSC$20300_cinematics",void 0);
_.x([_.H("theaterValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],k4.prototype,"updateTheaterValue",null);_.x([_.H("fullscreenValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],k4.prototype,"updateFullscreenValue",null);_.x([_.H("scrollTopValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],k4.prototype,"updateScrollTopValue",null);
_.x([_.H("miniplayerIsActiveValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],k4.prototype,"updateMiniplayerIsActiveValue",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],k4.prototype,"cinematicLightTheme",null);k4=_.x([_.d({is:"ytd-watch-learning-journey"})],k4);_.r$.registerService(_.z7I,k4);
_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("Tm0L3c");
var W4Q;var cG0;var ZO3=function(){return _.v.apply(this,arguments)||this};
_.R(ZO3,_.v);var Gr3=ZO3;Gr3=_.x([_.d({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Gr3);
_.T(Gr3,"ytd-ghost-comments-renderer",function(){if(cG0===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);cG0=y}y=cG0;return y},{mode:1});var fUe;var oT7=function(){return _.v.apply(this,arguments)||this};
_.R(oT7,_.v);var DRX=oT7;DRX=_.x([_.d({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],DRX);
_.T(DRX,"ytd-ghost-watch-metadata-renderer",function(){if(fUe===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);fUe=y}y=fUe;return y},{mode:1});var qk=function(){var y=_.v.apply(this,arguments)||this;y.ghostGridRenderer={rows:6};y.roundedInfoPanel=!0;y.hideOfferModules=!0;y.smallerChatMinHeight=_.O("live_chat_smaller_min_height");y.cinematicTheaterMode=_.O("web_cinematic_theater_mode");y.transparentTheaterMode=_.O("web_transparent_theater_mode");y.darkerPanels=_.O("web_watch_darker_panels");y.cinematicFullscreen=_.O("web_cinematic_fullscreen");y.cinematicFullscreenV2=_.O("web_cinematic_fullscreen_v2");y.isDarkTheme=document.documentElement.hasAttribute("dark");
return y};
_.R(qk,_.v);_.f=qk.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.f.ready=function(){var y=this,W=function(){y.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(y){this.ytdWatchBehavior.isTwoColumns_=y.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(y){this.ytdWatchBehavior.flexySmallWindow_=y.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(y){this.ytdWatchBehavior.flexyLargeWindow_=y.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=y.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(y){this.ytdWatchBehavior.watchNextCanShowMore=y.detail.value};
_.f.updateShownItemsFromBinding=function(y){_.O("swatcheroo_direct_use_rich_grid")||(y.detail.path?this.set(y.detail.path,y.detail.value):this.ytdWatchBehavior.watchNextShownItems=y.detail.value)};
_.f.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20291_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20291_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.dJ.Object.defineProperties(qk.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(y=_.g(this.data.pageVisualEffects[W],_.Pc))return W=void 0,(W=y.config)==null?void 0:W.enableInLightTheme;return!1}}});
qk.prototype.updateMiniplayerIsActiveValue=qk.prototype.updateMiniplayerIsActiveValue;qk.prototype.updateScrollTopValue=qk.prototype.updateScrollTopValue;qk.prototype.updateFullscreenValue=qk.prototype.updateFullscreenValue;qk.prototype.updateTheaterValue=qk.prototype.updateTheaterValue;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],qk.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.k7f.YtdWatchBehavior),_.e("design:type",Object)],qk.prototype,"ytdWatchBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],qk.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qk.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],qk.prototype,"ghostGridRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],qk.prototype,"playerData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"roundedInfoPanel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"hideOfferModules",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"smallerChatMinHeight",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"cinematicTheaterMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"transparentTheaterMode",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"darkerPanels",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"cinematicFullscreen",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"cinematicFullscreenV2",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qk.prototype,"isDarkTheme",void 0);_.x([_.L({selector:_.si}),_.e("design:type",Object)],qk.prototype,"theaterValue",void 0);
_.x([_.L({selector:_.VP}),_.e("design:type",Object)],qk.prototype,"fullscreenValue",void 0);_.x([_.L({selector:_.CI}),_.e("design:type",Object)],qk.prototype,"scrollTopValue",void 0);_.x([_.L({selector:_.Eq}),_.e("design:type",Object)],qk.prototype,"miniplayerIsActiveValue",void 0);_.x([_.jj("#ytd-player"),_.e("design:type",HTMLElement)],qk.prototype,"ytdPlayer",void 0);_.x([_.jj("#playlist"),_.e("design:type",HTMLElement)],qk.prototype,"JSC$20291_ytdPlaylistPanelRenderer",void 0);
_.x([_.jj("#ytd-comments"),_.e("design:type",HTMLElement)],qk.prototype,"ytdComments",void 0);_.x([_.jj("#primary"),_.e("design:type",HTMLElement)],qk.prototype,"primary",void 0);_.x([_.jj("#secondary"),_.e("design:type",HTMLElement)],qk.prototype,"secondary",void 0);_.x([_.jj("#player-container"),_.e("design:type",HTMLElement)],qk.prototype,"playerContainer",void 0);_.x([_.jj("#cinematics"),_.e("design:type",HTMLElement)],qk.prototype,"JSC$20291_cinematics",void 0);
_.x([_.H("theaterValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qk.prototype,"updateTheaterValue",null);_.x([_.H("fullscreenValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qk.prototype,"updateFullscreenValue",null);_.x([_.H("scrollTopValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qk.prototype,"updateScrollTopValue",null);
_.x([_.H("miniplayerIsActiveValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],qk.prototype,"updateMiniplayerIsActiveValue",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],qk.prototype,"cinematicLightTheme",null);
_.T(qk,"ytd-watch-grid",function(){if(W4Q===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);W4Q=y}y=W4Q;return y},{mode:2});_.r$.registerService(_.DxE,qk);
_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("CF909");
var jiQ;var yG$=function(){var y=_.v.apply(this,arguments)||this;y.flexy=!0;y.roundedInfoPanel=!0;y.viewTransitionEnabled=_.O("enable_player_resize_transition");y.smallerChatMinHeight=_.O("live_chat_smaller_min_height");y.cinematicTheaterMode=_.O("web_cinematic_theater_mode");y.transparentTheaterMode=_.O("web_transparent_theater_mode");y.cinematicFullscreen=_.O("web_cinematic_fullscreen");y.useLargerMaxPlayerValue=_.O("kevlar_flexy_use_larger_player_value");y.cinematicFullscreenV2=_.O("web_cinematic_fullscreen_v2");
y.isDarkTheme=document.documentElement.hasAttribute("dark");y.theaterLargerPlayer=_.O("web_watch_theater_larger_player");y.defaultCollapsePlaylist=_.O("web_watch_default_collapse_playlist");y.retroModeReduxValue=!1;return y};
_.R(yG$,_.v);_.f=yG$.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateRetroModeReduxValue=function(){_.O("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.f.ready=function(){var y=this,W=function(){y.onColumnScroll()};
this.primary.addEventListener("scroll",W);this.secondary.addEventListener("scroll",W)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(y){_.O("web_watch_update_narrow_width_killswitch")||_.Sv().dispatch(_.EXM(!y.detail.value));this.ytdWatchBehavior.isTwoColumns_=y.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(y){this.ytdWatchBehavior.flexySmallWindow_=y.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(y){this.ytdWatchBehavior.flexyLargeWindow_=y.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(y){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=y.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(y){this.ytdWatchBehavior.watchNextCanShowMore=y.detail.value};
_.f.updateShownItemsFromBinding=function(y){y.detail.path?this.set(y.detail.path,y.detail.value):this.ytdWatchBehavior.watchNextShownItems=y.detail.value};
_.f.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20286_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20286_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.dJ.Object.defineProperties(yG$.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.pageVisualEffects)return!1;for(var W=0;W<this.data.pageVisualEffects.length;W++)if(y=_.g(this.data.pageVisualEffects[W],_.Pc))return W=void 0,(W=y.config)==null?void 0:W.enableInLightTheme;return!1}}});
_.dJ.Object.defineProperties(yG$,{template:{configurable:!0,enumerable:!0,get:function(){if(jiQ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);jiQ=y}y=jiQ;return y}}});
var w8=yG$;w8.prototype.updateRetroModeReduxValue=w8.prototype.updateRetroModeReduxValue;w8.prototype.updateScrollTopValue=w8.prototype.updateScrollTopValue;w8.prototype.updateFullscreenValue=w8.prototype.updateFullscreenValue;w8.prototype.updateTheaterValue=w8.prototype.updateTheaterValue;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],w8.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.k7f.YtdWatchBehavior),_.e("design:type",Object)],w8.prototype,"ytdWatchBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],w8.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],w8.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],w8.prototype,"playerData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"flexy",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"roundedInfoPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"viewTransitionEnabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"smallerChatMinHeight",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"cinematicTheaterMode",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"transparentTheaterMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"cinematicFullscreen",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"useLargerMaxPlayerValue",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"cinematicFullscreenV2",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"isDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],w8.prototype,"theaterLargerPlayer",void 0);_.x([_.L(),_.e("design:type",Object)],w8.prototype,"defaultCollapsePlaylist",void 0);_.x([_.L({selector:_.si}),_.e("design:type",Object)],w8.prototype,"theaterValue",void 0);_.x([_.L({selector:_.VP}),_.e("design:type",Object)],w8.prototype,"fullscreenValue",void 0);
_.x([_.L({selector:_.CI}),_.e("design:type",Object)],w8.prototype,"scrollTopValue",void 0);_.x([_.L({selector:_.Eq}),_.e("design:type",Object)],w8.prototype,"miniplayerIsActive",void 0);_.x([_.L({selector:function(y){return y.watch.isWatchRetroMode}}),
_.e("design:type",Object)],w8.prototype,"retroModeReduxValue",void 0);_.x([_.B6("ytd-player"),_.e("design:type",HTMLElement)],w8.prototype,"ytdPlayer",void 0);_.x([_.jj("#playlist"),_.e("design:type",HTMLElement)],w8.prototype,"JSC$20286_ytdPlaylistPanelRenderer",void 0);_.x([_.B6("ytd-comments"),_.e("design:type",HTMLElement)],w8.prototype,"ytdComments",void 0);_.x([_.jj("#primary"),_.e("design:type",HTMLElement)],w8.prototype,"primary",void 0);
_.x([_.jj("#secondary"),_.e("design:type",HTMLElement)],w8.prototype,"secondary",void 0);_.x([_.jj("#player-container"),_.e("design:type",HTMLElement)],w8.prototype,"playerContainer",void 0);_.x([_.jj("#cinematics"),_.e("design:type",HTMLElement)],w8.prototype,"JSC$20286_cinematics",void 0);_.x([_.H("theaterValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],w8.prototype,"updateTheaterValue",null);
_.x([_.H("fullscreenValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],w8.prototype,"updateFullscreenValue",null);_.x([_.H("scrollTopValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],w8.prototype,"updateScrollTopValue",null);_.x([_.H("retroModeReduxValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],w8.prototype,"updateRetroModeReduxValue",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],w8.prototype,"cinematicLightTheme",null);w8=_.x([_.d({is:"ytd-watch-flexy"})],w8);_.r$.registerService(_.oww,w8);
_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("nmfa2d");
var rs3;var v1=function(){var y=_.v.apply(this,arguments)||this;y.hidden=!1;y.errorScreen=null;y.playlistData={};return y};
_.R(v1,_.v);_.f=v1.prototype;_.f.getPlayer=function(){return this.ytdPlayer};
_.f.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:_.rc(["aa","eocs"])}}};
_.f.onActiveChanged=function(){_.Sv().dispatch(_.l3X(this.ytPageBehavior.active))};
_.f.playerDataChanged=function(){var y;(y=this.watchController)==null||_.B1(y,this.playerData)};
_.f.dataChanged=function(){var y;(y=this.watchController)==null||_.H1(y,this.data)};
_.f.sizeChanged=function(){var y,W;(W=(y=this.metadata).resize)==null||W.call(y)};
_.f.attached=function(){this.watchController=new _.h1(this);this.playerData&&_.B1(this.watchController,this.playerData);this.data&&_.H1(this.watchController,this.data)};
_.f.detached=function(){_.Mg(this.watchController);this.watchController=void 0};
_.f.getPlayerContainer=function(){return this.playerContainer};
_.f.getElement=function(y){switch(y){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20238_playlistPanel}};
_.f.provideRenderingData=function(y,W){switch(y){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=W;break;case "ERROR_SCREEN":this.errorScreen=W!=null?W:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=W;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=W;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=W;break;case "RICH_METADATA":this.richMetadataRowContainer=W;break;case "CLARIFICATION":this.clarificationData=W;break;case "PLAYLIST":this.playlistData=
W!=null?W:{};break;case "MERCH_SHELF":this.merchShelf=W;break;case "TICKET_SHELF":this.ticketShelf=W;break;case "LIMITED_STATE":this.limitedState=W;break;case "DONATION_SHELF":this.donationShelf=W;break;case "ALERTS":this.alerts=W}};
_.dJ.Object.defineProperties(v1.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return!this.hidden&&!!((y=this.data)==null?0:(W=y.contents)==null?0:(c=W.twoColumnWatchNextResults)==null?0:c.conversationBar)}}});
v1.prototype.sizeChanged=v1.prototype.sizeChanged;v1.prototype.dataChanged=v1.prototype.dataChanged;v1.prototype.playerDataChanged=v1.prototype.playerDataChanged;v1.prototype.onActiveChanged=v1.prototype.onActiveChanged;_.x([_.C(_.Ch.YtPageBehavior),_.e("design:type",Object)],v1.prototype,"ytPageBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],v1.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],v1.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"playerData",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v1.prototype,"hidden",void 0);_.x([_.jj("#ytd-player"),_.e("design:type",HTMLElement)],v1.prototype,"ytdPlayer",void 0);_.x([_.jj("#player-container"),_.e("design:type",HTMLElement)],v1.prototype,"playerContainer",void 0);_.x([_.jj("#metadata"),_.e("design:type",Object)],v1.prototype,"metadata",void 0);_.x([_.jj("#playlist"),_.e("design:type",HTMLElement)],v1.prototype,"JSC$20238_playlistPanel",void 0);
_.x([_.L({selector:_.EQ0,reflectToAttribute:!0}),_.e("design:type",Object)],v1.prototype,"fixie",void 0);_.x([_.L({selector:_.lge,reflectToAttribute:!0}),_.e("design:type",Object)],v1.prototype,"singleColumn",void 0);_.x([_.L({selector:function(y){return _.si(y)&&!_.VP(y)},
reflectToAttribute:!0}),_.e("design:type",Object)],v1.prototype,"theater",void 0);_.x([_.L({selector:_.VP,reflectToAttribute:!0}),_.e("design:type",Object)],v1.prototype,"fullscreen",void 0);_.x([_.L({selector:_.R6F}),_.e("design:type",Object)],v1.prototype,"windowSize",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"singleColumnContents",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"errorScreen",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"playlistData",void 0);
_.x([_.L(),_.e("design:type",Object)],v1.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"richMetadataRowContainer",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"clarificationData",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"commentsEntryPointHeaderRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"ticketShelf",void 0);
_.x([_.L(),_.e("design:type",Object)],v1.prototype,"merchShelf",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"donationShelf",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"limitedState",void 0);_.x([_.L(),_.e("design:type",Object)],v1.prototype,"alerts",void 0);_.x([_.A("playlistData"),_.e("design:type",Object),_.e("design:paramtypes",[])],v1.prototype,"hasPlaylistData",null);
_.x([_.A("data","hidden"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],v1.prototype,"hasChat",null);_.x([_.H("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v1.prototype,"onActiveChanged",null);_.x([_.H("playerData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v1.prototype,"playerDataChanged",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v1.prototype,"dataChanged",null);_.x([_.H("windowSize","singleColumn"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v1.prototype,"sizeChanged",null);
_.T(v1,"ytd-watch-fixie",function(){if(rs3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);rs3=y}y=rs3;return y},{mode:1});_.r$.registerService(_.fDD,v1);
_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("xwEKAe");
var YZ3=function(y){var W=_.Uc();if(W.getFlag(202))W=W.getFlag(201);else{var c;W=(y==null?void 0:(c=y.config)==null?void 0:c.settingOnByDefault)!==void 0?y.config.settingOnByDefault:!_.O("web_shorts_cinematics_disabled_by_default")}return W},m33=function(y){var W=_.Uc();
_.$A(0,201,y);_.$A(0,202,!0);W.save()},sVX=function(y){return(y=_.ozt(y))?_.zQE(y):0},umf=function(y){return y.shorts.isSmallScreenSqueezeback},tV0=function(y){return y.shorts.isPlaybackStarted},b8e=function(y,W,c){for(var Z=[],G=0,D=-1;G<y.length;G++)G%3===0&&(D++,Z[D]=[]),Z[D].push(y[G]);
y=new ti(Z);Z=new ti([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Z=y.multiply(Z);y=new ti([[0,0],[0,0],[0,0],[0,0]]);for(G=0;G<Z.getSize().width;G++){D=nI(Z,0,G);var Y=nI(Z,1,G);if(D===null||Y===null)throw Error("dm`"+(G+1).toString());nWX(y,G,0,D*W);nWX(y,G,1,Y*c)}W=nI(y,0,0);G=nI(y,1,0);c=nI(y,0,1);D=nI(y,1,1);if(W===null||G===null||c===null||D===null)throw Error("bm");Z=XJn(W,G,c,D);Y=nI(y,3,0);y=nI(y,3,1);if(Y===null||y===null)throw Error("cm");y=XJn(W,Y,c,y);D=(Number((D*-1).toFixed(2))-Number((c*-1).toFixed(2)))/
(Number(G.toFixed(2))-Number(W.toFixed(2)));Y=Math.atan(D)*180/Math.PI;G=D===Number.POSITIVE_INFINITY?-90:D===Number.NEGATIVE_INFINITY?90:Object.is(D,-0)?180:D===0?0:D>0?Y*-1:W<G?Y*-1:Math.abs(Y)+180;return{top:c,left:W,width:Z,height:y,rotation:G}},XJn=function(y,W,c,Z){y=W-y;
c=Z-c;return Math.sqrt(y*y+c*c)},r5F=function(y,W){y&&_.U().resolve(_.i1).resolveCommand(y,{forceClickLogging:!0,
form:{element:W}})},U3f=function(y){var W=y.data;
var c=y.parentContainerWidth;var Z=y.parentContainerHeight;var G=_.HO(),D;return _.X("yt-player-overlay-video-interactions",{el:G,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},W==null?void 0:(D=W.regions)==null?void 0:D.map(function(Y){return FQe(G,W,Y,c,Z)}))},FQe=function(y,W,c,Z,G){function D(){var K,l,N,P,V=(l=_.g((K=u)==null?void 0:K.command,_.WSV))==null?void 0:(N=l.item)==null?void 0:(P=N.notificationTextRenderer)==null?void 0:P.successResponseText;
if(V)_.GG(y.value,"yt-open-popup-action",[_.av(V),y.value]);else if(t)r5F(t,Y.value);else{var Q;r5F((Q=u)==null?void 0:Q.command,Y.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var Y=_.HO();if(c==null||!c.transformationMatrix)throw Error("em");W.trackingParams&&_.Zz().graftServerVe(W.trackingParams);c=b8e(c==null?void 0:c.transformationMatrix,Z,G);c="left:"+c.left+"px; top:"+(c.top+"px; width:")+(c.width+"px; height:")+(c.height+"px; transform:rotate(")+(c.rotation+"deg);");var u=_.g(W==null?void 0:W.popUp,$3F),t=W==null?void 0:W.command,b=_.g(t,_.Dx)!==void 0;W=W==null?void 0:W.a11yString;Z=_.j9(function(){b&&Y.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
Y.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
G=_.j9(function(){Y.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");Y.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.vO(Y,"focus",function(){b&&Y.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.vO(Y,"blur",function(){b&&Y.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var r=_.j9(function(){D();return!1}),F=_.j9(function(K){K.key==="Enter"&&D();
return!1});
return _.X("svg",{"on:mouseover":Z,"on:mouseout":G,"on:keydown":F,el:Y,tabindex:0,"aria-label":W,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:c,"on:click":r})},KQX=function(y){y.unsubscribeFromStore=_.ot(y.storeWithShorts,_.fzH,function(W){y.initOrDisposeActiveModules(W);
!W&&y.storeWithShorts.getState().shorts.isFullscreen&&(_.yu(document.documentElement),y.storeWithShorts.dispatch(_.zWg(!1)))});
y.initOrDisposeActiveModules(_.fzH(y.storeWithShorts.getState()))},O80=function(y){var W=_.U().resolve(_.Mt);
W.rootElement=y;KQX(W)},gWf=function(){return _.U().resolve(_.Mt).dismissedIndices},REn=function(y){return _.jv({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:y}})},l0M=function(y){return _.jv({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:y}})},EWX=function(y){return _.jv({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:y}})},ti=function(y,W){if(y instanceof ti)this.array_=y.array_;
else{var c;if(c=_.TO(y))a:{for(var Z=c=0;Z<y.length;Z++){if(!_.TO(y[Z])||c>0&&y[Z].length!=c){c=!1;break a}for(var G=0;G<y[Z].length;G++)if(typeof y[Z][G]!=="number"){c=!1;break a}c==0&&(c=y[Z].length)}c=c!=0}if(c)this.array_=_.SI(y);else if(y instanceof _.nP)this.array_=N2f(y.height,y.width);else if(typeof y==="number"&&typeof W==="number"&&y>0&&W>0)this.array_=N2f(y,W);else throw Error("Xl");}this.size_=new _.nP(this.array_[0].length,this.array_.length)},I0Q=function(y,W,c){for(var Z=0;Z<y.getSize().height;Z++)for(var G=
0;G<y.getSize().width;G++)W.call(c,y.array_[Z][G],Z,G,y)},pJe=function(y,W){var c=new ti(y.getSize());
I0Q(y,function(Z,G,D){c.array_[G][D]=W.call(void 0,Z,G,D,y)});
return c},N2f=function(y,W){for(var c=[],Z=0;Z<y;Z++){c[Z]=[];
for(var G=0;G<W;G++)c[Z][G]=0}return c};
ti.prototype.add=function(y){if(!_.htn(this.size_,y.getSize()))throw Error("Yl");return pJe(this,function(W,c,Z){return W+y.array_[c][Z]})};
ti.prototype.equals=function(y,W){if(this.size_.width!=y.size_.width||this.size_.height!=y.size_.height)return!1;W=W||0;for(var c=0;c<this.size_.height;c++)for(var Z=0;Z<this.size_.width;Z++)if(!_.AHf(this.array_[c][Z],y.array_[c][Z],W))return!1;return!0};
ti.prototype.getSize=function(){return this.size_};
var nI=function(y,W,c){return W>=0&&W<y.size_.height&&c>=0&&c<y.size_.width?y.array_[W][c]:null};
ti.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var nWX=function(y,W,c,Z){if(!(W>=0&&W<y.size_.height&&c>=0&&c<y.size_.width))throw Error("Zl`"+W+"`"+c+"`"+y.size_.height+"`"+y.size_.width);y.array_[W][c]=Z};
ti.prototype.multiply=function(y){if(y instanceof ti){if(this.size_.width!=y.getSize().height)throw Error("$l");return PEf(this,y)}if(typeof y==="number")return J5e(this,y);throw Error("am");};
var PEf=function(y,W){var c=new ti(y.size_.height,W.getSize().width);I0Q(c,function(Z,G,D){for(var Y=Z=0;Y<this.size_.width;Y++)Z+=nI(this,G,Y)*nI(W,Y,D);nWX(c,G,D,Z)},y);
return c},J5e=function(y,W){return pJe(y,function(c){return c*W})};var VVM=new _.w("inlineSurveyRenderer");var CE0=new _.w("interstitialViewModel");var QVM=new _.w("reelNavigateCommand");var A5F=new _.w("reelNonVideoContentDismissalCommand");var hEf=new _.w("showReelsCommentsOverlayCommand");var $3F=new _.w("videoInteractionPopUpRenderer");var B27;var H8f;var LQX;var vW3=function(){var y=_.v.apply(this,arguments)||this;y.ctaVisualElement=null;y.currentCsn=null;return y};
_.R(vW3,_.v);_.f=vW3.prototype;_.f.onDataChanged=function(){this.maybeLogShows()};
_.f.computeButtonShape=function(){var y=this;if(this.data)return{buttonText:_.v$(this.data.text),state:"active",onTap:function(){y.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.f.maybeCreateCtaVe=function(){var y;if((y=this.data)!=null&&y.badgeInteractionLogging){var W;if(y=(W=this.data.badgeInteractionLogging)==null?void 0:W.trackingParams)this.ctaVisualElement=_.Dz(y)}};
_.f.maybeLogClicks=function(){this.currentCsn=_.NR(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.SG(this.currentCsn,this.ctaVisualElement)};
_.f.maybeLogShows=function(){this.currentCsn=_.NR(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.vA(this.currentCsn,[this.ctaVisualElement])};
_.f.onTap=function(){var y;if((y=this.data)!=null&&y.onClickCommand){var W;this.ytComponentBehavior.resolveCommand((W=this.data)==null?void 0:W.onClickCommand);this.maybeLogClicks()}};
var XJ=vW3;XJ.prototype.onDataChanged=XJ.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],XJ.prototype,"ytComponentBehavior",void 0);_.x([_.L({}),_.e("design:type",Object)],XJ.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],XJ.prototype,"onDataChanged",null);
XJ=_.x([_.d({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],XJ);
_.T(XJ,"ytd-shopping-overlay-badge-renderer",function(){if(LQX!==void 0)return LQX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return LQX=y},{mode:1});_.A3(_.qN3,"reel-sound-metadata-view-model",{props:{data:_.QE,overlayDensity:_.QE}});_.A3(_.h$6,"player-disclosure-view-model",{props:{data:_.Ix}});_.A3(_.DbT,"pivot-button-view-model",{props:{data:_.QE,className:_.QE}});_.A3(_.zcE,"reel-action-bar-view-model",{props:{data:_.Ix,buttonShapeOverrideables:_.Ix}});_.eu(U3f);_.TP(U3f,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.A3(_.dV6,"yt-reel-metapanel-view-model",{props:{data:_.Ix,overlayDensity:_.Ix}});var d37=function(){var y=_.v.apply(this,arguments)||this;y.showScrubber=!1;y.isWatchWhileMode=!1;y.enableAnchoredPanel=_.O("desktop_shorts_v2_anchored_panel");y.anchoredPanelActive=!1;y.enableLivingroomLayout=_.O("reels_enable_livingroom_layout");y.enablePlayerMetadataContainer=_.O("reels_web_enable_metadata_container");y.enableSqueezebackPanels=_.O("web_shorts_enable_squeezeback_panels");y.isSqueezebackActive=!1;y.smallScreenSqueezeback=!1;y.isPlayerStarted=!1;y.overlayDensity=0;y.isOverlay=!1;y.isImmersive=
!1;y.isImmersiveHorizontal=!1;y.isFullscreen=!1;y.onWindowResized=function(){var W;y.set("isImmersive",((W=window.getComputedStyle(y.hostElement))==null?void 0:W.getPropertyValue("--immersive-mode-on"))==="1");y.set("isImmersiveHorizontal",y.isImmersive&&y.enableLivingroomLayout&&!y.isWatchWhileMode);y.setPlayerDimensions()};
return y};
_.R(d37,_.v);_.f=d37.prototype;_.f.updateIsOverlay=function(y){this.isOverlay=y.detail.value};
_.f.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.O("web_enable_flexible_overlay")||_.O("web_enable_format_first")||_.O("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.f.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.f.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.f.onDataChanged=function(){this.setPlayerDimensions()};
_.f.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.f.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.f.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.f.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",_.wj("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.wj("reels_action_justified_content")||"flex-start")};
_.f.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}}};
_.f.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.bN("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.bN("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.bN("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.bN("SHARE_LABEL",
void 0,"Share")}}});_.O("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.bN("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()};
_.f.setEmptyOverlayMetadata=function(){_.O("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}))};
_.f.setPlayerDimensions=function(){var y=document.getElementById("short-video-container"),W,c;y&&((W=this.data)==null?0:(c=W.videoInteractions)==null?0:c.interactions)&&(this.playerContainerHeight=y.getBoundingClientRect().height,this.playerContainerWidth=y.getBoundingClientRect().width)};
_.dJ.Object.defineProperties(d37.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.infoPanel)}}});
var bw=d37;bw.prototype.onDataChanged=bw.prototype.onDataChanged;bw.prototype.onIsActiveChanged=bw.prototype.onIsActiveChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],bw.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],bw.prototype,"ytdReduxBehavior",void 0);
_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],bw.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bw.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],bw.prototype,"isActive",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],bw.prototype,"hidden",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],bw.prototype,"useShortsIcon",void 0);
_.x([_.L({value:"left"}),_.e("design:type",String)],bw.prototype,"buttonTooltipPosition",void 0);_.x([_.L({value:_.O("reels_enable_livingroom_layout")?"top":"left"}),_.e("design:type",String)],bw.prototype,"likeButtonTooltipPosition",void 0);_.x([_.L({value:"none"}),_.e("design:type",String)],bw.prototype,"textTransform",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"showScrubber",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"isWatchWhileMode",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.infoPanel"),_.e("design:type",Object),_.e("design:paramtypes",[])],bw.prototype,"hasInfoPanel",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"enableAnchoredPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"anchoredPanelActive",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"enableLivingroomLayout",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],bw.prototype,"enablePlayerMetadataContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"enableSqueezebackPanels",void 0);_.x([_.L({selector:_.gUg,reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"isSqueezebackActive",void 0);
_.x([_.L({selector:umf,reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"smallScreenSqueezeback",void 0);_.x([_.L({selector:tV0}),_.e("design:type",Object)],bw.prototype,"isPlayerStarted",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"overlayDensity",void 0);_.x([_.L(),_.e("design:type",Object)],bw.prototype,"isOverlay",void 0);
_.x([_.L({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.e("design:type",Boolean)],bw.prototype,"isShortsOverlay",void 0);_.x([_.L(),_.e("design:type",Object)],bw.prototype,"isImmersive",void 0);_.x([_.L(),_.e("design:type",Object)],bw.prototype,"isImmersiveHorizontal",void 0);_.x([_.L({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.e("design:type",Boolean)],bw.prototype,"isShortsImmersive",void 0);
_.x([_.L({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.e("design:type",Object)],bw.prototype,"buttonOverride",void 0);_.x([_.L(),_.e("design:type",Number)],bw.prototype,"playerContainerHeight",void 0);_.x([_.L(),_.e("design:type",Number)],bw.prototype,"playerContainerWidth",void 0);_.x([_.L({selector:_.zq,reflectToAttribute:!0}),_.e("design:type",Object)],bw.prototype,"isFullscreen",void 0);
_.x([_.H("isActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],bw.prototype,"onIsActiveChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],bw.prototype,"onDataChanged",null);bw=_.x([_.d({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],bw);
_.T(bw,"ytd-reel-player-overlay-renderer",function(){if(H8f!==void 0)return H8f;var y=document.createElement("template");_.E(y,'\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]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" 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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return H8f=y},{mode:1});var SZ3;var rD=function(){var y=_.v.apply(this,arguments)||this;y.videoDuration=0;y.playedTime=0;y.isActive=!1;y.JSC$19486_playerEvents=new Map;return y};
_.R(rD,_.v);_.f=rD.prototype;_.f.created=function(){this.JSC$19486_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19486_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.f.attached=function(){this.getPlayerAndInitializeListeners()};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19486_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.qO(this,this.onPageChanged))};
_.f.getPlayerAndInitializeListeners=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return W=_.HF(),W?_.n(c,W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.qO(y,y.onPageChanged)),c.jumpTo(0));y.player=c.yieldResult;y.initializePlayerListeners();_.F2(c)})};
_.f.onPageChanged=function(y){var W=this;return _.m(function(c){if(c.nextAddress==1)return y.detail.newPageType!=="ytd-shorts"?c.return():_.n(c,_.Lx().getPlayerPromise(),2);W.player=c.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.qO(W,W.onPageChanged));_.F2(c)})};
_.f.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19486_playerEvents)};
_.f.onVideoDataChange=function(y){var W=this;return _.m(function(c){if(!W.player||y.type!=="newdata")return c.return();W.videoDuration=_.O("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(y.playertype).seekableEnd:W.player.getDuration(y.playertype);W.playedTime=0;_.F2(c)})};
_.f.onVideoProgress=function(y){var W=this,c,Z;return _.m(function(G){if(!W.player)return G.return();c=W.player.getPresentingPlayerType();Z=W.player.getPlayerState();W.videoDuration=_.O("web_shorts_use_progress_state_for_gapless")?W.player.getProgressState(c).seekableEnd:W.player.getDuration(c);W.playedTime=Z===0?W.videoDuration:y;_.F2(G)})};
_.f.getPercentPlayed=function(y,W){return y?_.IT(W/y,0,1):0};
_.dJ.Object.defineProperties(rD.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 y="";return y=this.videoDuration&&this.playedTime?y+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):y+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],rD.prototype,"componentBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],rD.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],rD.prototype,"player",void 0);_.x([_.L(),_.e("design:type",Object)],rD.prototype,"videoDuration",void 0);_.x([_.L(),_.e("design:type",Object)],rD.prototype,"playedTime",void 0);_.x([_.L(),_.e("design:type",Object)],rD.prototype,"isActive",void 0);
_.x([_.A("videoDuration","playedTime"),_.e("design:type",Number),_.e("design:paramtypes",[])],rD.prototype,"percentPlayed",null);_.x([_.A("videoDuration","playedTime"),_.e("design:type",Object),_.e("design:paramtypes",[])],rD.prototype,"percentPlayedStyle",null);_.x([_.A("videoDuration","isActive"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],rD.prototype,"hideProgressBar",null);
_.T(rD,"ytd-progress-bar-line",function(){if(SZ3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);SZ3=y}y=SZ3;return y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var T2f;_.TP(_.izE,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var FJ=function(){var y=_.v.apply(this,arguments)||this;y.playerState=null;y.isMuted=!1;y.shortsPipButtonEnabled=_.O("web_shorts_pip_button");y.JSC$19490_playerEvents=new Map;y.shortsPipButtonData={disabled:!1,iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal"};return y};
_.R(FJ,_.v);_.f=FJ.prototype;_.f.created=function(){this.JSC$19490_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19490_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.f.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.se(28662);this.playPauseButtonClientVE=_.se(36842);this.fullscreenButtonToggleOffClientVE=_.se(222256);this.fullscreenButtonToggleOnClientVE=_.se(222257);var y=_.NR(),W=_.EL();y&&W&&(_.O("combine_ve_grafts")?(_.qY(_.Zz(),this.muteButtonClientVE,W),_.qY(_.Zz(),this.playPauseButtonClientVE,W)):_.h_(y,W,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19490_playerEvents),this.player=null)};
_.f.getPlayerAndInitializeListeners=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return W=_.HF(),W?_.n(c,W.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.qO(y,y.onPageChanged)),c.jumpTo(0));y.player=c.yieldResult;y.initializePlayerListeners();_.F2(c)})};
_.f.onPageChanged=function(y){var W=this;return _.m(function(c){if(c.nextAddress==1)return y.detail.newPageType!=="ytd-shorts"?c.return():_.n(c,_.Lx().getPlayerPromise(),2);W.player=c.yieldResult;W.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.qO(W,W.onPageChanged));_.F2(c)})};
_.f.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19490_playerEvents)};
_.f.onPlayerStateChange=function(y){this.playerState=y};
_.f.onPlayerVolumeChange=function(y){this.isMuted=y.muted};
_.f.onPlayPauseButtonClick=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.Lx().getPlayerPromise(),2);W=Z.yieldResult;(c=_.NR())&&y.playPauseButtonClientVE&&_.SG(c,y.playPauseButtonClientVE);W.getPlayerState()!==1?W.playVideo():W.pauseVideo();_.F2(Z)})};
_.f.computePlayPauseIcon=function(y){return y===2||y===-1||y===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.f.computeFullscreenLabel=function(y){return y?_.bN("FULLSCREEN_EXIT_LABEL"):_.bN("FULLSCREEN_ENTER_LABEL")};
_.f.computePlayPauseLabel=function(y){return y===1||y===3?_.bN("PLAYER_LABEL_PAUSE"):_.bN("PLAYER_LABEL_PLAY")};
_.f.onMuteButtonClick=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.Lx().getPlayerPromise(),2);W=Z.yieldResult;(c=_.NR())&&y.muteButtonClientVE&&_.SG(c,y.muteButtonClientVE);W.isMuted()?W.unMute(!0):W.mute(!0);_.F2(Z)})};
_.f.computeMuteIcon=function(y){return y?"miniplayer:volume-off":"miniplayer:volume-up"};
_.f.computeMuteLabel=function(y){return y?_.bN("PLAYER_LABEL_UNMUTE"):_.bN("PLAYER_LABEL_MUTE")};
_.f.onFullscreenButtonClick=function(){var y=_.NR();y&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.SG(y,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.SG(y,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.YHH()};
_.f.onShortsPipButtonClick=function(){var y=_.U().resolve(_.Mt);if(_.O("web_shorts_pip")){var W=_.U().resolve(_.Cy);y.isShortsPipActive()?W.deactivate():W.isMiniplayerActive()||(_.GR().shortsPipActivation=!0,_.xV9(W))}};
_.dJ.Object.defineProperties(FJ.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var y=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(){y.onPlayPauseButtonClick()}}}},
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)}}},
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"}}});
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],FJ.prototype,"componentBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],FJ.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],FJ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],FJ.prototype,"player",void 0);_.x([_.L(),_.e("design:type",Object)],FJ.prototype,"playerState",void 0);_.x([_.L(),_.e("design:type",Object)],FJ.prototype,"isMuted",void 0);
_.x([_.L({computed:"computePlayPauseIcon(playerState)"}),_.e("design:type",String)],FJ.prototype,"playPauseIcon",void 0);_.x([_.L({computed:"computeMuteIcon(isMuted)"}),_.e("design:type",String)],FJ.prototype,"muteIcon",void 0);_.x([_.L({selector:_.zq}),_.e("design:type",Boolean)],FJ.prototype,"isFullscreen",void 0);_.x([_.L({selector:_.YD}),_.e("design:type",Boolean)],FJ.prototype,"isShortsPipActive",void 0);_.x([_.L(),_.e("design:type",Object)],FJ.prototype,"shortsPipButtonEnabled",void 0);
_.x([_.L(),_.e("design:type",Object)],FJ.prototype,"shortsPipButtonData",void 0);_.x([_.A("playerState"),_.e("design:type",Object),_.e("design:paramtypes",[])],FJ.prototype,"playPauseButtonData",null);_.x([_.A("isFullscreen"),_.e("design:type",Object),_.e("design:paramtypes",[])],FJ.prototype,"fullscreenButtonData",null);_.x([_.A("isFullscreen"),_.e("design:type",String),_.e("design:paramtypes",[])],FJ.prototype,"fullscreenIcon",null);
_.x([_.A("isShortsPipActive"),_.e("design:type",String),_.e("design:paramtypes",[])],FJ.prototype,"shortsPipIcon",null);
_.T(FJ,"ytd-shorts-player-controls",function(){if(T2f===void 0){var y=document.createElement("template");_.E(y,'\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<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 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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);T2f=y}y=T2f;return y},{mode:1});var a03;_.A3(_.viS,"yt-interstitial-view-model",{props:{data:_.Ix}});var x3e=_.Ax(function(y){var W=y.data;return _.X("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.X("h1",{class:"reelWatchBreakViewModelHostTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X("h2",{class:"reelWatchBreakViewModelHostBody"},_.X(_.Da,{text:function(){return W().body},
isOverlay:!0})),_.X(_.bg,{data:function(){return W().buttons}},{buttonViewModel:function(c,Z){return _.X("div",{class:function(){return Z()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.X(_.OV,{data:c.data}))}}))},"Hh");
x3e.idomCompat=!0;_.A3(x3e,"reel-watch-break-view-model",{props:{data:_.Ix}});var i8Q=function(){return _.v.apply(this,arguments)||this};
_.R(i8Q,_.v);i8Q.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}}};
_.dJ.Object.defineProperties(i8Q.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.g((y=this.data)==null?void 0:y.renderer,VVM)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.g((y=this.data)==null?void 0:y.renderer,CE0)}}});
var UC=i8Q;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],UC.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],UC.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],UC.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data.renderer"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],UC.prototype,"isSurvey",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.renderer"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],UC.prototype,"isInterstitialViewModel",null);UC=_.x([_.d({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],UC);
_.T(UC,"ytd-reel-non-video-content-renderer",function(){if(a03!==void 0)return a03;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return a03=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var MVM;_.A3(_.Avd,"desktop-shorts-player-controls",{});var eE9=function(){var y=_.v.apply(this,arguments)||this;y.isPlayerPaused=!1;y.isPlayerStarted=!1;y.showPlayerControls=!1;y.showScrubber=!1;y.autoHideJobId=0;y.backgroundImageJobId=0;y.modern=_.O("web_button_rework");y.overlayType=_.wj("web_shorts_expanded_overlay_type");y.panelData=void 0;y.isWatchWhileMode=!1;y.hasError=!1;y.panelShowDelayMs=1;y.scrubberComponent={};y.useStamper=_.O("web_shorts_enable_title_deflation");y.isFullscreen=!1;y.shouldHideOverlay=!1;y.enableAnchoredPanel=_.O("desktop_shorts_v2_anchored_panel");
y.enablePersistentAnchoredPanel=_.O("desktop_shorts_v2_persistent_anchored_panel");y.hideWatchWhilePanel=_.O("web_shorts_hide_watch_while_panel");y.isPersistentPanelActive=!1;y.anchoredPanelActive=!1;y.enableNewCarousel=_.O("web_enable_shorts_new_carousel_single_instance");y.isShortsPipActive=!1;y.smallScreenSqueezeback=!1;y.enableFlexibleOverlay=_.O("web_enable_flexible_overlay");y.aspectRatio=.5625;y.overlayDensity=0;y.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand",
"yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};y.onWindowResized=function(){_.gp(y,"calculateOverlayDensity",function(){y.calculateOverlayDensity()},100)};
return y};
_.R(eE9,_.v);_.f=eE9.prototype;_.f.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.f.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.f.shouldRenderOverlayControl=function(y){return!this.useStamper&&this.isVideoContent(y)};
_.f.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var y=_.U().resolve(_.Xi);this.isWatchWhileMode&&(_.O("web_enable_shorts_new_carousel")?_.KX.addJob(function(){y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):y.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.f.handleShowReelsCommentsOverlayCommand=function(y){y=_.g(y,hEf);this.isActive&&(y==null?0:y.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))};
_.f.updateEngagementPanelVisibility=function(y,W){y&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:W?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:y}})};
_.f.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.f.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.U().resolve(_.Mt).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.f.handleWatchWhilePanelScrimClick=function(){var y=_.U().resolve(_.Xi);this.activeWatchWhilePanel&&(y.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.f.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.f.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:_.O("web_enable_shorts_new_carousel")?0:void 0}}};
_.f.handlePlayerClick=function(y){var W=this,c,Z;if((Z=(c=window).matchMedia)!=null&&Z.call(c,"(any-pointer: coarse)").matches||!y)this.showPlayerControls=!0,_.KX.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Xc(_.KX,function(){W.showPlayerControls=!1},4E3)};
_.f.isFirstReel=function(){return this.index===0};
_.f.handleMouseenter=function(){_.KX.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.f.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.f.handleScrubberEnter=function(){this.showScrubber=!0};
_.f.handleScrubberLeave=function(){this.showScrubber=!1};
_.f.onAspectRatioChange=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return y.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+y.aspectRatio),y.isActive?_.n(c,_.U().resolve(_.Mt).playerApi,3):c.jumpTo(0);(W=c.yieldResult)&&W.setSize(NaN,NaN);_.F2(c)})};
_.f.updateBackgroundImage=function(){var y=this,W;if((W=this.data)!=null&&W.thumbnail){var c=(W=_.Bh(this.data.thumbnail.thumbnails))?'background-image:url("'+W+'");':"",Z;c.toString()!==((Z=this.backgroundImage)==null?void 0:Z.toString())&&(this.isActive?this.backgroundImage=c:(_.KX.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.Xc(_.KX,function(){y.isAttached&&(y.backgroundImage=c)},1E3)))}else this.backgroundImage=void 0};
_.f.setAspectRatio=function(){var y;(y=this.data)!=null&&y.thumbnail&&(this.isActive&&.5625!==sVX(this.data.thumbnail)&&_.f1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:sVX(this.data.thumbnail)))};
_.f.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var y=document.querySelector("#shorts-container");if(y){y=y.offsetWidth-96-this.playerContainer.offsetWidth-72;y=y>=720?1:y>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&y===1&&(y=0);this.isPersistentPanelActive&&(y=0);this.overlayDensity=y;var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity)}}};
_.f.onOverlayDensityChange=function(){var y;(y=this.onOverlayDensityChanged)==null||y.call(this,this.index,this.overlayDensity);(y=_.p(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&y.set("overlayDensity",this.overlayDensity);if(y=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))y.overlayDensity=this.overlayDensity};
_.f.isVideoContent=function(y){_.U().resolve(_.Mt);return!!_.g(y,_.mv)};
_.f.isNonVideoContent=function(y){_.U().resolve(_.Mt);return!!_.g(y,_.Ox)};
_.f.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.dJ.Object.defineProperties(eE9.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var y,W;return _.O("web_enable_format_first")||((y=this.data)==null?void 0:y.adsOverlay)&&_.O("web_enable_format_first_ads_only")||((W=this.data)==null?void 0:W.reelPlayerOverlayRenderer)&&_.O("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 y;return!this.isActive||!this.isPlayerStarted||(y=this.data)!=null&&y.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var y;if(this.useStamper&&((y=this.data)==null?0:y.command)&&this.isVideoContent(this.data.command)){var W,c;if(((W=this.data)==null?0:W.adsOverlay)&&Object.keys((c=this.data)==null?void 0:c.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Z,G;if(((Z=this.data)==null?0:Z.reelPlayerOverlayRenderer)&&Object.keys((G=this.data)==null?void 0:G.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
var $w=eE9;$w.prototype.onOverlayDensityChange=$w.prototype.onOverlayDensityChange;$w.prototype.calculateOverlayDensity=$w.prototype.calculateOverlayDensity;$w.prototype.setAspectRatio=$w.prototype.setAspectRatio;$w.prototype.updateBackgroundImage=$w.prototype.updateBackgroundImage;$w.prototype.onAspectRatioChange=$w.prototype.onAspectRatioChange;$w.prototype.onEngagementPanelsChanged=$w.prototype.onEngagementPanelsChanged;$w.prototype.onScrubberDataChange=$w.prototype.onScrubberDataChange;
$w.prototype.updateShouldHideOverlay=$w.prototype.updateShouldHideOverlay;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],$w.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],$w.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],$w.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Number)],$w.prototype,"index",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$w.prototype,"isActive",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],$w.prototype,"isHiddenInDom",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"isPlayerPaused",void 0);_.x([_.L({selector:tV0}),_.e("design:type",Object)],$w.prototype,"isPlayerStarted",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"showPlayerControls",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"showScrubber",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"autoHideJobId",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"backgroundImageJobId",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"backgroundImage",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"overlayType",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],$w.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],$w.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"watchWhileEngagementPanels",void 0);
_.x([_.L(),_.e("design:type",Object)],$w.prototype,"panelData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"isWatchWhileMode",void 0);_.x([_.L(),_.e("design:type",String)],$w.prototype,"activeWatchWhilePanel",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"hasError",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"panelShowDelayMs",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"scrubberComponent",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"useStamper",void 0);_.x([_.L({selector:_.zq,reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"isFullscreen",void 0);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"shouldHideOverlay",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"enableAnchoredPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"enablePersistentAnchoredPanel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"hideWatchWhilePanel",void 0);_.x([_.L({selector:_.gUg,reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"isPersistentPanelActive",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"anchoredPanelActive",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"enableNewCarousel",void 0);
_.x([_.L({selector:_.YD,reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"isShortsPipActive",void 0);_.x([_.L({selector:umf,reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"smallScreenSqueezeback",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],$w.prototype,"enableFormatFirst",null);_.x([_.L(),_.e("design:type",Object)],$w.prototype,"enableFlexibleOverlay",void 0);
_.x([_.L(),_.e("design:type",Object)],$w.prototype,"aspectRatio",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$w.prototype,"overlayDensity",void 0);_.x([_.L(),_.e("design:type",Function)],$w.prototype,"onOverlayDensityChanged",void 0);_.x([_.L(),_.A("isActive","hasError"),_.e("design:type",Object),_.e("design:paramtypes",[])],$w.prototype,"shouldRenderPlayerElements",null);
_.x([_.L(),_.A("isActive","isWatchWhileMode"),_.e("design:type",Object),_.e("design:paramtypes",[])],$w.prototype,"watchWhileOrPersistentActive",null);_.x([_.H("isActive","hasError","showingExpandedOverlay"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$w.prototype,"updateShouldHideOverlay",null);
_.x([_.L({reflectToAttribute:!0}),_.A("isActive","isPlayerStarted","data"),_.e("design:type",Object),_.e("design:paramtypes",[])],$w.prototype,"shouldRenderScrubber",null);_.x([_.H("shouldRenderScrubber"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$w.prototype,"onScrubberDataChange",null);_.x([_.A("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.e("design:type",Object),_.e("design:paramtypes",[])],$w.prototype,"overlayComponent",null);
_.x([_.H("watchWhileEngagementPanels"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$w.prototype,"onEngagementPanelsChanged",null);_.x([_.jj("#player-container"),_.e("design:type",HTMLElement)],$w.prototype,"playerContainer",void 0);_.x([_.jj("#cinematic-container"),_.e("design:type",HTMLElement)],$w.prototype,"cinematicContainer",void 0);
_.x([_.H("aspectRatio"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],$w.prototype,"onAspectRatioChange",null);_.x([_.H("data.thumbnail"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$w.prototype,"updateBackgroundImage",null);_.x([_.H("isPersistentPanelActive","data.thumbnail"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$w.prototype,"setAspectRatio",null);
_.x([_.H("isPersistentPanelActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$w.prototype,"calculateOverlayDensity",null);_.x([_.H("overlayDensity"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$w.prototype,"onOverlayDensityChange",null);$w=_.x([_.d({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],$w);
_.T($w,"ytd-reel-video-renderer",function(){if(MVM!==void 0)return MVM;var y=document.createElement("template");_.E(y,'\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" style$="[[backgroundImage]]">\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          <template is="dom-if" if="[[enableNewCarousel]]" class="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          </template>\n          <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return MVM=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var wJF=function(){var y=_.v.apply(this,arguments)||this;y.isPreviousPageShorts=!1;y.index=0;y.delayedActiveIndex=0;y.playablePreviousIndex=null;y.isPlayerPaused=!1;y.isPlayerStarted=!1;y.intersectionObserverThreshold=.6;y.fitToVisibleBounds=!1;y.pageSubtype="shorts";y.panelShowDelayMs=_.ey("enable_shorts_panel_show_delay_ms");y.enablePreviousContinuation=_.O("shorts_in_playlists_web");y.shortsPipEnabled=_.O("web_shorts_pip");y.isDark=document.documentElement.hasAttribute("dark");y.shortsViewTransitions=
_.O("web_shorts_view_transitions");y.isFullscreen=!1;y.isShortsPipActive=!1;y.buttonOverride={iconPosition:"icon-only",size:"XL"};y.anchoredPanelActive=!1;y.isActive=!1;y.smallScreenPersistentPanel=!1;y.isPersistentPanelActive=!1;y.smallScreenSqueezeBack=!1;y.enableScrollIntoViewCenter=_.O("web_scroll_into_view_center");y.formatFirst=_.O("web_enable_format_first")||_.O("web_enable_format_first_ads_only")||_.O("web_enable_format_first_organic_only");y.enableFlexibleOverlay=_.O("web_enable_flexible_overlay");
y.enableNewCarousel=_.O("web_enable_shorts_new_carousel_single_instance");y.isShortsInitialized=!1;y.hidePreviousButtonImmediately=!1;y.showPreviousButtonImmediately=!1;y.endOfNextContinuation=!1;y.currentPlayerIndex=0;y.nextReelVe=_.se(56921);y.prevReelVe=_.se(56922);y.loopToggleOffVe=_.se(198013);y.loopToggleOnVe=_.se(198014);y.ambientModeToggleVe=_.se(227860);y.reelPlayerPausedStateRendererVe=_.se(141313);y.storedPlaybackSpeed=null;y.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"};y.onOverlayDensityChanged=function(W,c){var Z;(Z=y.getActiveReelVideo(W))==null||Z.setAttribute("overlay-density",String(c))};
return y};
_.R(wJF,_.v);_.f=wJF.prototype;
_.f.deflateInactivePreviousSlides=function(){var y=_.ey("web_shorts_deflate_inactive_slides_aggressive_distance");if(y>0&&this.shortsProcessedSequence&&this.activeIndex){y=this.activeIndex-y;for(var W=0;W<=y;W++){var c=void 0;((c=this.shortsProcessedSequence[W].reelPlayerOverlayRenderer)==null?0:c.likeButton)&&this.set("shortsProcessedSequence."+W+".reelPlayerOverlayRenderer",{});c=void 0;((c=this.shortsProcessedSequence[W].adsOverlay)==null?0:c.adSlotMetadata)&&this.set("shortsProcessedSequence."+W+
".adsOverlay",{})}}};
_.f.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.f.onResize=function(){var y=_.Sv(),W=y.dispatch,c=this.calculateIsSmallWidth();W.call(y,_.jv({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:c}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.f.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:_.O("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}}};
_.f.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var y=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,W=y,c=0;y<250&&(W=y+this.shortsInnerContainer.clientWidth,c=24);_.wM(this.hostElement,{"--ytd-shorts-header-width":W+"px","--ytd-shorts-top-spacing":c+"px"})}};
_.f.isFirstShorts=function(y){return y?this.index===-y.length:this.index===0};
_.f.isActiveReel=function(y,W,c){c&&(W=this.calculatePrevIndex(W,c));return y===W};
_.f.onFullscreenChange=function(){if(_.O("web_fullscreen_shorts")){var y;(y=this.getActiveReelVideo(this.activeIndex))==null||y.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.U().resolve(_.Cy).close(!0)}};
_.f.engagementPanelsChanged=function(){var y;this.watchWhileEngagementPanels=(y=this.data)==null?void 0:y.engagementPanels};
_.f.unregisterPanels=function(){var y=_.U().resolve(_.Xi);if(this.watchWhileEngagementPanels)for(var W=_.z(this.watchWhileEngagementPanels),c=W.next();!c.done;c=W.next()){var Z=void 0,G=void 0;c=(Z=c.value.engagementPanelSectionListRenderer)==null?void 0:(G=Z.identifier)==null?void 0:G.tag;y&&c&&y.panelMap.delete(c)}};
_.f.isVideoContent=function(y){return this.isVideoContentCommand(y==null?void 0:y.command)};
_.f.getActiveReelVideo=function(y){return _.O("web_enable_shorts_new_carousel_single_instance")?_.p(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+y+'"]'):_.p(this.hostElement).querySelector('ytd-reel-video-renderer[id="'+y+'"]')};
_.f.calculatePrevIndex=function(y,W){return W?y-((W==null?void 0:W.length)||0):-1};
_.f.onKeydown=function(y){var W=_.Aq(y)||[];if(!_.Di9(W))if(y.code==="ArrowUp")y.preventDefault(),this.handlePrevButtonClick();else if(y.code==="ArrowDown")y.preventDefault(),this.handleNextButtonClick();else if(y.code==="KeyM")this.toggleMuteUnmuteVideo();else if(y.code==="KeyK"||y.code==="Space")this.togglePlayPauseVideo();else if((y.code==="KeyA"||y.code==="ArrowLeft")&&_.O("web_shorts_keyboard_enable_seek_shortcuts")){var c;(c=this.player)==null||c.seekBy(-5)}else if((y.code==="KeyD"||y.code===
"ArrowRight")&&_.O("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Z;(Z=this.player)==null||Z.seekBy(5)}};
_.f.onServiceRequestCompleted=function(y,W){y=W.data;y.continuationEndpoint&&y.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:y.entries,continuationEndpoint:y.continuationEndpoint}}):y.prevContinuationEndpoint&&y.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:y.prevEntries,prevContinuationEndpoint:y.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.f.handleEngagementPanelVisibilityChanged=function(y,W){var c=_.U().resolve(_.Xi);if(y&&c){var Z,G=((Z=y.identifier)==null?void 0:Z.tag)||y.panelIdentifier||y.targetId;if(W==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==G){c.hidePanel(this.activePanel);var D;this.activePanel=((D=y.identifier)==null?void 0:D.tag)||y.panelIdentifier}else this.isPersistentPanelActive=!0,_.Sv().dispatch(REn(!0)),this.anchoredPanelActive=!0,this.activePanel=G;else W==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===G&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Sv().dispatch(REn(!1)))}};
_.f.handlePanelScrimClick=function(){var y=_.U().resolve(_.Xi);this.activePanel&&(y.hidePanel(this.activePanel),_.Sv().dispatch(REn(!1)))};
_.f.getShortsLoopSetting=function(){var y,W,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:return _.O("kevlar_shorts_auto_advance")?_.n(D,_.tI.getInstance(),2):D.return(!0);case 2:return(y=D.yieldResult)?_.n(D,y.get("sfvles"),3):D.return(!0);case 3:return c=(W=D.yieldResult)!=null?W:!1,_.n(D,y.get("sfvle"),4);case 4:return G=(Z=D.yieldResult)!=null?Z:!0,c?D.return(G):D.return(!0)}})};
_.f.handleSignalActionToggleLoopShortsOff=function(){var y=this,W,c,Z;return _.m(function(G){switch(G.nextAddress){case 1:if(!y.player)return G.return();y.player.setLoopVideo(!1);W=_.Zz();_.jz(W,y.loopToggleOffVe);return _.n(G,_.tI.getInstance(),2);case 2:return(c=G.yieldResult)?_.n(G,c.set("sfvle",!1),3):G.return();case 3:return _.n(G,c.set("sfvles",!0),4);case 4:Z=_.Uc(),_.$A(0,203,!1),_.$A(0,204,!0),Z.save(),_.F2(G)}})};
_.f.handleSignalActionToggleLoopShortsOn=function(){var y=this,W,c,Z;return _.m(function(G){switch(G.nextAddress){case 1:if(!y.player)return G.return();y.player.setLoopVideo(!0);W=_.Zz();_.jz(W,y.loopToggleOnVe);return _.n(G,_.tI.getInstance(),2);case 2:return(c=G.yieldResult)?_.n(G,c.set("sfvle",!0),3):G.return();case 3:return _.n(G,c.set("sfvles",!0),4);case 4:Z=_.Uc(),_.$A(0,203,!0),_.$A(0,204,!0),Z.save(),_.F2(G)}})};
_.f.handleSignalActionToggleCinematicShortsOn=function(){m33(!0);var y;(y=this.JSC$19514_cinematicController)==null||_.D33(y,!0);_.jz(_.Zz(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.f.handleSignalActionToggleCinematicShortsOff=function(){m33(!1);var y;(y=this.JSC$19514_cinematicController)==null||_.D33(y,!1);_.jz(_.Zz(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.f.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.f.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.f.unhideCurrentOverlay=function(){if(_.O("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer){var y=this.overlayContainer.querySelector("#experiment-overlay");y&&_.KX.addLowPriorityJob(function(){y.style.display="unset"},100)}};
_.f.getCurrentShort=function(){if(this.currentEndpoint){var y=this.currentEndpoint;if(this.isNonVideoContentCommand(y)){var W=_.g(y,_.Ox);return{reelNonVideoContentRenderer:_.g(W==null?void 0:W.renderer,_.EIZ),command:y}}if(this.data){var c;W=(c=_.g(this.currentEndpoint,_.mv))==null?void 0:c.thumbnail;var Z;c=(Z=this.data.overlay)==null?void 0:Z.reelPlayerOverlayRenderer;_.U().resolve(_.Mt);var G,D;Z=_.g((G=this.data.overlay)==null?void 0:(D=G.shortsAdsRenderer)==null?void 0:D.overlay,_.mKE);y=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.g(this.currentEndpoint,_.mv),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:c,thumbnail:W,command:y,adsOverlay:Z}}}};
_.f.created=function(){var y=this;this.scrollToVideoThrottle=new _.ig(function(W){var c;(c=y.getActiveReelVideo(W))==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.ig(function(W){var c;(c=y.getActiveReelVideo(W))==null||c.scrollIntoView({behavior:"auto",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.f.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.f.attached=function(){var y=this;O80(this);this.pageScrollElement=_.p(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.qO(this,this.processResetAction));_.O("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.O("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var W=y.getActiveReelVideo(y.activeIndex);
y.maybeCreateIntersectionObserver();W==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"});y.shortsContainer.style.overflowY="scroll"}))};
_.f.calculateSqueezebackPanelSize=function(){var y=this,W=window.innerWidth-456-(window.innerHeight-106)*.5625;_.KX.addLowPriorityJob(function(){W<360?_.Sv().dispatch(l0M(!0)):(y.hostElement.style.setProperty("--anchored-panel-width",Math.min(W,480)+"px"),_.Sv().dispatch(l0M(!1)))})};
_.f.detached=function(){var y=_.U().resolve(_.Mt);y.rootElement=void 0;var W;(W=y.unsubscribeFromStore)==null||W.call(y);y.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.qO(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.f.onResizeFinished=function(y,W){var c=this,Z=new ResizeObserver(function(){c.shortsContainer.style.overflowY="hidden";_.KX.addLowPriorityJob(function(){W()},100)});
Z.observe(y);return Z};
_.f.resetDocumentScrollTop=function(){var y,W;if((y=document)==null?0:(W=y.scrollingElement)==null?0:W.scrollTop)document.scrollingElement.scrollTop=0};
_.f.loadPage_=function(y){var W=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),y){var c;if((c=_.g(this.currentEndpoint,_.mv))==null?0:c.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=y;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){W.isPlayerStarted&&
(W.handleOnPlaybackCommand(),W.afterPlayerStarted=function(){})};
this.registerPanel(y)}};
_.f.afterPlayerStarted=function(){};
_.f.handleOnPlaybackCommand=function(){if(_.O("web_shorts_comment_stickers")&&this.isPlayerStarted){var y,W=(y=_.g(this.currentEndpoint,_.mv))==null?void 0:y.onPlaybackCommand;W&&this.ytComponentBehavior.resolveCommand(W)}};
_.f.maybeCreateIntersectionObserver=function(){var y=this,W=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==W){this.intersectionObserverThreshold=W;var c={rootMargin:"0px",threshold:W},Z;(Z=this.intersectionObserver)==null||Z.disconnect();this.intersectionObserver=new IntersectionObserver(function(G){G=_.z(G);for(var D=G.next();!D.done;D=G.next())if(D=D.value,D.intersectionRatio>W){D=Number(D.target.id);if(isNaN(D))break;if(D===y.index)break;
_.qMt();y.loadVideo(D);_.Vu("r_vtc")}},c);
this.observeShorts()}};
_.f.observeShorts=function(){var y=_.O("web_enable_shorts_new_carousel_single_instance")?".reel-video-in-sequence-new":"ytd-reel-video-renderer.reel-video-in-sequence";y=[].concat(_.No(_.p(this.hostElement).querySelectorAll(y)));y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var c=void 0;(c=this.intersectionObserver)==null||c.observe(W)}};
_.f.initCsi=function(){_.J8d("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var y={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},W,c;if((W=this.playerData)==null?0:(c=W.cacheMetadata)==null?0:c.isCacheHit)y.isCacheHit=!0;var Z;if(W=(Z=_.g(this.currentEndpoint,_.mv))==null?void 0:
Z.prefetchTaskId)y.prefetchInfo={taskId:W};_.IP(y)};
_.f.isAd=function(){var y,W;return!!((y=_.g(this.currentEndpoint,_.mv))==null?0:(W=y.adClientParams)==null?0:W.isAd)};
_.f.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.f.getPlayerContainer=function(){var y;return(y=_.O("web_enable_shorts_new_carousel_single_instance")?_.p(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index))==null?void 0:y.playerContainer};
_.f.onPlayerStateChange=function(y){var W=this;this.isPlayerPaused=y===2;y!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?y===1&&this.index===0&&(this.isPlayerStarted||_.Sv().dispatch(EWX(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Sv().dispatch(EWX(!0)));this.player&&!this.player.getLoopVideo()&&_.KX.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(Z){var G;(G=W.player)==null||G.setLoopVideo(Z)})});
if(y===0&&_.O("kevlar_shorts_auto_advance"))if(y=this.getActiveReelVideo(this.index),this.isInBackground()){var c=this.getPlayableNextIndex();if(c==null)return;this.gestureType="INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED";this.loadVideo(c,!0)}else y.isWatchWhileMode&&!_.O("shorts_aa_ignore_ww")?(c=this.player)==null||c.seekToStreamTime(0):this.handleNextButtonClick(void 0,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");this.isPlayerPaused&&_.O("web_shorts_paused_state_logging")&&_.vA(_.NR(),[this.reelPlayerPausedStateRendererVe])};
_.f.isInBackground=function(){var y=window.document.visibilityState;return!(!y||y==="visible")};
_.f.isShortPlayable=function(){if(_.O("kevlar_playable_short_killswitch"))return!0;var y;return(y=this.playerData)!=null&&y.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.f.setNormalPlaybackSpeed=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.getPlayer().getPlayerPromise(),2);W=Z.yieldResult;c=W.getPlaybackRate();c!==1&&(y.storedPlaybackSpeed=c,W.setPlaybackRate(1));_.F2(Z)})};
_.f.restorePlaybackSpeed=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1)return y.storedPlaybackSpeed===null?c.jumpTo(0):_.n(c,y.getPlayer().getPlayerPromise(),3);W=c.yieldResult;W.setPlaybackRate(y.storedPlaybackSpeed);y.storedPlaybackSpeed=null;_.F2(c)})};
_.f.playerDataChanged=function(){var y=this,W,c,Z,G,D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1){W=y.getPlayer();_.O("web_shorts_dynamic_intersection_observer_threshold")&&((c=y.intersectionObserver)==null||c.disconnect());if(y.playerData){if(((Z=y.playerData.videoDetails)==null?void 0:Z.videoId)!==((G=W.getPlayer())==null?void 0:G.getVideoData().video_id)){D={};if(Y=_.g(y.currentEndpoint,_.mv))D.watch_endpoint=Y,Y.endTimeSeconds&&(D.end=Y.endTimeSeconds);W.loadVideoWithPlayerResponse(y.playerData,
D)}}else return r.return();return y.player?r.jumpTo(2):_.n(r,W.getPlayerPromise(),3)}r.nextAddress!=2&&(y.player=r.yieldResult,y.JSC$19514_playerStateChangeListener=y.onPlayerStateChange.bind(y),y.player.addEventListener("onStateChange",y.JSC$19514_playerStateChangeListener),_.O("kevlar_client_enable_shorts_player_bootstrap")&&_.Ss(),y.scrollToVideoThrottle.fire(y.index),y.movePlayerToVideo(y.index),_.KX.addLowPriorityJob(function(){y.getShortsLoopSetting().then(function(F){var K;(K=y.player)==null||
K.setLoopVideo(F)})}),_.epJ.resolve(y.player),y.player.syncVolume(),y.getPlayer().focusOnPlayer());
_.O("web_shorts_caption_language_entity_killswitch")||_.KX.addLowPriorityJob(function(){var F=_.U().resolve(_.Mt),K,l=(K=y.player)==null?void 0:K.getOption("captions","track");K=_.Gx("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(l){var N;((N=_.Zx(_.jmh,K)())==null?void 0:N.value)!==l.displayName&&F.store.dispatch(_.o3("stringEntity",K,{key:K,value:l.displayName||""}))}else F.store.dispatch(_.o3("stringEntity",K,{key:K,value:"CAPTIONS_UNAVAILABLE"}))});
_.KX.addLowPriorityJob(function(){y.observeShorts()},100);
u=y.player.getPlayerState(y.player.getPresentingPlayerType());u!==1||y.isPlayerStarted||_.Sv().dispatch(EWX(!0));y.updateBackNavContainerWidth();t=_.g(y.currentEndpoint,_.mv);((b=t)==null?0:b.startTimeSeconds)&&y.player.seekTo(t.startTimeSeconds);if(y.JSC$19514_cinematicController||y.cinematicsInitializeJobId)return r.return();y.cinematicsInitializeJobId=_.KX.addLowPriorityJob(function(){y.initCinematicController();y.cinematicsInitializeJobId=void 0});
_.F2(r)})};
_.f.onShortUndoDismiss=function(){var y=this,W=gWf().pop();W!==void 0&&(_.Lv(this,function(){y.showCardWithIndex(W)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.f.onShortsDismiss=function(y){if(y=y.detail.reelDismissalActionRenderer)(y=_.g(y.onDismissalCompletionRenderer,_.Bgf))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:y}}}),this.scrollAndDismissCard()};
_.f.processReelNonVideoContentDismissalCommand=function(y){var W=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);y=_.g(y,A5F);this.activeDimissalTimeout=setTimeout(function(){W.scrollAndDismissCard()},Number(y==null?void 0:y.delayMs))};
_.f.scrollAndDismissCard=function(){var y=this,W=this.index;gWf().push(W);_.Lv(this,function(){var c=y.getPlayableNextIndex();c!==null&&(c=y.getActiveReelVideo(c),y.hideCardWithIndex(W),c==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:y.enableScrollIntoViewCenter?"center":"start"}))})};
_.f.hideCardWithIndex=function(y){this.getActiveReelVideo(y).hidden=!0};
_.f.showCardWithIndex=function(y){this.getActiveReelVideo(y).hidden=!1};
_.f.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.f.activeChanged=function(y){_.Sv().dispatch(_.jv({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:y}}));if(y)document.addEventListener("keydown",_.qO(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var W;(W=this.player)==null||W.sendAbandonmentPing()}var c;(c=this.player)==null||c.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.qO(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.f.graftClientVisualElements=function(){if(this.data){var y=_.Zz();_.e5V(y,_.sc({response:this.reelWatchSequenceResponse}));_.qY(y,this.nextReelVe);_.qY(y,this.prevReelVe);_.O("kevlar_shorts_auto_advance")&&(_.qY(y,this.loopToggleOffVe),_.qY(y,this.loopToggleOnVe));_.qY(y,this.ambientModeToggleVe);_.vA(_.NR(),[this.nextReelVe,this.prevReelVe]);_.O("web_shorts_paused_state_logging")&&_.qY(y,this.reelPlayerPausedStateRendererVe)}};
_.f.graftNvcRenderer=function(){var y,W,c,Z,G=this.index<0?(y=this.shortsProcessedPrevSequence)==null?void 0:(W=y[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:W.command:(c=this.shortsProcessedSequence)==null?void 0:(Z=c[this.index])==null?void 0:Z.command;if(G&&this.isNonVideoContentCommand(G)){y=_.g(G,_.Ox);var D,Y;(y=(D=_.g(y==null?void 0:y.renderer,_.EIZ))==null?void 0:(Y=D.loggingDirectives)==null?void 0:Y.trackingParams)&&_.Zz().graftServerVe(y)}};
_.f.setActiveIndex=function(){_.U().resolve(_.Mt).setActiveIndex(this.index)};
_.f.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.f.lazyUpdateMiniplayerData=function(){var y=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.KX.addLowPriorityJob(function(){y.updateMiniplayerData();y.updateMiniplayerDataJobId=void 0}))};
_.f.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.KX.cancelJob(this.updateMiniplayerDataJobId)};
_.f.updateMiniplayerData=function(){var y,W,c,Z=_.U().resolve(_.Cy),G={shortsData:this.getCurrentShort(),previousButtonDisabled:!((y=this.prevButtonData)==null||!y.isDisabled),nextButtonDisabled:!((W=this.nextButtonData)==null||!W.isDisabled),playabilityStatus:(c=this.playerData)==null?void 0:c.playabilityStatus};_.zm(Z,G)};
_.f.resetPlayerLocation=function(){var y=this.getPlayer();this.initialPlayerContainer&&(y.appendTo(this.initialPlayerContainer,void 0,!0),_.O("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.f.movePlayerToVideo=function(y,W){var c=this;W=W===void 0?!0:W;var Z=this.getActiveReelVideo(y),G=this.getPlayer();if(Z){if(_.O("web_enable_shorts_new_carousel_single_instance")){this.overlayContainer||(this.overlayContainer=_.p(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||G.appendTo(this.overlayContainer.playerContainer,void 0,!0));Z.appendChild(this.overlayContainer);var D;(D=this.player)==null||D.setSize(NaN,NaN);_.Xc(_.KX,function(){c.isActive=
!0})}else this.isShortsMiniplayerActive()||G.appendTo(Z.playerContainer,void 0,!0);
G.style.visibility="visible";_.O("reels_web_disable_rtr_tick")||_.O("reels_web_use_pbs_first_shorts")&&y===0||_.PA("r_tr");this.currentPlayerIndex=y;_.O("web_enable_shorts_new_carousel_single_instance")?Z.appendChild(this.errorScreenContainer):Z.playerContainer.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else W?_.KX.addLowPriorityJob(function(){c.movePlayerToVideo(c.index,!1)}):Math.random()<=_.ey("web_shorts_error_logging_threshold")&&_.gC(new _.ul("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:W,
index:y}))};
_.f.enableFormatFirst=function(y){return _.O("web_enable_format_first")||y.adsOverlay&&_.O("web_enable_format_first_ads_only")||y.reelPlayerOverlayRenderer&&_.O("web_enable_format_first_organic_only")};
_.f.getAspectRatio=function(y){if(y!=null&&y.thumbnail&&this.enableFormatFirst(y))return"--ytd-shorts-player-ratio: "+sVX(y.thumbnail)};
_.f.getBackgroundImage=function(y){if(y!=null&&y.thumbnail){if(_.O("web_enable_format_first")){var W=sVX(y.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+W)}return(y=_.Bh(y.thumbnail.thumbnails))?'background-image:url("'+y+'");':"background-color:black;"}};
_.f.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.f.maybeMoveCinematicsToVideo=function(){var y=this;this.cinematicTransitionJobId&&_.KX.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.KX.addLowPriorityJob(function(){y.moveCinematicsToVideo()},500)};
_.f.moveCinematicsToVideo=function(){var y;(y=this.JSC$19514_cinematicController)!=null&&(y=y.currentCinematicEffect)!=null&&(y=y.storyboardManager,y.paused=!1,_.SDf(y),y.update());y=_.O("web_enable_shorts_new_carousel_single_instance")?_.p(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index);(y==null?0:y.cinematicContainer)&&y.cinematicContainer!==this.shortsCinematicContainer.parentElement&&y.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.f.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.f.updatePrevButtonData=function(){var y=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(y){var W;this.prevButtonData=y=Object.assign({},y,{accessibility:{label:_.bN("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:y.isDisabled||this.index===-(((W=this.shortsProcessedPrevSequence)==null?void 0:W.length)||0),tooltip:this.isUpArrowHidden?"":_.bN("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=y=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.f.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.f.updateNextButtonData=function(){var y=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(y){var W;this.nextButtonData=y=Object.assign({},y,{accessibility:{label:_.bN("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:y.isDisabled||this.index===((W=this.shortsProcessedSequence)==null?void 0:W.length),tooltip:_.bN("NEXT_VIDEO_LABEL")||""})}};
_.f.getPlayablePreviousIndex=function(){for(var y,W=this.index-1;W>=-(((y=this.prevShortsSequence)==null?void 0:y.length)||0);W--)if(!gWf().includes(W))return W;return null};
_.f.getIndexInSequence=function(y,W){return y.findIndex(function(c){var Z;return((Z=_.g(c.command,_.mv))==null?void 0:Z.videoId)===W})};
_.f.handlePrevButtonClick=function(y){var W=this,c,Z;return _.m(function(G){c=W.getPlayablePreviousIndex();if(c===null)return G.return();W.gestureType=((Z=y)==null?void 0:Z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c===0&&(W.hidePreviousButtonImmediately=!0);if(W.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){W.transitionToVideoThrottle.fire(c)}),G.return();
W.scrollToVideoThrottle.fire(c);_.F2(G)})};
_.f.getPlayableNextIndex=function(){for(var y,W=this.index+1;W<(((y=this.shortsProcessedSequence)==null?void 0:y.length)||0);W++)if(!gWf().includes(W))return W;return null};
_.f.handleNextButtonClick=function(y,W){var c=this,Z,G;return _.m(function(D){Z=c.getPlayableNextIndex();if(Z===null)return D.return();Z===1&&(c.showPreviousButtonImmediately=!0);c.gestureType=((G=y)==null?void 0:G.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";W&&(c.gestureType=W);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.transitionToVideoThrottle.fire(Z)}),D.return();
c.scrollToVideoThrottle.fire(Z);_.F2(D)})};
_.f.handleReelNavigateCommand=function(y,W,c){(y=_.g(y,QVM))&&W&&y.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(c)};
_.f.loadVideo=function(y,W){W=W===void 0?!1:W;if(y!==this.currentPlayerIndex){_.Sv().dispatch(EWX(!1));if(this.isAd()&&!W){var c;(c=this.player)==null||c.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.KX.cancelJob(this.cinematicTransitionJobId);if((W=this.JSC$19514_cinematicController)!=null){var Z;(Z=W.currentCinematicEffect)==null||Z.pause()}if((Z=this.JSC$19514_cinematicController)!=null){var G;(G=Z.currentCinematicEffect)==null||G.clear()}Z=y>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Z));this.getPlayer().style.visibility="hidden";_.O("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var D,Y,u,t;G=y<0?(D=this.shortsProcessedPrevSequence)==null?void 0:(Y=D[this.shortsProcessedPrevSequence.length+y])==null?void 0:Y.command:(u=this.shortsProcessedSequence)==null?void 0:(t=u[y])==null?void 0:t.command;this.index=
y;this.gestureType||(this.gestureType=Z?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");G&&this.isVideoContentCommand(G)&&(this.ytComponentBehavior.resolveCommand(G,{form:{createScreenConfig:{clickedVisualElement:Z?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(G&&this.isNonVideoContentCommand(G)){this.currentEndpoint=G;this.data=void 0;D=_.Zz();Y=_.g(G,_.Ox);var b,r;(Y=(b=_.g(Y==null?void 0:Y.renderer,_.EIZ))==
null?void 0:(r=b.screenLoggingData)==null?void 0:r.screenVeType)&&_.wR(D,Y);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}b=_.ey("reels_enable_early_continuation_offset")<=0?1:_.ey("reels_enable_early_continuation_offset");var F,K;if(((F=this.reelWatchSequenceResponse)==null?0:F.continuationEndpoint)&&((K=this.reelWatchSequenceResponse)==null?0:K.entries)&&y===this.reelWatchSequenceResponse.entries.length-b){var l,N;F={contentPlaybackContext:_.st({},(N=_.g((l=
this.currentEndpoint)==null?void 0:l.commandMetadata,_.kT))==null?void 0:N.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:F})}var P,V,Q;((P=this.reelWatchSequenceResponse)==null?0:P.prevContinuationEndpoint)&&y===-(((V=this.reelWatchSequenceResponse)==null?void 0:(Q=V.prevEntries)==null?void 0:Q.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.f.setMiniplayerPreview=function(y){y=(y===void 0?0:y)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var W,c,Z=_.U().resolve(_.Cy),G={shortsData:void 0,shortsPreviewThumbnail:y?(W=this.shortsProcessedSequence)==null?void 0:(c=W[y])==null?void 0:c.thumbnail:void 0};_.zm(Z,G)};
_.f.updateTitle=function(y){var W,c;y=(y==null?0:y.adPlacements)?"":(c=y==null?void 0:(W=y.videoDetails)==null?void 0:W.title)!=null?c:"";_.Z2(this.hostElement,"yt-update-title",y)};
_.f.registerPanel=function(y){var W=_.U().resolve(_.Xi);if(W){y=_.z(y.engagementPanels||[]);for(var c=y.next();!c.done;c=y.next()){c=c.value;var Z=c.engagementPanelSectionListRenderer,G=void 0,D=void 0,Y=void 0,u=void 0,t=((G=Z)==null?void 0:G.targetId)||((D=Z)==null?void 0:D.panelIdentifier)||((Y=Z)==null?void 0:(u=Y.identifier)==null?void 0:u.tag);G=Z=void 0;(G=(Z=W).registerPanelContent)==null||G.call(Z,t,c)}}};
_.f.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;_.Sv().dispatch(EWX(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Sv().dispatch(REn(!1));var y=_.U().resolve(_.Mt);y.dismissedIndices=[];y.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.U().resolve(_.Cy).close(!0)};
_.f.processAppendReelWatchSequenceContinuationEntriesAction=function(y){var W=this,c;(c=this.intersectionObserver)==null||c.disconnect();y=y.appendReelWatchSequenceContinuationEntriesAction;if(y==null?0:y.entries){var Z;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.No(((Z=this.reelWatchSequenceResponse)==null?void 0:Z.entries)||[]),_.No(y.entries)),continuationEndpoint:y.continuationEndpoint})}else if(y==null?0:y.prevEntries){var G;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.No(((G=this.reelWatchSequenceResponse)==null?void 0:G.prevEntries)||[]),_.No(y.prevEntries)),prevContinuationEndpoint:y.prevContinuationEndpoint});_.KX.addLowPriorityJob(function(){W.movePlayerToVideo(W.index);var D;(D=W.getActiveReelVideo(W.index))==null||D.scrollIntoView({block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.KX.addLowPriorityJob(function(){W.observeShorts()},100)};
_.f.processWatchSequence=function(y){var W=this;return y.map(function(c){c=c.command;if(W.isVideoContentCommand(c)){var Z=_.g(c,_.mv);return{reelPlayerOverlayRenderer:_.g(Z==null?void 0:Z.overlay,_.NR0),thumbnail:Z.thumbnail,command:c}}return W.isNonVideoContentCommand(c)?(Z=_.g(c,_.Ox),{reelNonVideoContentRenderer:_.g(Z==null?void 0:Z.renderer,_.EIZ),command:c}):{command:c}})};
_.f.calculateIntersectionObserverThreshold=function(){if(!_.O("web_shorts_dynamic_intersection_observer_threshold"))return.6;var y=_.p(this.hostElement).querySelector("ytd-reel-video-renderer"),W=1;(y==null?0:y.offsetHeight)&&(y==null?0:y.offsetWidth)&&(W=Math.min(y.offsetHeight,this.shortsContainer.offsetHeight)/y.offsetHeight*(Math.min(y.offsetWidth,this.shortsContainer.offsetWidth)/y.offsetWidth));return Math.round(W*.6*10)/10};
_.f.isVideoContentCommand=function(y){_.U().resolve(_.Mt);return!!_.g(y,_.mv)};
_.f.isNonVideoContentCommand=function(y){_.U().resolve(_.Mt);return!!_.g(y,_.Ox)};
_.f.initCinematicController=function(){var y=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19514_cinematicController=new _.uw(this.shortsCinematicContainer,this.player);var W,c=_.g((W=this.data)==null?void 0:W.background,_.Pc);_.zEe(this.JSC$19514_cinematicController,c);_.D33(this.JSC$19514_cinematicController,YZ3(c));_.oWX(this.JSC$19514_cinematicController);_.KX.addLowPriorityJob(function(){y.moveCinematicsToVideo()})}};
_.f.handleMiniplayerNavigateShorts=function(y){y==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():y==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.f.shouldDisplayReelVideoOverlay=function(y,W){return _.O("web_enable_shorts_new_carousel")?Math.abs(y-W)<2:!0};
_.dJ.Object.defineProperties(wJF.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.reelWatchSequenceResponse)!=null&&y.prevEntries)return this.processWatchSequence([].concat(_.No(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var y=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!y)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var W=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.No(this.prevShortsSequence.slice(0,W)),[y],_.No(this.prevShortsSequence.slice(W+
1)))}W=this.index+this.shortsProcessedPrevSequence.length;y.thumbnail=this.shortsProcessedPrevSequence[W].thumbnail;return[].concat(_.No(this.shortsProcessedPrevSequence.slice(0,W)),[y],_.No(this.shortsProcessedPrevSequence.slice(W+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.reelWatchSequenceResponse)!=null&&y.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var y=this.getCurrentShort();if(!y||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[y];if(y==null||!y.reelNonVideoContentRenderer){var W=this.getIndexInSequence(this.shortsSequence,_.g(this.currentEndpoint,_.mv).videoId);if(this.index===0&&W!==-1)return this.currentPlayerIndex=this.index=W,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.No(this.shortsSequence.slice(0,this.index)),[y],_.No(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){y.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var c,Z,G,D;W=((Z=_.g((c=this.shortsProcessedSequence[0])==null?void 0:c.command,_.mv))==null?void 0:Z.videoId)===((D=_.g((G=this.shortsSequence[0])==null?void 0:G.command,_.mv))==null?void 0:D.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.No(this.shortsProcessedSequence.slice(0,
this.index)),[y],_.No(this.shortsSequence.slice(W)))}return[y].concat(_.No(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var y=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;y&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(y)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 y,W;return this.index===((y=this.reelWatchSequenceResponse)==null?void 0:(W=y.entries)==null?void 0:W.length)}var c;return!((c=this.reelWatchSequenceResponse)==null?0:c.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var y;(y=this.delayedActiveIndexUpdateDebouncer)==null||y.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return this.isShortPlayable()||((W=_.g((y=this.data)==null?void 0:y.watchStatus,_.hd0))==null?void 0:(c=W.style)==null?void 0:c.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var y=this,W=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),c;if((this.data||W)&&(((c=this.data)==null?0:c.engagementPanels)||this.isAd()||W)){W=!1;this.activePanel="shorts-comments-panel";var Z;c=_.z(((Z=this.data)==null?void 0:Z.engagementPanels)||[]);for(Z=c.next();!Z.done;Z=c.next()){Z=Z.value.engagementPanelSectionListRenderer;var G=void 0,D=void 0,Y=void 0,u=void 0;if((((G=Z)==null?void 0:(D=G.identifier)==
null?void 0:D.tag)||((Y=Z)==null?void 0:Y.targetId)||((u=Z)==null?void 0:u.panelIdentifier))===this.activePanel){W=!0;break}}if(this.isPersistentPanelActive){var t=_.U().resolve(_.Xi);_.O("web_enable_shorts_new_carousel_single_instance")?_.Xc(_.KX,function(){t.showPanel(y.activePanel,void 0,void 0,void 0,null)},100):_.KX.addJob(function(){t.showPanel(y.activePanel,void 0,void 0,void 0,null)},0)}c=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
Z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(c===void 0&&Z===void 0||(c==null?0:c.isDisabled)||(Z==null?void 0:Z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!W){var b,r,F=(b=this.data)==null?void 0:(r=b.engagementPanels)==null?void 0:r.findIndex(function(P){var V,Q;return((V=P.engagementPanelSectionListRenderer)==null?void 0:(Q=
V.identifier)==null?void 0:Q.tag)==="shorts-comments-panel"});
if(F!==-1&&F!==void 0){var K,l;(K=this.data)==null||(l=K.engagementPanels)==null||l.splice(F,1)}var N;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.bN("COMMENTS",void 0,"Comments")}]},visibilityButton:_.y8({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.bN("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:_.bN("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.bN("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(_.No(Object.values(((N=this.data)==null?void 0:N.engagementPanels)||{})))}return(F=this.data)==null?void 0:F.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.shortsProcessedSequence)==null?void 0:y[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var y=this,W,c,Z;if((W=this.playerData)==null?0:(c=W.playabilityStatus)==null?0:(Z=c.errorScreen)==null?0:Z.playerInterstitialRenderer)return _.KX.addLowPriorityJob(function(){y.movePlayerToVideo(y.index)}),this.playerData.playabilityStatus.errorScreen;
var G,D;return((G=this.data)==null?void 0:G.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((D=this.data)==null?0:D.watchStatus)&&_.g(this.data.watchStatus,_.HU5)?(_.KX.addLowPriorityJob(function(){y.movePlayerToVideo(y.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.dJ.Object.defineProperties(wJF,{template:{configurable:!0,enumerable:!0,get:function(){if(B27===void 0){var y=document.createElement("template");_.E(y,'\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="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[!enableNewCarousel]]" 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            <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[errorScreen]]" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" index="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" is-active="[[isActiveReel(activeIndex,index,shortsProcessedPrevSequence)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n            </ytd-reel-video-renderer>\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          <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[hasError]]" id$="[[index]]" index="[[index]]" is-active="[[isActiveReel(activeIndex,index)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n          </ytd-reel-video-renderer>\n        </template>\n      </dom-repeat>\n    </template>\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    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\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    </template>\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);B27=y}y=B27;return y}}});
var KI=wJF;KI.prototype.onNextButtonDataChange=KI.prototype.onNextButtonDataChange;KI.prototype.onPrevButtonDataChange=KI.prototype.onPrevButtonDataChange;KI.prototype.lazyUpdateMiniplayerData=KI.prototype.lazyUpdateMiniplayerData;KI.prototype.onShortsPipActiveChanged=KI.prototype.onShortsPipActiveChanged;KI.prototype.setActiveIndex=KI.prototype.setActiveIndex;KI.prototype.graftNvcRenderer=KI.prototype.graftNvcRenderer;KI.prototype.graftClientVisualElements=KI.prototype.graftClientVisualElements;
KI.prototype.onActiveChanged=KI.prototype.onActiveChanged;KI.prototype.onShortsDismiss=KI.prototype.onShortsDismiss;KI.prototype.onShortUndoDismiss=KI.prototype.onShortUndoDismiss;KI.prototype.playerDataChanged=KI.prototype.playerDataChanged;KI.prototype.afterPlayerStarted=KI.prototype.afterPlayerStarted;KI.prototype.unhideCurrentOverlay=KI.prototype.unhideCurrentOverlay;KI.prototype.onServiceRequestCompleted=KI.prototype.onServiceRequestCompleted;KI.prototype.engagementPanelsChanged=KI.prototype.engagementPanelsChanged;
KI.prototype.onFullscreenChange=KI.prototype.onFullscreenChange;KI.prototype.onResize=KI.prototype.onResize;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],KI.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Ch.YtPageBehavior),_.e("design:type",Object)],KI.prototype,"ytPageBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],KI.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],KI.prototype,"ironResizableBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],KI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],KI.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],KI.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],KI.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],KI.prototype,"playerData",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"reelWatchSequenceResponse",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"cachedReelWatchSequenceResponse",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"currentEndpoint",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"nextButtonData",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"prevButtonData",void 0);
_.x([_.L(),_.e("design:type",Object)],KI.prototype,"isPreviousPageShorts",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"index",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"delayedActiveIndex",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"playablePreviousIndex",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"player",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"isPlayerPaused",void 0);
_.x([_.L({selector:tV0}),_.e("design:type",Object)],KI.prototype,"isPlayerStarted",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"intersectionObserver",void 0);_.x([_.L(),_.e("design:type",Number)],KI.prototype,"cinematicsInitializeJobId",void 0);_.x([_.L(),_.e("design:type",Number)],KI.prototype,"cinematicTransitionJobId",void 0);_.x([_.L(),_.e("design:type",Number)],KI.prototype,"updateMiniplayerDataJobId",void 0);
_.x([_.L(),_.e("design:type",Object)],KI.prototype,"fitToVisibleBounds",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"pageSubtype",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"panelShowDelayMs",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],KI.prototype,"enablePreviousContinuation",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"shortsPipEnabled",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"isDark",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"shortsViewTransitions",void 0);_.x([_.L({selector:_.zq,reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"isFullscreen",void 0);_.x([_.L({selector:_.YD,reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"isShortsPipActive",void 0);
_.x([_.jj("#shorts-inner-container"),_.e("design:type",HTMLElement)],KI.prototype,"shortsInnerContainer",void 0);_.x([_.jj("#back-nav-button ytd-button-renderer"),_.e("design:type",_.Ay)],KI.prototype,"backNavButton",void 0);_.x([_.jj("#shorts-container"),_.e("design:type",HTMLElement)],KI.prototype,"shortsContainer",void 0);_.x([_.B6("error-screen"),_.e("design:type",HTMLElement)],KI.prototype,"errorScreenContainer",void 0);
_.x([_.B6("player"),_.e("design:type",Object)],KI.prototype,"playerElement",void 0);_.x([_.B6("shorts-cinematic-container"),_.e("design:type",HTMLElement)],KI.prototype,"shortsCinematicContainer",void 0);_.x([_.B6("initial-player-container"),_.e("design:type",HTMLElement)],KI.prototype,"initialPlayerContainer",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"buttonOverride",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"anchoredPanelActive",void 0);
_.x([_.L(),_.e("design:type",String)],KI.prototype,"activePanel",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"isActive",void 0);_.x([_.L({selector:umf,reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"smallScreenPersistentPanel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"isPersistentPanelActive",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"smallScreenSqueezeBack",void 0);
_.x([_.L(),_.e("design:type",Object)],KI.prototype,"enableScrollIntoViewCenter",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"formatFirst",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"enableFlexibleOverlay",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"panelContainer",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],KI.prototype,"enableNewCarousel",void 0);
_.x([_.L(),_.e("design:type",Object)],KI.prototype,"overlayContainer",void 0);_.x([_.L(),_.e("design:type",Object)],KI.prototype,"isShortsInitialized",void 0);_.x([_.A("reelWatchSequenceResponse"),_.e("design:type",Object),_.e("design:paramtypes",[])],KI.prototype,"prevShortsSequence",null);_.x([_.A("data","prevShortsSequence"),_.e("design:type",Object),_.e("design:paramtypes",[])],KI.prototype,"shortsProcessedPrevSequence",null);
_.x([_.A("reelWatchSequenceResponse"),_.e("design:type",Object),_.e("design:paramtypes",[])],KI.prototype,"shortsSequence",null);_.x([_.A("data","shortsSequence"),_.e("design:type",Object),_.e("design:paramtypes",[])],KI.prototype,"shortsProcessedSequence",null);
_.x([_.L({reflectToAttribute:!0}),_.A("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],KI.prototype,"isUpArrowHidden",null);_.x([_.L({reflectToAttribute:!0}),_.A("reelWatchSequenceResponse","index","endOfNextContinuation"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],KI.prototype,"isDownArrowHidden",null);
_.x([_.L(),_.A("index"),_.e("design:type",Number),_.e("design:paramtypes",[])],KI.prototype,"activeIndex",null);_.x([_.A("isShortPlayable","data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],KI.prototype,"shouldRenderOfflineContent",null);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"onResize",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],KI.prototype,"anchoredEngagementPanels",null);
_.x([_.L(),_.e("design:type",Object)],KI.prototype,"watchWhileEngagementPanels",void 0);_.x([_.H("isFullscreen"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"onFullscreenChange",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"engagementPanelsChanged",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],KI.prototype,"onServiceRequestCompleted",null);_.x([_.A("data","shortsSequence","index"),_.e("design:type",Object),_.e("design:paramtypes",[])],KI.prototype,"activeReel",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"unhideCurrentOverlay",null);
_.x([_.H("isPlayerStarted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"afterPlayerStarted",null);_.x([_.A("playerData","reelWatchSequenceResponse","data"),_.e("design:type",Object),_.e("design:paramtypes",[])],KI.prototype,"errorScreen",null);_.x([_.A("errorScreen"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],KI.prototype,"hasError",null);
_.x([_.H("playerData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],KI.prototype,"playerDataChanged",null);_.x([_.B("yt-dismissible-item-undo-feedback"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"onShortUndoDismiss",null);_.x([_.B("yt-disable-lockup-interaction"),_.e("design:type",Function),_.e("design:paramtypes",[Object]),_.e("design:returntype")],KI.prototype,"onShortsDismiss",null);
_.x([_.Gs("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"onActiveChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"graftClientVisualElements",null);_.x([_.H("currentPlayerIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"graftNvcRenderer",null);
_.x([_.H("index"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"setActiveIndex",null);_.x([_.H("isShortsPipActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"onShortsPipActiveChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"lazyUpdateMiniplayerData",null);
_.x([_.L(),_.e("design:type",Object)],KI.prototype,"onOverlayDensityChanged",void 0);_.x([_.H("index","data","isUpArrowHidden"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"onPrevButtonDataChange",null);_.x([_.H("index","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],KI.prototype,"onNextButtonDataChange",null);KI=_.x([_.d({is:"ytd-shorts"})],KI);_.r$.registerService(_.Got,KI);
_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("JzFVk");
var v49=function(y){return _.X("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Ld9(y.data.ctaButton,{buttonViewModel:{}}),_.X(_.Da,{text:y.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var dkQ;var SjD;var T8Z=function(){return _.v.apply(this,arguments)||this};
_.R(T8Z,_.v);T8Z.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
T8Z.prototype.computeBlueBottomLink=function(y){return y};
var x8=T8Z;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],x8.prototype,"data",void 0);_.x([_.L({computed:"computeIcon_(data.bottomIcon)"}),_.e("design:type",String)],x8.prototype,"bottomIcon",void 0);
_.x([_.L({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.e("design:type",Boolean)],x8.prototype,"enableBlueBottomLink",void 0);x8=_.x([_.d({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],x8);
_.T(x8,"ytd-web-answer-renderer",function(){if(SjD!==void 0)return SjD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return SjD=y},{mode:_.xm("kevlar_poly_si_batch_j035")?1:2});var ap9;var xkQ=function(){var y=_.v.apply(this,arguments)||this;y.hasChipBar=!1;return y};
_.R(xkQ,_.v);xkQ.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}}};
xkQ.prototype.computeHasChipBar=function(y){return!(y==null||!y.chipBar)};
var iH=xkQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iH.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.e("design:type",Object)],iH.prototype,"hasChipBar",void 0);
iH=_.x([_.d({is:"ytd-search-header-renderer",disableElementRegistration:!0})],iH);
_.T(iH,"ytd-search-header-renderer",function(){if(ap9!==void 0)return ap9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ap9=y},{mode:1});var i_f;var MT9=function(){return _.v.apply(this,arguments)||this};
_.R(MT9,_.v);MT9.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var MX=MT9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],MX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],MX.prototype,"data",void 0);MX=_.x([_.d({disableElementRegistration:!0,is:"ytd-page-continuation"})],MX);
_.T(MX,"ytd-page-continuation",function(){if(i_f!==void 0)return i_f;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return i_f=y},{mode:1});var eqg;var w16;var qjZ;var kDH=function(){return _.v.apply(this,arguments)||this};
_.R(kDH,_.v);var jI7=kDH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jI7.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jI7.prototype,"data",void 0);jI7=_.x([_.d({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],jI7);
_.T(jI7,"ytd-watch-card-one-vs-one-event",function(){if(qjZ!==void 0)return qjZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return qjZ=y},{mode:1});var yHf=function(){return _.v.apply(this,arguments)||this};
_.R(yHf,_.v);var WE9=yHf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WE9.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WE9.prototype,"data",void 0);WE9=_.x([_.d({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],WE9);
_.T(WE9,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(w16!==void 0)return w16;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return w16=y},{mode:1});var cH7;var Zaf=function(){return _.v.apply(this,arguments)||this};
_.R(Zaf,_.v);var GOe=Zaf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],GOe.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],GOe.prototype,"data",void 0);GOe=_.x([_.d({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],GOe);
_.T(GOe,"ytd-banner-and-box-hero-image-renderer",function(){if(cH7!==void 0)return cH7;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return cH7=y},{mode:1});var fHe;var oFX=function(){var y=_.v.apply(this,arguments)||this;y.modern=_.O("web_modern_buttons");return y};
_.R(oFX,_.v);oFX.prototype.computeIcon=function(){var y,W,c=(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType;if(c)return _.wp(c)};
oFX.prototype.computeButtonShape=function(){var y;return{buttonText:_.v$((y=this.data)==null?void 0:y.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.dJ.Object.defineProperties(oFX.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"}}});
var eC=oFX;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],eC.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],eC.prototype,"modern",void 0);_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.A("data.style"),_.e("design:type",Object),_.e("design:paramtypes",[])],eC.prototype,"buttonColor",null);
eC=_.x([_.d({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],eC);
_.T(eC,"ytd-call-to-action-button-renderer",function(){if(fHe!==void 0)return fHe;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return fHe=y},{mode:1});var D1f;var ztF=function(){return _.v.apply(this,arguments)||this};
_.R(ztF,_.v);ztF.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.p(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.h3(this.data.leftThumbnail.thumbnails,216)+")")};
var wB=ztF;wB.prototype.onLeftThumbnailChanged=wB.prototype.onLeftThumbnailChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wB.prototype,"data",void 0);_.x([_.H("data.leftThumbnail"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wB.prototype,"onLeftThumbnailChanged",null);wB=_.x([_.d({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],wB);
_.T(wB,"ytd-collage-hero-image-renderer",function(){if(D1f!==void 0)return D1f;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return D1f=y},{mode:1});var YDX;var m1Q=function(){return _.v.apply(this,arguments)||this};
_.R(m1Q,_.v);m1Q.prototype.computeStyle=function(y){return y};
var qX=m1Q;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qX.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.e("design:type",String)],qX.prototype,"componentStyle",void 0);qX=_.x([_.d({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],qX);
_.T(qX,"ytd-single-hero-image-renderer",function(){if(YDX!==void 0)return YDX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YDX=y},{mode:1});var sI0;var uhM=function(){return _.v.apply(this,arguments)||this};
_.R(uhM,_.v);_.f=uhM.prototype;
_.f.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:_.O("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.f.computeSubtitle=function(y){if(this.data){var W;if(this.data.upcomingEventData){y=_.v$(y.subtitle);var c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(W=_.Lq(_.gi(y,c)))}else W=y.subtitle;return W}};
_.f.onHeroTap=function(y){y.preventDefault();var W=this.data&&this.data.navigationEndpoint;!W||!_.Cx(_.Aq(y),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Cx(_.Aq(y),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.O("kevlar_watchcard_hero_video_renderer_killswitch")?_.Z2(this.hostElement,"yt-navigate",{navigationEndpoint:W}):this.ytComponentBehavior.resolveCommand(W))};
_.f.computeHeroTabIndex=function(y){return y&&y.simpleText?-1:0};
_.f.computeHeroRole=function(y){return y&&y.simpleText?"":"link"};
_.f.computeIsReminderButtonPresent=function(y){return!(!y||!y.reminderButton)};
_.f.computeHideBottomItems=function(y){return!(this.computeIsReminderButtonPresent(y)||y.subtitle)};
_.f.dataChanged=function(){var y=this.get("data.buttons.buttonRenderer.serviceEndpoint"),W;((W=_.g(y==null?void 0:y.commandMetadata,_.rR))==null?0:W.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(y)};
var k8=uhM;k8.prototype.dataChanged=k8.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],k8.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],k8.prototype,"data",void 0);
_.x([_.L({computed:"computeSubtitle(data)"}),_.e("design:type",String)],k8.prototype,"subtitle",void 0);_.x([_.L({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],k8.prototype,"isReminderButtonPresent",void 0);_.x([_.L({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],k8.prototype,"hideBottomItems",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],k8.prototype,"dataChanged",null);k8=_.x([_.d({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],k8);
_.T(k8,"ytd-watch-card-hero-video-renderer",function(){if(sI0!==void 0)return sI0;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sI0=y},{mode:1});var tIf;var nFf=function(){return _.v.apply(this,arguments)||this};
_.R(nFf,_.v);_.f=nFf.prototype;_.f.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"}}}};
_.f.computeTitleBadges=function(y){return y?[y]:[]};
_.f.computeHeaderStyle=function(y){return y?y.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.f.computeAvatarAriaLabel=function(y){if(y){var W,c,Z,G;return(G=(W=y.avatar)==null?void 0:(c=W.accessibility)==null?void 0:(Z=c.accessibilityData)==null?void 0:Z.label)!=null?G:_.v$(y==null?void 0:y.title)}};
_.f.computeAvatarHeight=function(y){return y==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.f.computeBadgeRowClass=function(y){return(y==null?0:y[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
var jh=nFf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jh.prototype,"data",void 0);_.x([_.L({computed:"computeTitleBadges(data.titleBadge)"}),_.e("design:type",Array)],jh.prototype,"titleBadges",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.e("design:type",String)],jh.prototype,"headerStyle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.e("design:type",String)],jh.prototype,"badgeRowClass",void 0);jh=_.x([_.d({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],jh);
_.T(jh,"ytd-watch-card-rich-header-renderer",function(){if(tIf!==void 0)return tIf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return tIf=y},{mode:1});var XyQ;var baf;var rHn=function(){return _.v.apply(this,arguments)||this};
_.R(rHn,_.v);rHn.prototype.onMetadataTap=function(y){var W=this.data&&this.data.navigationEndpoint;W&&!_.Cx(_.Aq(y),this.hostElement,["A".toString()])&&_.Z2(this.hostElement,"yt-navigate",{endpoint:W})};
_.dJ.Object.defineProperties(rHn.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 y;if(this.data.upcomingEventData){var W=_.v$(this.data.subtitle),c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(y=_.Lq(_.gi(W,c)))}else y=this.data.subtitle;return y}}}});
var yP=rHn;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yP.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data.style"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],yP.prototype,"isCondensed",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],yP.prototype,"subtitle",null);
yP=_.x([_.d({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],yP);
_.T(yP,"ytd-watch-card-compact-video-renderer",function(){if(baf!==void 0)return baf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return baf=y},{mode:1});var FEX;var U19=function(){return _.v.apply(this,arguments)||this};
_.R(U19,_.v);var $1$=U19;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$1$.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$1$.prototype,"data",void 0);$1$=_.x([_.d({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],$1$);
_.T($1$,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(FEX!==void 0)return FEX;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return FEX=y},{mode:1});var KEM=function(){return _.v.apply(this,arguments)||this};
_.R(KEM,_.v);KEM.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}}}}};
var WC=KEM;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],WC.prototype,"ytRendererStamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WC.prototype,"data",void 0);WC=_.x([_.d({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],WC);
_.T(WC,"ytd-vertical-watch-card-list-renderer",function(){if(XyQ!==void 0)return XyQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XyQ=y},{mode:1});var Oaf;var gF3=function(){var y=_.v.apply(this,arguments)||this;y.ariaExpanded="false";return y};
_.R(gF3,_.v);_.f=gF3.prototype;_.f.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.f.dataChanged=function(){var y;this.currentSeasonIndex=((y=this.data)==null?void 0:y.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.f.computeEpisodesInfo=function(y,W,c){if(y!==void 0&&W.length===y.length)return y[c]};
_.f.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.f.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.f.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.f.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.f.getUppercaseSimpleString=function(y){return this.ytRendererBehavior.getSimpleString(y).toUpperCase()};
_.f.updateCurrentSeasonIndexFromBinding=function(y){this.currentSeasonIndex=y.detail.value};
var cC=gF3;cC.prototype.onIronOverlayClosed=cC.prototype.onIronOverlayClosed;cC.prototype.currentSeasonIndexChanged=cC.prototype.currentSeasonIndexChanged;cC.prototype.dataChanged=cC.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cC.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",String)],cC.prototype,"label",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],cC.prototype,"currentSeasonIndex",void 0);_.x([_.L({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.e("design:type",Object)],cC.prototype,"episodesInfo",void 0);_.x([_.L({value:"false"}),_.e("design:type",Object)],cC.prototype,"ariaExpanded",void 0);_.x([_.jj("#lists"),_.e("design:type",Object)],cC.prototype,"lists",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cC.prototype,"dataChanged",null);_.x([_.Gs("currentSeasonIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cC.prototype,"currentSeasonIndexChanged",null);_.x([_.B("iron-overlay-closed"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],cC.prototype,"onIronOverlayClosed",null);
cC=_.x([_.d({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],cC);
_.T(cC,"ytd-watch-card-section-dropdown-renderer",function(){if(Oaf!==void 0)return Oaf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Oaf=y},{mode:1});var RtM;var lHM=function(){var y=_.v.apply(this,arguments)||this;y.isSearch=!1;return y};
_.R(lHM,_.v);lHM.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}}}}};
var ZD=lHM;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ZD.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],ZD.prototype,"isSearch",void 0);ZD=_.x([_.d({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],ZD);
_.T(ZD,"ytd-watch-card-section-sequence-renderer",function(){if(RtM!==void 0)return RtM;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return RtM=y},{mode:1});var Ld9=_.ug({buttonViewModel:_.OV});_.eu(v49);_.TP(v49,"ytd-button-banner-view-model",{propNames:["data"]});var EFe=function(){var y=_.v.apply(this,arguments)||this;y.isSearch=!1;return y};
_.R(EFe,_.v);
EFe.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"}}}};
var Go=EFe;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Go.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Go.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],Go.prototype,"rounded",void 0);_.x([_.L(),_.e("design:type",Object)],Go.prototype,"isSearch",void 0);
Go=_.x([_.d({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Go);
_.T(Go,"ytd-universal-watch-card-renderer",function(){if(eqg!==void 0)return eqg;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return eqg=y},{mode:1});var Ng3;_.A3(_.Ax(function(y){var W=y.data;var c;y=!((c=_.U().resolve(_.xN(_.EH)))==null||!c());c={};return _.X("overview-message-view-model",{class:_.Mi("ytwOverviewMessageViewModelHost",(c.ytwOverviewMessageViewModelDarkBackground=y,c.ytwOverviewMessageViewModelLightBackground=!y,c))},_.X(_.YN,{cond:function(){return W().primaryImage},
then:function(Z){return _.X(_.J3,{data:Z,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.X(_.YN,{cond:function(){return W().primaryText},
then:function(){return _.X("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.X(_.Da,{text:function(){return W().primaryText}}))}}),_.X(_.YN,{cond:function(){return W().secondaryText},
then:function(){return _.X("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.X(_.Da,{text:function(){return W().secondaryText}}))}}))},"Gh"),"overview-message-view-model",{props:{data:_.Ix}});_.TP(_.OaQ,"ytd-overview-answer-view-model",{propNames:["data"]});var IHn=function(){return _.v.apply(this,arguments)||this};
_.R(IHn,_.v);IHn.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"}}}};
IHn.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
var fI=IHn;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],fI.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fI.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],fI.prototype,"isSearch",void 0);
fI=_.x([_.d({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],fI);
_.T(fI,"ytd-secondary-search-container-renderer",function(){if(Ng3!==void 0)return Ng3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return Ng3=y},{mode:1});var pyf;var PfX=function(){var y=_.v.apply(this,arguments)||this;y.renderSecondarySearchContainer=!1;y.isSearch=!1;y.isSearchDova=_.O("dova_on_search");return y};
_.R(PfX,_.v);_.f=PfX.prototype;_.f.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"}}}};
_.f.created=function(){var y=this;this.boundStampSecondarySearchContainerIfFits=function(){y.stampSecondarySearchContainerIfFits()};
_.l1("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.f.computeIsSearchFrictionPage=function(y){var W,c,Z,G,D;y=y==null?void 0:(W=y.primaryContents)==null?void 0:(c=W.sectionListRenderer)==null?void 0:(Z=c.contents)==null?void 0:(G=Z[0])==null?void 0:(D=G.itemSectionRenderer)==null?void 0:D.contents;if(!y)return!1;W=_.z(y);for(c=W.next();!c.done;c=W.next())if(Z=void 0,(Z=c.value)==null?0:Z.searchFrictionViewModel)return!0;return!1};
_.f.computeShowSecondaryColumn=function(y,W){return!!(W&&W.secondaryContents&&y)};
_.f.activeChanged=function(){var y=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.qO(this,this.debounceStampSecondarySearchContainerIfFits)),_.O0(function(){y.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.qO(this,this.debounceStampSecondarySearchContainerIfFits))};
_.f.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.f.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.f.debounceStampSecondarySearchContainerIfFits=function(){_.gp(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.f.onRetrieveLocation=function(y,W){W.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);y.stopPropagation()};
_.f.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
var oy=PfX;oy.prototype.dataChanged=oy.prototype.dataChanged;oy.prototype.onRetrieveLocation=oy.prototype.onRetrieveLocation;oy.prototype.persistentGuideChanged=oy.prototype.persistentGuideChanged;oy.prototype.activeChanged=oy.prototype.activeChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],oy.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],oy.prototype,"ironResizableBehavior",void 0);_.x([_.L(),_.e("design:type",Boolean)],oy.prototype,"active",void 0);_.x([_.L(),_.e("design:type",Object)],oy.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.O("enable_desktop_search_bigger_thumbs")}}),
_.e("design:type",Boolean)],oy.prototype,"useBiggerThumbs",void 0);_.x([_.L({reflectToAttribute:!0,value:function(){return _.wj("desktop_search_bigger_thumbs_style")}}),
_.e("design:type",String)],oy.prototype,"biggerThumbsStyle",void 0);_.x([_.L(),_.e("design:type",Object)],oy.prototype,"renderSecondarySearchContainer",void 0);_.x([_.L({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.e("design:type",Boolean)],oy.prototype,"showSecondaryColumn",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.e("design:type",Boolean)],oy.prototype,"isSearchFrictionPage",void 0);
_.x([_.L(),_.e("design:type",Object)],oy.prototype,"isSearch",void 0);_.x([_.L(),_.e("design:type",Object)],oy.prototype,"isSearchDova",void 0);_.x([_.H("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],oy.prototype,"activeChanged",null);_.x([_.H("guidePersistentAndVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],oy.prototype,"persistentGuideChanged",null);
_.x([_.B("yt-retrieve-location"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],oy.prototype,"onRetrieveLocation",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],oy.prototype,"dataChanged",null);oy=_.x([_.d({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],oy);
_.T(oy,"ytd-two-column-search-results-renderer",function(){if(pyf!==void 0)return pyf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return pyf=y},{mode:1});var JHf=function(){var y=_.v.apply(this,arguments)||this;y.hasSearchHeader=!1;y.hasSecondaryContent=!1;y.hasBiggerThumbs=_.O("enable_desktop_search_bigger_thumbs");y.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return y};
_.R(JHf,_.v);_.f=JHf.prototype;_.f.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:_.rc(["aa","eocs"])}}};
_.f.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.loadPage_=function(y){this.initCsi();y&&(this.data=y,_.l1("REFINEMENTS_TUPLE",["FromSearchResponse",y.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Bn(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.f.initCsi=function(){_.J8d("results",["ol","cpt"])};
_.f.updateTitle=function(){var y=_.Q4(window.location.href,"q");y||(y=_.Q4(window.location.href,"search_query"));_.Z2(this.hostElement,"yt-update-title",y||"")};
_.f.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.f.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.O("web_srp_data_changed_terminate_imp_killswitch")||_.GG(this.hostElement,"yt-terminate-video-preview-action")};
_.f.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.f.computeHasSearchHeader=function(y){var W;y=y==null?void 0:(W=y.header)==null?void 0:W.searchHeaderRenderer;return!!y&&(!!y.searchFilterButton||!!y.chipBar)};
_.f.computeHasSecondaryContent=function(y){var W,c;return!!(y==null?0:(W=y.contents)==null?0:(c=W.twoColumnSearchResultsRenderer)==null?0:c.secondaryContents)};
_.dJ.Object.defineProperties(JHf,{template:{configurable:!0,enumerable:!0,get:function(){if(dkQ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);dkQ=y}y=dkQ;return y}}});
var DD=JHf;DD.prototype.onReloadContinuationFinish=DD.prototype.onReloadContinuationFinish;DD.prototype.dataChanged=DD.prototype.dataChanged;_.x([_.C(_.Ch.YtPageBehavior),_.e("design:type",Object)],DD.prototype,"ytPageBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],DD.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],DD.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],DD.prototype,"data",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],DD.prototype,"monitorScroll",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],DD.prototype,"hasSearchHeader",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],DD.prototype,"hasSecondaryContent",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],DD.prototype,"hasBiggerThumbs",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],DD.prototype,"dataChanged",null);
_.x([_.B("yt-reload-continuation-finish"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],DD.prototype,"onReloadContinuationFinish",null);DD=_.x([_.d({is:"ytd-search"})],DD);_.r$.registerService(_.ZIy,DD);
_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("h8y2qb");
var CHZ=function(y){if(y=_.ozt(y)){var W;(W=y.sources)!=null&&W[0]?(W=_.zQE(y),W=W<1?"VERTICAL":W>1?"HORIZONTAL":"SQUARE"):W=void 0;return W}},Q_=function(y){_.th.call(this,"upload");
this.opts.query=y},A8D=function(y,W){return _.X(QpD,{data:y,
onYtNavigate:W})},BBQ=function(y,W){return y.map(function(c){if(c.tabRenderer)return hB6(c.tabRenderer);
if(c.expandableTabRenderer&&W){var Z=c.expandableTabRenderer;return{customTabRenderable:function(){return W(Z)}}}return{}})},hB6=function(y){return{identifier:y.tabIdentifier,
aTagConfig:_.KN({innertubeCommand:y.endpoint,forceNewState:!0}),title:y.title,selected:y.selected,disabled:y.unselectable}},Hz9=function(y,W){return _.fq(y.entities,"pageHeaderEntity",W)},dX6=function(y){var W=y.data;
var c=y.noPadding===void 0?!1:y.noPadding;var Z=y.enableBanner===void 0?!1:y.enableBanner;var G=y.cinematicContainerTopbarOffset;var D=y.allowCinematicContainerOverflow===void 0?!1:y.allowCinematicContainerOverflow;y=y.displayAsSidebar===void 0?!1:y.displayAsSidebar;if(W==null?0:W.tagManagerId)_.zI(W.tagManagerId,_.Nn("GL")),L56(W.tagManagerId);a:{if(W.pageHeaderEntityKey){var Y=_.cG(Hz9,W.pageHeaderEntityKey);if(Y==null?0:Y.header){Y=Y==null?void 0:Y.header;break a}}Y=y&&W.sidebarContent?W.sidebarContent:
W.content}return _.X("yt-page-header-renderer",{class:"page-header-renderer-wiz"},v83(Y,{pageHeaderViewModel:{noPadding:c,enableBanner:Z,cinematicContainerTopbarOffset:G,allowCinematicContainerOverflow:D,displayAsSidebar:y&&W.enableSidebarView}}))},SwZ=function(y){return _.jv({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:y})},L56=function(y){if(!_.vF(document,"gtm-noscript")){var W=document.createElement("noscript");
W.id="gtm-noscript";W.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+y+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(W)}};_.j6(Q_,_.th);Q_.prototype.JSC$7940_setLabel=function(y){Q_.superClass_.JSC$7940_setLabel.call(this,y);return this};
Q_.prototype.addUploadMetadata=function(y,W){Q_.superClass_.addUploadMetadata.call(this,y,W);return this};var TB9=function(y){if(y!=="youtubebanner"&&y!=="youtube-channel-banner")throw Error("Tl");Q_.call(this,y)};
_.R(TB9,Q_);TB9.prototype.JSC$7940_setLabel=function(y){Q_.prototype.JSC$7940_setLabel.call(this,y);return this};
TB9.prototype.addUploadMetadata=function(y,W){Q_.prototype.addUploadMetadata.call(this,y,W);return this};var aw6=[_.K7,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(y){_.UL(y).path[0]!==this&&(this.resetLayout(),y.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var y=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.kj(this._layoutDebouncer,_.mI,y);_.j0(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var y=this;requestAnimationFrame(function(){y.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(y){this.resizerShouldNotify(y)&&this._notifyDescendant(y)},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 xXH=[_.M8Z,{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(y,W){var c=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[y];if(!c)throw new ReferenceError(this._getUndefinedMsg(y));y=this._boundEffect(c,W||{});y.setUp();return y},
_effectsChanged:function(y,W,c){this._tearDownEffects();y&&c&&(y.split(" ").forEach(function(Z){var G;Z!==""&&((G=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Z])?this._effects.push(this._boundEffect(G,W[Z])):console.warn(this._getUndefinedMsg(Z)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(y,W){W=W||{};var c=parseFloat(W.startsAt||0),Z=parseFloat(W.endsAt||1),G=Z-c,D=function(){};
Z=c===0&&Z===1?y.run:function(Y,u){y.run.call(this,Math.max(0,(Y-c)/G),u)};
return{setUp:y.setUp?y.setUp.bind(this,W):D,run:y.run?Z.bind(this):D,tearDown:y.tearDown?y.tearDown.bind(this):D}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(y){y.setUp()!==!1&&this._effectsRunFn.push(y.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(y){y.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(y,W){this._effectsRunFn&&this._effectsRunFn.forEach(function(c){c(y,W)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var y=this._clampedScrollTop;this._updateScrollState(y);this.threshold>0&&this._setThresholdTriggered(y>=this.threshold)}},
_getDOMRef:function(y){console.warn("_getDOMRef","`"+y+"` is undefined")},
_getUndefinedMsg:function(y){return"Scroll effect `"+y+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+y+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ul`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(y){var W={};y=parseFloat(y.scalar);W.background=this._getDOMRef("background");W.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");W.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");W.deltaBg=W.backgroundFrontLayer.offsetHeight-W.background.offsetHeight;W.deltaBg===0?(isNaN(y)&&(y=.8),W.deltaBg=(this._dHeight||0)*y):(isNaN(y)&&(y=
1),W.deltaBg*=y);this._fxParallaxBackground=W},
run:function(y){var W=this._fxParallaxBackground;this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,y)+"px, 0px)",W.backgroundFrontLayer);W.backgroundRearLayer&&this.transform("translate3d(0px, "+W.deltaBg*Math.min(1,y)+"px, 0px)",W.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var iz6;var MCf;var eBQ=function(){};
_.f=eBQ.prototype;_.f._scrollTargetChanged=function(){};
_.f.scroll=function(){};
_.f._isValidScrollTarget=function(){};
_.f._toggleScrollListener=function(){};
_.f.toggleScrollListener=function(){};
_.f.createEffect=function(){};
_.f._effectsChanged=function(){};
_.f._layoutIfDirty=function(){};
_.f._boundEffect=function(){};
_.f._setUpEffect=function(){};
_.f._tearDownEffects=function(){};
_.f._runEffects=function(){};
_.f._scrollHandler=function(){};
_.f._scrollStateChanged=function(){};
_.f._getUndefinedMsg=function(){};
_.f.notifyResize=function(){};
_.f.assignParentResizable=function(){};
_.f.stopResizeNotificationsFor=function(){};
_.f._subscribeIronResize=function(){};
_.f._unsubscribeIronResize=function(){};
_.f.resizerShouldNotify=function(){};
_.f._onDescendantIronResize=function(){};
_.f._fireResize=function(){};
_.f._onIronRequestResizeNotifications=function(){};
_.f._parentResizableChanged=function(){};
_.f._notifyDescendant=function(){};
_.f._requestResizeNotifications=function(){};
_.f._findParent=function(){};
_.f._appResetLayoutHandler=function(){};
_.f.resetLayout=function(){};
_.f._notifyLayoutChanged=function(){};
_.f._notifyDescendantResize=function(){};
_.f._setThresholdTriggered=function(){};
eBQ=_.mD({_template:function(){if(MCf!==void 0)return MCf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;iz6===void 0&&(iz6=document.createElement("template"));var Z=iz6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return MCf=y},
is:"tp-yt-app-header",behaviors:[xXH,aw6],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 y=_.UL(this.$.slot).getDistributedNodes(),W=0,c;c=y[W];W++)if(c.nodeType===Node.ELEMENT_NODE)if(c.hasAttribute("sticky")){this._stickyElRef=c;break}else this._stickyElRef||(this._stickyElRef=c);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var y=this._clampedScrollTop,W=this._height===0||y===0,c=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;W||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();W?this._updateScrollState(y,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=c}},
_updateScrollState:function(y,W){if(this._height!==0){var c=0,Z=this._top;var G=this._maxHeaderTop;var D=y-this._lastScrollTop,Y=Math.abs(D),u=y>this._lastScrollTop,t=performance.now();this._mayMove()&&(c=this._clamp(this.reveals?Z+D:y,0,G));y>=this._dHeight&&(c=this.condenses&&!this.fixed?Math.max(this._dHeight,c):c,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Y<100){if(t-this._initTimestamp>300||this._wasScrollingDown!==u)this._initScrollTop=y,this._initTimestamp=t;y>=G&&
(Math.abs(this._initScrollTop-y)>30||Y>10?(u&&y>=G?c=G:!u&&y>=this._dHeight&&(c=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((c-Z)/(D/(t-this._lastTimestamp)),0,300)+"ms"):c=this._top)}G=this._dHeight===0?y>0?1:0:c/this._dHeight;W||(this._lastScrollTop=y,this._top=c,this._wasScrollingDown=u,this._lastTimestamp=t);if(W||G!==this._progress||Z!==c||y===0)this._progress=G,this._runEffects(G,c),this._transformHeader(c)}},
_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(y){this.translate3d(0,-y+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&y>=this._stickyElTop?Math.min(y,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(y,W,c){return Math.min(c,Math.max(W,y))},
_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),_.UL(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(y){switch(y){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.UL(this).querySelector("[main-title]");case "condensedTitle":return _.UL(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var wdg;var qwQ;_.mD({_template:function(){if(qwQ!==void 0)return qwQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;wdg===void 0&&(wdg=document.createElement("template"));var Z=wdg;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return qwQ=y},
is:"tp-yt-app-header-layout",behaviors:[aw6],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.UL(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var y=this.header;if(this.isAttached&&y){this.$.wrapper.classList.remove("initializing");y.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)y.style.left=
"",y.style.right="";else{var W=this.getBoundingClientRect(),c=document.documentElement.clientWidth-W.right;y.style.left=W.left+"px";y.style.right=c+"px"}W=this.$.contentContainer.style;c=y.offsetHeight;y.fixed&&!y.condenses&&this.hasScrollingRegion?(W.marginTop=c+"px",W.paddingTop=""):(W.paddingTop=c+"px",W.marginTop="")}}});var k_9=new _.w("replaceFeedContentAction");var jyf=new _.w("alertCommand");var yiQ=new _.w("manageLabsStateCommand");var Wwg=new _.w("channelBannerEditorRenderer");var ciD=new _.w("inlineFormRenderer");var ZI3=new _.w("playlistSidebarPrimaryInfoRenderer");var Go6=new _.w("productDetailsThumbnailRenderer"),fDB=new _.w("productDetailsVariantRenderer"),owd=new _.w("productDetailsVariantOptionRenderer"),Dx6=new _.w("productDetailsOffersContainerRenderer"),z7D=new _.w("productDetailsOfferRenderer");var YCB=new _.w("shoppingFlaggingRenderer");var mxd=new _.w("playlistBylineRenderer");var syS=new _.w("insertChannelTabCommand");var uJS=function(){return _.cQ.apply(this,arguments)||this};
_.R(uJS,_.cQ);_.f=uJS.prototype;_.f.activeChanged=function(){if(this.active){var y=_.p(this.hostElement).querySelector("#header");y&&_.Z2(y,"iron-resize");window.addEventListener("scroll",_.qO(this,this.onScroll))}else window.removeEventListener("scroll",_.qO(this,this.onScroll)),_.Z2(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.f.guideVisibleChanged=function(){var y=_.p(this.hostElement).querySelector("#header");y&&_.Z2(y,"iron-resize")};
_.f.onScroll=function(){var y=this;_.gp(this,"onScroll",function(){var W=_.p(y.hostElement).querySelector("#header");W&&W.polymerController&&(W=W.polymerController.getScrollState().progress===1?"standard":"seamed",_.Z2(y.hostElement,"yt-request-panel-mode-change",{mode:W}))},10)};
_.f.tabsChanged=function(){if(this.tabs){for(var y=null,W=0,c=this.tabs.length;W<c;++W){var Z=this.tabs[W].tabRenderer;if(Z&&Z.selected){y=W;break}}this.selected=y}};
_.f.onTabsActivate=function(y){_.Z2(this.hostElement,"yt-navigate",{endpoint:this.tabs[y.detail.selected].tabRenderer.endpoint})};
var AR=uJS;AR.prototype.tabsChanged=AR.prototype.tabsChanged;AR.prototype.guideVisibleChanged=AR.prototype.guideVisibleChanged;AR.prototype.activeChanged=AR.prototype.activeChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],AR.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.L(),_.e("design:type",Array)],AR.prototype,"tabs",void 0);
_.x([_.L(),_.e("design:type",Object)],AR.prototype,"selected",void 0);_.x([_.L(),_.e("design:type",Boolean)],AR.prototype,"active",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],AR.prototype,"disableHeaderFluidWidth",void 0);_.x([_.H("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],AR.prototype,"activeChanged",null);
_.x([_.H("guidePersistentAndVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],AR.prototype,"guideVisibleChanged",null);_.x([_.H("tabs"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],AR.prototype,"tabsChanged",null);AR=_.x([_.ZV()],AR);var th6=[_.k.YtRendererBehavior,_.N6.YtdGuideStateAwareBehavior,AR.prototype];var nwS=2/3,XC6=_.se(130749),bID=function(y,W){var c=this;this.element=y;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){c.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:nwS,moveAction:function(Z){c.moveAction(Z)},
triggerAction:function(){c.element.isReloading=!0;_.lv(_.Zz(),{visualElement:XC6});_.km.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:c.element}})}}}};
_.kI(_.Zz(),XC6,this.layer);this.gesture=new _.Kh(y,W,this.refreshConfig,"pan-down");this.attach()};
_.f=bID.prototype;_.f.attach=function(){this.gesture.attach()};
_.f.detach=function(){this.gesture.detach()};
_.f.reset=function(){this.element.close()};
_.f.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.f.moveAction=function(y){this.element.rotation=y*360};var rif=_.se(130750),hR=function(y,W,c,Z,G){var D=this;this.element=y;this.parent=c;this.channelHeader=Z;this.ytdReduxDispatch=G;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){D.tabsStartAtInPx=D.channelHeader.clientHeight-48;var Y;(Y=D.selectedTab)!=null&&Y.title&&(Y=_.U().resolve(_.xN(_.h7)))&&(Y=Y.getCurrentPage(),D.lastVisitedTabScrollPosition=Y.getScrollTop(),D.previousTab&&
((D.lastVisitedTabScrollPosition===void 0?0:D.lastVisitedTabScrollPosition<D.channelHeader.clientHeight-48)?D.scrollPositionForTabs.has(D.selectedTab.title)&&D.scrollPositionForTabs.delete(D.selectedTab.title):D.scrollPositionForTabs.set(D.selectedTab.title,Y.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:FwD(),triggerAction:function(){D.navigate(D.previousTab)},
moveAction:function(Y,u){D.moveAction(Y,u)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-FwD(),triggerAction:function(){D.navigate(D.nextTab)},
moveAction:function(Y,u){D.moveAction(Y,u)}}}};
_.kI(_.Zz(),rif,this.layer);this.gesture=new _.Kh(y,W,this.tabConfig);this.attach()};
hR.prototype.attach=function(){this.gesture.attach()};
hR.prototype.detach=function(){this.gesture.detach()};
hR.prototype.tabsChanged=function(y){if(y){var W=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;y=_.z(y);for(var c=y.next();!c.done;c=y.next()){c=c.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=c);var Z=void 0;if((Z=c)==null?0:Z.selected)this.previousTab=W,this.selectedTab=c;W=c}W=this.gesture;y=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
W.config=y;this.scrollPositionNeedsUpdate=!0}};
hR.prototype.moveAction=function(y,W){if(!this.tabsElement){var c;this.tabsElement=(c=this.parent.header)==null?void 0:c.tabsElement;W==="right"&&this.previousTab?_.A22(_.wF.instance,this.previousTab.endpoint,{},""):W==="left"&&this.nextTab&&_.A22(_.wF.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}c=this.tabsElement._pos;W==="right"&&(y*=-1);this.tabsElement._positionBar(c.width,c.left*1+c.width*y)};
var FwD=function(){var y,W;return(W=(y=_.U().resolve(_.h7).getCurrentPage())==null?void 0:y.clientWidth)!=null?W:0};
hR.prototype.navigate=function(y){this.element.data=void 0;if(y=y==null?void 0:y.endpoint)this.ytdReduxDispatch(SwZ(!0)),_.lv(_.Zz(),{visualElement:rif}),_.km.instance.resolveCommand({navigateAction:{endpoint:y}},{form:{element:this.element}})};var Uxd;var $xZ;var KwB=function(){return _.v.apply(this,arguments)||this};
_.R(KwB,_.v);KwB.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var Bc=KwB;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Bc.prototype,"data",void 0);Bc=_.x([_.d({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Bc);
_.T(Bc,"ytd-labs-edit-renderer",function(){if($xZ!==void 0)return $xZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return $xZ=y},{mode:1});var OId;var Hc=function(){var y=_.v.apply(this,arguments)||this;y.dark=!1;y.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";y.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(Hc,_.v);Hc.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Hc.prototype.ready=function(){var y=document.documentElement.hasAttribute("dark");this.setBackgroundImage(y);this.dark=y};
Hc.prototype.onDarkModeToggledAction=function(y){this.setBackgroundImage(y);this.dark=y};
Hc.prototype.setBackgroundImage=function(y){_.wM(this.hostElement,{"--yt-labs-header-background":"url("+(y?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
var Lh=Hc;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Lh.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Lh.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Lh.prototype,"dark",void 0);
Lh=_.x([_.d({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Lh);
_.T(Lh,"ytd-labs-header-renderer",function(){if(OId!==void 0)return OId;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return OId=y},{mode:1});var gwD;var vc=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return y};
_.R(vc,_.v);vc.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"}}}}}};
vc.prototype.onYtToggleButton=function(y){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",y.detail.toggled)};
vc.prototype.onManageLabsState=function(y){if(y=_.g(y,yiQ))y.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?y.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&y.labsItemId===this.data.labsItemId&&(y.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.GG(this.hostElement,"yt-check-labs-opted-in-state").some(function(W){return W})&&this.data.confirmationDialogCommand?_.mq(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.U().resolve(_.i1).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&y.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.U().resolve(_.i1).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
vc.prototype.onCheckLabsOptedInState=function(){var y=this.get("data.primaryButton.toggleButtonRenderer");return y?y.isToggled:!1};
_.dJ.Object.defineProperties(vc.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
var dn=vc;dn.prototype.onYtToggleButton=dn.prototype.onYtToggleButton;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],dn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],dn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],dn.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],dn.prototype,"itemStyle",null);_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],dn.prototype,"onYtToggleButton",null);dn=_.x([_.d({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],dn);
_.T(dn,"ytd-labs-item-renderer",function(){if(gwD!==void 0)return gwD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return gwD=y},{mode:1});var R7D;var lD9;var Ewf=function(){return _.v.apply(this,arguments)||this};
_.R(Ewf,_.v);var ND6=Ewf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ND6.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ND6.prototype,"data",void 0);ND6=_.x([_.d({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],ND6);
_.T(ND6,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(lD9!==void 0)return lD9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lD9=y},{mode:1});var IDZ;var pCf=function(){return _.v.apply(this,arguments)||this};
_.R(pCf,_.v);pCf.prototype.observeSuperchatChip=function(){if(this.data){var y={"--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)};_.wM(this.hostElement,y)}};
pCf.prototype.colorFromDecimal=function(y){return _.KZ(Number(y||0))};
var Sf=pCf;Sf.prototype.observeSuperchatChip=Sf.prototype.observeSuperchatChip;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Sf.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Sf.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sf.prototype,"observeSuperchatChip",null);Sf=_.x([_.d({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Sf);
_.T(Sf,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(IDZ!==void 0)return IDZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return IDZ=y},{mode:1});var Pw9=function(){return _.v.apply(this,arguments)||this};
_.R(Pw9,_.v);Pw9.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"}}}};
_.dJ.Object.defineProperties(Pw9.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
var T8=Pw9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.OO),_.e("design:type",Object)],T8.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],T8.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],T8.prototype,"hideMessageBlock",null);
T8=_.x([_.d({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],T8);
_.T(T8,"ytd-live-chat-history-entry-renderer",function(){if(R7D!==void 0)return R7D;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return R7D=y},{mode:1});var Ji3;var VhD=function(){return _.v.apply(this,arguments)||this};
_.R(VhD,_.v);var CwD=VhD;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],CwD.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],CwD.prototype,"data",void 0);CwD=_.x([_.d({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],CwD);
_.T(CwD,"ytd-channel-options-renderer",function(){if(Ji3!==void 0)return Ji3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Ji3=y},{mode:1});var QyD;var AiS=function(){return _.v.apply(this,arguments)||this};
_.R(AiS,_.v);AiS.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
var aG=AiS;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],aG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],aG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aG.prototype,"data",void 0);aG=_.x([_.d({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],aG);
_.T(aG,"ytd-settings-email-item-renderer",function(){if(QyD!==void 0)return QyD;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return QyD=y},{mode:1});var h7Q;var xf=function(){return _.v.apply(this,arguments)||this};
_.R(xf,_.v);xf.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"}}}};
xf.prototype.getExpansionIcon=function(y){return y?"arrow_drop_up":"arrow_drop_down"};
xf.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.dJ.Object.defineProperties(xf.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
var iP=xf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iP.prototype,"data",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],iP.prototype,"expanded",void 0);
_.x([_.A("expanded"),_.e("design:type",String),_.e("design:paramtypes",[])],iP.prototype,"emailListExpanded",null);_.x([_.jj("#options"),_.e("design:type",Object)],iP.prototype,"options",void 0);iP=_.x([_.d({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],iP);
_.T(iP,"ytd-settings-email-list-renderer",function(){if(h7Q!==void 0)return h7Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return h7Q=y},{mode:1});var BDd;var HI6=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return y};
_.R(HI6,_.v);HI6.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"}}}};
HI6.prototype.handleSignalActionSubmitForm=function(){var y,W=(y=this.formRenderer)==null?void 0:y.getForm();W&&this.data.serviceEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})})};
var M5=HI6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],M5.prototype,"data",void 0);_.x([_.jj("yt-form-renderer"),_.e("design:type",Object)],M5.prototype,"formRenderer",void 0);
M5=_.x([_.d({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],M5);
_.T(M5,"ytd-settings-gaia-link-renderer",function(){if(BDd!==void 0)return BDd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return BDd=y},{mode:1});var Lw3;var ef=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return y};
_.R(ef,_.v);ef.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.R2B()&&this.set("data.hidden",!1)};
ef.prototype.onSwitchReady=function(){var y=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.O("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.gM9().then(function(W){W&&(Notification.permission==="default"?y.set("data.hidden",!1):Notification.permission==="granted"&&_.LK("NotificationsDisabled").then(function(c){c||_.GG(y.hostElement,"yt-toggle-settings-switch",[y.data.id,!c]);y.set("data.hidden",!1)}).catch(function(){}))})})};
ef.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}}}}};
ef.prototype.handleUpdateOptionsCommand=function(y){(y=_.g(y,_.R_E))&&this.data&&this.data.id===y.id&&(this.set("data.hidden",y.hidden),y.text!==void 0&&this.set("data.text",y.text),y.clearOptions&&this.set("data.options",[]))};
var wn=ef;wn.prototype.onSwitchReady=wn.prototype.onSwitchReady;wn.prototype.dataChanged=wn.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],wn.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],wn.prototype,"data",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wn.prototype,"dataChanged",null);_.x([_.B("yt-settings-switch-ready"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wn.prototype,"onSwitchReady",null);wn=_.x([_.d({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],wn);
_.T(wn,"ytd-settings-options-renderer",function(){if(Lw3!==void 0)return Lw3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Lw3=y},{mode:1});var vw6;var dxH=function(){return _.v.apply(this,arguments)||this};
_.R(dxH,_.v);dxH.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
dxH.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
var q5=dxH;q5.prototype.onYtExpanderMoreTapped=q5.prototype.onYtExpanderMoreTapped;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],q5.prototype,"data",void 0);
_.x([_.B("yt-expander-more-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],q5.prototype,"onYtExpanderMoreTapped",null);q5=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],q5);
_.T(q5,"ytd-product-details-description-renderer",function(){if(vw6!==void 0)return vw6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vw6=y},{mode:1});var SCD;var TDg=function(){var y=_.v.apply(this,arguments)||this;y.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";y.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";y.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";y.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return y};
_.R(TDg,_.v);TDg.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.dJ.Object.defineProperties(TDg.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:(W=y.offerData)==null?void 0:W.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?void 0:y.purchaseButtonRenderers)!==void 0&&((W=this.data)==null?void 0:W.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.formattedFromMerchantText)&&(!((W=this.data)==null||!W.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
var kf=TDg;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],kf.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kf.prototype,"data",void 0);
_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0}),_.e("design:type",Object)],kf.prototype,"shippingIcon",void 0);_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0}),_.e("design:type",Object)],kf.prototype,"shippingAddressIcon",void 0);_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0}),_.e("design:type",Object)],kf.prototype,"googleGuaranteeIcon",void 0);
_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?String:void 0}),_.e("design:type",Object)],kf.prototype,"returnPolicyIcon",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],kf.prototype,"showAdditionalFees",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],kf.prototype,"showMultiPurchaseButtons",null);
_.x([_.A("data","showMultiPurchaseButtons"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],kf.prototype,"showPurchaseData",null);kf=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],kf);
_.T(kf,"ytd-product-details-hero-offer-renderer",function(){if(SCD!==void 0)return SCD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return SCD=y},{mode:1});var aDD;var xxd;var iIQ=function(){return _.v.apply(this,arguments)||this};
_.R(iIQ,_.v);_.f=iIQ.prototype;_.f.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.f.onKeyDown=function(y){y=y.keyCode;y!==13&&y!==32||this.handleSelection()};
_.f.onMouseEnterImage=function(){var y;((y=this.data)==null?void 0:y.thumbnailDetails)!==void 0&&_.fl(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.f.onMouseLeaveImage=function(){_.fl(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.f.handleSelection=function(){this.data&&_.Z2(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.dJ.Object.defineProperties(iIQ.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.isSelected)}}});
var jC=iIQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jC.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],jC.prototype,"isSelected",null);jC=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],jC);
_.T(jC,"ytd-product-details-thumbnail-renderer",function(){if(xxd!==void 0)return xxd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return xxd=y},{mode:1});var MhH=function(){var y=_.v.apply(this,arguments)||this;var W={};y.actionMap=(W["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",W["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",W);y.selectedThumbnailIndex=0;y.selectItem=function(c){c.target.onKeyDown(c)};
return y};
_.R(MhH,_.v);_.f=MhH.prototype;_.f.handlePreviewImageSelect=function(y){this.hoverThumbnail=y};
_.f.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.f.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.f.onThumbnailSelected=function(y,W){this.selectedThumbnailIndex=W};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.f.updateOffset=function(){var y=_.p(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-y));this.ytdHorizontalListBehavior.reposition_()};
_.dJ.Object.defineProperties(MhH.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.imageRenderer){var W,c;return((W=this.data)==null?void 0:(c=W.imageRenderer)==null?void 0:c.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var y;if((y=this.data)==null?0:y.imageRenderer){var W;return(W=_.g(this.data.imageRenderer[this.selectedThumbnailIndex],Go6))==null?void 0:W.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var y=this,W,c,Z,G=(Z=(W=this.data)==null?void 0:(c=W.imageRenderer)==null?void 0:c.map(function(D,Y){return{productDetailsThumbnailRenderer:Object.assign({},_.g(D,Go6),{index:Y,isSelected:Y===y.selectedThumbnailIndex})}}))!=null?Z:[];
return Object.assign({},this.data,{imageRenderer:G})}}});
var yO=MhH;yO.prototype.updateOffset=yO.prototype.updateOffset;yO.prototype.dataChanged=yO.prototype.dataChanged;yO.prototype.onThumbnailSelected=yO.prototype.onThumbnailSelected;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Si.YtdHorizontalListBehavior),_.e("design:type",Object)],yO.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],yO.prototype,"componentBehavior",void 0);_.x([_.C([_.Hj.YtActionHandlerBehavior]),_.e("design:type",Object)],yO.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yO.prototype,"data",void 0);_.x([_.L({value:"$.items.children"}),_.e("design:type",String)],yO.prototype,"itemsPath",void 0);
_.x([_.L({value:3}),_.e("design:type",Number)],yO.prototype,"initialCount",void 0);_.x([_.jj("#items"),_.e("design:type",Object)],yO.prototype,"items",void 0);_.x([_.L(),_.e("design:type",Object)],yO.prototype,"selectedThumbnailIndex",void 0);_.x([_.L(),_.e("design:type",Object)],yO.prototype,"hoverThumbnail",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],yO.prototype,"showThumbnails",null);
_.x([_.B("ytd-product-details-thumbnail-renderer-selected"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Number]),_.e("design:returntype")],yO.prototype,"onThumbnailSelected",null);_.x([_.A("data","selectedThumbnailIndex","hoverThumbnail"),_.e("design:type",Object),_.e("design:paramtypes",[])],yO.prototype,"thumbnailDetails",null);_.x([_.A("data","selectedThumbnailIndex"),_.e("design:type",Object),_.e("design:paramtypes",[])],yO.prototype,"populatedData",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yO.prototype,"dataChanged",null);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],yO.prototype,"updateOffset",null);yO=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],yO);
_.T(yO,"ytd-product-details-image-carousel-renderer",function(){if(aDD!==void 0)return aDD;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return aDD=y},{mode:_.xm("kevlar_poly_si_batch_j079")?1:2});var e7f;var wC9=function(){return _.v.apply(this,arguments)||this};
_.R(wC9,_.v);var Wd=wC9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Wd.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Wd.prototype,"data",void 0);Wd=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Wd);
_.T(Wd,"ytd-product-details-offer-renderer",function(){if(e7f!==void 0)return e7f;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return e7f=y},{mode:1});var qCS;var koS=function(){var y=_.v.apply(this,arguments)||this;y.isOffersHidden=!0;return y};
_.R(koS,_.v);koS.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var y,W=_.g((y=this.data)==null?void 0:y.viewOffersButton,_.RU);W&&this.ytRendererBehavior.logExplicitClick(W)};
koS.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.dJ.Object.defineProperties(koS.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;return(c=_.g((y=this.data)==null?void 0:(W=y.offers)==null?void 0:W[0],z7D))==null?void 0:(Z=c.offerData)==null?void 0:Z.vendorLogoUrl}}});
var cd=koS;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],cd.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cd.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],cd.prototype,"isOffersHidden",void 0);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],cd.prototype,"firstOfferVendorLogoUrl",null);cd=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],cd);
_.T(cd,"ytd-product-details-offers-container-renderer",function(){if(qCS!==void 0)return qCS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return qCS=y},{mode:1});var jo9;var yYg;var Zw=function(){return _.v.apply(this,arguments)||this};
_.R(Zw,_.v);Zw.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Zw.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.fl(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Zw.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.fl(this,"ytd-product-details-variant-image-unselect")};
_.dJ.Object.defineProperties(Zw.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 y;return((y=this.data)==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?void 0:y.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var y;if(((y=this.data)==null?void 0:y.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.isUnavailable?(y=this.data)==null?void 0:y.variantOptionUnavailableAccessibilityLabel:(W=this.data)==null?void 0:W.variantOptionAccessibilityLabel}}});
var G_=Zw;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],G_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],G_.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],G_.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],G_.prototype,"displayType",void 0);
_.x([_.A("displayType","data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],G_.prototype,"isImageButton",null);_.x([_.A("displayType","data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],G_.prototype,"isPillButton",null);_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],G_.prototype,"isActive",null);
_.x([_.A("data"),_.L({reflectToAttribute:!0}),_.e("design:type",Boolean),_.e("design:paramtypes",[])],G_.prototype,"isUnavailable",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],G_.prototype,"thumbnailDetails",null);_.x([_.A("isUnavailable","data"),_.e("design:type",Object),_.e("design:paramtypes",[])],G_.prototype,"accessibilityLabel",null);G_=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],G_);
_.T(G_,"ytd-product-details-variant-option-renderer",function(){if(yYg!==void 0)return yYg;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return yYg=y},{mode:1});var WO6;var cYH=function(){var y=_.v.apply(this,arguments)||this;y.variantsExpanded=!1;y.hideShowMoreLessVariantButton=!0;y.initialized=!1;y.computeVariantsDebouncer=null;y.computeVariants=function(W){W=W===void 0?!1:W;y.variantsExpanded||y.showOptions()||!W||(y.variantsExpanded=!0);if(y.variantsExpanded){W=_.z(y.items.children);for(var c=W.next();!c.done;c=W.next())c.value.hidden=!1}y.initialized=!0};
return y};
_.R(cYH,_.v);_.f=cYH.prototype;_.f.ready=function(){var y=this;setTimeout(function(){y.computeVariants(!0)})};
_.f.showOptions=function(){for(var y=_.z(this.items.children),W=y.next();!W.done;W=y.next())W.value.hidden=!0;var c=this.container.getBoundingClientRect().width,Z=0,G=y=0;W=!1;for(var D=_.z(this.items.children),Y=D.next();!Y.done;Y=D.next()){Y=Y.value;Y.hidden=!1;var u=Y.getBoundingClientRect().width;if(Z+u<c)Z+=u;else if(++G<2)Z=u;else break;y+=1;Y.hasAttribute("is-active")&&(W=!0)}for(c=y;c<this.items.children.length;c++)this.items.children[c].hidden=!0;this.hideShowMoreLessVariantButton=y===this.items.children.length;
return W};
_.f.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.kj(this.computeVariantsDebouncer,_.Hi.after(100),this.computeVariants)};
_.f.onShowMoreLessVariantsButtonClick=function(){var y;(y=this.data)!=null&&y.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.f.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.dJ.Object.defineProperties(cYH.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.data)==null?void 0:(W=y.variantOptionRenderers)==null?void 0:W.find(function(D){return _.g(D,owd).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Z,G;
return(G=(Z=_.g(c,owd))==null?void 0:Z.name)!=null?G:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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"}}}});
var fz=cYH;fz.prototype.debouncedComputeVariants=fz.prototype.debouncedComputeVariants;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],fz.prototype,"componentBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],fz.prototype,"ironResizableBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],fz.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],fz.prototype,"variantsExpanded",void 0);_.x([_.L(),_.e("design:type",Object)],fz.prototype,"hideShowMoreLessVariantButton",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],fz.prototype,"initialized",void 0);_.x([_.jj("#items"),_.e("design:type",HTMLDivElement)],fz.prototype,"items",void 0);_.x([_.jj("#container"),_.e("design:type",HTMLDivElement)],fz.prototype,"container",void 0);
_.x([_.jj("#more-variants-button"),_.e("design:type",HTMLElement)],fz.prototype,"moreVariantsButton",void 0);_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],fz.prototype,"selectedOptionName",null);_.x([_.H("data","variantsExpanded"),_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fz.prototype,"debouncedComputeVariants",null);
_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],fz.prototype,"displayType",null);_.x([_.A("displayType"),_.e("design:type",Object),_.e("design:paramtypes",[])],fz.prototype,"variantItemsClassname",null);fz=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],fz);
_.T(fz,"ytd-product-details-variant-renderer",function(){if(WO6!==void 0)return WO6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return WO6=y},{mode:1});var Zt3=function(){return _.v.apply(this,arguments)||this};
_.R(Zt3,_.v);
Zt3.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"}}}};
_.dJ.Object.defineProperties(Zt3.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(W=_.g((y=this.data)==null?void 0:y.offersContainerRenderer,Dx6))==null?void 0:W.offers;return c!==void 0&&(c==null?void 0:c.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 y,W,c;return((c=(y=this.data)==null?void 0:(W=y.variants)==null?void 0:W.map(function(Z){var G,D;Z=(D=(G=_.g(Z,fDB))==null?void 0:G.variantOptionRenderers)==null?void 0:D.find(function(u){var t;return((t=_.g(u,owd))==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Y;return(Y=_.g(Z,owd))==null?void 0:Y.name}).filter(function(Z){return typeof Z==="string"}))!=null?c:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z=(W=_.g((y=this.data)==null?void 0:y.shoppingFlaggingRenderer,YCB))==null?void 0:(c=W.reportButton)==null?void 0:c.buttonRenderer;if(Z)return{text:Z.text,command:Z.command,icon:{iconType:"FLAG"},accessibilityData:Z.accessibilityData,trackingParams:Z.trackingParams,loggingDirectives:Z.loggingDirectives}}}});
var op=Zt3;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],op.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],op.prototype,"data",void 0);
_.x([_.jj("#image-carousel-renderer"),_.e("design:type",Object)],op.prototype,"imageCarouselRenderer",void 0);_.x([_.jj("#hero-offer-renderer"),_.e("design:type",Object)],op.prototype,"productDetailsHeroOfferRenderer",void 0);_.x([_.jj("#variants"),_.e("design:type",Object)],op.prototype,"productDetailsVariantRenderer",void 0);_.x([_.jj("#offers"),_.e("design:type",Object)],op.prototype,"productDetailsOffersContainerRenderer",void 0);
_.x([_.jj("#description-renderer"),_.e("design:type",Object)],op.prototype,"productDetailsDescriptionRenderer",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],op.prototype,"showPurchaseData",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],op.prototype,"showHeroOfferRenderer",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],op.prototype,"showBrandText",null);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],op.prototype,"showOffers",null);_.x([_.A("showOffers","showPurchaseData"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],op.prototype,"showBuySeparator",null);_.x([_.A("showOffers","showPurchaseData"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],op.prototype,"showBuyCard",null);_.x([_.A("data"),_.e("design:type",String),_.e("design:paramtypes",[])],op.prototype,"selectedVariantsText",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],op.prototype,"shoppingReportingButtonData",null);op=_.x([_.d({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],op);
_.T(op,"ytd-product-details-renderer",function(){if(jo9!==void 0)return jo9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return jo9=y},{mode:1});var GLQ;var fbB;var oLH;var DjQ=function(){return _.v.apply(this,arguments)||this};
_.R(DjQ,_.v);DjQ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.dJ.Object.defineProperties(DjQ.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
var Dw=DjQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Dw.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],Dw.prototype,"formattedAmount",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Dw.prototype,"ariaLabel",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data.style"),_.e("design:type",String),_.e("design:paramtypes",[])],Dw.prototype,"vcBalanceWidgetStyle",null);Dw=_.x([_.n6({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],Dw);
_.T(Dw,"yt-vc-balance-renderer",function(){if(oLH===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;fbB===void 0&&(fbB=document.createElement("template"));var Z=fbB;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);oLH=y}y=oLH;return y},{mode:2});_.bv("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var zf9=function(){return _.v.apply(this,arguments)||this};
_.R(zf9,_.v);_.dJ.Object.defineProperties(zf9.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:""}}});
var z_=zf9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],z_.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],z_.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],z_.prototype,"data",void 0);_.x([_.L({selectorArgs:["data.vcBalanceEntityKey"],selector:function(y,W){return _.fq(y.entities,"vcBalanceEntity",W)}}),
_.e("design:type",Object)],z_.prototype,"vcBalanceEntity",void 0);_.x([_.A("vcBalanceEntity"),_.e("design:type",String),_.e("design:paramtypes",[])],z_.prototype,"formattedAmount",null);_.x([_.A("vcBalanceEntity"),_.e("design:type",String),_.e("design:paramtypes",[])],z_.prototype,"vcBalanceAriaLabel",null);z_=_.x([_.d({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],z_);
_.T(z_,"ytd-vc-balance-renderer",function(){if(GLQ!==void 0)return GLQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return GLQ=y},{mode:1});var Y4H;var mjQ=function(){var y=_.v.apply(this,arguments)||this;y.rotation=0;y.isReloading=!1;return y};
_.R(mjQ,_.v);mjQ.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
mjQ.prototype.reset=function(){this.hostElement.style.opacity=""};
mjQ.prototype.close=function(){var y=this;return _.m(function(W){if(W.nextAddress==1)return _.n(W,y.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);y.hostElement.style.opacity="0";_.F2(W)})};
var Y8=mjQ;Y8.prototype.rotationChanged=Y8.prototype.rotationChanged;_.x([_.L(),_.e("design:type",Object)],Y8.prototype,"rotation",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Y8.prototype,"isReloading",void 0);_.x([_.jj("#icon"),_.e("design:type",HTMLElement)],Y8.prototype,"icon",void 0);_.x([_.H("rotation"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Y8.prototype,"rotationChanged",null);
Y8=_.x([_.d({disableElementRegistration:!0,is:"ytd-refresh"})],Y8);
_.T(Y8,"ytd-refresh",function(){if(Y4H!==void 0)return Y4H;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Y4H=y},{mode:1});var sof;var uC6;var tE9=function(y,W,c,Z,G,D,Y,u){this.minWidth=y;this.minHeight=W;this.recommendedWidth=c;this.recommendedHeight=Z;this.JSC$19218_maxFileSize=G;this.title=D;this.bannerGalleryTitle=Y;this.channelId=u;this.picker_=null;y=_.IfI("yt-banner");W=y.addView;c=(new TB9("youtubebanner")).addUploadMetadata("silo_id","19");c.opts.ytMaxFileSize=this.JSC$19218_maxFileSize;Z=this.recommendedHeight;c.opts.ytRecWidth=this.recommendedWidth;c.opts.ytRecHeight=Z;W.call(y,c);y.addView(new _.bi);W=y.addView;c=new _.bi;
c.opts.type="ytbanner";W.call(y,c.JSC$7940_setLabel(this.bannerGalleryTitle));W=y.setTitle(this.title).setSize(1E3);W.urlParamMap_.set("thumbs","orig");c=this.minWidth;Z=this.minHeight;if(isNaN(c)||isNaN(Z))throw Error("kb`"+c+"`"+Z);W.urlParamMap_.set("minSize",c+"x"+Z);W.urlParamMap_.set("cropMode","ytcb");this.builder_=y};
tE9.prototype.open=function(){var y=this;return new _.fD(function(W,c){_.qA8(y.builder_,function(Z){Z.action=="picked"?W(Z):Z.action=="cancel"&&c(Error("Vl"))});
y.picker_&&y.picker_.dispose();y.picker_=y.builder_.build();y.picker_.setVisible(!0)})};
tE9.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var nL9=function(y){this.channelId=y},XqQ=function(y,W){var c="";
W.viewToken&&(c=W.viewToken[2].type);var Z=W.docs[0];W=Z.crop;y={channel_id:y.channelId,fife_url:Z.thumbnails[0].url,photo_id:Z.id,is_gallery_image:c=="ytbanner"};W&&(y.crop_top=W.top,y.crop_right=W.right,y.crop_bottom=W.bottom,y.crop_left=W.left);return _.ygD("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:y})};var bt6=function(){var y=_.v.apply(this,arguments)||this;y.ariaLabel=null;return y};
_.R(bt6,_.v);_.f=bt6.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.detached=function(){this.picker&&this.picker.dispose()};
_.f.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.f.computeAriaLabel=function(y){return y};
_.f.onTap=function(){var y=this,W;if((W=this.data)==null||!W.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new tE9(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 c;(c=this.picker)==null||c.open().then(function(Z){y.handleBannerPicked(Z)},function(){})}};
_.f.handleBannerPicked=function(y){var W=this;this.uploader||(this.uploader=new nL9(this.data.channelId||""));this.message=this.data.uploadingText;XqQ(this.uploader,y).then(function(c){W.handleBannerUploadSucceeded(c)},function(c){W.handleBannerUploadFailed(c)})};
_.f.handleBannerUploadSucceeded=function(y){y&&y.errors?this.handleBannerUploadFailed(y):(_.Z2(this.hostElement,"yt-banner-updated",y),this.message=null)};
_.f.handleBannerUploadFailed=function(y){this.message=y&&y.errors&&y.errors.length?y.errors[0]:null};
var m5=bt6;m5.prototype.dataChanged=m5.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],m5.prototype,"componentBehavior",void 0);_.x([_.C(_.gt),_.e("design:type",Object)],m5.prototype,"ironButtonState",void 0);_.x([_.L(),_.e("design:type",Object)],m5.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.e("design:type",Object)],m5.prototype,"ariaLabel",void 0);
_.x([_.L(),_.e("design:type",Object)],m5.prototype,"message",void 0);_.x([_.L(),_.e("design:type",Object)],m5.prototype,"picker",void 0);_.x([_.L(),_.e("design:type",Object)],m5.prototype,"uploader",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],m5.prototype,"dataChanged",null);m5=_.x([_.d({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],m5);
_.T(m5,"ytd-channel-banner-editor-renderer",function(){if(uC6!==void 0)return uC6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return uC6=y},{mode:1});var rYS;var FOQ=_.dl(["#"]),UjB=function(){return _.v.apply(this,arguments)||this};
_.R(UjB,_.v);UjB.prototype.computeHrefWithDefault=function(y){return this.ytComponentBehavior.computeHref_(y,!0)||_.Q7(FOQ)};
UjB.prototype.dataChanged=function(){var y=this.data;y&&y.targetId&&_.kVm(_.j_(),y.targetId,this.moreIcon)};
var sw=UjB;sw.prototype.dataChanged=sw.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],sw.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sw.prototype,"data",void 0);_.x([_.jj("#more-icon"),_.e("design:type",Object)],sw.prototype,"moreIcon",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],sw.prototype,"dataChanged",null);
sw=_.x([_.d({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],sw);
_.T(sw,"ytd-channel-tagline-renderer",function(){if(rYS!==void 0)return rYS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return rYS=y},{mode:1});var $j3;var KO3=function(){return _.v.apply(this,arguments)||this};
_.R(KO3,_.v);_.f=KO3.prototype;_.f.ready=function(){var y=this;_.p(this.hostElement).querySelector("#form").addEventListener("submit",function(W){y.onSubmit(W)})};
_.f.onDataChanged=function(){var y;((y=this.data)==null?0:y.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.f.onIconButtonKeydown=function(y){y.keyCode===13&&this.iconButton.click()};
_.f.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.f.openOnClickHandler=function(){this.input.focus()};
_.f.onSubmit=function(y){y.preventDefault();return!1};
_.f.submitOnEnterKeyUp=function(y){var W;if(y.keyCode===13&&((W=this.data)==null?0:W.expandedText)){y=this.data.endpoint;W=_.Eb.unsafeClone(y);var c;((c=_.g(W==null?void 0:W.commandMetadata,_.kT))==null?0:c.url)?(_.g(W.commandMetadata,_.kT).url=_.pD(_.g(W.commandMetadata,_.kT).url,"query",this.data.expandedText),_.g(W,_.oW)&&(_.g(W,_.oW).query=this.data.expandedText),_.Z2(this.hostElement,"yt-navigate",{endpoint:W,tempData:{disableCache:!0}})):(c=new _.ul("Error: Trying to navigate to an endpoint without url",
y),_.OP(c))}};
_.f.updateDataExpandedTextFromBinding=function(y){this.set("data.expandedText",y.detail.value)};
var uH=KO3;uH.prototype.onDataChanged=uH.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CnH),_.e("design:type",Object)],uH.prototype,"ytdExpandableInputBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uH.prototype,"data",void 0);_.x([_.jj("#input"),_.e("design:type",Object)],uH.prototype,"input",void 0);_.x([_.jj("#icon-button"),_.e("design:type",HTMLElement)],uH.prototype,"iconButton",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uH.prototype,"onDataChanged",null);uH=_.x([_.d({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],uH);
var QpD=_.a5()(uH,"ytd-expandable-tab-renderer",function(){if($j3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);$j3=y}y=$j3;return y},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var OtH;var gL3=_.dl(["#"]),RfH=function(){return _.v.apply(this,arguments)||this};
_.R(RfH,_.v);RfH.prototype.computeHrefWithDefault=function(y){return this.ytComponentBehavior.computeHref_(y,!0)||_.Q7(gL3)};
_.dJ.Object.defineProperties(RfH.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var y;return _.UH((y=this.data)==null?void 0:y.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var y;return _.UH((y=this.data)==null?void 0:y.moreOnTap)}}});
var t8=RfH;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],t8.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],t8.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],t8.prototype,"usePageHeaderStyle",void 0);_.x([_.A("data.primaryOnTap"),_.e("design:type",Object),_.e("design:paramtypes",[])],t8.prototype,"primaryLinkEndpoint",null);
_.x([_.A("data.moreOnTap"),_.e("design:type",Object),_.e("design:paramtypes",[])],t8.prototype,"moreEndpoint",null);t8=_.x([_.d({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],t8);
_.T(t8,"ytd-channel-header-links-view-model",function(){if(OtH!==void 0)return OtH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return OtH=y},{mode:1});var lb6;var ELZ=function(){var y=_.v.apply(this,arguments)||this;y.avatarSize=80;y.ariaLabel=_.bN("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return y};
_.R(ELZ,_.v);ELZ.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ELZ.prototype.computeHref=function(y){var W;return((W=_.g(y,_.CD))==null?0:W.url)?this.componentBehavior.computeHref_(y):null};
ELZ.prototype.onTap=function(){var y,W;(y=this.data)==null||!y.editAvatarServiceEndpoint||((W=_.g(this.data.editAvatarServiceEndpoint,_.CD))==null?0:W.url)||_.U().resolve(_.i1).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
var nz=ELZ;_.x([_.C(_.gt),_.e("design:type",Object)],nz.prototype,"ironButtonState",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],nz.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],nz.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],nz.prototype,"avatarSize",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],nz.prototype,"ariaLabel",void 0);
nz=_.x([_.d({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],nz);
_.T(nz,"ytd-channel-avatar-editor",function(){if(lb6!==void 0)return lb6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lb6=y},{mode:1});_.A3(_.Cfg,"yt-tab-group-shape",{props:{shape:_.Ix}});var N76=function(){var y=_.v.apply(this,arguments)||this;y.expandableCustomTabRenderable=function(W){return A8D(W,function(){return void y.onSearchNavigate()})};
y.isRichGrid=!1;y.richGridMiniMode=!1;y.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 y};
_.R(N76,_.v);_.f=N76.prototype;_.f.areAllFalse=function(y,W,c){return!y&&!W&&!c};
_.f.updateJoinButtonOverrides=function(){var y;(y=_.p(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||y.set("overrides",this.joinButtonOverrides)};
_.f.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]]"}}}}}};
_.f.attached=function(){this.data&&this.dataChanged()};
_.f.computeHeaderDisabled=function(y,W){return W||!y};
_.f.handleButtonRefreshAction=function(y){(y=_.g(y,_.Z$5))&&this.set("data.sponsorButton",y.membershipButton)};
_.f.handleInsertTabCommand=function(y){var W=_.g(y,syS);W&&W.externalChannelId===this.data.channelId&&(W.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(c){return c.tabRenderer&&c.tabRenderer.tabIdentifier===W.tabIdentifier})||this.splice("tabs",W.tabIndex||-1,0,W.tab))};
_.f.handleRefreshChannelTabAction=function(y){var W,c=(W=this.tabs)==null?void 0:W.filter(function(D){var Y;return(Y=D.tabRenderer)==null?void 0:Y.selected});
W=(c==null?void 0:c.length)===1?c[0]:void 0;var Z;if((W==null?void 0:(Z=W.tabRenderer)==null?void 0:Z.tabIdentifier)===y){var G;_.Z2(this.hostElement,"yt-navigate",{endpoint:(G=W.tabRenderer)==null?void 0:G.endpoint,tempData:{disableCache:!0}})}};
_.f.onWindowResize=function(){_.p(this.hostElement).querySelector("#header").fire("iron-resize")};
_.f.dataChanged=function(){var y=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var W=_.h3(this.data.banner.thumbnails,this.hostElement.clientWidth);W&&(W.indexOf("//")===0&&(W="https:"+W),this.hasChannelArt=!0,_.wM(this.hostElement,{"--yt-channel-banner":"url("+W+")"}))}this.hasChannelArt!==y&&_.p(this.hostElement).querySelector("#header").fire("iron-resize")};
_.f.onBannerUpdated=function(y,W){y=window.devicePixelRatio>1?W.hq_url:W.url;y.indexOf("//")===0&&(y="https:"+y);this.hasChannelArt=!0;_.wM(this.hostElement,{"--yt-channel-banner":"url("+y+")"})};
_.f.observeLightsourcePalette=function(){var y,W,c=(y=this.data)==null?void 0:(W=y.headerColorPalette)==null?void 0:W.lightsourceColorPaletteData;c&&_.nx(this.hostElement,c)};
_.f.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.wM(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.f.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.f.handleUnsubscribeAction=function(){var y,W;((W=_.g((y=this.data)==null?void 0:y.sponsorButton,_.RU))==null?void 0:W.style)==="STYLE_PRIMARY"&&_.p(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.f.onFocusedChanged=function(y){(y=_.hq(y))&&y.is==="tp-yt-paper-tab"&&y.hasRipple()&&(y.getRipple().holdDown=!y.pointerDown&&y.focused)};
_.f.updateSelectedFromBinding=function(y){this.ytdTabbedHeaderBehavior.selected=y.detail.value};
_.dJ.Object.defineProperties(N76.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BBQ(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.headerLinks)==null?0:W.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.subscriptionStateEntity)==null||!y.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.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 y=this.channelHandleDisplayStyle;return y==="MODERN"||y==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var y;return this.usePageHeaderStyle||!((y=this.data)==null?0:y.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var y;return this.usePageHeaderStyle||!((y=this.data)==null||!y.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var y;return!!_.g((y=this.data)==null?void 0:y.bannerEditor,Wwg)}},
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 y;return!((y=this.data)==null||!y.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 y;return _.O("enable_view_pronouns_on_main_app")&&!((y=this.data)==null||!y.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var y;return(this.useModernStyle||this.usePageHeaderStyle)&&!((y=this.data)==null||!y.videosCountText)}}});
var X7=N76;X7.prototype.observerRichGridItemsPerRow=X7.prototype.observerRichGridItemsPerRow;X7.prototype.observeLightsourcePalette=X7.prototype.observeLightsourcePalette;X7.prototype.onBannerUpdated=X7.prototype.onBannerUpdated;X7.prototype.dataChanged=X7.prototype.dataChanged;X7.prototype.updateJoinButtonOverrides=X7.prototype.updateJoinButtonOverrides;_.x([_.C(_.lZ),_.e("design:type",Object)],X7.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.C(th6),_.e("design:type",Object)],X7.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],X7.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],X7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],X7.prototype,"ytdReduxBehavior",void 0);_.x([_.jj("#tabs"),_.e("design:type",Object)],X7.prototype,"tabsElement",void 0);_.x([_.L(),_.e("design:type",Array)],X7.prototype,"tabs",void 0);_.x([_.A("tabs.*"),_.e("design:type",Object),_.e("design:paramtypes",[])],X7.prototype,"tabGroupShape",null);_.x([_.L(),_.e("design:type",Object)],X7.prototype,"expandableCustomTabRenderable",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],X7.prototype,"isRichGrid",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Object)],X7.prototype,"richGridMiniMode",void 0);_.x([_.L({selector:_.lo}),_.e("design:type",Number)],X7.prototype,"richGridItemsPerRow",void 0);_.x([_.L(),_.e("design:type",Object)],X7.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],X7.prototype,"hasChannelArt",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"hasChannelHeaderLinks",null);_.x([_.L({selector:_.FyZ,reflectToAttribute:!0}),_.e("design:type",Boolean)],X7.prototype,"guideIsVisibleButNotPersistent",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],X7.prototype,"subscribeKey",null);
_.x([_.L({selectorArgs:["subscribeKey"],selector:_.Mu}),_.e("design:type",Object)],X7.prototype,"subscriptionStateEntity",void 0);_.x([_.A("subscriptionStateEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],X7.prototype,"subscribed",null);_.x([_.A("subscribed"),_.e("design:type",Object),_.e("design:paramtypes",[])],X7.prototype,"joinButtonOverrides",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"useModernStyle",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"usePageHeaderStyle",null);_.x([_.A("useModernStyle","usePageHeaderStyle"),_.e("design:type",Number),_.e("design:paramtypes",[])],X7.prototype,"avatarSize",null);
_.x([_.A("channelHandleDisplayStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"shouldInlineChannelName",null);_.x([_.A("data","usePageHeaderStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"hideBannerEndpoint",null);_.x([_.A("data","usePageHeaderStyle"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"hideBannerVisibleArea",null);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"showBannerEditor",null);_.x([_.A("usePageHeaderStyle"),_.e("design:type",Object),_.e("design:paramtypes",[])],X7.prototype,"bannerEffects",null);_.x([_.A("usePageHeaderStyle"),_.e("design:type",Object),_.e("design:paramtypes",[])],X7.prototype,"effectsConfig",null);_.x([_.A("usePageHeaderStyle","hasChannelArt"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"shouldShowPageHeaderBanner",null);
_.x([_.A("data.channelHandleText"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"isChannelHandlePresent",null);_.x([_.A("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.e("design:type",String),_.e("design:paramtypes",[])],X7.prototype,"channelHandleDisplayStyle",null);_.x([_.A("data.channelPronouns"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"shouldShowChannelPronouns",null);
_.x([_.A("data.subscriberCountText"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"shouldShowSubscriberCount",null);_.x([_.A("useModernStyle","data.videosCountText"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],X7.prototype,"shouldShowVideosCount",null);_.x([_.H("joinButtonOverrides"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],X7.prototype,"updateJoinButtonOverrides",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],X7.prototype,"dataChanged",null);_.x([_.B("yt-banner-updated"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],X7.prototype,"onBannerUpdated",null);_.x([_.H("data.headerColorPalette.lightsourceColorPaletteData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],X7.prototype,"observeLightsourcePalette",null);
_.x([_.H("richGridItemsPerRow","isRichGrid"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],X7.prototype,"observerRichGridItemsPerRow",null);X7=_.x([_.d({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],X7);
_.T(X7,"ytd-c4-tabbed-header-renderer",function(){if(sof!==void 0)return sof;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sof=y},{mode:1});var IbQ;var pqQ=function(){return _.v.apply(this,arguments)||this};
_.R(pqQ,_.v);pqQ.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"}}}};
pqQ.prototype.dataChanged=function(){if(this.data){var y=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var W=_.h3(this.data.banner.thumbnails,this.hostElement.clientWidth);W&&(W.indexOf("//")===0&&(W="https:"+W),this.hasBannerArt=!0,_.wM(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+W+")"}))}this.hasBannerArt!==y&&_.p(this.hostElement).querySelector("#header").fire("iron-resize")}};
pqQ.prototype.updateSelectedFromBinding=function(y){this.selected=y.detail.value};
var bH=pqQ;bH.prototype.dataChanged=bH.prototype.dataChanged;_.x([_.C(th6),_.e("design:type",Object)],bH.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.lZ),_.e("design:type",Object)],bH.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],bH.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],bH.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bH.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],bH.prototype,"selected",void 0);_.x([_.L(),_.e("design:type",Boolean)],bH.prototype,"active",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],bH.prototype,"hasBannerArt",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],bH.prototype,"dataChanged",null);bH=_.x([_.d({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],bH);
_.T(bH,"ytd-interactive-tabbed-header-renderer",function(){if(IbQ!==void 0)return IbQ;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return IbQ=y},{mode:1});var PVB;var JYf=function(){return _.v.apply(this,arguments)||this};
_.R(JYf,_.v);JYf.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
JYf.prototype.computeActionsAlignment=function(y){return(y==null?void 0:y.actionsAlignment)||""};
var rB=JYf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],rB.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.e("design:type",String)],rB.prototype,"actionsAlignment",void 0);
rB=_.x([_.d({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],rB);
_.T(rB,"ytd-page-footer-renderer",function(){if(PVB!==void 0)return PVB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return PVB=y},{mode:1});var VEQ;var CV3;var Qo6=function(){var y=_.v.apply(this,arguments)||this;y.isEditing=!1;y.useSlot=!1;y.isMultiline=!1;return y};
_.R(Qo6,_.v);_.f=Qo6.prototype;_.f.onKeydown=function(y){if(y.keyCode===13&&!this.isMultiline)this.onSave();else if(y.keyCode===27)this.onCancel()};
_.f.computeComponentStyle=function(y){return(y==null?0:y.style)?y.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.f.computeisMultiline=function(y){if(this.multilineOverride!==void 0)return this.multilineOverride;var W,c;return!!(y==null?0:(W=y.formField)==null?0:(c=W.textInputFormFieldRenderer)==null?0:c.isMultiline)};
_.f.computeTextDisplayed=function(y,W){if(y)return y;if(W)return W};
_.f.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.f.onSave=function(){if(this.textForm.validate()){this.textForm.save();var y=this.textForm.value;if(y)this.set("data.textDisplayed",_.Lq(y));else{var W;((W=this.data)==null?0:W.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.IZ("inline-form-changed",this.data));this.isEditing=!1}};
_.f.onCancel=function(){var y=_.v$(this.data.textDisplayed);y===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(y);this.isEditing=!1};
var F7=Qo6;F7.prototype.onKeydown=F7.prototype.onKeydown;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],F7.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],F7.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],F7.prototype,"isEditing",void 0);_.x([_.L(),_.e("design:type",Object)],F7.prototype,"useSlot",void 0);_.x([_.L(),_.e("design:type",Boolean)],F7.prototype,"multilineOverride",void 0);_.x([_.L(),_.e("design:type",Boolean)],F7.prototype,"enableOverlayTheme",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.e("design:type",String)],F7.prototype,"componentStyle",void 0);
_.x([_.L({computed:"computeisMultiline(data)"}),_.e("design:type",Object)],F7.prototype,"isMultiline",void 0);_.x([_.jj("#text-form"),_.e("design:type",Object)],F7.prototype,"textForm",void 0);_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent]),_.e("design:returntype")],F7.prototype,"onKeydown",null);F7=_.x([_.d({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],F7);
_.T(F7,"ytd-inline-form-renderer",function(){if(CV3!==void 0)return CV3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return CV3=y},{mode:1});var AY9;var hfH=function(){var y=_.v.apply(this,arguments)||this;y.previousSelectValue=void 0;y.selectedItemMessage=void 0;return y};
_.R(hfH,_.v);hfH.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
hfH.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var y,W,c,Z,G=(y=this.data)==null?void 0:(W=y.dropdown)==null?void 0:(c=W.dropdownRenderer)==null?void 0:(Z=c.entries)==null?void 0:Z.map(function(u){return u.privacyDropdownItemRenderer});
y=_.z(G!=null?G:[]);for(W=y.next();!W.done;W=y.next())if((W=W.value)&&W.int32Value===this.selectedValue){this.selectedItemMessage=W.itemMessage;break}}else this.selectedItemMessage=void 0;var D;(D=this.onValueChanged)==null||D.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)}};
hfH.prototype.onValueChangedForSelectedValue=function(y){this.selectedValue=y.detail.value};
var Uw=hfH;Uw.prototype.selectedValueChanged=Uw.prototype.selectedValueChanged;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],Uw.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Uw.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Uw.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],Uw.prototype,"theme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Number)],Uw.prototype,"selectedValue",void 0);_.x([_.L(),_.e("design:type",Function)],Uw.prototype,"onValueChanged",void 0);
_.x([_.Gs("selectedValue"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uw.prototype,"selectedValueChanged",null);Uw=_.x([_.d({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Uw);
_.T(Uw,"ytd-dropdown-form-field-renderer",function(){if(AY9!==void 0)return AY9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return AY9=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var B7f;var HtD=function(){return _.v.apply(this,arguments)||this};
_.R(HtD,_.v);_.dJ.Object.defineProperties(HtD.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var y=[],W=_.z(this.data||[]),c=W.next();!c.done;c=W.next())(c=_.g(c.value,mxd))&&y.push(c);return y}}});
var LOD=HtD;_.x([_.L(),_.e("design:type",Array)],LOD.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],LOD.prototype,"byline",null);LOD=_.x([_.d({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],LOD);
_.T(LOD,"ytd-playlist-byline-renderer",function(){if(B7f!==void 0)return B7f;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return B7f=y},{mode:1});var vL6;var djS=function(){var y=_.v.apply(this,arguments)||this;y.rtlBullet=_.O("web_playlist_stats_rtl_bullet_icon_killswitch");y.modern=_.O("web_modern_buttons");y.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return y};
_.R(djS,_.v);_.f=djS.prototype;_.f.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"}}}}};
_.f.attached=function(){};
_.f.computeIsCustomThumbnail=function(y){return y?!!y.playlistCustomThumbnailRenderer:!1};
_.f.onYtNavigate=function(y,W){if(W&&W.actions&&W.actions.indexOf("shuffle")>-1){y=_.U().resolve(_.EU);var c=W.tempData||{};c.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);W.tempData=c;y.isShuffleNextPlaylist=!0}};
_.f.onUpdatePlaylistAction=function(y){var W;y=(W=_.g(y,_.GH8))==null?void 0:W.updatedRenderer;if(W=_.g(y,ZI3))this.data=W};
_.f.computeStyleType=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.f.computeThumbnailWidth=function(y){return y==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.f.computeHideThumbnailAria=function(y){if(y==null?0:y.thumbnailOverlays)for(var W=0;W<y.thumbnailOverlays.length;W++){var c=void 0;if((c=y.thumbnailOverlays[W])==null?0:c.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
var $8=djS;$8.prototype.onYtNavigate=$8.prototype.onYtNavigate;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],$8.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],$8.prototype,"ytComponentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],$8.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$8.prototype,"rtlBullet",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.e("design:type",String)],$8.prototype,"styleType",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.e("design:type",Number)],$8.prototype,"thumbnailWidth",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],$8.prototype,"modern",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.e("design:type",Boolean)],$8.prototype,"isCustomThumbnail",void 0);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[Event,Object]),_.e("design:returntype")],$8.prototype,"onYtNavigate",null);$8=_.x([_.d({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],$8);
_.T($8,"ytd-playlist-sidebar-primary-info-renderer",function(){if(vL6!==void 0)return vL6;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return vL6=y},{mode:1});var S4H;var T7f=function(){return _.v.apply(this,arguments)||this};
_.R(T7f,_.v);T7f.prototype.computeOwnerVisibility=function(y){return!(!y.videoOwner&&!y.button)};
T7f.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"}}}};
var Kz=T7f;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Kz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Kz.prototype,"data",void 0);Kz=_.x([_.d({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Kz);
_.T(Kz,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(S4H!==void 0)return S4H;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return S4H=y},{mode:1});var ab6;var xjd=function(){var y=_.v.apply(this,arguments)||this;y.expanded=!1;y.isCompact=!1;return y};
_.R(xjd,_.v);_.f=xjd.prototype;_.f.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.f.dataChanged=function(){this.data&&_.wf(_.p(this.text),_.J9i(_.QHm,_.v$(this.data.text||null)))};
_.f.computeAutoScrollEnabled=function(y,W){return y&&!W};
_.f.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.f.toggleOnTap=function(){this.expanded=!this.expanded};
var Ow=xjd;Ow.prototype.expandedChanged=Ow.prototype.expandedChanged;Ow.prototype.dataChanged=Ow.prototype.dataChanged;_.x([_.C(_.d5B),_.e("design:type",Object)],Ow.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ow.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ow.prototype,"expanded",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ow.prototype,"isCompact",void 0);_.x([_.L({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.e("design:type",Boolean)],Ow.prototype,"autoScrollEnabled",void 0);_.x([_.jj("#text"),_.e("design:type",Object)],Ow.prototype,"text",void 0);_.x([_.jj("#expander-icon"),_.e("design:type",Object)],Ow.prototype,"expanderIcon",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ow.prototype,"dataChanged",null);_.x([_.H("expanded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ow.prototype,"expandedChanged",null);Ow=_.x([_.d({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Ow);
_.T(Ow,"ytd-channel-legal-info-renderer",function(){if(ab6!==void 0)return ab6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ab6=y},{mode:1});var it9;var MEB=_.bN("DOWNLOAD",{},"Download"),ef9=_.bN("DOWNLOADING",{},"Downloading"),wq9=_.bN("DOWNLOADED",{},"Downloaded"),q4S=function(){var y=_.v.apply(this,arguments)||this;y.downloadProgress=0;y.isDownloadComplete=!1;y.transferState="TRANSFER_STATE_UNKNOWN";return y};
_.R(q4S,_.v);_.f=q4S.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.dataChanged=function(){var y;(y=this.data)!=null&&y.tooltip||(y=_.pq(_.Sv().getState(),this.playlistId),this.updateButtonState(y))};
_.f.computePlaylistId=function(y){return y};
_.f.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.f.updateButtonState=function(y){if(this.data&&(this.data.tooltip!==ef9||!_.Xj(y))){this.isDownloadComplete=!1;switch(y){case "TRANSFER_STATE_UNKNOWN":y=MEB;var W="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":y=wq9;W="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":y=ef9;W="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";
break;default:y=MEB,W="OFFLINE_DOWNLOAD",c="ACTION_ADD"}var Z=Object.assign({},this.data);Z.tooltip=y;Z.accessibilityData={accessibilityData:{label:y}};Z.icon={iconType:W};Z.size="SIZE_DEFAULT";_.g(Z.command,_.WG)&&(_.g(Z.command,_.WG).action=c);this.set("data",Z)}};
_.f.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var y="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?y="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?y="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?y="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?y="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?y="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(y="OFFLINE_PIN",this.isDownloadComplete=!0);var W;y!==((W=this.data.icon)==null?void 0:W.iconType)&&(W=Object.assign({},this.data),W.tooltip=ef9,W.accessibilityData={accessibilityData:{label:ef9}},W.icon={iconType:y},_.g(W.command,_.WG)&&(_.g(W.command,_.WG).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",W))}};
var gB=q4S;gB.prototype.updateProgress=gB.prototype.updateProgress;gB.prototype.onTransferStateChanged=gB.prototype.onTransferStateChanged;gB.prototype.dataChanged=gB.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],gB.prototype,"ytdReduxBehavior",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],gB.prototype,"forceIconButton",void 0);
_.x([_.L({value:!0}),_.e("design:type",Boolean)],gB.prototype,"forceIconOnly",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],gB.prototype,"overrides",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],gB.prototype,"buttonTooltipPosition",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],gB.prototype,"styleActionButton",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],gB.prototype,"disableTextTransform",void 0);
_.x([_.L({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.e("design:type",String)],gB.prototype,"playlistId",void 0);_.x([_.L(),_.e("design:type",Object)],gB.prototype,"data",void 0);_.x([_.L({selector:_.L_1,selectorArgs:["playlistId"]}),_.e("design:type",Object)],gB.prototype,"downloadProgress",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],gB.prototype,"isDownloadComplete",void 0);
_.x([_.L({selector:_.pq,selectorArgs:["playlistId"]}),_.e("design:type",String)],gB.prototype,"transferState",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],gB.prototype,"showTooltips",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],gB.prototype,"sendCommandWhenDisabled",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],gB.prototype,"disabled",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gB.prototype,"dataChanged",null);_.x([_.Gs("transferState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gB.prototype,"onTransferStateChanged",null);_.x([_.Gs("downloadProgress"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gB.prototype,"updateProgress",null);
gB=_.x([_.d({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],gB);
_.T(gB,"ytd-download-playlist-button-renderer",function(){if(it9!==void 0)return it9;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return it9=y},{mode:1});var kLH;_.A3(_.MB,"thumbnail-overlay-button-view-model",{props:{data:_.Ix,lockupExperiments:_.Ix}});var jd9=function(){var y=_.v.apply(this,arguments)||this;y.isSquare=!1;y.isVertical=!1;return y};
_.R(jd9,_.v);jd9.prototype.computeIsSquare=function(y){return y!=null&&y.thumbnail?CHZ(y.thumbnail)==="SQUARE":!1};
jd9.prototype.computeIsVertical=function(y){return y!=null&&y.thumbnail?CHZ(y.thumbnail)==="VERTICAL":!1};
jd9.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
var Rp=jd9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.e("design:type",Object)],Rp.prototype,"isSquare",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.e("design:type",Object)],Rp.prototype,"isVertical",void 0);
_.x([_.L(),_.e("design:type",Object)],Rp.prototype,"data",void 0);Rp=_.x([_.d({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Rp);
_.T(Rp,"ytd-hero-playlist-thumbnail-renderer",function(){if(kLH!==void 0)return kLH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kLH=y},{mode:1});var y1Z=function(){var y=_.v.apply(this,arguments)||this;y.isDarkTheme=!1;y.isUltraWide=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return y};
_.R(y1Z,_.v);_.f=y1Z.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.U();var y;(y=_.U().resolve(_.xN(_.L5)))!=null&&(y.headerElement=this.hostElement)};
_.f.detached=function(){var y;(y=_.U().resolve(_.xN(_.L5)))!=null&&(y.headerElement=void 0)};
_.f.onUpdateHeader=function(y){(y=y.detail)&&this.set("data",y)};
_.f.computeTextDisplayed=function(y){if(y)return y.textDisplayed?y.textDisplayed:y.placeholder};
_.f.gradientColorToLinearGradientStop=function(y){var W=this.isDarkTheme?y.darkThemeColor:y.lightThemeColor;return W?_.KZ(W)+" "+((y==null?void 0:y.startLocation)||0)*100+"%":"transparent"};
_.f.onWindowResize=function(){var y;((y=this.data)==null?0:y.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.f.onIronResize=function(y){this.isUltraWide=!y.detail.value};
_.f.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.onUpdatePlaylistName=function(y){var W=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},y.detail.value));_.Lv(this,function(){var c;(c=W.editableTitle)==null||c.resize()})};
_.f.onUpdatePlaylistDescription=function(y){var W=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},y.detail.value));_.Lv(this,function(){var c;(c=W.editableDescriptionInlineExpander)==null||c.resize()})};
_.f.getCinematicData=function(y){return _.g(y==null?void 0:y.cinematicContainer,_.Pc)};
_.dJ.Object.defineProperties(y1Z.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 y,W=(y=this.getCinematicData(this.data))==null?void 0:y.config;return(y=this.isDarkTheme?W==null?void 0:W.darkThemeBackgroundColor:W==null?void 0:W.lightThemeBackgroundColor)?"background-color:"+_.$$(y)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var y;return _.g((y=this.data)==null?void 0:y.descriptionForm,ciD)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var y=this,W,c,Z;return"background:linear-gradient(to bottom, "+(((Z=(W=this.getCinematicData(this.data))==null?void 0:(c=W.gradientColorConfig)==null?void 0:c.map(function(G){return y.gradientColorToLinearGradientStop(G)}))==null?void 0:Z.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var y;return _.v$((y=this.data)==null?void 0:y.descriptionTapText)}}});
var lH=y1Z;lH.prototype.onUpdateHeader=lH.prototype.onUpdateHeader;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],lH.prototype,"actionHandlerBehavior",void 0);_.x([_.jj("#description-inline-expander"),_.e("design:type",Object)],lH.prototype,"descriptionInlineExpander",void 0);
_.x([_.jj("#editable-description-inline-expander"),_.e("design:type",Object)],lH.prototype,"editableDescriptionInlineExpander",void 0);_.x([_.L(),_.e("design:type",Object)],lH.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],lH.prototype,"isUltraWide",void 0);_.x([_.jj("#editable-title-display"),_.e("design:type",Object)],lH.prototype,"editableTitle",void 0);_.x([_.A("isUltraWide"),_.e("design:type",Object),_.e("design:paramtypes",[])],lH.prototype,"maxDescriptionLines",null);
_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],lH.prototype,"noCinematicData",null);_.x([_.B("yt-new-playlist-header"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],lH.prototype,"onUpdateHeader",null);_.x([_.A("data","isDarkTheme"),_.e("design:type",Object),_.e("design:paramtypes",[])],lH.prototype,"backgroundStyle",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],lH.prototype,"descriptionFormData",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],lH.prototype,"getDropdownTheme",null);_.x([_.A("data","isDarkTheme"),_.e("design:type",String),_.e("design:paramtypes",[])],lH.prototype,"gradientStyle",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],lH.prototype,"descriptionTapText",null);
lH=_.x([_.d({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],lH);
_.T(lH,"ytd-playlist-header-renderer",function(){if(VEQ!==void 0)return VEQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return VEQ=y},{mode:_.xm("kevlar_poly_si_batch_j078")?1:2});var Wd9;var c1H;var Z_H=function(){return _.v.apply(this,arguments)||this};
_.R(Z_H,_.v);Z_H.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
var Ew=Z_H;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ew.prototype,"data",void 0);Ew=_.x([_.d({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Ew);
_.T(Ew,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(c1H!==void 0)return c1H;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return c1H=y},{mode:1});var GDf=function(){return _.v.apply(this,arguments)||this};
_.R(GDf,_.v);
GDf.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}}}}};
GDf.prototype.computeUsePremiumShowStyle=function(y){if(!y||!y.items)return!1;for(var W=0;W<y.items.length;W++)if(_.g(y.items[W],ZI3)){var c=void 0;return((c=_.g(y.items[W],ZI3))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
var NX=GDf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],NX.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.e("design:type",Boolean)],NX.prototype,"usePremiumShowStyle",void 0);
NX=_.x([_.d({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],NX);
_.T(NX,"ytd-playlist-sidebar-renderer",function(){if(Wd9!==void 0)return Wd9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Wd9=y},{mode:1});var fp9;var v83=_.ug({pageHeaderViewModel:_.Zbh});_.eu(dX6);_.TP(dX6,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.A3(_.ba6,"yt-image-banner-view-model",{props:{data:_.Ix,isPositionRelative:_.Ix}});var o46=function(){var y=_.v.apply(this,arguments)||this;y.expandableCustomTabRenderable=function(W){return A8D(W,function(){return void y.onSearchNavigate()})};
y.isRichGrid=!1;y.isConstrainedList=!1;y.richGridMiniMode=!1;y.richGridStyle="RICH_GRID_STYLE_UNKNOWN";y.isRichGridShorts=!1;y.responsiveSizing="COMPACT";y.disableGridStateAware=!1;y.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return y};
_.R(o46,_.v);_.f=o46.prototype;_.f.computeHeaderDisabled=function(y,W){return W||!y||this.tabsHidden};
_.f.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.f.computeIsRichGridShorts=function(y){return y==="RICH_GRID_STYLE_SHORTS_GRID"||y==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.f.computeImageBannerViewModel=function(){var y,W;return _.g((W=_.g((y=this.data)==null?void 0:y.content,_.VzQ))==null?void 0:W.banner,_.cpa)};
_.f.computeHasCinematicContainer=function(){var y,W;return!((W=_.g((y=this.data)==null?void 0:y.content,_.VzQ))==null||!W.background)};
_.f.handleHeaderResize=function(){var y=_.p(this.hostElement).querySelector("#header");y&&_.Z2(y,"iron-resize")};
_.f.handleInsertTabCommand=function(y){var W=_.g(y,syS);W&&(W.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(c){return c.tabRenderer&&c.tabRenderer.tabIdentifier===W.tabIdentifier})||this.splice("tabs",W.tabIndex||-1,0,W.tab))};
_.f.handleRefreshChannelTabAction=function(y){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===y&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.f.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.wM(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.f.observerRichGridSlimItemsPerRow=function(){_.wM(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.f.updateCssVars=function(){this.richGridItemsPerRow&&_.wM(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ey("rich_grid_max_item_width",500))+16)-16+"px"})};
_.f.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.wM(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.f.onDataChanged=function(){this.handleHeaderResize()};
_.f.onWindowResize=function(){this.handleHeaderResize()};
_.f.onFocusedChanged=function(y){(y=_.hq(y))&&y.is==="tp-yt-paper-tab"&&y.hasRipple()&&(y.getRipple().holdDown=!y.pointerDown&&y.focused)};
_.f.updateSelectedFromBinding=function(y){this.ytdTabbedHeaderBehavior.selected=y.detail.value};
_.f.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.dJ.Object.defineProperties(o46.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BBQ(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.imageBannerViewModel)==null?void 0:y.style)==="IMAGE_BANNER_STYLE_INSET"}}});
var Ip=o46;Ip.prototype.onDataChanged=Ip.prototype.onDataChanged;Ip.prototype.updateCssVarsForResponsiveGrid=Ip.prototype.updateCssVarsForResponsiveGrid;Ip.prototype.updateCssVars=Ip.prototype.updateCssVars;Ip.prototype.observerRichGridSlimItemsPerRow=Ip.prototype.observerRichGridSlimItemsPerRow;Ip.prototype.observerRichGridItemsPerRow=Ip.prototype.observerRichGridItemsPerRow;_.x([_.C(_.lZ),_.e("design:type",Object)],Ip.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.C(th6),_.e("design:type",Object)],Ip.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Ip.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],Ip.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],Ip.prototype,"ytdReduxBehavior",void 0);_.x([_.jj("#tabs"),_.e("design:type",Object)],Ip.prototype,"tabsElement",void 0);_.x([_.L(),_.e("design:type",Array)],Ip.prototype,"tabs",void 0);_.x([_.L(),_.e("design:type",Object)],Ip.prototype,"expandableCustomTabRenderable",void 0);_.x([_.A("tabs.*"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ip.prototype,"tabGroupShape",null);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ip.prototype,"isRichGrid",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ip.prototype,"isConstrainedList",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Object)],Ip.prototype,"richGridMiniMode",void 0);_.x([_.L({selector:function(y){return y.ui.richGridStyle}}),
_.e("design:type",Object)],Ip.prototype,"richGridStyle",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.e("design:type",Object)],Ip.prototype,"isRichGridShorts",void 0);_.x([_.L({selector:_.lo}),_.e("design:type",Number)],Ip.prototype,"richGridItemsPerRow",void 0);_.x([_.L({selector:function(y){return y.ui.richGridContainerWidth}}),
_.e("design:type",Number)],Ip.prototype,"richGridContainerWidth",void 0);_.x([_.L({selector:_.lEO}),_.e("design:type",Number)],Ip.prototype,"richGridSlimItemsPerRow",void 0);_.x([_.L(),_.e("design:type",Object)],Ip.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ip.prototype,"responsiveSizing",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ip.prototype,"disableGridStateAware",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.e("design:type",Object)],Ip.prototype,"imageBannerViewModel",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.e("design:type",Boolean)],Ip.prototype,"hasCinematicContainer",void 0);_.x([_.L({selector:_.FyZ,reflectToAttribute:!0}),_.e("design:type",Boolean)],Ip.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("imageBannerViewModel"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ip.prototype,"hasBanner",null);_.x([_.L({reflectToAttribute:!0}),_.A("imageBannerViewModel"),_.e("design:type",Object),_.e("design:paramtypes",[])],Ip.prototype,"hasInsetBanner",null);_.x([_.L({computed:"computeTabsHidden(tabs)",value:!0}),_.e("design:type",Boolean)],Ip.prototype,"tabsHidden",void 0);
_.x([_.H("richGridItemsPerRow","isRichGrid"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ip.prototype,"observerRichGridItemsPerRow",null);_.x([_.H("richGridSlimItemsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ip.prototype,"observerRichGridSlimItemsPerRow",null);
_.x([_.H("richGridItemsPerRow","richGridMiniMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ip.prototype,"updateCssVars",null);_.x([_.H("richGridContainerWidth"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ip.prototype,"updateCssVarsForResponsiveGrid",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ip.prototype,"onDataChanged",null);
Ip=_.x([_.d({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Ip);
_.T(Ip,"ytd-tabbed-page-header",function(){if(fp9!==void 0)return fp9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return fp9=y},{mode:1});var Dk3;var zqB=function(){return _.v.apply(this,arguments)||this};
_.R(zqB,_.v);zqB.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.wM(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.dJ.Object.defineProperties(zqB.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var y,W;return this.componentBehavior.computeIcon_(((W=_.g((y=this.data)==null?void 0:y.badge,_.AhT))==null?void 0:W.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.badge,_.AhT))==null?void 0:W.label}}});
var pz=zqB;pz.prototype.observerRichGridItemsPerRow=pz.prototype.observerRichGridItemsPerRow;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],pz.prototype,"componentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.Rv}),_.e("design:type",Boolean)],pz.prototype,"richGridMiniMode",void 0);
_.x([_.L({selector:_.lo}),_.e("design:type",Number)],pz.prototype,"richGridItemsPerRow",void 0);_.x([_.L(),_.e("design:type",Object)],pz.prototype,"data",void 0);_.x([_.H("richGridItemsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pz.prototype,"observerRichGridItemsPerRow",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],pz.prototype,"badgeIconName",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],pz.prototype,"badgeLabel",null);pz=_.x([_.d({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],pz);
_.T(pz,"ytd-member-hub-profile-renderer",function(){if(Dk3!==void 0)return Dk3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Dk3=y},{mode:1});var Yj3;var mkZ=function(){return _.v.apply(this,arguments)||this};
_.R(mkZ,_.v);mkZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
var Pd=mkZ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Pd.prototype,"data",void 0);Pd=_.x([_.d({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Pd);
_.T(Pd,"ytd-settings-sidebar-renderer",function(){if(Yj3!==void 0)return Yj3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Yj3=y},{mode:1});var sd9;var J8=function(){return _.v.apply(this,arguments)||this};
_.R(J8,_.v);J8.prototype.shouldHideHashtagInfo_=function(y){return!(y==null?0:y.hashtagInfoText)};
J8.prototype.onFocusedChanged=function(y){(y=_.hq(y))&&y.is==="tp-yt-paper-tab"&&y.hasRipple()&&(y.getRipple().holdDown=!y.pointerDown&&y.focused)};
J8.prototype.updateSelectedFromBinding=function(y){this.selected=y.detail.value};
_.dJ.Object.defineProperties(J8.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var VO=J8;_.x([_.C(th6),_.e("design:type",Object)],VO.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VO.prototype,"rendererBehaviors",void 0);_.x([_.L(),_.e("design:type",Object)],VO.prototype,"data",void 0);_.x([_.jj("#tabs"),_.e("design:type",Object)],VO.prototype,"tabsElement",void 0);_.x([_.L(),_.e("design:type",Array)],VO.prototype,"tabs",void 0);_.x([_.L(),_.e("design:type",Object)],VO.prototype,"selected",void 0);
_.x([_.A("tabs"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],VO.prototype,"tabsEnabled",null);VO=_.x([_.d({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],VO);
_.T(VO,"ytd-hashtag-header-renderer",function(){if(sd9!==void 0)return sd9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sd9=y},{mode:_.xm("kevlar_poly_si_batch_j078")?1:2});var ukZ;var Cz=function(){var y=_.v.apply(this,arguments)||this;y.expandableCustomTabRenderable=function(W){return A8D(W,function(){return void y.onSearchNavigate()})};
return y};
_.R(Cz,_.v);Cz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Cz.prototype.onSearchNavigate=function(){this.selected=void 0};
Cz.prototype.onTabsChange=function(){var y,W=(y=this.tabs)==null?void 0:y.findIndex(function(c){var Z;return c==null?void 0:(Z=c.tabRenderer)==null?void 0:Z.selected});
W!==void 0&&(this.selected=W)};
Cz.prototype.onTabsActive=function(y){if(this.tabs!==void 0){var W,c;(y=(W=this.tabs[y.detail.selected])==null?void 0:(c=W.tabRenderer)==null?void 0:c.endpoint)&&_.Z2(this.hostElement,"yt-navigate",{endpoint:y})}};
_.dJ.Object.defineProperties(Cz.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:BBQ(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var QO=Cz;QO.prototype.onTabsChange=QO.prototype.onTabsChange;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.lZ),_.e("design:type",Object)],QO.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],QO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],QO.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Array)],QO.prototype,"tabs",void 0);_.x([_.L(),_.e("design:type",Number)],QO.prototype,"selected",void 0);_.x([_.A("tabs.*"),_.e("design:type",Object),_.e("design:paramtypes",[])],QO.prototype,"tabGroupShape",null);_.x([_.L(),_.e("design:type",Object)],QO.prototype,"expandableCustomTabRenderable",void 0);
_.x([_.A("tabs"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],QO.prototype,"tabsEnabled",null);_.x([_.Gs("tabs"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QO.prototype,"onTabsChange",null);QO=_.x([_.d({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],QO);
_.T(QO,"ytd-topic-channel-details-renderer",function(){if(ukZ!==void 0)return ukZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ukZ=y},{mode:1});var tTB;var n4Q=function(){var y=_.v.apply(this,arguments)||this;y.disableGridStateAware=!1;return y};
_.R(n4Q,_.v);n4Q.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]]"}}}}}};
n4Q.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
n4Q.prototype.updateCssVars=function(){_.wM(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ey("rich_grid_max_item_width",500))+16)-16+"px"})};
var A8=n4Q;A8.prototype.updateCssVars=A8.prototype.updateCssVars;A8.prototype.activeChanged=A8.prototype.activeChanged;_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],A8.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],A8.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],A8.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Array)],A8.prototype,"tabs",void 0);_.x([_.L(),_.e("design:type",Boolean)],A8.prototype,"active",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],A8.prototype,"disableGridStateAware",void 0);
_.x([_.L({selector:_.lo}),_.e("design:type",Number)],A8.prototype,"richGridItemsPerRow",void 0);_.x([_.L({selector:_.Rv}),_.e("design:type",Boolean)],A8.prototype,"richGridMiniMode",void 0);_.x([_.jj("ytd-carousel-item-renderer"),_.e("design:type",Object)],A8.prototype,"carousel",void 0);_.x([_.H("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],A8.prototype,"activeChanged",null);
_.x([_.H("richGridItemsPerRow","richGridMiniMode"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],A8.prototype,"updateCssVars",null);A8=_.x([_.d({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],A8);
_.T(A8,"ytd-carousel-header-renderer",function(){if(tTB!==void 0)return tTB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return tTB=y},{mode:1});var X1H;var b_H=_.dl(["https://www.google-analytics.com/analytics.js"]),r1S=function(){var y=_.v.apply(this,arguments)||this;y.scriptAnalyticsAdded=!1;return y};
_.R(r1S,_.v);r1S.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var y,W=(y=this.data)==null?void 0:y.tagManagerId;W&&(_.zI(W,_.Nn("GL")),L56(W))};
r1S.prototype.sendGoogleAnalyticsPageview=function(y){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var c=_.Cf.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(c)};
var W=window.ga;W("set","page",window.location.pathname);W.l=+new Date;W("set","forceSSL",!0);W("create",y,"'auto'");W("send","pageview")};
r1S.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var y=_.uC("SCRIPT");y.name="ga-analytics";var W=_.cu(b_H);_.eQ(y,W);y.async=!0;_.p(this.hostElement).appendChild(y)};
var h8=r1S;h8.prototype.dataChanged=h8.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],h8.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],h8.prototype,"dataChanged",null);h8=_.x([_.d({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],h8);
_.T(h8,"ytd-channel-metadata-renderer",function(){if(X1H!==void 0)return X1H;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return X1H=y},{mode:1});var Fd3;var UkS;var $kf=function(){return _.v.apply(this,arguments)||this};
_.R($kf,_.v);var KdQ=$kf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],KdQ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],KdQ.prototype,"data",void 0);KdQ=_.x([_.d({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],KdQ);
_.T(KdQ,"ytd-sub-feed-option-renderer",function(){if(UkS!==void 0)return UkS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return UkS=y},{mode:1});var O_S;var g4d=function(){return _.v.apply(this,arguments)||this};
_.R(g4d,_.v);g4d.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
var Bd=g4d;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Bd.prototype,"ytRendererStamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Bd.prototype,"data",void 0);Bd=_.x([_.d({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Bd);
_.T(Bd,"ytd-sub-feed-selector-renderer",function(){if(O_S!==void 0)return O_S;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return O_S=y},{mode:1});var RqQ=function(){return _.v.apply(this,arguments)||this};
_.R(RqQ,_.v);
RqQ.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}}}}};
var Hd=RqQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Hd.prototype,"data",void 0);Hd=_.x([_.d({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Hd);
_.T(Hd,"ytd-browse-feed-actions-renderer",function(){if(Fd3!==void 0)return Fd3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Fd3=y},{mode:1});var lpQ;var E4f;var N83=function(){return _.v.apply(this,arguments)||this};
_.R(N83,_.v);N83.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
var Lz=N83;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Lz.prototype,"data",void 0);Lz=_.x([_.d({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Lz);
_.T(Lz,"ytd-mini-channel-renderer",function(){if(E4f!==void 0)return E4f;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return E4f=y},{mode:1});var IpH;var p1H=function(){return _.v.apply(this,arguments)||this};
_.R(p1H,_.v);p1H.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
var vd=p1H;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vd.prototype,"data",void 0);vd=_.x([_.d({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],vd);
_.T(vd,"ytd-vertical-channel-section-renderer",function(){if(IpH!==void 0)return IpH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return IpH=y},{mode:1});var PIH=function(){return _.v.apply(this,arguments)||this};
_.R(PIH,_.v);PIH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
var dB=PIH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],dB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],dB.prototype,"data",void 0);dB=_.x([_.d({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],dB);
_.T(dB,"ytd-browse-secondary-contents-renderer",function(){if(lpQ!==void 0)return lpQ;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return lpQ=y},{mode:1});var J13;var VTH=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};y.notActive=!1;y.isConstrainedList=!1;return y};
_.R(VTH,_.v);_.f=VTH.prototype;
_.f.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]]"}}}},"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}}}}};
_.f.getPath=function(y,W){var c="data.tabs.#"+W+".";y.tabs[W].tabRenderer?c+="tabRenderer.":y.tabs[W].expandableTabRenderer&&(c+="expandableTabRenderer.");return c+"content.sectionListRenderer"};
_.f.computeDisplayedContent=function(y){this.unlinkPaths("content");if(y&&y.tabs)for(var W=y.tabs.length,c=0;c<W;c++){var Z=y.tabs[c].tabRenderer||y.tabs[c].expandableTabRenderer;if(Z.selected&&Z.content)return this.linkPaths("content",this.getPath(y,c)),Z.content}return null};
_.f.computeHasSecondaryColumnData=function(y){return!!y&&!!y.secondaryContents};
_.f.onRetrieveLocation=function(y,W){W.locationRetrieved(W.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);y.stopPropagation()};
_.f.onYtServiceRequestSent=function(y,W){_.O("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.f.onYtServiceRequestCompleted=function(y,W){_.O("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(W)};
_.f.onReplaceFeedContentAction=function(y){if(!_.O("replace_feed_content_action_killswitch")&&!this.notActive){var W;(y=(W=_.g(y,k_9))==null?void 0:W.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(y)}};
_.f.handleServiceRequestActions=function(y){if(y=y.actions){y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;var c=void 0;((c=_.g(W,k_9))==null?0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.g(W,k_9).items)}}};
var SC=VTH;SC.prototype.onYtServiceRequestCompleted=SC.prototype.onYtServiceRequestCompleted;SC.prototype.onYtServiceRequestSent=SC.prototype.onYtServiceRequestSent;SC.prototype.onRetrieveLocation=SC.prototype.onRetrieveLocation;_.x([_.C(_.lZ),_.e("design:type",Object)],SC.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],SC.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],SC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],SC.prototype,"data",void 0);_.x([_.L({computed:"computeDisplayedContent(data)"}),_.e("design:type",Object)],SC.prototype,"content",void 0);
_.x([_.L({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],SC.prototype,"hasSecondaryColumnData",void 0);_.x([_.L({value:function(){return window.outerHeight>1024?3:2}}),
_.e("design:type",Number)],SC.prototype,"initialCount",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],SC.prototype,"pageSubtype",void 0);_.x([_.jj("ytd-section-list-renderer"),_.e("design:type",Object)],SC.prototype,"listRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],SC.prototype,"notActive",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],SC.prototype,"isConstrainedList",void 0);
_.x([_.L(),_.e("design:type",String)],SC.prototype,"responsiveSizing",void 0);_.x([_.B("yt-retrieve-location"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],SC.prototype,"onRetrieveLocation",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],SC.prototype,"onYtServiceRequestSent",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],SC.prototype,"onYtServiceRequestCompleted",null);SC=_.x([_.d({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],SC);
_.T(SC,"ytd-two-column-browse-results-renderer",function(){if(J13!==void 0)return J13;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return J13=y},{mode:2});var CI3;var Qd6;var A1g=function(){var y=_.v.apply(this,arguments)||this;y.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"]);y.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"]);y.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return y};
_.R(A1g,_.v);_.f=A1g.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.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_]]"}}}}}};
_.f.onUpdateElementsPerRowAction=function(y){y&&this.elementsPerRow!==y&&(this.elementsPerRow=y)};
_.f.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.f.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.f.computeAlertStyle_=function(y){return y};
_.f.observerElementsPerRow=function(){this.elementsPerRow&&_.wM(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.f.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.f.requestElementsPerRow=function(){_.Z2(this.hostElement,"yt-request-elements-per-row")};
var T_=A1g;T_.prototype.onIsVisibleChanged_=T_.prototype.onIsVisibleChanged_;T_.prototype.observerElementsPerRow=T_.prototype.observerElementsPerRow;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],T_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],T_.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],T_.prototype,"actionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],T_.prototype,"data",void 0);_.x([_.L({value:6,reflectToAttribute:!0}),_.e("design:type",Number)],T_.prototype,"elementsPerRow",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],T_.prototype,"wrapButtons",void 0);_.x([_.L({value:_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.e("design:type",Boolean)],T_.prototype,"isMusic",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.e("design:type",String)],T_.prototype,"alertStyle",void 0);_.x([_.L({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.e("design:type",Function)],T_.prototype,"dismissBoundButtonTap_",void 0);_.x([_.L({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.e("design:type",Function)],T_.prototype,"acceptBoundButtonTap_",void 0);_.x([_.H("elementsPerRow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T_.prototype,"observerElementsPerRow",null);_.x([_.H("data.isVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T_.prototype,"onIsVisibleChanged_",null);T_=_.x([_.n6({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],T_);
_.T(T_,"yt-alert-with-actions-renderer",function(){if(Qd6===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;CI3===void 0&&(CI3=document.createElement("template"));var Z=CI3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Qd6=y}y=Qd6;return y},{mode:2});_.A3(_.Ax(function(y){var W=_.HO(),c=function(){return y.data().canvasPromoData},Z=function(){var D;
return(D=y.data().bannerHeight)!=null?D:48};
_.VL(W,function(){var D;return(D=y.data())==null?void 0:D.rendererContext},void 0,void 0,void 0,!0);
var G={};return _.X("yt-personal-greeting-view-model",{el:W,class:_.Mi("ytPersonalGreetingViewModelHost",y.className),style:_.cF({height:(0,_.oK)(function(){return Z()})})},_.X(_.bg,{data:function(){return y.data().avatar}},{decoratedAvatarViewModel:function(D){return _.X(_.gx,{data:D.data,
className:_.Mi("ytPersonalGreetingViewModelAvatar")})}}),_.X(_.Da,{text:function(){var D;
return(c==null?void 0:(D=c())==null?void 0:D.headline)||y.data().greeting},
className:_.Mi("ytPersonalGreetingViewModelHeadline",(G.ytPersonalGreetingViewModelHeadlineSmall=function(){return Z()===48},G))}))},"Fh"),"yt-personal-greeting-view-model",{props:{data:_.Ix,
className:_.Ix}});var hqZ=function(){var y=_.v.apply(this,arguments)||this;y.hidden=!1;y.isConstrainedList=!1;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.responsiveSizing="COMPACT";y.attachedPlayers=_.O("kevlar_channel_trailer_multi_attach")?[]:void 0;y.player=null;y.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return y};
_.R(hqZ,_.v);_.f=hqZ.prototype;
_.f.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}}}}};
_.f.created=function(){var y=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){y.disposeMastheadAd()}]};
_.f.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new bID(this.refresh,this.contents))};
_.f.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.f.activeChanged=function(){var y=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=y)};
_.f.tabsChanged=function(){var y=this,W,c,Z,G;if(this.pageSubtype==="channels"||_.O("kevlar_tab_gestures_for_tabbed_header_data")&&(((W=this.data)==null?0:(c=W.header)==null?0:c.c4TabbedHeaderRenderer)||((Z=this.data)==null?0:(G=Z.header)==null?0:G.carouselHeaderRenderer)))this.tabGestures=new hR(this.contents,this.contents,this.hostElement,this.header,function(t){y.ytdReduxBehavior.dispatch(t)});
var D,Y,u;W=(D=this.data)==null?void 0:(Y=D.contents)==null?void 0:(u=Y.twoColumnBrowseResultsRenderer)==null?void 0:u.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=W);this.tabGestures&&this.tabGestures.tabsChanged(W)};
_.f.channelIdChanged=function(){if(this.tabGestures){var y,W,c,Z=this.tabGestures,G=(y=this.data)==null?void 0:(W=y.header)==null?void 0:(c=W.c4TabbedHeaderRenderer)==null?void 0:c.channelId;G&&G!==Z.currentChannelId&&(Z.scrollPositionForTabs.clear(),Z.currentChannelId=G,Z.lastVisitedTabScrollPosition=void 0,Z.tabsStartAtInPx=0)}};
_.f.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.f.engagementPanelsChanged=function(){var y=_.U().resolve(_.Xi);if(y){if(this.engagementPanels)for(var W=_.z(this.engagementPanels),c=W.next();!c.done;c=W.next()){var Z=void 0;(c=(Z=c.value.identifier)==null?void 0:Z.tag)&&y.panelMap.delete(c)}this.engagementPanels=[];var G;W=_.z(((G=this.data)==null?void 0:G.panels)||[]);for(G=W.next();!G.done;G=W.next()){G=_.g(G.value,_.CPB);var D=c=void 0,Y=void 0,u=void 0;if(Z=((c=G)==null?void 0:c.targetId)||((D=G)==null?void 0:D.panelIdentifier)||((Y=G)==null?
void 0:(u=Y.identifier)==null?void 0:u.tag))D=c=void 0,(D=(c=y).registerPanelContent)==null||D.call(c,Z,{engagementPanelSectionListRenderer:G}),this.engagementPanels.push(G)}}};
_.f.onStampFinished=function(){var y=this;_.Lv(this,function(){if(y.tabGestures){var W=y.tabGestures;if(W.scrollPositionNeedsUpdate){var c=_.U().resolve(_.xN(_.h7)),Z;if((Z=W.selectedTab)!=null&&Z.title&&c&&(Z=c.getCurrentPage())){if(W.scrollPositionForTabs.has(W.selectedTab.title)){var G,D;c=(D=(G=c.getCurrentPage())==null?void 0:G.clientHeight)!=null?D:0;G=W.scrollPositionForTabs.get(W.selectedTab.title);Z.setScrollTop(G);c>G+100&&(W.scrollPositionNeedsUpdate=!1)}else Z.setScrollTop(Math.min(W.lastVisitedTabScrollPosition!==
void 0?W.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,W.tabsStartAtInPx)),W.scrollPositionNeedsUpdate=!1;W.ytdReduxDispatch(SwZ(!1))}}}})};
_.f.loadPage_=function(y){this.initCsi();y&&(this.data=y);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.f.getTitle=function(y){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",y))return this.get("microformat.microformatDataRenderer.title",y);if(this.get("header.c4TabbedHeaderRenderer.title",y))return this.get("header.c4TabbedHeaderRenderer.title",y);if(this.get("header.feedTabbedHeaderRenderer.title",y))return _.v$(this.get("header.feedTabbedHeaderRenderer.title",y));if(this.get("header.interactiveTabbedHeaderRenderer.title",y))return this.get("header.interactiveTabbedHeaderRenderer.title",
y);if(this.get("header.hashtagHeaderRenderer.hashtag",y))return _.v$(this.get("header.hashtagHeaderRenderer.hashtag",y));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",y))return _.v$(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
y));var W,c;return _.O("enable_page_header_page_title")&&(y==null?0:(W=y.header)==null?0:(c=W.pageHeaderRenderer)==null?0:c.pageTitle)?y.header.pageHeaderRenderer.pageTitle:""};
_.f.updateTitle=function(y){_.Z2(this.hostElement,"yt-update-title",this.getTitle(y))};
_.f.initCsi=function(){_.J8d(this.pageSubtype||"browse",["ol","cpt"])};
_.f.getPlayer=function(){if(_.O("kevlar_channel_trailer_multi_attach")){for(var y=_.z(this.attachedPlayers),W=y.next();!W.done;W=y.next())if(W=W.value,W.isConnected||_.Cg(this.hostElement,W))return W;return null}return this.player};
_.f.getPlayerContainer=function(){return null};
_.f.onPlayerAttached=function(y,W){_.O("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(W):this.player=W};
_.f.onPlayerDetached=function(y,W){_.O("kevlar_channel_trailer_multi_attach")?(y=this.attachedPlayers.indexOf(W),y<0||this.attachedPlayers.splice(y,1)):this.player=null};
_.f.getServiceTrackingParams=function(){var y,W;return((y=this.data)==null?void 0:(W=y.responseContext)==null?void 0:W.serviceTrackingParams)||[]};
_.f.setMastheadAd=function(y){y&&y.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=y&&y.mastheadAd};
_.f.dataChanged=function(){var y=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.K5D();_.Lv(this,function(){_.fl(y.hostElement,"ytd-update-grid-state-action")})};
_.f.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.f.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var y=this.data.alerts;return y&&y.find(function(W){return!!W.alertWithActionsRenderer})}};
_.f.computeGreetingData=function(){if(this.data&&this.data.alerts){var y=this.data.alerts;return y&&y.find(function(W){return!!W.personalGreetingViewModel})}};
_.f.computeHasC4TabbedHeaderRenderer=function(y){var W;return!!(y==null?0:(W=y.header)==null?0:W.c4TabbedHeaderRenderer)};
_.f.computeHasMemberHubProfileRenderer=function(y){var W;return!!(y==null?0:(W=y.header)==null?0:W.memberHubProfileRenderer)};
_.f.handleAlertCommand=function(y){this.get("alertCommand.alert.alertWithActionsRenderer",y)&&(y=_.g(y,jyf),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",y.alert))};
_.f.handleYtPlaylistDeletionRedirect=function(y){y=this.get("playlistDeletionRedirectCommand.redirectEndpoint",y);_.Z2(this.hostElement,"yt-navigate",{endpoint:y})};
_.f.computeFluidWidth=function(y,W,c){if(W==="mini_app"||c)return!0;var Z,G,D;y=y==null?void 0:(Z=y.contents)==null?void 0:(G=Z.twoColumnBrowseResultsRenderer)==null?void 0:(D=G.tabs)==null?void 0:D.find(function(t){var b;return t==null?void 0:(b=t.tabRenderer)==null?void 0:b.selected});
if(!y)return!1;var Y,u;return!!((Y=y.tabRenderer)==null?0:(u=Y.content)==null?0:u.richGridRenderer)&&!["channel","channels","playables"].includes(W)};
_.f.computeHeaderFluidWidth=function(y){return y==="hashtag-landing-page"};
_.f.computeHasSidebar=function(y){var W;return!!(y.sidebar||((W=y.header)==null?0:W.playlistHeaderRenderer))};
_.f.computeHasPageHeaderSidebar=function(y){var W,c;return!!((W=y.header)==null?0:(c=W.pageHeaderRenderer)==null?0:c.enableSidebarView)};
_.f.computeUseUnifiedShowPageLayout=function(y){if(!y||this.pageSubtype!=="show"||!y.sidebar||!y.sidebar.playlistSidebarRenderer)return!1;y=y.sidebar.playlistSidebarRenderer;if(!y.items)return!1;for(var W=0;W<y.items.length;W++)if(_.g(y.items[W],ZI3)){var c=void 0;return((c=_.g(y.items[W],ZI3))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.f.computeIsConstrainedList=function(y){return _.O("web_enable_constrained_list_subscriptions_channels")&&y==="subscriptions-channels"};
_.f.computeResponsiveSizing=function(y){return y==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.dJ.Object.defineProperties(hqZ.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W;return((y=this.data)==null?0:(W=y.header)==null?0:W.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var y,W;if(!((y=this.data)==null?0:(W=y.sidebar)==null?0:W.playlistSidebarRenderer))return!1;var c;return(c=this.data)!=null&&c.header?!1:!0}}});
_.dJ.Object.defineProperties(hqZ,{template:{configurable:!0,enumerable:!0,get:function(){if(Uxd===void 0){var y=document.createElement("template");_.E(y,'\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]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);Uxd=y}y=Uxd;return y}}});
var ap=hqZ;ap.prototype.dataChanged=ap.prototype.dataChanged;ap.prototype.onPlayerDetached=ap.prototype.onPlayerDetached;ap.prototype.onPlayerAttached=ap.prototype.onPlayerAttached;ap.prototype.onStampFinished=ap.prototype.onStampFinished;ap.prototype.engagementPanelsChanged=ap.prototype.engagementPanelsChanged;ap.prototype.scrollAtTopChanged=ap.prototype.scrollAtTopChanged;ap.prototype.channelIdChanged=ap.prototype.channelIdChanged;ap.prototype.tabsChanged=ap.prototype.tabsChanged;
ap.prototype.activeChanged=ap.prototype.activeChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],ap.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],ap.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],ap.prototype,"ytdReduxBehavior",void 0);
_.x([_.C(_.Ch.YtPageBehavior),_.e("design:type",Object)],ap.prototype,"ytPageBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],ap.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ap.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ap.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ap.prototype,"hidden",void 0);_.x([_.L(),_.e("design:type",Object)],ap.prototype,"mastheadAdData",void 0);_.x([_.L({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.e("design:type",Object)],ap.prototype,"alertBannerData",void 0);_.x([_.L({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.e("design:type",Object)],ap.prototype,"greetingData",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],ap.prototype,"pageSubtype",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.e("design:type",Boolean)],ap.prototype,"hasC4TabbedHeaderRenderer",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.e("design:type",Boolean)],ap.prototype,"hasMemberHubProfileRenderer",void 0);
_.x([_.L({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],ap.prototype,"hasSidebar",void 0);_.x([_.L({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],ap.prototype,"hasPageHeaderSidebar",void 0);_.x([_.L({reflectToAttribute:!0,value:!0}),_.e("design:type",Boolean)],ap.prototype,"roundedContainer",void 0);
_.x([_.L({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],ap.prototype,"useUnifiedShowPageLayout",void 0);_.x([_.L({computed:"computeIsConstrainedList(pageSubtype)"}),_.e("design:type",Object)],ap.prototype,"isConstrainedList",void 0);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ap.prototype,"usePlaylistHeaderRenderer",null);
_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],ap.prototype,"useOldPlaylistSidebarRenderer",null);_.x([_.L({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.e("design:type",Boolean)],ap.prototype,"fluidWidth",void 0);_.x([_.L({selector:function(y){return y.ui.scrollAtTop}}),
_.e("design:type",Boolean)],ap.prototype,"scrollAtTop",void 0);_.x([_.L({selector:_.U49}),_.e("design:type",Boolean)],ap.prototype,"tabGesturesIsActive",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ap.prototype,"darkerDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.e("design:type",Boolean)],ap.prototype,"disableHeaderFluidWidth",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.e("design:type",String)],ap.prototype,"responsiveSizing",void 0);_.x([_.jj("ytd-two-column-browse-results-renderer"),_.e("design:type",HTMLElement)],ap.prototype,"contents",void 0);_.x([_.jj("#header"),_.e("design:type",HTMLElement)],ap.prototype,"header",void 0);_.x([_.jj("ytd-refresh"),_.e("design:type",Object)],ap.prototype,"refresh",void 0);
_.x([_.H("active"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ap.prototype,"activeChanged",null);_.x([_.H("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ap.prototype,"tabsChanged",null);_.x([_.H("data.header.c4TabbedHeaderRenderer.channelId"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ap.prototype,"channelIdChanged",null);
_.x([_.H("scrollAtTop"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ap.prototype,"scrollAtTopChanged",null);_.x([_.L(),_.e("design:type",Object)],ap.prototype,"engagementPanels",void 0);_.x([_.H("data.panels"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ap.prototype,"engagementPanelsChanged",null);
_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ap.prototype,"onStampFinished",null);_.x([_.B("yt-player-attached"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Element]),_.e("design:returntype")],ap.prototype,"onPlayerAttached",null);_.x([_.B("yt-player-detached"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Element]),_.e("design:returntype")],ap.prototype,"onPlayerDetached",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ap.prototype,"dataChanged",null);ap=_.x([_.d({is:"ytd-browse"})],ap);_.r$.registerService(_.ciI,ap);
_.NQ();
}catch(e){_._DumpException(e)}
try{
_.ER("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 tlg=function(y,W){return y<W?-1:y>W?1:0},TB=function(y,W){var c=0;
y=(0,_.yb)(String(y)).split(".");W=(0,_.yb)(String(W)).split(".");for(var Z=Math.max(y.length,W.length),G=0;c==0&&G<Z;G++){var D=y[G]||"",Y=W[G]||"";do{D=/(\d*)(\D*)(.*)/.exec(D)||["","","",""];Y=/(\d*)(\D*)(.*)/.exec(Y)||["","","",""];if(D[0].length==0&&Y[0].length==0)break;c=tlg(D[1].length==0?0:parseInt(D[1],10),Y[1].length==0?0:parseInt(Y[1],10))||tlg(D[2].length==0,Y[2].length==0)||tlg(D[2],Y[2]);D=D[3];Y=Y[3]}while(c==0)}return c},aj=function(y){if(!y)return"browse";
var W=y.page,c=y.url,Z,G,D,Y=(Z=y.response)==null?void 0:(G=Z.responseContext)==null?void 0:(D=G.webResponseContextExtensionData)==null?void 0:D.pageTheme;if(Y)W=Y.toLowerCase().replace(/_/g,"-");else if(W!=="watch"){var u,t;if((W==="browse"||W==="settings")&&((u=y.response)==null?0:(t=u.sidebar)==null?0:t.settingsSidebarRenderer))W="WEB_PAGE_TYPE_SETTINGS";else{var b,r;W==="browse"&&((b=y.response)==null?0:(r=b.metadata)==null?0:r.channelMetadataRenderer)?W="channel":c&&(W=_.b4a(c)||W)}}return W},
n09=function(){var y=_.JW("yt.aba.att");
return y?y:_.wh.instance!==void 0?_.wh.instance.t90.bind(_.wh.instance):null},Xh6=function(y,W){var c;
return _.m(function(Z){return(c=n09())?Z.return(c(y,W,6E4)):Z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},bND=function(y,W,c,Z,G){W=W===void 0?[]:W;
G=G?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:G}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.wK(y),dialogMessages:W.map(function(D){return _.wK(D)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wK(c),serviceEndpoint:G}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.wK(Z)}}}}}},r33=function(y){var W=!!_.JI().queueProxy;
var c,Z,G;y=y==null?void 0:(c=y.response)==null?void 0:(Z=c.currentVideoEndpoint)==null?void 0:(G=Z.watchEndpoint)==null?void 0:G.playlistId;return!(!W&&!y)},FIg=function(y,W){var c=_.GR();
if(r33(y))return c.playlistWatchPageActivation=!0;switch(aj(W)){case "yts-products":return c.productDetailsPageActivation=!0;case "mini_app":return c.miniAppPageActivation=!0;case "playables":return c.playablesDestPageActivation=!0;default:return!1}},UiB=function(y,W,c){for(var Z=typeof y==="string"?y.split(""):y,G=y.length-1;G>=0;--G)G in Z&&W.call(c,Z[G],G,y)},$i9=function(y,W){W=_.FEy(y,W);
W>=0&&_.KEh(y,W)},KIg=function(y){return Array.prototype.concat.apply([],arguments)},OND=function(y){var W=0;
W=W===void 0?0:W;if(!_.iE(y))throw _.Z0("uint64");var c=typeof y;switch(W){case 512:switch(c){case "string":return _.EWy(y);case "bigint":return String((0,_.YQ)(64,y));default:return _.REH(y)}case 1024:switch(c){case "string":return _.N2E(y);case "bigint":return _.QT((0,_.YQ)(64,y));default:return _.l0h(y)}case 0:switch(c){case "string":return _.EWy(y);case "bigint":return _.QT((0,_.YQ)(64,y));default:return _.gWa(y)}default:return _.d2(W,"Unknown format requested type for int64")}},g0Z=function(y){y!=
null&&(y=y.JSC$6680_value_||"",y=typeof y==="string"?y:new Uint8Array(y));
return y},RWS=function(y){for(var W=_.Cf.apply(1,arguments),c=y[0],Z=0;Z<y.length-1;Z++)c+=String(W[Z]),c+=y[Z+1];
W=document.implementation.createHTMLDocument("");Z=W.createElement("style");W.head.appendChild(Z);W=Z.sheet;W.insertRule(c,0);if(W.cssRules.length===1&&(c=W.cssRules[0],c instanceof CSSStyleRule))return new _.Wp(c.cssText.replace(/</g,"\\3C "))},lzf=function(y,W){if(/-[a-z]/.test(W))return null;
if(_.Nf5&&y.dataset){if(_.YDy()&&!(W in y.dataset))return null;y=y.dataset[W];return y===void 0?null:y}return y.getAttribute("data-"+_.sL(W))},NZ9=function(){var y=E0Z;
_.JW("yt.ads.biscotti.getId_")||_.LR("yt.ads.biscotti.getId_",y)},Izf=function(y){_.LR("yt.ads.biscotti.lastId_",y)},Ps6=function(){var y={};
for(_.rr=new phQ(y.handleError===void 0?_.gC:y.handleError,y.logEvent===void 0?_.$g:y.logEvent);_.FW.length>0;)switch(y=_.FW.shift(),y.type){case "ERROR":_.rr.logError(y.payload);break;case "EVENT":_.rr.logEvent(y.eventType,y.payload)}},J39=function(y,W,c){return _.p$I(function(Z){return c?Z.userIdentifier!==void 0&&!y.includes(Z.userIdentifier)&&c.includes(Z.publicName):Z.userIdentifier!==void 0&&!y.includes(Z.userIdentifier)},W)},VlD=function(y){var W,c;
return _.m(function(Z){if(Z.nextAddress==1)return W=_.m9("YtIdbMeta hasAnyMeta other"),_.n(Z,_.p$I(function(G){return G.userIdentifier!==void 0&&G.userIdentifier!==W},y),2);
c=Z.yieldResult;return Z.return(c.length>0)})},Q9f=function(y,W){CsH||(CsH=_.KX.addLowPriorityJob(function(){var c,Z,G,D,Y;
return _.m(function(u){switch(u.nextAddress){case 1:return _.n(u,_.dr(),2);case 2:c=u.yieldResult;if(!c)return u.return();Z=!0;_.tm(u,3);return _.n(u,J39(y,c,W),5);case 5:G=u.yieldResult;if(!G.length){Z=!1;u.jumpTo(6);break}D=G[0];return _.n(u,_.V2(D.actualName),7);case 7:return _.n(u,_.A6(D.actualName,c),6);case 6:_.J6(u,4);break;case 3:Y=_.rs(u),_.UA(Y),Z=!1;case 4:_.KX.cancelJob(CsH),CsH=0,Z&&Q9f(y,W),_.F2(u)}})}))},A3d=function(){var y;
return _.m(function(W){return W.nextAddress==1?_.n(W,_.dr(),2):(y=W.yieldResult)?W.return(VlD(y)):W.return(!1)})},hWf=function(y){var W=100;
W=W===void 0?500:W;var c,Z,G,D,Y,u;return _.m(function(t){return t.nextAddress==1?(c=_.Nn("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[c,(0,_.Tj)()-2592E6],G=[c,(0,_.Tj)()],D=IDBKeyRange.bound(Z,G),_.n(t,_.c3h(y),2)):t.nextAddress!=3?(Y=t.yieldResult,u=[],_.n(t,_.Q2(Y,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(b){u.length=0;return _.aS(b.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:D,direction:"prev"},function(r){if(r.getValue()&&u.length<W)return u.push(r.getValue()),
r.delete().then(function(){return r.continue()})})}),3)):t.return(u)})},BZZ=function(){var y;
return _.m(function(W){if(W.nextAddress==1)return _.n(W,_.dr(),2);y=W.yieldResult;if(!y||!_.sA()&&!_.O("nwl_init_require_datasync_id_killswitch")||!_.KIH())return W.jumpTo(0);_.g0h=!0;_.ONI.isNwlInitialized=_.g0h;return _.n(W,_.Bz5().awaitInitialization(),0)})},xG=function(y,W){_.LII[y]=!0;
var c=_.eS();c&&c.publish.apply(c,arguments);_.LII[y]=!1},LIH=function(){if(_.rxF()&&!HN3){var y=function(c){c=c.data;
if(c.op==="serializedGelBatch"){var Z=_.duf.get(c.key);Z&&(_.TIh(c.serializedBatch,Z.client,Z.resolve,Z.networklessOptions,Z.isIsolated,Z.useVSSEndpoint,Z.dangerousLogToVisitorSession,Z.requestsOutstanding),_.duf.delete(c.key))}},W=_.b6y();
W&&(W.addEventListener("message",y),W.onerror=function(){_.duf.clear()});
HN3=!0}},i4=function(){this.relativeTimeStart_=_.k3()},v0g=function(y,W){y!=null&&this.append.apply(this,arguments)},diD=function(){return _.PT("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},SHH=function(y,W,c){c=c===void 0?!1:c;
var Z,G,D,Y,u;return _.m(function(t){switch(t.nextAddress){case 1:_.zj("SOCS",y,34128E3,"youtube.com",!0);if(_.Dq)return G=fetch(W,{method:"POST",mode:_.LO(W),credentials:_.HT(W),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),D=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.LO("/upgrade_visitor_cookie?eom=1"),credentials:_.HT("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.n(t,Promise.all([G,D]).then(function(b){return b[1]}),5);
fetch(W,{method:"POST",mode:_.LO(W),credentials:_.HT(W),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.n(t,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.LO("/upgrade_visitor_cookie?eom=1"),credentials:_.HT("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Z=t.yieldResult;t.jumpTo(3);break;case 5:Z=Y=t.yieldResult;case 3:if(!Z.ok)throw Error("nf");return _.n(t,Z.text(),7);case 7:u=t.yieldResult,
!u.includes('"state_switch":true')&&!c||u.includes("skip_reload_for_test")||window.location.reload(),_.F2(t)}})},TZd=function(y){return _.m(function(W){return W.nextAddress==1?_.n(W,SHH(y.socsCookie,y.savePreferenceUrl,!0),2):W.return()})},azH=function(y){return _.m(function(W){return W.nextAddress==1?_.n(W,SHH(y.socsCookie,y.savePreferenceUrl),2):W.return()})},iN9=function(y){y=y.xhr.responseText;
if(!_.mE(y,")]}'"))throw new MG;y=JSON.parse(y.substr(4));if((y.type||1)>1)throw new MG;y=y.id;Izf(y);e$=_.CF(y);xi6(18E5,2);return y},eWB=function(y,W){W=new MlZ(W);
Izf("");e$=_.vS8(W);y>0&&xi6(12E4,y-1);throw W;},xi6=function(y,W){_.j5(function(){_.vjD().then(iN9,function(c){return eWB(W,c)}).thenCatch(_.me)},y)},E0Z=function(){var y=_.qSD();
if(y!==void 0)return _.hG(y);e$||(e$=_.vjD().then(iN9).thenCatch(function(W){return eWB(2,W)}));
return e$},whD=function(){var y=document;
return _.Qw(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in y})},qHg=function(y){y.addEventListener("click",function(W){var c=W.target;
c&&c.getAttribute("href")&&(c=c.getAttribute("href"),_.SQ(window,c,"_blank"),W.preventDefault(),W.stopImmediatePropagation())})},kPS=function(y){var W,c,Z,G=(Z=(c=((W=y.mainDownloadsListEntity)!=null?W:{})[_.Utt])==null?void 0:c.refresh)!=null?Z:"",D;
y=(D=y.refresh)==null?void 0:D[G];G=y!=null?y:{};return(G==null?0:G.refreshTime)?Number(G==null?void 0:G.refreshTime):0},jLd=function(y,W){var c=_.$R(y);
return W.every(function(Z){var G;Z=Z==null?void 0:(G=Z.playbackDataEntity)==null?void 0:G.key;if(!Z)return!1;G=_.Gx(_.W$(Z).entityId,"mainVideoEntity");return!!c[G]})},y79=function(y){y=_.ru(y.entities);
return _.VxO(y).length},W$d=function(y,W){if(W){var c;
y=(c=_.fq(y.entities,"downloadQualityPickerEntity",W))!=null?c:void 0}else y=void 0;return y},Gb9=function(){c7S||(_.H$=_.Xjf,c7S=new Zxd);
return c7S},fa9=function(y){var W=document.getElementsByTagName("ytd-enforcement-message-view-model");
W.length===0||getComputedStyle(W[0]).display==="none"?y(0,"p.h_"):y(1,"p.h_")},w0=function(y){var W,c;
(y=(c=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?void 0:c.url)&&(W=_.b4a(y));return W},oxZ=function(){qG=0;
var y=[_.Y$(!0)];kG&&_.fl(kG,"yt-window-resized",y)},DuZ=function(){qG||(qG=_.KX.addLowPriorityJob(oxZ,200))},Ye9=function(){jK=0;
zUZ=_.f3Z(document);var y=[zUZ];kG&&_.fl(kG,"yt-window-scrolled",y)},muH=function(){jK||(jK=_.KX.addLowPriorityJob(Ye9,200))},uPS=function(y){y=y===void 0?null:y;
sLf.push(_.SS(window,"resize",DuZ));sLf.push(_.SS(window,"scroll",muH));y&&(kG=y)},t9Z=function(y){_.m(function(W){if(W.nextAddress==1)return _.n(W,y.delete("yt-appshell-assets"),2);
_.F2(W)})},nxH=function(y){return _.CR((0,_.Y1V)(),y)},bx6=function(){var y;
_.m(function(W){return W.nextAddress==1?_.n(W,yS.getInstance(),2):(y=W.yieldResult)?_.n(W,XFQ(y),0):W.jumpTo(0)})},F$9=function(){var y;
_.m(function(W){return W.nextAddress==1?_.n(W,We.getInstance(),2):(y=W.yieldResult)?_.n(W,r7Z(y),0):W.jumpTo(0)})},UuZ=function(y){t9Z(y);
bx6();F$9()},$uZ=function(y){var W,c;
return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,_.afa(y),2);if(W=Z.yieldResult){var G;a:{if(W.headers&&(G=W.headers.get("date"))&&(G=Date.parse(G),!isNaN(G))){G=Math.round((0,_.Tj)()-G);break a}G=-1}c=G;if(c>-1)return Z.return(c)}return Z.return(-1)})},K$d=function(){var y=_.DH.caches,W=_.I8("IS_SHELL_LOAD"),c,Z;
_.m(function(G){if(G.nextAddress==1)return c=-1,W?_.n(G,$uZ(y),3):(Z=_.gK(),c=Math.round((0,_.Tj)()-Z),G.jumpTo(2));G.nextAddress!=2&&(c=G.yieldResult);c>=0&&c<2147483648&&_.IP({appInstallDataAgeMs:c});_.F2(G)})},Oxf=function(y){var W=_.ho(_.DH.location.href),c={};
"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(Z){var G=W.JSC$7898_queryData_.getValues(Z);if(G==null?0:G.length)c[Z]=G});
return _.of(y,new Map(Object.entries(c)))},gxQ=function(y){y=y.match(/(.*)::.*::.*/);
if(y!==null)return y[1]},RU9=function(y){if(_.YkE()){var W=Object.keys(window.localStorage);
W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=gxQ(c);Z===void 0||y.includes(Z)||self.localStorage.removeItem(c)}}},la6=function(){if(!_.YkE())return!1;
var y=_.m9(),W=Object.keys(window.localStorage);W=_.z(W);for(var c=W.next();!c.done;c=W.next())if(c=gxQ(c.value),c!==void 0&&c!==y)return!0;return!1},Ex9=function(y){return _.Qe("NotificationsDisabled",y)},NId=function(){return Notification.permission!="granted"?Promise.resolve():_.$4H().then(function(y){return y?y.pushManager.getSubscription().then(function(W){if(W)return Promise.resolve();
W={userVisibleOnly:!0,applicationServerKey:_.cJ("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return y.pushManager.subscribe(W).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},IaQ=function(y){return _.$4H().then(function(W){if(!W||!W.active)return Promise.reject(new _.ul("serviceworker.postMessage",y,W));
try{return W.active.postMessage(y),Promise.resolve()}catch(c){return Promise.reject(c)}})},pF9=function(){IaQ({type:"notifications_register",
data:_.Nn("ID_TOKEN")})},J7H=function(){var y={isWide:_.DP.get("wide","0")==="1"},W=_.Uc();
if(W=W.getFlag(165)||W.getFlag(174))y.theme=_.NO(!0);if(_.NND()){var c=_.Et()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";y.systemTheme=c}!W&&_.O("parent_tools_enable_app_settings")&&_.hW(window.location.href).theme!==void 0&&(y.theme=_.NO());if((W=ce)?!_.Eb.equals(W,y):y)W={currentValue:y},Pv6&&(W.timeSinceLastSnapshotSecs=Math.round(((0,_.Tj)()-Pv6)/1E3)),ce&&(W.previousValue=ce),_.$g("appSettingsCaptured",W),ce=y,Pv6=(0,_.Tj)()},V99=function(){if(!_.I8("LOGGED_IN"))return Promise.resolve(!1);
var y=_.wj("service_worker_push_force_notification_prompt_tag");return y?_.LK("PromptTags").then(function(W){if(!W)return!0;var c=[];try{c=JSON.parse(W)}catch(Z){return!1}return c&&c.indexOf(y)==-1}):Promise.resolve(!1)},Cv9=function(){var y=_.ey("service_worker_push_prompt_delay_microseconds");
return y?_.LK("PromptTime").then(function(W){return Promise.resolve(Date.now()-y>(W||0))}):Promise.resolve(!0)},QL9=function(){var y=_.ey("service_worker_push_logged_out_prompt_watches");
return y==-1?Promise.resolve(!1):_.LK("WatchCount").then(function(W){return W>=y})},A79=function(){var y=_.vF(document,"yt-push-prompt-modal-bg");
y&&_.to(y)},hUH=function(){return _.ey("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.LK("PromptCount").then(function(y){y||(y=0);
return Promise.resolve(y<_.ey("service_worker_push_prompt_cap"))})},BId=function(y){return _.I8("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.I8("LOGGED_IN")&&(y===void 0?0:y)?V99().then(function(W){if(W)return!0;
W=[hUH(),Cv9()];_.I8("LOGGED_IN")||W.push(QL9());return Promise.all(W).then(function(c){return c.every(function(Z){return Z})})}):Promise.resolve(!1)},HxS=function(){_.LK("PromptCount").then(function(y){return _.Qe("PromptCount",y+1)}).then(function(){return _.Qe("PromptTime",Date.now())}).then(function(){var y=_.wj("service_worker_push_force_notification_prompt_tag");
if(y)return _.LK("PromptTags").then(function(W){var c=[];if(W)try{c=JSON.parse(W)}catch(Z){return!1}c||(c=[]);c.push(y);return _.Qe("PromptTags",JSON.stringify(c))})})},vx9=function(){L$Q||A79()},du9=function(y){y.style.zIndex=2147483648;
y.style.pointerEvents="auto";y.style.backgroundColor="rgba(0, 0, 0, 0.6)";y.style.width="100%";y.style.height="100vh";y.style.position="absolute";y.style.top="0";y.style.left="0";y.style.border="none"},Seg=function(){var y=_.vF(document,"yt-push-prompt-modal-bg");
L$Q=_.O("service_worker_push_prompt_modal_ignore_click");y?du9(y):(y=_.Of("div",{id:"yt-push-prompt-modal-bg"}),du9(y),document.body.appendChild(y),_.A3w(document,"click",vx9))},TIZ=function(){var y=arguments;
_.O("service_worker_push_prompt_modal_enable")&&Seg();return Notification.requestPermission().then(function(W){A79();var c=document.getElementById("ticker");c&&(c.className=c.classList.remove("show"));if(W=="granted")return NId().then(function(){Ex9(!1);pF9();return Promise.resolve(!0)});
W=="denied"&&pF9();return Promise.resolve(!1)}).catch(function(){A79();
return Promise.reject.apply(Promise,_.No(y))})},aa9=function(y){y=y===void 0?!1:y;
var W=_.Vaf().client;if(W&&W.browserVersion){var c=W.browserVersion,Z=W.browserName=="CHROME"&&TB(c,"50.0.0")<0;W=W.browserName=="OPERA"&&TB(c,"42.0.0")<0;if(Z||W)return Promise.resolve()}return _.gM9().then(function(G){if(!G)return Promise.resolve();G=NId().then(function(){return IaQ({type:"notifications_check_registration",data:_.Nn("ID_TOKEN")})});
return Notification.permission!="default"?G.catch(function(){}):G.then(function(){return BId(y)}).then(function(D){if(D)return HxS(),TIZ().then(function(){})}).catch(function(){})})},xuH=function(y){return _.KyS(y)?aa9():Promise.resolve()},ixS=function(y){var W=y.installing||y.waiting;
return y.active||!W?Promise.resolve(y):new Promise(function(c){var Z=function(G){G=G.target;if(G.state==="activated"||G.state==="redundant")W.removeEventListener("statechange",Z),c(y)};
W.addEventListener("statechange",Z)})},M9f=function(){var y=new _.OUh("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.zy(y,{mainAppWeb:_.Jq()});var W=_.pzm;_.O("service_worker_forward_exp_params")&&(W=Oxf(W));try{var c=_.ALI(W).catch(function(){_.Y3(y,"FAILURE");return new Promise(function(){})});
_.O("service_worker_push_enabled")&&c.then(function(Z){_.Y3(y,"SUCCESS");return Z}).then(ixS).then(xuH)}catch(Z){if(_.Y3(y,"FAILURE"),Z.name!=="SecurityError")throw Z;
}},eUD=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&M9f()},wF3=function(y,W){var c={};
W&&(c.serializedYpcFamilyCreateLoggingParams=W);_.$g(y,c);_.KD()},qeH=function(y,W){var c={};
c.serializedYpcRefundFlowLoggingParams=W;y&&(c.eventType=y);_.$g("ypcRefundFlowEvent",c);_.KD()},kbQ=function(y){y&&_.BNO("transactionFlowSucceeded",y)},j3S=function(y){y&&_.XE("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",y,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},yzf=function(y){var W,c,Z,G,D,Y,u;
_.m(function(t){if(t.nextAddress==1)return _.n(t,_.ota(),2);if(t.nextAddress!=3){if(!t.yieldResult)return t.return(!1);W=[];return _.n(t,_.dZ.keys(),3)}c=t.yieldResult;Z=_.z(c);for(G=Z.next();!G.done;G=Z.next())D=G.value,Y=_.Gzh(D),u=Y.datasyncId,!u||y.includes(u)||W.push(_.dZ.delete(D));return t.return(Promise.all(W).then(function(b){return b.some(function(r){return r})}))})},WlQ=function(){var y,W,c,Z,G,D,Y;
return _.m(function(u){if(u.nextAddress==1)return _.n(u,_.ota(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);y=_.m9("cache contains other");return _.n(u,_.dZ.keys(),3)}W=u.yieldResult;c=_.z(W);for(Z=c.next();!Z.done;Z=c.next())if(G=Z.value,D=_.Gzh(G),(Y=D.datasyncId)&&Y!==y)return u.return(!0);return u.return(!1)})},cz9=function(){var y=_.U().resolve(_.xN(_.AOE));
return y?y.getCurrentTime():0},ZpQ=function(){var y,W,c,Z,G,D,Y,u,t,b,r,F,K,l;
return _.m(function(N){switch(N.nextAddress){case 1:y={},W=_.kTO(),c=_.z(Object.entries(W)),Z=c.next();case 4:if(Z.done){N.jumpTo(3);break}G=Z.value;D=_.z(G);Y=D.next().value;u=D.next().value;t=Y;b=u;if(!b){N.jumpTo(5);break}return _.n(N,b(),8);case 8:y[t]=N.yieldResult;case 5:Z=c.next();N.jumpTo(4);break;case 2:r=_.z(void 0),F=r.next();case 9:if(F.done){N.jumpTo(3);break}K=F.value;l=W[K];if(!l){N.jumpTo(10);break}return _.n(N,l(),13);case 13:y[K]=N.yieldResult;case 10:F=r.next();N.jumpTo(9);break;
case 3:return N.return(y)}})},GZ9=function(){var y;
_.m(function(W){if(W.nextAddress==1)return _.n(W,ZpQ(),2);y=W.yieldResult;return _.n(W,navigator.clipboard.writeText(JSON.stringify(y,null,2)),0)})},fxZ=function(y,W){return _.fq(y.entities,"superThanksSelectedTierEntity",W)},oY6=function(y){var W;
return(W=y.sharedUi)==null?void 0:W.currentPageType},D8Q=function(y,W){return{popup:{searchSuggestionReportDialog:{searchQuery:y,
title:_.bN("SBOX_INAPPROPRIATE_TITLE"),suggestions:W,categoryLabel:_.bN("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.bN("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.bN("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.bN("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.bN("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.bN("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.bN("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.bN("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.bN("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.bN("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},zNf=function(y){var W,c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy;
return _.m(function(M){switch(M.nextAddress){case 1:return _.n(M,_.zx(),2);case 2:return(W=M.yieldResult)?_.n(M,_.T3h(W),3):M.return();case 3:c=M.yieldResult;if(!c)return M.return();G=((Z=c.offlineVideos)==null?void 0:Z.length)||0;Y=((D=c.offlinePlaylists)==null?void 0:D.length)||0;if(G===0&&Y===0)return M.return();u=0;if(c.offlineVideos)for(t=_.z(c.offlineVideos),b=t.next();!b.done;b=t.next())r=b.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===r.videoState&&(u+=1);y.offline_videos_count=G.toString();_.O("kevlar_log_offline_current_network_type_ks")||
(y.offline_current_network_type=(F=_.ZqE())!=null?F:"CONN_INVALID");_.O("kevlar_log_updated_time_for_smart_downloads")&&(K=_.Sv().getState().entities,l=_.gu(K),N=kPS(K),y.offline_smart_downloads_last_sync_time_ms=l.toString(),y.offline_smart_downloads_next_sync_time_ms=N.toString());y.offline_videos_playable=u.toString();y.offline_playlists_count=Y.toString();if(!_.O("woffle_used_state_report")){M.jumpTo(4);break}c.offlineVideos&&(P=c.offlineVideos.reduce(function(fa,jI){jI.downloadedBytes&&(fa+=
Number(jI.downloadedBytes));return fa},0).toString())&&(y.offline_used_disk_space_bytes=P);
if(!((V=navigator)==null?0:(Q=V.storage)==null?0:Q.estimate)){M.jumpTo(4);break}return _.n(M,navigator.storage.estimate(),6);case 6:S=M.yieldResult,y.offline_free_disk_space_bytes=(((cy=S)==null?void 0:cy.quota)||0).toString();case 4:y.offline_client_state=JSON.stringify(c),_.F2(M)}})},YV6=function(y){y=y.match(/(.*)::.*::.*/);
if(y!==null)return y[1]},m8Q=function(y){if(_.BnF()){var W=Object.keys(window.sessionStorage);
W=_.z(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=YV6(c);Z===void 0||y.includes(Z)||self.sessionStorage.removeItem(c)}}},s3Q=function(){if(!_.BnF())return!1;
var y=_.m9(),W=Object.keys(window.sessionStorage);W=_.z(W);for(var c=W.next();!c.done;c=W.next())if(c=YV6(c.value),c!==void 0&&c!==y)return!0;return!1},Z1=function(y,W,c){(_.O("desktop_keyboard_shortcut_usage_log")||c&&_.O("web_shorts_keyboard_shortcut_usage_log"))&&(W?_.v6.get(y):_.Lr.get(y))&&(y=W?_.S$.get(y):_.d0.get(y))&&_.SG(_.NR(),y)},u5Q=function(y,W){W.stack&&(y.stack+="\n"+W.stack);
return y},XGD=function(y){var W=G4(y,"Content-Type");
if(!W)return null;W=W.toLowerCase();if(W.startsWith("application/json"))return W.startsWith("application/json+protobuf")?new t8Z:new _.wH;if(W.startsWith("application/x-protobuf")){y=G4(y,"Content-Transfer-Encoding");if(!y)return new fY;if(y.toLowerCase()=="base64")return new nYH}return null},RNf=function(y,W,c,Z){var G=new bp6(function(u,t){return rzB.has(t)?u.sentinel==="gal"&&u.event!==void 0:!1},function(u){u.event?(u=Fl9(u.event),u=!u||U83(Z,u)?!0:_.ni(y.lastEvent,og,2,D1)?!_.ni(u,z4,1,D1)&&
!_.ni(u,og,2,D1):!_.ni(u,z4,1,D1)&&!_.ni(u,og,3,D1)):u=!0;
return u});
c=_.of(y.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",$89(c)]]));if(y.nestedOrigins!==void 0)for(var D=_.z(y.nestedOrigins),Y=D.next();!Y.done;Y=D.next())c=_.of(c,new Map([["origin",Y.value]]));return Kl9(G,c,W).then(function(u){u=OpH(u.event);if(_.ni(u,z4,1,D1)){var t,b=(t=_.IE(u,z4,1,D1))==null?void 0:_.lm(t,2);b&&Z.JSC$16933_logErrorEvent(gY3(b));t=_.IE(u,z4,1,D1);_.lm(t,2)===4?(u=_.IE(u,z4,1,D1),u={statusCode:11,statusMessage:_.RE(u,
3)}):(u=_.IE(u,z4,1,D1),u={statusCode:12,statusMessage:_.RE(u,3)});return u}_.ni(u,og,3,D1)?(u=_.IE(u,og,3,D1),u={statusCode:1,consentLanguageKeys:_.RE(u,2)}):u={statusCode:1};return u}).catch(function(u){return u.errorCode!==void 0?{statusCode:u.errorCode,
statusMessage:u.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},IxQ=function(y){var W={};
if(y===void 0||y===null)return W;y.getToken()!==void 0&&lxd(y.getToken())&&lxd(y.getToken()).length>0&&(W.scopes=new Set(lxd(y.getToken())));y.getToken()!==void 0&&EYg(y.getToken())&&EYg(y.getToken()).length>0&&(W.capabilities=new Set(EYg(y.getToken())));_.RE(y,3)!==void 0&&(W.consistencyKey=_.RE(y,3));y.getName()!==void 0&&y.getName()!==""&&(W.linkName=y.getName());_.tf(y,Ni6,4)&&(y=_.il(y,Ni6,4),y=Object.assign({},_.RE(y,1)&&{userId:_.RE(y,1)},_.RE(y,2)&&{displayName:_.RE(y,2)},_.RE(y,3)&&{email:_.RE(y,
3)},_.RE(y,5)&&{username:_.RE(y,5)},_.RE(y,4)&&{profilePicture:_.RE(y,4)}),W.profile=y);return W},pGg=function(y,W){var c=y.flowParams;
return{serviceId:c.serviceId,sessionId:c.sessionId,currentFlow:y.currentFlow,googleScopesString:W,linkingSessionSerialized:y.session.serialize(),consentLanguageKeys:c.consentLanguageKeys,callerState:y.callerState,dynamicUrlParameters:c.dynamicUrlParameters,partnerConfigMinReadTimestamp:c.partnerConfigMinReadTimestamp}},Q3g=function(y){var W=y.googleScopes!==void 0?Array.from(y.googleScopes).join(","):"";
Pg9(pGg(y,W));W=JzH(y);return W===null?Promise.resolve(V86):W.start().then(function(c){var Z,G=(Z=c.link)==null?void 0:Z.consistencyKey;return c.statusCode===1&&y.googleScopes!==void 0&&y.googleScopes.size>0&&G!==void 0?(Z=y.flowParams,CgQ(Z.serviceId,Z.sessionId,y.googleScopes,G,Z.galService,y.config,c)):c})},Az6=function(y){var W=JzH(y);
return W===null?Promise.resolve(YB({statusCode:7,statusMessage:"Failed to create flow object"},y.callerState)):W.complete().then(function(c){var Z,G=(Z=c.link)==null?void 0:Z.consistencyKey;return c.statusCode===1&&y.googleScopes!==void 0&&y.googleScopes.size>0&&G!==void 0?(Z=y.flowParams,CgQ(Z.serviceId,Z.sessionId,y.googleScopes,G,Z.galService,y.config,c)):YB(c,y.callerState)},function(c){return YB({statusCode:12,
statusMessage:"Failed to complete the flow: "+c.message},y.callerState)})},CgQ=function(y,W,c,Z,G,D,Y){return hNQ(G,{serviceId:y,
sessionId:W,googleScopes:c,consistencyKey:Z}).then(function(){return Y},function(u){return G.deleteLink({serviceId:y,
sessionId:W,accountLinkingEntryPoint:D.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+u.message}},function(t){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+t.message}})})},JzH=function(y){switch(y.currentFlow){case 1:var W=y.flowParams;
y=_.il(y.session,BiS,1);return mk.createOAuthFlow(W,y);case 2:case 3:return W=y.flowParams,y=_.il(y.session,Hp9,6),sT.createStreamlinedFlow(W,y);default:return null}},LlQ=function(y,W){y===2&&(y=3);
var c=0;ud.indexOf(y)!==-1&&(c=ud.indexOf(y)+1);for(y=c;y<ud.length;y++)if(W.has(ud[y]))return ud[y]},SVg=function(y){var W=y.serviceId;
var c=y.sessionId;var Z=y.config;var G=y.galService;var D=y.capabilities;var Y=y.scopes;var u=y.loginHint;var t=y.callerState;var b=y.consentLanguageKeys;var r=y.linkName;var F=y.dynamicUrlParameters;var K=y.partnerConfigMinReadTimestamp;y=Z.dataUsageNoticeConfig?Z.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return G.startLinkingSession({serviceId:W,sessionId:c,capabilities:D,scopes:Y,loginHint:u,callerState:t,supportedFlows:vYd(Z.supportedFlows),completionUrl:Z.completionUrl,accountLinkingEntryPoint:Z.accountLinkingEntryPoint,
consentLanguageKeys:b,dataUsageNoticeConfig:y,linkName:r,dynamicUrlParameters:F,partnerConfigMinReadTimestamp:K}).then(function(l){return new d89(W,c,Z,G,l,void 0,t,b,F,K)})},M8B=function(y,W,c){a:{var Z=new TiQ;
if(Z.storage!==null)try{var G=Z.storage.get("SAVED_SESSION");if(G===void 0){var D=null;break a}if(G.serviceId===y){D=G;break a}}catch(Y){}D=null}if(D===null)return Promise.resolve({statusCode:2});axd(y);Z=x8d(D.linkingSessionSerialized);return ipS(new d89(y,D.sessionId,W,c,Z,D.googleScopesString!==""&&D.googleScopesString!==void 0?new Set(D.googleScopesString.split(",")):void 0,D.callerState,D.consentLanguageKeys,D.dynamicUrlParameters,D.partnerConfigMinReadTimestamp),D.currentFlow,D.consentLanguageKeys)},
Pg9=function(y){var W=new TiQ;
W.storage!==null&&W.storage.set("SAVED_SESSION",y)},axd=function(y){var W=new TiQ;
if(W.storage!==null){var c=W.storage.get("SAVED_SESSION");c!==void 0&&c.serviceId===y&&W.storage.remove("SAVED_SESSION")}},vYd=function(y){var W=new Set;
y=_.z(y);for(var c=y.next();!c.done;c=y.next())c=c.value,c!==1&&eNQ.has(c)&&W.add(eNQ.get(c));return W},YB=function(y,W){W!==void 0&&(y.callerState=W);
return y},wGg=function(y){switch(y){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},j09=function(){var y={timeout:5E3};
y=y===void 0?{}:y;return qV3!=null?qV3:qV3=kZd(y)},yDQ=function(){return new Promise(function(y,W){window.gapi.load("client",{callback:y,
onerror:W})})},kZd=function(y){y=y===void 0?{}:y;
var W;return _.m(function(c){if(c.nextAddress==1){if((W=window.gapi)&&W.client&&W.client.load)c=c.return(W);else{var Z=_.rf("https://apis.google.com/js/api.js");c=_.n(c,_.OX(Z,y),2)}return c}if(c.nextAddress!=3){W=window.gapi;if(!W)throw Error("Yj");return W.client&&W.client.load?c.jumpTo(3):_.n(c,yDQ(),3)}return c.return(W)})},cDB=function(y,W){W=W===void 0?0:W;
var c=y.auth2.getAuthInstance().currentUser.get(),Z=c.getAuthResponse(!0);if(Z&&Z.expires_at-Date.now()<W){if(WtS.has(y))return WtS.get(y);W=Promise.resolve(c.reloadAuthResponse()).finally(function(){WtS.delete(y)});
WtS.set(y,W);return W}return Promise.resolve()},ZsS=function(y,W){var c;
return y.client.init({apiKey:W.apiKey,clientId:W.clientId,scope:W.scope,discoveryDocs:W.discoveryDocs,hostedDomain:W.hostedDomain,fetchBasicProfile:(c=W.fetchBasicProfile)!=null?c:!0})},Gq6=function(y){if(y.queryParams!=null){var W={},c;
for(c in y.queryParams)y.queryParams[c]!==void 0&&(W[c]=y.queryParams[c]);y.queryParams=W}},Dv9=function(y){return new fv9(y,new oDf(y))},mvd=function(y,W){W=W===void 0?!1:W;
var c=document.createElement("div");y&&(c.style.transform="scaleX(-1)");c.style.backgroundColor=W?"rgba(138,180,248,.24)":"#e8f0fe";c.style.height="4px";c.style.overflow="hidden";c.style.position="absolute";c.style.top="0";c.style.width="100%";c.style.zIndex="1500";c.setAttribute("aria-label","Loading");c.setAttribute("aria-live","polite");y=document.createElement("style");y.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  }";
c.appendChild(y);y=zY9();y.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";y.style.left="-145.166611%";var Z=YdB(W);Z.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";y.appendChild(Z);c.appendChild(y);y=zY9();y.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";y.style.left="-54.888891%";W=YdB(W);W.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
y.appendChild(W);c.appendChild(y);return c},zY9=function(){var y=document.createElement("div");
y.style.height="100%";y.style.position="absolute";y.style.transformOrigin="top left";y.style.width="100%";return y},YdB=function(y){var W=document.createElement("span");
W.style.borderTop=y?"4px solid #669df6":"4px solid #4285f4";W.style.display="inline-block";W.style.position="absolute";W.style.width="100%";return W},s0S=function(y){return y==null?void 0:_.MQZ(y).valueOf()},XEf=function(y){var W=document.body,c=!1,Z=function(){c||(c=!0,u66(G,D),setTimeout(function(){W.removeChild(D);
W.removeChild(G)},150))},G=ts6(y,getComputedStyle(W).direction==="rtl",Z),D=nDd(Z);
u66(G,D);W.appendChild(D);W.appendChild(G);window.requestAnimationFrame(function(){D.style.opacity="1";G.style.opacity="1";G.style.transform="translate(-50%, -50%) scale(1)";G.children[0].focus()})},ts6=function(y,W,c){var Z=document.createElement("div");
Z.style.position="fixed";Z.style.alignItems="center";Z.style.backgroundColor=y?"rgb(32, 33, 36)":"white";Z.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";Z.style.display="flex";Z.style.flexDirection="column";Z.style.justifyContent="center";Z.style.left="50%";Z.style.top="50%";Z.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";Z.style.zIndex="2002";document.body.clientWidth>=660?(Z.style.borderRadius="8px",Z.style.minHeight="220px",
Z.style.maxHeight="90%",Z.style.maxWidth="90%",Z.style.minWidth="540px"):(Z.style.height="100%",Z.style.width="100%");Z.setAttribute("aria-label","Error");Z.setAttribute("aria-modal","true");Z.setAttribute("role","alertdialog");Z.addEventListener("keydown",function(D){D.key==="Escape"&&c()});
W=bsQ(y,W,c);Z.appendChild(rD3(W));Z.appendChild(W);var G=document.createElement("img");G.src=y?"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";G.style.height="72px";G.style.width="72px";G.style.color="#9aa0a6";G.setAttribute("alt","");Z.appendChild(G);G=document.createElement("h1");G.textContent="Something went wrong.  Try again.";
G.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";G.style.lineHeight="24px";G.style.fontSize="16px";G.style.textAlign="center";G.style.letterSpacing="0.1px";G.style.color=y?"rgb(232,234,237)":"#3c4043";Z.appendChild(G);Z.appendChild(rD3(W));return Z},bsQ=function(y,W,c){var Z=document.createElement("button");
Z.style.backgroundColor="transparent";Z.style.border="none";Z.style.borderRadius="50%";Z.style.cursor="pointer";Z.style.outline="none";Z.style.padding="12px";Z.setAttribute("aria-label","Close dialog");Z.style.position="absolute";Z.style.top="0";W?Z.style.right="0":Z.style.left="0";Z.addEventListener("focus",function(){Z.style.backgroundColor=y?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
Z.addEventListener("blur",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("mouseenter",function(){Z.style.backgroundColor=y?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Z.addEventListener("mouseleave",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("click",c);Z.addEventListener("keydown",function(G){G.key!=="Enter"&&G.key!=="Space"||c()});
W=document.createElement("img");W.src=y?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";W.style.display="block";W.style.height="24px";W.style.width="24px";W.setAttribute("alt","");Z.appendChild(W);return Z},rD3=function(y){var W=document.createElement("div");
W.setAttribute("tabindex","0");W.setAttribute("aria-hidden","true");W.addEventListener("focus",function(){return void y.focus()});
return W},nDd=function(y){var W=document.createElement("div");
W.style.backgroundColor="rgba(32,33,36,0.6)";W.style.bottom="0";W.style.left="0";W.style.position="fixed";W.style.right="0";W.style.top="0";W.style.transition=" opacity 150 ms linear";W.style.zIndex="2001";W.addEventListener("click",y);return W},u66=function(y,W){W.style.opacity="0";
y.style.opacity="0";y.style.transform="translate(-50%, -50%) scale(0.8)"},FtZ=function(y,W){y.sandbox&&y.sandbox.add&&(y.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),y.sandbox.add("allow-downloads"));
y.src=W},tb=function(y){UvQ.call(this,y)},nY=function(y,W){W=W===void 0?!1:W;
this.parsedImageUrl_=null;y instanceof $vg||(Kt9==void 0&&(Kt9=new Os9),y=Kt9.parse(y.toString(),W));y=this.parsedImageUrl_=y;y.JSC$17164_parsedOptions_==void 0&&((W=y.getOptions())||(W=""),y.JSC$17164_parsedOptions_=(new gD9).parse(W));UvQ.call(this,y.JSC$17164_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;y=this.parsedImageUrl_;W=y.uri_.JSC$7898_port_;this.JSC$17166_domain_=y.uri_.JSC$7898_domain_+(W?":"+W:"");this.JSC$17166_query_=this.parsedImageUrl_.uri_.JSC$7898_queryData_.toString()},
RYB=function(y){this.mode=4;
this.data=y;this.parsedData=[];y=0;for(var W=this.data.length;y<W;y++){var c=[],Z=this.data.charCodeAt(y);Z>65536?(c[0]=240|(Z&1835008)>>>18,c[1]=128|(Z&258048)>>>12,c[2]=128|(Z&4032)>>>6,c[3]=128|Z&63):Z>2048?(c[0]=224|(Z&61440)>>>12,c[1]=128|(Z&4032)>>>6,c[2]=128|Z&63):Z>128?(c[0]=192|(Z&1984)>>>6,c[1]=128|Z&63):c[0]=Z;this.parsedData.push(c)}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))},lvB=function(y){this.typeNumber=0;
this.errorCorrectLevel=y===void 0?2:y;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},X0=function(y,W){if(y.length==void 0)throw Error("sk`"+y.length+"`"+W);
for(var c=0;c<y.length&&y[c]==0;)c++;this.num=Array(y.length-c+W);for(W=0;W<y.length-c;W++)this.num[W]=y[W+c]},EDd=function(y,W){this.totalCount=y;
this.dataCount=W},NeQ=function(){this.buffer=[];
this.length=0},IvZ=function(){var y=!1;
if(_.tIa()){y=_.UD();var W="";_.baE()?(W=/Windows (?:NT|Phone) ([0-9.]+)/,W=(y=W.exec(y))?y[1]:"0.0"):_.Vw()?(W=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,W=(y=W.exec(y))&&y[1].replace(/_/g,".")):_.XyI()?(W=/Mac OS X ([0-9_.]+)/,W=(y=W.exec(y))?y[1].replace(/_/g,"."):"10"):_.Fh(_.UD(),"KaiOS")?(W=/(?:KaiOS)\/(\S+)/i,W=(y=W.exec(y))&&y[1]):_.tIa()?(W=/Android\s+([^\);]+)(\)|;)/,W=(y=W.exec(y))&&y[1]):_.rHH()&&(W=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,W=(y=W.exec(y))&&y[1]);y=W||""}return y},Q06=function(y,
W){this.JSC$17189__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(W)for(var c in W)this.JSC$17189__htOption[c]=W[c];this.JSC$17189__htOption.useSVG&&(pEH=PLS);this.JSC$17189__android=IvZ();this.JSC$17189__el=y;this._oQRCode=null;this._oDrawing=new pEH(this.JSC$17189__el,this.JSC$17189__htOption);this.JSC$17189__htOption.text&&(y=this.JSC$17189__htOption.text,this._oQRCode=new lvB(this.JSC$17189__htOption.correctLevel),JDD(this._oQRCode,y),W=this._oQRCode,VsH(W,!1,CLH(W)),this.JSC$17189__el.title=
y,this._oDrawing.draw(this._oQRCode),this.makeImage())},ADH=function(y,W,c,Z,G){y.save();
var D=new Path2D;D.roundRect(W,c,Z*7,Z*7,Z*2);D.roundRect(W+Z,c+Z,Z*5,Z*5,Z*1.3);D.roundRect(W+2*Z,c+2*Z,Z*3,Z*3,Z);y.clip(D,"evenodd");y.fillStyle=G;y.fillRect(0,0,y.canvas.width,y.canvas.height);y.restore()},bd=function(y,W){if(typeof y!=="function")throw Error("vk");
return _.DH.setTimeout(function(){y()},W)},rw=function(){},Be6=function(y,W,c,Z,G){(new rw).debug("TestLoadImageWithRetries: "+G);
if(Z==0)c(!1);else{var D=G||0;Z--;hY3(y,W,function(Y){Y?c(!0):_.DH.setTimeout(function(){Be6(y,W,c,Z,D)},D)})}},hY3=function(y,W,c){var Z=new rw;
Z.debug("TestLoadImage: loading "+y);var G=new Image;G.onload=function(){try{Z.debug("TestLoadImage: loaded"),HsZ(G),c(!0)}catch(D){}};
G.onerror=function(){try{Z.debug("TestLoadImage: error"),HsZ(G),c(!1)}catch(D){}};
G.onabort=function(){try{Z.debug("TestLoadImage: abort"),HsZ(G),c(!1)}catch(D){}};
G.ontimeout=function(){try{Z.debug("TestLoadImage: timeout"),HsZ(G),c(!1)}catch(D){}};
_.DH.setTimeout(function(){if(G.ontimeout)G.ontimeout()},W);
G.src=y},HsZ=function(y){y.onload=null;
y.onerror=null;y.onabort=null;y.ontimeout=null},LtB=function(){this.front_=[];
this.back_=[]},vDg=function(y,W){_.UR.call(this);
this.delay_=new _.Kg(this.JSC$17315_onTick_,0,this);_.zY(this,this.delay_);this.JSC$17313_interval_=5E3;this.nextTickTime_=0;if(typeof y==="function")W&&(y=(0,_.$r)(y,W));else if(y&&typeof y.handleEvent==="function")y=(0,_.$r)(y.handleEvent,y);else throw Error("Ca");this.JSC$17315_listener_=y},F0=function(y,W,c,Z,G,D,Y,u,t,b,r,F,K,l){c=c===void 0?!1:c;
Z=Z===void 0?function(){return""}:Z;
G=G===void 0?!1:G;D=D===void 0?!1:D;Y=Y===void 0?!1:Y;u=u===void 0?function(){return _.sc({})}:u;
t=t===void 0?!1:t;r=r===void 0?!1:r;F=F===void 0?!1:F;K=K===void 0?!1:K;l=l===void 0?!1:l;this.JSC$17316_pathPrefix_=y;this.defaultQueryParams_=W;this.pubsub_=new _.fR;this.reconnectTimer_=new vDg(this.safeReconnect_,this);this.JSC$17316_channel_=null;this.JSC$17316_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17316_pendingMessages_=[];this.enableAsyncTest_=c;this.JSC$17316_getXsrfToken_=Z;this.useAsyncBrowserChannelHandler_=D;this.getAuthorizationHeader_=
u;this.getAuthorizationHeaderSync_=b;this.enableCachedUpdateAuthorizationHeader_=Y;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.sc();this.enableLoungeTokenRefresh_=G;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=t;this.disableMdxAuthForNonPlaybackMessages_=r;this.disableMdxAuthForAdMessages_=F;this.enableMdxAuthForConnectionOnly_=K;this.disableMdxAuthForShortsMessages_=l;this.JSC$17316_channelOpenedCounter=new dvH;this.JSC$17316_channelClosedCounter=new SdS;this.channelMessageSentCounter=
new Tef;this.JSC$17316_channelMessageReceivedCounter=new av3;this.JSC$17316_channelErrorCounter=new xvD;this.pendingMapsOnClosedCounter=new is3;this.undeliveredMapsOnClosedCounter=new MsH},UT=function(y){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;y=y||document.location.href;var W=Number(_.Lj(y)[4]||null)||"";W&&(this.port=":"+W);this.domain=_.vI(y)||"";y=_.UD();y.search("MSIE")>=0&&TB(y.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},$B=function(y){y=y||{};
this.name=y.name||"";this.id=y.id||y.screenId||"";this.token=y.token||y.loungeToken||"";this.uuid=y.uuid||y.dialId||"";this.idType=y.screenIdType||"normal"},eYH=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var W=Math.random()*16|0;
return(y=="x"?W:W&3|8).toString(16)})},wE6=function(y){return _.Ng(y,function(W){return{key:W.id,
name:W.name}})},qdH=function(y,W){return _.Qw(y,function(c){return c||W?!c!=!W?!1:c.id==W.id:!0})},OT=function(y,W){return _.Qw(y,function(c){return KY(c,W)})},cd9=function(){var y=kq6(),W=jT6();
if(ydf()){var c=y,Z=_.EFO(c,W);Z<0&&_.gFH(c,-(Z+1),0,W)}y=WH6(y);if(y.length==0)try{_.jvt("remote_sid")}catch(G){}else try{_.zj("remote_sid",y.join(","),-1)}catch(G){}},kq6=function(){var y=_.cj("yt-remote-connected-devices")||[];
y.sort(_.lHh);return y},WH6=function(y){if(y.length==0)return[];
var W=y[0].indexOf("#"),c=W==-1?y[0]:y[0].substring(0,W);return _.Ng(y,function(Z,G){return G==0?Z:Z.substring(c.length)})},Zy6=function(y){_.Wj("yt-remote-connected-devices",y,86400)},jT6=function(){if(GyQ)return GyQ;
var y=_.cj("yt-remote-device-id");y||(y=eYH(),_.Wj("yt-remote-device-id",y,31536E3));for(var W=kq6(),c=1,Z=y;_.Hy(W,Z);)c++,Z=y+"#"+c;return GyQ=Z},fsB=function(){return _.cj("yt-remote-session-browser-channel")},ydf=function(){return _.cj("yt-remote-session-screen-id")},zVH=function(y){y.length>5&&(y=y.slice(y.length-5));
var W=_.Ng(o3f(),function(Z){return Z.loungeToken}),c=_.Ng(y,function(Z){return Z.loungeToken});
_.oZh(c,function(Z){return!_.Hy(W,Z)})&&DaS();
_.Wj("yt-remote-local-screens",y,31536E3)},o3f=function(){return _.cj("yt-remote-local-screens")||[]},DaS=function(){_.Wj("yt-remote-lounge-token-expiration",!0,86400)},gw=function(y){y||(_.Zr("yt-remote-session-screen-id"),_.Zr("yt-remote-session-video-id"));
cd9();y=kq6();_.dg(y,jT6());Zy6(y)},maD=function(){Y96();
return Rg?!!Rg.get("yt-remote-use-staging-server"):!1},Y96=function(){if(!Rg){var y=_.z4D();
y&&(Rg=new _.t6(y))}},n3Q=function(y,W,c,Z,G){c=c===void 0?function(){return""}:c;
var D=function(){return new F0(ld(y,"/bc"),W,!1,c,Z)};
return _.O("enable_mdx_web_channel_desktop")?new sTf(function(){return new uGf(ld(y,"/wc"),W,c)}):new to3(D,G)},FHB=function(){var y=XU6;
by3();ET.push(y);rdS()},NI=function(y,W){by3();
var c=UaZ(y,String(W));ET.length==0?$aS(c):(rdS(),_.Qa(ET,function(Z){Z(c)}))},Ig=function(y){NI("CP",y)},by3=function(){ET||(ET=_.JW("yt.mdx.remote.debug.handlers_")||[],_.LR("yt.mdx.remote.debug.handlers_",ET))},$aS=function(y){var W=(pY+1)%50;
pY=W;KH6[W]=y;Oy3||(Oy3=W==49)},rdS=function(){var y=ET;
if(KH6[0]){var W=Oy3?pY:-1,c={};do c={record$jscomp$13:void 0},W=(W+1)%50,c.record$jscomp$13=KH6[W],_.Qa(y,function(Z){return function(G){G(Z.record$jscomp$13)}}(c));
while(W!=pY);KH6=Array(50);pY=-1;Oy3=!1}},UaZ=function(y,W){var c=(Date.now()-g3D)/1E3;
c.toFixed&&(c=c.toFixed(3));var Z=[];Z.push("[",c+"s","] ");Z.push("[","yt.mdx.remote","] ");Z.push(y+": "+W,"\n");return Z.join("")},Pe=function(y){_.H6.call(this);
this.JSC$17340_logName_=y;this.screens=[]},VS=function(y){Pe.call(this,"LocalScreenService");
this.JSC$17347_http_=y;this.loungeTokenRefreshTimer_=NaN;Jb(this);this.info("Initializing with "+RV6(this.screens))},CY=function(y,W){W=W===void 0?!1:W;
Pe.call(this,"ScreenService");this.JSC$17353_http_=y;this.disableAutomaticScreenCache_=W;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};lsQ(this)},QS=function(y,W,c){_.H6.call(this);
this.JSC$17357_logName_=c;this.JSC$17357_screenService_=y;this.receiver_=W;this.screen_=null},v39=function(y,W,c){c.disableCastApi?Ab("Cannot initialize because disabled by Mdx config."):E3Q()?NlZ(y,c)&&(IsS(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?pUd(W):(window.__onGCastApiAvailable=function(Z,G){Z?pUd(W):(hb("Failed to load cast API: "+G),PT9(!1),IsS(!1),_.Zr("yt-remote-cast-available"),_.Zr("yt-remote-cast-receiver"),Jdf(),W(!1))},c.loadCastApiSetupScript?_.Vn("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?Vo6()>=60&&CTB():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?QTZ():Vo6()>=89?AdD():(hVH(),Blg(HyD.map(LHS))))):Ab("Cannot initialize because not running Chrome")},Jdf=function(){Ab("dispose");
var y=Be();y&&y.dispose();_.LR("yt.mdx.remote.cloudview.instance_",null);daQ(!1);_.v0H(S9f);S9f.length=0},Tl9=function(){return!!_.cj("yt-remote-cast-installed")},as3=function(){var y=_.cj("yt-remote-cast-receiver");
return y?y.friendlyName:null},xa9=function(){Ab("clearCurrentReceiver");
_.Zr("yt-remote-cast-receiver")},iyH=function(){return Tl9()?Be()?Be().getCastSession():(hb("getCastSelector: Cast is not initialized."),null):(hb("getCastSelector: Cast API is not installed!"),null)},eVD=function(y,W){Mo6()?Be().setConnectedScreenStatus(y,W):hb("setConnectedScreenStatus called before ready.")},E3Q=function(){var y=_.UD().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.z$||y},NlZ=function(y,W){var c=!1;
Be()||(y=new He(y,W),y.subscribe("yt-remote-cast2-availability-change",function(Z){_.Wj("yt-remote-cast-available",Z);xG("yt-remote-cast2-availability-change",Z)}),y.subscribe("yt-remote-cast2-receiver-selected",function(Z){Ab("onReceiverSelected: "+Z.friendlyName);
_.Wj("yt-remote-cast-receiver",Z);xG("yt-remote-cast2-receiver-selected",Z)}),y.subscribe("yt-remote-cast2-receiver-resumed",function(Z){Ab("onReceiverResumed: "+Z.friendlyName);
_.Wj("yt-remote-cast-receiver",Z);xG("yt-remote-cast2-receiver-resumed",Z)}),y.subscribe("yt-remote-cast2-session-change",function(Z){Ab("onSessionChange: "+wU6(Z));
Z||_.Zr("yt-remote-cast-receiver");xG("yt-remote-cast2-session-change",Z)}),_.LR("yt.mdx.remote.cloudview.instance_",y),c=!0);
Ab("cloudview.createSingleton_: "+c);return c},Be=function(){return _.JW("yt.mdx.remote.cloudview.instance_")},pUd=function(y){PT9(!0);
IsS(!1);Be().init(!1,function(W){W?(daQ(!0),_.diI("yt-remote-cast2-api-ready")):(hb("Failed to initialize cast API."),PT9(!1),_.Zr("yt-remote-cast-available"),_.Zr("yt-remote-cast-receiver"),Jdf());y(W)})},Ab=function(y){NI("cloudview",y)},hb=function(y){NI("cloudview",y)},PT9=function(y){Ab("setCastInstalled_ "+y);
_.Wj("yt-remote-cast-installed",y)},Mo6=function(){return!!_.JW("yt.mdx.remote.cloudview.apiReady_")},daQ=function(y){Ab("setApiReady_ "+y);
_.LR("yt.mdx.remote.cloudview.apiReady_",y)},IsS=function(y){_.LR("yt.mdx.remote.cloudview.initializing_",y)},LY=function(y){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(y)},q9g=function(){var y,W;
return _.m(function(c){if(c.nextAddress==1)return(_.RWg()||_.O("use_new_nwl"))&&_.$if().isNetworkAvailable()?_.n(c,_.dr(),2):c.return();if(c.nextAddress!=3)return(y=c.yieldResult)?_.n(c,hWf(y),3):c.return();W=c.yieldResult;if(!W.length)return c.return();W.forEach(function(Z){var G={timestamp:Z.timestamp};Z=Z.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Z.appShellAssetLoadReport,options:G}:Z.clientError?{payloadName:"clientError",payload:Z.clientError,options:G}:void 0;Z&&
_.$g(Z.payloadName,Z.payload,Z.options)});
W.length===100&&_.KX.addLowPriorityJob(q9g);_.F2(c)})},kyD=function(y){if(y.playerResponse){if(y=y.playerResponse,y.messages&&y.messages.length>0&&(y=y.messages.find(function(W){return!(!W||!W.mealbarPromoRenderer)}))&&y.mealbarPromoRenderer)return y.mealbarPromoRenderer}else if(y.response&&(y=y.response)&&y.overlay&&y.overlay.mealbarPromoRenderer)return y.overlay.mealbarPromoRenderer},jEQ=function(y){if(y.response){var W=y.response;
if(W&&W.overlay&&W.overlay.tooltipRenderer)return W.overlay.tooltipRenderer}if(y.playerResponse&&(y=y.playerResponse,y.messages&&y.messages.length>0&&(y=y.messages.find(function(c){return!(!c||!c.tooltipRenderer)}))&&y.tooltipRenderer))return y.tooltipRenderer},W8S=function(y){if(!yfQ&&(y=y||_.Nn("ZWIEBACK_PING_URLS"))&&y.length){yfQ=!0;
for(var W=0;W<y.length;W++)_.Jv(y[W])}},Zi9=function(y){if(_.Eb.get(_.Nn("PLAYER_VARS",{}),"privembed",!1)!="1"){y&&NZ9();
try{cfH().then(function(){},function(){}),_.j5(Zi9,18E5)}catch(W){_.pj(W)}}},G$d=function(){var y=_.Uc(),W=y.getFlag(119),c=window.devicePixelRatio>1;
document.body&&_.C$(document.body,"exp-invert-logo")&&(c&&!_.C$(document.body,"inverted-hdpi")?_.VE(document.body,"inverted-hdpi"):!c&&_.C$(document.body,"inverted-hdpi")&&_.Ph(document.body,"inverted-hdpi"));W!=c&&(_.$A(0,119,c),y.save())},fqB=function(y){return y.filter(function(W){return"ypcGetCartEndpoint"in W||"ypcFixInstrumentEndpoint"in W})},o6B=function(y){return y.filter(function(W){return!_.g(W,_.RZm)})},zJf=function(y){y=_.z(y);
for(var W=y.next(),c={};!W.done;c={setter$jscomp$6:void 0},W=y.next()){var Z=W.value;W=Z.params;Z=Z.service;W&&Z&&(c.setter$jscomp$6=Dr3[Z],c.setter$jscomp$6&&W.forEach(function(G){return function(D){var Y=D.key;D=D.value;Y&&D&&(0,G.setter$jscomp$6)(Y,D)}}(c)))}},mrd=function(y,W){var c,Z,G,D,Y,u,t;
_.m(function(b){switch(b.nextAddress){case 1:c=_.PK.getInstance();Z=_.km.instance;G=_.Ee.instance;if(!G)return Y26(y,Z,W),b.return();_.tm(b,2);y.onLoadingCommand&&Z.resolveCommand(y.onLoadingCommand);return _.n(b,c.getCurrentPositionFromGeolocation(),4);case 4:D=b.yieldResult;if(!y.resolveLocationCommand){b.jumpTo(5);break}Y=c.createLocationInfo(D);return _.n(b,_.IL(G,y.resolveLocationCommand,{locationInfo:Y}),6);case 6:u=b.yieldResult;if(!u||"error"in u&&u.error||u.errorMetadata)return Y26(y,Z,W),
b.return();var r;if(u==null?0:(r=u.onResponseReceivedActions)==null?0:r.length){r=_.z(u.onResponseReceivedActions);for(var F=r.next();!F.done;F=r.next())Z.resolveCommand(F.value)}(_.g(y.onSuccessCommand,_.Sb)||_.g(y.onSuccessCommand,_.oW))&&_.Z2(W.hostElement,"yt-navigate",{endpoint:y.onSuccessCommand,reload:!0});case 5:_.J6(b,0);break;case 2:t=_.rs(b);if(t instanceof GeolocationPositionError&&t.code===GeolocationPositionError.PERMISSION_DENIED)return y.onDeniedCommand&&Z.resolveCommand(y.onDeniedCommand),
b.return();Y26(y,Z,W);_.F2(b)}})},Y26=function(y,W,c){y.onFailureCommand&&(W.resolveCommand(y.onFailureCommand),_.GG(c.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},uY9=function(y,W){var c=_.g(y,_.fyV);
if(c&&W){y=c.videoIds||[c.videoId];var Z;W=(Z=_.Z2(W,"yt-lockup-requested",{videoIds:y}).detail)==null?void 0:Z.returnValue;var G;c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?G=W?W:y.map(function(D){return{videoId:D,navigationEndpoint:c.videoCommand}}):W&&(G=W);
G&&(Z=G.map(function(D){var Y=Object,u=Y.assign;var t=D.navigationEndpoint;if(!_.g(t,_.mv)){var b=_.g(t,_.Sb);if(b){if(delete b.index,delete b.playlistId,b=_.g(t==null?void 0:t.commandMetadata,_.kT),b==null?0:b.url){var r=b.url;r=_.qR(r,"list");r=_.qR(r,"index");b.url=r}}else t=void 0}return u.call(Y,{},D,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:t})}),sE3(Z,c))}},t6H=function(y){var W=_.JI();
if(y=_.g(y,_.obE))y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&W.clearQueue(),y.closeMiniplayer&&_.U().resolve(_.Cy).close(!0)},XN9=function(y){n6Z(_.JI(),y)},biD=function(y){var W;
(y=(W=_.g(y,_.Z2Z))==null?void 0:W.setVideoIds)&&y.forEach(function(c){_.Qnm(_.JI(),c)})},F8D=function(y){rf9(_.JI(),y)},UrB=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(y){return!1}},$r6=function(y,W,c){return{horizontalAlignment:y.x+c.width/2<W.width/2?"west":"east",
verticalAlignment:y.y+c.height/2<W.height/2?"north":"south"}},g6D=function(y,W,c,Z,G){G=G===void 0?new _.If(0,0):G;
return K8B(Oi9(y,W,c,Z),G)},Oi9=function(y,W,c,Z){return new _.If(y==="west"?16:c.width-Z.width-16,W==="north"?16:c.height-Z.height-16)},RJH=function(y,W){var c=0;
y&&(c+=76);W&&(c+=285);return c},lqQ=function(y){var W=["h",
"m","s"],c=_.SI(W);c.reverse();var Z={};y=(y.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Y){var u=(Y.match(/[hms]/)||[""])[0];return u?(Z[u]=parseInt(Y.match(/\d+/)[0],10),!1):!0});
for(y.reverse();y.length&&c.length;){var G=c.shift();G in Z||(Z[G]=parseInt(y.shift(),10))}if(y.length||Z.s>59||Z.m>59||Z.h>9)return null;var D="";W.forEach(function(Y){Z[Y]&&(D+=""+Z[Y]+Y)});
return D||null},E69=function(y){y=y.data;
return _.X("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.X("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.X(_.J3,{data:{thumbnails:[{url:y.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.X("div",{class:"profile-badge-view-model-wiz__content"},_.X("div",{class:"profile-badge-view-model-wiz__badge-description"},y.badgeDesc),y.badgeSubtitle?_.X("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},y.badgeSubtitle):null))},N5H=function(y){y=
y.data;
var W=_.HO();_.Jz(W,y.rendererContext);return _.X("yt-comment-interaction-view-model",{el:W,class:"yt-comment-interaction-view-model-wiz"},_.X("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":y.onTapA11yLabel,"on:keydown":_.EV(),tabindex:0},_.X("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.X("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},y.headerPrefix,' "',y.videoTitle),_.X("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.X("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.X("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},y.commentContent),_.X("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.X(_.J3,{data:{thumbnails:[{url:y.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},pNQ=function(y){y=y.data;
return _.X("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},Iqd(y.avatar),_.X("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},y.channelName))},Jff=function(y){y=y.data;
var W;return _.X("div",{class:"yt-profile-info-view-model-wiz__activity"},_.X("div",{class:"yt-profile-info-view-model-wiz__header"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-title"},y.commentsInteractionTitle)),(W=y.comments)==null?void 0:W.map(function(c){return _.X("div",{class:"yt-profile-info-view-model-wiz__activity"},PmD(c))}))},V6S=function(y){y=y.data;
var W=_.KN({elementsCommand:y.subscriptionsAccessButtonCommand}),c=_.HO();_.fIa(c,_.UH(y.subscriptionsAccessButtonCommand));var Z=_.j9(function(D){if(W==null?0:W.onclick)W.onclick(D);return!1}),G;
return _.X("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.X("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.X("a",{el:c,"on:click":Z,class:"yt-profile-info-view-model-wiz__another-header"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},y.sharedSubscriptionsTitle),_.X("div",null,PmD(y.subscriptionsAccessButton)))),_.X("div",{class:"yt-profile-info-view-model-wiz__subs"},(G=y.sharedSubscriptions)==null?void 0:G.slice(0,5).map(function(D){return _.X("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",PmD(D))})))},CmH=function(y){y=y.data;
var W;return _.X("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.X("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.X("h2",{class:"yt-profile-info-view-model-wiz__section-title"},y.sharedSubscriptionsTitle)),_.X("div",{class:"yt-profile-info-view-model-wiz__subs"},(W=y.sharedSubscriptions)==null?void 0:W.slice(0,5).map(function(c){return _.X("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",PmD(c))})))},QEB=function(y){y=y.data;
return _.X("div",{class:"yt-profile-info-view-model-wiz__activity"},[y.profileBadgeInfoYtWide,y.profileBadgeInfoChannelWide].map(function(W){var c,Z,G,D,Y;return W?_.X(_.a2,null,_.X("div",{class:"yt-profile-info-view-model-wiz__header"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-title"},W==null?void 0:W.profileSectionTitle),_.X("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.X("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(c=W.commentBadge)==
null?void 0:c.commentDesc),(W==null?0:(Z=W.commentBadge)==null?0:Z.blackHeartDesc)?_.X("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.X("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.X(_.J3,{data:{thumbnails:[{url:W==null?void 0:(G=W.commentBadge)==null?void 0:G.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.X("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},W==null?void 0:(D=
W.commentBadge)==null?void 0:D.blackHeartDesc))),_.X("div",{class:"yt-profile-info-view-model-wiz__badge"},W==null?void 0:(Y=W.badges)==null?void 0:Y.map(function(u){return _.X(E69,{data:u})}))):null}))},Af6=function(y){y=y.data;
return _.X("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.X(QEB,{data:y}),y.comments?_.X(Jff,{data:y}):null,y.sharedSubscriptionsTitle?y.subscriptionsAccessButtonCommand?_.X(V6S,{data:y}):_.X(CmH,{data:y}):null)},B56=function(y){var W=y.data;
y=W?hJQ(W.profileIdentityInfo):void 0;W=W?hJQ(W.profileInfo):void 0;return _.X("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},y,W)},HiB=function(y,W){var c=_.HdE(W,{},y,!0);
return new Promise(function(Z,G){c.listenOnce("n",function(){G(Error("fl`"+c.JSC$25584_getErrorDescription()))});
c.listenOnce("l",function(){var D=c.getResponseCode();if(D!==200)G(Error("gl`"+W+"`"+y.type+"`"+y.size+"`"+D));else try{Z(JSON.parse(c.getResponseText()).encryptedBlobId)}catch(Y){G(Y)}});
c.run()})},L8Q=function(y){return y.substring(y.indexOf(":")+1,y.indexOf(";"))},v66=function(y){return new Promise(function(W,c){var Z=new FileReader;
Z.onloadend=function(){try{var G=new Uint8Array(Z.result);G.length<8&&c(void 0);var D=G.subarray(0,8);G="";for(var Y=0;Y<D.length;Y++)G+=("0"+D[Y].toString(16)).substr(-2);G.startsWith("ffd8ff")?W("image/jpeg"):G.startsWith("47494638")?W("image/gif"):G.startsWith("89504e470d0a1a0a")?W("image/png"):G.startsWith("424d")?W("image/bmp"):W(void 0)}catch(u){c(u)}};
Z.onerror=c;Z.readAsArrayBuffer(y)})},dr6=function(y){return new Promise(function(W,c){var Z=new Image;
Z.crossOrigin="anonymous";Z.onload=function(){var G=document.createElement("canvas");G.width=Z.naturalWidth;G.height=Z.naturalHeight;var D=G.getContext("2d");if(!D)throw Error("hl");D.drawImage(Z,0,0);D=L8Q(y);G.toBlob(function(Y){Y?W(Y):c()},D)};
Z.src=y})},T5d=function(y,W){var c;
if(((c=_.g(y,_.mv))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Z;_.Z2((Z=W.hostElement)!=null?Z:W,"yt-shorts-reset");_.J2Z(_.U().resolve(_.Mt),y).then(function(D){S2f(D,W,y)})}else{var G;
_.D2((G=W.hostElement)!=null?G:W,[y]).then(function(D){D&&S2f(D.data,W,y)})}},S2f=function(y,W,c){if(y){var Z=_.g(y.replacementEndpoint,_.mv);
if(Z){y.sequenceContinuation&&(Z.sequenceParams=y.sequenceContinuation);var G;_.Z2((G=W.hostElement)!=null?G:W,"yt-navigate",{endpoint:y.replacementEndpoint})}else if((y==null?void 0:y.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(y==null?0:y.watchStatus)&&_.g(y.watchStatus,_.HU5)){var D;_.Z2((D=W.hostElement)!=null?D:W,"yt-navigate",{endpoint:c})}}},aqQ=function(){var y=_.U().resolve(_.Fq),W=oY6(y.getState())||"";
y=_.ugt(y.getState())||"";return{disableCache:W==="ytd-browse"&&y==="home"}},xrQ=function(y){if(!y)return!1;
try{if(y.host&&y.host.tagName==="YT-FORMATTED-STRING"&&y.host.id==="contenteditable-textarea"||y.nodeType===Node.ELEMENT_NODE&&y.tagName==="YTD-COMMENT-INPUT")return!0}catch(W){return!1}return xrQ(y.parentNode)},ve=function(y){return y?y.tagName==="A"&&y.href&&y.classList.contains("yt-simple-endpoint"):!1},ii9=function(y){return y?y.tagName==="IMG"&&y.classList.contains("emoji"):!1},M6D=function(y,W,c){if(!y)return null;
var Z=ve(y);if(Z&&c)return W=y.pathname.substring(y.pathname.indexOf("/channel/")+9),document.createTextNode("@"+W);if(Z&&!c)return document.createTextNode("");if(ii9(y))return c=y.alt,y=y.dataset.emojiId,!y&&W&&(W=_.sd(W,c))&&W.isCustomEmoji&&(y=W.emojiId),y?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+y+">"):document.createTextNode(c);Z=y.cloneNode(!1);for(var G=0;G<y.childNodes.length;++G){var D=M6D(y.childNodes[G],W,c);D&&Z.appendChild(D)}return Z},dw=function(y){return y?ve(y)?y:dw(y.lastChild):
null},eJZ=function(y){return y?ve(y)?y:eJZ(y.firstChild):null},wNQ=function(y){if(!y)return null;
for(var W=y.previousSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.previousSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.previousSibling;else break;(W=dw(W))?y=W:y=(y=y.parentNode)?dw(y.previousElementSibling):null;return y},q2H=function(y){if(!y)return null;
for(var W=y.nextSibling;W;)if(W.nodeType===Node.ELEMENT_NODE&&W.nodeName==="BR")W=W.nextSibling;else if(W.nodeType===Node.TEXT_NODE&&/\s+/.test(W.textContent))W=W.nextSibling;else break;return(W=eJZ(W))?W:q2H(y.parentNode)},k$f=function(y){var W=_.tD(),c=W.JSC$9101_getStartNode();
if(!xrQ(c.parentNode))return null;W=W.JSC$9101_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var Z=_.CP(c,ve);if(Z){if(y&&W===0||!y&&W===c.length)return Z}else{if(y&&W===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.ns(c.nextElementSibling,"display")==="block"?null:eJZ(c.nextElementSibling);if(!y&&W===0)return c?dw(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(y){if(0<=W&&W<c.childNodes.length)return eJZ(c.childNodes[W])}else if(0<W&&W<=c.childNodes.length)return dw(c.childNodes[W-
1]);return null},j_D=function(y,W,c){if(!y)return null;
if(y.nodeType===Node.TEXT_NODE)if(c){var Z=wNQ(y);if(Z&&!/^\s+\S/.test(y.wholeText.substr(0,W)))return Z}else if((Z=q2H(y))&&!/\S\s+/.test(y.wholeText.substr(W,y.wholeText.length)))return Z;return y.nodeType===Node.ELEMENT_NODE?c?wNQ(y.childNodes[W]):q2H(y.childNodes[W]):j_D(y.parentNode,W,c)},yPd=function(y){if(y.hasChildNodes())switch(y.tagName){case "DIV":case "A":case "SPAN":var W="";
for(y=y.firstChild;y;y=y.nextSibling)W+=yPd(y);return W;default:return""}else switch(y.nodeType){case 3:return y.textContent;default:return""}},Weg=function(y){y=y.data;
return _.X("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.X("div",null,_.X(_.Da,{text:y.title})),y.subtitle?_.X("div",{class:"ytd-menu-title-renderer__subtitle"},_.X(_.Da,{text:y.subtitle})):null)},cPf=function(y){switch(y){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"}},ZdS=function(y){return y.map(function(W){return{settingsRadioOptionRenderer:{title:_.kA(W.name),
asideText:_.kA(W.approximateSize),id:cPf(W.format)}}})},fi9=function(y){if(y&&y.length!==0)return y.filter(Gu3()).map(function(W){return{settingsRadioOptionRenderer:{title:W.name,
asideText:W.approximateSize,id:cPf(W.formatType)}}})},o_Z=function(y){if(y)return y.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},DLf=function(y){var W=y.indexOf("(");
return W!==-1?y.substring(W+1,y.length-1):y},zsg=function(y){switch(y){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},mLQ=function(y,W,c,Z,G,D){var Y=_.Eb.clone(Yf9);
Y.locale=_.Nn("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Y.report={description:G||"<empty>"};G=_.Nn("SBOX_SETTINGS",{});W=W.join(",");var u=Date.now();y={choice_cc:Z,choice_id_cc:c,choices_sc:W,gl:G.REQUEST_DOMAIN,hl:G.REQUEST_LANGUAGE,query:y,time:u};D&&(y.choice_additional_comment_cc=D);_.aiE(Y,y)},s_Q=function(y){var W=new Map;
W.set("authuser",_.Nn("SESSION_INDEX","0"));return _.of(y,W)},t2Z=function(y){var W;
return _.m(function(c){switch(c.nextAddress){case 1:if(!y||!uw6(y))return c.return(null);W=null;switch(_.Nn("INNERTUBE_CLIENT_NAME")){case "WEB":return c.jumpTo(2);case "WEB_REMIX":W=y.getPlayer()}c.jumpTo(3);break;case 2:return _.n(c,y.getPlayerPromise(),4);case 4:W=c.yieldResult;c.jumpTo(3);break;case 3:return c.return(W)}})},uw6=function(y){return["ytd-player",
"ytmusic-player"].includes(String(y.tagName||"").toLowerCase())},n_d=function(y){y=Math.round(y);
return y%2?y-1:y},XM9=function(y){y=Math.round(y);
return y%2===0?y-1:y},bdd=function(y){var W,c,Z;
if(y=(W=y.createPlaylistDialogFormSchema)==null?void 0:(c=W.fieldSchemas)==null?void 0:(Z=c.title)==null?void 0:Z.validationSchema)for(W=[y.syncStep,y.asyncStep].filter(function(G){return G!==void 0}),W=_.z(W),c=W.next();!c.done;c=W.next()){c=c.value.rules;
if(!c)break;c=_.z(c);for(c=c.next();!c.done;c=c.next())return _.g(c.value,_.ehH)}},Fe9=function(y){var W,c,Z;
if(y=(W=y.createPlaylistDialogFormSchema)==null?void 0:(c=W.fieldSchemas)==null?void 0:(Z=c.visibility)==null?void 0:Z.validationSchema)for(W=[y.syncStep,y.asyncStep].filter(function(G){return G!==void 0}),W=_.z(W),c=W.next();!c.done;c=W.next()){c=c.value.rules;
if(!c)break;c=_.z(c);for(Z=c.next();!Z.done;Z=c.next())if(Z=_.g(Z.value,rPZ))return W=void 0,(W=Z.translations)==null?void 0:W.visibilityNotValidErrorMessage}},ULQ=function(){var y,W;
return(W=(y=_.U().resolve(_.xN(_.EH)))==null?void 0:y())!=null?W:!1},$LH=function(y,W){a:switch(W){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":W="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:W="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:y,style:W,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},KeH=function(y){_.GG(y,"yt-refit-popups-action")},g_Z=function(y){var W=y.data;
var c=y.disablePadding;var Z=y.className;var G=_.HO(),D=$LH(W.banner,W.assetContainerPaddingStyle),Y=$LH(W.imageBanner,W.assetContainerPaddingStyle),u=W.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",t=W.assetContainerMaxHeight;_.rj(function(){var b;(b=G.value)==null||b.addEventListener("image-loaded",function(){KeH(G.value)})});
_.KL(function(){var b;(b=G.value)==null||b.removeEventListener("image-loaded",function(){KeH(G.value)})});
y={};return _.X("yt-dialog-header-view-model",{el:G,class:_.wZ(Z,(y.ytDialogHeaderViewModelHost=!0,y.ytDialogHeaderViewModelHostDisablePadding=!!c,y))},_.TY(W.banner,function(){var b={};return _.X("div",{class:_.wZ(Z,(b.ytDialogHeaderViewModelBanner=!0,b.ytDialogHeaderViewModelBannerFullBleed=!!u,b)),style:"max-height: "+(t?t+"px":"")},_.X(_.y9,{data:D,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.TY(W.imageBanner,function(){var b={};
return _.X("div",{class:_.wZ(Z,(b.ytDialogHeaderViewModelBanner=!0,b.ytDialogHeaderViewModelBannerFullBleed=!!u,b)),style:_.cF({"max-height":function(){return t!==void 0?t+"px":void 0}})},_.X(_.y9,{data:Y,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.TY(W.customAssetContainer,function(){return _.X("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},Odg(W.customAssetContainer))}),_.TY(W.customBanner,function(){return _.X("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},Odg(W.customBanner))}),_.TY(W.headline,function(){return _.X("h2",null,_.X(_.Da,{text:W.headline,
className:"ytDialogHeaderViewModelText"}))}))},Rs9=function(y){var W=21;
if(!y)return W;W+=y.headerTitle?27:0;W+=y.headerTitle&&y.hasHeaderActionHeader?4:0;return W+=y.headerTitle&&y.headerSubtitle?16:0},li3=function(y){var W=0;
if(!y)return W;W+=y.hasFooterPrimaryButton||y.hasFooterSecondaryButton?48:0;W+=y.footerTrailingLabel||y.footerLeadingLabel?30:0;return W+=y.hasFooterPrimaryButton||y.hasFooterSecondaryButton||!y.footerTrailingLabel&&!y.footerLeadingLabel?0:12},E_D=function(y){var W=new _.fR,c=y;
return{subscribe:function(Z){W.subscribe("changed",Z)},
dispatch:function(Z,G){var D=c;Z==="Touch Start"?c=Object.assign({},D,{isAnimating:!1,initialY:G.event.touches[0].clientY}):Z==="Touch Move"?(Z=Math.min(G.fullContentWrapperHeight,G.contentHeightMap[G.contentWrapperId]+Rs9(G.header)-li3(G.footer)),c=Object.assign({},D,{currentY:Math.max(G.contentScrollable?-1*(D.initialY-24):0,G.event.touches[0].clientY-D.initialY),maxHeightForContentWrapper:Math.min(Z,Math.max(0,(D.isFullScreen?Z:G.contentWrapperHeight)-D.currentY))})):c=Z==="Snap To Full Screen"?
Object.assign({},D,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:G.maxHeight}):Z==="Snap To Neutral Position"?Object.assign({},D,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:G.maxHeight}):Z==="Close Sheet"?Object.assign({},D,{isAnimating:!0,currentY:G.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:G.maxHeight}):D;W.publish("changed",c)}}},NTQ=function(y){return _.j9(function(W){y(W);
return!1})},Iif=function(){_.U().resolve(_.bc).closeSheet()},pM9=function(y){var W,c,Z,G,D,Y,u,t,b,r,F;
return{headerTitle:(W=y.headerTitle)==null?void 0:W.call(y),headerSubtitle:(c=y.headerSubtitle)==null?void 0:c.call(y),headerActionHeader:y.headerActionHeader,footerPrimaryButton:y.footerPrimaryButton,footerSecondaryButton:y.footerSecondaryButton,footerButtonType:(Z=y.footerButtonType)==null?void 0:Z.call(y),footerLeadingLabel:(G=y.footerLeadingLabel)==null?void 0:G.call(y),footerTrailingLabel:(D=y.footerTrailingLabel)==null?void 0:D.call(y),shouldShowIcons:(Y=y.shouldShowIcons)==null?void 0:Y.call(y),
skipContentClick:(u=y.skipContentClick)==null?void 0:u.call(y),additionalClassName:(t=y.additionalClassName)==null?void 0:t.call(y),onClosedCallback:y.onClosedCallback,focusOnClose:(b=y.focusOnClose)==null?void 0:b.call(y),isDisabled:(r=y.isDisabled)==null?void 0:r.call(y),disabledCommand:(F=y.disabledCommand)==null?void 0:F.call(y),headerFn:y.headerFn,contentFn:y.contentFn,footerFn:y.footerFn,hasHeaderFn:y.hasHeaderFn(),hasContentFn:y.hasContentFn(),hasFooterFn:y.hasFooterFn(),hasFooterPrimaryButton:y.hasFooterPrimaryButton(),
hasFooterSecondaryButton:y.hasFooterSecondaryButton(),hasHeaderActionHeader:y.hasHeaderActionHeader()}},P59=function(y){switch(y){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""}},JP6=function(y){switch(y){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""}},V29=function(y){switch(y){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""}},C5S=function(y,W,c){W.forEach(function(Z){_.yk(_.U().resolve(_.oZ),Z)});
_.GG(y,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",c])},BTQ=function(y,W,c,Z){var G=_.g(c,_.pF).commandLifeCycleConfig;
G&&G.onStartCommand&&_.mq(y,[G.onStartCommand],W);_.vE(W);var D=_.Ee.instance;D&&_.Nu(D,c)?_.IL(D,c,Z).then(function(Y){if(!Y||(Y==null?0:Y.error))return Y=_.g(c,_.pF).serializedTransactionFlowLoggingParams,_.de(W),_.hG(new SK("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Y));_.de(W);return{data:Y}}).then(function(Y){_.de(W);
Q_g(Y.data);var u=Y.data.command;u&&_.mq(y,[u],W);u=APQ(c,Y.data);if(!u){var t=Y.data;Y=!1;if(t&&t.command&&_.g(t.command,_.uN)){var b;t=((b=_.g(t.command,_.uN))==null?void 0:b.commands)||[];for(b=0;b<t.length;b++)if(_.g(t[b],_.D73)){Y=!0;break}}Y||_.YS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!u&&G&&G.onSuccessCommand?_.mq(y,[G.onSuccessCommand],W):u&&G&&G.onFailureCommand&&_.mq(y,[G.onFailureCommand],W)},function(){_.de(W);
G&&G.onFailureCommand&&_.mq(y,[G.onFailureCommand],W);hsB(c)}):_.OP(Error("yl"),"ERROR")},Hd9=function(y,W,c){var Z=[W];
c&&Z.push(c);return _.D2(y,Z).then(function(G){var D=_.g(W,_.pF).serializedTransactionFlowLoggingParams,Y=G.data,u=APQ(W,Y);u?G=_.hG(new SK(u,D)):Q_g(Y);return G},function(){var G=_.g(W,_.pF).serializedTransactionFlowLoggingParams;
hsB(W);return _.hG(new SK("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",G))})},APQ=function(y,W){y=_.g(y,_.pF).serializedTransactionFlowLoggingParams;
var c=null;switch(W.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":c="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":c="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":c="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}c?_.CZ(c,y):kbQ(y);return c},hsB=function(y){_.CZ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.g(y,_.pF).serializedTransactionFlowLoggingParams)},
Q_g=function(y){if(y.trackingParams){var W=_.NR(),c=_.EL();
W&&c&&_.HA(W,c,_.Dz(y.trackingParams))}},LeD=function(y,W,c){var Z=_.Ee.instance,G=_.nog(_.Nn("YPC_MB_URL")),D=(new _.uIh).init(),Y=_.t1I(),u=_.g(c,_.ZAm).languageCode;
u===void 0?_.OP(Error("Di"),"ERROR"):_.X1([D,G]).then(function(){var t={ctk:payments.business.integration.ClientTokenFactory.createClientToken(u,Y)};Z&&_.Nu(Z,c)?_.IL(Z,c,t).then(function(b){return{data:b}}).then(function(b){_.Z2(W,"yt-service-request-completed",b);
b.code!=="ERROR"&&(b=b.data.command)&&_.mq(y,[b],W)}):_.OP(Error("yl"),"ERROR")})},Sfd=function(y,W,c,Z){var G=_.Ee.instance;
G&&_.Nu(G,c)?_.IL(G,c,Z).then(function(D){return{data:D}}).then(function(D){v_g(y,W,c,D)},function(){dL9(c)}):(G=_.U().resolve(_.xN(_.tq)))&&G.requestDataForServiceEndpoint(c,Z).then(function(D){v_g(y,W,c,D)},function(){dL9(c)})},v_g=function(y,W,c,Z){_.Z2(W,"yt-service-request-completed",Z);
if(Z.code&&Z.code=="ERROR")dL9(c);else{(Z=Z.data.commands)&&_.mq(y,Z,W);var G;(y=(G=_.g(c,_.YoV))==null?void 0:G.serializedYpcPauseFlowLoggingParams)&&y&&_.XE("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",y)}},dL9=function(y){var W;
(y=(W=_.g(y,_.YoV))==null?void 0:W.serializedYpcPauseFlowLoggingParams)&&y&&_.XE("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},xLQ=function(y,W,c){var Z=_.Ee.instance;
Z&&_.Nu(Z,c)?_.IL(Z,c).then(function(G){return{data:G}}).then(function(G){TTS(y,W,c,G)},function(){ai6(c)}):(Z=_.U().resolve(_.xN(_.tq)))&&Z.requestDataForServiceEndpoint(c).then(function(G){TTS(y,W,c,G)},function(){ai6(c)})},TTS=function(y,W,c,Z){_.Z2(W,"yt-service-request-completed",Z);
Z.code&&Z.code=="ERROR"?ai6(c):((Z=Z.data.commands)&&_.mq(y,Z,W),(y=_.g(c,_.m7V).serializedYpcResumeFlowLoggingParams)&&y&&_.XE("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",y))},ai6=function(y){(y=_.g(y,_.m7V).serializedYpcResumeFlowLoggingParams)&&y&&_.XE("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",y,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},idQ=function(y){y=y===void 0?{}:y;
_.U().resolve(_.Vq6).showFeedbackDialog(y.customProductData,y.feedbackContent,y.onFeedbackSubmitted,y.bucket)},M26=function(y){y=y===void 0?{}:y;
_.U().resolve(_.Vq6).showHelpDialog(y.helpContext,y.articleId,y.productData)},esd=function(){M26()},wM6=function(){idQ()},ku9=function(y,W,c){var Z,G,D,Y,u,t,b;
return _.m(function(r){switch(r.nextAddress){case 1:Z=_.g(y,qf6);if((G=Z)==null?0:G.productId){t={productId:Z.productId,bucket:Z.bucket,enableAnonymousFeedback:(u=Z.enableAnonymousFeedback)!=null?u:!0,allowNonLoggedInFeedback:!0};b={feedbackChoice:c.feedbackChoice};if(!_.O("web_collect_offline_state")){r.jumpTo(8);break}_.tm(r,9);return _.n(r,zNf(b),11)}Y={bucket:(D=Z)==null?void 0:D.bucket};if(!_.O("web_collect_offline_state")){r.jumpTo(4);break}Y.customProductData={};_.tm(r,5);return _.n(r,zNf(Y.customProductData),
7);case 7:_.J6(r,4);break;case 5:_.rs(r);case 4:idQ(Y);r.jumpTo(0);break;case 11:_.J6(r,8);break;case 9:_.rs(r);case 8:_.DpO(b),_.oOf("GFEEDBACK",b),Z.productId==="5295751"&&(b.client_attestation=Number(_.Nn("CATSTAT",0))),Z.productId==="5295751"&&(b.client_time=Date.now()/1E3/3600),Z.productId==="5295751"&&(b.original_playback_id=_.acV||""),_.aiE(t,b),_.F2(r)}})},j43=function(y){if(y=_.g(y,_.BkD)){var W={bucket:y.bucketIdentifier};
y.additionalDatas&&(W.customProductData={},y.additionalDatas.forEach(function(c){if(c=c.userFeedbackEndpointProductSpecificValueData)W.customProductData[c.key]=c.value}));
idQ(W)}},yUf=function(y){var W=_.Q8.getInstance(),c=_.bN("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),Z=_.bN("DELETE",void 0,"Delete"),G=_.bN("CANCEL",void 0,"Cancel");
c={openPopupAction:bND(c,void 0,Z,G,{signal:"DELETE_ALL_DOWNLOADS"})};_.RO(W,[c],y)},cUf=function(){return _.m(function(y){return y.nextAddress==1?_.n(y,_.U().resolve(_.Bx),2):_.n(y,WSH(),0)})},Z$9=function(y){var W,c;
return _.m(function(Z){return Z.nextAddress==1?(c=(W=_.g(y,_.Jc))==null?void 0:W.targetId)?_.n(Z,_.U().resolve(_.Bx),3):Z.jumpTo(0):_.n(Z,_.U().resolve(_.hO).deleteVideo(c),0)})},f99=function(y){var W,c;
return _.m(function(Z){return Z.nextAddress==1?(c=(W=_.g(y,_.Jc))==null?void 0:W.targetId)?_.n(Z,_.U().resolve(_.Bx),3):Z.jumpTo(0):_.n(Z,GFH(_.U().resolve(_.hO),c),0)})},DKd=function(y){var W,c;
return _.m(function(Z){return(c=(W=_.g(y,_.Jc))==null?void 0:W.targetId)?_.n(Z,opD(c),0):Z.jumpTo(0)})},YpB=function(){_.O("kevlar_woffle_refresh_dl_load_killswitch")||zG3()},s4Q=function(){_.O("kevlar_woffle")&&_.pZ.instance&&mK6()},tw6=function(y){var W;
if((W=_.g(y,_.yL))==null||!W.videoId)return!1;u1S(_.U().resolve(_.hO),_.g(y,_.yL),y.clickTrackingParams);return!0},XP9=function(y){var W;
if((W=_.g(y,_.WG))==null||!W.playlistId)return!1;npQ(_.U().resolve(_.hO),_.g(y,_.WG),y.clickTrackingParams);return!0},rU9=function(y){var W=_.g(y,_.u3E);
(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(W==null?void 0:W.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||b$H(_.U().resolve(_.hO),_.g(y,_.u3E))},UK9=function(y){y=_.g(y,_.aTW);
var W;(y==null?0:(W=y.actions)==null?0:W.length)&&FSQ(y)},O$H=function(y){var W,c;
return _.m(function(Z){W=_.g(y,$KQ);return(c=W)!=null&&c.localWatchHistoryCommandType?_.n(Z,KSg(W),0):Z.return()})},gpB=function(y){setTimeout(function(){requestAnimationFrame(y)},80)},RGD=function(y){return Object.entries(y).map(function(W){return W.join(":")}).join(";")},Ep6=function(y){var W,c,Z;
_.m(function(G){if(G.nextAddress==1)return _.n(G,l9H(),2);W=G.yieldResult;c=_.km.instance;switch(W){case "granted":Z=y.getLocationCommand;break;case "denied":Z=y.openDeniedDialogAction;break;case "prompt":Z=y.openCollectionDialogAction;break;default:Z=y.openCollectionDialogAction}Z&&c.resolveCommand(Z);_.F2(G)})},l9H=function(){var y,W;
return _.m(function(c){if(c.nextAddress==1)return y="prompt",navigator.permissions?_.n(c,navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2);c.nextAddress!=2&&(W=c.yieldResult,y=W.state);return c.return(y)})},I9Q=function(){_.m(function(y){return _.n(y,_.Naf(),0)})},pPd=function(){var y,W,c;
return _.m(function(Z){if(Z.nextAddress==1)return y=_.U().resolve(_.b0),y?_.n(Z,_.IL(y,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Rs(Error("Bl")),Z.return(void 0));if(W=Z.yieldResult){if(W.errorMetadata)return _.Rs(Error("Cl`"+W.errorMetadata.status+"`"+W.error)),Z.return(void 0);c=W.datasyncIds;_.Qfg=c.length;return Z.return(c)}_.Rs(Error("Dl"));return Z.return(void 0)})},PU9=function(){pPd().then(function(y){y&&(Q9f(y),yzf(y),RU9(y),m8Q(y))})},JU6=function(y){_.KX.addLowPriorityJob(function(){var W,
c,Z,G,D;
return _.m(function(Y){switch(Y.nextAddress){case 1:if(_.O("ytidb_clear_optimizations_killswitch")){Y.jumpTo(2);break}W=_.m9("clear");if(W.startsWith("V")&&W.endsWith("||")){var u=[W];Q9f(u);yzf(u);RU9(u);m8Q(u);return Y.return()}c=la6();Z=s3Q();return _.n(Y,WlQ(),3);case 3:return G=Y.yieldResult,_.n(Y,A3d(),4);case 4:if(D=Y.yieldResult,!(c||Z||G||D))return Y.return();case 2:y.isNetworkAvailable()?PU9():y.listenOnce("publicytnetworkstatus-online",PU9),_.F2(Y)}})})},T4=function(y){y={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Lq(y)}}}};_.km.instance&&_.km.instance.resolveCommand(y)},Vw6=function(y){if(y){var W=_.Zz();
_.wR(W,3854,void 0,{layer:0,parentLayer:4});switch(y){case 1:var c=238708;break;case 2:c=238715;break;case 3:c=238710;break;case 6:c=238709}c&&(y=_.ch(W,{veType:c}))&&_.jz(W,y)}},CUQ=function(y){if(y){var W=_.Zz();
_.wR(W,3854,void 0,{layer:0,parentLayer:4});switch(y){case 1:var c=238714;break;case 2:c=238711;break;case 8:c=238709;break;case 7:c=238713;break;case 3:case 4:case 5:c=238712}c&&(y=_.ch(W,{veType:c}))&&_.jz(W,y)}},Q4S=function(y){switch(y.latencyType){case 0:_.pl("consent_primitive_flow");
_.PA("cpit",y.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.PA("cpist",y.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.PA("cprtif",y.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.PA("cprtli",y.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.PA("cprt",y.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.PA("cpdt",y.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.PA("cpjct",y.timestampEpochMillis,"consent_primitive_flow")}},
a9S=function(y,W){var c,Z,G,D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy,M,fa;
return _.m(function(jI){switch(jI.nextAddress){case 1:_.tm(jI,2);(Z=(c=_.g(y,AUQ))==null?void 0:c.serializedConsentRequest)||(Z=(G=_.g(y,hGB))==null?void 0:G.serializedConsentRequest);Z&&(D=BaH(_.cJ(Z)));if(D===void 0)return jI.return();Y=H$Z(D);Y.latencyCallback=Q4S;W&&LSg(Y,function(){W.then(function(sD){sD.pauseVideo();(new vpd).increment()})});
return((u=_.g(y,AUQ))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"||((t=_.g(y,hGB))==null?void 0:t.consentAction)==="CONSENT_ACTION_PREWARM"?_.n(jI,dKf(Y),5):_.n(jI,Spd(Y),6);case 6:b=jI.yieldResult;r=_.r5(b,ag);if(r===1){if(((F=_.IE(b,xB,1,ag))==null?void 0:_.lm(F,1))===1||((K=_.IE(b,xB,1,ag))==null?void 0:_.lm(K,1))===2||((l=_.IE(b,xB,1,ag))==null?void 0:_.lm(l,1))===3)_.g(y,hGB)?T4(_.bN("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
T4(_.bN("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Vw6((N=_.IE(b,xB,1,ag))==null?void 0:_.lm(N,1),_.wQ(b,Ta9,3,_.ky()))}else r===2?(((P=id(b))==null?void 0:_.lm(P,1))===5?_.g(y,hGB)?T4(_.bN("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):T4(_.bN("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((V=id(b))==null?void 0:_.lm(V,1))===1||((Q=id(b))==null?void 0:_.lm(Q,1))===4?T4(_.bN("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((S=id(b))==null?void 0:_.lm(S,1))===7&&((cy=D)==null?void 0:(M=_.il(cy,MI,4))==null?void 0:_.lm(M,4))!==1&&T4(_.bN("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),CUQ((fa=id(b))==null?void 0:_.lm(fa,1))):T4(_.bN("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));jI.jumpTo(5);break;case 5:_.J6(jI,0);break;case 2:_.rs(jI),T4(_.bN("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.F2(jI)}})},i$6=
function(){if(!xKg.has("Worker")){xKg.set("Worker",!0);
var y={api:"BROWSER_API_WEB_WORKER"};y.available="Worker"in window?!0:!1;_.$g("apiTest",y)}},MwZ=function(y){return typeof y==="undefined"?"-1":String(Math.ceil(y/1048576))},kFB=function(y,W){eG9(new wPg(_.g(W,qpH).addToken,_.g(W,qpH).commonToken)).then(function(){_.Z2(y,"yt-invoke-instrument-manager-action-completed")},function(c){_.Z2(y,"yt-invoke-instrument-manager-action-error",c)})},j7d={},yh9=function(y){return _.w7g(j7d,y,function(){return TB(_.hfI,y)>=0})},Wzf=function(y){return _.Ci(y)},
ch9=function(y){var W=1;
y=y.split(":");for(var c=[];W>0&&y.length;)c.push(y.shift()),W--;y.length&&c.push(y.join(":"));return c},Z2B=function(y,W){W=y.aspectRatio()<=W.aspectRatio()?W.width/y.width:W.height/y.height;
y.scale(W)},GHQ=function(y,W){W=y.aspectRatio()>W.aspectRatio()?W.width/y.width:W.height/y.height;
return y.scale(W)},fyD=function(y){var W=new _.yh;
return _.pi(W,11,y)},ob9=function(y){var W={};
y=y.getAllResponseHeaders().split("\r\n");for(var c=0;c<y.length;c++)if(!_.tH(y[c])){var Z=ch9(y[c]),G=Z[0];Z=Z[1];if(typeof Z==="string"){Z=Z.trim();var D=W[G]||[];W[G]=D;D.push(Z)}}return _.Eb.map(W,function(Y){return Y.join(", ")})},G4=function(y,W){return y.JSC$7661_xhr_?y.JSC$7661_xhr_.getResponseHeader(W):null},eK=function(y,W,c){Array.isArray(c)||(c=[String(c)]);
_.Q8E(y.JSC$7898_queryData_,W,c);return y},mK6=function(){var y=_.pZ.instance;
_.m(function(W){return y.deferredInstallPrompt?_.n(W,y.deferredInstallPrompt.prompt(),0):W.jumpTo(0)})},DJB=function(y,W,c){if(_.TO(y))_.Qa(y,W,c);
else for(y=_.h2Q(y);;){var Z=y.next();if(Z.done)break;W.call(c,Z.value,void 0,y)}},z_Q={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}"]},ZUS,GA6,fYZ,ojB,DD3,zF9,YSf,mDZ,sO6,opD,GFH,WSH,upQ,tXD,njg,Xi9,bUD,npQ,u1S,rJf,FAB,UDQ,zG3,b$H,$Dg,FSQ,KAH,KSg,OUZ,gjg,RF6,lYZ,Ej3,N_Z,IY9,Wr,pi3,Ppg,
n6Z,sE3,JJg,VXQ,cr,ZI,Gl,Cp6,QO9,AJ9,hFd,B_H,HU9,LA3,vjB,dDf,SSZ;z_Q={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 YX6=function(y,W){var c=[];DJB(W,function(Z){try{var G=_.jb.prototype.getWrapper.call(this,Z,!0)}catch(D){if(D=="Storage: Invalid value was encountered")return;throw D;}G===void 0?c.push(Z):_.AsV(G)&&c.push(Z)},y);
return c},mJf=function(y,W){YX6(y,W).forEach(function(c){_.jb.prototype.remove.call(this,c)},y)},s7S=function(y){var W=_.C7;
W._minimumZ=Math.max(W._minimumZ,y)},uOQ=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],tm6=function(y,W){_.Mg(y.pk);y.pk=W},nb9=function(y,W,c,Z){y.setState(5);
var G=!!y.pHS&&uOQ.includes(_.vI(y.pHS)||"");try{var D=new _.lU({program:W,globalName:c,g3:{disable:!_.O("att_web_record_metrics")||!_.O("att_skip_metrics_for_cookieless_domains_ks")&&G,wX:"aGIf"}});D.ke4.then(function(){y.setState(6);Z&&Z(W)});
tm6(y,D)}catch(Y){y.setState(7),Y instanceof Error&&_.Rs(Y)}},XgZ=function(y,W,c,Z,G,D){var Y=Y===void 0?"trayride":Y;
c?(y.setState(2),_.Vn(c,function(){if(window[Y])nb9(y,Z,Y,G);else{y.setState(3);var u=_.hFw(c),t=document.getElementById(u);t&&(_.TZw(u),t.parentNode.removeChild(t));_.Rs(new _.ul("BL:ULB",c))}},D)):W?(D=_.uC("SCRIPT"),W instanceof _.xX?_.M9(D,W):D.textContent=W,D.nonce=_.Te(document),document.head.appendChild(D),document.head.removeChild(D),window[Y]?nb9(y,Z,Y,G):(y.setState(4),_.Rs(new _.ul("BL:ULBJ")))):_.Rs(new _.ul("BL:ULV"))},b29=function(){this.state=1;
this.pk=null;this.pHS=void 0};
_.f=b29.prototype;_.f.initialize=function(y,W,c,Z){this.pHS=Z;if(y.program){var G;Z=(G=y.interpreterUrl)!=null?G:null;if(y.interpreterSafeScript)G=_.uXO(y.interpreterSafeScript);else{var D;G=(D=y.interpreterScript)!=null?D:null}y.interpreterSafeUrl&&(Z=_.OW(y.interpreterSafeUrl).toString());XgZ(this,G,Z,y.program,W,c)}else _.Rs(Error("lf"))};
_.f.isInitialized=function(){return!!this.pk};
_.f.getState=function(){return this.state};
_.f.isLoading=function(){return this.state===2};
_.f.invoke=function(y){y=y===void 0?{}:y;var W;this.pk?W=_.grV(this.pk,{mK:y}):W=null;return W};
_.f.dispose=function(){tm6(this,null);this.setState(8)};
_.f.setState=function(y){this.state=y};
var rh6=function(y,W){return y.pk.snapshot(W)},FzS=function(y,W){var c=_.ey("botguard_async_snapshot_timeout_ms",3E3);
W=W===void 0?{}:W;c=c===void 0?3E3:c;return y.pk?new Promise(function(Z,G){var D=!1,Y=_.KX.addJob(function(){D=!0;G(Error("mf"))},1,c);
y.pk?rh6(y,{mK:W}).then(function(u){_.KX.cancelJob(Y);D||Z(u)}).catch(function(u){_.KX.cancelJob(Y);
D||G(u)}):(_.KX.cancelJob(Y),Z(null))}):Promise.resolve(null)},UJH=["att/log"],$J9;
$J9={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var KzH={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},O2Q=function(y,W){return _.sq(y,{mode:"readwrite",enableRetries:!0},function(c){return _.rAO(c,W,"settingEntity")})},gbD=function(y,W,c){return _.sq(y,{mode:"readonly",
enableRetries:!0},function(Z){return _.VaE(Z,W,c)})},R_6=function(y){if(!y.storage)return!1;
a:{if(y.storage){try{var W=y.storage.get("TLPQtimestamp")}catch(c){}y=Number(W);if(!isNaN(y))break a}y=void 0}return y?Date.now()-y<864E5:!1},lyQ=function(y,W){y.queueProxy&&W.forEach(function(c){if(c.videoId&&c.trackingParams&&y.queueProxy instanceof _.$P){var Z=_.NR();
y.queueProxy.attributionData.set(c.videoId,{enqueueingVe:_.Dz(c.trackingParams).getAsJson(),enqueueingCsn:Z?Z:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Tj)()).toString()})}})},EbQ=function(y){var W=_.sMW(y);
W!=y.currentSnapState_&&(y.currentSnapState_=W,y.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},ww=function(y){this.JSC$10810_networkManager_=y;
this.partCallbacks_=[]};
ww.prototype.getCacheKeyForEndpoint=function(y){return _.KKa(y,!1)};
ww.prototype.onPartsCallback_=function(y){this.partCallbacks_.forEach(function(W){y&&W(y)})};
var qI=function(y,W,c){ww.call(this,y);this.player_=W;this.autoplayData_=c};
_.R(qI,ww);qI.prototype.getCacheKeyForEndpoint=function(y){return _.KKa(y,!!this.autoplayData_)};
qI.prototype.getTempData=function(y,W){W=W.timeBeforeNextVideo;y={itct:y.clickTrackingParams,lact:_.MV(),pbis:W,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(y.autonav=1);return y};
qI.prototype.getXhrParams=function(y){return Object.assign({pbj:"prefetch"},y)};
qI.prototype.getParams=function(y){y={frags:y.fragmentsRequested.join(",")};_.O("kevlar_droppable_prefetchable_requests")&&(y.prefetch=1);return y};
var NqH=function(y){y.playerEvents_.forEach(function(W){y.player.removeEventListener(W.eventName,W.callback)});
y.playerEvents_.length=0},kB=function(y,W,c){this.player=y;
this.JSC$10820_taskManager=W;this.prefetchDelay=c;this.completionResolver_=null;this.playerEvents_=[]};
kB.prototype.start=function(){var y=this;this.completionResolver_=_.px();_.bU(this.completionResolver_.promise,function(){NqH(y);y.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var IyB=function(y,W,c){y.player.addEventListener(W,c);y.playerEvents_.push({eventName:W,callback:c})},pgH={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},Pig={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},JhS=function(y,W,c){kB.call(this,y,W,c);this.cueId_="playbackTrigger-"+Math.random()};
_.R(JhS,kB);
JhS.prototype.prepareTrigger=function(y){var W=this,c=this.player.getDuration(),Z=this.player.getVideoData(),G=Z.isLive&&Z.hasProgressBarBoundaries;if(G&&Z.progressBarEndPositionUtcTimeMillis){var D=Z.progressBarEndPositionUtcTimeMillis/1E3;isNaN(D)||(c=D)}var Y=0;this.prefetchDelay>=0?G?Z.progressBarStartPositionUtcTimeMillis&&(Z=Z.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Z)||(Y=Z+this.prefetchDelay)):Y=this.prefetchDelay:Y=c+this.prefetchDelay;G?this.player.addUtcCueRange(this.cueId_,Y,c):
this.player.addCueRange(this.cueId_,Y,c);_.bU(y.promise,function(){W.player.removeCueRange(W.cueId_)});
IyB(this,"onCueRangeEnter",function(u){u==W.cueId_&&y.resolve(c-Y)})};
var VmQ=function(y,W){y.fragmentConfiguration_[W].requiredKeys.every(function(c){return!!y.prefetchedData_[c]})&&(y.validatedFragments_.push(W),W=y.missingFragments_.indexOf(W),W!==-1&&y.missingFragments_.splice(W,1))},Cif=function(y){y.prefetchedFragments_.forEach(function(W){VmQ(y,W)})},Q7Q=function(y,W,c){this.pageFragments_=y;
this.prefetchedFragments_=W;this.fragmentConfiguration_=Pig;this.prefetchedData_=c;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Cif(this)},Ahd=function(){},h_9=function(y){this.JSC$10834_playlistManager_=y};
_.R(h_9,Ahd);h_9.prototype.getPrefetchEndpoint=function(){return this.JSC$10834_playlistManager_.getAutoplayEndpoint()};
var BqS=function(y){this.autonavEndpoints_=y};
_.R(BqS,Ahd);BqS.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var H2S=function(y,W,c,Z,G){this.autonavEndpoints=y;this.foregroundTrigger=W;this.backgroundTrigger=c;this.pageType=Z;this.isInPlaylist=G},LzH=function(y,W){if(y.webPrefetchData&&y.webPrefetchData.navigationEndpoints&&y.webPrefetchData.navigationEndpoints.length){y=y.webPrefetchData.navigationEndpoints;
var c=_.g(y[0],_.Sb);if(c.watchEndpointSupportedPrefetchConfig&&c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Z=c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;c=Z.playbackRelativeSecondsPrefetchCondition;c=typeof c==="number"&&Math.abs(c)<W.videoDuration?c:void 0;Z=Z.countdownUiRelativeSecondsPrefetchCondition;Z=typeof Z!=="number"||_.O("prefetch_job_config_cleanup_ks")&&W.inPlaylist?void 0:Z;if(typeof Z==="number")return new H2S(y,W.makeUpNextTrigger(Z),W.makePlaybackTrigger(Z),
"watch",W.inPlaylist);if(typeof c==="number")return new H2S(y,W.makePlaybackTrigger(c),null,"watch",W.inPlaylist)}}},vb9=function(y){return y.prefetchJobConfig_.backgroundTrigger?_.PI(_.dhy)()==0?y.prefetchJobConfig_.backgroundTrigger:y.prefetchJobConfig_.foregroundTrigger:y.prefetchJobConfig_.foregroundTrigger},dJD=function(y){_.sp(document,"visibilitychange",y.onVisibilityChange_,!1,y)},jU=function(y){ww.call(this,y)};
_.R(jU,ww);jU.prototype.getCacheKeyForEndpoint=function(y){return ww.prototype.getCacheKeyForEndpoint.call(this,y)};
jU.prototype.getTempData=function(){return{}};
jU.prototype.getXhrParams=function(y){return y};
jU.prototype.getParams=function(){return{}};
var SXB=function(y,W,c){var Z=y.prefetchDelay*1E3;if(Math.abs(Z)>W)c.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var G=Z,D=W-Z;Z<0&&(G=W+Z,D=Math.abs(Z));var Y=y.JSC$10820_taskManager.addJob(function(){c.resolve(D/1E3)},10,G);
c.promise.thenCatch(function(){y.JSC$10820_taskManager.cancelJob(Y)})}},Tq3=function(y,W,c){kB.call(this,y,W,c)};
_.R(Tq3,kB);Tq3.prototype.prepareTrigger=function(y){var W=this;IyB(this,"onAutonavCoundownStarted",function(c){SXB(W,c,y)})};
var ay3=function(y){y.pendingPrefetchJob_&&(y.pendingPrefetchJob_.cancel(),y.pendingPrefetchJob_=null)},xJf=function(y,W,c){if(!y.triggeredTargets.has(W)){var Z=_.q7i(y,W);
Z.action=c;_.ek8(y,W,Z)}},i2Z=function(y){_.kKE();
_.ykg("cpt")&&_.Rs(Error("lh"));_.DH.requestAnimationFrame(function(){_.DH.setTimeout(function(){_.PA("cpt");var W=_.Cl("vpl"),c=_.Cl("cpt");W&&c&&_.PA("ol",Math.max(W,c))})});
try{_.PA("fr_s"),y()}catch(W){_.OP(W)}_.DH.requestAnimationFrame(function(){_.PA("bcp")})},MmH=function(y,W){y.serviceEndpointHandlers.push(W)},e_B=function(y,W){W=y.pendingPages_.indexOf(W);
W>-1&&y.pendingPages_.splice(W,1)},wg6=function(y,W){var c=_.Xx8.indexOf(W);
c>-1&&_.Xx8.splice(c,1);y.targetPage_==W?(y.abort(),_.rOm(y)):e_B(y,W)},qX6=function(y,W,c,Z){W={challenge:W};
c&&(W.webResponse=c);return _.OU(y.innertubeTransportService,W,_.Tx(UJH),Z)},kHS=function(y,W,c){if(!W.challenge)throw Error("ni");
if(W.botguardData&&W.botguardData.program){var Z=new b29;Z.initialize(W.botguardData,function(){FzS(Z,{atr_challenge:W.challenge}).then(function(G){if(!G)throw Error("oi");return qX6(y,W.challenge,G,c)}).catch(function(G){_.Rs(G);
return qX6(y,W.challenge,void 0,c)})},void 0)}else qX6(y,W.challenge,void 0,c)},jO9=function(y,W,c){var Z={};
W.ids&&(Z.ids=[].concat(_.No(W.ids)));W.engagementType&&(Z.engagementType=W.engagementType);return _.OU(y.innertubeTransportService,Z,_.Tx(_.wjE),c).then(function(G){if(!G)throw new _.ul("GetAttestationChallenge returned falsy");kHS(y,G,c)}).thenCatch(function(G){_.OP(G)})},yJ6=function(y,W,c){return new _.fD(function(Z,G){var D;
return _.m(function(Y){if(Y.nextAddress==1){var u=W.engagementType,t=W.ids,b={};t=_.z(t!=null?t:[]);for(var r=t.next();!r.done;r=t.next())r=r.value,r.encryptedVideoId?b.encryptedVideoId=r.encryptedVideoId:r.externalChannelId?b.externalChannelId=r.externalChannelId:r.commentId?b.commentId=r.commentId:r.externalOwnerId?b.externalOwnerId=r.externalOwnerId:r.artistId?b.artistId=r.artistId:r.playlistId?b.playlistId=r.playlistId:r.externalPostId?b.externalPostId=r.externalPostId:r.shareId&&(b.shareId=r.shareId);
return _.n(Y,Xh6(u,b),2)}D=Y.yieldResult;if(!D.challenge)return _.Rs(Error("pi")),jO9(y,W,c).then(Z,G),Y.return();u=D;b={challenge:u.challenge};b.webResponse=u.webResponse;b.engagementType=W.engagementType;b.ids=W.ids;_.OU(y.innertubeTransportService,b,_.Tx(UJH),c).then(Z,G);_.F2(Y)})})},rf9=function(y,W){var c,Z,G,D;
_.m(function(Y){if(Y.nextAddress==1){c=_.g(W,_.z_8);if(!(c&&c.listId&&y.response&&y.response.playingVideoId)||y.listId!==c.listId)return Y.return();y.index===void 0&&(y.index=0);return _.n(Y,_.tAV(y.JSC$10643_playlistNetworkManager,c.listId,y.index,y.response.playingVideoId),2)}Z=Y.yieldResult;if(!Z)return Y.return();G=Z.playlistId;D=Z.playlistPanelRenderer;y.setPlaylistData(G,D,Z.autoplayRenderer);_.F2(Y)})},WAf=function(y,W,c){var Z=y.getParams(c),G=_.RNO(W,Z),D=y.getTempData(W,c);
D.endpoint=JSON.stringify(W);_.O("enable_unknown_lact_fix_on_html5")&&(_.U().resolve(_.t7),D.lact=_.MV());var Y={headers:{"X-YouTube-STS":_.Nn("STS"),"x-youtube-csoc":1}};_.wz(G,D);return new _.fD(function(u,t){var b=y.getXhrParams(Z),r;_.O("kevlar_cache_on_ttl_player")&&(r=_.wF.instance);r&&_.NOW(r,W)?_.A22(r,W,D,window.location.href).then(function(F){F?u(F):t()},t):_.gzE(y.JSC$10810_networkManager_,W,b,y.onPartsCallback_.bind(y),Y).then(function(F){F?u(F):t()},t)})},cJ3=function(y,W){y.triggerPromise_=
W.start();
y.triggerPromise_.then(function(c){var Z=y.prefetchEndpointProvider_.getPrefetchEndpoint();if(Z){var G=pgH[y.prefetchJobConfig_.pageType].prefetchedFragments;y.prefetchRequestPromise_=WAf(y.JSC$10846_networkPrefetchRequest_,Z,{fragmentsRequested:G,timeBeforeNextVideo:c});y.prefetchResponseCacheKey_=y.JSC$10846_networkPrefetchRequest_.getCacheKeyForEndpoint(Z);dJD(y);y.prefetchRequestPromise_.then(function(D){y.storePrefetchedDataCallback_(y.prefetchResponseCacheKey_,D);if(_.O("web_prefetch_preload_video")&&
G.length===1&&G[0]==="pl"&&D&&!D.playerAds&&!D.adPlacements){var Y=_.g(Z,_.mv),u=Y!=null,t={raw_player_response:D,watch_endpoint:Y};(D=_.U().resolve(u?_.wbQ:_.Tb))&&Z&&D.then(function(b){u&&_.O("web_queue_preload_video")?(t.prefer_gapless=!0,b.queueNextVideo(t)):b.preloadVideoByPlayerVars(t)})}})}})},ys=function(y,W,c,Z){this.prefetchEndpointProvider_=y;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=W;this.prefetchJobConfig_=c;this.JSC$10846_networkPrefetchRequest_=Z;this.prefetchResponseCacheKey_=null};
ys.prototype.enqueue=function(){this.triggerPromise_||(cJ3(this,vb9(this)),_.Y0(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
ys.prototype.resolve=function(){this.cancel()};
ys.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.");dJD(this)};
ys.prototype.onVisibilityChange_=function(){var y=this;_.PI(_.dhy)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){y.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||cJ3(this,vb9(this))};
ZUS=function(y,W,c,Z,G){W&&(W==null?0:W.videoId)&&c&&c.entries&&_.O("kevlar_enable_shorts_prefetch_in_sequence")&&(ay3(y),W=c.entries.map(function(D){var Y;return(Y=_.g(D.command,_.mv))==null?void 0:Y.videoId}).indexOf(W.videoId),c=c.entries[W+1],c!=null&&c.command&&!_.g(c==null?void 0:c.command,_.Ox)&&(Z=new H2S([c.command],new JhS(Z,_.KX,1),null,"shorts",!1),y.pendingPrefetchJob_=new ys(new BqS(Z.autonavEndpoints),function(){return!1},Z,new jU(G)),y.pendingPrefetchJob_.enqueue()))};
GA6=function(y,W,c,Z,G,D){var Y=_.LF.getInstance();if(!_.O("block_all_player_prefetch_requests")){ay3(y);var u=!!c.getPlaylistId(),t=c.getVideoData().isLive&&c.getVideoData().hasProgressBarBoundaries;if((Y.getState()==2||u||t)&&(!c.getVideoData().isLive||t)){Y={inPlaylist:u,videoDuration:c.getDuration(),makeUpNextTrigger:function(r){return new Tq3(c,_.KX,r)},
makePlaybackTrigger:function(r){return new JhS(c,_.KX,r)}};
var b=LzH(W,Y);b&&(y.pendingPrefetchJob_=new ys(b.isInPlaylist?new h_9(G):new BqS(b.autonavEndpoints),function(r,F){F=new Q7Q(pgH[b.pageType].pageFragments,pgH[b.pageType].prefetchedFragments,F);return _.Ln3(F)?(y.prefetchCache_.set(r,F),!0):!1},b,new qI(Z,c,D,G)),y.pendingPrefetchJob_.enqueue())}}};
fYZ=function(){var y=_.JI();y.signals.parkOrScheduleJob(function(){var W=y.storage;if(W.storage)if(R_6(W)){var c=W.getPlaylistId();W=W.getIndex();c=!!c&&W!==void 0}else W.clear(),c=!1;else c=!1;if(c){c=y.pageManager.isOnWatch();a:{var Z=y.storage;if(Z.storage&&R_6(Z)&&(W=Z.getPlaylistId(),Z=Z.getIndex(),W&&Z!==void 0)){c={recoverPlaylistCommand:{listId:W,index:Z,openMiniplayer:!c,openListPanel:c,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}c=void 0}c&&_.RO(y.JSC$10643_actionRouter,[c],null)}},
0,"ma")};
ojB=function(y,W,c,Z,G,D){var Y=_.se(7111);_.qY(y.JSC$15948_screenManager,Y,D?_.Dz(D):void 0);_.jz(y.JSC$15948_screenManager,Y,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Z,offlineId:W,offlineabilityFormatType:c,isDefaultFormatType:G==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:G}})};
DD3=function(y,W,c,Z,G){var D,Y,u,t,b;return _.m(function(r){if(r.nextAddress==1)return _.n(r,y.JSC$15948_playerApiPromise,2);D=r.yieldResult;ojB(y,W,c,"OFFLINE_OBJECT_TYPE_PLAYLIST",Z,G);if(u=_.LgZ[y.entityTypeMap.listEntityType])b={},Y=(b[u]={maximumDownloadQuality:(t=c)!=null?t:void 0},b);return _.n(r,D.queueOfflineAction(W,y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)})};
zF9=function(y,W){var c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return _.n(Y,y.JSC$15948_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3){c=Y.yieldResult;if(!c)return _.Rs(new _.ul("PES is undefined")),Y.return();Z=_.Gx(W,"downloadStatusEntity");return _.n(Y,gbD(c,Z,"downloadStatusEntity"),3)}G=Y.yieldResult;return Y.return((D=G)==null?void 0:D.downloadState)})};
YSf=function(y,W,c,Z,G){var D,Y,u,t,b,r;return _.m(function(F){switch(F.nextAddress){case 1:return _.n(F,y.JSC$15948_playerApiPromise,2);case 2:D=F.yieldResult;ojB(y,W,c,"OFFLINE_OBJECT_TYPE_VIDEO",Z,G);if(u=_.LgZ[y.entityTypeMap.singleEntityType])b={},Y=(b[u]={maximumDownloadQuality:(t=c)!=null?t:void 0},b);return _.n(F,zF9(y,W),3);case 3:r=F.yieldResult;if(r!=="DOWNLOAD_STATE_USER_DELETED"){F.jumpTo(4);break}return _.n(F,y.deleteVideo(W),4);case 4:return _.n(F,D.queueOfflineAction(W,y.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Y),0)}})};
mDZ=function(y,W,c,Z,G){return _.m(function(D){return D.nextAddress==1?_.n(D,y.deleteVideo(W,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.n(D,YSf(y,W,c,Z,G),0)})};
sO6=function(y,W,c){var Z,G;return _.m(function(D){if(D.nextAddress==1)return _.n(D,y.JSC$15948_playerApiPromise,2);Z=D.yieldResult;G=_.Gx(W,"mainVideoDownloadStateEntity");return _.n(D,Z.updateDownloadState(G,c),0)})};
opD=function(y){var W=_.U().resolve(_.hO);return _.m(function(c){if(c.nextAddress==1)return W.previousDownloadStateForVideo[y]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&W.previousDownloadStateForVideo[y]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?c.jumpTo(2):_.n(c,W.resumeVideoDownload(y),2);if(c.nextAddress!=4)return _.n(c,sO6(W,y,W.previousDownloadStateForVideo[y]),4);delete W.previousDownloadStateForVideo[y];_.F2(c)})};
GFH=function(y,W){var c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$15948_playerApiPromise,2);c=Z.yieldResult;return _.n(Z,c.queueOfflineAction(W,y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
WSH=function(){var y=_.U().resolve(_.hO),W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$15948_playerApiPromise,2);if(Z.nextAddress!=3)return W=Z.yieldResult,c={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.n(Z,W.queueOfflineAction("!*$_ALL_ENTITIES_!*$",y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",c),3);var G=y.JSC$15948_commandHandler,D=G.resolveCommand,Y=_.bN("DELETING_ALL",void 0,"Downloads are being deleted");
D.call(G,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.wK(Y)}},popupType:"TOAST"}});_.F2(Z)})};
upQ=function(y){var W,c;return _.m(function(Z){if(Z.nextAddress==1)return _.n(Z,y.JSC$15948_prefStorage,2);W=Z.yieldResult;return Z.return((c=W)==null?void 0:c.get("sdois"))})};
tXD=function(y){var W,c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return _.n(u,y.JSC$15948_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3){W=u.yieldResult;if(!W)return _.Rs(new _.ul("PES is undefined")),u.return();c=_.Gx("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.n(u,gbD(W,c,"settingEntity"),3)}Z=u.yieldResult;return u.return((Y=(G=Z)==null?void 0:(D=G.settingOptionValue)==null?void 0:D.boolValue)!=null?Y:!1)})};
njg=function(y,W){var c,Z,G,D;return _.m(function(Y){switch(Y.nextAddress){case 1:return((c=W)==null?void 0:c.formatType)===void 0?Y.return():_.n(Y,y.JSC$15948_prefStorage,2);case 2:Z=Y.yieldResult;if(Z===void 0)return Y.return();if(((G=W)==null?void 0:G.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.n(Y,Z.set("lmqf",W.formatType),8);if(((D=W)==null?void 0:D.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Y.jumpTo(0);break}return _.n(Y,Z.set("lmqf",W.formatType),
6);case 6:return _.n(Y,Z.set("lmqflst",Math.floor((0,_.Tj)())),0);case 8:return _.n(Y,Z.remove("lmqflst"),0)}})};
Xi9=function(y){var W,c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.n(Z,y.JSC$15948_prefStorage,2);case 2:W=Z.yieldResult;if(!W){Z.jumpTo(3);break}return _.n(Z,W.get("lmqflst"),4);case 4:if(c=Z.yieldResult,c!==void 0)return Z.return(c);case 3:return Z.return(0)}})};
bUD=function(y){var W,c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.n(Z,y.JSC$15948_prefStorage,2);case 2:W=Z.yieldResult;if(W===void 0){Z.jumpTo(3);break}return _.n(Z,W.get("lmqf"),4);case 4:if(c=Z.yieldResult,c!==void 0)return Z.return(c);case 3:return Z.return("SD")}})};
npQ=function(y,W,c){var Z,G,D,Y,u,t,b,r;_.m(function(F){switch(F.nextAddress){case 1:return _.n(F,njg(y,(Z=W)==null?void 0:Z.actionParams),2);case 2:G=W.playlistId;if(!G)return F.return();if(W.action==="ACTION_ADD")return((Y=W.actionParams)==null?0:Y.formatType)?_.n(F,DD3(y,G,W.actionParams.formatType,(r=W.actionParams)==null?void 0:r.settingsAction,c),0):_.n(F,y.offlineWebClientEligibility,14);if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var K=y.JSC$15948_commandHandler,l=K.resolveCommand,N=_.Nn("INNERTUBE_CLIENT_NAME"),
P=N==="WEB_REMIX"?_.bN("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.bN("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),V=N==="WEB_REMIX"?[_.bN("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];N=N==="WEB_REMIX"?_.bN("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.bN("DELETE",void 0,"Delete");var Q=_.bN("CANCEL",void 0,"Cancel");P={openPopupAction:bND(P,V,N,Q,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:G})};l.call(K,P);
return F.return()}if(W.action==="ACTION_REMOVE")return _.n(F,GFH(y,G),0);if(W.action!=="ACTION_SYNC"){F.jumpTo(0);break}return _.n(F,y.JSC$15948_playerApiPromise,9);case 9:return D=F.yieldResult,_.n(F,D.queueOfflineAction(G,y.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return u=F.yieldResult,_.n(F,bUD(y),15);case 15:return t=F.yieldResult,_.n(F,Xi9(y),16);case 16:b=F.yieldResult,W.onAddCommand&&y.JSC$15948_commandHandler.resolveCommand(W.onAddCommand,{form:{preferredFormatType:t,
offlineWebClientEligibility:u,lastOfflineQualitySettingsSavedMs:b.toString()}}),F.jumpTo(0)}})};
u1S=function(y,W,c){var Z,G,D,Y,u,t,b,r,F,K,l,N,P,V;_.m(function(Q){switch(Q.nextAddress){case 1:return _.n(Q,njg(y,(Z=W)==null?void 0:Z.actionParams),2);case 2:G=W.videoId;if(!G)return Q.return();if(W.action==="ACTION_REMOVE_WITH_PROMPT"){var S=y.JSC$15948_commandHandler,cy=S.resolveCommand,M=_.Nn("INNERTUBE_CLIENT_NAME"),fa=M==="WEB_REMIX"?_.bN("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.bN("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),jI=M==="WEB_REMIX"?[_.bN("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];M=M==="WEB_REMIX"?_.bN("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.bN("DELETE",void 0,"Delete");var sD=_.bN("CANCEL",void 0,"Cancel");fa={openPopupAction:bND(fa,jI,M,sD,{signal:"DELETE_DOWNLOAD",targetId:G})};cy.call(S,fa);return Q.return()}if(W.action==="ACTION_ADD")return((K=W.actionParams)==null?0:K.formatType)?_.n(Q,YSf(y,G,W.actionParams.formatType,(V=W.actionParams)==null?void 0:V.settingsAction,c),0):_.n(Q,y.offlineWebClientEligibility,
23);if(W.action==="ACTION_RETRY")return _.n(Q,bUD(y),19);if(W.action==="ACTION_PAUSE")return _.n(Q,y.pauseVideoDownload(G),0);if(W.action==="ACTION_RESUME")return _.n(Q,y.resumeVideoDownload(G),0);if(W.action!=="ACTION_REMOVE"){Q.jumpTo(0);break}return _.n(Q,zF9(y,G),13);case 13:return D=Q.yieldResult,y.previousDownloadStateForVideo[G]=(Y=D)!=null?Y:"DOWNLOAD_STATE_UNKNOWN",_.n(Q,sO6(y,G,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(y.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
y.previousDownloadStateForVideo[G]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){Q.jumpTo(15);break}return _.n(Q,y.pauseVideoDownload(G),15);case 15:S=_.bN("DELETED_VIDEO",void 0,"Video deleted from downloads.");cy=_.bN("UNDO_ACTION",void 0,"Undo");fa=_.bN("CLOSE",void 0,"Close");u={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.wK(S),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.wK(cy),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:G}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:S+" "+cy}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:G}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:fa}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};y.JSC$15948_commandHandler.resolveCommand(u);
Q.jumpTo(0);break;case 19:t=Q.yieldResult;t==="UNKNOWN_FORMAT_TYPE"&&(t="SD");b="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((r=W.actionParams)==null?0:r.formatType)t=W.actionParams.formatType,b=(F=W.actionParams)==null?void 0:F.settingsAction;return _.n(Q,mDZ(y,G,t,b,c),20);case 20:return Q.return();case 23:return l=Q.yieldResult,_.n(Q,bUD(y),24);case 24:return N=Q.yieldResult,_.n(Q,Xi9(y),25);case 25:P=Q.yieldResult,W.onAddCommand&&y.JSC$15948_commandHandler.resolveCommand(W.onAddCommand,
{form:{preferredFormatType:N,offlineWebClientEligibility:l,lastOfflineQualitySettingsSavedMs:P.toString()}}),Q.jumpTo(0)}})};
rJf=function(y,W){var c,Z,G,D,Y,u,t;return _.m(function(b){if(b.nextAddress==1)return _.n(b,y.JSC$15948_persistentStorePromiseAccessor(),2);c=b.yieldResult;if(!c)return _.Rs(new _.ul("PES is undefined")),b.return();if((Z=W)==null||!Z.settingItemId)return b.return();G=W;D=G.settingItemId;Y=G.boolValue;u=_.Gx(D,"settingEntity");t={key:u,settingOptionValue:{boolValue:Y}};return _.n(b,O2Q(c,t),0)})};
FAB=function(y,W){var c,Z,G,D,Y,u,t;return _.m(function(b){switch(b.nextAddress){case 1:return _.n(b,y.JSC$15948_prefStorage,2);case 2:return c=b.yieldResult,Z=_.Uc(),_.n(b,y.JSC$15948_persistentStorePromiseAccessor(),3);case 3:return G=b.yieldResult,c?G?_.n(b,c.get("sdois"),4):(_.Rs(new _.ul("PES is undefined")),b.return()):(_.Rs(new _.ul("prefStorage is undefined")),b.return());case 4:D=b.yieldResult;u=(Y=W)==null?void 0:Y.boolValue;u===void 0||_.O("kevlar_set_sd_enabled_flag_killswitch")||_.$A(0,
197,!0);D===void 0&&u===void 0&&(u=!1);if(u===void 0){b.jumpTo(0);break}return _.n(b,c.set("sdois",u),6);case 6:return _.O("kevlar_set_sd_enabled_flag_killswitch")||(_.$A(0,196,u),Z.save()),t={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:u},_.n(b,rJf(y,t),0)}})};
UDQ=function(y,W,c){var Z,G,D,Y,u;return _.m(function(t){switch(t.nextAddress){case 1:return _.n(t,upQ(y),2);case 2:return Z=t.yieldResult,_.n(t,FAB(y,c),3);case 3:return _.n(t,upQ(y),4);case 4:return G=t.yieldResult,D=G!==Z,_.n(t,tXD(y),5);case 5:Y=t.yieldResult&&!_.O("kevlar_modern_downloads_page");if((u=!G&&!Y)||D)return _.n(t,W.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);t.jumpTo(0)}})};
zG3=function(){var y=_.U().resolve(_.hO),W;_.m(function(c){switch(c.nextAddress){case 1:return _.n(c,y.JSC$15948_playerApiPromise,2);case 2:W=c.yieldResult;if(!_.O("kevlar_force_refresh_smart_downloads")){c.jumpTo(3);break}return _.n(c,W.refreshAllStaleEntities(0),4);case 4:return c.return();case 3:return _.n(c,W.refreshAllStaleEntities(),5);case 5:return _.n(c,UDQ(y,W),0)}})};
b$H=function(y,W){var c,Z;_.m(function(G){switch(G.nextAddress){case 1:return _.n(G,y.JSC$15948_playerApiPromise,2);case 2:c=G.yieldResult;switch((Z=W)==null?void 0:Z.settingItemId){case "SMART_DOWNLOADS_ENABLED":return G.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return G.jumpTo(4)}G.jumpTo(0);break;case 3:return _.n(G,UDQ(y,c,W),6);case 6:G.jumpTo(0);break;case 4:return _.n(G,rJf(y,W),7);case 7:G.jumpTo(0)}})};
$Dg=function(y,W){var c,Z,G;return _.m(function(D){if(D.nextAddress==1)return _.n(D,y.JSC$15948_persistentStorePromiseAccessor(),2);if(D.nextAddress!=3){c=D.yieldResult;if(!c)return _.Rs(new _.ul("PES is undefined")),D.return(!1);if(!W)return D.return(!1);Z=_.Gx(W,"mainVideoEntity");return _.n(D,gbD(c,Z,"mainVideoEntity"),3)}G=D.yieldResult;return D.return(G!==void 0)})};
FSQ=function(y){var W=_.U().resolve(_.hO),c,Z,G,D,Y,u,t,b,r,F,K;_.m(function(l){switch(l.nextAddress){case 1:return _.n(l,W.JSC$15948_playerApiPromise,2);case 2:c=l.yieldResult;G=(Z=y)==null?void 0:Z.actions;if(!G)return l.return();D=_.z(G);Y=D.next();case 3:if(Y.done){l.jumpTo(0);break}u=Y.value;b=t=void 0;if(!(((t=u)==null?0:t.entityKey)&&((b=u)==null?0:b.actionType))){l.jumpTo(4);break}r=_.W$(u.entityKey);F=r.entityId;K=r.entityType;return _.n(l,c.queueOfflineAction(F,K,u.actionType),4);case 4:Y=
D.next(),l.jumpTo(3)}})};
KAH=function(y,W){var c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return _.n(u,y.JSC$15948_prefStorage,2);if(u.nextAddress!=3)return(c=u.yieldResult)?_.n(u,c.get("psi"),3):u.return();Z=u.yieldResult;Y={isPaused:W,lastSyncTimestamp:(D=(G=Z)==null?void 0:G.lastSyncTimestamp)!=null?D:"0"};return _.n(u,c.set("psi",Y),0)})};
KSg=function(y){var W=_.U().resolve(_.hO),c,Z,G,D,Y,u,t,b;return _.m(function(r){switch(r.nextAddress){case 1:return _.n(r,W.JSC$15948_playerApiPromise,2);case 2:c=r.yieldResult;G=((Z=y)==null?void 0:Z.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((u=y)==null?void 0:u.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":D="!*$_ALL_ENTITIES_!*$";Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return r.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return r.jumpTo(4)}r.jumpTo(5);break;case 3:return _.n(r,KAH(W,G),6);case 6:r.jumpTo(5);break;case 4:return _.n(r,$Dg(W,(t=y)==null?void 0:t.videoId),7);case 7:r.yieldResult&&(D=(b=y)==null?void 0:b.videoId,Y="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");r.jumpTo(5);break;case 5:if(D&&Y)return _.n(r,c.queueOfflineAction(D,"videoPlaybackPositionEntity",Y),0);r.jumpTo(0)}})};
OUZ=function(y,W){var c;W!==1||((c=y.currentPersistentToast)==null?0:c.opened)?y.openToast():y.currentPersistentToast=void 0};
gjg=function(){var y,W,c,Z;return _.m(function(G){if(G.nextAddress==1)return y=navigator,(W=y.storage)!=null&&W.persisted?_.n(G,(c=y.storage)==null?void 0:c.persisted(),2):G.return("PERSISTED_STATE_NOT_SUPPORTED");Z=G.yieldResult;return G.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
RF6=function(){var y,W,c,Z;return _.m(function(G){if(G.nextAddress==1)return y=navigator,(W=y.storage)!=null&&W.persist?_.n(G,(c=y.storage)==null?void 0:c.persist(),2):G.return("PERSISTED_STATE_NOT_SUPPORTED");Z=G.yieldResult;return G.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
lYZ=function(){var y,W;return _.m(function(c){switch(c.nextAddress){case 1:return y="PERSISTED_STATE_NOT_SUPPORTED",_.tm(c,2),_.n(c,gjg(),4);case 4:y=c.yieldResult;if(y!=="PERSISTED_STATE_NOT_GRANTED"){c.jumpTo(5);break}return _.n(c,RF6(),6);case 6:y=c.yieldResult;case 5:_.J6(c,3);break;case 2:W=_.rs(c),W instanceof Error&&_.OP(W);case 3:return _.$g("persistentStorageStateChecked",{persistedState:y}),c.return(y)}})};
Ej3=function(y,W){var c=[],Z=!1;W=_.z(W);for(var G=W.next();!G.done;G=W.next()){G=y.moduleRegistry[G.value];var D=void 0,Y=void 0;((D=G)==null?0:D.isFetching)&&((Y=G)==null?0:Y.resolver)?(c.push(G.resolver.promise),Z=!0):(G=new _.WK,G.resolve(void 0),c.push(G.promise))}return Z?Promise.all(c):void 0};
N_Z=function(y,W,c){c=c===void 0?{}:c;var Z=y.defaultViewTransitionOptions,G=W.map(function(Y){return Y.beforeTransition}),D=W.map(function(Y){return Y.afterTransition});
return Object.assign({},Z,c,{beforeTransition:function(){var Y;(Y=Z.beforeTransition)==null||Y.call(Z);var u,t;(t=(u=c).beforeTransition)==null||t.call(u);Y=_.z(G);for(u=Y.next();!u.done;u=Y.next())u=u.value,u()},
afterTransition:function(){var Y;(Y=Z.afterTransition)==null||Y.call(Z);var u,t;(t=(u=c).afterTransition)==null||t.call(u);Y=_.z(D);for(u=Y.next();!u.done;u=Y.next())u=u.value,u()}})};
IY9=function(y,W,c){var Z,G,D,Y,u,t,b;_.m(function(r){if(y.config.disableAllTransitions)return r.return(W());if((Z=c)==null||!Z.transitionName)return r.return(_.SP6(W,(G=c)==null?void 0:G.viewTransitionOptions));D=c;Y=D.transitionName;u=D.viewTransitionOptions;t=y.config.transitionConfigs.get(Y);if(!t)return r.return(W());var F;b=(F=y.transitionTasksMap.get(Y))!=null?F:[];return r.return(_.SP6(W,N_Z(t,b,u)))})};
Wr=function(y,W,c){y.transitionTasksMap.has(W)?y.transitionTasksMap.get(W).push(c):(y=new _.ul("Transition task registered for unknown transition name",W),_.OP(y))};
pi3=function(y,W,c){if(y.isInitialized()){var Z=aj(c),G=Z==="watch";Z=Z==="shorts";var D=aj(W)==="watch";if(G)D||(y.backgroundPageData=W),y.watchPipMode&&D||y.deactivate(c.endpoint);else if(Z){if(aj(W)!=="shorts"){var Y;(Y=y.getPlayerElement())==null||Y.pause()}}else D&&!y.watchPipMode&&(FIg(W,c)?(y.watchWhileMode&&_.qWD(y,!1),_.anH(y,W)):y.isMiniplayerActive()&&y.watchWhileMode&&y.deactivate());D&&_.js3(y);y.shortsPipMode&&!Z&&(window.focus(),y.deactivate());if(Z&&y.shortsPipEnabled||G&&y.watchPipEnabled)_.kNw(y.handleMediaSessionPipActivation);
else if(!y.isMiniplayerActive()&&(y.shortsPipEnabled||y.watchPipEnabled)&&_.II()&&_.uhh("Chromium")>=120){y=_.q_F().mediaSession;try{y.setActionHandler("enterpictureinpicture",null)}catch(u){}}}};
Ppg=function(y,W){var c,Z;_.m(function(G){if(G.nextAddress==1){if(!y||!y.navigationEndpoint)return G.return();_.GR().lockupActivation=!0;var D;W?D=_.Lq(_.bN("QUEUE",void 0,"Queue")):D=y.longBylineText;Z=(c=D)&&y.title?{miniplayerTitle:y.title,miniplayerSubtitle:c,playlistData:null}:void 0;return _.n(G,_.mj8(_.U().resolve(_.Cy),y.navigationEndpoint,!0,Z),2)}_.GR().userActivation=!0;_.F2(G)})};
n6Z=function(y,W){var c,Z,G,D,Y,u;_.m(function(t){if(t.nextAddress==1){c=_.g(W,_.DJZ);if(!c||!c.listId)return t.return();y.index=c.index||y.index||0;Z=y.response&&y.response.playingVideoId||void 0;return _.n(t,_.tAV(y.JSC$10643_playlistNetworkManager,c.listId,y.index,Z),2)}G=t.yieldResult;if(!G)return t.return();D=G.playlistId;Y=G.playlistPanelRenderer;!y.queueProxy&&D&&Y&&D.startsWith("TLPQ")&&(y.queueProxy=new _.$P(y.JSC$10643_playlistNetworkManager,D,y.setPlaylistData.bind(y),y.clearQueue.bind(y),
_.tcH(Y),y.storage));if(c.openMiniplayer&&(u=_.nnH(Y))&&!y.pageManager.isOnWatch()){var b=u,r=c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";y.isMiniplayerActive()?y.openToast(b):Ppg(b,r)}y.setPlaylistData(D,Y,G.autoplayRenderer);_.F2(t)})};
sE3=function(y,W){var c=_.JI();c.index===void 0&&(c.index=0);c.temporaryItems.push.apply(c.temporaryItems,_.No(y));if((W.videoId||W.videoIds)&&c.index!==void 0&&W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!c.queueProxy){var Z=[];if(c.response){var G=_.U().resolve(_.Cy).isMiniplayerActive();if(c.response.playlistPanelRenderer&&c.response.playlistId&&!c.response.playlistId.startsWith("TLPQ")){if(c.pageManager.isOnWatch()||G)Z=_.tcH(c.response.playlistPanelRenderer)}else c.response.playingVideoId&&
!W.openMiniplayer?Z.push(c.response.playingVideoId):G&&c.response.playingVideoId&&W.openMiniplayer&&Z.push(c.response.playingVideoId)}c.queueProxy=new _.$P(c.JSC$10643_playlistNetworkManager,"",c.setPlaylistData.bind(c),c.clearQueue.bind(c),Z,c.storage);c.queueProxy.JSC$10589_setCurrentIndex(c.index)}c.queueProxy.addVideos(W.videoIds||[W.videoId],W)}lyQ(c,y);c.response&&_.Vk(c,_.CH(c,c.response.autoplayRenderer));c.pageManager.isOnWatch()?c.isMiniplayerActive()&&c.openToast(y[0]):(y=y[0],W=W.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",c.isMiniplayerActive()?c.openToast(y):Ppg(y,W))};
JJg=function(y){var W=_.zEO(y);if(W=="object"||W=="array"){if(typeof y.clone==="function")return y.clone();if(typeof Map!=="undefined"&&y instanceof Map)return new Map(y);if(typeof Set!=="undefined"&&y instanceof Set)return new Set(y);W=W=="array"?[]:{};for(var c in y)W[c]=JJg(y[c]);return W}return y};
VXQ=function(y,W){y=_.um(y,W,void 0,_.s2);y!=null&&(typeof y==="bigint"?y>=0&&(0,_.KQ)(y)?y=Number(y):(y=(0,_.YQ)(64,y),y=(0,_.KQ)(y)?Number(y):String(y)):y=_.iE(y)?typeof y==="number"?_.gWa(y):_.EWy(y):void 0);return y};
cr=function(y,W){return _.m3D(_.um(y,W,void 0,_.s2))};
ZI=function(y,W){return _.yd(_.um(y,W,void 0,_.s2))};
Gl=function(y,W){return _.um(y,W,void 0,_.s2,_.D3H)};
Cp6=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;_.jQ(W,c,_.Vb(y.decoder_,_.f0t));return!0},_.ff,_.Af);
QO9=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==0)return!1;_.bm(W,c,Z,_.Vb(y.decoder_,_.f0t));return!0},_.ff,_.Af);
AJ9=_.kQ(function(y,W,c){if(y.nextWireType_!==1)return!1;var Z=y.decoder_;y=_.Qb(Z);Z=_.Qb(Z);y=_.HJ(y,Z);_.jQ(W,c,y);return!0},_.bff,_.hqh);
hFd=_.kQ(function(y,W,c){if(y.nextWireType_!==5)return!1;_.jQ(W,c,_.Qb(y.decoder_));return!0},function(y,W,c){W=_.tVt(W);
W!=null&&(_.y7(y,c,5),_.WX(y.encoder_,W))},_.aH());
B_H=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;y=_.r1g(y.decoder_);_.jQ(W,c,y===!1?void 0:y);return!0},_.rnD,_.CIy);
HU9=_.kQ(function(y,W,c){if(y.nextWireType_!==2)return!1;y=_.g4w(y);_.jQ(W,c,y===""?void 0:y);return!0},_.U9E,_.QdE);
LA3=_.kQ(function(y,W,c){if(y.nextWireType_!==2)return!1;y=_.RqF(y);_.jQ(W,c,y===_.g2()?void 0:y);return!0},_.Kft,_.H_I);
vjB=_.D9D(function(y,W,c){if(y.nextWireType_!==0&&y.nextWireType_!==2)return!1;W=_.r9E(W,W[_.mQ]|0,c);y.nextWireType_==2?_.lpF(y,Wzf,W):W.push(_.Ci(y.decoder_));return!0},function(y,W,c){W=_.oXh(_.yd,W,!0);
if(W!=null&&W.length){c=_.J9O(y,c);for(var Z=0;Z<W.length;Z++)_.tQH(y.encoder_,W[Z]);_.VDt(y,c)}},_.Ldf);
dDf=_.kQ(function(y,W,c){if(y.nextWireType_!==0)return!1;y=_.Ci(y.decoder_);_.jQ(W,c,y===0?void 0:y);return!0},_.Ofa,_.Ldf);
SSZ=_.kQ(function(y,W,c,Z){if(y.nextWireType_!==0)return!1;_.bm(W,c,Z,_.Ci(y.decoder_));return!0},_.Ofa,_.Ldf);
_.Wp=function(y){this.privateDoNotAccessOrElseWrappedStyleSheet=y};
_.Wp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var T_H=function(y,W){var c=[];for(W=W||0;W<y.length;W+=2)_.F6m(y[W],y[W+1],c);return c.join("&")},aY9=function(y,W){var c=arguments.length==2?T_H(arguments[1],0):T_H(arguments,1);
return _.r9Q(y,c)},xD3=function(y){var W=_.X3Q(window.location.href),c=W[1],Z=[];
c&&c.split("&").forEach(function(G){var D=G.indexOf("=");D=D>=0?G.slice(0,D):G;y.hasOwnProperty(D)||Z.push(G)});
W[1]=_.bQ3(Z.join("&"),_.Gj(y));return W[0]+(W[1]?"?"+W[1]:"")+W[2]},K8B=function(y,W){return new _.If(y.x+W.x,y.y+W.y)},iUQ=function(y){return y.previousElementSibling!==void 0?y.previousElementSibling:_.uMJ(y.previousSibling,!1)},MX6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(MX6,_.eD);MX6.prototype.getValue=function(){var y=_.um(this,2);if(Array.isArray(y)||y instanceof _.eD)throw Error("aa");return _.XY(this,2)};
var eFD=function(){var y=_.kR();this.JSC$7776_streamzService=y;y.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.Wk("cookie_enabled"),_.Wk("cookie_3p_enabled"),_.Zd("browser"))};
eFD.prototype.increment=function(y,W,c){this.JSC$7776_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",y,W,c)};
var dvH=function(){var y=_.kR();this.JSC$7779_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Zd("channel_type"))};
dvH.prototype.increment=function(y){this.JSC$7779_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",y)};
var SdS=function(){var y=_.kR();this.JSC$7782_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Zd("channel_type"))};
SdS.prototype.increment=function(y){this.JSC$7782_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",y)};
var av3=function(){var y=_.kR();this.JSC$7785_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Zd("channel_type"))};
av3.prototype.increment=function(y){this.JSC$7785_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",y)};
var Tef=function(){var y=_.kR();this.JSC$7788_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Tef.prototype.increment=function(){this.JSC$7788_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var xvD=function(){var y=_.kR();this.JSC$7791_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Zd("channel_type"),_.Zd("error_type"))};
xvD.prototype.increment=function(y,W){this.JSC$7791_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",y,W)};
var is3=function(){var y=_.kR();this.JSC$7794_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
is3.prototype.increment=function(){this.JSC$7794_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var MsH=function(){var y=_.kR();this.JSC$7797_streamzService=y;y.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
MsH.prototype.increment=function(){this.JSC$7797_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var vpd=function(){var y=_.kR();this.JSC$7803_streamzService=y;y.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
vpd.prototype.increment=function(){this.JSC$7803_streamzService.JSC$7652_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var wiQ=function(y){return y.getCount&&typeof y.getCount=="function"?y.getCount():_.TO(y)||typeof y==="string"?y.length:_.Eb.getCount(y)},qSB=function(y,W){if(typeof y.every=="function")return y.every(W,void 0);
if(_.TO(y)||typeof y==="string")return Array.prototype.every.call(y,W,void 0);for(var c=_.RTm(y),Z=_.Sw(y),G=Z.length,D=0;D<G;D++)if(!W.call(void 0,Z[D],c&&c[D],y))return!1;return!0},kAS=function(y,W,c,Z){var G=new _.Tr(null);
y&&_.TF(G,y);W&&_.a4(G,W);c&&_.xp(G,c);Z&&_.iU(G,Z);return G},jXH=function(){var y=_.ll&&TB(_.BX8,10)>=0,W;
if(W=_.PVD)W=TB(_.h$Q,10)>=0;var c=_.z$&&TB(_.BX8,85)>=0;return _.fi||y||W||c},ye9=function(y){var W=_.BfW(y);
return W&&jXH()?-y.scrollLeft:W&&_.V4(y,"overflowX")!="visible"?y.scrollWidth-y.clientWidth-y.scrollLeft:y.scrollLeft},WxZ=function(y,W){W=Math.max(W,0);
_.BfW(y)?jXH()?y.scrollLeft=-W:y.scrollLeft=y.scrollWidth-W-y.clientWidth:y.scrollLeft=W},CsH=0,HN3=!1;
i4.prototype.set=function(y){this.relativeTimeStart_=y};
i4.prototype.reset=function(){this.set(_.k3())};
i4.prototype.get=function(){return this.relativeTimeStart_};
var cef=null,ZG3=function(){cef||(cef=new i4)},GCQ=function(){cef||(cef=new i4)};
_.j6(GCQ,ZG3);_.f=v0g.prototype;_.f.JSC$9110_buffer_="";_.f.set=function(y){this.JSC$9110_buffer_=""+y};
_.f.append=function(y,W,c){this.JSC$9110_buffer_+=String(y);if(W!=null)for(var Z=1;Z<arguments.length;Z++)this.JSC$9110_buffer_+=arguments[Z];return this};
_.f.clear=function(){this.JSC$9110_buffer_=""};
_.f.getLength=function(){return this.JSC$9110_buffer_.length};
_.f.toString=function(){return this.JSC$9110_buffer_};
var fNQ=function(){var y={type:"unit",style:"narrow"};this.listType_=y&&y.type?y.type:"conjunction";this.listStyle_=y&&y.style?y.style:"long";this.listSymbols_=z_Q;y=0;switch(this.listStyle_){case "short":y=1;break;case "narrow":y=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[y];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[y];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[y];this.listEndPattern_=
this.listSymbols_.AND_END[y];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[y];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[y];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[y];this.listEndPattern_=this.listSymbols_.OR_END[y];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[y],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[y],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[y],this.listEndPattern_=this.listSymbols_.UNIT_END[y]}};
fNQ.prototype.format=function(y){return oKH(this,y)};
var oKH=function(y,W){var c=W.length;switch(c){case 0:return"";case 1:return String(W[0]);case 2:return y.listTwoPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1]))}for(var Z=y.listStartPattern_.replace("{0}",String(W[0])).replace("{1}",String(W[1])),G=2;G<c-1;++G)Z=y.listMiddlePattern_.replace("{0}",Z).replace("{1}",String(W[G]));return y.listEndPattern_.replace("{0}",Z).replace("{1}",String(W[c-1]))},Zxd=function(){var y={style:1};
this.style_=(y==null?void 0:y.style)||0;this.durationSymbols_=_.dlJ||_.s9V},Dh9=function(y,W){switch(W){default:case "years":return y.durationSymbols_.YEAR;
case "months":return y.durationSymbols_.MONTH;case "weeks":return y.durationSymbols_.WEEK;case "days":return y.durationSymbols_.DAY;case "hours":return y.durationSymbols_.HOUR;case "minutes":return y.durationSymbols_.MINUTE;case "seconds":return y.durationSymbols_.SECOND}},fE=function(y,W,c){a:{c=Dh9(y,c);
switch(y.style_){case 1:if(c.LONG!=void 0){y=c.LONG;break a}case 2:if(c.NARROW!=void 0){y=c.NARROW;break a}default:y=c.SHORT;break a}y=void 0}return y?(new _.CsV("{DURATION_VALUE,plural,"+y+"}")).format({DURATION_VALUE:W}):""};
Zxd.prototype.format=function(y){var W=[],c=y.years,Z=y.months,G=y.weeks,D=y.days,Y=y.hours,u=y.minutes;y=y.seconds;c!=null&&W.push(fE(this,c,"years"));Z!=null&&W.push(fE(this,Z,"months"));G!=null&&W.push(fE(this,G,"weeks"));D!=null&&W.push(fE(this,D,"days"));Y!=null&&W.push(fE(this,Y,"hours"));u!=null&&W.push(fE(this,u,"minutes"));y!=null&&W.push(fE(this,y,"seconds"));return(new fNQ).format(W)};
var zgQ=!1,MlZ=function(y){_.yw.call(this,y.message||y.description||y.name);this.isMissing=y instanceof MG;this.isTimeout=y instanceof _.Qn&&y.errorCode=="net.timeout";this.isCanceled=y instanceof _.AG};
_.R(MlZ,_.yw);MlZ.prototype.name="BiscottiError";var MG=function(){_.yw.call(this,"Biscotti ID is missing from server")};
_.R(MG,_.yw);MG.prototype.name="BiscottiMissingError";var e$=null,cfH=function(){try{var y=_.JW("yt.ads.biscotti.getId_");return y?y():E0Z()}catch(W){return _.hG(W)}},c7S,YM9=function(y){return _.jv({type:"SET_GUIDE_IS_EXPANDED",
payload:y})},mhB=function(y){return _.jv({type:"SET_ONLINE_STATUS",
payload:y})},sXB=function(y,W){return _.jv({type:"SET_TRANSCRIPTION_STATE",
payload:{high:y,low:W}})},uz9=function(y){return _.jv({type:"SET_OVERLAY_STATE",
payload:y})},t06=0,nKH=function(y,W,c){var Z=this;
this.priority=W;this.delay=c;this.jobId=0;this.completionCallback=_.me;this.wrappedJob=function(){y();Z.completionCallback()};
this.id=++t06};
nKH.prototype.enqueue=function(y){this.completionCallback=y;this.jobId=_.KX.addJob(this.wrappedJob,this.priority,this.delay)};
var ob=function(){_.xb.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.R(ob,_.xb);ob.prototype.addJob=function(y,W,c){y=new nKH(y,W,c);this.taskIdToTask.set(y.id,y);this.isActive?XsH(this,y):this.suspendedTasks.add(y);return y.id};
var XsH=function(y,W){y.scheduledTasks.add(W);W.enqueue(function(){y.scheduledTasks.delete(W)})};
ob.prototype.cancelJob=function(y){(y=this.taskIdToTask.get(y))&&(this.scheduledTasks.delete(y)?_.KX.cancelJob(y.jobId):this.suspendedTasks.delete(y))};
ob.prototype.pause=function(){var y=this;this.isActive=!1;this.scheduledTasks.forEach(function(W){_.KX.cancelJob(W.jobId);y.suspendedTasks.add(W)});
this.scheduledTasks.clear()};
ob.prototype.start=function(){var y=this;this.isActive=!0;this.suspendedTasks.forEach(function(W){XsH(y,W)});
this.suspendedTasks.clear()};
ob.prototype.reset=function(){this.scheduledTasks.forEach(function(y){_.KX.cancelJob(y.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var DI=function(y,W){this.JSC$10770_networkService_=y;this.pageRequestPromise=W};
DI.prototype.fetchData=function(y){bGH(this,this.JSC$10770_networkService_.fetchData(y))};
DI.prototype.postData=function(y,W){bGH(this,this.JSC$10770_networkService_.postData(y,W))};
DI.prototype.requestDataForServiceEndpoint=function(y,W){bGH(this,this.JSC$10770_networkService_.requestDataForServiceEndpoint(y,W))};
var bGH=function(y,W){W.then(y.pageRequestPromise.onSuccess,y.pageRequestPromise.onFailure,y.pageRequestPromise)};
DI.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var zl=function(y){this.buildNetworkRequest_=y;this.pendingRequests_=new Set};
zl.prototype.reset=function(){this.pendingRequests_.forEach(function(y){y.cancel()});
this.pendingRequests_.clear()};
zl.prototype.fetchData=function(y){var W=re6(this);W.fetchData(y);return W.pageRequestPromise};
zl.prototype.postData=function(y,W){var c=re6(this);c.postData(y,W);return c.pageRequestPromise};
zl.prototype.requestDataForServiceEndpoint=function(y,W){var c=re6(this);c.requestDataForServiceEndpoint(y,W);return c.pageRequestPromise};
var re6=function(y){var W=y.buildNetworkRequest_();y.pendingRequests_.add(W);var c=function(){y.pendingRequests_.delete(W)};
W.pageRequestPromise.then(c,c);return W},Fxg=function(y){var W=new ob;
this.JSC$10777_networkService_=y;this.JSC$10777_taskManager_=W;this.JSC$10777_networkManager_=new zl(this.networkRequestFactory_.bind(this))};
_.f=Fxg.prototype;_.f.networkRequestFactory_=function(){return new DI(this.JSC$10777_networkService_,new _.iA(this.JSC$10777_taskManager_))};
_.f.reset=function(){this.JSC$10777_taskManager_.reset();this.JSC$10777_networkManager_.reset()};
_.f.start=function(){this.JSC$10777_taskManager_.start()};
_.f.pause=function(){this.JSC$10777_taskManager_.pause()};
_.f.getTaskManager=function(){return this.JSC$10777_taskManager_};
_.f.getNetworkManager=function(){return this.JSC$10777_networkManager_};
var zUZ=null,sLf=[],qG=0,jK=0,kG=null,Uhd=function(){var y=(0,_.fRW)();y&&mJf(y,y.mechanism.__iterator__(!0))},We=function(y){this.token=y};
We.getInstance=function(){var y;return _.m(function(W){if(W.nextAddress==1)return _.n(W,_.dr(),2);y=W.yieldResult;if(!y)return W.return();We.instance||(We.instance=new We(y));return W.return(We.instance)})};
var r7Z=function(y){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,nxH(y.token),2);W=c.yieldResult;return c.return(W.clear("resource-manifest-assets"))})},yS=function(y){this.token=y};
yS.getInstance=function(){var y;return _.m(function(W){if(W.nextAddress==1)return _.n(W,_.dr(),2);y=W.yieldResult;if(!y)return W.return();yS.instance||(yS.instance=new yS(y));return W.return(yS.instance)})};
var XFQ=function(y){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,nxH(y.token),2);W=c.yieldResult;return _.n(c,W.clear("auth"),0)})},$hZ=!1,ce=null,Pv6=void 0,L$Q=!1,KxD=function(y){_.yw.call(this,y)};
_.R(KxD,_.LoQ);var Vo6=function(){var y=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return y?parseInt(y[1],10):0},OG9=function(y){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+y)!=-1||document.currentScript.src.indexOf("&"+y)!=-1)},gKQ=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Blg=function(y){y.length?RgD(y.shift(),function(){Blg(y)}):QTZ()},LHS=function(y){return"chrome-extension://"+y+"/cast_sender.js"},RgD=function(y,
W,c){var Z=document.createElement("script");
Z.onerror=W;c&&(Z.onload=c);_.eQ(Z,_.OR(y));(document.head||document.documentElement).appendChild(Z)},lN9=function(){var y=Vo6(),W=[];
if(y>1){var c=y-1;W.push("//www.gstatic.com/eureka/clank/"+y+"/cast_sender.js");W.push("//www.gstatic.com/eureka/clank/"+c+"/cast_sender.js")}return W},QTZ=function(){var y=gKQ();
y&&y(!1,"No cast extension found")},hVH=function(){if(EKH){var y=2,W=gKQ(),c=function(){y--;
y==0&&W&&W(!0)};
window.__onGCastApiAvailable=c;RgD("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",QTZ,c)}},CTB=function(){hVH();
var y=lN9();y.push("//www.gstatic.com/eureka/clank/cast_sender.js");Blg(y)},AdD=function(){hVH();
var y=lN9();y.push.apply(y,_.No(HyD.map(LHS)));y.push("//www.gstatic.com/eureka/clank/cast_sender.js");Blg(y)},EKH=OG9("loadCastFramework")||OG9("loadCastApplicationFramework"),HyD=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var NHH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(NHH,_.eD);var IN6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(IN6,_.eD);var psS=function(){var y=new IN6;return _.PN(y,1,3)};var Y9=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Y9,_.eD);var Ni6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Ni6,_.eD);var P_9=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(P_9,_.eD);P_9.prototype.getToken=function(){return _.RE(this,1)};
P_9.prototype.setToken=function(y){return _.a0(this,1,y)};
var lxd=function(y){return _.Qd(y,3,_.t9,_.ky())},EYg=function(y){return _.Qd(y,6,_.t9,_.ky())};var mj=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(mj,_.eD);mj.prototype.getToken=function(){return _.il(this,P_9,2)};
mj.prototype.setToken=function(y){return _.uF(this,2,y)};
mj.prototype.getName=function(){return _.RE(this,6)};
var Jeg=_.ze(mj);var V0D=function(y,W,c){this.requestMessage=y;this.methodDescriptor=W;this.metadata=c};
V0D.prototype.getMetadata=function(){return this.metadata};var C_g=function(y,W){W=W===void 0?{}:W;this.responseMessage=y;this.metadata=W;this.status=null};
C_g.prototype.getMetadata=function(){return this.metadata};
C_g.prototype.getStatus=function(){return this.status};var sY=function(y,W,c,Z,G){this.name=y;this.methodType="unary";this.requestType=W;this.responseType=c;this.requestSerializeFn=Z;this.responseDeserializeFn=G},QX6=function(y,W,c){c=c===void 0?{}:c;
return new V0D(W,y,c)};
sY.prototype.getName=function(){return this.name};var u8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(u8,_.eD);u8.prototype.setHeader=function(y){return _.uF(this,1,y)};
u8.prototype.hasHeader=function(){return _.tf(this,Y9,1)};var AeQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(AeQ,_.eD);var hg6=new sY("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",u8,AeQ,function(y){return y.serialize()},_.ze(AeQ));var tF=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(tF,_.eD);tF.prototype.setHeader=function(y){return _.uF(this,1,y)};
tF.prototype.hasHeader=function(){return _.tf(this,Y9,1)};var BHZ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(BHZ,_.eD);var HGQ=new sY("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",tF,BHZ,function(y){return y.serialize()},_.ze(BHZ));var nE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(nE,_.eD);nE.prototype.setHeader=function(y){return _.uF(this,1,y)};
nE.prototype.hasHeader=function(){return _.tf(this,Y9,1)};var LxH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(LxH,_.eD);LxH.prototype.getLink=function(){return _.il(this,mj,1)};var vKf=new sY("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",nE,LxH,function(y){return y.serialize()},_.ze(LxH));var Xg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Xg,_.eD);Xg.prototype.setHeader=function(y){return _.uF(this,1,y)};
Xg.prototype.hasHeader=function(){return _.tf(this,Y9,1)};var dh3=new sY("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Xg,mj,function(y){return y.serialize()},Jeg);var SM6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(SM6,_.eD);var THg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(THg,_.eD);THg.prototype.getUrl=function(){return _.RE(this,2)};
THg.prototype.setUrl=function(y){return _.a0(this,2,y)};var aN3=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(aN3,_.eD);var xhf=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(xhf,_.eD);var iGd=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(iGd,_.eD);var Hp9=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Hp9,_.eD);var BiS=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(BiS,_.eD);var M0g=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(M0g,_.eD);var x8d=_.ze(M0g);var egg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(egg,_.eD);var b8=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(b8,_.eD);b8.prototype.setHeader=function(y){return _.uF(this,1,y)};
b8.prototype.hasHeader=function(){return _.tf(this,Y9,1)};
b8.prototype.getCompletionUrl=function(){return _.RE(this,6)};
b8.prototype.getDeviceId=function(){return _.RE(this,11)};var ws9=new sY("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",b8,M0g,function(y){return y.serialize()},x8d);var qM6=new Set(["SAPISIDHASH","APISIDHASH"]);var kC9=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(kC9,_.eD);kC9.prototype.getMessage=function(){return _.RE(this,2)};
var jYg=_.ze(kC9);var r6=function(y,W){this.xhrNodeReadableStream_=y.nodeReadableStream;this.grpcResponseDeserializeFn_=W;this.JSC$16858_xhr_=y.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16858_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ykS(this)},oH3=function(y,W){var c=new WXZ;
_.Y0(y.JSC$16858_xhr_,"complete",function(){if(y.JSC$16858_xhr_.isSuccess()){var Z=y.JSC$16858_xhr_.getResponseText();var G;if(G=W)G=y.JSC$16858_xhr_,G.JSC$7661_xhr_&&G.isComplete()?(G=G.JSC$7661_xhr_.getResponseHeader("Content-Type"),G=G===null?void 0:G):G=void 0,G=G==="text/plain";if(G){if(!atob)throw Error("Jj");Z=atob(Z)}try{var D=y.grpcResponseDeserializeFn_(Z)}catch(u){Fg(y,u5Q(new _.F1(13,"Error when deserializing response data; error: "+u+(", response: "+Z)),c));return}Z=_.HjH(y.JSC$16858_xhr_.getStatus());
ckd(y,Z7D(y));Z==0?GkH(y,D):Fg(y,u5Q(new _.F1(Z,"Xhr succeeded but the status code is not 200"),c))}else{Z=y.JSC$16858_xhr_.getResponseText();D=Z7D(y);if(Z){var Y=fTQ(y,Z);Z=Y.code;G=Y.details;Y=Y.metadata}else Z=2,G="Rpc failed due to xhr error. uri: "+String(y.JSC$16858_xhr_.JSC$7661_lastUri_)+", error code: "+y.JSC$16858_xhr_.JSC$7661_lastErrorCode_+", error: "+y.JSC$16858_xhr_.getLastError(),Y=D;ckd(y,D);Fg(y,u5Q(new _.F1(Z,G,Y),c))}})},ykS=function(y){y.xhrNodeReadableStream_.on("data",function(W){if("1"in
W){var c=W["1"];
try{var Z=y.grpcResponseDeserializeFn_(c)}catch(G){Fg(y,new _.F1(13,"Error when deserializing response data; error: "+G+(", response: "+c)))}Z&&GkH(y,Z)}if("2"in W)for(W=fTQ(y,W["2"]),c=0;c<y.onStatusCallbacks_.length;c++)y.onStatusCallbacks_[c](W)});
y.xhrNodeReadableStream_.on("end",function(){ckd(y,Z7D(y));for(var W=0;W<y.onEndCallbacks_.length;W++)y.onEndCallbacks_[W]()});
y.xhrNodeReadableStream_.on("error",function(){if(y.JSC$16858_onErrorCallbacks_.length!=0){var W=y.JSC$16858_xhr_.JSC$7661_lastErrorCode_;W!==0||y.JSC$16858_xhr_.isSuccess()||(W=6);var c=-1;switch(W){case 0:var Z=2;break;case 7:Z=10;break;case 8:Z=4;break;case 6:c=y.JSC$16858_xhr_.getStatus();Z=_.HjH(c);break;default:Z=14}ckd(y,Z7D(y));W=_.GY0(W)+", error: "+y.JSC$16858_xhr_.getLastError();c!=-1&&(W+=", http status code: "+c);Fg(y,new _.F1(Z,W))}})},Z7D=function(y){var W={},c=ob9(y.JSC$16858_xhr_);
Object.keys(c).forEach(function(Z){W[Z]=c[Z]});
return W},fTQ=function(y,W){var c=2,Z={};
try{var G=jYg(W);c=_.jZ(G,1);var D=G.getMessage();_.wQ(G,MX6,3,_.ky()).length&&(Z["grpc-web-status-details-bin"]=W)}catch(Y){y.JSC$16858_xhr_&&y.JSC$16858_xhr_.getStatus()===404?(c=5,D="Not Found: "+String(y.JSC$16858_xhr_.JSC$7661_lastUri_)):(c=14,D="Unable to parse RpcStatus: "+Y)}return{code:c,details:D,metadata:Z}};
r6.prototype.on=function(y,W){y=="data"?this.onDataCallbacks_.push(W):y=="metadata"?this.onMetadataCallbacks_.push(W):y=="status"?this.onStatusCallbacks_.push(W):y=="end"?this.onEndCallbacks_.push(W):y=="error"&&this.JSC$16858_onErrorCallbacks_.push(W);return this};
var UY=function(y,W){W=y.indexOf(W);W>-1&&y.splice(W,1)};
r6.prototype.removeListener=function(y,W){y=="data"?UY(this.onDataCallbacks_,W):y=="metadata"?UY(this.onMetadataCallbacks_,W):y=="status"?UY(this.onStatusCallbacks_,W):y=="end"?UY(this.onEndCallbacks_,W):y=="error"&&UY(this.JSC$16858_onErrorCallbacks_,W);return this};
r6.prototype.cancel=function(){this.JSC$16858_xhr_.abort()};
var GkH=function(y,W){for(var c=0;c<y.onDataCallbacks_.length;c++)y.onDataCallbacks_[c](W)},ckd=function(y,W){for(var c=0;c<y.onMetadataCallbacks_.length;c++)y.onMetadataCallbacks_[c](W)},Fg=function(y,W){for(var c=0;c<y.JSC$16858_onErrorCallbacks_.length;c++)y.JSC$16858_onErrorCallbacks_[c](W)};
r6.prototype.cancel=r6.prototype.cancel;r6.prototype.removeListener=r6.prototype.removeListener;r6.prototype.on=r6.prototype.on;var WXZ=function(){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.R(WXZ,Error);var $9=function(y){this.JSC$16867_worker_=y.worker||null;this.JSC$16867_streamBinaryChunks_=y.streamBinaryChunks||!1;this.JSC$16867_credentialsMode_=void 0};
_.j6($9,_.vNa);$9.prototype.createInstance=function(){var y=new KE(this.JSC$16867_worker_,this.JSC$16867_streamBinaryChunks_);this.JSC$16867_credentialsMode_&&y.setCredentialsMode(this.JSC$16867_credentialsMode_);return y};
$9.prototype.setCredentialsMode=function(y){this.JSC$16867_credentialsMode_=y};
var KE=function(y,W){_.uU.call(this);this.JSC$16871_worker_=y;this.JSC$16871_streamBinaryChunks_=W;this.JSC$16871_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$16871_responseHeaders_=null;this.JSC$16871_method_="GET";this.JSC$16871_url_="";this.inProgress_=!1;this.JSC$16871_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.j6(KE,_.uU);KE.prototype.open=function(y,W){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16871_method_=y;this.JSC$16871_url_=W;this.readyState=1;OY(this)};
KE.prototype.send=function(y){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var W={headers:this.requestHeaders_,method:this.JSC$16871_method_,credentials:this.JSC$16871_credentialsMode_,cache:void 0};y&&(W.body=y);(this.JSC$16871_worker_||_.DH).fetch(new Request(this.JSC$16871_url_,W)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
KE.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,g6(this));this.readyState=0};
KE.prototype.handleResponse_=function(y){if(this.inProgress_&&(this.fetchResponse_=y,this.JSC$16871_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16871_responseHeaders_=y.headers,this.readyState=2,OY(this)),this.inProgress_&&(this.readyState=3,OY(this),this.inProgress_)))if(this.responseType==="arraybuffer")y.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.DH.ReadableStream!==
"undefined"&&"body"in y){this.currentReader_=y.body.getReader();if(this.JSC$16871_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16871_textDecoder_=new TextDecoder;DE9(this)}else y.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var DE9=function(y){y.currentReader_.read().then(y.handleDataFromStream_.bind(y)).catch(y.handleSendFailure_.bind(y))};
KE.prototype.handleDataFromStream_=function(y){if(this.inProgress_){if(this.JSC$16871_streamBinaryChunks_&&y.value)this.response.push(y.value);else if(!this.JSC$16871_streamBinaryChunks_){var W=y.value?y.value:new Uint8Array(0);if(W=this.JSC$16871_textDecoder_.decode(W,{stream:!y.done}))this.response=this.responseText+=W}y.done?g6(this):OY(this);this.readyState==3&&DE9(this)}};
KE.prototype.handleResponseText_=function(y){this.inProgress_&&(this.response=this.responseText=y,g6(this))};
KE.prototype.handleResponseArrayBuffer_=function(y){this.inProgress_&&(this.response=y,g6(this))};
KE.prototype.handleSendFailure_=function(){this.inProgress_&&g6(this)};
var g6=function(y){y.readyState=4;y.fetchResponse_=null;y.currentReader_=null;y.JSC$16871_textDecoder_=null;OY(y)};
KE.prototype.setRequestHeader=function(y,W){this.requestHeaders_.append(y,W)};
KE.prototype.getResponseHeader=function(y){return this.JSC$16871_responseHeaders_?this.JSC$16871_responseHeaders_.get(y.toLowerCase())||"":""};
KE.prototype.getAllResponseHeaders=function(){if(!this.JSC$16871_responseHeaders_)return"";for(var y=[],W=this.JSC$16871_responseHeaders_.entries(),c=W.next();!c.done;)c=c.value,y.push(c[0]+": "+c[1]),c=W.next();return y.join("\r\n")};
KE.prototype.setCredentialsMode=function(y){this.JSC$16871_credentialsMode_=y};
var OY=function(y){y.onreadystatechange&&y.onreadystatechange.call(y)};
Object.defineProperty(KE.prototype,"withCredentials",{get:function(){return this.JSC$16871_credentialsMode_==="include"},
set:function(y){this.setCredentialsMode(y?"include":"same-origin")}});var z8Q=function(y){var W="";_.Eb.forEach(y,function(c,Z){W+=Z;W+=":";W+=c;W+="\r\n"});
return W},YuZ=function(y,W,c){if(_.Eb.isEmpty(c))return y;
c=z8Q(c);if(typeof y==="string")return _.tP(y,_.Cj(W),c);_.Hk(y,W,c);return y};var mEB=function(){this.isInputValid_=!0;this.JSC$16877_streamPos_=0;this.leftoverInput_=""};
mEB.prototype.isInputValid=function(){return this.isInputValid_};var fY=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16880_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
fY.prototype.isInputValid=function(){return this.state_!=3};
var Rb=function(y,W,c,Z){y.state_=3;y.errorMessage_="The stream is broken @"+y.JSC$16880_streamPos_+"/"+c+". Error: "+Z+". With input:\n"+W;throw Error(y.errorMessage_);};
fY.prototype.acceptsBinaryInput=function(){return!0};
fY.prototype.parse=function(y){function W(t){t&128&&Rb(D,Y,u,"invalid tag");(t&7)!=2&&Rb(D,Y,u,"invalid wire type");D.tag_=t>>>3;D.tag_!=1&&D.tag_!=2&&D.tag_!=15&&Rb(D,Y,u,"unexpected tag");D.state_=1;D.length_=0;D.countLengthBytes_=0}
function c(t){D.countLengthBytes_++;D.countLengthBytes_==5&&t&240&&Rb(D,Y,u,"message length too long");D.length_|=(t&127)<<(D.countLengthBytes_-1)*7;t&128||(D.state_=2,D.countMessageBytes_=0,typeof Uint8Array!=="undefined"?D.messageBuffer_=new Uint8Array(D.length_):D.messageBuffer_=Array(D.length_),D.length_==0&&G())}
function Z(t){D.messageBuffer_[D.countMessageBytes_++]=t;D.countMessageBytes_==D.length_&&G()}
function G(){if(D.tag_<15){var t={};t[D.tag_]=D.messageBuffer_;D.result_.push(t)}D.state_=0}
for(var D=this,Y=y instanceof Array?y:new Uint8Array(y),u=0;u<Y.length;){switch(D.state_){case 3:Rb(D,Y,u,"stream already broken");break;case 0:W(Y[u]);break;case 1:c(Y[u]);break;case 2:Z(Y[u]);break;default:throw Error("Oj`"+D.state_);}D.JSC$16880_streamPos_++;u++}y=D.result_;D.result_=[];return y.length>0?y:null};var nYH=function(){this.errorMessage_=null;this.JSC$16883_streamPos_=0;this.base64Decoder_=new mEB;this.pbParser_=new fY};
nYH.prototype.isInputValid=function(){return this.errorMessage_===null};
var sYD=function(y,W,c){y.errorMessage_="The stream is broken @"+y.JSC$16883_streamPos_+". Error: "+c+". With input:\n"+W;throw Error(y.errorMessage_);};
nYH.prototype.acceptsBinaryInput=function(){return!1};
nYH.prototype.parse=function(y){this.errorMessage_!==null&&sYD(this,y,"stream already broken");var W=null;try{var c=this.base64Decoder_;if(!c.isInputValid_)throw c.isInputValid_=!1,Error("Nj`"+c.JSC$16877_streamPos_+"`stream already broken`"+y);c.leftoverInput_+=y;var Z=Math.floor(c.leftoverInput_.length/4);if(Z==0)var G=null;else{try{var D=_.KGa(c.leftoverInput_.slice(0,Z*4))}catch(t){var Y=c.leftoverInput_,u=t.message;c.isInputValid_=!1;throw Error("Nj`"+c.JSC$16877_streamPos_+"`"+u+"`"+Y);}c.JSC$16877_streamPos_+=
Z*4;c.leftoverInput_=c.leftoverInput_.slice(Z*4);G=D}W=G===null?null:this.pbParser_.parse(G)}catch(t){sYD(this,y,t.message)}this.JSC$16883_streamPos_+=y.length;return W};var t8Z=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16886_streamPos_=0;this.result_=[];this.statusParsed_=!1};
t8Z.prototype.isInputValid=function(){return this.errorMessage_===null};
t8Z.prototype.acceptsBinaryInput=function(){return!1};
t8Z.prototype.parse=function(y){function W(t){D.state_=6;D.errorMessage_="The stream is broken @"+D.JSC$16886_streamPos_+"/"+Y+". Error: "+t+". With input:\n";throw Error(D.errorMessage_);}
function c(){D.jsonStreamParser_=new _.wH({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Z(t){if(t)for(var b=0;b<t.length;b++){var r={};r[1]=t[b];D.result_.push(r)}}
function G(t){if(t){(D.statusParsed_||t.length>1)&&W("extra status: "+t);D.statusParsed_=!0;var b={};b[2]=t[0];D.result_.push(b)}}
for(var D=this,Y=0;Y<y.length;){var u;if(u=D.state_!==2){a:{for(;Y<y.length;){if(!_.e0(y[Y])){u=!0;break a}Y++;D.JSC$16886_streamPos_++}u=!1}u=!u}if(u)return null;switch(D.state_){case 6:W("stream already broken");break;case 0:y[Y]==="["?(D.state_=1,Y++,D.JSC$16886_streamPos_++):W("unexpected input token");break;case 1:y[Y]==="["?(D.state_=2,c()):y[Y]===","||y.slice(Y,Y+5)=="null,"?D.state_=3:y[Y]==="]"?(D.state_=5,Y++,D.JSC$16886_streamPos_++):W("unexpected input token");break;case 2:u=D.jsonStreamParser_.parse(y.substring(Y));
Z(u);D.jsonStreamParser_.done()?(D.state_=3,u=D.jsonStreamParser_.JSC$9237_buffer_,D.JSC$16886_streamPos_+=y.length-Y-u.length,y=u,Y=0):(D.JSC$16886_streamPos_+=y.length-Y,Y=y.length);break;case 3:y[Y]===","||y.slice(Y,Y+5)=="null,"?(D.state_=4,c(),D.jsonStreamParser_.parse("["),Y+=y[Y]===","?1:5,D.JSC$16886_streamPos_++):y[Y]==="]"&&(D.state_=5,Y++,D.JSC$16886_streamPos_++);break;case 4:u=D.jsonStreamParser_.parse(y.substring(Y));G(u);D.jsonStreamParser_.done()?(D.state_=5,u=D.jsonStreamParser_.JSC$9237_buffer_,
D.JSC$16886_streamPos_+=y.length-Y-u.length,y=u,Y=0):(D.JSC$16886_streamPos_+=y.length-Y,Y=y.length);break;case 5:W("extra input after stream end")}}return D.result_.length>0?(y=D.result_,D.result_=[],y):null};var uB9=function(y){this.JSC$16889_xhr_=y;this.JSC$16889_parser_=null;this.status_=this.JSC$16889_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16889_textDecoder_=null;this.JSC$16889_eventHandler_=new _.q4(this);this.JSC$16889_eventHandler_.listen(this.JSC$16889_xhr_,"readystatechange",this.JSC$16891_readyStateChangeHandler_)},l8=function(y,W){y.status_!=W&&(y.status_=W,y.statusHandler_&&y.statusHandler_())},EY=function(y){y.JSC$16889_eventHandler_.removeAll();
if(y.JSC$16889_xhr_){var W=y.JSC$16889_xhr_;y.JSC$16889_xhr_=null;W.abort();W.dispose()}};
uB9.prototype.getStatus=function(){return this.status_};
uB9.prototype.JSC$16891_readyStateChangeHandler_=function(y){y=y.target;try{if(y==this.JSC$16889_xhr_)a:{var W=_.K$(this.JSC$16889_xhr_),c=this.JSC$16889_xhr_.JSC$7661_lastErrorCode_,Z=this.JSC$16889_xhr_.getStatus(),G=this.JSC$16889_xhr_.getResponseText();y=[];if(this.JSC$16889_xhr_.getResponse()instanceof Array){var D=this.JSC$16889_xhr_.getResponse();D.length>0&&D[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,y=D)}if(!(W<3||W==3&&!G&&y.length==0))if(Z=Z==200||Z==206,W==4&&(c==8?l8(this,
7):c==7?l8(this,8):Z||l8(this,3)),this.JSC$16889_parser_||(this.JSC$16889_parser_=XGD(this.JSC$16889_xhr_),this.JSC$16889_parser_==null&&l8(this,5)),this.status_>2)EY(this);else{if(y.length>this.JSC$16889_pos_){var Y=y.length;c=[];try{if(this.JSC$16889_parser_.acceptsBinaryInput())for(var u=0;u<Y;u++){var t=this.JSC$16889_parser_.parse(Array.from(y[u]));t&&(c=c.concat(t))}else{t="";if(!this.JSC$16889_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16889_textDecoder_=new TextDecoder}for(u=
0;u<Y;u++)t+=this.JSC$16889_textDecoder_.decode(y[u],{stream:W==4&&u==Y-1});c=this.JSC$16889_parser_.parse(t)}y.splice(0,Y);c&&this.dataHandler_(c)}catch(r){l8(this,5);EY(this);break a}}else if(G.length>this.JSC$16889_pos_){u=G.slice(this.JSC$16889_pos_);this.JSC$16889_pos_=G.length;try{var b=this.JSC$16889_parser_.parse(u);b!=null&&this.dataHandler_&&this.dataHandler_(b)}catch(r){l8(this,5);EY(this);break a}}W==4?(G.length!=0||this.hasStreamingResponseData_?l8(this,2):l8(this,4),EY(this)):l8(this,
1)}}}catch(r){l8(this,6),EY(this)}};var te3=function(y){y=this.xhrReader_=y;var W=(0,_.$r)(this.onData_,this);y.dataHandler_=W;y=this.xhrReader_;W=(0,_.$r)(this.onStatusChange_,this);y.statusHandler_=W;this.JSC$16893_callbackMap_={};this.callbackOnceMap_={}};
_.f=te3.prototype;_.f.on=function(y,W){var c=this.JSC$16893_callbackMap_[y];c||(c=[],this.JSC$16893_callbackMap_[y]=c);c.push(W);return this};
_.f.addListener=function(y,W){this.on(y,W);return this};
_.f.removeListener=function(y,W){var c=this.JSC$16893_callbackMap_[y];c&&_.dg(c,W);(y=this.callbackOnceMap_[y])&&_.dg(y,W);return this};
_.f.once=function(y,W){var c=this.callbackOnceMap_[y];c||(c=[],this.callbackOnceMap_[y]=c);c.push(W);return this};
_.f.onData_=function(y){var W=this.JSC$16893_callbackMap_.data;W&&nH9(y,W);(W=this.callbackOnceMap_.data)&&nH9(y,W);this.callbackOnceMap_.data=[]};
var nH9=function(y,W){for(var c={},Z=0;Z<y.length;c={message$jscomp$968:void 0},Z++)c.message$jscomp$968=y[Z],W.forEach(function(G){return function(D){try{D(G.message$jscomp$968)}catch(Y){}}}(c))};
te3.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:X_6(this,"readable");break;case 5:case 6:case 4:case 7:case 3:X_6(this,"error");break;case 8:X_6(this,"close");break;case 2:X_6(this,"end")}};
var X_6=function(y,W){var c=y.JSC$16893_callbackMap_[W];c&&c.forEach(function(Z){try{Z()}catch(G){}});
(c=y.callbackOnceMap_[W])&&c.forEach(function(Z){Z()});
y.callbackOnceMap_[W]=[]};var b7H=function(){var y={format:"jspb"};y=y===void 0?{}:y;this.suppressCorsPreflight=y.suppressCorsPreflight||_.JW("suppressCorsPreflight",y)||!1;this.withCredentials=y.withCredentials||_.JW("withCredentials",y)||!1;this.streamInterceptors=y.streamInterceptors||[];this.unaryInterceptors=y.unaryInterceptors||[];this.workerScope=y.workerScope;this.chunkedServerStreaming=y.useFetchDownloadStreams||!1},UEB=function(y,W,c,Z,G,D){D=D===void 0?{}:D;
var Y=W.substring(0,W.length-G.name.length),u,t=(u=D)==null?void 0:u.signal;return rkd(function(b){return new Promise(function(r,F){if(t==null?0:t.aborted){var K=new _.F1(1,"Aborted");K.cause=t.reason;F(K)}else{var l={},N=FXQ(y,b,Y);N.on("error",function(P){return void F(P)});
N.on("metadata",function(P){l=P});
N.on("data",function(P){var V=l;V=V===void 0?{}:V;r(new C_g(P,V))});
t&&t.addEventListener("abort",function(){N.cancel();var P=new _.F1(1,"Aborted");P.cause=t.reason;F(P)})}})},y.unaryInterceptors).call(y,QX6(G,c,Z)).then(function(b){return b.responseMessage})},Nz=function(y,W,c,Z,G){var D=D===void 0?{}:D;
return UEB(y,W,c,Z,G,D)};
b7H.prototype.serverStreaming=function(y,W,c,Z){var G=this,D=y.substring(0,y.length-Z.name.length);return $EQ(function(Y){var u=Y.methodDescriptor,t=Y.getMetadata(),b=KX3(G,!1);t=O7g(G,t,b,D+u.getName());var r=gHQ(b,u.responseDeserializeFn,!0);Y=u.requestSerializeFn(Y.requestMessage);b.send(t,"POST",Y);return r},this.streamInterceptors).call(this,QX6(Z,W,c))};
var FXQ=function(y,W,c){var Z=W.methodDescriptor,G=W.getMetadata(),D=KX3(y,!0);y=O7g(y,G,D,c+Z.getName());c=gHQ(D,Z.responseDeserializeFn,!1);oH3(c,G["X-Goog-Encode-Response-If-Executable"]==="base64");W=Z.requestSerializeFn(W.requestMessage);D.send(y,"POST",W);return c},KX3=function(y,W){W=y.chunkedServerStreaming&&!W;
return y.workerScope||W?new _.$p(new $9({worker:y.workerScope,streamBinaryChunks:W})):new _.$p},O7g=function(y,W,c,Z){W["Content-Type"]="application/json+protobuf";
W["X-User-Agent"]="grpc-web-javascript/0.1";var G=W.Authorization;if(G&&qM6.has(G.split(" ")[0])||y.withCredentials)c.JSC$7661_withCredentials_=!0;if(y.suppressCorsPreflight)Z=YuZ(Z,"$httpHeaders",W);else for(y=_.z(Object.keys(W)),G=y.next();!G.done;G=y.next())G=G.value,c.headers.set(G,W[G]);return Z},gHQ=function(y,W,c){if(c){c=new uB9(y);
var Z=new te3(c)}return new r6({xhr:y,nodeReadableStream:Z},W)},$EQ=function(y,W){return W.reduce(function(c,Z){return function(G){return Z.intercept(G,c)}},y)},rkd=function(y,W){return W.reduce(function(c,Z){return function(G){return Z.intercept(G,c)}},y)};var R8H=function(y){this.client_=new b7H;this.hostname_=y==void 0?y:y.replace(/\/+$/,"")};
_.f=R8H.prototype;_.f.JSC$16912_depositGoogleCredential=function(y,W){return Nz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",y,W||{},HGQ)};
_.f.deleteLink=function(y,W){return Nz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",y,W||{},hg6)};
_.f.JSC$16912_finishOAuth=function(y,W){return Nz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",y,W||{},vKf)};
_.f.getLink=function(y,W){return Nz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",y,W||{},dh3)};
_.f.startLinkingSession=function(y,W){return Nz(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",y,W||{},ws9)};var lTd=[0,B_H,1,vjB,[0,_.vN,[0,HU9,-1]],[0,LA3],[0,dDf,-1]];var EHZ=function(){this.storage=new Map},ITQ=function(y,W,c,Z,G){if(!y.storage.has(W))return null;
y=_.z(y.storage.get(W));for(W=y.next();!W.done;W=y.next())if(W=W.value,!G||W.linkName===G)if(c&&W.scopes&&Nt6(W.scopes,c)||Z&&W.capabilities&&Nt6(W.capabilities,Z))return W;return null},p_S=function(y,W,c){if(!c)y.storage.delete(W);
else if(y.storage.has(W)){var Z=y.storage.get(W).filter(function(G){return G.linkName!==c});
Z.length>0?y.storage.set(W,Z):y.storage.delete(W)}},Nt6=function(y,W){W=_.z(W);
for(var c=W.next();!c.done;c=W.next())if(!y.has(c.value))return!1;return!0};var POQ=function(){var y=_.Nn("LINK_GAL_DOMAIN");this.alsDomain1p=_.Nn("LINK_GAL_DOMAIN");this.alsDomain3p=y;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},JkH=function(y,W){y.apiKey=W;
return y};
POQ.prototype.build=function(){var y={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");y.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");y.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(y.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)y.apiKey=
this.apiKey,y.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");y.oauthToken=this.oauthToken;y.alsDomain=this.alsDomain3p}y.clientXd3=this.clientXd3;y.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(y.authUser=this.authUser);this.bucket!==void 0&&(y.bucket=this.bucket);this.completionUrl!==void 0&&(y.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(y.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(y.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(y.locale=this.locale);y.loggerType=this.loggerType;y.clientEnvironment=this.clientEnvironment;y.colorScheme=this.colorScheme;y.showCloseOption=this.showCloseOption;return y};var og=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(og,_.eD);var VeB=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(VeB,_.eD);var COd=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(COd,_.eD);var z4=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(z4,_.eD);var QY6=function(y){return _.lm(y,1)};var Ak6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Ak6,_.eD);var OpH=_.ze(Ak6),D1=[1,2,3,4,5];var Fl9=function(y){try{return OpH(y)}catch(W){return null}},h86=function(){},U83=function(y,W){switch(_.r5(W,D1)){case 4:return(W=_.IE(W,COd,4,D1))&&y.logStateTransition(_.lm(W,1)),!0;
case 5:return(W=_.IE(W,VeB,5,D1))&&y.logInternalEvent(_.lm(W,1)),!0}return!1},gY3=function(y){switch(y){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.d2(y)}};var bp6=function(y,W){var c=this;this.validator=y;this.messageListener=W;this.dismissCallback=function(){BtH(c,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16941_receiveMessage=function(Z){Z.type==="message"&&(Z=Z.event_,Z!==null&&(new URL(c.iframe.src)).origin===Z.origin&&c.validator(Z.data,Z.origin)&&!c.messageListener(Z.data)&&(c.JSC$16941_resolveCb!==void 0&&c.JSC$16941_resolveCb(Z.data),H7d(c)))}},Kl9=function(y,W,c){y.uiHandler!==void 0&&BtH(y,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Z,G){y.JSC$16941_resolveCb=Z;y.JSC$16941_rejectCb=G;y.iframe=document.createElement("iframe");_.df(y.iframe,W);y.uiHandler=c.displayContent(y.iframe,y.dismissCallback);_.Y0(window,"message",y.JSC$16941_receiveMessage,!1,y)})},BtH=function(y,W){y.JSC$16941_rejectCb!==void 0&&y.JSC$16941_rejectCb(W);
H7d(y)},H7d=function(y){y.uiHandler!==void 0&&y.uiHandler.hideContent();
_.sp(window,"message",y.JSC$16941_receiveMessage,!1,y);y.JSC$16941_resolveCb=void 0;y.JSC$16941_rejectCb=void 0;y.uiHandler=void 0;y.iframe=void 0};var LXS=function(y){if(y===2){var W;y=((W=window)==null?0:W.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return y},$89=function(y){y=LXS(y);
switch(y){case 0:return"light";case 1:return"dark";default:_.d2(y)}};var rzB=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),vHf=function(y,W){this.JSC$16953_linkingSession=y;this.noticeConfig=W;this.displayInfoMap=new Map;var c=new Map;if(_.tf(this.JSC$16953_linkingSession,aN3,7))for(y=_.il(this.JSC$16953_linkingSession,aN3,7),y=_.wQ(y,THg,1,_.ky()),y=_.z(y),W=y.next();!W.done;W=y.next())W=W.value,c.set(_.lm(W,1),_.YAH(_.il(W,_.EOh,3)));if(c.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){W=this.noticeConfig.enabledDataUsageNoticeUis;y=W.has(0)?c.get(1):void 0;W=W.has(1)?c.get(2):void 0;c=y!==void 0&&W!==void 0?c.get(3):void 0;var Z=this.noticeConfig.nestedOrigins;var G=new Ak6;var D=new og;G=_.tn(G,2,D1,D);D=new Ak6;var Y=new og;D=_.tn(D,3,D1,Y);Y=[];y!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:y,lastEvent:G,nestedOrigins:Z}]),Y.push({trustedUrl:y,lastEvent:G,nestedOrigins:Z}));W!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:W,lastEvent:D,nestedOrigins:Z}]),Y.push({trustedUrl:W,lastEvent:D,nestedOrigins:Z}));c!==void 0?this.displayInfoMap.set(3,[{trustedUrl:c,lastEvent:D,nestedOrigins:Z}]):this.displayInfoMap.set(3,Y)}};var dEQ=function(y){var W=new EHZ;this.galService=y;this.galCache=W};
dEQ.prototype.getLink=function(y){var W=y.serviceId;var c=y.scopes;var Z=y.capabilities;var G=y.linkName;var D=this,Y;return _.m(function(u){if(Z!==void 0&&c!==void 0)throw Error("Uj");Y=ITQ(D.galCache,W,c,Z,G);return Y!==null?u.return(Y):u.return(D.galService.getLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),scopes:c,capabilities:Z,linkName:G}).then(function(t){t=IxQ(t);var b=D.galCache;b.storage.has(W)?b.storage.get(W).push(t):b.storage.set(W,[t]);return t}))})};
dEQ.prototype.deleteLink=function(y,W,c){var Z=this;return _.m(function(G){p_S(Z.galCache,y,c);return G.return(Z.galService.deleteLink({serviceId:y,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:W,linkName:c}).then(function(){return!0}))})};var Tt9=function(y,W){var c=this;this.validator=y;this.msgHandler=W;this.closedPopupTimeout=this.JSC$16975_rejectCb=this.JSC$16975_resolveCb=this.popup=null;this.JSC$16975_receiveMessage=function(Z){if(Z!==null&&(Z=Z.event_,Z.source===c.popup)){var G=Z.data;if(c.validator(G,Z.origin)){var D;(D=c.msgHandler)!=null&&D.call(c,G)||(c.JSC$16975_resolveCb!==null&&c.JSC$16975_resolveCb(G),Su9(c))}}}};
Tt9.prototype.open=function(y,W){var c=this;this.popup!==null&&aTQ(this);return new Promise(function(Z,G){c.JSC$16975_resolveCb=Z;c.JSC$16975_rejectCb=G;c.popup=_.SQ(window,y,"",W);_.Y0(window,"message",c.JSC$16975_receiveMessage,!1,c);xEB(c)})};
var aTQ=function(y,W){y.JSC$16975_rejectCb!==null&&y.JSC$16975_rejectCb(W);Su9(y)},Su9=function(y){y.closedPopupTimeout&&(y.closedPopupTimeout.cancel(),y.closedPopupTimeout=null);
y.popup&&y.popup.close();_.sp(window,"message",y.JSC$16975_receiveMessage,!1,y);y.popup=null;y.JSC$16975_resolveCb=null;y.JSC$16975_rejectCb=null},xEB=function(y){y.closedPopupTimeout=_.jeE(100).then(function(){y.popup?y.popup.closed?i7H(y):xEB(y):aTQ(y,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},i7H=function(y){y.closedPopupTimeout=_.jeE(100).then(function(){aTQ(y,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var MeD=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),e8B=function(y,W,c,Z,G,D,Y,u,t,b){var r=this;this.serviceId=y;this.sessionId=W;this.galService=c;this.oauthDetails=Z;this.galLogger=G;this.interactionMode=D;this.redirectServiceUrl=Y;this.consentLanguageKeys=u;this.dynamicUrlParameters=t;this.partnerConfigMinReadTimestamp=b;this.started=!1;this.JSC$16981_dataValidator=function(F,
K){var l=MeD.has(K);l||r.redirectServiceUrl===void 0||(l=r.redirectServiceUrl===K);return l?F.sentinel==="gdi":!1}};
e8B.prototype.complete=function(){var y=this,W;return _.m(function(c){if(y.interactionMode!==1)return c.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=mk.getRedirectStateFromUri();return W===null?c.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):c.return(w_6(y,W))})};
e8B.prototype.start=function(){var y=this,W;return _.m(function(c){if(y.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.RE(y.oauthDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(y.interactionMode===1)return mk.setLocation(_.RE(y.oauthDetails,1)),c.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));y.started=!0;y.galLogger.logStateTransition(5);
W=mk.getPostMessagePopup(y.JSC$16981_dataValidator);return c.return(W.open(_.RE(y.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(Z){y.started=!1;var G=y.galLogger;if((Z==null?void 0:Z.error)!==void 0)throw G.logInternalEvent(59),Error("Vj");if((Z==null?void 0:Z.redirect_state)===void 0)throw G.logInternalEvent(131),Error("Wj");return w_6(y,Z.redirect_state)}).catch(function(Z){y.started=
!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var w_6=function(y,W){return _.m(function(c){return c.return(qud(y.galService,{serviceId:y.serviceId,sessionId:y.sessionId,dynamicUrlParameters:y.dynamicUrlParameters,redirectState:W,consentLanguageKeys:y.consentLanguageKeys,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp}).then(function(Z){var G=Z.getLink();G={statusCode:1,link:IxQ(G)};g0Z(_.XY(Z,3))!==void 0&&(G.callerState=g0Z(_.XY(Z,3)));y.galLogger.logInternalEvent(134);return G}))})},mk={getPostMessagePopup:function(y){return new Tt9(y)},
getRedirectStateFromUri:function(){var y=_.ho(mk.getLocation()).fragment_;return(new _.qK(y)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(y){_.kef(window.location,_.Jn(y))},
createOAuthFlow:function(y,W){return new e8B(y.serviceId,y.sessionId,y.galService,W,y.galLogger,y.interactionMode,y.redirectServiceUrl,y.consentLanguageKeys,y.dynamicUrlParameters,y.partnerConfigMinReadTimestamp)}};var kkB=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(kkB,_.eD);var jUD=_.ze(kkB);var yAg=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Wu3=function(y,W,c,Z,G,D,Y,u,t){var b=this;this.serviceId=y;this.sessionId=W;this.galService=c;this.gsiWebFlowDetails=Z;this.colorScheme=G;this.showCloseOption=D;this.galLogger=Y;this.interactionMode=u;this.redirectServiceUrl=t;this.started=!1;this.JSC$16993_dataValidator=function(r,F){var K=yAg.has(F);K||b.redirectServiceUrl===
void 0||(K=b.redirectServiceUrl===F);return K?r.sentinel==="gal":!1};
this.logEventProcessor=function(r){return r.result?(r=Fl9(r.result))?U83(b.galLogger,r):!1:!1}};
Wu3.prototype.complete=function(){var y=this,W,c;return _.m(function(Z){if(y.interactionMode!==1)return Z.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));W=sT.getRedirectStateFromUri();if(W===void 0)return y.galLogger.JSC$16933_logErrorEvent(131),Z.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return c=cAD(y,W),Z.return(ZFQ(y,c))}catch(G){return Z.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Wu3.prototype.start=function(){var y=this,W;return _.m(function(c){if(y.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.RE(y.gsiWebFlowDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(y.interactionMode===1)return sT.setLocation(GSB(y,_.RE(y.gsiWebFlowDetails,1))),c.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
y.started=!0;W=sT.getPostMessagePopup(y.JSC$16993_dataValidator,y.logEventProcessor);return c.return(W.open(GSB(y,_.RE(y.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(Z){y.started=!1;if((Z==null?void 0:Z.result)===void 0)throw y.galLogger.JSC$16933_logErrorEvent(131),Error("Wj");Z=cAD(y,Z.result);return ZFQ(y,Z)}).catch(function(Z){y.started=!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var GSB=function(y,W){y=["result_channel",y.interactionMode===1?"2":"1","color_scheme",$89(y.colorScheme),"show_close_option",y.showCloseOption];return aY9(W,y)},ZFQ=function(y,W){if(W!==null&&_.tf(W,z4,2)){var c,Z=W==null?void 0:(c=_.il(W,z4,2))==null?void 0:_.lm(c,2);
Z&&y.galLogger.JSC$16933_logErrorEvent(gY3(Z));return QY6(_.il(W,z4,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 y.galService.getLink({serviceId:y.serviceId,sessionId:y.sessionId,consistencyKey:_.RE(W,1)}).then(function(G){G=IxQ(G);y.galLogger.logInternalEvent(134);return{statusCode:1,link:G}})},cAD=function(y,W){W=jUD(W);
if(!_.tf(W,z4,2)&&_.RE(W,1)==="")throw y.galLogger.JSC$16933_logErrorEvent(5),Error("Xj");return W},sT={getPostMessagePopup:function(y,W){return new Tt9(y,W)},
getRedirectStateFromUri:function(){return _.Bk(_.ho(sT.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(y){_.kef(window.location,_.Jn(y))},
createStreamlinedFlow:function(y,W){return new Wu3(y.serviceId,y.sessionId,y.galService,W,y.colorScheme,y.showCloseOption,y.galLogger,y.interactionMode,y.redirectServiceUrl)}};var TiQ=function(){var y=_.Yqw("GAL");this.storage=y?new _.t6(y):null};var Ib=function(){};
_.R(Ib,h86);Ib.prototype.logStateTransition=function(){};
Ib.prototype.logInternalEvent=function(){};
Ib.prototype.JSC$16933_logErrorEvent=function(){};var fuQ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(fuQ,_.eD);fuQ.prototype.getCompletionUrl=function(){return _.RE(this,15)};var pE=function(y,W,c,Z,G,D){this.serviceId=y;this.environment=W;this.sessionId=c;this.colorSchemeSelected=Z;this.colorThemeDisplayed=G;this.JSC$17006_transport=D;this.currentState=1};
_.R(pE,h86);pE.prototype.logStateTransition=function(y){var W=oI9(this);W=_.MC(W,3,this.currentState);W=_.MC(W,1,y);this.currentState=y;y=fyD(1);this.dispatch(W,y)};
pE.prototype.logInternalEvent=function(y){y=fyD(y);this.dispatch(oI9(this),y)};
pE.prototype.JSC$16933_logErrorEvent=function(y){var W=oI9(this);W=_.MC(W,1,10);y=fyD(y);this.dispatch(W,y)};
var oI9=function(y){var W=new fuQ;W=_.MC(W,1,y.currentState);W=_.Ub(W,7,y.serviceId);var c,Z,G;((c=window)==null?0:(Z=c.location)==null?0:Z.href)?G=_.ho(window.location.href).JSC$7898_domain_:G="NO_PACKAGE_NAME";c=_.Ub(W,8,G);c=_.MC(c,6,y.environment);c=_.Ub(c,5,"100");c=_.MC(c,11,y.colorSchemeSelected);return _.MC(c,12,y.colorThemeDisplayed)};
pE.prototype.dispatch=function(y,W){W===void 0&&(W=new _.yh);var c=W;y=y.serialize();c=_.Ub(c,8,y);_.tc(c,12,this.sessionId);this.JSC$17006_transport.dispatch(W)};var DYS=function(y,W){this.loggerType=y;this.sessionIndex=W!=null?W:0},zdD;
DYS.prototype.create=function(y,W,c,Z,G){switch(this.loggerType){case 0:return new Ib;case 1:return zdD||(zdD=(new _.Dd(555,this.sessionIndex.toString())).build()),new pE(y,W,c,Z,G,zdD);default:_.d2(this.loggerType,"unknown logger type")}};var ud=[6,2,3,1],eNQ=new Map([[4,1],[1,6],[2,2],[3,3]]),V86={statusCode:7,statusMessage:"Failed to create flow object"},d89=function(y,W,c,Z,G,D,Y,u,t,b){this.serviceId=y;this.sessionId=W;this.config=c;this.galService=Z;this.JSC$17013_linkingSession=G;this.googleScopes=D;this.callerState=Y;this.consentLanguageKeys=u;this.dynamicUrlParameters=t;this.partnerConfigMinReadTimestamp=b;this.currentFlow=0;Z=this.JSC$17013_linkingSession;G=new Set;_.tf(Z,BiS,1)&&G.add(1);_.tf(Z,iGd,2)&&_.tf(Z,Hp9,6)&&G.add(2);
_.tf(Z,xhf,3)&&_.tf(Z,Hp9,6)&&G.add(3);_.tf(Z,SM6,4)&&G.add(6);this.supportedFlows=G;Z=c.loggerType;G=c.clientEnvironment;a:{D=c.colorScheme;switch(D){case 0:D=1;break a;case 1:D=2;break a;case 2:D=3;break a;default:_.d2(D)}D=void 0}a:{Y=c.colorScheme;Y=LXS(Y);switch(Y){case 0:Y=1;break a;case 1:Y=2;break a;default:_.d2(Y)}Y=void 0}this.galLogger=(new DYS(Z,c.authUser)).create(y,G,W,D,Y)},mYB=function(y){return new Promise(function(W){var c,Z,G,D,Y,u,t,b,r,F;
return _.m(function(K){switch(K.nextAddress){case 1:c=LlQ(y.currentFlow,y.supportedFlows),Z=!1,G=new vHf(y.JSC$17013_linkingSession,y.config.dataUsageNoticeConfig);case 2:if(c===void 0){K.jumpTo(4);break}_.tm(K,5);var l=G,N=c,P=void 0;Z?N===1&&(P=l.displayInfoMap.get(2)):N===2||N===3?P=l.displayInfoMap.get(1):N===1&&(P=l.displayInfoMap.get(3));D=P?P:[];Y=y.consentLanguageKeys;u=_.z(D);t=u.next();case 7:if(t.done)return y.currentFlow=c,_.n(K,Q3g(YxS(y,Y)),11);b=t.value;return _.n(K,RNf(b,y.config.dataUsageNoticeConfig.uiAdapter,
y.config.colorScheme,y.galLogger),10);case 10:r=K.yieldResult;if(r.statusCode!==1)return axd(y.serviceId),y.currentFlow=0,W(YB({statusCode:r.statusCode,statusMessage:r.statusMessage},y.callerState)),K.return();r.consentLanguageKeys!==void 0&&(Y=r.consentLanguageKeys);t=u.next();K.jumpTo(7);break;case 11:F=K.yieldResult;if(F.statusCode!==10)return F.statusCode!==6&&(axd(y.serviceId),y.currentFlow=0),F.statusCode!==1&&y.callerState!==void 0&&(F.callerState=y.callerState),W(F),K.return();_.J6(K,6);break;
case 5:_.rs(K);case 6:c=LlQ(y.currentFlow,y.supportedFlows);Z=!0;K.jumpTo(2);break;case 4:axd(y.serviceId),y.currentFlow=0,W(YB({statusCode:12,statusMessage:"Linking failed"},y.callerState)),_.F2(K)}})})},ipS=function(y,W,c){y.currentFlow=W;
return Az6(YxS(y,c)).then(function(Z){return Z.statusCode===10&&y.config.interactionMode===1&&LlQ(y.currentFlow,y.supportedFlows)!==void 0?mYB(y):Z})},YxS=function(y,W){return{flowParams:{serviceId:y.serviceId,
sessionId:y.sessionId,galService:y.galService,galLogger:y.galLogger,interactionMode:y.config.interactionMode,redirectServiceUrl:y.config.redirectServiceUrl,colorScheme:y.config.colorScheme,consentLanguageKeys:W,dynamicUrlParameters:y.dynamicUrlParameters,showCloseOption:y.config.showCloseOption,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp},currentFlow:y.currentFlow,config:y.config,session:y.JSC$17013_linkingSession,googleScopes:y.googleScopes,callerState:y.callerState}};var fv9=function(y,W){this.config=y;this.galService=W.getService();this.JSC$17026_galRepository=W.JSC$17063_galRepository};
fv9.prototype.getLink=function(y,W){return sU6(this,y,W)};
var sU6=function(y,W,c){return y.JSC$17026_galRepository.getLink({serviceId:W,scopes:void 0,capabilities:void 0,linkName:c}).then(function(Z){return{statusCode:1,link:Z}}).catch(function(Z){return{statusCode:wGg(Z.code),
statusMessage:Z.message}})};
fv9.prototype.deleteLink=function(y,W){return this.JSC$17026_galRepository.deleteLink(y,this.config.accountLinkingEntryPoint,W).then(function(){return{statusCode:1}}).catch(function(c){return{statusCode:wGg(c.code),
statusMessage:c.message}})};
fv9.prototype.startLinkingSession=function(y){var W=y.serviceId;var c=y.sessionId;return SVg({serviceId:W,sessionId:c!==void 0?c:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:y.loginHint,callerState:y.callerState,consentLanguageKeys:y.consentLanguageKeys,linkName:y.linkName,dynamicUrlParameters:y.dynamicUrlParameters,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp})};var qV3=null,WtS=new WeakMap;var ub9=function(){};
ub9.prototype.send=function(y,W){Gq6(y);return this.makeRequest(y).then(function(c){if(W){var Z=new W;if(c!=null){if(W==null)throw Error("Zj");new W;throw Error("ak");}c=Z}return c})};var txd=function(y,W,c,Z,G){this.gapiUrl=y;this.gapiKey=W;this.gapiConfigUpdates=c||{};this.gapiAuthParams=Z||{};this.defaultApiId=G};
_.R(txd,ub9);var Xv6=function(y){return j09().then(function(W){W=W||window.gapi;nID(y,W);return ZsS(W,{apiKey:y.gapiKey,clientId:y.gapiAuthParams.clientId,scope:y.gapiAuthParams.scope,hostedDomain:y.gapiAuthParams.hostedDomain,fetchBasicProfile:y.gapiAuthParams.fetchBasicProfile}).then(function(){return W})})};
txd.prototype.makeRequest=function(y){var W=this;return Xv6(this).then(function(c){return _.m(function(Z){if(Z.nextAddress==1)return W.gapiAuthParams.minAuthTokenTimeRemaining===void 0?Z.jumpTo(2):_.n(Z,cDB(c,W.gapiAuthParams.minAuthTokenTimeRemaining),2);nID(W,c);return Z.return(bFd(c.client.request({root:W.gapiUrl,path:y.path,method:y.httpMethod,body:y.body,params:y.queryParams,headers:y.headers,authType:y.authType,apiId:y.apiId||W.defaultApiId})))})})};
var bFd=function(y){return new Promise(function(W,c){y.then(function(Z){W(Z.result===!1&&Z.body!=null?{data:Z.body}:Z.result)},function(Z){c(Z.result===!1&&Z.body!=null?{data:Z.body}:Z.result)})})},nID=function(y,W){for(var c in y.gapiConfigUpdates)if(y.gapiConfigUpdates.hasOwnProperty(c)){var Z=W,G=c,D=y.gapiConfigUpdates[c],Y=Z.config.get(G);
D!==Y&&Z.config.update(G,D)}};
txd.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var Pr=function(y,W,c,Z,G,D,Y,u){this.apiKey=W;this.authUser=c;this.oauthToken=Z;this.bucket=G;this.locale=Y;this.galSdkEventHandler=u;if(Z===void 0){if(W===void 0)throw Error("bk");this.requestService=new txd(y,W,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":D===void 0||D===!1,"client/xd3":D===!0})}this.galServiceClient=new R8H(y)};
Pr.prototype.deleteLink=function(y){var W=y.serviceId;var c=y.sessionId;var Z=y.accountLinkingEntryPoint;var G=y.linkName;var D=this,Y;return _.m(function(u){var t=(new u8).setHeader(JF(D,c));var b=rAf({serviceId:W,linkName:G});t=_.uF(t,2,b);Y=_.PN(t,3,Z);return u.return(D.makeRequest(D.galServiceClient.deleteLink,Y,[1,3],[2,4]))})};
var qud=function(y,W){var c=W.serviceId;var Z=W.sessionId;var G=W.dynamicUrlParameters;var D=W.redirectState;var Y=W.consentLanguageKeys;var u=W.partnerConfigMinReadTimestamp;var t;return _.m(function(b){var r=(new nE).setHeader(JF(y,Z,G));r=_.a0(r,2,c);t=_.a0(r,4,D);Y!==void 0&&_.a0(t,5,Y);u!==void 0&&_.uF(t,6,u);return b.return(y.makeRequest(y.galServiceClient.JSC$16912_finishOAuth,t,[1,3],[2,4]))})};
Pr.prototype.getLink=function(y){var W=y.serviceId;var c=y.sessionId;var Z=y.scopes;var G=y.capabilities;var D=y.consistencyKey;var Y=y.linkName;var u=this,t;return _.m(function(b){var r=(new Xg).setHeader(JF(u,c)),F=rAf({serviceId:W,scopes:Z,capabilities:G,linkName:Y});t=_.uF(r,2,F);D!==void 0&&(r=psS(),r=_.a0(r,2,D),_.uF(t,3,r));return b.return(u.makeRequest(u.galServiceClient.getLink,t,[1,3],[2,4]))})};
var hNQ=function(y,W){var c=W.serviceId;var Z=W.sessionId;var G=W.googleScopes;var D=W.consistencyKey;var Y;return _.m(function(u){var t=(new tF).setHeader(JF(y,Z));t=_.a0(t,2,c);var b=Array.from(G.values());t=_.H3(t,3,b,_.sB);b=psS();b=_.a0(b,2,D);Y=_.uF(t,4,b);return u.return(y.makeRequest(y.galServiceClient.JSC$16912_depositGoogleCredential,Y,[1,3],[2,4]))})};
Pr.prototype.startLinkingSession=function(y){var W=y.serviceId;var c=y.sessionId;var Z=y.scopes;var G=y.capabilities;var D=y.loginHint;var Y=y.supportedFlows;var u=y.completionUrl;var t=y.usePingPong;var b=y.twoWayLinking;var r=y.accountLinkingEntryPoint;var F=y.callerState;var K=y.consentLanguageKeys;var l=y.googleScopes;var N=y.dataUsageNoticeConfig;var P=y.linkName;var V=y.dynamicUrlParameters;var Q=y.partnerConfigMinReadTimestamp;var S=this,cy,M;return _.m(function(fa){if(G!==void 0&&Z!==void 0)throw Error("Uj");
var jI=(new b8).setHeader(JF(S,c,V));cy=_.a0(jI,2,W);P!==void 0&&_.a0(cy,14,P);if(G!==void 0){jI=cy;var sD=Array.from(G.values());_.H3(jI,5,sD,_.sB)}else Z!==void 0&&(jI=cy,sD=Array.from(Z.values()),_.H3(jI,3,sD,_.sB));u!==void 0&&_.a0(cy,6,u);t!==void 0&&_.gz(cy,15,t);Y!==void 0&&(jI=cy,sD=Array.from(Y.values()),_.H3(jI,4,sD,_.q3));if(b!==void 0){if(b&&(!l||l.size===0))throw Error("ck");_.gz(cy,8,b)}r!==void 0&&_.PN(cy,9,r);D!==void 0&&_.a0(cy,13,D);F!==void 0&&(jI=cy,sD=(new TextEncoder).encode(F),
_.LQ(jI,12,_.RV(sD,!1),_.g2()));K!==void 0&&_.a0(cy,16,K);Q!==void 0&&_.uF(cy,18,Q);if(N!==void 0&&N.size>0||l!==void 0&&l.size>0)M=new egg,l!==void 0&&l.size>0&&(jI=M,sD=Array.from(l.values()),_.H3(jI,1,sD,_.sB)),N!==void 0&&(N.has(0)&&_.R6f(M,2,_.q3,1,_.kW),N.has(1)&&_.R6f(M,2,_.q3,2,_.kW)),_.uF(cy,17,M);return fa.return(S.makeRequest(S.galServiceClient.startLinkingSession,cy,[1],[2]))})};
Pr.prototype.getMetadata=function(){var y=this,W,c,Z;return _.m(function(G){if(G.nextAddress==1)return W={},y.requestService?_.n(G,Xv6(y.requestService),3):(W.Authorization="Bearer "+y.oauthToken,G.jumpTo(2));G.nextAddress!=2&&(c=G.yieldResult,W["X-Goog-Api-Key"]=y.apiKey,W["X-Goog-AuthUser"]=y.authUser!==void 0?y.authUser.toString():"0",(Z=c.auth.getAuthHeaderValueForFirstParty([]))&&(W.Authorization=Z));y.locale&&(W["accept-language"]=y.locale);return G.return(W)})};
Pr.prototype.makeRequest=function(y,W,c,Z){var G=this,D;return _.m(function(Y){if(Y.nextAddress==1)return _.n(Y,G.getMetadata(),2);D=Y.yieldResult;Fu6(G,c);return Y.return(y.bind(G.galServiceClient)(W,D).finally(function(){Fu6(G,Z)}))})};
var Fu6=function(y,W){y.galSdkEventHandler!==void 0&&W.forEach(function(c){y.galSdkEventHandler.onEvent(c)})},JF=function(y,W,c){var Z=new Y9;
W=_.LQ(Z,2,_.jD(W),0);W=_.PN(W,5,3);c=_.H3(W,8,c,_.sB);y.bucket!==void 0&&_.a0(c,1,y.bucket);return c},rAf=function(y){var W=y.serviceId;
var c=y.scopes;var Z=y.capabilities;y=y.linkName;if(Z!==void 0&&c!==void 0)throw Error("Uj");var G=new NHH;W=_.a0(G,1,W);Z!==void 0?(c=Array.from(Z.values()),_.H3(W,5,c,_.sB)):c!==void 0&&(c=Array.from(c.values()),_.H3(W,3,c,_.sB));y!==void 0&&_.a0(W,6,y);return W};var oDf=function(y){this.galService=new Pr(y.alsDomain,y.apiKey,y.authUser,y.oauthToken,y.bucket,y.clientXd3,y.locale,y.galSdkEventHandler);this.JSC$17063_galRepository=new dEQ(this.galService)};
oDf.prototype.getService=function(){return this.galService};var UYZ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(UYZ,_.eD);var $Yd=function(y){var W=new UYZ;return _.MC(W,1,y)};
UYZ.prototype.setErrorMessage=function(y){return _.Ub(this,2,y)};var Kud=[0,_.S6,_.Li,_.S6];var Vs=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Vs,_.eD);var OFH=[0,[1,2,3],_.d5,[0,Cp6,hFd,-1],_.d5,[0,AJ9,-1],_.qjh];var gIQ=[0,_.BN,1,_.S6,_.Li,-1,1,_.yH2,_.hf,_.S6,-1,OFH];var Rdf=[0,_.S6,[0,_.yH2,_.hf,[0,_.Li]],_.HN,[0,_.S6,-1]];var MI=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(MI,_.eD);var lug=[0,_.Li,_.S6,-2,_.BN,_.S6,_.BN,_.S6,-2,1,_.HN];var EIB=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(EIB,_.eD);var NRg=[0,_.BN];var IuH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(IuH,_.eD);var pvH=[0,_.S6,Rdf,NRg,lug,gIQ];var BaH=_.o$(IuH,pvH);var PXB=[0,lTd];var Ta9=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Ta9,_.eD);var JAB=[0,[1,3],SSZ,_.S6,SSZ];var xB=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(xB,_.eD);var Vxf=[0,_.S6];var CXZ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(CXZ,_.eD);var id=function(y){return _.IE(y,UYZ,2,ag)},QU3=function(y){var W=new CXZ;
return _.tn(W,2,ag,y)},ag=[1,
2];var AA6=[0,ag,_.d5,Vxf,_.d5,Kud,_.vN,JAB,1,_.S6,PXB];var hdg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(hdg,_.eD);var HF3=function(y){var W=new hdg;return _.tn(W,3,BRH,y)},BRH=[2,
3];var CE=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(CE,_.eD);var Lug=function(y,W){return _.uF(y,2,W)},vIf=function(y,W){return _.uF(y,8,W)},dY6=function(y,W){return _.uF(y,3,W)};var SxH=[0,_.S6,AA6,pvH,_.oiE,[0,[5,6],[0,_.S6,-2],[0,_.BN,_.S6,_.Li],[0,OFH],[0,_.Li,_.S6,-1,_.fGQ],_.d5,[0,[0,_.BN],_.S6,-1],_.d5,[0,[3,4],_.S6,-1,_.d5,[0,[0,_.S6,_.HN]],_.d5,[0]]],_.oiE,-1,[0,BRH,_.S6,_.d5,Vxf,_.d5,Kud,_.vN,JAB,[0,lTd]]];var TRQ=_.o$(CE,SxH),auD=_.D3(SxH);var xYf=function(){_.UR.call(this)};
_.R(xYf,_.UR);xYf.prototype.init=function(){};
new xYf;var iFD=_.dl(["data-"]),Mx6=_.dl(["aria-"]),ed6=_.dl(["aria-"]),Qs=function(y,W){this.isLatencyMeasurementExperiment=y===void 0?!1:y;this.enableDialogA11yFix=W===void 0?!1:W;this.JSC$17092_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.tDE(_.DH.location.href)},LSg=function(y,W){y.onConsentPrimitiveShownCallback=W},wvZ=function(y,W){return y.overriddenIframeLoadTimeout?y.overriddenIframeLoadTimeout:W!==void 0?W:5E3},dKf=function(y){if(y.prewarmPromise!==void 0)return y.prewarmPromise;
y.prewarmPromise=new Promise(function(W,c){AF(y,1);qxZ(y,kSd(y,!0),jtH(y));y.iframe?y.prewarmChannel||yIS(y,y.iframe,W):c(Error("dk"))});
y.prewarmPromise.finally(function(){y.prewarmPromise=void 0});
return y.prewarmPromise};
Qs.prototype.showPrimitive=function(){var y=this;if(this.consentPromise!==void 0)return this.consentPromise;var W=Date.now();W_H(this,W);this.consentPromise=new Promise(function(c,Z){AF(y,0,W);var G=y.isDarkTheme();y.isLatencyMeasurementExperiment||y.initialLoadingStrategy===1||y.initialLoadingStrategy===2||(y.loadingBar||(y.loadingBar=mvd(getComputedStyle(document.body).direction==="rtl",G),y.loadingBar.style.position="fixed",y.loadingBar.style.zIndex="15000"),document.body.appendChild(y.loadingBar));
qxZ(y,kSd(y),jtH(y));y.iframe?y.channel||cId(y,y.iframe,c,Z):(ZHf(y),Z(Error("dk")))});
this.consentPromise.finally(function(){y.consentPromise=void 0});
return this.consentPromise};
var cId=function(y,W,c,Z){var G,D;_.m(function(Y){switch(Y.nextAddress){case 1:AF(y,3);G=!1;setTimeout(function(){if(!G){ZHf(y);GRH(y);fE6();var u=$Yd(7).setErrorMessage("Timeout connecting to iframe");c(vIf(Lug(new CE,QU3(u)),HF3(u)))}},wvZ(y,oPd(y)));
if(!y.prewarmPromise){Y.jumpTo(2);break}_.tm(Y,3);return _.n(Y,y.prewarmPromise,5);case 5:_.J6(Y,2);break;case 3:_.rs(Y),D=$Yd(4).setErrorMessage("Error while prewarming."),c(vIf(Lug(new CE,QU3(D)),HF3(D)));case 2:y.prewarmChannel&&y.prewarmChannel.send(auD(dY6(new CE,y.consentPrimitiveRequest))),y.channel=_.x6({destination:y.JSC$17092_win,iframe:W,origin:DtH(y),channelName:"cpw",onEstablished:function(){G=!0;ZHf(y);y.isLatencyMeasurementExperiment||(y.JSC$17092_previousBodyOverflow=document.body.style.overflow,
y.JSC$17092_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,y.JSC$17092_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",y.enableDialogA11yFix&&window.addEventListener("blur",y.focusChangeListener));var u=y.iframe;u.style.bottom="0";u.style.position="fixed";u.style.right="0";u.style.border="none";u.style.left="0";u.style.top=
"0";u.style.zIndex="5000";u.style.pointerEvents="";u.style.visibility="";y.initialLoadingStrategy===2||y.initialLoadingStrategy===3?AF(y,4):AF(y,6);var t;(t=y.onConsentPrimitiveShownCallback)==null||t.call(y)},
onMessage:function(u){u=TRQ(u.data);switch(_.lm(u,1)){case 1:GRH(y);var t=s0S(_.il(u,_.AD,7));t&&(y.initialLoadingStrategy!==2&&y.initialLoadingStrategy!==3||AF(y,6,t),AF(y,5,t));if(t=s0S(_.il(u,_.AD,6)))AF(y,7,t),AF(y,8);var b,r;((b=_.il(u,CXZ,2))==null?void 0:_.r5(b,ag))!==0&&((r=_.il(u,hdg,8))==null?void 0:_.r5(r,BRH))!==0||Z(Error("ek"));c(u);break;case 2:fE6()}}}),_.F2(Y)}})},yIS=function(y,W,c){y.prewarmChannel=_.x6({destination:y.JSC$17092_win,
iframe:W,origin:DtH(y),channelName:"pwcp",onEstablished:function(){AF(y,2);c()}})},DtH=function(y){var W=_.U3(y.src).toString();
return W&&W.indexOf("://")<0&&W.indexOf("//")!==0?y.origin:_.tDE(W)},kSd=function(y,W){W=W===void 0?!1:W;
var c,Z=new Map([["origin",y.origin],["hl",(c=zD3(y))!=null?c:null]]);W&&Z.set("pw","1");W=_.z([["cpr",y.consentPrimitiveRequest.serialize()]]);for(c=W.next();!c.done;c=W.next()){var G=_.z(c.value);c=G.next().value;G=G.next().value;Z.set(c,G)}y.isDarkTheme()&&Z.set("color_scheme","dark");return _.of(y.src,Z)},ZHf=function(y){y.isLatencyMeasurementExperiment||y.loadingBar&&document.body.removeChild(y.loadingBar)};
Qs.prototype.getSrc=function(){var y=_.vI(this.origin),W;var c=(W=_.il(this.consentPrimitiveRequest,EIB,3))==null?void 0:_.jZ(W,1);W="consent.google.com";c=c?"/u/"+encodeURIComponent(c.toString()):"";(y==null?0:y.endsWith("youtube.com"))?W="consent.youtube.com":(y=y==null?void 0:y.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(W="consent.google."+((y[1]?"co.":"")+encodeURIComponent(y[2])));return _.rf("https://"+W+"/signedin"+c+"/landing")};
var qxZ=function(y,W,c){y.iframe||(y.iframe=document.createElement("iframe"),y.iframe.style.width="100%",y.iframe.style.height="100%",c!==112496729&&(y.iframe.style.colorScheme="auto"),y.isLatencyMeasurementExperiment&&(y.iframe.style.display="none"),_.df(y.iframe,W),y.iframe.setAttribute("jsname","C5o1O"),YUd(y.iframe),document.body.appendChild(y.iframe))},YUd=function(y){y.style.bottom="-200vh";
y.style.position="fixed";y.style.right="-200vw";y.style.border="";y.style.left="";y.style.top="";y.style.zIndex="";y.style.pointerEvents="none";y.style.visibility="hidden"},GRH=function(y){y.iframe&&(y.isLatencyMeasurementExperiment||(y.JSC$17092_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=y.JSC$17092_previousHtmlOverscroll),y.JSC$17092_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=y.JSC$17092_previousBodyOverscroll),y.JSC$17092_previousBodyOverflow!==
void 0&&(document.body.style.overflow=y.JSC$17092_previousBodyOverflow),y.enableDialogA11yFix&&mt9(y,!1)),YUd(y.iframe))};
Qs.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(mt9(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var mt9=function(y,W){var c,Z,G=(c=y.iframe)==null?void 0:(Z=c.parentElement)==null?void 0:Z.children;if(G)for(c=0;c<G.length;c++)Z=G[c],Z!==y.iframe&&(W?(Z.hasAttribute("aria-hidden")&&_.kX([_.yx(iFD)],Z,"data-old-aria-hidden",Z.getAttribute("aria-hidden")),_.kX([_.yx(Mx6)],Z,"aria-hidden","true")):(Z.removeAttribute("aria-hidden"),Z.hasAttribute("data-old-aria-hidden")&&(_.kX([_.yx(ed6)],Z,"aria-hidden",Z.getAttribute("data-old-aria-hidden")),Z.removeAttribute("data-old-aria-hidden"))))},AF=function(y,
W,c){var Z;
(Z=y.latencyCallback)==null||Z.call(y,{latencyType:W,timestampEpochMillis:c!=null?c:Date.now()})};var st9=function(y,W,c){Qs.call(this,W,c===void 0?!1:c);this.consentPrimitiveRequest=y;y=zD3(this);if(!(0,_.jdf)(y))throw Error("H``"+String(y));this.src=this.getSrc();var Z;this.initialLoadingStrategy=(Z=_.il(this.consentPrimitiveRequest,MI,4))==null?void 0:_.lm(Z,4)},hF;
_.R(st9,Qs);var H$Z=function(y){var W=_.O("enable_primitive_dialog_aria_hide_siblings");y={request:y,enableDialogA11yFix:W===void 0?!1:W};hF||(hF=new st9(y.request,y.isLatencyMeasurementExperiment||_.lm(y.request,1)===2,y.enableDialogA11yFix));return hF},fE6=function(){hF&&(hF.channel=void 0,hF.prewarmChannel=void 0,hF.iframe&&(document.body.contains(hF.iframe)&&document.body.removeChild(hF.iframe),hF.iframe=void 0),hF=void 0)},zD3=function(y){var W;
return(W=_.il(y.consentPrimitiveRequest,MI,4))==null?void 0:_.RE(W,1)},W_H=function(y,W){if(!_.tf(y.consentPrimitiveRequest,Vs,5)){var c=y.consentPrimitiveRequest,Z=new Vs;
_.uF(c,5,Z)}var G;if((G=_.il(y.consentPrimitiveRequest,Vs,5))==null||_.$6(G,8)==null){var D;(D=_.il(y.consentPrimitiveRequest,Vs,5))!=null&&_.tc(D,8,W)}},jtH=function(y){var W;
return(W=_.il(y.consentPrimitiveRequest,Vs,5))==null?void 0:_.jZ(W,1)};
st9.prototype.isDarkTheme=function(){var y;return((y=_.il(this.consentPrimitiveRequest,MI,4))==null?void 0:_.lm(y,2))===2};
var oPd=function(y){var W;return((W=_.il(y.consentPrimitiveRequest,MI,4))==null?void 0:_.jZ(W,5))||void 0},Spd=function(y){return Qs.prototype.showPrimitive.call(y).then(function(W){return _.il(W,CXZ,2)})};for(var Br={},u39=(Br[64]="ma",Br[73]="ogb",Br[89]="cr",Br[21]="test",Br[0]="unkn",Br[137]="con",Br[155]="hl",Br[78]="yt",Br[171]="lp",Br[172]="ap",Br[177]="amo",Br[178]="pqe",Br[74]="gg",Br[1]="gm",Br[140]="am",Br),tzQ=_.z(Object.keys(u39)),nPD=tzQ.next();!nPD.done;nPD=tzQ.next());var X0Q=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(X0Q,_.eD);var bH9=[0,[2,3,4],_.S6,QO9,SSZ,_.qjh];var rIg=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(rIg,_.eD);var F_D=_.o$(rIg,[0,dDf,_.Li,_.S6,_.Li,_.S6,bH9]);var Ut6=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(Ut6,_.eD);Ut6.prototype.getCommand=function(){return _.lm(this,1)};
var $t6=function(){var y=new Ut6;return _.PN(y,1,0)};var K_Q=_.D3([0,dDf,_.Li,[0,_.S6,_.Li,-1]]);var OHB=new _.o4("s"),gP9=new _.o4("t"),RDd=new _.o4("u"),lEf=new _.o4("v"),EPH=function(y,W,c){_.D9.call(this,OHB);this.mediaKey=y;this.photoUrl=W;this.photoSource=c};
_.R(EPH,_.D9);var NFD=function(){_.D9.call(this,gP9)};
_.R(NFD,_.D9);var IE6=function(y){y=y===void 0?!1:y;_.D9.call(this,RDd);this.isError=y};
_.R(IE6,_.D9);var p0f=function(){_.D9.call(this,lEf)};
_.R(p0f,_.D9);var PA6=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Qtf=function(y){if(typeof y=="string"){if(y.charAt(0)==".")return JIf(y.substr(1));if(y.charAt(0)=="["){var W=PA6.exec(y);y=y.indexOf("=")==-1?void 0:W[3];return Vz6(W[1],y)}return CAf(y)}return y},JIf=function(y){return function(W){return W.getAttribute&&_.C$(W,y)}},Vz6=function(y,W){return function(c){return W!==void 0?c.getAttribute&&c.getAttribute(y)==W:c.hasAttribute&&c.hasAttribute(y)}},CAf=function(y){y=y.toUpperCase();
return function(W){return(W=W.tagName)&&W.toUpperCase()==y}},AI6=function(){return!0};var Hr=function(y,W){this.JSC$17120_key_=y;this.JSC$17120_value_=W},LE=function(y){throw Error("fk`"+y.JSC$17120_key_);
},hDg=function(y,W){return new TypeError("gk`"+W+"`"+y.JSC$17120_key_+"`"+y.JSC$17120_value_+"`"+typeof y.JSC$17120_value_)};
Hr.prototype.string=function(y){if(arguments.length==0)var W=BFQ(this);else{var c;W=(c=HHf(this))!=null?c:y}return W};
var BFQ=function(y){var W=HHf(y);W===null&&LE(y);return W},HHf=function(y){var W=y.JSC$17120_value_;
if(W==null)return null;if(typeof W==="string")return W;throw hDg(y,"string");};
Hr.prototype.bool=function(y){if(arguments.length==0){var W=this.optionalBool();W===null&&LE(this)}else{var c;W=(c=this.optionalBool())!=null?c:y}return W};
Hr.prototype.optionalBool=function(){var y=this.JSC$17120_value_;if(y==null)return null;if(typeof y==="boolean")return y;if(typeof y==="string"){y=y.toLowerCase();if(y==="true"||y==="1")return!0;if(y==="false"||y==="0")return!1}throw hDg(this,"boolean");};
Hr.prototype.number=function(y){if(arguments.length==0){var W=L_H(this);W===null&&LE(this)}else{var c;W=(c=L_H(this))!=null?c:y}return W};
var L_H=function(y){var W=y.JSC$17120_value_;if(W==null)return null;if(typeof W==="number")return W;if(typeof W==="string"){var c=Number(W);if(!isNaN(c)&&(c!==0||W.trim().length!==0))return c}throw hDg(y,"number");};
Hr.prototype.toString=function(){return BFQ(this)};
Hr.prototype.array=function(y){if(arguments.length==0){var W=vPd(this);W===null&&LE(this);return W}W=vPd(this);return W==null?y:W};
var vPd=function(y){var W=y.JSC$17120_value_;if(W==null)return null;Array.isArray(W)||(typeof W!=="string"?W=[W]:(W=W.trim(),W=W==""?[]:W.split(",").map(function(c){return c.trim()})));
return dtg(y,W)},dtg=function(y,W){var c=y.JSC$17120_key_+"[";
return Array.from(W,function(Z,G){return new Hr(c+G+"]",Z)})};
Hr.prototype.object=function(y){var W=this.JSC$17120_value_;if(W==null)return y===void 0&&LE(this),y;if(typeof W==="object"&&W.constructor===Object){y={};var c=this.JSC$17120_key_+".",Z;for(Z in W)y[Z]=new Hr(c+Z,W[Z]);return y}throw hDg(this,"object");};var vr=function(y){this.list_=SUH(y)},SUH=function(y){if(y instanceof vr)y=y.list_;
else if(y[0]instanceof vr){for(var W=new Set,c=0;c<y.length;c++)for(var Z=_.z(y[c].list_),G=Z.next();!G.done;G=Z.next())W.add(G.value);y=W}return[].concat(_.No(y))};
_.f=vr.prototype;_.f.each=function(y,W,c){((c===void 0?0:c)?UiB:_.Qa)(this.list_,y,W);return this};
_.f.size=function(){return this.list_.length};
_.f.isEmpty=function(){return this.list_.length===0};
_.f.get=function(y){return this.list_[y]||null};
_.f.el=function(){return this.list_[0]||null};
_.f.map=function(y,W){return _.Ng(this.list_,y,W)};
_.f.equals=function(y){return this===y||_.yT(this.list_,y.list_)};
_.f.first=function(){return this.list_.length==0?null:new d6(this.list_[0])};
_.f.find=function(y){var W=[];this.each(function(c){c=c.querySelectorAll(String(y));for(var Z=0;Z<c.length;Z++)W.push(c[Z])});
return new vr(W)};
_.f.parent=function(){var y=[];this.each(function(W){(W=W.parentElement||null)&&!_.Hy(y,W)&&y.push(W)});
return new vr(y)};
_.f.children=function(){var y=[];this.each(function(W){W=_.pd(W);for(var c=0;c<W.length;c++)y.push(W[c])});
return new vr(y)};
_.f.filter=function(y){y=_.cN(this.list_,Qtf(y));return new vr(y)};
_.f.closest=function(y){var W=[],c=Qtf(y),Z=function(G){return _.Hn(G)&&c(G)};
this.each(function(G){(G=_.CP(G,Z,!0))&&!_.Hy(W,G)&&W.push(G)});
return new vr(W)};
_.f.next=function(y){return TFS(this,_.tQ5,y)};
_.f.prev=function(y){return TFS(this,iUQ,y)};
var TFS=function(y,W,c){var Z=[];var G=c?Qtf(c):AI6;y.each(function(D){(D=W(D))&&G(D)&&Z.push(D)});
return new vr(Z)};
vr.prototype.setClass=function(y){return this.each(function(W){_.Vh(W,y)})};
var aEB=function(y,W){return y.each(function(c){_.VE(c,W)})},xt6=function(y,W){return y.each(function(c){_.Ph(c,W)})};
vr.prototype.toggleClass=function(y,W){return W===!0?aEB(this,y):W===!1?xt6(this,y):this.each(function(c){_.C$(c,y)?_.Ph(c,y):_.VE(c,y)})};
vr.prototype.setText=function(y){return this.each(function(W){_.PM(W,y)})};
var iH9=function(y){y.each(function(W){W.removeAttribute("aria-hidden")})};
vr.prototype.getStyle=function(y){if(this.list_.length>0){var W=this.list_[0],c=W.style[_.uM(y)];return typeof c!=="undefined"?c:W.style[_.pX2(W,y)]||""}};
vr.prototype.getData=function(y){if(this.list_.length===0)return new Hr(y,null);var W=lzf(this.list_[0],y);return new Hr(y,W)};
vr.prototype.focus=function(y){try{y?this.el().focus(y):this.el().focus()}catch(W){}return this};
vr.prototype.click=function(){var y=_.Pu(this.el());if(y.createEvent){var W=y.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,y.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(W)}else y=y.createEventObject(),y.clientX=0,y.clientY=0,y.screenX=0,y.screenY=0,y.altKey=!1,y.ctrlKey=!1,y.shiftKey=!1,y.button=0,this.el().fireEvent("onclick",y)};
var SU=function(y,W,c,Z){function G(u,t,b){var r=t;t&&t.parentNode&&(r=t.cloneNode(!0));u(r,b)}
Z=Z===void 0?!1:Z;if(y.list_.length==1){var D=y.list_[0],Y=function(u){return W(u,D)};
c instanceof vr?c.each(Y,void 0,Z):Array.isArray(c)?(Z?UiB:_.Qa)(c,Y):Y(c);return y}return y.each(function(u){c instanceof vr?c.each(function(t){G(W,t,u)}):Array.isArray(c)?_.Qa(c,function(t){G(W,t,u)}):G(W,c,u)})};
_.f=vr.prototype;_.f.append=function(y){return SU(this,function(W,c){W&&c.appendChild(W)},y)};
_.f.appendTo=function(y){(new vr([y])).append(this);return this};
_.f.remove=function(){return SU(this,function(y,W){_.to(W)},null)};
_.f.empty=function(){return SU(this,function(y,W){_.l5(W)},null)};
_.f.after=function(y,W){return SU(this,function(c,Z){c&&_.I_(c,Z)},y,!(W===void 0||W))};
_.f.before=function(y){return SU(this,function(W,c){W&&_.NL(W,c)},y)};
_.f.replaceWith=function(y){return SU(this,function(W,c){W&&_.m9E(W,c)},y)};
_.f.toggle=function(y){return this.each(function(W){_.Lg(W,y)})};
_.f.show=function(){return this.toggle(!0)};
_.f.hide=function(){return this.toggle(!1)};
_.f.trigger=function(y,W,c,Z){return Mz9(this,y,W,c,Z)};
var Mz9=function(y,W,c,Z,G){return y.each(function(D){_.yvE(_.Pu(D)).triggerWizEventInternal(D,W,c,Z,G)})},d6=function(y,W){y instanceof vr&&(W=y.list_,y=null);
this.list_=SUH(y!=null?[y]:W)};
_.j6(d6,vr);_.f=d6.prototype;_.f.children=function(){return new vr(Array.prototype.slice.call(_.pd(this.list_[0])))};
_.f.each=function(y,W){y.call(W,this.list_[0],0);return this};
_.f.size=function(){return 1};
_.f.el=function(){return this.list_[0]};
_.f.first=function(){return this};var Tl=function(y,W){W=W===void 0?window:W;this.hostId=y;this.JSC$17131_win=W;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$17131_previousHtmlOverscroll=this.JSC$17131_previousBodyOverscroll=this.JSC$17131_previousBodyOverflow="";this.eventTarget=new _.uU;this.JSC$17131_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
qU9=function(y){var W=eDf(eDf(eDf(new w0f(78),"po"),"hppp"),"hhc");
W.authUser=Number(_.Nn("SESSION_INDEX","0"));W.colorScheme=y;return W};
Tl.prototype.getOrigin=function(){return this.origin?this.origin:_.xp(_.a4(_.TF(new _.Tr,this.JSC$17131_win.location.protocol),this.JSC$17131_win.location.hostname),this.JSC$17131_win.location.port).toString()};
Tl.prototype.getTargetOrigin=function(){return _.xp(_.a4(_.TF(new _.Tr,this.scheme),this.domain),this.port)};
Tl.prototype.preloadIframe=function(y){var W=this;if(this.iframeLoadPromise===void 0){var c=document.createElement("iframe");this.iframe=c;FtZ(c,y);this.iframeLoadPromise=new Promise(function(Z,G){var D=!1,Y=function(u){u.stopPropagation();c.removeEventListener("error",Y);c.removeEventListener("securitypolicyviolation",Y);G(Error("hk",{cause:u}))};
c.addEventListener("error",Y);c.addEventListener("securitypolicyviolation",Y);setTimeout(function(){D||G(Error("ik"))},3E4);
kR6(W,c,function(){D=!0;c.removeEventListener("error",Y);c.removeEventListener("securitypolicyviolation",Y);Z()})});
jx6(this);y=this.getTargetOrigin().toString();c.setAttribute("allow","camera "+y+"; display-capture "+y);this.parentElement.appendChild(c)}return this.iframeLoadPromise};
var ct3=function(y,W){var c,Z;return _.m(function(G){if(G.nextAddress==1)return c=mvd(getComputedStyle(y.parentElement).direction==="rtl"),y.parentElement.appendChild(c),document.activeElement instanceof HTMLElement&&(y.elementToFocusAfterClose=document.activeElement),_.tm(G,2),_.n(G,y.preloadIframe(W),4);if(G.nextAddress!=2){y.parentElement.removeChild(c);y.JSC$17131_previousBodyOverflow=y.parentElement.style.overflow;y.JSC$17131_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
y.JSC$17131_previousBodyOverscroll=y.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";y.parentElement.style.overscrollBehavior="contain";y.parentElement.style.overflow="hidden";var D=y.iframe;D.style.bottom="0";D.style.border="none";D.style.height="100%";D.style.left="0";D.style.position=y.iframePosition;D.style.right="0";D.style.top="0";D.style.width="100%";D.style.zIndex="2202";D.setAttribute("aria-hidden","false");D.setAttribute("aria-modal","true");
y.opened=!0;ytZ(y);return _.J6(G,0)}Z=_.rs(G);y.parentElement.removeChild(c);XEf(y.isDarkTheme());WBd(y,!1);throw Error("jk",{cause:Z});})},WBd=function(y,W){W=W===void 0?!0:W;
y.iframe!==void 0&&(ZAZ(y),document.documentElement.style.overscrollBehavior=y.JSC$17131_previousHtmlOverscroll,y.parentElement.style.overscrollBehavior=y.JSC$17131_previousBodyOverscroll,y.parentElement.style.overflow=y.JSC$17131_previousBodyOverflow,y.elementToFocusAfterClose!==void 0&&(y.elementToFocusAfterClose.focus(),y.elementToFocusAfterClose=void 0),W?jx6(y):(y.parentElement.removeChild(y.iframe),y.iframe=void 0,y.iframeLoadPromise=void 0,y.mainChannel=void 0),y.opened=!1)},ZAZ=function(y){y.backgroundElementsAriaHiddenIsNull&&
(iH9(y.backgroundElementsAriaHiddenIsNull),y.backgroundElementsAriaHiddenIsNull=void 0);
y.backgroundElementsAriaHiddenIsFalse&&(y.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","false")}),y.backgroundElementsAriaHiddenIsFalse=void 0);
y.backgroundElementsWithoutInert&&(y.backgroundElementsWithoutInert.each(function(W){W.removeAttribute("inert")}),y.backgroundElementsWithoutInert=void 0)},ytZ=function(y){y.backgroundElementsAriaHiddenIsNull=(new d6(y.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")===null&&W!==y.iframe});
y.backgroundElementsAriaHiddenIsNull.each(function(W){W.setAttribute("aria-hidden","true")});
y.backgroundElementsAriaHiddenIsFalse=(new d6(y.iframe.parentElement)).children().filter(function(W){return W.getAttribute("aria-hidden")==="false"&&W!==y.iframe});
y.backgroundElementsAriaHiddenIsFalse.each(function(W){W.setAttribute("aria-hidden","true")});
y.backgroundElementsWithoutInert=(new d6(y.iframe.parentElement)).children().filter(function(W){return!W.hasAttribute("inert")&&W!==y.iframe});
y.backgroundElementsWithoutInert.each(function(W){W.setAttribute("inert","true")})},jx6=function(y){y=y.iframe;
y.style.bottom="-1000px";y.style.position="fixed";y.style.right="-1000px";y.style.border="";y.style.height="";y.style.left="";y.style.top="";y.style.width="";y.style.zIndex="";y.setAttribute("aria-hidden","true");y.setAttribute("aria-modal","false")};
Tl.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var w0f=function(y,W){Tl.call(this,u39[y],W);this.options=[];this.style=""};
_.R(w0f,Tl);var GIH=function(y){y.style="youtube";return y},frH=function(y,W){y.eventTarget.listen(RDd,W);
return y},oSZ=function(y,W){y.eventTarget.listen(OHB,W);
return y},eDf=function(y,W){y.options.push(W);
return y},D7H=function(y){var W=[y.getOrigin()];
y.ancestorOrigins&&W.push.apply(W,_.No(y.ancestorOrigins));var c=new _.Tr(y.JSC$17131_win.location.href),Z=y.startUrl?y.startUrl:y.options.includes("po")?"profile-picture/art":"profile-picture";W=eK(_.iU(y.getTargetOrigin(),Z),"origin",W);y.startUrl&&_.Hk(W,"startPath",y.startUrl);y.authUser>0&&_.Hk(W,"authuser",y.authUser);y.pageId!==void 0&&_.Hk(W,"pageId",y.pageId);_.Hk(W,"hostId",y.hostId);y.jsMode!==void 0&&_.Hk(W,"jsmode",y.jsMode);y.options.length>0&&_.Hk(W,"opts",y.options.join(","));try{for(var G=
_.z(["utm_source","utm_medium","utm_campaign","utm_content"]),D=G.next();!D.done;D=G.next()){var Y=D.value;_.Bk(c,Y)&&_.Hk(W,Y,_.Bk(c,Y))}var u,t=(u=y.hl)!=null?u:_.Bk(c,"hl");t!==void 0&&_.Hk(W,"hl",t)}catch(b){if(!(b instanceof URIError))throw b;}y.colorScheme&&_.Hk(W,"theme",y.colorScheme);y.style&&_.Hk(W,"style",y.style);return W},zZd=function(y,W){y.mainChannel=_.x6({destination:y.JSC$17131_win,
iframe:W,origin:y.getTargetOrigin().toString(),channelName:"ow",onMessage:function(c){c=F_D(c.data);if(W===y.iframe)switch(_.lm(c,1)){case 1:y.eventTarget.dispatchEvent(new IE6);WBd(y);break;case 2:y.eventTarget.dispatchEvent(new EPH(_.VT(_.RE(c,4)),_.VT(_.RE(c,2)),_.VT(_.lm(c,5)),_.VT(_.il(c,X0Q,6))));break;case 0:var Z;y.eventTarget.dispatchEvent(new NFD(_.VT(_.RE(c,2)),(Z=_.lm(c,3))!=null?Z:0));break;case 3:y.eventTarget.dispatchEvent(new IE6(!0));WBd(y,!1);break;case 4:y.eventTarget.dispatchEvent(new p0f)}}})},
kR6=function(y,W,c){_.x6({destination:y.JSC$17131_win,
iframe:W,origin:_.xp(_.a4(_.TF(new _.Tr,y.scheme),y.domain),y.port).toString(),channelName:"owi",onMessage:function(Z){W===y.iframe&&(c!==void 0&&c(),zZd(y,W),y.opened&&y.mainChannel.send(K_Q($t6())),Z.reply(),kR6(y,W))}})};
w0f.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Tl.prototype.preloadIframe.call(this,D7H(this).toString()):this.iframeLoadPromise};
w0f.prototype.openPicker=function(y){var W=this;return _.m(function(c){if(c.nextAddress==1)return W.startUrl=y?y:W.options.includes("po")?"profile-picture/art":"profile-picture",_.n(c,ct3(W,D7H(W).toString()),2);if(W.mainChannel){var Z=W.mainChannel,G=Z.send;var D=$t6();D=_.Ub(D,2,W.startUrl);G.call(Z,K_Q(D))}_.F2(c)})};var YoH=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(YoH,_.eD);_.f=YoH.prototype;_.f.getSize=function(){return ZI(this,1)};
_.f.setSize=function(y){return _.pi(this,1,y)};
_.f.getWidth=function(){return ZI(this,12)};
_.f.getHeight=function(){return ZI(this,13)};
_.f.setCenterCrop=function(y){return _.GY(this,20,y)};
_.f.getHtml=function(){return _.Ki(this,4)};
_.f.getToken=function(){return _.sR(this,24)};
_.f.setToken=function(y){return _.Ub(this,24,y)};
_.f.getBackgroundColor=function(){return ZI(this,87)};
_.f.hasBackgroundColor=function(){return _.yd(_.um(this,87))!=null};
_.f.getStoryboardLevel=function(){return ZI(this,109)};var ab=function(y){this.JSC$17139_value_=void 0;this.childNodes_={};if(y){var W=_.RTm(y);y=_.Sw(y);for(var c=0;c<W.length;c++)this.set(W[c],y[c])}};
ab.prototype.set=function(y,W){m7H(this,y,W,!1)};
ab.prototype.add=function(y,W){m7H(this,y,W,!0)};
var m7H=function(y,W,c,Z){for(var G=0;G<W.length;G++){var D=W.charAt(G);y.childNodes_[D]||(y.childNodes_[D]=new ab);y=y.childNodes_[D]}if(Z&&y.JSC$17139_value_!==void 0)throw Error("kk`"+W);y.JSC$17139_value_=c},sxS=function(y,W){for(var c=0;c<W.length;c++)if(y=y.childNodes_[W.charAt(c)],!y)return;
return y};
ab.prototype.get=function(y){return(y=sxS(this,y))?y.JSC$17139_value_:void 0};
ab.prototype.getValues=function(){var y=[];uqQ(this,y);return y};
var uqQ=function(y,W){y.JSC$17139_value_!==void 0&&W.push(y.JSC$17139_value_);for(var c in y.childNodes_)uqQ(y.childNodes_[c],W)};
ab.prototype.getKeys=function(y){var W=[];if(y){for(var c=this,Z=0;Z<y.length;Z++){var G=y.charAt(Z);if(!c.childNodes_[G])return[];c=c.childNodes_[G]}t_Z(c,y,W)}else t_Z(this,"",W);return W};
var t_Z=function(y,W,c){y.JSC$17139_value_!==void 0&&c.push(W);for(var Z in y.childNodes_)t_Z(y.childNodes_[Z],W+Z,c)};
_.f=ab.prototype;_.f.containsKey=function(y){return this.get(y)!==void 0};
_.f.containsValue=function(y){if(this.JSC$17139_value_===y)return!0;for(var W in this.childNodes_)if(this.childNodes_[W].containsValue(y))return!0;return!1};
_.f.clear=function(){this.childNodes_={};this.JSC$17139_value_=void 0};
_.f.remove=function(y){for(var W=this,c=[],Z=0;Z<y.length;Z++){var G=y.charAt(Z);if(!W.childNodes_[G])throw Error("lk`"+y);c.push([W,G]);W=W.childNodes_[G]}y=W.JSC$17139_value_;for(delete W.JSC$17139_value_;c.length>0;)if(Z=c.pop(),W=Z[0],Z=Z[1],W.childNodes_[Z].isEmpty())delete W.childNodes_[Z];else break;return y};
_.f.clone=function(){return new ab(this)};
_.f.getCount=function(){return wiQ(this.getValues())};
_.f.isEmpty=function(){return this.JSC$17139_value_===void 0&&_.Eb.isEmpty(this.childNodes_)};var gD9=function(){if(!nSS){var y=nSS=new ab,W;for(W in Xj9)y.add(W,Xj9[W])}},nSS,x9=function(y,W){this.types=y;
this.setters=W},Xj9={a:new x9([3,
0],[function(y,W){_.GY(y,21,W)},
function(y,W){_.pi(y,56,W)}]),
al:new x9([3],[function(y,W){_.GY(y,74,W)}]),
b:new x9([3,0],[function(y,W){_.GY(y,23,W)},
function(y,W){_.pi(y,38,W)}]),
ba:new x9([0],[function(y,W){_.pi(y,85,W)}]),
bc:new x9([0],[function(y,W){_.pi(y,87,W)}]),
br:new x9([0],[function(y,W){_.pi(y,86,W)}]),
c:new x9([3,0],[function(y,W){_.GY(y,2,W)},
function(y,W){_.pi(y,39,W)}]),
cc:new x9([3],[function(y,W){_.GY(y,51,W)}]),
ci:new x9([3],[function(y,W){_.GY(y,32,W)}]),
ckm:new x9([3],[function(y,W){_.GY(y,104,W)}]),
cp:new x9([0],[function(y,W){_.pi(y,92,W)}]),
cr:new x9([3],[function(y,W){_.GY(y,108,W)}]),
cv:new x9([0],[function(y,W){_.pi(y,94,W)}]),
d:new x9([3],[function(y,W){_.GY(y,3,W)}]),
dc:new x9([5],[function(y,W){_.Ub(y,99,W)}]),
df:new x9([3],[function(y,W){_.GY(y,80,W)}]),
dv:new x9([3],[function(y,W){_.GY(y,90,W)}]),
e:new x9([0],[function(y,W){_.pi(y,15,W)}]),
em:new x9([0],[function(y,W){_.pi(y,107,W)}]),
f:new x9([4],[function(y,W){_.Ub(y,16,W)}]),
fg:new x9([3],[function(y,W){_.GY(y,34,W)}]),
fh:new x9([3],[function(y,W){_.GY(y,30,W)}]),
fm:new x9([3],[function(y,W){_.GY(y,84,W)}]),
fo:new x9([2],[function(y,W){_.e5(y,79,_.SV(W))}]),
ft:new x9([3],[function(y,W){_.GY(y,50,W)}]),
fv:new x9([3],[function(y,W){_.GY(y,31,W)}]),
g:new x9([3],[function(y,W){_.GY(y,14,W)}]),
gce:new x9([4],[function(y,W){_.Ub(y,112,W)}]),
gd:new x9([3],[function(y,W){_.GY(y,83,W)}]),
gm:new x9([3],[function(y,W){_.GY(y,105,W)}]),
h:new x9([3,0],[function(y,W){_.GY(y,4,W)},
function(y,W){_.pi(y,13,W)}]),
i:new x9([3],[function(y,W){_.GY(y,22,W)}]),
ic:new x9([0],[function(y,W){_.pi(y,71,W)}]),
id:new x9([3],[function(y,W){_.GY(y,70,W)}]),
il:new x9([3],[function(y,W){_.GY(y,96,W)}]),
ip:new x9([3],[function(y,W){_.GY(y,54,W)}]),
iv:new x9([0],[function(y,W){_.tc(y,75,W)}]),
j:new x9([1],[function(y,W){W=W==null?W:OND(W);_.e5(y,29,W)}]),
k:new x9([3,0],[function(y,W){_.GY(y,17,W)},
function(y,W){_.pi(y,42,W)}]),
l:new x9([0],[function(y,W){_.pi(y,44,W)}]),
lf:new x9([3],[function(y,W){_.GY(y,65,W)}]),
lo:new x9([3],[function(y,W){_.GY(y,97,W)}]),
m:new x9([0],[function(y,W){_.pi(y,63,W)}]),
md:new x9([3],[function(y,W){_.GY(y,91,W)}]),
mm:new x9([4],[function(y,W){_.Ub(y,81,W)}]),
mo:new x9([3],[function(y,W){_.GY(y,73,W)}]),
mv:new x9([3],[function(y,W){_.GY(y,66,W)}]),
n:new x9([3],[function(y,W){y.setCenterCrop(W)}]),
nc:new x9([3],[function(y,W){_.GY(y,55,W)}]),
nd:new x9([3],[function(y,W){_.GY(y,53,W)}]),
ng:new x9([3],[function(y,W){_.GY(y,95,W)}]),
ngm:new x9([3],[function(y,W){_.GY(y,106,W)}]),
no:new x9([3],[function(y,W){_.GY(y,37,W)}]),
ns:new x9([3],[function(y,W){_.GY(y,40,W)}]),
nt0:new x9([4],[function(y,W){_.Ub(y,36,W)}]),
ntm:new x9([3],[function(y,W){_.GY(y,114,W)}]),
nu:new x9([3],[function(y,W){_.GY(y,46,W)}]),
nw:new x9([3],[function(y,W){_.GY(y,48,W)}]),
o:new x9([1,3],[function(y,W){W=W==null?W:OND(W);_.e5(y,7,W)},
function(y,W){_.GY(y,27,W)}]),
p:new x9([3,0],[function(y,W){_.GY(y,19,W)},
function(y,W){_.pi(y,43,W)}]),
pa:new x9([3],[function(y,W){_.GY(y,61,W)}]),
pc:new x9([0],[function(y,W){_.pi(y,88,W)}]),
pd:new x9([3],[function(y,W){_.GY(y,60,W)}]),
pf:new x9([3],[function(y,W){_.GY(y,67,W)}]),
pg:new x9([3],[function(y,W){_.GY(y,72,W)}]),
pi:new x9([2],[function(y,W){_.e5(y,76,_.SV(W))}]),
pp:new x9([3],[function(y,W){_.GY(y,52,W)}]),
pt:new x9([4],[function(y,W){_.Ub(y,111,W)}]),
q:new x9([4],[function(y,W){_.Ub(y,28,W)}]),
r:new x9([3,0],[function(y,W){_.GY(y,6,W)},
function(y,W){_.pi(y,26,W)}]),
ra:new x9([3],[function(y,W){_.GY(y,103,W)}]),
rf:new x9([3],[function(y,W){_.GY(y,100,W)}]),
rg:new x9([3],[function(y,W){_.GY(y,59,W)}]),
rh:new x9([3],[function(y,W){_.GY(y,49,W)}]),
rj:new x9([3],[function(y,W){_.GY(y,57,W)}]),
ro:new x9([2],[function(y,W){_.e5(y,78,_.SV(W))}]),
rp:new x9([3],[function(y,W){_.GY(y,58,W)}]),
rw:new x9([3],[function(y,W){_.GY(y,35,W)}]),
rwa:new x9([3],[function(y,W){_.GY(y,64,W)}]),
rwu:new x9([3],[function(y,W){_.GY(y,41,W)}]),
s:new x9([3,0],[function(y,W){_.GY(y,33,W)},
function(y,W){y.setSize(W)}]),
sb:new x9([0],[function(y,W){_.pi(y,110,W)}]),
sc:new x9([0],[function(y,W){_.pi(y,89,W)}]),
sg:new x9([3],[function(y,W){_.GY(y,82,W)}]),
sl:new x9([0],[function(y,W){_.pi(y,109,W)}]),
sm:new x9([3],[function(y,W){_.GY(y,93,W)}]),
t:new x9([4],[function(y,W){y.setToken(W)}]),
tm:new x9([3],[function(y,W){_.GY(y,113,W)}]),
u:new x9([3],[function(y,W){_.GY(y,18,W)}]),
ut:new x9([3],[function(y,W){_.GY(y,45,W)}]),
v:new x9([0],[function(y,W){_.pi(y,62,W)}]),
vb:new x9([0],[function(y,W){_.tc(y,68,W)}]),
vf:new x9([4],[function(y,W){_.Ub(y,102,W)}]),
vl:new x9([0],[function(y,W){_.tc(y,69,W)}]),
vm:new x9([3],[function(y,W){_.GY(y,98,W)}]),
w:new x9([0],[function(y,W){_.pi(y,12,W)}]),
x:new x9([0],[function(y,W){_.pi(y,9,W)}]),
y:new x9([0],[function(y,W){_.pi(y,10,W)}]),
ya:new x9([2],[function(y,W){_.e5(y,77,_.SV(W))}]),
z:new x9([0],[function(y,W){_.pi(y,11,W)}])};
gD9.prototype.parse=function(y){var W=new YoH,c=new YoH;if(y=="")y=!0;else{y=y.split("-");for(var Z=!0,G=0;G<y.length;G++){var D=y[G];if(D.length==0)Z=!1;else{var Y=D,u=!1;var t=Y;var b=Y.charAt(0);b!=b.toLowerCase()&&(u=!0,t=Y.charAt(0).toLowerCase()+Y.substring(1));var r=nSS;for(b=1;b<=t.length;++b){var F=r,K=t.substring(0,b);if(K.length==0?F.isEmpty():!sxS(F,K))break}t=b==1?null:(t=r.get(t.substring(0,b-1)))?{option:Y.substring(0,b-1),value:Y.substring(b-1),signed:u,attributes:t}:null;if(t){Y=
[];u=[];b=!1;for(r=0;r<t.attributes.types.length;r++){F=t.attributes.types[r];var l=t.value;K=G;if(t.signed&&F==1)for(var N=l.length;N<12&&K<y.length-1;)l+="-"+y[K+1],N=l.length,++K;else if(F==2)for(;K<y.length-1&&y[K+1].match(/^[\d\.]/);)l+="-"+y[K+1],++K;N=t.attributes.setters[r];l=bAH(this,F)(t.option,l,W,c,N);if(l===null){b=!0;G=K;break}else Y.push(F),u.push(l)}if(!b)for(t=0;t<u.length;t++)r=Y[t],l=u[t],rtD(this,r)(D,l);Z=Z&&b}else Z=!1}}y=Z}return new FBD(W,c,y)};
var i8=function(y,W,c,Z,G,D){G(c,W);y=y.charAt(0);D=D(y==y.toUpperCase());G(Z,D)};
_.f=gD9.prototype;_.f.parseAndSetIntOption_=function(y,W,c,Z,G){if(W=="")return 0;isFinite(W)&&(W=String(W));W=typeof W==="string"?/^\s*-?0x/i.test(W)?parseInt(W,16):parseInt(W,10):NaN;if(isNaN(W))return 1;i8(y,W,c,Z,G,Number);return null};
_.f.logIntParseError_=function(){};
_.f.parseAndSetFloatOption_=function(y,W,c,Z,G){if(W=="")return 0;var D=Number(W);W=D==0&&_.tH(W)?NaN:D;if(isNaN(W))return 1;i8(y,W,c,Z,G,Number);return null};
_.f.logFloatParseError_=function(){};
_.f.parseAndSetBoolOption_=function(y,W,c,Z,G){if(W!="")return 2;i8(y,!0,c,Z,G,Boolean);return null};
_.f.logBoolParseError_=function(){};
_.f.parseAndSetStringOption_=function(y,W,c,Z,G){if(W=="")return 0;i8(y,W,c,Z,G,function(D){return D?"1":""});
return null};
_.f.logStringParseError_=function(){};
_.f.parseAndSetUint64Base64Option_=function(y,W,c,Z,G){if(W=="")return 0;i8(y,W,c,Z,G,function(D){return D?1:0});
return null};
var bAH=function(y,W){switch(W){case 0:return(0,_.$r)(y.parseAndSetIntOption_,y);case 2:return(0,_.$r)(y.parseAndSetFloatOption_,y);case 3:return(0,_.$r)(y.parseAndSetBoolOption_,y);case 4:return(0,_.$r)(y.parseAndSetStringOption_,y);case 1:return(0,_.$r)(y.parseAndSetUint64Base64Option_,y);default:return function(){}}},rtD=function(y,W){switch(W){case 0:return(0,_.$r)(y.logIntParseError_,y);
case 2:return(0,_.$r)(y.logFloatParseError_,y);case 3:return(0,_.$r)(y.logBoolParseError_,y);case 4:case 1:return(0,_.$r)(y.logStringParseError_,y);default:return function(){}}},FBD=function(y,W,c){this.valueProto_=y;
this.signatureFlagProto_=W;this.JSC$17151_valid_=c};
FBD.prototype.isValid=function(){return this.JSC$17151_valid_};var UvQ=function(y){this.JSC$17152_parser_=null;this.JSC$17152_components_=[];this.JSC$17152_parsedOptions_=null;U76(this,y)},$7H=function(y){y.JSC$17152_parser_==null&&(y.JSC$17152_parser_=new gD9);
return y.JSC$17152_parser_},U76=function(y,W){y.JSC$17152_parsedOptions_=W?typeof W==="string"?$7H(y).parse(W):W:$7H(y).parse("")},Mz=function(y,W){return y==W?!1:!0};
_.f=UvQ.prototype;_.f.JSC$17154_setCrop=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,_.Ki(c,2),_.Ki(W.signatureFlagProto_,2))&&_.GY(c,2,y);return this};
_.f.JSC$17154_setCircleCrop=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,cr(c,51),cr(W.signatureFlagProto_,51))&&_.GY(c,51,y);return this};
_.f.JSC$17154_setImageCrop=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,cr(c,32),cr(W.signatureFlagProto_,32))&&_.GY(c,32,y);return this};
_.f.JSC$17154_setHeight=function(y){var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,c.getHeight(),W.signatureFlagProto_.getHeight())&&_.pi(c,13,y);return this};
_.f.setCenterCrop=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,_.Ki(c,20),_.Ki(W.signatureFlagProto_,20))&&c.setCenterCrop(y);return this};
_.f.JSC$17154_setSmartCrop=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,_.Ki(c,19),_.Ki(W.signatureFlagProto_,19))&&_.GY(c,19,y);return this};
_.f.JSC$17154_setPad=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,cr(c,60),cr(W.signatureFlagProto_,60))&&_.GY(c,60,y);return this};
_.f.JSC$17154_setSmartCropUseFace=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,_.Ki(c,67),_.Ki(W.signatureFlagProto_,67))&&_.GY(c,67,y);return this};
_.f.JSC$17154_setSmartCropNoClip=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,_.Ki(c,52),_.Ki(W.signatureFlagProto_,52))&&_.GY(c,52,y);return this};
_.f.setSize=function(y){var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,c.getSize(),W.signatureFlagProto_.getSize())&&c.setSize(y);return this};
_.f.setToken=function(y){y=y||void 0;var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,c.getToken(),W.signatureFlagProto_.getToken())&&c.setToken(y);return this};
_.f.JSC$17154_setWidth=function(y){var W=this.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(y,c.getWidth(),W.signatureFlagProto_.getWidth())&&_.pi(c,12,y);return this};
_.f.clearOptions=function(){U76(this,"");return this};
_.f.build=function(){this.JSC$17152_components_.length=0;var y=this.JSC$17152_parsedOptions_,W=y.valueProto_;y=y.signatureFlagProto_;eU(this,"s",W.getSize(),y.getSize());eU(this,"w",W.getWidth(),y.getWidth());w6(this,"c",_.Ki(W,2),_.Ki(y,2));w6(this,"d",_.Ki(W,3),_.Ki(y,3));eU(this,"h",W.getHeight(),y.getHeight());w6(this,"s",cr(W,33),cr(y,33));w6(this,"h",W.getHtml(),y.getHtml());w6(this,"p",_.Ki(W,19),_.Ki(y,19));w6(this,"pp",_.Ki(W,52),_.Ki(y,52));w6(this,"pf",_.Ki(W,67),_.Ki(y,67));w6(this,"n",
_.Ki(W,20),_.Ki(y,20));eU(this,"r",ZI(W,26),ZI(y,26));w6(this,"r",_.Ki(W,6),_.Ki(y,6));w6(this,"o",cr(W,27),cr(y,27));var c=VXQ(W,7);qz(this,"o",c,VXQ(y,7));c=VXQ(W,29);qz(this,"j",c,VXQ(y,29));eU(this,"x",ZI(W,9),ZI(y,9));eU(this,"y",ZI(W,10),ZI(y,10));eU(this,"z",ZI(W,11),ZI(y,11));w6(this,"g",_.Ki(W,14),_.Ki(y,14));eU(this,"e",ZI(W,15),ZI(y,15));qz(this,"f",_.sR(W,16),_.sR(y,16));w6(this,"k",cr(W,17),cr(y,17));w6(this,"u",cr(W,18),!0);w6(this,"ut",cr(W,45),!0);w6(this,"i",cr(W,22),!0);w6(this,
"a",cr(W,21),cr(y,21));w6(this,"b",_.Ki(W,23),_.Ki(y,23));eU(this,"b",ZI(W,38),ZI(y,38));eU(this,"c",ZI(W,39),ZI(y,39),16,8);qz(this,"q",_.sR(W,28),_.sR(y,28));w6(this,"fh",cr(W,30),cr(y,30));w6(this,"fv",cr(W,31),cr(y,31));w6(this,"fg",_.Ki(W,34),_.Ki(y,34));w6(this,"ci",cr(W,32),cr(y,32));qz(this,"t",W.getToken(),y.getToken());qz(this,"nt0",_.sR(W,36),_.sR(y,36));w6(this,"rw",_.Ki(W,35),_.Ki(y,35));w6(this,"rwu",_.Ki(W,41),_.Ki(y,41));w6(this,"rwa",_.Ki(W,64),_.Ki(y,64));w6(this,"nw",_.Ki(W,48),
_.Ki(y,48));w6(this,"rh",_.Ki(W,49),_.Ki(y,49));w6(this,"no",_.Ki(W,37),_.Ki(y,37));w6(this,"ns",cr(W,40),cr(y,40));eU(this,"k",ZI(W,42),ZI(y,42));eU(this,"p",ZI(W,43),ZI(y,43));eU(this,"l",ZI(W,44),ZI(y,44));eU(this,"v",ZI(W,62),ZI(y,62));w6(this,"nu",cr(W,46),cr(y,46));w6(this,"ft",cr(W,50),cr(y,50));w6(this,"cc",cr(W,51),cr(y,51));w6(this,"nd",cr(W,53),cr(y,53));w6(this,"ip",cr(W,54),cr(y,54));w6(this,"nc",cr(W,55),cr(y,55));eU(this,"a",ZI(W,56),ZI(y,56));w6(this,"rj",cr(W,57),cr(y,57));w6(this,
"rp",cr(W,58),cr(y,58));w6(this,"rg",cr(W,59),cr(y,59));w6(this,"pd",cr(W,60),cr(y,60));w6(this,"pa",cr(W,61),cr(y,61));eU(this,"m",ZI(W,63),ZI(y,63));eU(this,"vb",_.$6(W,68,_.s2),_.$6(y,68,_.s2));eU(this,"vl",_.$6(W,69,_.s2),_.$6(y,69,_.s2));w6(this,"lf",cr(W,65),cr(y,65));w6(this,"mv",cr(W,66),cr(y,66));w6(this,"id",cr(W,70),cr(y,70));eU(this,"ic",ZI(W,71),!0);w6(this,"pg",_.Ki(W,72),_.Ki(y,72));w6(this,"mo",cr(W,73),cr(y,73));w6(this,"al",cr(W,74),cr(y,74));eU(this,"iv",_.$6(W,75,_.s2),_.$6(y,
75,_.s2));eU(this,"pi",Gl(W,76),Gl(y,76));eU(this,"ya",Gl(W,77),Gl(y,77));eU(this,"ro",Gl(W,78),Gl(y,78));eU(this,"fo",Gl(W,79),Gl(y,79));w6(this,"df",cr(W,80),cr(y,80));qz(this,"mm",_.sR(W,81),_.sR(y,81));w6(this,"sg",cr(W,82),cr(y,82));w6(this,"gd",cr(W,83),cr(y,83));w6(this,"fm",cr(W,84),cr(y,84));eU(this,"ba",ZI(W,85),ZI(y,85));eU(this,"br",ZI(W,86),ZI(y,86));eU(this,"bc",W.getBackgroundColor(),y.getBackgroundColor(),16,8);eU(this,"pc",ZI(W,88),ZI(y,88),16,8);eU(this,"sc",ZI(W,89),ZI(y,89),16,
8);w6(this,"dv",cr(W,90),cr(y,90));w6(this,"md",cr(W,91),cr(y,91));eU(this,"cp",ZI(W,92),ZI(y,92));w6(this,"sm",cr(W,93),cr(y,93));eU(this,"cv",ZI(W,94),ZI(y,94));w6(this,"ng",cr(W,95),cr(y,95));w6(this,"il",cr(W,96),cr(y,96));w6(this,"lo",cr(W,97),cr(y,97));w6(this,"vm",cr(W,98),cr(y,98));qz(this,"dc",_.sR(W,99),_.sR(y,99));w6(this,"rf",cr(W,100),cr(y,100));qz(this,"vf",_.sR(W,102),_.sR(y,102));w6(this,"ra",_.Ki(W,103),_.Ki(y,103));w6(this,"ckm",cr(W,104),cr(y,104));w6(this,"gm",cr(W,105),cr(y,105));
w6(this,"ngm",cr(W,106),cr(y,106));eU(this,"em",ZI(W,107),ZI(y,107));w6(this,"cr",cr(W,108),cr(y,108));eU(this,"sl",W.getStoryboardLevel(),y.getStoryboardLevel());eU(this,"sb",ZI(W,110),ZI(y,110));qz(this,"pt",_.sR(W,111),_.sR(y,111));qz(this,"gce",_.sR(W,112),_.sR(y,112));w6(this,"tm",cr(W,113),cr(y,113));w6(this,"ntm",cr(W,114),cr(y,114));return this.JSC$17152_components_.join("-")};
var eU=function(y,W,c,Z,G,D){if(c!=null){var Y=G==void 0||G!=10&&G!=16?10:G;c=c.toString(Y);G=new v0g;G.append(Y==16?"0x":"");Y=G.append;D==void 0?D="":(D-=c.length,D=D<=0?"":(0,_.I0V)("0",D));Y.call(G,D);G.append(c);KB6(y,W,G.toString(),!!Z)}},w6=function(y,W,c,Z){c&&KB6(y,W,"",!!Z)},qz=function(y,W,c,Z){c&&KB6(y,W,c,!!Z)},KB6=function(y,W,c,Z){Z&&(W=W.charAt(0).toUpperCase()+W.substring(1));
y.JSC$17152_components_.push(W+c)};_.j6(tb,UvQ);_.f=tb.prototype;_.f.JSC$17154_setCrop=function(y){y&&k9(this);return tb.superClass_.JSC$17154_setCrop.call(this,y)};
_.f.JSC$17154_setHeight=function(y){y=y==null||y<0?void 0:y;y!=null&&this.setSize();return tb.superClass_.JSC$17154_setHeight.call(this,y)};
_.f.JSC$17154_setImageCrop=function(y){y&&k9(this);return tb.superClass_.JSC$17154_setImageCrop.call(this,y)};
_.f.JSC$17154_setCircleCrop=function(y){y&&k9(this);return tb.superClass_.JSC$17154_setCircleCrop.call(this,y)};
_.f.setSize=function(y){_.q1(y)&&(y=Math.max(y.width,y.height));y=y==null||y<0?void 0:y;y!=null&&(this.JSC$17154_setWidth(),this.JSC$17154_setHeight());return tb.superClass_.setSize.call(this,y)};
_.f.JSC$17154_setSmartCrop=function(y){y&&k9(this);return tb.superClass_.JSC$17154_setSmartCrop.call(this,y)};
_.f.JSC$17154_setSmartCropNoClip=function(y){y&&k9(this);return tb.superClass_.JSC$17154_setSmartCropNoClip.call(this,y)};
_.f.JSC$17154_setSmartCropUseFace=function(y){y&&k9(this);return tb.superClass_.JSC$17154_setSmartCropUseFace.call(this,y)};
_.f.setCenterCrop=function(y){y&&k9(this);return tb.superClass_.setCenterCrop.call(this,y)};
_.f.JSC$17154_setPad=function(y){y&&k9(this);return tb.superClass_.JSC$17154_setPad.call(this,y)};
_.f.JSC$17154_setWidth=function(y){y=y==null||y<0?void 0:y;y!=null&&this.setSize();return tb.superClass_.JSC$17154_setWidth.call(this,y)};
var OAd=function(y){y.clearOptions();var W=y.JSC$17152_parsedOptions_,c=W.valueProto_;Mz(!0,_.Ki(c,3),_.Ki(W.signatureFlagProto_,3))&&_.GY(c,3,!0);return y},k9=function(y){y.setCenterCrop();
y.JSC$17154_setCircleCrop();y.JSC$17154_setCrop();y.JSC$17154_setImageCrop();y.JSC$17154_setPad();y.JSC$17154_setSmartCrop();y.JSC$17154_setSmartCropNoClip();y.JSC$17154_setSmartCropUseFace()};
tb.prototype.build=function(){var y=this.JSC$17152_parsedOptions_.valueProto_;cr(y,18)||cr(y,45)?y.getSize()||this.setSize(0):(y=this.JSC$17152_parsedOptions_.valueProto_,y.getSize()||y.getWidth()||y.getHeight()||(this.setSize(),this.JSC$17154_setHeight(),this.JSC$17154_setWidth(),k9(this)));return tb.superClass_.build.call(this)};var gSB=/^[^\/]*\/\//,jp=function(y,W){W=W===void 0?!1:W;this.original_=y;this.originalPrefix_="";(y=this.original_.match(gSB))&&y[0]?(this.originalPrefix_=y[0],y=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):y="http://"+this.original_;this.uri_=_.ho(y,!0);this.isFreeformUrl_=W;this.JSC$17158_valid_=!0;this.obfuscated_=!1},RZZ=function(y,W){y.JSC$17160_pathPrefix_=y.JSC$17160_pathPrefix_?y.JSC$17160_pathPrefix_+("/"+W):W},yA=function(y){if(y.JSC$17160_components_==
void 0){var W=y.uri_.getPath().substring(1);
y.JSC$17160_pathPrefix_=null;if(y.isFreeformUrl_){y.JSC$17160_components_=[];if((W.match(/=/g)||[]).length>1)return y.JSC$17158_valid_=!1,y.JSC$17160_components_;var c=W.indexOf("=");c!=-1?(y.JSC$17160_components_.push(W.substr(0,c)),y.JSC$17160_components_.push(W.substr(c+1))):y.JSC$17160_components_.push(W);return y.JSC$17160_components_}y.JSC$17160_components_=W.split("/");W=y.JSC$17160_components_.length;W>2&&y.JSC$17160_components_[0]=="u"&&(RZZ(y,y.JSC$17160_components_[0]+"/"+y.JSC$17160_components_[1]),
y.JSC$17160_components_.shift(),y.JSC$17160_components_.shift(),W-=2);if(W==0||W==4||W>7)return y.JSC$17158_valid_=!1,y.JSC$17160_components_;if(W==2)RZZ(y,y.JSC$17160_components_[0]);else if(y.JSC$17160_components_[0]=="image")RZZ(y,y.JSC$17160_components_[0]);else if(W==7||W==3)return y.JSC$17158_valid_=!1,y.JSC$17160_components_;if(W<=3){y.obfuscated_=!0;W==3&&(RZZ(y,y.JSC$17160_components_[1]),y.JSC$17160_components_.shift(),--W);--W;c=y.JSC$17160_components_[W];var Z=c.indexOf("=");Z!=-1&&(y.JSC$17160_components_[W]=
c.substr(0,Z),y.JSC$17160_components_.push(c.substr(Z+1)))}}return y.JSC$17160_components_};
jp.prototype.isValid=function(){yA(this);return this.JSC$17158_valid_};
jp.prototype.isObfuscated=function(){yA(this);return this.obfuscated_};
var lrQ=function(y){yA(y);return y.isFreeformUrl_},WD=function(y){yA(y);
y.JSC$17160_pathPrefix_==void 0&&(y.JSC$17160_pathPrefix_=null);return y.JSC$17160_pathPrefix_},ESd=function(y){switch(yA(y).length){case 7:return!0;
case 6:return WD(y)==null;case 5:return!1;case 3:return!0;case 2:return WD(y)==null;case 1:return!1;default:return!1}},cD=function(y,W){if(lrQ(y))a:{switch(W){case 7:W=0;
break;case 4:if(!ESd(y)){y=null;break a}W=1;break;default:y=null;break a}y=yA(y)[W]}else if(y.isObfuscated())a:{var c=WD(y)!=null?1:0;switch(W){case 6:W=c;break;case 4:if(!ESd(y)){y=null;break a}W=1+c;break;default:y=null;break a}y=yA(y)[W]}else a:{c=WD(y)!=null?1:0;switch(W){case 0:W=c;break;case 1:W=1+c;break;case 2:W=2+c;break;case 3:W=3+c;break;case 4:if(!ESd(y)){y=null;break a}W=4+c;break;case 5:W=ESd(y)?1:0;W=4+c+W;break;default:y=null;break a}y=yA(y)[W]}return y};
jp.prototype.getOptions=function(){this.options_==void 0&&(this.options_=cD(this,4));return this.options_};var Os9=function(){};
Os9.prototype.parse=function(y,W){return new $vg(y,W===void 0?!1:W)};
var $vg=function(y,W){jp.call(this,y,W===void 0?!1:W)};
_.R($vg,jp);_.j6(nY,tb);var Kt9;nY.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
nY.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var y=nY.superClass_.build.call(this),W=[];WD(this.parsedImageUrl_)!=null&&W.push(WD(this.parsedImageUrl_));var c=lrQ(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Z=this.parsedImageUrl_;Z.obfuscatedData_==void 0&&(Z.obfuscatedData_=cD(Z,6));W.push(Z.obfuscatedData_+(y?"="+y:""))}else if(c){Z=W.push;var G=this.parsedImageUrl_;G.freeformUrlPath_===void 0&&(G.freeformUrlPath_=cD(G,
7));Z.call(W,G.freeformUrlPath_);y&&W.push(y)}else Z=W.push,G=this.parsedImageUrl_,G.obfuscatedGaiaId_==void 0&&(G.obfuscatedGaiaId_=cD(G,0)),Z.call(W,G.obfuscatedGaiaId_),Z=W.push,G=this.parsedImageUrl_,G.photoId_==void 0&&(G.photoId_=cD(G,1)),Z.call(W,G.photoId_),Z=W.push,G=this.parsedImageUrl_,G.imageVersion_==void 0&&(G.imageVersion_=cD(G,2)),Z.call(W,G.imageVersion_),Z=W.push,G=this.parsedImageUrl_,G.signature_==void 0&&(G.signature_=cD(G,3)),Z.call(W,G.signature_),y&&W.push(y),y=W.push,Z=this.parsedImageUrl_,
Z.filename_==void 0&&(Z.filename_=cD(Z,5)),y.call(W,Z.filename_);W=c?W.join("="):W.join("/");W=_.ho(this.protocolPrefix_+this.JSC$17166_domain_+"/"+W+(this.JSC$17166_query_?"?"+this.JSC$17166_query_:"")).toString();W.startsWith("%3a//")&&(W=W.replace("%3a//","://"));return W};var NUD=_.dl(["viewBox"]),Irf=_.dl(["width"]),pj3=_.dl(["height"]),P$H=_.dl(["fill"]),Jtd=_.dl(["id"]),V_Q=_.dl(["x"]),C$B=_.dl(["y"]);RYB.prototype.getLength=function(){return this.parsedData.length};
RYB.prototype.write=function(y){for(var W=0,c=this.parsedData.length;W<c;W++)y.put(this.parsedData[W],8)};
var JDD=function(y,W){var c=new RYB(W);y.dataList.push(c);c=y.errorCorrectLevel;var Z=1,G=encodeURI(W).toString().replace(/%[0-9a-fA-F]{2}/g,"a");W=G.length+(G.length!=W?3:0);G=0;for(var D=Z4.length;G<=D;G++){var Y=0;switch(c){case 1:Y=Z4[G][0];break;case 0:Y=Z4[G][1];break;case 3:Y=Z4[G][2];break;case 2:Y=Z4[G][3]}if(W<=Y)break;else Z++}if(Z>Z4.length)throw Error("uk");y.typeNumber=Z;y.dataCache=null};
lvB.prototype.isDark=function(y,W){if(y<0||this.moduleCount<=y||W<0||this.moduleCount<=W)throw Error("mk`"+y+"`"+W);return this.modules[y][W]};
for(var VsH=function(y,W,c){y.moduleCount=y.typeNumber*4+17;y.modules=Array(y.moduleCount);for(var Z=0;Z<y.moduleCount;Z++){y.modules[Z]=Array(y.moduleCount);for(var G=0;G<y.moduleCount;G++)y.modules[Z][G]=null}Qx6(y,0,0);Qx6(y,y.moduleCount-7,0);Qx6(y,0,y.moduleCount-7);Z=At6[y.typeNumber-1];for(G=0;G<Z.length;G++)for(var D=0;D<Z.length;D++){var Y=Z[G],u=Z[D];if(y.modules[Y][u]==null)for(var t=-2;t<=2;t++)for(var b=-2;b<=2;b++)y.modules[Y+t][u+b]=t==-2||t==2||b==-2||b==2||t==0&&b==0?!0:!1}for(Z=
8;Z<y.moduleCount-8;Z++)y.modules[Z][6]==null&&(y.modules[Z][6]=Z%2==0);for(Z=8;Z<y.moduleCount-8;Z++)y.modules[6][Z]==null&&(y.modules[6][Z]=Z%2==0);Z=y.errorCorrectLevel<<3|c;for(G=Z<<10;Gd(G)-Gd(1335)>=0;)G^=1335<<Gd(G)-Gd(1335);Z=(Z<<10|G)^21522;for(G=0;G<15;G++)D=!W&&(Z>>G&1)==1,G<6?y.modules[G][8]=D:G<8?y.modules[G+1][8]=D:y.modules[y.moduleCount-15+G][8]=D;for(G=0;G<15;G++)D=!W&&(Z>>G&1)==1,G<8?y.modules[8][y.moduleCount-G-1]=D:G<9?y.modules[8][15-G-1+1]=D:y.modules[8][15-G-1]=D;y.modules[y.moduleCount-
8][8]=!W;if(y.typeNumber>=7){Z=y.typeNumber;for(G=Z<<12;Gd(G)-Gd(7973)>=0;)G^=7973<<Gd(G)-Gd(7973);Z=Z<<12|G;for(G=0;G<18;G++)D=!W&&(Z>>G&1)==1,y.modules[Math.floor(G/3)][G%3+y.moduleCount-8-3]=D;for(G=0;G<18;G++)D=!W&&(Z>>G&1)==1,y.modules[G%3+y.moduleCount-8-3][Math.floor(G/3)]=D}if(y.dataCache==null){G=y.typeNumber;D=y.dataList;W=y.errorCorrectLevel;Z=hZS(G,W);if(Z==void 0)throw Error("tk`"+G+"`"+W);Y=Z.length/3;W=[];for(u=0;u<Y;u++){t=Z[u*3];b=Z[u*3+1];for(var r=Z[u*3+2],F=0;F<t;F++)W.push(new EDd(b,
r))}Z=new NeQ;for(Y=0;Y<D.length;Y++)u=D[Y],Z.put(u.mode,4),Z.put(u.getLength(),BUS(u.mode,G)),u.write(Z);for(Y=G=0;Y<W.length;Y++)G+=W[Y].dataCount;if(Z.length>G*8)throw Error("nk`"+Z.length+"`"+G*8);for(Z.length+4<=G*8&&Z.put(0,4);Z.length%8!=0;)HAQ(Z,!1);for(;!(Z.length>=G*8);){Z.put(236,8);if(Z.length>=G*8)break;Z.put(17,8)}D=G=b=0;Y=Array(W.length);u=Array(W.length);for(t=0;t<W.length;t++){F=W[t].dataCount;var K=W[t].totalCount-F;G=Math.max(G,F);D=Math.max(D,K);Y[t]=Array(F);for(r=0;r<Y[t].length;r++)Y[t][r]=
255&Z.buffer[r+b];b+=F;r=K;F=new X0([1],0);for(K=0;K<r;K++)F=F.multiply(new X0([1,LBD(K)],0));r=F;F=(new X0(Y[t],r.getLength()-1)).mod(r);u[t]=Array(r.getLength()-1);for(r=0;r<u[t].length;r++)K=r+F.getLength()-u[t].length,u[t][r]=K>=0?F.get(K):0}for(r=Z=0;r<W.length;r++)Z+=W[r].totalCount;Z=Array(Z);for(r=b=0;r<G;r++)for(t=0;t<W.length;t++)r<Y[t].length&&(Z[b++]=Y[t][r]);for(r=0;r<D;r++)for(t=0;t<W.length;t++)r<u[t].length&&(Z[b++]=u[t][r]);y.dataCache=Z}W=y.dataCache;Z=-1;G=y.moduleCount-1;D=7;Y=
0;for(u=y.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(t=0;t<2;t++)y.modules[G][u-t]==null&&(b=!1,Y<W.length&&(b=(W[Y]>>>D&1)==1),vSQ(c,G,u-t)&&(b=!b),y.modules[G][u-t]=b,D--,D==-1&&(Y++,D=7));G+=Z;if(G<0||y.moduleCount<=G){G-=Z;Z=-Z;break}}},Qx6=function(y,W,c){for(var Z=-1;Z<=7;Z++)if(!(W+Z<=-1||y.moduleCount<=W+Z))for(var G=-1;G<=7;G++)c+G<=-1||y.moduleCount<=c+G||(y.modules[W+Z][c+G]=0<=Z&&Z<=6&&(G==0||G==6)||0<=G&&G<=6&&(Z==0||Z==6)||2<=Z&&Z<=4&&2<=G&&G<=4?!0:!1)},CLH=function(y){for(var W=0,
c=0,Z=0;Z<8;Z++){VsH(y,!0,Z);
var G=y;for(var D=G.moduleCount,Y=0,u=0;u<D;u++)for(var t=0;t<D;t++){for(var b=0,r=G.isDark(u,t),F=-1;F<=1;F++)if(!(u+F<0||D<=u+F))for(var K=-1;K<=1;K++)t+K<0||D<=t+K||(F!=0||K!=0)&&r==G.isDark(u+F,t+K)&&b++;b>5&&(Y+=3+b-5)}for(u=0;u<D-1;u++)for(t=0;t<D-1;t++)if(b=0,G.isDark(u,t)&&b++,G.isDark(u+1,t)&&b++,G.isDark(u,t+1)&&b++,G.isDark(u+1,t+1)&&b++,b==0||b==4)Y+=3;for(u=0;u<D;u++)for(t=0;t<D-6;t++)G.isDark(u,t)&&!G.isDark(u,t+1)&&G.isDark(u,t+2)&&G.isDark(u,t+3)&&G.isDark(u,t+4)&&!G.isDark(u,t+5)&&
G.isDark(u,t+6)&&(Y+=40);for(t=0;t<D;t++)for(u=0;u<D-6;u++)G.isDark(u,t)&&!G.isDark(u+1,t)&&G.isDark(u+2,t)&&G.isDark(u+3,t)&&G.isDark(u+4,t)&&!G.isDark(u+5,t)&&G.isDark(u+6,t)&&(Y+=40);for(t=b=0;t<D;t++)for(u=0;u<D;u++)G.isDark(u,t)&&b++;G=Y+=Math.abs(100*b/D/D-50)/5*10;if(Z==0||W>G)W=G,c=Z}return c},At6=[[],
[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]],Gd=function(y){for(var W=0;y!=0;)W++,y>>>=1;return W},vSQ=function(y,W,c){switch(y){case 0:return(W+c)%2==0;
case 1:return W%2==0;case 2:return c%3==0;case 3:return(W+c)%3==0;case 4:return(Math.floor(W/2)+Math.floor(c/3))%2==0;case 5:return W*c%2+W*c%3==0;case 6:return(W*c%2+W*c%3)%2==0;case 7:return(W*c%3+(W+c)%2)%2==0;default:throw Error("ok`"+y);}},BUS=function(y,W){if(1<=W&&W<10)switch(y){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+y);}else if(W<27)switch(y){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+y);}else if(W<41)switch(y){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+y);}else throw Error("qk`"+W);},fJ=function(y){if(y<1)throw Error("rk`"+y);
return d79[y]},LBD=function(y){for(;y<0;)y+=255;
for(;y>=256;)y-=255;return oD[y]},oD=Array(256),d79=Array(256),So6=0;So6<8;So6++)oD[So6]=1<<So6;
for(var D4=8;D4<256;D4++)oD[D4]=oD[D4-4]^oD[D4-5]^oD[D4-6]^oD[D4-8];for(var TUD=0;TUD<255;TUD++)d79[oD[TUD]]=TUD;X0.prototype.get=function(y){return this.num[y]};
X0.prototype.getLength=function(){return this.num.length};
X0.prototype.multiply=function(y){for(var W=Array(this.getLength()+y.getLength()-1),c=0;c<this.getLength();c++)for(var Z=0;Z<y.getLength();Z++)W[c+Z]^=LBD(fJ(this.get(c))+fJ(y.get(Z)));return new X0(W,0)};
X0.prototype.mod=function(y){if(this.getLength()-y.getLength()<0)return this;for(var W=fJ(this.get(0))-fJ(y.get(0)),c=Array(this.getLength()),Z=0;Z<this.getLength();Z++)c[Z]=this.get(Z);for(Z=0;Z<y.getLength();Z++)c[Z]^=LBD(fJ(y.get(Z))+W);return(new X0(c,0)).mod(y)};
var ar9=[[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]],hZS=function(y,W){switch(W){case 1:return ar9[(y-1)*4];case 0:return ar9[(y-1)*4+1];case 3:return ar9[(y-1)*4+2];case 2:return ar9[(y-1)*4+3]}};
NeQ.prototype.get=function(y){return(this.buffer[Math.floor(y/8)]>>>7-y%8&1)==1};
NeQ.prototype.put=function(y,W){for(var c=0;c<W;c++)HAQ(this,(y>>>W-c-1&1)==1)};
var HAQ=function(y,W){var c=Math.floor(y.length/8);y.buffer.length<=c&&y.buffer.push(0);W&&(y.buffer[c]|=128>>>y.length%8);y.length++},Z4=[[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]],PLS=function(){var y=function(W,c){this.JSC$17186__el=W;this.JSC$17186__htOption=c};
y.prototype.draw=function(W){function c(r,F){r=document.createElementNS("http://www.w3.org/2000/svg",r);for(var K in F)F.hasOwnProperty(K)&&(K==="href"?_.k7S(r,F[K]):_.kX([_.yx(NUD),_.yx(Irf),_.yx(pj3),_.yx(P$H),_.yx(Jtd),_.yx(V_Q),_.yx(C$B)],r,K,F[K]));return r}
var Z=this.JSC$17186__htOption,G=this.JSC$17186__el,D=W.moduleCount;this.clear();var Y=c("svg",{viewBox:"0 0 "+String(D)+" "+String(D),width:"100%",height:"100%",fill:Z.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});G.appendChild(Y);Y.appendChild(c("rect",{fill:Z.colorLight,width:"100%",height:"100%"}));Y.appendChild(c("rect",{fill:Z.colorDark,width:"1",height:"1",id:"template"}));for(var u=0;u<D;u++)for(var t=0;t<D;t++)if(W.isDark(u,t)){var b=c("use",{x:String(u),y:String(t),href:"#template"});
Y.appendChild(b)}};
y.prototype.clear=function(){for(;this.JSC$17186__el.hasChildNodes();)this.JSC$17186__el.removeChild(this.JSC$17186__el.lastChild)};
return y}(),pEH=document.documentElement.tagName.toLowerCase()==="svg"?PLS:typeof CanvasRenderingContext2D!="undefined"?function(){var y=function(W,c){this._bIsPainted=!1;
IvZ();this.JSC$17186__htOption=c;this._elCanvas=document.createElement("canvas");this._elCanvas.width=c.width;this._elCanvas.height=c.height;W.appendChild(this._elCanvas);this.JSC$17186__el=W;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$17186__el.appendChild(this._elImage);this._bSupportDataURI=null};
y.prototype._onMakeImage=function(){var W=this._elCanvas.toDataURL("image/png");this._elImage.src=W;this._elImage.style.display="block";this._elCanvas.style.display="none"};
y.prototype._safeSetDataURI=function(W,c){var Z=this;Z._fFail=c;Z._fSuccess=W;Z._bSupportDataURI===null?(W=_.uC("IMG"),c=function(){Z._bSupportDataURI=!1;Z._fFail&&Z._fFail.call(Z)},W.onabort=c,W.onerror=c,W.onload=function(){Z._bSupportDataURI=!0;
Z._fSuccess&&Z._fSuccess.call(Z)},W.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):Z._bSupportDataURI===!0&&Z._fSuccess?Z._fSuccess.call(Z):Z._bSupportDataURI===!1&&Z._fFail&&Z._fFail.call(Z)};
y.prototype.draw=function(W){var c=this._oContext,Z=this.JSC$17186__htOption,G=W.moduleCount,D=Z.width/G,Y=Z.height/G,u=Math.round(D),t=Math.round(Y);this._elImage.style.display="none";this.clear();for(var b=0;b<G;b++)for(var r=0;r<G;r++){var F=W.isDark(b,r),K=r*D,l=b*Y;c.strokeStyle=F?Z.colorDark:Z.colorLight;c.lineWidth=1;c.fillStyle=F?Z.colorDark:Z.colorLight;c.fillRect(K,l,D,Y);c.strokeRect(Math.floor(K)+.5,Math.floor(l)+.5,u,t);c.strokeRect(Math.ceil(K)-.5,Math.ceil(l)-.5,u,t)}this._bIsPainted=
!0};
y.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
y.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
y.prototype.round=function(W){return W?Math.floor(W*1E3)/1E3:W};
return y}():function(){var y=function(W,c){this.JSC$17186__el=W;
this.JSC$17186__htOption=c};
y.prototype.draw=function(W){for(var c=this.JSC$17186__htOption,Z=this.JSC$17186__el,G=W.moduleCount,D=Math.floor(c.width/G),Y=Math.floor(c.height/G),u=['<table style="border:0;border-collapse:collapse;">'],t=0;t<G;t++){u.push("<tr>");for(var b=0;b<G;b++)u.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+D+"px;height:"+Y+"px;background-color:"+(W.isDark(t,b)?c.colorDark:c.colorLight)+';"></td>');u.push("</tr>")}u.push("</table>");W=u.join("");W=_.J9i(_.C9E,W);_.wf(Z,W);
W=Z.childNodes[0];G=(c.width-W.offsetWidth)/2;D=(c.height-W.offsetHeight)/2;G>0&&D>0&&(W.style.margin=D+"px "+G+"px")};
y.prototype.clear=function(){this.JSC$17186__el.textContent=""};
return y}();
Q06.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17189__android||this.JSC$17189__android>=3)&&this._oDrawing.makeImage()};
Q06.prototype.clear=function(){this._oDrawing.clear()};
_.DH.QRCode=Q06;var x7Q={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var zd=function(){};
zd.prototype.stringify=function(y){return _.DH.JSON.stringify(y,void 0)};
zd.prototype.parse=function(y){return _.DH.JSON.parse(y,void 0)};var iAB=function(){_.D9.call(this,"z")};
_.j6(iAB,_.D9);var M_B=function(){_.D9.call(this,"y")};
_.j6(M_B,_.D9);var eZQ=null,wj6=function(){return eZQ=eZQ||new _.uU},qoQ=function(y){_.D9.call(this,"serverreachability",y)};
_.j6(qoQ,_.D9);var Y5=function(y){var W=wj6();W.dispatchEvent(new qoQ(W,y))},kIQ=function(y){_.D9.call(this,"statevent",y)};
_.j6(kIQ,_.D9);var mL=function(y){var W=wj6();W.dispatchEvent(new kIQ(W,y))},jZd=function(y,W,c,Z){_.D9.call(this,"timingevent",y);
this.size=W;this.rtt=c;this.retries=Z};
_.j6(jZd,_.D9);var yy9=function(y,W,c){var Z=wj6();Z.dispatchEvent(new jZd(Z,y,W,c))},s6=function(y,W){if(typeof y!=="function")throw Error("vk");
return _.DH.setTimeout(function(){y()},W)};var uk=function(){this.redactEnabled_=!0};
uk.prototype.disableRedact=function(){this.redactEnabled_=!1};
var WWS=function(y,W,c,Z,G,D){y.info(function(){if(y.redactEnabled_)if(D){var Y="";for(var u=D.split("&"),t=0;t<u.length;t++){var b=u[t].split("=");if(b.length>1){var r=b[0];b=b[1];var F=r.split("_");Y=F.length>=2&&F[1]=="type"?Y+(r+"="+b+"&"):Y+(r+"=redacted&")}}}else Y=null;else Y=D;return"XMLHTTP REQ ("+Z+") [attempt "+G+"]: "+W+"\n"+c+"\n"+Y})},cy3=function(y,W,c,Z,G,D,Y){y.info(function(){return"XMLHTTP RESP ("+Z+") [ attempt "+G+"]: "+W+"\n"+c+"\n"+D+" "+Y})},t4=function(y,W,c,Z){y.info(function(){return"XMLHTTP TEXT ("+
W+"): "+ZBd(y,c)+(Z?" "+Z:"")})},G6Q=function(y,W){y.info(function(){return"TIMEOUT: "+W})};
uk.prototype.debug=function(){};
uk.prototype.info=function(){};
uk.prototype.warning=function(){};
var ZBd=function(y,W){if(!y.redactEnabled_)return W;if(!W)return null;try{var c=JSON.parse(W);if(c)for(var Z=0;Z<c.length;Z++)if(Array.isArray(c[Z])){var G=c[Z];if(!(G.length<2)){var D=G[1];if(Array.isArray(D)&&!(D.length<1)){var Y=D[0];if(Y!="noop"&&Y!="stop"&&Y!="close")for(var u=1;u<D.length;u++)D[u]=""}}}return(0,_.Up)(c)}catch(t){return y.debug("Exception parsing expected JS array - probably was not JS"),W}};var nJ=function(y,W,c,Z,G){this.JSC$17211_channel_=y;this.JSC$17211_channelDebug_=W;this.sid_=c;this.JSC$17211_rid_=Z;this.JSC$17211_retryId_=G||1;this.JSC$17211_eventHandler_=new _.q4(this);this.timeout_=45E3;this.JSC$17211_extraHeaders_=null;this.JSC$17211_successful_=!1;this.JSC$17211_postData_=this.JSC$17211_requestUri_=this.JSC$17211_baseUri_=this.JSC$17211_type_=this.JSC$17211_requestStartTime_=this.JSC$17211_watchDogTimeoutTime_=this.JSC$17211_watchDogTimerId_=null;this.JSC$17211_pendingMessages_=
[];this.JSC$17211_xmlHttp_=null;this.JSC$17211_xmlHttpChunkStart_=0;this.JSC$17211_lastError_=this.JSC$17211_verb_=null;this.JSC$17211_lastStatusCode_=-1;this.JSC$17211_cancelled_=!1;this.JSC$17211_readyStateChangeThrottleMs_=0;this.JSC$17211_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new f$S},f$S=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},onS=function(y,W){switch(y){case 0:return"Non-200 return code ("+W+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},D0S={},zrZ={};
nJ.prototype.setTimeout=function(y){this.timeout_=y};
var m06=function(y,W,c){y.JSC$17211_type_=1;y.JSC$17211_baseUri_=_.jm(W.clone());y.JSC$17211_postData_=c;y.decodeChunks_=!0;Ys6(y,null)},Ys6=function(y,W){y.JSC$17211_requestStartTime_=Date.now();
sZ9(y);y.JSC$17211_requestUri_=y.JSC$17211_baseUri_.clone();eK(y.JSC$17211_requestUri_,"t",y.JSC$17211_retryId_);y.JSC$17211_xmlHttpChunkStart_=0;var c=y.JSC$17211_channel_.JSC$17230_supportsCrossDomainXhrs_;y.fetchResponseState_=new f$S;y.JSC$17211_xmlHttp_=u_Q(y.JSC$17211_channel_,c?W:null,!y.JSC$17211_postData_);y.JSC$17211_readyStateChangeThrottleMs_>0&&(y.JSC$17211_readyStateChangeThrottle_=new _.ig((0,_.$r)(y.JSC$17215_xmlHttpHandler_,y,y.JSC$17211_xmlHttp_),y.JSC$17211_readyStateChangeThrottleMs_));
y.JSC$17211_eventHandler_.listen(y.JSC$17211_xmlHttp_,"readystatechange",y.JSC$17215_readyStateChangeHandler_);W=y.JSC$17211_extraHeaders_?_.Eb.clone(y.JSC$17211_extraHeaders_):{};y.JSC$17211_postData_?(y.JSC$17211_verb_||(y.JSC$17211_verb_="POST"),W["Content-Type"]="application/x-www-form-urlencoded",y.JSC$17211_xmlHttp_.send(y.JSC$17211_requestUri_,y.JSC$17211_verb_,y.JSC$17211_postData_,W)):(y.JSC$17211_verb_="GET",y.JSC$17211_xmlHttp_.send(y.JSC$17211_requestUri_,y.JSC$17211_verb_,null,W));Y5(1);
WWS(y.JSC$17211_channelDebug_,y.JSC$17211_verb_,y.JSC$17211_requestUri_,y.JSC$17211_rid_,y.JSC$17211_retryId_,y.JSC$17211_postData_)};
nJ.prototype.JSC$17215_readyStateChangeHandler_=function(y){y=y.target;var W=this.JSC$17211_readyStateChangeThrottle_;W&&_.K$(y)==3?(this.JSC$17211_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$17215_xmlHttpHandler_(y)};
nJ.prototype.JSC$17215_xmlHttpHandler_=function(y){try{y==this.JSC$17211_xmlHttp_?tc9(this):this.JSC$17211_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(W){this.JSC$17211_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),nng(this)}finally{}};
var tc9=function(y){var W=_.K$(y.JSC$17211_xmlHttp_),c=y.JSC$17211_xmlHttp_.JSC$7661_lastErrorCode_,Z=y.JSC$17211_xmlHttp_.getStatus();if(!(W<3||W==3&&!nng(y))){y.JSC$17211_cancelled_||W!=4||c==7||(c==8||Z<=0?Y5(3):Y5(2));X8Q(y);var G=y.JSC$17211_xmlHttp_.getStatus();y.JSC$17211_lastStatusCode_=G;c=bB9(y);nng(y)||y.JSC$17211_channelDebug_.debug(function(){return"No response text for uri "+y.JSC$17211_requestUri_+" status "+G});
y.JSC$17211_successful_=G==200;cy3(y.JSC$17211_channelDebug_,y.JSC$17211_verb_,y.JSC$17211_requestUri_,y.JSC$17211_rid_,y.JSC$17211_retryId_,W,G);if(y.JSC$17211_successful_){if(y.decodeInitialResponse_&&!y.initialResponseDecoded_)if(Z=ryH(y))t4(y.JSC$17211_channelDebug_,y.JSC$17211_rid_,Z,"Initial handshake response via X-HTTP-Initial-Response"),y.initialResponseDecoded_=!0,FW3(y,Z);else{y.JSC$17211_successful_=!1;y.JSC$17211_lastError_=3;mL(12);y.JSC$17211_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
y.JSC$17211_rid_+")");Xn(y);bk(y);return}y.decodeChunks_?U03(y,W,c):(t4(y.JSC$17211_channelDebug_,y.JSC$17211_rid_,c,null),FW3(y,c));W==4&&Xn(y);y.JSC$17211_successful_&&!y.JSC$17211_cancelled_&&(W==4?$0f(y.JSC$17211_channel_,y):(y.JSC$17211_successful_=!1,sZ9(y)))}else ob9(y.JSC$17211_xmlHttp_),G==400&&c.indexOf("Unknown SID")>0?(y.JSC$17211_lastError_=3,mL(12),y.JSC$17211_channelDebug_.warning("XMLHTTP Unknown SID ("+y.JSC$17211_rid_+")")):(y.JSC$17211_lastError_=0,mL(13),y.JSC$17211_channelDebug_.warning("XMLHTTP Bad status "+
G+" ("+y.JSC$17211_rid_+")")),Xn(y),bk(y)}},ryH=function(y){return y.JSC$17211_xmlHttp_&&(y=G4(y.JSC$17211_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.tH(y)?y:null},bB9=function(y){if(!KWD(y))return y.JSC$17211_xmlHttp_.getResponseText();
var W=y.JSC$17211_xmlHttp_.getResponse();if(W==="")return"";var c="",Z=W.length,G=_.K$(y.JSC$17211_xmlHttp_)==4;if(!y.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Xn(y),bk(y),"";y.fetchResponseState_.textDecoder=new _.DH.TextDecoder}for(var D=0;D<Z;D++)y.fetchResponseState_.responseArrivedForFetch=!0,c+=y.fetchResponseState_.textDecoder.decode(W[D],{stream:!(G&&D==Z-1)});W.length=0;y.fetchResponseState_.responseBuffer+=c;y.JSC$17211_xmlHttpChunkStart_=0;return y.fetchResponseState_.responseBuffer},
nng=function(y){return y.JSC$17211_xmlHttp_?y.fetchResponseState_.responseArrivedForFetch?!0:!(!y.JSC$17211_xmlHttp_.getResponseText()&&!y.JSC$17211_xmlHttp_.getResponse()):!1},KWD=function(y){return y.JSC$17211_xmlHttp_?y.JSC$17211_verb_=="GET"&&y.JSC$17211_type_!=2&&y.JSC$17211_channel_.usesFetchStreams_:!1},U03=function(y,W,c){for(var Z=!0,G;!y.JSC$17211_cancelled_&&y.JSC$17211_xmlHttpChunkStart_<c.length;)if(G=OB6(y,c),G==zrZ){W==4&&(y.JSC$17211_lastError_=4,mL(14),Z=!1);
t4(y.JSC$17211_channelDebug_,y.JSC$17211_rid_,null,"[Incomplete Response]");break}else if(G==D0S){y.JSC$17211_lastError_=4;mL(15);t4(y.JSC$17211_channelDebug_,y.JSC$17211_rid_,c,"[Invalid Chunk]");Z=!1;break}else t4(y.JSC$17211_channelDebug_,y.JSC$17211_rid_,G,null),FW3(y,G);KWD(y)&&y.JSC$17211_xmlHttpChunkStart_!=0&&(y.fetchResponseState_.responseBuffer=y.fetchResponseState_.responseBuffer.slice(y.JSC$17211_xmlHttpChunkStart_),y.JSC$17211_xmlHttpChunkStart_=0);W!=4||c.length!=0||y.fetchResponseState_.responseArrivedForFetch||
(y.JSC$17211_lastError_=1,mL(16),Z=!1);y.JSC$17211_successful_=y.JSC$17211_successful_&&Z;Z?c.length>0&&!y.firstByteReceived_&&(y.firstByteReceived_=!0,W=y.JSC$17211_channel_,W.JSC$17230_backChannelRequest_==y&&W.detectBufferingProxy_&&!W.bpDetectionDone_&&(W.JSC$17230_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),gn3(W),W.bpDetectionDone_=!0,mL(11))):(t4(y.JSC$17211_channelDebug_,y.JSC$17211_rid_,c,"[Invalid Chunked Response]"),Xn(y),bk(y))},OB6=function(y,W){var c=
y.JSC$17211_xmlHttpChunkStart_,Z=W.indexOf("\n",c);
if(Z==-1)return zrZ;c=Number(W.substring(c,Z));if(isNaN(c))return D0S;Z+=1;if(Z+c>W.length)return zrZ;W=W.slice(Z,Z+c);y.JSC$17211_xmlHttpChunkStart_=Z+c;return W};
nJ.prototype.cancel=function(){this.JSC$17211_cancelled_=!0;Xn(this)};
var sZ9=function(y){y.JSC$17211_watchDogTimeoutTime_=Date.now()+y.timeout_;Rr9(y,y.timeout_)},Rr9=function(y,W){if(y.JSC$17211_watchDogTimerId_!=null)throw Error("wk");
y.JSC$17211_watchDogTimerId_=s6((0,_.$r)(y.JSC$17215_onWatchDogTimeout_,y),W)},X8Q=function(y){y.JSC$17211_watchDogTimerId_&&(_.DH.clearTimeout(y.JSC$17211_watchDogTimerId_),y.JSC$17211_watchDogTimerId_=null)};
nJ.prototype.JSC$17215_onWatchDogTimeout_=function(){this.JSC$17211_watchDogTimerId_=null;var y=Date.now();y-this.JSC$17211_watchDogTimeoutTime_>=0?(G6Q(this.JSC$17211_channelDebug_,this.JSC$17211_requestUri_),this.JSC$17211_type_!=2&&(Y5(3),mL(17)),Xn(this),this.JSC$17211_lastError_=2,bk(this)):(this.JSC$17211_channelDebug_.warning("WatchDog timer called too early"),Rr9(this,this.JSC$17211_watchDogTimeoutTime_-y))};
var bk=function(y){y.JSC$17211_channel_.state_==0||y.JSC$17211_cancelled_||$0f(y.JSC$17211_channel_,y)},Xn=function(y){X8Q(y);
_.Mg(y.JSC$17211_readyStateChangeThrottle_);y.JSC$17211_readyStateChangeThrottle_=null;y.JSC$17211_eventHandler_.removeAll();if(y.JSC$17211_xmlHttp_){var W=y.JSC$17211_xmlHttp_;y.JSC$17211_xmlHttp_=null;W.abort();W.dispose()}};
nJ.prototype.getLastError=function(){return this.JSC$17211_lastError_};
var FW3=function(y,W){try{var c=y.JSC$17211_channel_;if(c.state_!=0&&(c.JSC$17230_backChannelRequest_==y||l$D(c.forwardChannelRequestPool_,y)))if(!y.initialResponseDecoded_&&l$D(c.forwardChannelRequestPool_,y)&&c.state_==3){try{var Z=c.wireCodec_.JSC$17225_parser_.parse(W)}catch(u){Z=null}if(Array.isArray(Z)&&Z.length==3){W=Z;if(W[0]==0)a:if(c.JSC$17230_channelDebug_.debug("Server claims our backchannel is missing."),c.JSC$17230_backChannelTimerId_)c.JSC$17230_channelDebug_.debug("But we are currently starting the request.");
else{if(c.JSC$17230_backChannelRequest_)if(c.JSC$17230_backChannelRequest_.JSC$17211_requestStartTime_+3E3<y.JSC$17211_requestStartTime_)EnQ(c),N$B(c);else break a;else c.JSC$17230_channelDebug_.warning("We do not have a BackChannel established");I$B(c);mL(18)}else{c.JSC$17230_lastPostResponseArrayId_=W[1];var G=c.JSC$17230_lastPostResponseArrayId_-c.JSC$17230_lastArrayId_;if(0<G){var D=W[2];c.JSC$17230_channelDebug_.debug(D+" bytes (in "+G+" arrays) are outstanding on the BackChannel");D<37500&&
c.enableStreaming_&&c.JSC$17230_backChannelRetryCount_==0&&!c.JSC$17230_deadBackChannelTimerId_&&(c.JSC$17230_deadBackChannelTimerId_=s6((0,_.$r)(c.JSC$17232_onBackChannelDead_,c),6E3))}}if(p8B(c.forwardChannelRequestPool_)<=1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(u){}c.forwardChannelFlushedCallback_=void 0}}else c.JSC$17230_channelDebug_.debug("Bad POST response data returned"),r1(c,11)}else if((y.initialResponseDecoded_||c.JSC$17230_backChannelRequest_==
y)&&EnQ(c),!_.tH(W)){var Y=c.wireCodec_.JSC$17225_parser_.parse(W);c.onInput_(Y,y)}Y5(4)}catch(u){}};var PuH=function(y,W){this.JSC$17218_mapId=y;this.map=W;this.context=null};var JyH=function(y){this.maxPoolSizeConfigured_=y||10;_.DH.PerformanceNavigationTiming?(y=_.DH.performance.getEntriesByType("navigation"),y=y.length>0&&(y[0].nextHopProtocol=="hq"||y[0].nextHopProtocol=="h2")):y=!!(_.DH.chrome&&_.DH.chrome.loadTimes&&_.DH.chrome.loadTimes()&&_.DH.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17221_maxSize_=y?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17221_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17221_request_=null;this.JSC$17221_pendingMessages_=
[]},Vcg=function(y){return y.JSC$17221_request_?!0:y.requestPool_?y.requestPool_.size>=y.JSC$17221_maxSize_:!1},p8B=function(y){return y.JSC$17221_request_?1:y.requestPool_?y.requestPool_.size:0},l$D=function(y,W){return y.JSC$17221_request_?y.JSC$17221_request_==W:y.requestPool_?y.requestPool_.has(W):!1},CuB=function(y,W){y.requestPool_?y.requestPool_.add(W):y.JSC$17221_request_=W},QZZ=function(y,W){y.JSC$17221_request_&&y.JSC$17221_request_==W?y.JSC$17221_request_=null:y.requestPool_&&y.requestPool_.has(W)&&
y.requestPool_.delete(W)};
JyH.prototype.cancel=function(){this.JSC$17221_pendingMessages_=Ay3(this);if(this.JSC$17221_request_)this.JSC$17221_request_.cancel(),this.JSC$17221_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var y=_.z(this.requestPool_.values()),W=y.next();!W.done;W=y.next())W.value.cancel();this.requestPool_.clear()}};
JyH.prototype.hasPendingRequest=function(){return this.JSC$17221_request_!=null||this.requestPool_!=null&&this.requestPool_.size!==0};
var Ay3=function(y){if(y.JSC$17221_request_!=null)return y.JSC$17221_pendingMessages_.concat(y.JSC$17221_request_.JSC$17211_pendingMessages_);if(y.requestPool_!=null&&y.requestPool_.size!==0){var W=y.JSC$17221_pendingMessages_;y=_.z(y.requestPool_.values());for(var c=y.next();!c.done;c=y.next())W=W.concat(c.value.JSC$17211_pendingMessages_);return W}return _.SI(y.JSC$17221_pendingMessages_)},hrQ=function(y,W){y.JSC$17221_pendingMessages_=y.JSC$17221_pendingMessages_.concat(W)};var B$9=function(y,W){var c=new uk;c.debug("TestLoadImage: loading "+y);if(_.DH.Image){var Z=new Image;Z.onload=_.Fr(Fn,c,"TestLoadImage: loaded",!0,W,Z);Z.onerror=_.Fr(Fn,c,"TestLoadImage: error",!1,W,Z);Z.onabort=_.Fr(Fn,c,"TestLoadImage: abort",!1,W,Z);Z.ontimeout=_.Fr(Fn,c,"TestLoadImage: timeout",!1,W,Z);_.DH.setTimeout(function(){if(Z.ontimeout)Z.ontimeout()},1E4);
Z.src=y}else W(!1)},HBB=function(y,W){var c=new uk,Z=new AbortController,G=setTimeout(function(){Z.abort();
Fn(c,"TestPingServer: timeout",!1,W)},1E4);
fetch(y,{signal:Z.signal}).then(function(D){clearTimeout(G);D.ok?Fn(c,"TestPingServer: ok",!0,W):Fn(c,"TestPingServer: server error",!1,W)}).catch(function(){clearTimeout(G);
Fn(c,"TestPingServer: error",!1,W)})},Fn=function(y,W,c,Z,G){try{y.debug(W),G&&(G.onload=null,G.onerror=null,G.onabort=null,G.ontimeout=null),Z(c)}catch(D){}};var LWQ=function(){this.JSC$17225_parser_=new zd},vn6=function(y,W,c){var Z=c||"";
try{_.lLm(y,function(G,D){var Y=G;_.q1(G)&&(Y=(0,_.Up)(G));W.push(Z+D+"="+encodeURIComponent(Y))})}catch(G){throw W.push(Z+"type="+encodeURIComponent("_badmap")),G;
}};var U6=function(y,W,c){return c&&c.internalChannelParams?c.internalChannelParams[y]||W:W},$5=function(y){this.serverVersion_=0;
this.JSC$17230_outgoingMaps_=[];this.JSC$17230_channelDebug_=new uk;this.JSC$17230_hostPrefix_=this.JSC$17230_backChannelUri_=this.JSC$17230_forwardChannelUri_=this.JSC$17230_path_=this.JSC$17230_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17230_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17230_extraHeaders_=null;this.JSC$17230_nextMapId_=this.JSC$17230_nextRid_=0;this.JSC$17230_failFast_=U6("failFast",!1,y);this.enableStreaming_=this.JSC$17230_deadBackChannelTimerId_=
this.JSC$17230_backChannelTimerId_=this.JSC$17230_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17230_lastPostResponseArrayId_=this.JSC$17230_lastArrayId_=-1;this.JSC$17230_backChannelAttemptId_=this.JSC$17230_backChannelRetryCount_=this.JSC$17230_forwardChannelRetryCount_=0;this.JSC$17230_baseRetryDelayMs_=U6("baseRetryDelayMs",5E3,y);this.JSC$17230_retryDelaySeedMs_=U6("retryDelaySeedMs",1E4,y);this.JSC$17230_forwardChannelMaxRetries_=
U6("forwardChannelMaxRetries",2,y);this.JSC$17230_forwardChannelRequestTimeoutMs_=U6("forwardChannelRequestTimeoutMs",2E4,y);this.JSC$17230_xmlHttpFactory_=y&&y.xmlHttpFactory||void 0;this.networkTestUrl_=y&&y.networkTestUrl||void 0;this.usesFetchStreams_=y&&y.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17230_supportsCrossDomainXhrs_=y&&y.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new JyH(y&&y.concurrentRequestLimit);this.wireCodec_=new LWQ;this.fastHandshake_=
y&&y.fastHandshake||!1;this.encodeInitMessageHeaders_=y&&y.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17230_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=y&&y.blockingHandshake||!1;y&&y.disableRedact&&this.JSC$17230_channelDebug_.disableRedact();y&&y.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
y&&y.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;y&&y.longPollingTimeout&&y.longPollingTimeout>0&&(this.longPollingTimeout_=y.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
$5.prototype.JSC$17232_channelVersion_=8;$5.prototype.state_=1;
$5.prototype.connect=function(y,W,c,Z){this.JSC$17230_channelDebug_.debug("connect()");mL(0);this.JSC$17230_path_=y;this.JSC$17230_extraParams_=W||{};c&&Z!==void 0&&(this.JSC$17230_extraParams_.OSID=c,this.JSC$17230_extraParams_.OAID=Z);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17230_channelDebug_.debug("connectChannel_()");y=d0f(this,null,this.JSC$17230_path_);this.JSC$17230_channelDebug_.debug("GetForwardChannelUri: "+y);this.JSC$17230_forwardChannelUri_=y;Ss3(this)};
$5.prototype.disconnect=function(){this.JSC$17230_channelDebug_.debug("disconnect()");T$f(this);if(this.state_==3){var y=this.JSC$17230_nextRid_++,W=this.JSC$17230_forwardChannelUri_.clone();_.Hk(W,"SID",this.sid_);_.Hk(W,"RID",y);_.Hk(W,"TYPE","terminate");KJ(this,W);y=new nJ(this,this.JSC$17230_channelDebug_,this.sid_,y);y.JSC$17211_type_=2;y.JSC$17211_baseUri_=_.jm(W.clone());W=!1;if(_.DH.navigator&&_.DH.navigator.sendBeacon)try{W=_.DH.navigator.sendBeacon(y.JSC$17211_baseUri_.toString(),"")}catch(c){}!W&&
_.DH.Image&&((new Image).src=y.JSC$17211_baseUri_,W=!0);W||(y.JSC$17211_xmlHttp_=u_Q(y.JSC$17211_channel_,null),y.JSC$17211_xmlHttp_.send(y.JSC$17211_baseUri_));y.JSC$17211_requestStartTime_=Date.now();sZ9(y)}a$H(this)};
var N$B=function(y){y.JSC$17230_backChannelRequest_&&(gn3(y),y.JSC$17230_backChannelRequest_.cancel(),y.JSC$17230_backChannelRequest_=null)},T$f=function(y){N$B(y);
y.JSC$17230_backChannelTimerId_&&(_.DH.clearTimeout(y.JSC$17230_backChannelTimerId_),y.JSC$17230_backChannelTimerId_=null);EnQ(y);y.forwardChannelRequestPool_.cancel();y.JSC$17230_forwardChannelTimerId_&&(typeof y.JSC$17230_forwardChannelTimerId_==="number"&&_.DH.clearTimeout(y.JSC$17230_forwardChannelTimerId_),y.JSC$17230_forwardChannelTimerId_=null)};
$5.prototype.getState=function(){return this.state_};
var Ss3=function(y){Vcg(y.forwardChannelRequestPool_)||y.JSC$17230_forwardChannelTimerId_||(y.JSC$17230_forwardChannelTimerId_=!0,_.n$(y.JSC$17232_onStartForwardChannelTimer_,y),y.JSC$17230_forwardChannelRetryCount_=0)},iB6=function(y,W){if(p8B(y.forwardChannelRequestPool_)>=y.forwardChannelRequestPool_.JSC$17221_maxSize_-(y.JSC$17230_forwardChannelTimerId_?1:0))return!1;
if(y.JSC$17230_forwardChannelTimerId_)return y.JSC$17230_channelDebug_.debug("Use the retry request that is already scheduled."),y.JSC$17230_outgoingMaps_=W.JSC$17211_pendingMessages_.concat(y.JSC$17230_outgoingMaps_),!0;if(y.state_==1||y.state_==2||y.JSC$17230_forwardChannelRetryCount_>=(y.JSC$17230_failFast_?0:y.JSC$17230_forwardChannelMaxRetries_))return!1;y.JSC$17230_channelDebug_.debug("Going to retry POST");y.JSC$17230_forwardChannelTimerId_=s6((0,_.$r)(y.JSC$17232_onStartForwardChannelTimer_,
y,W),x0H(y,y.JSC$17230_forwardChannelRetryCount_));y.JSC$17230_forwardChannelRetryCount_++;return!0};
$5.prototype.JSC$17232_onStartForwardChannelTimer_=function(y){if(this.JSC$17230_forwardChannelTimerId_)if(this.JSC$17230_forwardChannelTimerId_=null,this.JSC$17230_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!y){this.JSC$17230_channelDebug_.debug("open_()");this.JSC$17230_nextRid_=Math.floor(Math.random()*1E5);y=this.JSC$17230_nextRid_++;var W=new nJ(this,this.JSC$17230_channelDebug_,"",y),c=this.JSC$17230_extraHeaders_;this.initHeaders_&&(c?(c=_.Eb.clone(c),_.Eb.extend(c,this.initHeaders_)):
c=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(W.JSC$17211_extraHeaders_=c,c=null);var Z;if(this.fastHandshake_)a:{for(var G=Z=0;G<this.JSC$17230_outgoingMaps_.length;G++){b:{var D=this.JSC$17230_outgoingMaps_[G];if("__data__"in D.map&&(D=D.map.__data__,typeof D==="string")){D=D.length;break b}D=void 0}if(D===void 0)break;Z+=D;if(Z>4096){Z=G;break a}if(Z===4096||G===this.JSC$17230_outgoingMaps_.length-1){Z=G+1;break a}}Z=1E3}else Z=1E3;Z=McH(this,W,Z);
G=this.JSC$17230_forwardChannelUri_.clone();_.Hk(G,"RID",y);_.Hk(G,"CVER",22);this.httpSessionIdParam_&&_.Hk(G,"X-HTTP-Session-Id",this.httpSessionIdParam_);KJ(this,G);c&&(this.encodeInitMessageHeaders_?Z="headers="+_.Cj(z8Q(c))+"&"+Z:this.httpHeadersOverwriteParam_&&YuZ(G,this.httpHeadersOverwriteParam_,c));CuB(this.forwardChannelRequestPool_,W);this.blockingHandshake_&&_.Hk(G,"TYPE","init");this.fastHandshake_?(_.Hk(G,"$req",Z),_.Hk(G,"SID","null"),W.decodeInitialResponse_=!0,m06(W,G,null)):m06(W,
G,Z);this.state_=2}}else this.state_==3&&(y?erg(this,y):this.JSC$17230_outgoingMaps_.length==0?this.JSC$17230_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Vcg(this.forwardChannelRequestPool_)||(erg(this),this.JSC$17230_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var erg=function(y,W){var c;W?c=W.JSC$17211_rid_:c=y.JSC$17230_nextRid_++;var Z=y.JSC$17230_forwardChannelUri_.clone();_.Hk(Z,"SID",y.sid_);_.Hk(Z,"RID",c);_.Hk(Z,"AID",y.JSC$17230_lastArrayId_);KJ(y,Z);y.httpHeadersOverwriteParam_&&y.JSC$17230_extraHeaders_&&YuZ(Z,y.httpHeadersOverwriteParam_,y.JSC$17230_extraHeaders_);c=new nJ(y,y.JSC$17230_channelDebug_,y.sid_,c,y.JSC$17230_forwardChannelRetryCount_+1);y.httpHeadersOverwriteParam_===null&&(c.JSC$17211_extraHeaders_=y.JSC$17230_extraHeaders_);W&&
(y.JSC$17230_outgoingMaps_=W.JSC$17211_pendingMessages_.concat(y.JSC$17230_outgoingMaps_));W=McH(y,c,1E3);c.setTimeout(Math.round(y.JSC$17230_forwardChannelRequestTimeoutMs_*.5)+Math.round(y.JSC$17230_forwardChannelRequestTimeoutMs_*.5*Math.random()));CuB(y.forwardChannelRequestPool_,c);m06(c,Z,W)},KJ=function(y,W){y.JSC$17230_extraParams_&&_.Eb.forEach(y.JSC$17230_extraParams_,function(c,Z){_.Hk(W,Z,c)});
y.handler_&&_.lLm({},function(c,Z){_.Hk(W,Z,c)})},McH=function(y,W,c){c=Math.min(y.JSC$17230_outgoingMaps_.length,c);
var Z=y.handler_?(0,_.$r)(y.handler_.JSC$17236_badMapError,y.handler_,y):null;a:{for(var G=y.JSC$17230_outgoingMaps_,D=-1;;){var Y=["count="+c];D==-1?c>0?(D=G[0].JSC$17218_mapId,Y.push("ofs="+D)):D=0:Y.push("ofs="+D);for(var u=!0,t=0;t<c;t++){var b=G[t].JSC$17218_mapId,r=G[t].map;b-=D;if(b<0)D=Math.max(0,G[t].JSC$17218_mapId-100),u=!1;else try{vn6(r,Y,"req"+b+"_")}catch(F){Z&&Z(r)}}if(u){Z=Y.join("&");break a}}Z=void 0}y=y.JSC$17230_outgoingMaps_.splice(0,c);W.JSC$17211_pendingMessages_=y;return Z},
w8H=function(y){y.JSC$17230_backChannelRequest_||y.JSC$17230_backChannelTimerId_||(y.JSC$17230_backChannelAttemptId_=1,_.n$(y.JSC$17232_onStartBackChannelTimer_,y),y.JSC$17230_backChannelRetryCount_=0)},I$B=function(y){if(y.JSC$17230_backChannelRequest_||y.JSC$17230_backChannelTimerId_||y.JSC$17230_backChannelRetryCount_>=3)return!1;
y.JSC$17230_channelDebug_.debug("Going to retry GET");y.JSC$17230_backChannelAttemptId_++;y.JSC$17230_backChannelTimerId_=s6((0,_.$r)(y.JSC$17232_onStartBackChannelTimer_,y),x0H(y,y.JSC$17230_backChannelRetryCount_));y.JSC$17230_backChannelRetryCount_++;return!0};
$5.prototype.JSC$17232_onStartBackChannelTimer_=function(){this.JSC$17230_backChannelTimerId_=null;qsD(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17230_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17230_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17230_backChannelRequest_+" "+this.handshakeRttMs_);else{var y=2*this.handshakeRttMs_;this.JSC$17230_channelDebug_.info("BP detection timer enabled: "+y);this.bpDetectionTimerId_=s6((0,_.$r)(this.onBpDetectionTimer_,
this),y)}};
$5.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17230_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17230_backChannelRequest_.JSC$17211_xmlHttp_!=null){var y=this.JSC$17230_backChannelRequest_.JSC$17211_xmlHttp_.getResponseText();y&&this.JSC$17230_channelDebug_.warning("Timer should have been cancelled : "+y)}this.JSC$17230_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;mL(10);N$B(this);qsD(this)}else this.JSC$17230_channelDebug_.warning("Invalid operation.")};
var gn3=function(y){y.bpDetectionTimerId_!=null&&(y.JSC$17230_channelDebug_.debug("Cancel the BP detection timer."),_.DH.clearTimeout(y.bpDetectionTimerId_),y.bpDetectionTimerId_=null)},qsD=function(y){y.JSC$17230_channelDebug_.debug("Creating new HttpRequest");
y.JSC$17230_backChannelRequest_=new nJ(y,y.JSC$17230_channelDebug_,y.sid_,"rpc",y.JSC$17230_backChannelAttemptId_);y.httpHeadersOverwriteParam_===null&&(y.JSC$17230_backChannelRequest_.JSC$17211_extraHeaders_=y.JSC$17230_extraHeaders_);y.JSC$17230_backChannelRequest_.JSC$17211_readyStateChangeThrottleMs_=0;var W=y.JSC$17230_backChannelUri_.clone();_.Hk(W,"RID","rpc");_.Hk(W,"SID",y.sid_);_.Hk(W,"AID",y.JSC$17230_lastArrayId_);_.Hk(W,"CI",y.enableStreaming_?"0":"1");!y.enableStreaming_&&y.longPollingTimeout_&&
_.Hk(W,"TO",y.longPollingTimeout_);_.Hk(W,"TYPE","xmlhttp");KJ(y,W);y.httpHeadersOverwriteParam_&&y.JSC$17230_extraHeaders_&&YuZ(W,y.httpHeadersOverwriteParam_,y.JSC$17230_extraHeaders_);y.backChannelRequestTimeoutMs_&&y.JSC$17230_backChannelRequest_.setTimeout(y.backChannelRequestTimeoutMs_);var c=y.JSC$17230_backChannelRequest_,Z=y.JSC$17230_hostPrefix_;c.JSC$17211_type_=1;c.JSC$17211_baseUri_=_.jm(W.clone());c.JSC$17211_postData_=null;c.decodeChunks_=!0;Ys6(c,Z);y.JSC$17230_channelDebug_.debug("New Request created")};
$5.prototype.JSC$17232_onBackChannelDead_=function(){this.JSC$17230_deadBackChannelTimerId_!=null&&(this.JSC$17230_deadBackChannelTimerId_=null,N$B(this),I$B(this),mL(19))};
var EnQ=function(y){y.JSC$17230_deadBackChannelTimerId_!=null&&(_.DH.clearTimeout(y.JSC$17230_deadBackChannelTimerId_),y.JSC$17230_deadBackChannelTimerId_=null)},$0f=function(y,W){y.JSC$17230_channelDebug_.debug("Request complete");
var c=null;if(y.JSC$17230_backChannelRequest_==W){EnQ(y);gn3(y);y.JSC$17230_backChannelRequest_=null;var Z=2}else if(l$D(y.forwardChannelRequestPool_,W))c=W.JSC$17211_pendingMessages_,QZZ(y.forwardChannelRequestPool_,W),Z=1;else return;if(y.state_!=0)if(W.JSC$17211_successful_)Z==1?(yy9(W.JSC$17211_postData_?W.JSC$17211_postData_.length:0,Date.now()-W.JSC$17211_requestStartTime_,y.JSC$17230_forwardChannelRetryCount_),Ss3(y)):w8H(y);else{var G=W.JSC$17211_lastStatusCode_,D=W.getLastError();if(D==3||
D==0&&G>0)y.JSC$17230_channelDebug_.debug("Not retrying due to error type"),G>200&&(y.errorResponseStatusCode_=W.JSC$17211_lastStatusCode_);else{y.JSC$17230_channelDebug_.debug(function(){return"Maybe retrying, last error: "+onS(D,y.errorResponseStatusCode_)});
if(Z==1&&iB6(y,W)||Z==2&&I$B(y))return;y.JSC$17230_channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&hrQ(y.forwardChannelRequestPool_,c);y.JSC$17230_channelDebug_.debug("Error: HTTP request failed");switch(D){case 1:r1(y,5);break;case 4:r1(y,10);break;case 3:r1(y,6);break;default:r1(y,2)}}},x0H=function(y,W){var c=y.JSC$17230_baseRetryDelayMs_+Math.floor(Math.random()*y.JSC$17230_retryDelaySeedMs_);
y.isActive()||(y.JSC$17230_channelDebug_.debug("Inactive channel"),c*=2);return c*W};
$5.prototype.onInput_=function(y,W){for(var c=0;c<y.length;c++){var Z=y[c];this.JSC$17230_lastArrayId_=Z[0];Z=Z[1];if(this.state_==2)if(Z[0]=="c"){this.sid_=Z[1];this.JSC$17230_hostPrefix_=Z[2];var G=Z[3];G!=null&&(this.JSC$17232_channelVersion_=G,this.JSC$17230_channelDebug_.info("VER="+this.JSC$17232_channelVersion_));G=Z[4];G!=null&&(this.serverVersion_=G,this.JSC$17230_channelDebug_.info("SVER="+this.serverVersion_));Z=Z[5];Z!=null&&typeof Z==="number"&&Z>0&&(this.backChannelRequestTimeoutMs_=
Z*=1.5,this.JSC$17230_channelDebug_.info("backChannelRequestTimeoutMs_="+Z));if(Z=W.JSC$17211_xmlHttp_){var D=G4(Z,"X-Client-Wire-Protocol");D&&(G=this.forwardChannelRequestPool_,!G.requestPool_&&(_.Xh(D,"spdy")||_.Xh(D,"quic")||_.Xh(D,"h2"))&&(G.JSC$17221_maxSize_=G.maxPoolSizeConfigured_,G.requestPool_=new Set,G.JSC$17221_request_&&(CuB(G,G.JSC$17221_request_),G.JSC$17221_request_=null)));this.httpSessionIdParam_&&((Z=G4(Z,"X-HTTP-Session-Id"))?(this.httpSessionId_=Z,_.Hk(this.JSC$17230_forwardChannelUri_,
this.httpSessionIdParam_,Z)):this.JSC$17230_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17236_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-W.JSC$17211_requestStartTime_,this.JSC$17230_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Z=W;G=d0f(this,this.JSC$17230_supportsCrossDomainXhrs_?this.JSC$17230_hostPrefix_:null,this.JSC$17230_path_);this.JSC$17230_channelDebug_.debug("GetBackChannelUri: "+
G);this.JSC$17230_backChannelUri_=G;Z.initialResponseDecoded_?(this.JSC$17230_channelDebug_.debug("Upgrade the handshake request to a backchannel."),QZZ(this.forwardChannelRequestPool_,Z),G=Z,(D=this.backChannelRequestTimeoutMs_)&&G.setTimeout(D),G.JSC$17211_watchDogTimerId_&&(X8Q(G),sZ9(G)),this.JSC$17230_backChannelRequest_=Z):w8H(this);this.JSC$17230_outgoingMaps_.length>0&&Ss3(this)}else Z[0]!="stop"&&Z[0]!="close"||r1(this,7);else this.state_==3&&(Z[0]=="stop"||Z[0]=="close"?Z[0]=="stop"?r1(this,
7):this.disconnect():Z[0]!="noop"&&this.handler_&&this.handler_.JSC$17236_channelHandleArray(Z),this.JSC$17230_backChannelRetryCount_=0)}};
var r1=function(y,W){y.JSC$17230_channelDebug_.info("Error code "+W);if(W==2){var c=(0,_.$r)(y.testNetworkCallback_,y),Z=y.networkTestUrl_,G=!Z;Z=new _.Tr(Z||"//www.google.com/images/cleardot.gif");_.DH.location&&_.DH.location.protocol=="http"||_.TF(Z,"https");_.jm(Z);G?B$9(Z.toString(),c):HBB(Z.toString(),c)}else mL(2);y.onError_(W)};
$5.prototype.testNetworkCallback_=function(y){y?(this.JSC$17230_channelDebug_.info("Successfully pinged google.com"),mL(2)):(this.JSC$17230_channelDebug_.info("Failed to ping google.com"),mL(1))};
$5.prototype.onError_=function(y){this.JSC$17230_channelDebug_.debug("HttpChannel: error - "+y);this.state_=0;this.handler_&&this.handler_.JSC$17236_channelError(y);a$H(this);T$f(this)};
var a$H=function(y){y.state_=0;y.nonAckedMapsAtChannelClose_=[];if(y.handler_){var W=Ay3(y.forwardChannelRequestPool_);if(W.length!=0||y.JSC$17230_outgoingMaps_.length!=0)y.JSC$17230_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+W.length+", outgoing: "+y.JSC$17230_outgoingMaps_.length}),_.eI(y.nonAckedMapsAtChannelClose_,W),_.eI(y.nonAckedMapsAtChannelClose_,y.JSC$17230_outgoingMaps_),y.forwardChannelRequestPool_.JSC$17221_pendingMessages_.length=0,_.SI(y.JSC$17230_outgoingMaps_),
y.JSC$17230_outgoingMaps_.length=0;
y.handler_.JSC$17236_channelClosed()}},k6B=function(y){if(y.state_==0)return y.nonAckedMapsAtChannelClose_;
var W=[];_.eI(W,Ay3(y.forwardChannelRequestPool_));_.eI(W,y.JSC$17230_outgoingMaps_);return W},d0f=function(y,W,c){var Z=_.ho(c);
Z.JSC$7898_domain_!=""?(W&&_.a4(Z,W+"."+Z.JSC$7898_domain_),_.xp(Z,Z.JSC$7898_port_)):(Z=_.DH.location,Z=kAS(Z.protocol,W?W+"."+Z.hostname:Z.hostname,+Z.port,c));W=y.httpSessionIdParam_;c=y.httpSessionId_;W&&c&&_.Hk(Z,W,c);_.Hk(Z,"VER",y.JSC$17232_channelVersion_);KJ(y,Z);return Z},u_Q=function(y,W,c){if(W&&!y.JSC$17230_supportsCrossDomainXhrs_)throw Error("xk");
W=y.usesFetchStreams_&&!y.JSC$17230_xmlHttpFactory_?new _.$p(new $9({streamBinaryChunks:c})):new _.$p(y.JSC$17230_xmlHttpFactory_);W.JSC$7661_withCredentials_=y.JSC$17230_supportsCrossDomainXhrs_;return W};
$5.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var j69=function(){};
_.f=j69.prototype;_.f.JSC$17236_channelOpened=function(){};
_.f.JSC$17236_channelHandleArray=function(){};
_.f.JSC$17236_channelError=function(){};
_.f.JSC$17236_channelClosed=function(){};
_.f.isActive=function(){return!0};
_.f.JSC$17236_badMapError=function(){};var yZZ=function(){},g1=function(y,W){_.uU.call(this);
this.JSC$17239_channel_=new $5(W);this.JSC$17239_url_=y;this.messageUrlParams_=W&&W.messageUrlParams||null;y=W&&W.messageHeaders||null;W&&W.clientProtocolHeaderRequired&&(y?_.Eb.set(y,"X-Client-Protocol","webchannel"):y=_.Eb.create("X-Client-Protocol","webchannel"));this.JSC$17239_channel_.JSC$17230_extraHeaders_=y;y=W&&W.initMessageHeaders||null;W&&W.messageContentType&&(y?_.Eb.set(y,"X-WebChannel-Content-Type",W.messageContentType):y=_.Eb.create("X-WebChannel-Content-Type",W.messageContentType));
W&&W.clientProfile&&(y?_.Eb.set(y,"X-WebChannel-Client-Profile",W.clientProfile):y=_.Eb.create("X-WebChannel-Client-Profile",W.clientProfile));this.JSC$17239_channel_.initHeaders_=y;(y=W&&W.httpHeadersOverwriteParam)&&!_.tH(y)&&(this.JSC$17239_channel_.httpHeadersOverwriteParam_=y);this.supportsCrossDomainXhr_=W&&W.supportsCrossDomainXhr||!1;this.sendRawJson_=W&&W.sendRawJson||!1;(W=W&&W.httpSessionIdParam)&&!_.tH(W)&&(this.JSC$17239_channel_.httpSessionIdParam_=W,_.Eb.containsKey(this.messageUrlParams_,
W)&&_.Eb.remove(this.messageUrlParams_,W));this.channelHandler_=new O6(this)};
_.j6(g1,_.uU);g1.prototype.open=function(){this.JSC$17239_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17239_channel_.JSC$17230_supportsCrossDomainXhrs_=!0);this.JSC$17239_channel_.connect(this.JSC$17239_url_,this.messageUrlParams_||void 0)};
g1.prototype.close=function(){this.JSC$17239_channel_.disconnect()};
g1.prototype.send=function(y){var W=this.JSC$17239_channel_;if(typeof y==="string"){var c={};c.__data__=y;y=c}else this.sendRawJson_&&(c={},c.__data__=(0,_.Up)(y),y=c);W.JSC$17230_outgoingMaps_.push(new PuH(W.JSC$17230_nextMapId_++,y));W.state_==3&&Ss3(W)};
g1.prototype.disposeInternal=function(){this.JSC$17239_channel_.handler_=null;delete this.channelHandler_;this.JSC$17239_channel_.disconnect();delete this.JSC$17239_channel_;g1.superClass_.disposeInternal.call(this)};
var WKB=function(y){iAB.call(this);y.__headers__&&(this.headers=y.__headers__,this.statusCode=y.__status__,delete y.__headers__,delete y.__status__);var W=y.__sm__;W?this.data=(this.metadataKey=_.Eb.getAnyKey(W))?_.Eb.get(W,this.metadataKey):W:this.data=y};
_.j6(WKB,iAB);var cZ6=function(y){M_B.call(this);this.status=1;this.errorCode=y};
_.j6(cZ6,M_B);var O6=function(y){this.JSC$17246_channel_=y};
_.j6(O6,j69);O6.prototype.JSC$17236_channelOpened=function(){this.JSC$17246_channel_.dispatchEvent("w")};
O6.prototype.JSC$17236_channelHandleArray=function(y){this.JSC$17246_channel_.dispatchEvent(new WKB(y))};
O6.prototype.JSC$17236_channelError=function(y){this.JSC$17246_channel_.dispatchEvent(new cZ6(y))};
O6.prototype.JSC$17236_channelClosed=function(){this.JSC$17246_channel_.dispatchEvent("x")};
var Z49=function(y,W){this.transportChannel_=y;this.JSC$17249_channel_=W},Gpf=function(y){return k6B(y.JSC$17249_channel_).map(function(W){var c=y.transportChannel_;
W=W.map;"__data__"in W?(W=W.__data__,c=c.sendRawJson_?(0,_.ZgE)(W):W):c=W;return c})};var RD=function(y){ffD.dispatchEvent(new os9(ffD,y))},ffD=new _.uU,os9=function(y){_.D9.call(this,"statevent",y)};
_.R(os9,_.D9);var lk=function(y,W,c,Z,G){this.JSC$17254_channel_=y;this.JSC$17254_channelDebug_=W;this.sid_=c;this.JSC$17254_rid_=Z;this.JSC$17254_retryId_=G||1;this.timeout_=45E3;this.JSC$17254_eventHandler_=new _.q4(this);this.pollingTimer_=new _.wJ;this.pollingTimer_.setInterval(250)};
_.f=lk.prototype;_.f.JSC$17256_extraHeaders_=null;_.f.JSC$17256_successful_=!1;_.f.JSC$17256_watchDogTimerId_=null;_.f.JSC$17256_watchDogTimeoutTime_=null;_.f.JSC$17256_requestStartTime_=null;_.f.JSC$17256_type_=null;_.f.JSC$17256_baseUri_=null;_.f.JSC$17256_requestUri_=null;_.f.JSC$17256_postData_=null;_.f.JSC$17256_xmlHttp_=null;_.f.JSC$17256_xmlHttpChunkStart_=0;_.f.trident_=null;_.f.JSC$17256_verb_=null;_.f.JSC$17256_lastError_=null;_.f.JSC$17256_lastStatusCode_=-1;_.f.sendClose_=!0;
_.f.JSC$17256_cancelled_=!1;_.f.JSC$17256_readyStateChangeThrottleMs_=0;_.f.JSC$17256_readyStateChangeThrottle_=null;var D69=function(y,W){switch(y){case 0:return"Non-200 return code ("+W+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},z5Q={},YO9={};
lk.prototype.setTimeout=function(y){this.timeout_=y};
var s6Q=function(y,W,c){y.JSC$17256_type_=1;y.JSC$17256_baseUri_=_.jm(W.clone());y.JSC$17256_postData_=c;y.decodeChunks_=!0;m6B(y,null)},uK9=function(y,W,c,Z,G){y.JSC$17256_type_=1;
y.JSC$17256_baseUri_=_.jm(W.clone());y.JSC$17256_postData_=null;y.decodeChunks_=c;G&&(y.sendClose_=!1);m6B(y,Z)},m6B=function(y,W){y.JSC$17256_requestStartTime_=Date.now();
ti6(y);y.JSC$17256_requestUri_=y.JSC$17256_baseUri_.clone();eK(y.JSC$17256_requestUri_,"t",y.JSC$17254_retryId_);y.JSC$17256_xmlHttpChunkStart_=0;y.JSC$17256_xmlHttp_=y.JSC$17254_channel_.JSC$17263_createXhrIo(y.JSC$17254_channel_.JSC$17263_shouldUseSecondaryDomains()?W:null);y.JSC$17256_readyStateChangeThrottleMs_>0&&(y.JSC$17256_readyStateChangeThrottle_=new _.ig((0,_.$r)(y.JSC$17256_xmlHttpHandler_,y,y.JSC$17256_xmlHttp_),y.JSC$17256_readyStateChangeThrottleMs_));y.JSC$17254_eventHandler_.listen(y.JSC$17256_xmlHttp_,
"readystatechange",y.JSC$17256_readyStateChangeHandler_);W=y.JSC$17256_extraHeaders_?_.Eb.clone(y.JSC$17256_extraHeaders_):{};y.JSC$17256_postData_?(y.JSC$17256_verb_="POST",W["Content-Type"]="application/x-www-form-urlencoded",y.JSC$17256_xmlHttp_.send(y.JSC$17256_requestUri_,y.JSC$17256_verb_,y.JSC$17256_postData_,W)):(y.JSC$17256_verb_="GET",y.sendClose_&&!_.oE&&(W.Connection="close"),y.JSC$17256_xmlHttp_.send(y.JSC$17256_requestUri_,y.JSC$17256_verb_,null,W));y.JSC$17254_channel_.notifyServerReachabilityEvent(1);
W=y.JSC$17254_channelDebug_;var c=y.JSC$17256_postData_;if(c){var Z="";c=c.split("&");for(var G=0;G<c.length;G++){var D=c[G].split("=");if(D.length>1){var Y=D[0];D=D[1];var u=Y.split("_");Z=u.length>=2&&u[1]=="type"?Z+(Y+"="+D+"&"):Z+(Y+"=redacted&")}}}else Z=null;W.info("XMLHTTP REQ ("+y.JSC$17254_rid_+") [attempt "+y.JSC$17254_retryId_+"]: "+y.JSC$17256_verb_+"\n"+y.JSC$17256_requestUri_+"\n"+Z)};
lk.prototype.JSC$17256_readyStateChangeHandler_=function(y){y=y.target;var W=this.JSC$17256_readyStateChangeThrottle_;W&&_.K$(y)==3?(this.JSC$17254_channelDebug_.debug("Throttling readystatechange."),W.fire()):this.JSC$17256_xmlHttpHandler_(y)};
lk.prototype.JSC$17256_xmlHttpHandler_=function(y){try{if(y==this.JSC$17256_xmlHttp_)a:{var W=_.K$(this.JSC$17256_xmlHttp_),c=this.JSC$17256_xmlHttp_.JSC$7661_lastErrorCode_,Z=this.JSC$17256_xmlHttp_.getStatus();if(_.oE&&!yh9("420+")){if(W<4)break a}else if(W<3||W==3&&!this.JSC$17256_xmlHttp_.getResponseText())break a;this.JSC$17256_cancelled_||W!=4||c==7||(c==8||Z<=0?this.JSC$17254_channel_.notifyServerReachabilityEvent(3):this.JSC$17254_channel_.notifyServerReachabilityEvent(2));nsf(this);var G=
this.JSC$17256_xmlHttp_.getStatus();this.JSC$17256_lastStatusCode_=G;var D=this.JSC$17256_xmlHttp_.getResponseText();D||this.JSC$17254_channelDebug_.debug("No response text for uri "+this.JSC$17256_requestUri_+" status "+G);this.JSC$17256_successful_=G==200;this.JSC$17254_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17254_rid_+") [ attempt "+this.JSC$17254_retryId_+"]: "+this.JSC$17256_verb_+"\n"+this.JSC$17256_requestUri_+"\n"+W+" "+G);if(this.JSC$17256_successful_){W==4&&E6(this);if(this.decodeChunks_){for(y=
!0;!this.JSC$17256_cancelled_&&this.JSC$17256_xmlHttpChunkStart_<D.length;){var Y=X2S(this,D);if(Y==YO9){W==4&&(this.JSC$17256_lastError_=4,RD(15),y=!1);N$(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,null,"[Incomplete Response]");break}else if(Y==z5Q){this.JSC$17256_lastError_=4;RD(16);N$(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,D,"[Invalid Chunk]");y=!1;break}else N$(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,Y,null),b4Q(this,Y)}W==4&&D.length==0&&(this.JSC$17256_lastError_=1,
RD(17),y=!1);this.JSC$17256_successful_=this.JSC$17256_successful_&&y;y||(N$(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,D,"[Invalid Chunked Response]"),E6(this),rZZ(this))}else N$(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,D,null),b4Q(this,D);this.JSC$17256_successful_&&!this.JSC$17256_cancelled_&&(W==4?this.JSC$17254_channel_.JSC$17263_onRequestComplete(this):(this.JSC$17256_successful_=!1,ti6(this)))}else G==400&&D.indexOf("Unknown SID")>0?(this.JSC$17256_lastError_=3,RD(13),this.JSC$17254_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17254_rid_+")")):(this.JSC$17256_lastError_=0,RD(14),this.JSC$17254_channelDebug_.warning("XMLHTTP Bad status "+G+" ("+this.JSC$17254_rid_+")")),E6(this),rZZ(this)}else this.JSC$17254_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(u){this.JSC$17254_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var X2S=function(y,W){var c=y.JSC$17256_xmlHttpChunkStart_,Z=W.indexOf("\n",c);if(Z==-1)return YO9;c=Number(W.substring(c,Z));if(isNaN(c))return z5Q;Z+=1;if(Z+c>W.length)return YO9;W=W.slice(Z,Z+c);y.JSC$17256_xmlHttpChunkStart_=Z+c;return W};
lk.prototype.cancel=function(){this.JSC$17256_cancelled_=!0;E6(this)};
var ti6=function(y){y.JSC$17256_watchDogTimeoutTime_=Date.now()+y.timeout_;FKH(y,y.timeout_)},FKH=function(y,W){if(y.JSC$17256_watchDogTimerId_!=null)throw Error("wk");
y.JSC$17256_watchDogTimerId_=bd((0,_.$r)(y.JSC$17256_onWatchDogTimeout_,y),W)},nsf=function(y){y.JSC$17256_watchDogTimerId_&&(_.DH.clearTimeout(y.JSC$17256_watchDogTimerId_),y.JSC$17256_watchDogTimerId_=null)};
lk.prototype.JSC$17256_onWatchDogTimeout_=function(){this.JSC$17256_watchDogTimerId_=null;var y=Date.now();y-this.JSC$17256_watchDogTimeoutTime_>=0?(this.JSC$17254_channelDebug_.info("TIMEOUT: "+this.JSC$17256_requestUri_),this.JSC$17256_type_!=2&&this.JSC$17254_channel_.notifyServerReachabilityEvent(3),E6(this),this.JSC$17256_lastError_=2,RD(18),rZZ(this)):(this.JSC$17254_channelDebug_.warning("WatchDog timer called too early"),FKH(this,this.JSC$17256_watchDogTimeoutTime_-y))};
var rZZ=function(y){y.JSC$17254_channel_.JSC$17263_isClosed()||y.JSC$17256_cancelled_||y.JSC$17254_channel_.JSC$17263_onRequestComplete(y)},E6=function(y){nsf(y);
_.Mg(y.JSC$17256_readyStateChangeThrottle_);y.JSC$17256_readyStateChangeThrottle_=null;y.pollingTimer_.stop();y.JSC$17254_eventHandler_.removeAll();if(y.JSC$17256_xmlHttp_){var W=y.JSC$17256_xmlHttp_;y.JSC$17256_xmlHttp_=null;W.abort();W.dispose()}y.trident_&&(y.trident_=null)};
lk.prototype.getLastError=function(){return this.JSC$17256_lastError_};
var b4Q=function(y,W){try{y.JSC$17254_channel_.JSC$17263_onRequestData(y,W),y.JSC$17254_channel_.notifyServerReachabilityEvent(4)}catch(c){}};var N$=function(y,W,c,Z){var G=y.info;a:if(c&&c!="y2f%"){try{var D=JSON.parse(c);if(D)for(var Y=0;Y<D.length;Y++)if(Array.isArray(D[Y])){var u=D[Y];if(!(u.length<2)){var t=u[1];if(Array.isArray(t)&&!(t.length<1)){var b=t[0];if(b!="noop"&&b!="stop")for(var r=1;r<t.length;r++)t[r]=""}}}var F=(0,_.Up)(D);break a}catch(K){y.debug("Exception parsing expected JS array - probably was not JS");F=c;break a}F=void 0}else F=c;G.call(y,"XMLHTTP TEXT ("+W+"): "+F+(Z?" "+Z:""))};
rw.prototype.debug=function(y){this.info(y)};
rw.prototype.info=function(){};
rw.prototype.warning=function(){};var U6H=function(y,W){this.JSC$17261_channel_=y;this.JSC$17261_channelDebug_=W;this.JSC$17261_parser_=new zd};
_.f=U6H.prototype;_.f.JSC$17263_extraHeaders_=null;_.f.JSC$17263_request_=null;_.f.receivedIntermediateResult_=!1;_.f.JSC$17263_path_=null;_.f.state_=null;_.f.JSC$17263_lastStatusCode_=-1;_.f.JSC$17263_hostPrefix_=null;_.f.blockedPrefix_=null;
_.f.connect=function(y){this.JSC$17263_path_=y;y=$6Z(this.JSC$17261_channel_,this.JSC$17263_path_);RD(3);Date.now();var W=this.JSC$17261_channel_.firstTestResults_;W!=null?(this.JSC$17263_hostPrefix_=W[0],(this.blockedPrefix_=W[1])?(this.state_=1,KKQ(this)):(this.state_=2,O4H(this))):(eK(y,"MODE","init"),this.JSC$17263_request_=new lk(this,this.JSC$17261_channelDebug_),this.JSC$17263_request_.JSC$17256_extraHeaders_=this.JSC$17263_extraHeaders_,uK9(this.JSC$17263_request_,y,!1,null,!0),this.state_=
0)};
var KKQ=function(y){var W=gs6(y.JSC$17261_channel_,y.blockedPrefix_,"/mail/images/cleardot.gif");_.jm(W);Be6(W.toString(),5E3,(0,_.$r)(y.checkBlockedCallback_,y),3,2E3);y.notifyServerReachabilityEvent(1)};
U6H.prototype.checkBlockedCallback_=function(y){if(y)this.state_=2,O4H(this);else{RD(4);var W=this.JSC$17261_channel_;W.JSC$17264_channelDebug_.debug("Test Connection Blocked");W.JSC$17268_lastStatusCode_=W.connectionTest_.JSC$17263_lastStatusCode_;ID(W,9)}y&&this.notifyServerReachabilityEvent(2)};
var O4H=function(y){y.JSC$17261_channelDebug_.debug("TestConnection: starting stage 2");var W=y.JSC$17261_channel_.secondTestResults_;W!=null?(y.JSC$17261_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+W?"Buffered":"Unbuffered"),RD(5),W?(RD(11),pJ(y.JSC$17261_channel_,y,!1)):(RD(12),pJ(y.JSC$17261_channel_,y,!0))):(y.JSC$17263_request_=new lk(y,y.JSC$17261_channelDebug_),y.JSC$17263_request_.JSC$17256_extraHeaders_=y.JSC$17263_extraHeaders_,W=R5d(y.JSC$17261_channel_,
y.JSC$17263_hostPrefix_,y.JSC$17263_path_),RD(5),eK(W,"TYPE","xmlhttp"),uK9(y.JSC$17263_request_,W,!1,y.JSC$17263_hostPrefix_,!1))};
_.f=U6H.prototype;_.f.JSC$17263_createXhrIo=function(y){return this.JSC$17261_channel_.JSC$17263_createXhrIo(y)};
_.f.abort=function(){this.JSC$17263_request_&&(this.JSC$17263_request_.cancel(),this.JSC$17263_request_=null);this.JSC$17263_lastStatusCode_=-1};
_.f.JSC$17263_isClosed=function(){return!1};
_.f.JSC$17263_onRequestData=function(y,W){this.JSC$17263_lastStatusCode_=y.JSC$17256_lastStatusCode_;if(this.state_==0)if(this.JSC$17261_channelDebug_.debug("TestConnection: Got data for stage 1"),W){try{var c=this.JSC$17261_parser_.parse(W)}catch(Z){lfQ(this.JSC$17261_channel_,this);return}this.JSC$17263_hostPrefix_=c[0];this.blockedPrefix_=c[1]}else this.JSC$17261_channelDebug_.debug("TestConnection: Null responseText"),lfQ(this.JSC$17261_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(RD(7),Date.now()):W=="11111"?(RD(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17263_lastStatusCode_=200,this.JSC$17263_request_.cancel(),this.JSC$17261_channelDebug_.debug("Test connection succeeded; using streaming connection"),RD(12),pJ(this.JSC$17261_channel_,this,!0)):(RD(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.f.JSC$17263_onRequestComplete=function(){this.JSC$17263_lastStatusCode_=this.JSC$17263_request_.JSC$17256_lastStatusCode_;this.JSC$17263_request_.JSC$17256_successful_?this.state_==0?(this.JSC$17261_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,KKQ(this)):(this.state_=2,O4H(this))):this.state_==2&&(this.JSC$17261_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17261_channelDebug_.debug("Test connection succeeded; using streaming connection"),
RD(12),pJ(this.JSC$17261_channel_,this,!0)):(this.JSC$17261_channelDebug_.debug("Test connection failed; not using streaming"),RD(11),pJ(this.JSC$17261_channel_,this,!1))):(this.JSC$17261_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?RD(9):this.state_==2&&RD(10),lfQ(this.JSC$17261_channel_,this,this.JSC$17263_request_.getLastError()))};
_.f.JSC$17263_shouldUseSecondaryDomains=function(){return this.JSC$17261_channel_.JSC$17263_shouldUseSecondaryDomains()};
_.f.isActive=function(){return this.JSC$17261_channel_.isActive()};
_.f.notifyServerReachabilityEvent=function(y){this.JSC$17261_channel_.notifyServerReachabilityEvent(y)};var PD=function(y,W,c){this.state_=1;this.JSC$17264_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17264_channelDebug_=new rw;this.JSC$17264_parser_=new zd;this.firstTestResults_=y||null;this.secondTestResults_=W!=null?W:null;this.asyncTest_=c||!1},Es3=function(y,W){this.JSC$17266_mapId=y;
this.map=W;this.context=null};
_.f=PD.prototype;_.f.JSC$17268_extraHeaders_=null;_.f.JSC$17268_extraParams_=null;_.f.forwardChannelRequest_=null;_.f.JSC$17268_backChannelRequest_=null;_.f.JSC$17268_path_=null;_.f.JSC$17268_forwardChannelUri_=null;_.f.JSC$17268_backChannelUri_=null;_.f.JSC$17268_hostPrefix_=null;_.f.JSC$17268_nextRid_=0;_.f.JSC$17268_nextMapId_=0;_.f.handler_=null;_.f.JSC$17268_forwardChannelTimerId_=null;_.f.JSC$17268_backChannelTimerId_=null;_.f.JSC$17268_deadBackChannelTimerId_=null;_.f.connectionTest_=null;
_.f.useChunked_=null;_.f.JSC$17268_lastArrayId_=-1;_.f.JSC$17268_lastPostResponseArrayId_=-1;_.f.JSC$17268_lastStatusCode_=-1;_.f.JSC$17268_forwardChannelRetryCount_=0;_.f.JSC$17268_backChannelRetryCount_=0;_.f.JSC$17268_channelVersion_=8;var NYQ={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},IfD=function(y,W,c,Z){_.D9.call(this,"timingevent",y);this.size=W;this.rtt=c;this.retries=Z};
_.j6(IfD,_.D9);var p2d=function(y){_.D9.call(this,"serverreachability",y)};
_.j6(p2d,_.D9);PD.prototype.connect=function(y,W,c,Z,G){this.JSC$17264_channelDebug_.debug("connect()");RD(0);this.JSC$17268_path_=W;this.JSC$17268_extraParams_=c||{};Z&&G!==void 0&&(this.JSC$17268_extraParams_.OSID=Z,this.JSC$17268_extraParams_.OAID=G);this.asyncTest_?(bd((0,_.$r)(this.connectTest_,this,y),100),PZZ(this)):this.connectTest_(y)};
PD.prototype.disconnect=function(){this.JSC$17264_channelDebug_.debug("disconnect()");JZS(this);if(this.state_==3){var y=this.JSC$17268_nextRid_++,W=this.JSC$17268_forwardChannelUri_.clone();_.Hk(W,"SID",this.sid_);_.Hk(W,"RID",y);_.Hk(W,"TYPE","terminate");J4(this,W);y=new lk(this,this.JSC$17264_channelDebug_,this.sid_,y);y.JSC$17256_type_=2;y.JSC$17256_baseUri_=_.jm(W.clone());(new Image).src=y.JSC$17256_baseUri_.toString();y.JSC$17256_requestStartTime_=Date.now();ti6(y)}Vif(this)};
PD.prototype.connectTest_=function(y){this.JSC$17264_channelDebug_.debug("connectTest_()");this.connectionTest_=new U6H(this,this.JSC$17264_channelDebug_);this.connectionTest_.JSC$17263_extraHeaders_=this.JSC$17268_extraHeaders_;this.connectionTest_.JSC$17261_parser_=this.JSC$17264_parser_;this.connectionTest_.connect(y)};
var PZZ=function(y){y.JSC$17264_channelDebug_.debug("connectChannel_()");y.JSC$17268_ensureInState_(1,0);y.JSC$17268_forwardChannelUri_=$6Z(y,y.JSC$17268_path_);CZZ(y)},JZS=function(y){y.connectionTest_&&(y.connectionTest_.abort(),y.connectionTest_=null);
y.JSC$17268_backChannelRequest_&&(y.JSC$17268_backChannelRequest_.cancel(),y.JSC$17268_backChannelRequest_=null);y.JSC$17268_backChannelTimerId_&&(_.DH.clearTimeout(y.JSC$17268_backChannelTimerId_),y.JSC$17268_backChannelTimerId_=null);Q66(y);y.forwardChannelRequest_&&(y.forwardChannelRequest_.cancel(),y.forwardChannelRequest_=null);y.JSC$17268_forwardChannelTimerId_&&(_.DH.clearTimeout(y.JSC$17268_forwardChannelTimerId_),y.JSC$17268_forwardChannelTimerId_=null)},AZ3=function(y,W){if(y.state_==0)throw Error("zk");
y.JSC$17264_outgoingMaps_.length==1E3&&y.JSC$17264_parser_.stringify(W);y.JSC$17264_outgoingMaps_.push(new Es3(y.JSC$17268_nextMapId_++,W));y.state_!=2&&y.state_!=3||CZZ(y)};
PD.prototype.JSC$17263_isClosed=function(){return this.state_==0};
PD.prototype.getState=function(){return this.state_};
var CZZ=function(y){y.forwardChannelRequest_||y.JSC$17268_forwardChannelTimerId_||(y.JSC$17268_forwardChannelTimerId_=bd((0,_.$r)(y.JSC$17268_onStartForwardChannelTimer_,y),0),y.JSC$17268_forwardChannelRetryCount_=0)};
PD.prototype.JSC$17268_onStartForwardChannelTimer_=function(y){this.JSC$17268_forwardChannelTimerId_=null;h5d(this,y)};
var h5d=function(y,W){y.JSC$17264_channelDebug_.debug("startForwardChannel_");if(y.state_==1){if(!W){y.JSC$17264_channelDebug_.debug("open_()");y.JSC$17268_nextRid_=Math.floor(Math.random()*1E5);W=y.JSC$17268_nextRid_++;var c=new lk(y,y.JSC$17264_channelDebug_,"",W);c.JSC$17256_extraHeaders_=y.JSC$17268_extraHeaders_;var Z=BYH(y),G=y.JSC$17268_forwardChannelUri_.clone();_.Hk(G,"RID",W);_.Hk(G,"CVER","1");J4(y,G);s6Q(c,G,Z);y.forwardChannelRequest_=c;y.state_=2}}else y.state_==3&&(W?H4Q(y,W):y.JSC$17264_outgoingMaps_.length==
0?y.JSC$17264_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):y.forwardChannelRequest_||(H4Q(y),y.JSC$17264_channelDebug_.debug("startForwardChannel_ finished, sent request")))},H4Q=function(y,W){if(W)if(y.JSC$17268_channelVersion_>6){y.JSC$17264_outgoingMaps_=y.pendingMaps_.concat(y.JSC$17264_outgoingMaps_);
y.pendingMaps_.length=0;var c=y.JSC$17268_nextRid_-1;W=BYH(y)}else c=W.JSC$17254_rid_,W=W.JSC$17256_postData_;else c=y.JSC$17268_nextRid_++,W=BYH(y);var Z=y.JSC$17268_forwardChannelUri_.clone();_.Hk(Z,"SID",y.sid_);_.Hk(Z,"RID",c);_.Hk(Z,"AID",y.JSC$17268_lastArrayId_);J4(y,Z);c=new lk(y,y.JSC$17264_channelDebug_,y.sid_,c,y.JSC$17268_forwardChannelRetryCount_+1);c.JSC$17256_extraHeaders_=y.JSC$17268_extraHeaders_;c.setTimeout(1E4+Math.round(1E4*Math.random()));y.forwardChannelRequest_=c;s6Q(c,Z,W)},
J4=function(y,W){y.handler_&&(y=y.handler_.JSC$17275_getAdditionalParams())&&_.Eb.forEach(y,function(c,Z){_.Hk(W,Z,c)})},BYH=function(y){var W=Math.min(y.JSC$17264_outgoingMaps_.length,1E3),c=["count="+W];
if(y.JSC$17268_channelVersion_>6&&W>0){var Z=y.JSC$17264_outgoingMaps_[0].JSC$17266_mapId;c.push("ofs="+Z)}else Z=0;for(var G={},D=0;D<W;G={mapId$jscomp$3:void 0},D++){G.mapId$jscomp$3=y.JSC$17264_outgoingMaps_[D].JSC$17266_mapId;var Y=y.JSC$17264_outgoingMaps_[D].map;G.mapId$jscomp$3=y.JSC$17268_channelVersion_<=6?D:G.mapId$jscomp$3-Z;try{_.Eb.forEach(Y,function(u){return function(t,b){c.push("req"+u.mapId$jscomp$3+"_"+b+"="+encodeURIComponent(t))}}(G))}catch(u){c.push("req"+G.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}y.pendingMaps_=y.pendingMaps_.concat(y.JSC$17264_outgoingMaps_.splice(0,W));
return c.join("&")},LKD=function(y){y.JSC$17268_backChannelRequest_||y.JSC$17268_backChannelTimerId_||(y.JSC$17268_backChannelAttemptId_=1,y.JSC$17268_backChannelTimerId_=bd((0,_.$r)(y.JSC$17268_onStartBackChannelTimer_,y),0),y.JSC$17268_backChannelRetryCount_=0)},d6S=function(y){if(y.JSC$17268_backChannelRequest_||y.JSC$17268_backChannelTimerId_||y.JSC$17268_backChannelRetryCount_>=3)return!1;
y.JSC$17264_channelDebug_.debug("Going to retry GET");y.JSC$17268_backChannelAttemptId_++;y.JSC$17268_backChannelTimerId_=bd((0,_.$r)(y.JSC$17268_onStartBackChannelTimer_,y),vsd(y,y.JSC$17268_backChannelRetryCount_));y.JSC$17268_backChannelRetryCount_++;return!0};
PD.prototype.JSC$17268_onStartBackChannelTimer_=function(){this.JSC$17268_backChannelTimerId_=null;this.JSC$17264_channelDebug_.debug("Creating new HttpRequest");this.JSC$17268_backChannelRequest_=new lk(this,this.JSC$17264_channelDebug_,this.sid_,"rpc",this.JSC$17268_backChannelAttemptId_);this.JSC$17268_backChannelRequest_.JSC$17256_extraHeaders_=this.JSC$17268_extraHeaders_;this.JSC$17268_backChannelRequest_.JSC$17256_readyStateChangeThrottleMs_=0;var y=this.JSC$17268_backChannelUri_.clone();_.Hk(y,
"RID","rpc");_.Hk(y,"SID",this.sid_);_.Hk(y,"CI",this.useChunked_?"0":"1");_.Hk(y,"AID",this.JSC$17268_lastArrayId_);J4(this,y);_.Hk(y,"TYPE","xmlhttp");uK9(this.JSC$17268_backChannelRequest_,y,!0,this.JSC$17268_hostPrefix_,!1);this.JSC$17264_channelDebug_.debug("New Request created")};
var pJ=function(y,W,c){y.JSC$17264_channelDebug_.debug("Test Connection Finished");y.useChunked_=y.secondTestResults_==null?c:!y.secondTestResults_;y.JSC$17268_lastStatusCode_=W.JSC$17263_lastStatusCode_;y.asyncTest_||PZZ(y)},lfQ=function(y,W){y.JSC$17264_channelDebug_.debug("Test Connection Failed");
y.JSC$17268_lastStatusCode_=W.JSC$17263_lastStatusCode_;ID(y,2)};
PD.prototype.JSC$17263_onRequestData=function(y,W){if(this.state_!=0&&(this.JSC$17268_backChannelRequest_==y||this.forwardChannelRequest_==y))if(this.JSC$17268_lastStatusCode_=y.JSC$17256_lastStatusCode_,this.forwardChannelRequest_==y&&this.state_==3)if(this.JSC$17268_channelVersion_>7){try{var c=this.JSC$17264_parser_.parse(W)}catch(Z){c=null}if(Array.isArray(c)&&c.length==3)if(W=c,W[0]==0)a:if(this.JSC$17264_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17268_backChannelTimerId_)this.JSC$17264_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17268_backChannelRequest_)if(this.JSC$17268_backChannelRequest_.JSC$17256_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17256_requestStartTime_)Q66(this),this.JSC$17268_backChannelRequest_.cancel(),this.JSC$17268_backChannelRequest_=null;else break a;else this.JSC$17264_channelDebug_.warning("We do not have a BackChannel established");d6S(this);RD(19)}else this.JSC$17268_lastPostResponseArrayId_=W[1],y=this.JSC$17268_lastPostResponseArrayId_-this.JSC$17268_lastArrayId_,0<
y&&(W=W[2],this.JSC$17264_channelDebug_.debug(W+" bytes (in "+y+" arrays) are outstanding on the BackChannel"),W<37500&&this.useChunked_&&this.JSC$17268_backChannelRetryCount_==0&&!this.JSC$17268_deadBackChannelTimerId_&&(this.JSC$17268_deadBackChannelTimerId_=bd((0,_.$r)(this.JSC$17268_onBackChannelDead_,this),6E3)));else this.JSC$17264_channelDebug_.debug("Bad POST response data returned"),ID(this,11)}else W!="y2f%"&&(this.JSC$17264_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
ID(this,11));else this.JSC$17268_backChannelRequest_==y&&Q66(this),_.tH(W)||(y=this.JSC$17264_parser_.parse(W),this.onInput_(y))};
PD.prototype.JSC$17268_onBackChannelDead_=function(){this.JSC$17268_deadBackChannelTimerId_!=null&&(this.JSC$17268_deadBackChannelTimerId_=null,this.JSC$17268_backChannelRequest_.cancel(),this.JSC$17268_backChannelRequest_=null,d6S(this),RD(20))};
var Q66=function(y){y.JSC$17268_deadBackChannelTimerId_!=null&&(_.DH.clearTimeout(y.JSC$17268_deadBackChannelTimerId_),y.JSC$17268_deadBackChannelTimerId_=null)};
PD.prototype.JSC$17263_onRequestComplete=function(y){this.JSC$17264_channelDebug_.debug("Request complete");if(this.JSC$17268_backChannelRequest_==y){Q66(this);this.JSC$17268_backChannelRequest_=null;var W=2}else if(this.forwardChannelRequest_==y)this.forwardChannelRequest_=null,W=1;else return;this.JSC$17268_lastStatusCode_=y.JSC$17256_lastStatusCode_;if(this.state_!=0)if(y.JSC$17256_successful_)if(W==1){W=y.JSC$17256_postData_?y.JSC$17256_postData_.length:0;y=Date.now()-y.JSC$17256_requestStartTime_;
var c=ffD;c.dispatchEvent(new IfD(c,W,y,this.JSC$17268_forwardChannelRetryCount_));CZZ(this);this.handler_&&this.handler_.JSC$17275_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else LKD(this);else{c=y.getLastError();if(c==3||c==7||c==0&&this.JSC$17268_lastStatusCode_>0)this.JSC$17264_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17264_channelDebug_.debug("Maybe retrying, last error: "+D69(c,this.JSC$17268_lastStatusCode_));var Z;if(Z=W==1)this.forwardChannelRequest_||
this.JSC$17268_forwardChannelTimerId_||this.state_==1||this.JSC$17268_forwardChannelRetryCount_>=2?Z=!1:(this.JSC$17264_channelDebug_.debug("Going to retry POST"),this.JSC$17268_forwardChannelTimerId_=bd((0,_.$r)(this.JSC$17268_onStartForwardChannelTimer_,this,y),vsd(this,this.JSC$17268_forwardChannelRetryCount_)),this.JSC$17268_forwardChannelRetryCount_++,Z=!0);if(Z||W==2&&d6S(this))return;this.JSC$17264_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17264_channelDebug_.debug("Error: HTTP request failed");
switch(c){case 1:ID(this,5);break;case 4:ID(this,10);break;case 3:ID(this,6);break;case 7:ID(this,12);break;default:ID(this,2)}}};
var vsd=function(y,W){var c=5E3+Math.floor(Math.random()*1E4);y.isActive()||(y.JSC$17264_channelDebug_.debug("Inactive channel"),c*=2);return c*W};
PD.prototype.onInput_=function(y){for(var W=0;W<y.length;W++){var c=y[W];this.JSC$17268_lastArrayId_=c[0];c=c[1];this.state_==2?c[0]=="c"?(this.sid_=c[1],this.JSC$17268_hostPrefix_=c[2],c=c[3],c!=null?this.JSC$17268_channelVersion_=c:this.JSC$17268_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17275_channelOpened(),this.JSC$17268_backChannelUri_=R5d(this,this.JSC$17268_hostPrefix_,this.JSC$17268_path_),LKD(this)):c[0]=="stop"&&ID(this,7):this.state_==3&&(c[0]=="stop"?ID(this,7):
c[0]!="noop"&&this.handler_&&this.handler_.JSC$17275_channelHandleArray(c),this.JSC$17268_backChannelRetryCount_=0)}};
PD.prototype.JSC$17268_ensureInState_=function(y){if(!_.Hy(arguments,this.state_))throw Error("Ak`"+this.state_);};
var ID=function(y,W){y.JSC$17264_channelDebug_.info("Error code "+W);if(W==2||W==9){var c=null;y.handler_&&(c=null);var Z=(0,_.$r)(y.testGoogleComCallback_,y);c||(c=new _.Tr("//www.google.com/images/cleardot.gif"),_.jm(c));hY3(c.toString(),1E4,Z)}else RD(2);y.onError_(W)};
PD.prototype.testGoogleComCallback_=function(y){y?(this.JSC$17264_channelDebug_.info("Successfully pinged google.com"),RD(2)):(this.JSC$17264_channelDebug_.info("Failed to ping google.com"),RD(1),this.onError_(8))};
PD.prototype.onError_=function(y){this.JSC$17264_channelDebug_.debug("HttpChannel: error - "+y);this.state_=0;this.handler_&&this.handler_.JSC$17275_channelError(y);Vif(this);JZS(this)};
var Vif=function(y){y.state_=0;y.JSC$17268_lastStatusCode_=-1;if(y.handler_)if(y.pendingMaps_.length==0&&y.JSC$17264_outgoingMaps_.length==0)y.handler_.JSC$17275_channelClosed();else{y.JSC$17264_channelDebug_.debug("Number of undelivered maps, pending: "+y.pendingMaps_.length+", outgoing: "+y.JSC$17264_outgoingMaps_.length);var W=_.SI(y.pendingMaps_),c=_.SI(y.JSC$17264_outgoingMaps_);y.pendingMaps_.length=0;y.JSC$17264_outgoingMaps_.length=0;y.handler_.JSC$17275_channelClosed(W,c)}},$6Z=function(y,
W){W=gs6(y,null,W);
y.JSC$17264_channelDebug_.debug("GetForwardChannelUri: "+W);return W},R5d=function(y,W,c){W=gs6(y,y.JSC$17263_shouldUseSecondaryDomains()?W:null,c);
y.JSC$17264_channelDebug_.debug("GetBackChannelUri: "+W);return W},gs6=function(y,W,c){var Z=_.ho(c);
if(Z.JSC$7898_domain_!="")W&&_.a4(Z,W+"."+Z.JSC$7898_domain_),_.xp(Z,Z.JSC$7898_port_);else{var G=window.location;Z=kAS(G.protocol,W?W+"."+G.hostname:G.hostname,+G.port,c)}y.JSC$17268_extraParams_&&_.Eb.forEach(y.JSC$17268_extraParams_,function(D,Y){_.Hk(Z,Y,D)});
_.Hk(Z,"VER",y.JSC$17268_channelVersion_);J4(y,Z);return Z};
PD.prototype.JSC$17263_createXhrIo=function(y){if(y)throw Error("xk");y=new _.$p;y.JSC$7661_withCredentials_=!1;return y};
PD.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
PD.prototype.notifyServerReachabilityEvent=function(y){var W=ffD;W.dispatchEvent(new p2d(W,y))};
PD.prototype.JSC$17263_shouldUseSecondaryDomains=function(){return!1};
new GCQ;var SOQ=function(){};
_.f=SOQ.prototype;_.f.JSC$17275_channelOpened=function(){};
_.f.JSC$17275_channelHandleArray=function(){};
_.f.JSC$17275_channelSuccess=function(){};
_.f.JSC$17275_channelError=function(){};
_.f.JSC$17275_channelClosed=function(){};
_.f.JSC$17275_getAdditionalParams=function(){return{}};
_.f.isActive=function(){return!0};var TY9=function(y){y.front_.length===0&&(y.front_=y.back_,y.front_.reverse(),y.back_=[])};
_.f=LtB.prototype;_.f.enqueue=function(y){this.back_.push(y)};
_.f.peek=function(){TY9(this);return _.Ca(this.front_)};
_.f.getCount=function(){return this.front_.length+this.back_.length};
_.f.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.f.clear=function(){this.front_=[];this.back_=[]};
_.f.contains=function(y){return _.Hy(this.front_,y)||_.Hy(this.back_,y)};
_.f.remove=function(y){var W=this.front_;var c=Array.prototype.lastIndexOf.call(W,y,W.length-1);c>=0?(_.KEh(W,c),W=!0):W=!1;return W||_.dg(this.back_,y)};
_.f.getValues=function(){for(var y=[],W=this.front_.length-1;W>=0;--W)y.push(this.front_[W]);W=this.back_.length;for(var c=0;c<W;++c)y.push(this.back_[c]);return y};var VA=function(y){this.JSC$17279_map_=new _.je;this.size=0;y&&this.addAll(y)},afQ=function(y){var W=typeof y;
return W=="object"&&y||W=="function"?"o"+_.kF(y):W.charAt(0)+y};
_.f=VA.prototype;_.f.getCount=function(){return this.JSC$17279_map_.size};
_.f.add=function(y){this.JSC$17279_map_.set(afQ(y),y);this.size=this.JSC$17279_map_.size};
_.f.addAll=function(y){y=_.Sw(y);for(var W=y.length,c=0;c<W;c++)this.add(y[c]);this.size=this.JSC$17279_map_.size};
_.f.removeAll=function(y){y=_.Sw(y);for(var W=y.length,c=0;c<W;c++)this.remove(y[c]);this.size=this.JSC$17279_map_.size};
_.f.delete=function(y){y=this.JSC$17279_map_.remove(afQ(y));this.size=this.JSC$17279_map_.size;return y};
_.f.remove=function(y){return this.delete(y)};
_.f.clear=function(){this.JSC$17279_map_.clear();this.size=0};
_.f.isEmpty=function(){return this.JSC$17279_map_.size===0};
_.f.has=function(y){return this.JSC$17279_map_.containsKey(afQ(y))};
_.f.contains=function(y){return this.JSC$17279_map_.containsKey(afQ(y))};
_.f.getValues=function(){return this.JSC$17279_map_.getValues()};
_.f.values=function(){return this.JSC$17279_map_.values()};
_.f.clone=function(){return new VA(this)};
_.f.equals=function(y){return this.getCount()==wiQ(y)&&x6B(this,y)};
var x6B=function(y,W){var c=wiQ(W);if(y.getCount()>c)return!1;!(W instanceof VA)&&c>5&&(W=new VA(W));return qSB(y,function(Z){var G=W;return G.contains&&typeof G.contains=="function"?G.contains(Z):G.containsValue&&typeof G.containsValue=="function"?G.containsValue(Z):_.TO(G)||typeof G==="string"?_.Hy(G,Z):_.Eb.containsValue(G,Z)})};
VA.prototype.__iterator__=function(){return this.JSC$17279_map_.__iterator__(!1)};
VA.prototype[Symbol.iterator]=function(){return this.values()};var i4D={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(y){return(this._clampValue(y)-this.min)/(this.max-this.min)},
_clampValue:function(y){return Math.min(this.max,Math.max(this.min,this._calcStep(y)))},
_calcStep:function(y){y=parseFloat(y);if(!this.step)return y;y=Math.round((y-this.min)/this.step);return this.step<1?y/(1/this.step)+this.min:y*this.step+this.min},
_validateValue:function(){var y=this._clampValue(this.value);this.value=this.oldValue=isNaN(y)?this.oldValue:y;return this.value!==y},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var MiH;var e5H;_.mD({_template:function(){if(e5H!==void 0)return e5H;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;MiH===void 0&&(MiH=document.createElement("template"));var Z=MiH;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return e5H=y},
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(){_.Lv(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(y){y.keyCode===27&&(y.preventDefault(),this.close())},
_track:function(y){if(!this.persistent&&!this.disableSwipe)switch(y.preventDefault(),y.detail.state){case "start":this._trackStart(y);break;case "track":this._trackMove(y);break;case "end":this._trackEnd(y)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var y=this.$.contentContainer.getBoundingClientRect();this._savedWidth=y.width;this._translateOffset=this.position==="left"?y.left:y.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(y){this._trackDetails&&(this._translateDrawer(y.detail.dx+this._translateOffset),this._trackDetails.push({dx:y.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(y){if(this._trackDetails){var W=y.detail.dx+this._translateOffset,c=this.getWidth();W=this.position==="left"?W>=0||W<=-c:W<=0||W>=c;if(!W){var Z=this._trackDetails;this._trackDetails=null;this._flingDrawer(y,Z);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}c/=2;y.detail.dx<-c?this.opened=this.position==="right":y.detail.dx>c&&(this.opened=this.position==="left");W?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(y,W){for(var c=Date.now(),Z=c-100,G,D=0,Y=W.length-1;D<=Y;){var u=D+Y>>1,t=W[u];t.timeStamp>=Z?(G=t,Y=u-1):D=u+1}return G?(y.detail.dx-G.dx)/(c-G.timeStamp||1):0},
_flingDrawer:function(y,W){W=this._calculateVelocity(y,W);if(!(Math.abs(W)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;y=y.detail.dx+this._translateOffset;var c=this.getWidth(),Z=this.position==="left",G=W>0;G?(W=Math.max(W,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(W=Math.min(W,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");W=this._FLING_INITIAL_SLOPE*(!G&&Z?-(y+c):G&&!Z?c-y:-y)/W;this._styleTransitionDuration(W);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,W)}},
_styleTransitionDuration:function(y){this.style.transitionDuration=y+"ms";this.$.contentContainer.style.transitionDuration=y+"ms";this.$.scrim.style.transitionDuration=y+"ms"},
_styleTransitionTimingFunction:function(y){this.$.contentContainer.style.transitionTimingFunction=y;this.$.scrim.style.transitionTimingFunction=y},
_translateDrawer:function(y){var W=this.getWidth();this.position==="left"?(y=Math.max(-W,Math.min(y,0)),this.$.scrim.style.opacity=1+y/W):(y=Math.max(0,Math.min(y,W)),this.$.scrim.style.opacity=1-y/W);this.translate3d(y+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var y=this._drawerState;y===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;y!==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=""),y!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var y=_.UL(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"])');y.length>0?(this._firstTabStop=y[0],this._lastTabStop=y[y.length-1]):
this._lastTabStop=this._firstTabStop=null;(y=this.getAttribute("tabindex"))&&parseInt(y,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(y){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||y.keyCode!==9||(y.shiftKey?this._firstTabStop&&_.UL(y).localTarget===this._firstTabStop&&(y.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.UL(y).localTarget===this._lastTabStop&&(y.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(y,W){this.toggleClass("visible",y&&!W,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var w2Q;var qOH;_.mD({_template:function(){if(qOH!==void 0)return qOH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;w2Q===void 0&&(w2Q=document.createElement("template"));var Z=w2Q;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return qOH=y},
is:"tp-yt-paper-progress",behaviors:[i4D],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(y){this.toggleClass("indeterminate",y,this.$.primaryProgress)},
_transformProgress:function(y,W){y.style.transform=y.style.webkitTransform="scaleX("+W/100+")"},
_mainRatioChanged:function(y){this._transformProgress(this.$.primaryProgress,y)},
_progressChanged:function(y,W,c,Z,G){y=this._clampValue(y);W=this._clampValue(W);var D=this._calcRatio(y)*100,Y=this._calcRatio(W)*100;this._setSecondaryRatio(D);this._transformProgress(this.$.secondaryProgress,D);this._transformProgress(this.$.primaryProgress,Y);this.secondaryProgress=y;G?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",W);this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",Z)},
_disabledChanged:function(y){this.setAttribute("aria-disabled",y?"true":"false")},
_hideSecondaryProgress:function(y){return y===0}});var kpH;var jwd;var yLg=function(){};
_.f=yLg.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._buttonStateChanged=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._calcRatio=function(){};
_.f._clampValue=function(){};
_.f._calcStep=function(){};
_.f._validateValue=function(){};
_.f._update=function(){};
_.f._setImmediateValue=function(){};
_.f._setExpand=function(){};
_.f._setDragging=function(){};
_.f._setTransiting=function(){};
_.f._setMarkers=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
_.f._setRatio=function(){};
yLg=_.mD({_template:function(){if(jwd!==void 0)return jwd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;kpH===void 0&&(kpH=document.createElement("template"));var Z=kpH;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return jwd=y},
is:"tp-yt-paper-slider",behaviors:[_.uO,_.bO,_.VoQ,i4D],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&&_.RN(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(y,W,c){this.setAttribute("aria-valuemin",W);this.setAttribute("aria-valuemax",c);this.setAttribute("aria-valuenow",y);this._positionKnob(this._calcRatio(y)*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(y){this._setImmediateValue(this._calcStep(this._calcKnobPosition(y)));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(y){return(this.max-this.min)*y/100+this.min},
_onTrack:function(y){y.stopPropagation();switch(y.detail.state){case "start":this._trackStart(y);break;case "track":this._trackX(y);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(y){this.dragging||this._trackStart(y);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,y.detail.dx*(this._isRTL?-1:1)));y=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(y);y=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(y+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var y=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;y.transform=y.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(y){this._expandKnob();y.preventDefault();this.focus()},
_bartrack:function(y){this._allowBarEvent(y)&&this._onTrack(y)},
_barclick:function(y){this._w=this.$.sliderBar.offsetWidth;var W=this.$.sliderBar.getBoundingClientRect();W=(y.detail.x-W.left)/this._w*100;this._isRTL&&(W=100-W);var c=this.ratio;this._setTransiting(!0);this._positionKnob(W);c===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
y.preventDefault();this.focus()},
_bardown:function(y){this._allowBarEvent(y)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(y))},
_knobTransitionEnd:function(y){y.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(y,W,c,Z){Z||this._setMarkers([]);W=Math.round((c-W)/this.step);W>y&&(W=y);if(W<0||!isFinite(W))W=0;this._setMarkers(Array(W))},
_mergeClasses:function(y){return Object.keys(y).filter(function(W){return y[W]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(y){return!this.ignoreBarTouch||y.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(y){this._isRTL?this._incrementKey(y):this._decrementKey(y)},
_rightKey:function(y){this._isRTL?this._decrementKey(y):this._incrementKey(y)},
_incrementKey:function(y){this.disabled||(y.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),y.preventDefault())},
_decrementKey:function(y){this.disabled||(y.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),y.preventDefault())},
_changeValue:function(y){this.value=y.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(y){y.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Jdi._createRipple.call(this)},
_focusedChanged:function(y){y&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=y?"":"none",this._ripple.holdDown=y)}});var WgQ;var cLH;var CJ=null,ZnH=function(){};
_.f=ZnH.prototype;_.f.fit=function(){};
_.f._discoverInfo=function(){};
_.f.resetFit=function(){};
_.f.refit=function(){};
_.f.position=function(){};
_.f.constrain=function(){};
_.f._sizeDimension=function(){};
_.f.__sizeDimension=function(){};
_.f.center=function(){};
_.f.__getNormalizedRect=function(){};
_.f.__getOffscreenArea=function(){};
_.f.__getPosition=function(){};
_.f.notifyResize=function(){};
_.f.assignParentResizable=function(){};
_.f.stopResizeNotificationsFor=function(){};
_.f._subscribeIronResize=function(){};
_.f._unsubscribeIronResize=function(){};
_.f.resizerShouldNotify=function(){};
_.f._onDescendantIronResize=function(){};
_.f._fireResize=function(){};
_.f._onIronRequestResizeNotifications=function(){};
_.f._parentResizableChanged=function(){};
_.f._notifyDescendant=function(){};
_.f._requestResizeNotifications=function(){};
_.f._findParent=function(){};
_.f.toggle=function(){};
_.f.open=function(){};
_.f.close=function(){};
_.f.cancel=function(){};
_.f.invalidateTabbables=function(){};
_.f._ensureSetup=function(){};
_.f._canceledChanged=function(){};
_.f._withBackdropChanged=function(){};
_.f._prepareRenderOpened=function(){};
_.f._finishRenderOpened=function(){};
_.f._finishRenderClosed=function(){};
_.f._preparePositioning=function(){};
_.f._finishPositioning=function(){};
_.f._applyFocus=function(){};
_.f._onCaptureClick=function(){};
_.f._onCaptureFocus=function(){};
_.f._onCaptureEsc=function(){};
_.f._onCaptureTab=function(){};
_.f._onIronResize=function(){};
_.f._onNodesChange=function(){};
_.f.__ensureFirstLastFocusables=function(){};
_.f.__openedChanged=function(){};
_.f.__deraf=function(){};
_.f.__updateScrollObservers=function(){};
_.f.__addScrollListeners=function(){};
_.f.__removeScrollListeners=function(){};
_.f.__isValidScrollAction=function(){};
_.f.__onCaptureScroll=function(){};
_.f.__saveScrollPosition=function(){};
_.f.__restoreScrollPosition=function(){};
_.f._setCanceled=function(){};
ZnH=_.mD({_template:function(){if(cLH!==void 0)return cLH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;WgQ===void 0&&(WgQ=document.createElement("template"));var Z=WgQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);return cLH=y},
is:"tp-yt-paper-toast",behaviors:[_.Ak],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(){_.te._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.P_.requestAvailability()},
show:function(y){typeof y=="string"&&(y={text:y});for(var W in y)W.indexOf("_")===0?_.te._warn('The property "'+W+'" is private and was not set.'):W in this?this[W]=y[W]:_.te._warn('The property "'+W+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(y){y&&y.target===this&&y.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(CJ&&CJ!==this&&CJ.close(),CJ=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):CJ===this&&(CJ=null);_.Qq._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(y){this.positionTarget=y},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var Gg6=new _.w("disablePersonalizationAction");var AUQ=new _.w("showDmaConsentFlowCommand");var hGB=new _.w("showMmgNoticeCommand");var fZf=new _.w("saveConsentAction");var oZZ=function(y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.EB(y)};
_.R(oZZ,_.eD);var DlD=_.l3F(oZZ);var zp9=new _.w("updateTopbarAvatarAction");var Yk6=new _.w("channelHandleValidationResultRenderer");var mlH=new _.w("generateHandleFromNameResultRenderer");var swH=new _.w("channelHandleInputRenderer");var uid=new _.w("copyLinkRenderer");var taH=new _.w("timedCommand");var nZZ=new _.w("clearCookieAction");var XbZ=new _.w("getMultiPageMenuAction");var bnQ=new _.w("addToGuideSectionAction"),rLB=new _.w("removeFromGuideSectionAction");var Fgf=new _.w("updateNotificationsUnseenCountAction");var UlH=new _.w("persistSubscriptionsDisplayPreferencesCommand");var $ld=new _.w("resetChannelUnreadCountCommand");var Kg9=new _.w("resetSubscriptionsUnreadDotCommand");var OnQ=new _.w("selectCountryCommand");var gZS=new _.w("selectLanguageCommand");var qf6=new _.w("sendFeedbackAction");var RpD=new _.w("uploadImageToScottyCommand");var lZ9=new _.w("webNativeShareCommand");var EZd=new _.w("registerPromoCommand");var NNB=new _.w("setPushNotificationsEnabledCommand");var IZf=new _.w("desktopTopbarRenderer");var pb6=new _.w("surveyFollowUpRenderer");var PcS=new _.w("handlesClaimingRadioOptionRenderer");var JLB=new _.w("hotkeyDialogRenderer");var Va9=new _.w("modifyReportFormCommand");var CcZ=new _.w("accountLinkCommand");var QwH=new _.w("accountUnlinkCommand");var ALH=new _.w("logAccountLinkingEventCommand");var hp6=new _.w("guideCollapsibleEntryRenderer");var BNf=new _.w("guideDownloadsEntryRenderer");var QA=new _.w("guideEntryRenderer");var HnS=new _.w("getLocationCommand");var LgB=new _.w("locationCollectionCommand");var vZ6=new _.w("storiesItemViewModel");var dl3=new _.w("addToRemoteQueueAction");var SkQ=new _.w("insertInRemoteQueueAction");var TNH=new _.w("removeFromRemoteQueueAction");var aZ9=new _.w("notificationRenderer");var $KQ=new _.w("localWatchHistoryCommand");var xl6=new _.w("pdgBuyFlowHeaderRenderer");var inB=new _.w("pdgColorSliderRenderer");var MaB=new _.w("pdgCommentOptionRenderer");var ep3=new _.w("pdgCommentPreviewRenderer");var wb6=new _.w("superVodSelectableItemButtonRenderer");var qkS=new _.w("switchButtonRenderer");var kgf=new _.w("upsellDialogRenderer");var jnS=new _.w("feedbackQuestionRenderer"),yad=new _.w("feedbackOptionRenderer");var W2B=new _.w("sponsorshipsTierRenderer"),caQ=new _.w("sponsorshipsPromotionChannelRenderer");var ZeB=new _.w("simpleSurveyMessageRenderer");var qpH=new _.w("invokeInstrumentManagerAction");var GQf=new _.w("logYpcFlowDismissCommand");var fcQ=new _.w("logYpcFlowStartCommand");var oaQ=new _.w("unlimitedCreateFamilyEndpoint");var DBH=new _.w("iconBadgeRenderer");var rPZ=new _.w("collaborativePlaylistVisibilityValidationRule");var zIH=function(y){_.D9.call(this,"channelMessage");this.message=y};
_.R(zIH,_.D9);var YmH=function(y){_.D9.call(this,"channelError");this.error=y};
_.R(YmH,_.D9);var mBf={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"},snH={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},uf6={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},tAH={NOW_PLAYING:"nowPlaying",
ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},nad={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var A4=function(y){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 _.je;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";y&&(this.id=y.id||y.name,this.name=y.name,this.clientName=y.clientName?y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=y.app,this.type=y.type||"REMOTE_CONTROL",this.username=y.user||"",this.avatar=y.userAvatarUri||"",this.obfuscatedGaiaId=y.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=y.ownerObfuscatedGaiaId||"",this.theme=y.theme||"u",XL6(this,y.capabilities||""),beS(this,y.compatibleSenderThemes||""),raD(this,y.experiments||""),
this.remoteControllerUrl=y.remoteControllerUrl||"",this.localChannelEncryptionKey=y.localChannelEncryptionKey||"",this.deviceContext=y.deviceContext,this.brand=y.brand||"",this.model=y.model||"",this.year=y.year||0,this.os=y.os||"",this.osVersion=y.osVersion||"",this.chipset=y.chipset||"",this.mdxDialServerType=y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=y.pairingType||"unknown",y=y.deviceInfo)&&(y=JSON.parse(y),this.brand=y.brand||"",this.model=y.model||"",this.year=y.year||
0,this.os=y.os||"",this.osVersion=y.osVersion||"",this.chipset=y.chipset||"",this.clientName=y.clientName?y.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=y.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
A4.prototype.copy=function(){var y={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&&(y.brand=this.brand);
this.model&&(y.model=this.model);this.year&&(y.year=this.year);this.os&&(y.os=this.os);this.osVersion&&(y.osVersion=this.osVersion);this.chipset&&(y.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(y.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(y.mdxDialServerType=this.mdxDialServerType);y=new A4(y);y.connected=this.connected;y.remoteControllerUrl=this.remoteControllerUrl;y.localChannelEncryptionKey=this.localChannelEncryptionKey;y.deviceContext=
this.deviceContext;return y};
A4.prototype.equals=function(y){return y?this.id==y.id:!1};
var XL6=function(y,W){y.capabilities.clear();_.cN(W.split(","),_.Fr(_.Eb.contains,mBf)).forEach(function(c){y.capabilities.add(c)})},beS=function(y,W){y.compatibleSenderThemes.clear();
_.cN(W.split(","),_.Fr(_.Eb.contains,snH)).forEach(function(c){y.compatibleSenderThemes.add(c)})},raD=function(y,W){y.experiments.clear();
W.split(",").forEach(function(c){y.experiments.add(c)})};var F23=function(y,W){this.action=y;this.params=W||{}};_.j6(vDg,_.UR);_.f=vDg.prototype;_.f.JSC$17315_onTick_=function(){this.JSC$17313_interval_=Math.min(3E5,this.JSC$17313_interval_*2);this.JSC$17315_listener_();this.nextTickTime_&&this.start()};
_.f.start=function(){var y=this.JSC$17313_interval_+15E3*Math.random(),W=this.delay_;W.isActive()||W.start(y);this.nextTickTime_=Date.now()+y};
_.f.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.f.isActive=function(){return this.delay_.isActive()};
_.f.reset=function(){this.delay_.stop();this.JSC$17313_interval_=5E3};_.j6(F0,SOQ);_.f=F0.prototype;_.f.subscribe=function(y,W,c){return this.pubsub_.subscribe(y,W,c)};
_.f.unsubscribe=function(y,W,c){return this.pubsub_.unsubscribe(y,W,c)};
_.f.unsubscribeByKey=function(y){return this.pubsub_.unsubscribeByKey(y)};
_.f.publish=function(y,W){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.f.dispose=function(){this.JSC$17316_disposed_||(this.JSC$17316_disposed_=!0,_.Mg(this.pubsub_),this.disconnect(),_.Mg(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17316_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.sc({})})};
_.f.isDisposed=function(){return this.JSC$17316_disposed_};
_.f.connect=function(y,W,c){var Z=this,G,D,Y,u;return _.m(function(t){if(t.nextAddress==1)return _.X2(t,2),Z.useAsyncBrowserChannelHandler_?_.n(t,Z.connectPromise_,2):t.jumpTo(2);_.nc(t);if(Z.JSC$17316_disposed_||Z.JSC$17316_channel_&&Z.JSC$17316_channel_.getState()==2)return t.return();Z.sCookie_="";Z.reconnectTimer_.stop();Z.connectionParams_=y||null;Z.connectUi_=W||0;G=Z.JSC$17316_pathPrefix_+"/test";D=Z.JSC$17316_pathPrefix_+"/bind";Y=new PD(c?c.firstTestResults:null,c?c.secondTestResults:null,
Z.enableAsyncTest_);if(u=Z.JSC$17316_channel_)u.handler_=null;Y.handler_=Z;Z.JSC$17316_channel_=Y;if(Z.useAsyncBrowserChannelHandler_)return Z.connectPromise_=UBf(Z).then(function(){return $B9(Z,G,D,u,c)}),t.return(Z.connectPromise_.then(function(){Z.connectPromise_=_.sc()}));
$B9(Z,G,D,u,c);return _.bR(t,0)})};
var $B9=function(y,W,c,Z,G){K2D(y);if(y.JSC$17316_channel_){var D=_.Nn("ID_TOKEN"),Y=y.JSC$17316_channel_.JSC$17268_extraHeaders_||{};D?Y["x-youtube-identity-token"]=D:delete Y["x-youtube-identity-token"];y.JSC$17316_channel_.JSC$17268_extraHeaders_=Y}OeH(y);Z?(Z.getState(),y.JSC$17316_channel_.connect(W,c,y.defaultQueryParams_,Z.sid_,Z.JSC$17268_lastArrayId_)):G?y.JSC$17316_channel_.connect(W,c,y.defaultQueryParams_,G.sessionId,G.arrayId):y.JSC$17316_channel_.connect(W,c,y.defaultQueryParams_)};
F0.prototype.disconnect=function(y){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.sc())}finally{this.disconnectUi_=y||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),K2D(this),this.JSC$17316_channel_&&(this.JSC$17316_channel_.getState()==3&&h5d(this.JSC$17316_channel_),this.JSC$17316_channel_.disconnect()),this.disconnectUi_=0}};
F0.prototype.sendMessage=function(y,W){var c=this,Z;return _.m(function(G){switch(G.nextAddress){case 1:_.X2(G,2);if(!c.useAsyncBrowserChannelHandler_){G.jumpTo(2);break}return _.n(G,c.connectPromise_,2);case 2:_.nc(G);if(c.JSC$17316_disposed_)return G.return();Z={_sc:y};W&&_.Eb.extend(Z,W);if(c.reconnectTimer_.isActive()||(c.JSC$17316_channel_?c.JSC$17316_channel_.getState():0)==2){c.JSC$17316_pendingMessages_.push(Z);G.jumpTo(6);break}if(!c.isChannelOpened()){G.jumpTo(6);break}_.X2(G,8);if(!c.useAsyncBrowserChannelHandler_||
gaQ(c,y)){G.jumpTo(8);break}return _.n(G,UBf(c),8);case 8:_.nc(G,0,0,1);c.isChannelOpened()&&(gaQ(c,y)||OeH(c),K2D(c),AZ3(c.JSC$17316_channel_,Z));_.bR(G,6,1);break;case 6:_.bR(G,0)}})};
var gaQ=function(y,W){return y.enableMdxAuthForConnectionOnly_?!0:y.disableMdxAuthForAdMessages_?Object.values(uf6).includes(W):y.disableMdxAuthForNonPlaybackMessages_?!Object.values(tAH).includes(W):y.disableMdxAuthForShortsMessages_?Object.values(nad).includes(W):!1};
F0.prototype.JSC$17275_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17316_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)RI6(this);else{var y=this.JSC$17316_pendingMessages_;this.JSC$17316_pendingMessages_=[];var W=y.length;OeH(this);lcS(this,y,W);EaQ(this)}else EaQ(this)};
var RI6=function(y){var W,c;_.m(function(Z){if(Z.nextAddress==1)return _.X2(Z,2),_.n(Z,UBf(y),2);_.nc(Z);W=y.JSC$17316_pendingMessages_;y.JSC$17316_pendingMessages_=[];c=W.length;lcS(y,W,c);EaQ(y);return _.bR(Z,0)})},lcS=function(y,W,c){for(var Z=0;Z<c;++Z)AZ3(y.JSC$17316_channel_,W[Z]);
EaQ(y)},EaQ=function(y){y.publish("handlerOpened");
y.JSC$17316_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.f=F0.prototype;_.f.JSC$17275_channelError=function(y){var W=y==2&&this.JSC$17316_channel_.JSC$17268_lastStatusCode_==401;y==4||W||this.reconnectTimer_.start();this.publish("handlerError",y,W);W=Object.keys(NYQ).find(function(c){return NYQ[c]===y});
this.JSC$17316_channelErrorCounter.increment("BROWSER_CHANNEL",W!=null?W:"UNKNOWN")};
_.f.JSC$17275_channelClosed=function(y,W){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(W)for(var c=W.length,Z=0;Z<c;++Z){var G=W[Z].map;G&&this.JSC$17316_pendingMessages_.push(G)}this.JSC$17316_channelClosedCounter.increment("BROWSER_CHANNEL");y&&this.pendingMapsOnClosedCounter.JSC$7794_streamzService.JSC$7652_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",y.length);W&&this.undeliveredMapsOnClosedCounter.JSC$7797_streamzService.JSC$7652_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
W.length)};
_.f.JSC$17275_channelSuccess=function(y,W){W!=null&&y!=null&&this.channelMessageSentCounter.increment()};
_.f.JSC$17275_getAdditionalParams=function(){var y={v:2};this.sCookie_&&(y.gsessionid=this.sCookie_);this.connectUi_!=0&&(y.ui=""+this.connectUi_);this.disconnectUi_!=0&&(y.ui=""+this.disconnectUi_);this.connectionParams_&&_.Eb.extend(y,this.connectionParams_);return y};
_.f.JSC$17275_channelHandleArray=function(y){y[0]=="S"?this.sCookie_=y[1]:y[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17316_channel_.disconnect()):this.publish("handlerMessage",new F23(y[0],y[1]));this.JSC$17316_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.f.isChannelOpened=function(){return!!this.JSC$17316_channel_&&this.JSC$17316_channel_.getState()==3};
var K2D=function(y){if(y.JSC$17316_channel_){var W=y.JSC$17316_getXsrfToken_(),c=y.JSC$17316_channel_.JSC$17268_extraHeaders_||{};W?c["x-youtube-lounge-xsrf-token"]=W:delete c["x-youtube-lounge-xsrf-token"];y.JSC$17316_channel_.JSC$17268_extraHeaders_=c}},UBf=function(y){if(y.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.sc();
if(!y.enableCachedUpdateAuthorizationHeader_)return Nx9(y);y.updateAuthorizationHeaderPromise_===null&&(y.updateAuthorizationHeaderPromise_=Nx9(y));return y.updateAuthorizationHeaderPromise_},Nx9=function(y){return _.bU(y.getAuthorizationHeader_().then(function(W){Ic9(y,W)}).thenCatch(function(){}),function(){y.updateAuthorizationHeaderPromise_=null})},Ic9=function(y,W){if(y.JSC$17316_channel_){var c=y.JSC$17316_channel_.JSC$17268_extraHeaders_||{};
W&&Object.keys(W).length>0?c=Object.assign({},c,W):delete c.Authorization;y.JSC$17316_channel_.JSC$17268_extraHeaders_=c}},OeH=function(y){y.getAuthorizationHeaderSync_&&!y.useAsyncBrowserChannelHandler_&&Ic9(y,y.getAuthorizationHeaderSync_())};
_.f=F0.prototype;_.f.setLoungeToken=function(y){(this.defaultQueryParams_.loungeIdToken=y)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17316_channel_){var W=this.JSC$17316_channel_.JSC$17268_extraHeaders_||{};y?W["X-YouTube-LoungeId-Token"]=y:delete W["X-YouTube-LoungeId-Token"];this.JSC$17316_channel_.JSC$17268_extraHeaders_=W}};
_.f.getDeviceId=function(){return this.defaultQueryParams_.id};
_.f.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.f.reconnect=function(){var y=this.reconnectTimer_;y.delay_.fire();y.start()};
_.f.safeReconnect_=function(){var y=this.JSC$17316_channel_,W=0;y.JSC$17268_backChannelRequest_&&W++;y.forwardChannelRequest_&&W++;W==0&&this.connect(this.connectionParams_,this.connectUi_)};var ld=function(y,W){var c=y.basePath;y.supportCors&&(c=y.scheme+"://"+y.domain+y.port+y.basePath);return _.HI(c+W,{})};
UT.prototype.sendRequest=function(y,W,c,Z,G,D,Y){y={format:D?"RAW":"JSON",method:y,context:this,timeout:5E3,withCredentials:!!Y,onSuccess:_.Fr(this.JSC$17321_onSuccess_,Z,!D),onError:_.Fr(this.onError_,G),onTimeout:_.Fr(this.JSC$17321_onTimeout_,G)};c&&(y.postParams=c,y.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.ZP(W,y)};
UT.prototype.JSC$17321_onSuccess_=function(y,W,c,Z){W?y(Z):y({text:c.responseText})};
UT.prototype.onError_=function(y,W){y(Error("Bk`"+W.status))};
UT.prototype.JSC$17321_onTimeout_=function(y){y(Error("Ck"))};var KY=function(y,W){return!!W&&(y.id==W||y.uuid==W)},pLd=function(y){return{name:y.name,
screenId:y.id,loungeToken:y.token,dialId:y.uuid,screenIdType:y.idType}},PB6=function(y){return new $B(y)},Ja9=function(y){return Array.isArray(y)?_.Ng(y,PB6):[]},wU6=function(y){if(!y)return"null";
var W=y.token?".."+y.token.slice(-6):"-",c=y.uuid?".."+y.uuid.slice(-6):"-";return'{name:"'+y.name+'",id:'+y.id.substr(0,6)+"..,token:"+(W+",uuid:"+c+",idType:"+y.idType+"}")},RV6=function(y){return Array.isArray(y)?"["+_.Ng(y,wU6).join(",")+"]":"null"};var GyQ="",Rg=null;var to3=function(y,W){_.uU.call(this);var c=this;this.handler=y();this.handler.subscribe("handlerOpened",this.JSC$17328_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Z,G){c.onError(G)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=W};
_.R(to3,_.uU);_.f=to3.prototype;_.f.connect=function(y,W,c){this.handler.connect(y,W,c)};
_.f.disconnect=function(y){this.handler.disconnect(y)};
_.f.reconnect=function(){this.handler.reconnect()};
_.f.getDeviceId=function(){return this.handler.getDeviceId()};
_.f.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.f.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.f.JSC$17328_onOpened=function(){this.dispatchEvent("channelOpened");var y=this.handler,W=this.currentScreenId;_.Wj("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!y.JSC$17316_channel_.useChunked_,sessionId:y.JSC$17316_channel_.sid_,arrayId:y.JSC$17316_channel_.JSC$17268_lastArrayId_});_.Wj("yt-remote-session-screen-id",W);y=kq6();W=jT6();_.Hy(y,W)||y.push(W);Zy6(y);cd9()};
_.f.onClosed=function(){this.dispatchEvent("channelClosed")};
_.f.onMessage=function(y){this.dispatchEvent(new zIH(y))};
_.f.onError=function(y){this.dispatchEvent(new YmH(y?1:0))};
_.f.sendMessage=function(y,W){this.handler.sendMessage(y,W)};
_.f.setLoungeToken=function(y){this.handler.setLoungeToken(y)};
_.f.dispose=function(){this.handler.dispose()};var uGf=function(y,W,c){var Z=this;c=c===void 0?function(){return""}:c;
var G=G===void 0?new yZZ:G;var D=D===void 0?new _.fR:D;this.pathPrefix=y;this.defaultQueryParams=W;this.getXsrfToken=c;this.JSC$17331_pubsub=D;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new vDg(function(){var Y;((Y=Z.channel)==null?void 0:p8B((new Z49(Y,Y.JSC$17239_channel_)).JSC$17249_channel_.forwardChannelRequestPool_))===0&&Z.connect(Z.connectionParams,Z.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17331_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17331_channelOpenedCounter=new dvH;this.JSC$17331_channelClosedCounter=new SdS;this.JSC$17331_channelMessageReceivedCounter=new av3;this.JSC$17331_channelErrorCounter=new xvD};
uGf.prototype.connect=function(y,W){y=y===void 0?{}:y;W=W===void 0?0:W;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=y,this.connectUi=W,VA6(this),(y=_.Nn("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=y: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 g1(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,CB6(this))};
var CB6=function(y){_.Y0(y.channel,"w",function(){y.channelState=3;y.reconnectTimer.reset();y.connectionParams=null;y.connectUi=0;for(var W=_.z(y.nonAckedMessagesOnChannelClosed),c=W.next();!c.done;c=W.next())c=c.value,y.channel&&y.channel.send(c);y.nonAckedMessagesOnChannelClosed=[];y.publish("webChannelOpened");y.JSC$17331_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Y0(y.channel,"x",function(){y.channelState=0;y.reconnectTimer.isActive()||y.publish("webChannelClosed");var W,c=(W=y.channel)==null?void 0:Gpf(new Z49(W,W.JSC$17239_channel_));c&&(y.nonAckedMessagesOnChannelClosed=[].concat(_.No(c)));y.JSC$17331_channelClosedCounter.increment("WEB_CHANNEL")});
_.Y0(y.channel,"z",function(W){var c=W.data;c[0]==="gracefulReconnect"?(y.reconnectTimer.start(),y.channel&&y.channel.close()):y.publish("webChannelMessage",new F23(c[0],c[1]));y.lastStatusCode=W.statusCode;y.JSC$17331_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Y0(y.channel,"y",function(){y.lastStatusCode===401||y.reconnectTimer.start();y.publish("webChannelError");y.JSC$17331_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.f=uGf.prototype;_.f.disconnect=function(y){this.disconnectUi=y===void 0?0:y;this.reconnectTimer.stop();VA6(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.f.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.f.reconnect=function(){var y=this.reconnectTimer;y.delay_.fire();y.start()};
_.f.sendMessage=function(y,W){this.channel&&(VA6(this),y=Object.assign({},{_sc:y},W),this.channel.send(y))};
_.f.setLoungeToken=function(y){y||this.reconnectTimer.stop();y?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=y:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var VA6=function(y){var W=y.getXsrfToken();W?y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=W:delete y.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.f=uGf.prototype;_.f.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.f.publish=function(y){return this.JSC$17331_pubsub.publish.apply(this.JSC$17331_pubsub,[y].concat(_.No(_.Cf.apply(1,arguments))))};
_.f.subscribe=function(y,W,c){return this.JSC$17331_pubsub.subscribe(y,W,c)};
_.f.unsubscribe=function(y,W,c){return this.JSC$17331_pubsub.unsubscribe(y,W,c)};
_.f.unsubscribeByKey=function(y){return this.JSC$17331_pubsub.unsubscribeByKey(y)};
_.f.dispose=function(){this.JSC$17331_disposed||(this.JSC$17331_disposed=!0,_.Mg(this.JSC$17331_pubsub),this.disconnect(),_.Mg(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.f.isDisposed=function(){return this.JSC$17331_disposed};var sTf=function(y){_.uU.call(this);this.webChannelService=y();this.webChannelService.subscribe("webChannelOpened",this.JSC$17339_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.R(sTf,_.uU);_.f=sTf.prototype;_.f.connect=function(y,W){this.webChannelService.connect(y,W)};
_.f.disconnect=function(y){this.webChannelService.disconnect(y)};
_.f.reconnect=function(){this.webChannelService.reconnect()};
_.f.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.f.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.f.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.f.JSC$17339_onOpened=function(){this.dispatchEvent("channelOpened")};
_.f.onClosed=function(){this.dispatchEvent("channelClosed")};
_.f.onMessage=function(y){this.dispatchEvent(new zIH(y))};
_.f.onError=function(){this.dispatchEvent(new YmH(this.webChannelService.lastStatusCode===401?1:0))};
_.f.sendMessage=function(y,W){this.webChannelService.sendMessage(y,W)};
_.f.setLoungeToken=function(y){this.webChannelService.setLoungeToken(y)};
_.f.dispose=function(){this.webChannelService.dispose()};var g3D=Date.now(),ET=null,KH6=Array(50),pY=-1,Oy3=!1;_.j6(Pe,_.H6);Pe.prototype.getScreens=function(){return this.screens};
Pe.prototype.contains=function(y){return!!qdH(this.screens,y)};
Pe.prototype.get=function(y){return y?OT(this.screens,y):null};
var QnZ=function(y,W){var c=y.get(W.uuid)||y.get(W.id);if(c)return y=c.name,c.id=W.id||c.id,c.name=W.name,c.token=W.token,c.uuid=W.uuid||c.uuid,c.name!=y;y.screens.push(W);return!0},AaQ=function(y,W){var c=y.screens.length!=W.length;
y.screens=_.cN(y.screens,function(D){return!!qdH(W,D)});
for(var Z=W.length,G=0;G<Z;G++)c=QnZ(y,W[G])||c;return c},hI9=function(y,W){var c=y.screens.length;
y.screens=_.cN(y.screens,function(Z){return!(Z||W?!Z!=!W?0:Z.id==W.id:1)});
return y.screens.length<c};
Pe.prototype.info=function(y){NI(this.JSC$17340_logName_,y)};var BxD=function(y,W,c,Z,G){_.H6.call(this);this.JSC$17343_http_=y;this.pairingCode_=W;this.deviceId_=c;this.friendlyName_=Z;this.enableShortLivedLoungeToken_=G;this.pollIndex_=0;this.JSC$17343_xhr_=null;this.JSC$17343_timer_=NaN};
_.R(BxD,_.H6);_.f=BxD.prototype;_.f.start=function(){!this.JSC$17343_xhr_&&isNaN(this.JSC$17343_timer_)&&this.poll_()};
_.f.stop=function(){this.JSC$17343_xhr_&&(this.JSC$17343_xhr_.abort(),this.JSC$17343_xhr_=null);isNaN(this.JSC$17343_timer_)||(_.W7(this.JSC$17343_timer_),this.JSC$17343_timer_=NaN)};
_.f.disposeInternal=function(){this.stop();_.H6.prototype.disposeInternal.call(this)};
_.f.poll_=function(){this.JSC$17343_timer_=NaN;this.JSC$17343_xhr_=_.ZP(ld(this.JSC$17343_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.$r)(this.JSC$17345_onSuccess_,this),onError:(0,_.$r)(this.onError_,this),onTimeout:(0,_.$r)(this.JSC$17345_onTimeout_,this)})};
_.f.JSC$17345_onSuccess_=function(y,W){this.JSC$17343_xhr_=null;y=W.screen||{};y.dialId=this.deviceId_;y.name=this.friendlyName_;W=-1;this.enableShortLivedLoungeToken_&&y.shortLivedLoungeToken&&y.shortLivedLoungeToken.value&&y.shortLivedLoungeToken.refreshIntervalMs&&(y.screenIdType="shortLived",y.loungeToken=y.shortLivedLoungeToken.value,W=y.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new $B(y),W)};
_.f.onError_=function(y){this.JSC$17343_xhr_=null;y.status&&y.status==404?this.pollIndex_>=HeD.length?this.publish("pairingFailed",Error("Dk")):(y=HeD[this.pollIndex_],this.JSC$17343_timer_=_.j5((0,_.$r)(this.poll_,this),y),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+y.status))};
_.f.JSC$17345_onTimeout_=function(){this.JSC$17343_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var HeD=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.j6(VS,Pe);_.f=VS.prototype;_.f.start=function(){Jb(this)&&this.publish("screenChange");!_.cj("yt-remote-lounge-token-expiration")&&L26(this);_.W7(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.j5((0,_.$r)(this.start,this),1E4)};
_.f.add=function(y,W){Jb(this);QnZ(this,y);vaQ(this,!1);this.publish("screenChange");W(y);y.token||L26(this)};
_.f.remove=function(y,W){var c=Jb(this);hI9(this,y)&&(vaQ(this,!1),c=!0);W(y);c&&this.publish("screenChange")};
_.f.updateName=function(y,W,c,Z){var G=Jb(this),D=this.get(y.id);D?(D.name!=W&&(D.name=W,vaQ(this,!1),G=!0),c(y)):Z(Error("Gk"));G&&this.publish("screenChange")};
_.f.disposeInternal=function(){_.W7(this.loungeTokenRefreshTimer_);VS.superClass_.disposeInternal.call(this)};
var L26=function(y){if(y.screens.length){var W=_.Ng(y.screens,function(Z){return Z.id}),c=ld(y.JSC$17347_http_,"/pairing/get_lounge_token_batch");
y.JSC$17347_http_.sendRequest("POST",c,{screen_ids:W.join(",")},(0,_.$r)(y.handleLoungeTokens_,y),(0,_.$r)(y.handleLoungeTokenError_,y))}};
VS.prototype.handleLoungeTokens_=function(y){Jb(this);var W=this.screens.length;y=y&&y.screens||[];for(var c=y.length,Z=0;Z<c;++Z){var G=y[Z],D=this.get(G.screenId);D&&(D.token=G.loungeToken,--W)}vaQ(this,!W);W&&NI(this.JSC$17340_logName_,"Missed "+W+" lounge tokens.")};
VS.prototype.handleLoungeTokenError_=function(y){NI(this.JSC$17340_logName_,"Requesting lounge tokens failed: "+y)};
var Jb=function(y){if(_.O("deprecate_pair_servlet_enabled"))return AaQ(y,[]);var W=Ja9(o3f());W=_.cN(W,function(c){return!c.uuid});
return AaQ(y,W)},vaQ=function(y,W){zVH(_.Ng(y.screens,pLd));
W&&DaS()};var h4=function(y,W){_.H6.call(this);this.getScreensToCheck_=W;W=(W=_.cj("yt-remote-online-screen-ids")||"")?W.split(","):[];for(var c={},Z=this.getScreensToCheck_(),G=Z.length,D=0;D<G;++D){var Y=Z[D].id;c[Y]=_.Hy(W,Y)}this.screenIdSet_=c;this.JSC$17350_http_=y;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;dBZ("Initialized with "+(0,_.Up)(this.screenIdSet_))};
_.R(h4,_.H6);h4.prototype.isOnline=function(y){return!!this.screenIdSet_[y]};
h4.prototype.start=function(){var y=parseInt(_.cj("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.k3()-144E5<y?0:y)?Sm6(this):(this.fastCheckEndTime_=_.k3()+3E5,_.Wj("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
h4.prototype.isEmpty=function(){return _.Eb.isEmpty(this.screenIdSet_)};
h4.prototype.update=function(){dBZ("Updating availability on schedule.");var y=this.getScreensToCheck_(),W=_.Eb.filter(this.screenIdSet_,function(c,Z){return c&&!!OT(y,Z)},this);
TxQ(this,W)};
var acH=function(y,W,c){var Z=ld(y.JSC$17350_http_,"/pairing/get_screen_availability");y.JSC$17350_http_.sendRequest("POST",Z,{lounge_token:W.token},(0,_.$r)(function(G){G=G.screens||[];for(var D=G.length,Y=0;Y<D;++Y)if(G[Y].loungeToken==W.token){c(G[Y].status=="online");return}c(!1)},y),(0,_.$r)(function(){c(!1)},y))};
h4.prototype.disposeInternal=function(){_.W7(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.H6.prototype.disposeInternal.call(this)};
var TxQ=function(y,W){a:if(_.Eb.getCount(W)!=_.Eb.getCount(y.screenIdSet_))var c=!1;else{c=_.Eb.getKeys(W);for(var Z=c.length,G=0;G<Z;++G)if(!y.screenIdSet_[c[G]]){c=!1;break a}c=!0}c||(dBZ("Updated online screens: "+(0,_.Up)(y.screenIdSet_)),y.screenIdSet_=W,y.publish("screenChange"));xBZ(y)},Sm6=function(y){isNaN(y.refreshTimer_)||_.W7(y.refreshTimer_);
y.refreshTimer_=_.j5((0,_.$r)(y.requestScreenAvailability_,y),y.fastCheckEndTime_>0&&y.fastCheckEndTime_<_.k3()?2E4:1E4)};
h4.prototype.requestScreenAvailability_=function(){_.W7(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var y=ieH(this);if(_.Eb.getCount(y)){var W=ld(this.JSC$17350_http_,"/pairing/get_screen_availability"),c={lounge_token:_.Eb.getKeys(y).join(",")};this.currentRequest_=this.JSC$17350_http_.sendRequest("POST",W,c,(0,_.$r)(this.onScreenAvailability_,this,y),(0,_.$r)(this.onScreenAvailabilityError_,this))}else TxQ(this,{}),Sm6(this)};
h4.prototype.onScreenAvailability_=function(y,W){this.currentRequest_=null;var c=_.Eb.getKeys(ieH(this));if(_.yT(c,_.Eb.getKeys(y))){W=W.screens||[];c={};for(var Z=W.length,G=0;G<Z;++G)c[y[W[G].loungeToken]]=W[G].status=="online";TxQ(this,c);Sm6(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
h4.prototype.onScreenAvailabilityError_=function(y){this.warn_("Screen availability failed: "+y);this.currentRequest_=null;Sm6(this)};
var dBZ=function(y){NI("OnlineScreenService",y)};
h4.prototype.warn_=function(y){NI("OnlineScreenService",y)};
var ieH=function(y){var W={};_.Qa(y.getScreensToCheck_(),function(c){c.token?W[c.token]=c.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return W},xBZ=function(y){y=_.Eb.getKeys(_.Eb.filter(y.screenIdSet_,function(W){return W}));
y.sort(_.lHh);y.length?_.Wj("yt-remote-online-screen-ids",y.join(","),60):_.Zr("yt-remote-online-screen-ids")};_.j6(CY,Pe);_.f=CY.prototype;_.f.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.f.add=function(y,W,c){this.localScreenService_.add(y,W,c)};
_.f.remove=function(y,W,c){this.localScreenService_.remove(y,W,c);this.onlineScreenService_.update()};
_.f.updateName=function(y,W,c,Z){this.localScreenService_.contains(y)?this.localScreenService_.updateName(y,W,c,Z):(y="Updating name of unknown screen: "+y.name,NI(this.JSC$17340_logName_,y),Z(Error(y)))};
_.f.getScreens=function(y){return y?this.screens:KIg(this.screens,_.cN(this.automaticScreens_,function(W){return!this.contains(W)},this))};
_.f.JSC$17355_getOnlineScreens=function(){return _.cN(this.getScreens(!0),function(y){return this.onlineScreenService_.isOnline(y.id)},this)};
var eIQ=function(y,W,c,Z,G,D){y.info("getAutomaticScreenByIds "+c+" / "+W);c||(c=y.deviceToScreenId_[W]);var Y=y.getScreens(),u=c?OT(Y,c):null;c&&(y.disableAutomaticScreenCache_||u)||(u=OT(Y,W));if(u){u.uuid=W;var t=BD(y,u);acH(y.onlineScreenService_,t,function(b){G(b?t:null)})}else c?MA6(y,c,(0,_.$r)(function(b){var r=BD(this,new $B({name:Z,
screenId:c,loungeToken:b,dialId:W||""}));acH(this.onlineScreenService_,r,function(F){G(F?r:null)})},y),D):G(null)};
CY.prototype.JSC$17355_getScreenByPollingPairingCode=function(y,W,c,Z,G,D){var Y=this;this.info("getDialScreenByPairingCode "+y+" / "+W);var u=new BxD(this.JSC$17353_http_,y,W,c,Z);u.subscribe("pairingComplete",function(t,b){_.Mg(u);G(BD(Y,t),b)});
u.subscribe("pairingFailed",function(t){_.Mg(u);D(t)});
u.start();return(0,_.$r)(u.stop,u)};
var wLD=function(y,W){for(var c=y.screens.length,Z=0;Z<c;++Z)if(y.screens[Z].name==W)return y.screens[Z];return null};
CY.prototype.JSC$17355_getScreenByPairingCode=function(y,W,c,Z){_.ZP(ld(this.JSC$17353_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:y},timeout:5E3,onSuccess:(0,_.$r)(function(G,D){G=new $B(D.screen||{});if(!G.name||wLD(this,G.name)){a:{D=G.name;for(var Y=2,u=W(D,Y);wLD(this,u);){Y++;if(Y>20)break a;u=W(D,Y)}D=u}G.name=D}c(BD(this,G))},this),
onError:(0,_.$r)(function(G){Z(Error("Hk`"+G.status))},this),
onTimeout:(0,_.$r)(function(){Z(Error("Ik"))},this)})};
var qmd=function(y,W,c){acH(y.onlineScreenService_,W,c)};
CY.prototype.disposeInternal=function(){_.Mg(this.localScreenService_);_.Mg(this.onlineScreenService_);CY.superClass_.disposeInternal.call(this)};
var MA6=function(y,W,c,Z){y.info("requestLoungeToken_ for "+W);var G={postParams:{screen_ids:W},method:"POST",context:y,onSuccess:function(D,Y){D=Y&&Y.screens||[];D[0]&&D[0].screenId==W?c(D[0].loungeToken):Z(Error("Jk"))},
onError:function(){Z(Error("Kk"))}};
_.ZP(ld(y.JSC$17353_http_,"/pairing/get_lounge_token_batch"),G)},kQB=function(y){y.screens=y.localScreenService_.getScreens();
for(var W=_.Eb.transpose(y.deviceToScreenId_),c=y.screens.length,Z=0;Z<c;++Z){var G=y.screens[Z];G.uuid=W[G.id]||""}y.info("Updated manual screens: "+RV6(y.screens))};
CY.prototype.handleScreenChange_=function(){kQB(this);this.publish("screenChange");this.onlineScreenService_.update()};
var lsQ=function(y){jMZ(y);y.localScreenService_=new VS(y.JSC$17353_http_);y.localScreenService_.subscribe("screenChange",(0,_.$r)(y.handleScreenChange_,y));kQB(y);y.disableAutomaticScreenCache_||(y.automaticScreens_=Ja9(_.cj("yt-remote-automatic-screen-cache")||[]));jMZ(y);y.info("Initializing automatic screens: "+RV6(y.automaticScreens_));y.onlineScreenService_=new h4(y.JSC$17353_http_,(0,_.$r)(y.getScreens,y,!0));y.onlineScreenService_.subscribe("screenChange",(0,_.$r)(function(){this.publish("onlineScreenChange")},
y))},BD=function(y,W){var c=y.get(W.id);
c?(c.uuid=W.uuid,W=c):((c=OT(y.automaticScreens_,W.uuid))?(c.id=W.id,c.token=W.token,W=c):y.automaticScreens_.push(W),y.disableAutomaticScreenCache_||y2f(y));jMZ(y);y.deviceToScreenId_[W.uuid]=W.id;_.Wj("yt-remote-device-id-map",y.deviceToScreenId_,31536E3);return W},y2f=function(y){y=_.cN(y.automaticScreens_,function(W){return W.idType!="shortLived"});
_.Wj("yt-remote-automatic-screen-cache",_.Ng(y,pLd))},jMZ=function(y){y.deviceToScreenId_=_.cj("yt-remote-device-id-map")||{}};
CY.prototype.dispose=CY.prototype.dispose;_.j6(QS,_.H6);var HD=function(y,W){y.screen_=W;y.publish("sessionScreen",y.screen_)},WnB=function(y,W){y.screen_&&(y.screen_.token=W,BD(y.JSC$17357_screenService_,y.screen_));
y.publish("sessionScreen",y.screen_)};
QS.prototype.onSessionStopped=function(y){this.isDisposed()||(y&&(LJ(this,""+y),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
QS.prototype.info=function(y){NI(this.JSC$17357_logName_,y)};
var LJ=function(y,W){NI(y.JSC$17357_logName_,W)};
QS.prototype.JSC$17359_getCastSession=function(){return null};
QS.prototype.setDisplayStatus=function(y){var W=this.receiver_;y?(W.displayStatus=new chrome.cast.ReceiverDisplayStatus(y,[]),W.displayStatus.showStop=!0):W.displayStatus=null;chrome.cast.setReceiverDisplayStatus(W,(0,_.$r)(function(){this.info("Updated receiver status for "+W.friendlyName+": "+y)},this),(0,_.$r)(function(){LJ(this,"Failed to update receiver status for: "+W.friendlyName)},this))};
QS.prototype.disposeInternal=function(){this.setDisplayStatus("");QS.superClass_.disposeInternal.call(this)};var vD=function(y,W,c){QS.call(this,y,W,"CastSession");var Z=this;this.config_=c;this.JSC$17362_session_=null;this.JSC$17362_boundSessionUpdate_=(0,_.$r)(this.JSC$17364_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.$r)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.j5(function(){c2D(Z,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17362_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17362_isInitLoungeToken_=!1;this.JSC$17362_lastLoungeTokenRefreshError_="unknown"};
_.R(vD,QS);_.f=vD.prototype;
_.f.setCastSession=function(y){if(this.JSC$17362_session_){if(this.JSC$17362_session_==y)return;LJ(this,"Overriding cast session with new session object");ZW6(this);this.JSC$17362_isInitLoungeToken_=!1;this.JSC$17362_lastLoungeTokenRefreshError_="unknown";this.JSC$17362_session_.removeUpdateListener(this.JSC$17362_boundSessionUpdate_);this.JSC$17362_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17362_session_=y;this.JSC$17362_session_.addUpdateListener(this.JSC$17362_boundSessionUpdate_);this.JSC$17362_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);GVH(this,"getMdxSessionStatus")};
_.f.launchWithParams=function(y){this.info("launchWithParams no-op for Cast: "+(0,_.Up)(y))};
_.f.stop=function(){if(this.JSC$17362_session_)this.JSC$17362_session_.stop((0,_.$r)(function(){this.onSessionStopped()},this),(0,_.$r)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.f.setDisplayStatus=function(){};
_.f.disposeInternal=function(){this.info("disposeInternal");ZW6(this);this.JSC$17362_session_&&(this.JSC$17362_session_.removeUpdateListener(this.JSC$17362_boundSessionUpdate_),this.JSC$17362_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17362_session_=null;QS.prototype.disposeInternal.call(this)};
var oVQ=function(y,W){_.W7(y.getLoungeTokenTimeoutKey_);y.getLoungeTokenTimeoutKey_=0;W==0?fW6(y):y.getLoungeTokenTimeoutKey_=_.j5(function(){fW6(y)},W)},fW6=function(y){GVH(y,"getLoungeToken");
_.W7(y.onLoungeTokenTimeoutKey_);y.onLoungeTokenTimeoutKey_=_.j5(function(){DTQ(y,null)},3E4)},GVH=function(y,W){y.info("sendYoutubeMessage_: "+W+" "+(0,_.Up)(void 0));
var c={};c.type=W;y.JSC$17362_session_?y.JSC$17362_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",c,function(){},(0,_.$r)(function(){LJ(this,"Failed to send message: "+W+".")},y)):LJ(y,"Sending yt message without session: "+(0,_.Up)(c))};
vD.prototype.onYoutubeMessage_=function(y,W){if(!this.isDisposed())if(W)if(W=(0,_.OL)(W),_.q1(W))switch(y=""+W.type,W=W.data||{},this.info("onYoutubeMessage_: "+y+" "+(0,_.Up)(W)),y){case "mdxSessionStatus":c2D(this,W);break;case "loungeToken":DTQ(this,W);break;default:LJ(this,"Unknown youtube message: "+y)}else LJ(this,"Unable to parse message.");else LJ(this,"No data in message.")};
var zkD=function(y,W){if(W)y.info("onConnectedScreenId_: Received screenId: "+W),y.screen_&&y.screen_.id==W||y.getScreen_(W,function(c){HD(y,c)},function(){return y.onSessionStopped()},5);
else y.onSessionStopped(Error("Nk"))},mTH=function(y,W,c){y.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(W));
var Z=new $B(W);Y7H(y,Z,function(G){G?(y.JSC$17362_isInitLoungeToken_=!0,BD(y.JSC$17357_screenService_,Z),HD(y,Z),y.JSC$17362_lastLoungeTokenRefreshError_="unknown",oVQ(y,c)):(_.pj(Error("Ok`"+JSON.stringify(W))),y.onSessionStopped())},5)},c2D=function(y,W){_.W7(y.sessionStatusTimeoutKey_);
y.sessionStatusTimeoutKey_=0;if(W)y.config_.enableCastLoungeToken&&W.loungeToken?W.deviceId?y.screen_&&y.screen_.uuid==W.deviceId||(W.loungeTokenRefreshIntervalMs?mTH(y,{name:y.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:W.deviceId,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.pj(Error("Qk`"+JSON.stringify(W))),zkD(y,W.screenId))):(_.pj(Error("Pk`"+JSON.stringify(W))),zkD(y,W.screenId)):zkD(y,W.screenId);else y.onSessionStopped(Error("Nk"))},DTQ=function(y,
W){_.W7(y.onLoungeTokenTimeoutKey_);
y.onLoungeTokenTimeoutKey_=0;var c=null;if(W)if(W.loungeToken){var Z;((Z=y.screen_)==null?void 0:Z.token)==W.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";else c="noLoungeTokenResponse";c?(y.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(W)+", error: "+c)),y.JSC$17362_lastLoungeTokenRefreshError_=c,oVQ(y,3E4)):(WnB(y,W.loungeToken),y.JSC$17362_isInitLoungeToken_=!1,y.JSC$17362_lastLoungeTokenRefreshError_="unknown",oVQ(y,W.loungeTokenRefreshIntervalMs))};
vD.prototype.getScreen_=function(y,W,c,Z){_.W7(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;eIQ(this.JSC$17357_screenService_,this.receiver_.label,y,this.receiver_.friendlyName,(0,_.$r)(function(G){G?W(G):Z>=0?(LJ(this,"Screen "+y+" appears to be offline. "+Z+" retries left."),this.getScreenTimeoutKey_=_.j5((0,_.$r)(this.getScreen_,this,y,W,c,Z-1),300)):c(Error("Rk"))},this),c)};
var Y7H=function(y,W,c,Z){_.W7(y.JSC$17362_checkScreenAvailabilityTimeoutKey_);y.JSC$17362_checkScreenAvailabilityTimeoutKey_=0;qmd(y.JSC$17357_screenService_,W,function(G){G||Z<0?c(G):y.JSC$17362_checkScreenAvailabilityTimeoutKey_=_.j5(function(){Y7H(y,W,c,Z-1)},300)})};
vD.prototype.JSC$17359_getCastSession=function(){return this.JSC$17362_session_};
vD.prototype.JSC$17364_onSessionUpdate_=function(y){this.isDisposed()||y||(LJ(this,"Cast session died."),this.onSessionStopped())};
var ZW6=function(y){_.W7(y.getScreenTimeoutKey_);y.getScreenTimeoutKey_=0;_.W7(y.JSC$17362_checkScreenAvailabilityTimeoutKey_);y.JSC$17362_checkScreenAvailabilityTimeoutKey_=0;_.W7(y.sessionStatusTimeoutKey_);y.sessionStatusTimeoutKey_=0;_.W7(y.onLoungeTokenTimeoutKey_);y.onLoungeTokenTimeoutKey_=0;_.W7(y.getLoungeTokenTimeoutKey_);y.getLoungeTokenTimeoutKey_=0};var d1=function(y,W,c,Z){QS.call(this,y,W,"DialSession");this.config_=Z;this.JSC$17366_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17366_theme_=c;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17366_deferredLaunchDeadlineTimer_=NaN;this.JSC$17366_boundSessionUpdate_=(0,_.$r)(this.JSC$17368_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17366_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17366_isInitLoungeToken_=!1;this.JSC$17366_lastLoungeTokenRefreshError_="unknown"};
_.R(d1,QS);d1.prototype.setCastSession=function(y){this.JSC$17366_session_=y;this.JSC$17366_session_.addUpdateListener(this.JSC$17366_boundSessionUpdate_)};
d1.prototype.launchWithParams=function(y){this.connectData_=y;this.deferredLaunch_()};
d1.prototype.stop=function(){sMQ(this);if(this.JSC$17366_session_)this.JSC$17366_session_.stop((0,_.$r)(this.onSessionStopped,this,null),(0,_.$r)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
d1.prototype.disposeInternal=function(){sMQ(this);this.JSC$17366_session_&&this.JSC$17366_session_.removeUpdateListener(this.JSC$17366_boundSessionUpdate_);this.JSC$17366_session_=null;QS.prototype.disposeInternal.call(this)};
var uSQ=function(y){var W;return!!(y.config_.enableDialLoungeToken&&((W=y.JSC$17366_session_)==null?0:W.getDialAppInfo))},t76=function(y){y.cancelPolling_=y.JSC$17357_screenService_.JSC$17355_getScreenByPollingPairingCode(y.reversePairingCode_,y.receiver_.label,y.receiver_.friendlyName,uSQ(y),function(W,c){y.cancelPolling_=function(){};
y.JSC$17366_isInitLoungeToken_=!0;HD(y,W);W.idType=="shortLived"&&c>0&&Sp(y,c)},function(W){y.cancelPolling_=function(){};
y.onSessionStopped(W)})};
d1.prototype.JSC$17368_onSessionUpdate_=function(y){this.isDisposed()||y||(LJ(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var nVS=function(y){var W={};W.pairingCode=y.reversePairingCode_;W.theme=y.JSC$17366_theme_;maD()&&(W.env_useStageMdx=1);return _.Gj(W)},XBB=function(y){return new Promise(function(W){y.reversePairingCode_=eYH();
if(y.connectData_){var c=new chrome.cast.DialLaunchResponse(!0,nVS(y));W(c);t76(y)}else y.deferredLaunch_=function(){_.W7(y.JSC$17366_deferredLaunchDeadlineTimer_);y.deferredLaunch_=function(){};
y.JSC$17366_deferredLaunchDeadlineTimer_=NaN;var Z=new chrome.cast.DialLaunchResponse(!0,nVS(y));W(Z);t76(y)},y.JSC$17366_deferredLaunchDeadlineTimer_=_.j5(function(){y.deferredLaunch_()},100)})},r29=function(y,W,c){y.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(W));
var Z=new $B(W);return(new Promise(function(G){bW3(y,Z,function(D){D?(y.JSC$17366_isInitLoungeToken_=!0,BD(y.JSC$17357_screenService_,Z),HD(y,Z),Sp(y,c)):_.pj(Error("Tk`"+JSON.stringify(W)));G(D)},5)})).then(function(G){return G?new chrome.cast.DialLaunchResponse(!1):XBB(y)})},Fn3=function(y,W){var c=y.launchData_.receiver.label,Z=y.receiver_.friendlyName;
return(new Promise(function(G){eIQ(y.JSC$17357_screenService_,c,W,Z,function(D){D&&D.token&&HD(y,D);G(D)},function(D){LJ(y,"Failed to get DIAL screen: "+D);
G(null)})})).then(function(G){return G&&G.token?new chrome.cast.DialLaunchResponse(!1):XBB(y)})},bW3=function(y,W,c,Z){_.W7(y.JSC$17366_checkScreenAvailabilityTimeoutKey_);
y.JSC$17366_checkScreenAvailabilityTimeoutKey_=0;qmd(y.JSC$17357_screenService_,W,function(G){G||Z<0?c(G):y.JSC$17366_checkScreenAvailabilityTimeoutKey_=_.j5(function(){bW3(y,W,c,Z-1)},300)})},Sp=function(y,W){y.info("getDialAppInfoWithTimeout_ "+W);
uSQ(y)&&(_.W7(y.getDialAppInfoTimeoutKey_),y.getDialAppInfoTimeoutKey_=0,W==0?UTB(y):y.getDialAppInfoTimeoutKey_=_.j5(function(){UTB(y)},W))},UTB=function(y){uSQ(y)&&y.JSC$17366_session_.getDialAppInfo(function(W){y.info("getDialAppInfo dialLaunchData: "+JSON.stringify(W));
W=W.extraData||{};var c=null;if(W.loungeToken){var Z;((Z=y.screen_)==null?void 0:Z.token)==W.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";c?(y.JSC$17366_lastLoungeTokenRefreshError_=c,Sp(y,3E4)):(y.JSC$17366_isInitLoungeToken_=!1,y.JSC$17366_lastLoungeTokenRefreshError_="unknown",WnB(y,W.loungeToken),Sp(y,W.loungeTokenRefreshIntervalMs))},function(W){y.info("getDialAppInfo error: "+W);
y.JSC$17366_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Sp(y,3E4)})},sMQ=function(y){_.W7(y.JSC$17366_checkScreenAvailabilityTimeoutKey_);
y.JSC$17366_checkScreenAvailabilityTimeoutKey_=0;_.W7(y.getDialAppInfoTimeoutKey_);y.getDialAppInfoTimeoutKey_=0;y.cancelPolling_();y.cancelPolling_=function(){};
_.W7(y.JSC$17366_deferredLaunchDeadlineTimer_)};var Td=function(y,W){QS.call(this,y,W,"ManualSession");this.JSC$17370_deferredLaunchDeadlineTimer_=_.j5((0,_.$r)(this.launchWithParams,this,null),150)};
_.R(Td,QS);Td.prototype.stop=function(){this.onSessionStopped()};
Td.prototype.setCastSession=function(){};
Td.prototype.launchWithParams=function(){_.W7(this.JSC$17370_deferredLaunchDeadlineTimer_);this.JSC$17370_deferredLaunchDeadlineTimer_=NaN;var y=OT(this.JSC$17357_screenService_.getScreens(),this.receiver_.label);if(y)HD(this,y);else this.onSessionStopped(Error("Uk"))};
Td.prototype.disposeInternal=function(){_.W7(this.JSC$17370_deferredLaunchDeadlineTimer_);this.JSC$17370_deferredLaunchDeadlineTimer_=NaN;QS.prototype.disposeInternal.call(this)};var He=function(y,W){_.H6.call(this);this.config_=W;this.JSC$17373_screenService_=y;this.JSC$17373_appId_=W.appId||"233637DE";this.JSC$17373_theme_=W.theme||"cl";this.disableDial_=W.disableCastApi||!1;this.forceMirroring_=W.forceMirroring||!1;this.JSC$17373_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.$r)(this.onReceiverAction_,this)};
_.R(He,_.H6);
He.prototype.init=function(y,W){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest(this.JSC$17373_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.O("desktop_enable_cast_connect")&&(c.androidReceiverCompatible=!0);this.disableDial_||(c.dialRequest=new chrome.cast.DialRequest("YouTube"));var Z=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;y=y||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var G=(0,_.$r)(this.onReceiverUpdated_,
this);c=new chrome.cast.ApiConfig(c,(0,_.$r)(this.onSessionEstablished_,this),G,Z,y);c.customDialLaunchCallback=(0,_.$r)(this.onDialLaunchRequested_,this);chrome.cast.initialize(c,(0,_.$r)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),FHB(),this.JSC$17373_screenService_.subscribe("onlineScreenChange",(0,_.$r)(this.JSC$17375_onScreenChange_,this)),this.customReceivers_=$Tf(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.$r)(function(D){this.warn_("Failed to set initial custom receivers: "+(0,_.Up)(D))},this)),this.publish("yt-remote-cast2-availability-change",aD(this)),W(!0))},this),(0,_.$r)(function(D){this.warn_("Failed to initialize API: "+(0,_.Up)(D));
W(!1)},this))};
He.prototype.setConnectedScreenStatus=function(y,W){x5("Setting connected screen ID: "+y+" -> "+W);if(this.JSC$17373_session_){var c=this.JSC$17373_session_.screen_;if(!y||c&&c.id!=y)x5("Unsetting old screen status: "+this.JSC$17373_session_.receiver_.friendlyName),ik(this,null)}if(y&&W){if(!this.JSC$17373_session_){y=OT(this.JSC$17373_screenService_.getScreens(),y);if(!y){x5("setConnectedScreenStatus: Unknown screen.");return}if(y.idType=="shortLived"){x5("setConnectedScreenStatus: Screen with id type to be short lived.");
return}c=KnQ(this,y);c||(x5("setConnectedScreenStatus: Connected receiver not custom..."),c=new chrome.cast.Receiver(y.uuid?y.uuid:y.id,y.name),c.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(c),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.$r)(function(Z){this.warn_("Failed to set initial custom receivers: "+(0,_.Up)(Z))},this)));
x5("setConnectedScreenStatus: new active receiver: "+c.friendlyName);ik(this,new Td(this.JSC$17373_screenService_,c),!0)}this.JSC$17373_session_.setDisplayStatus(W)}else x5("setConnectedScreenStatus: no screen.")};
var KnQ=function(y,W){return W?_.Qw(y.customReceivers_,function(c){return KY(W,c.label)},y):null};
He.prototype.setLaunchParams=function(y){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17373_session_?this.JSC$17373_session_.launchWithParams(y):this.warn_("Setting connection data without a session")};
He.prototype.JSC$17375_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17373_session_?(this.JSC$17373_session_.stop(),ik(this,null)):x5("Stopping non-existing session")};
He.prototype.requestSession=function(){chrome.cast.requestSession((0,_.$r)(this.onSessionEstablished_,this),(0,_.$r)(this.onSessionRequestFailed_,this))};
He.prototype.disposeInternal=function(){this.JSC$17373_screenService_.unsubscribe("onlineScreenChange",(0,_.$r)(this.JSC$17375_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.dg(_.JW("yt.mdx.remote.debug.handlers_")||[],XU6);_.Mg(this.JSC$17373_session_);_.H6.prototype.disposeInternal.call(this)};
var x5=function(y){NI("Controller",y)};
He.prototype.warn_=function(y){NI("Controller",y)};
var XU6=function(y){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(y)},aD=function(y){return y.hasCastReceiver_||!!y.customReceivers_.length||!!y.JSC$17373_session_},ik=function(y,W,c){W!=y.JSC$17373_session_&&(_.Mg(y.JSC$17373_session_),(y.JSC$17373_session_=W)?(c?y.publish("yt-remote-cast2-receiver-resumed",W.receiver_):y.publish("yt-remote-cast2-receiver-selected",W.receiver_),W.subscribe("sessionScreen",(0,_.$r)(y.onSessionScreen_,y,W)),W.subscribe("sessionFailed",
function(){return OWQ(y,W)}),W.screen_?y.publish("yt-remote-cast2-session-change",W.screen_):c&&y.JSC$17373_session_.launchWithParams(null)):y.publish("yt-remote-cast2-session-change",null))},OWQ=function(y,W){y.JSC$17373_session_==W&&y.publish("yt-remote-cast2-session-failed")};
_.f=He.prototype;_.f.onSessionScreen_=function(y,W){this.JSC$17373_session_==y&&(W||ik(this,null),this.publish("yt-remote-cast2-session-change",W))};
_.f.onReceiverAction_=function(y,W){if(!this.isDisposed())if(y)switch(y.friendlyName=chrome.cast.unescape(y.friendlyName),x5("onReceiverAction_ "+y.label+" / "+y.friendlyName+"-- "+W),W){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17373_session_)if(this.JSC$17373_session_.receiver_.label!=y.label)x5("onReceiverAction_: Stopping active receiver: "+this.JSC$17373_session_.receiver_.friendlyName),this.JSC$17373_session_.stop();else{x5("onReceiverAction_: Casting to active receiver.");this.JSC$17373_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17373_session_.screen_);break}switch(y.receiverType){case chrome.cast.ReceiverType.CUSTOM:ik(this,new Td(this.JSC$17373_screenService_,y));break;case chrome.cast.ReceiverType.DIAL:ik(this,new d1(this.JSC$17373_screenService_,y,this.JSC$17373_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:ik(this,new vD(this.JSC$17373_screenService_,y,this.config_));break;default:this.warn_("Unknown receiver type: "+y.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17373_session_&&
this.JSC$17373_session_.receiver_.label==y.label?this.JSC$17373_session_.stop():this.warn_("Stopping receiver w/o session: "+y.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.f.onDialLaunchRequested_=function(y){if(this.isDisposed())return Promise.reject(Error("Vk"));var W=y.receiver;W.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+W.friendlyName),W.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.JSC$17373_session_?this.JSC$17373_session_.receiver_:null;if(!c||c.label!=W.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+W.friendlyName),Promise.reject(Error("Wk"));if(c&&c.label==W.label&&c.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17373_session_.screen_)return x5("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17373_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+W.friendlyName);ik(this,new d1(this.JSC$17373_screenService_,W,this.JSC$17373_theme_,this.config_))}W=this.JSC$17373_session_;W.launchData_=y;W.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(y=W.launchData_.extraData||{},c=y.screenId||null,uSQ(W)&&y.loungeToken?y.loungeTokenRefreshIntervalMs?y=r29(W,{name:W.receiver_.friendlyName,screenId:y.screenId,loungeToken:y.loungeToken,dialId:W.launchData_.receiver.label,screenIdType:"shortLived"},y.loungeTokenRefreshIntervalMs):(_.pj(Error("Sk`"+JSON.stringify(y))),y=Fn3(W,c)):y=Fn3(W,c)):y=XBB(W);return y};
_.f.onSessionEstablished_=function(y){var W=this;if(!this.isDisposed()&&!this.forceMirroring_){x5("New cast session ID: "+y.sessionId);var c=y.receiver;if(c.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17373_session_)if(c.receiverType==chrome.cast.ReceiverType.CAST)x5("Got resumed cast session before resumed mdx connection."),c.friendlyName=chrome.cast.unescape(c.friendlyName),ik(this,new vD(this.JSC$17373_screenService_,c,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Z=this.JSC$17373_session_.receiver_,G=OT(this.JSC$17373_screenService_.getScreens(),Z.label);G&&KY(G,c.label)&&Z.receiverType!=chrome.cast.ReceiverType.CAST&&c.receiverType==chrome.cast.ReceiverType.CAST&&(x5("onSessionEstablished_: manual to cast session change "+c.friendlyName),_.Mg(this.JSC$17373_session_),this.JSC$17373_session_=new vD(this.JSC$17373_screenService_,c,this.config_),this.JSC$17373_session_.subscribe("sessionScreen",(0,_.$r)(this.onSessionScreen_,this,this.JSC$17373_session_)),
this.JSC$17373_session_.subscribe("sessionFailed",function(){return OWQ(W,W.JSC$17373_session_)}),this.JSC$17373_session_.launchWithParams(null));
this.JSC$17373_session_.setCastSession(y)}}};
_.f.JSC$17375_getCastSession=function(){return this.JSC$17373_session_?this.JSC$17373_session_.JSC$17359_getCastSession():null};
_.f.onSessionRequestFailed_=function(y){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Up)(y)),y.code!=chrome.cast.ErrorCode.CANCEL&&ik(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.f.onReceiverUpdated_=function(y){x5("Receiver availability updated: "+y);if(!this.isDisposed()){var W=aD(this);this.hasCastReceiver_=y==chrome.cast.ReceiverAvailability.AVAILABLE;aD(this)!=W&&this.publish("yt-remote-cast2-availability-change",aD(this))}};
var $Tf=function(y){var W=y.JSC$17373_screenService_.JSC$17355_getOnlineScreens(),c=y.JSC$17373_session_&&y.JSC$17373_session_.receiver_;y=_.Ng(W,function(Z){c&&KY(Z,c.label)&&(c=null);var G=Z.uuid?Z.uuid:Z.id,D=KnQ(this,Z);D?(D.label=G,D.friendlyName=Z.name):(D=new chrome.cast.Receiver(G,Z.name),D.receiverType=chrome.cast.ReceiverType.CUSTOM);return D},y);
c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),y.push(c));return y};
He.prototype.JSC$17375_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=$Tf(this),x5("Updating custom receivers: "+(0,_.Up)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.$r)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",aD(this)))};
He.prototype.setLaunchParams=He.prototype.setLaunchParams;He.prototype.setConnectedScreenStatus=He.prototype.setConnectedScreenStatus;He.prototype.stopSession=He.prototype.JSC$17375_stopSession;He.prototype.getCastSession=He.prototype.JSC$17375_getCastSession;He.prototype.requestSession=He.prototype.requestSession;He.prototype.init=He.prototype.init;He.prototype.dispose=He.prototype.dispose;var S9f=[];var gVZ=function(y){y.audioTrackId=null;y.trackData=null;y.playerState=-1;y.hasPrevious=!1;y.hasNext=!1;y.playerTime_=0;y.playerTimeAt_=_.k3();y.seekableStart_=0;y.seekableEnd_=0;y.duration_=0;y.loadedTime=0;y.liveIngestionTime_=NaN;y.isLive_=!1};
_.f=LY.prototype;
_.f.reset=function(y){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;y&&(this.index=y.index,this.listId=y.listId,this.videoId=y.videoId,this.playerState=y.playerState,this.volume=y.volume,this.muted=y.muted,this.audioTrackId=y.audioTrackId,this.trackData=y.trackData,this.hasPrevious=y.hasPrevious,this.hasNext=y.hasNext,this.playerTime_=y.playerTime,this.playerTimeAt_=y.playerTimeAt,this.seekableStart_=y.seekableStart,this.seekableEnd_=y.seekableEnd,this.duration_=y.duration,this.loadedTime=
y.loadedTime,this.liveIngestionTime_=y.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.f.stopPlayer=function(){this.index=-1;this.videoId="";gVZ(this)};
_.f.isPlaying=function(){return this.playerState==1};
_.f.isBuffering=function(){return this.playerState==3};
_.f.isAdPlaying=function(){return this.playerState==1081};
var M$=function(y,W){y.playerTime_=W;y.playerTimeAt_=_.k3()},Rk3=function(y){switch(y.playerState){case 1:case 1081:return(_.k3()-y.playerTimeAt_)/1E3+y.playerTime_;
case -1E3:return 0}return y.playerTime_};
LY.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.k3()-this.playerTimeAt_)/1E3:0):this.duration_};
var lWQ=function(y,W,c){var Z=y.videoId;y.videoId=W;y.index=c;W!=Z&&gVZ(y)},EVf=function(y){var W={};
W.index=y.index;W.listId=y.listId;W.videoId=y.videoId;W.playerState=y.playerState;W.volume=y.volume;W.muted=y.muted;W.audioTrackId=y.audioTrackId;W.trackData=_.Eb.unsafeClone(y.trackData);W.hasPrevious=y.hasPrevious;W.hasNext=y.hasNext;W.playerTime=y.playerTime_;W.playerTimeAt=y.playerTimeAt_;W.seekableStart=y.seekableStart_;W.seekableEnd=y.seekableEnd_;W.duration=y.duration_;W.loadedTime=y.loadedTime;W.liveIngestionTime=y.liveIngestionTime_;return W};
LY.prototype.clone=function(){return new LY(EVf(this))};var ep=function(y,W){_.H6.call(this);var c=this;this.state_=0;this.connection_=y;this.contextSubscriptions_=[];this.actionQueue_=new LtB;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.$r)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.$r)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.$r)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.$r)(this.onCloudviewAvailabilityChange_,this);var Z=0;y?(Z=y.getProxyState(),
Z!=3&&(y.subscribe("proxyStateChange",this.setState_,this),NOQ(this))):Z=3;Z!=0&&(W?this.setState_(Z):_.j5(function(){c.setState_(Z)},0));
(y=iyH())&&IWg(this,y);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.R(ep,_.H6);ep.prototype.getState=function(){return this.state_};
ep.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
ep.prototype.reconnect=function(){this.connection_.reconnect()};
var w1=function(y){return new LY(y.connection_.getPlayerContextData())};
_.f=ep.prototype;_.f.play=function(){q$(this)?(this.castMedia_?this.castMedia_.play(null,_.me,pB9(this,"play")):k5(this,"play"),Px6(this,1,Rk3(w1(this))),this.publish("remotePlayerChange")):jF(this,this.play)};
_.f.pause=function(){q$(this)?(this.castMedia_?this.castMedia_.pause(null,_.me,pB9(this,"pause")):k5(this,"pause"),Px6(this,2,Rk3(w1(this))),this.publish("remotePlayerChange")):jF(this,this.pause)};
_.f.seekTo=function(y){if(q$(this)){if(this.castMedia_){var W=w1(this),c=new chrome.cast.media.SeekRequest;c.currentTime=y;W.isPlaying()||W.isBuffering()?c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(c,_.me,pB9(this,"seekTo",{newTime:y}))}else k5(this,"seekTo",{newTime:y});Px6(this,3,y);this.publish("remotePlayerChange")}else jF(this,_.Fr(this.seekTo,y))};
_.f.stop=function(){if(q$(this)){this.castMedia_?this.castMedia_.stop(null,_.me,pB9(this,"stopVideo")):k5(this,"stopVideo");var y=w1(this);y.stopPlayer();yY(this,y);this.publish("remotePlayerChange")}else jF(this,this.stop)};
_.f.setVolume=function(y,W){if(q$(this)){var c=w1(this);if(this.castSession_){if(c.volume!=y){var Z=Math.round(y)/100;this.castSession_.setReceiverVolumeLevel(Z,(0,_.$r)(function(){Ig("set receiver volume: "+Z)},this),(0,_.$r)(function(){this.warn_("failed to set receiver volume.")},this))}c.muted!=W&&this.castSession_.setReceiverMuted(W,(0,_.$r)(function(){Ig("set receiver muted: "+W)},this),(0,_.$r)(function(){this.warn_("failed to set receiver muted.")},this))}else{var G={volume:y,
muted:W};c.volume!=-1&&(G.delta=y-c.volume);k5(this,"setVolume",G)}c.muted=W;c.volume=y;yY(this,c)}else jF(this,_.Fr(this.setVolume,y,W))};
_.f.setAudioTrack=function(y,W){q$(this)?(W=W.getLanguageInfo().getId(),k5(this,"setAudioTrack",{videoId:y,audioTrackId:W}),y=w1(this),y.audioTrackId=W,yY(this,y)):jF(this,_.Fr(this.setAudioTrack,y,W))};
_.f.addVideo=function(y){q$(this)?k5(this,"addVideo",{videoId:y}):jF(this,_.Fr(this.addVideo,y))};
_.f.addPlaylist=function(y){q$(this)?k5(this,"addVideos",{listId:y}):jF(this,_.Fr(this.addPlaylist,y))};
_.f.addVideos=function(y){y.length==0?this.warn_("Ignore add videos request due to empty list"):q$(this)?k5(this,"addVideos",{videoIds:y.join(",")}):jF(this,_.Fr(this.addVideos,y))};
_.f.JSC$17385_removeVideo=function(y){q$(this)?k5(this,"removeVideo",{videoId:y}):jF(this,_.Fr(this.JSC$17385_removeVideo,y))};
_.f.JSC$17385_insertVideo=function(y){q$(this)?k5(this,"insertVideo",{videoId:y}):jF(this,_.Fr(this.JSC$17385_insertVideo,y))};
_.f.playVideo=function(y,W,c,Z,G,D,Y){Z=Z===void 0?null:Z;G=G===void 0?null:G;D=D===void 0?null:D;Y=Y===void 0?null:Y;var u=w1(this),t={videoId:y};c!==void 0&&(t.currentIndex=c);lWQ(u,y,c||0);W!==void 0&&(M$(u,W),t.currentTime=W);Z&&(t.listId=Z);G&&(t.playerParams=G);D&&(t.clickTrackingParams=D);Y&&(t.locationInfo=(0,_.Up)(Y));k5(this,"setPlaylist",t);Z||yY(this,u)};
_.f.nextVideo=function(y,W){if(q$(this)){if(y&&W){var c=w1(this);lWQ(c,y,W);yY(this,c)}k5(this,"next")}else jF(this,_.Fr(this.nextVideo,y,W))};
_.f.clearPlaylist=function(){if(q$(this)){k5(this,"clearPlaylist");var y=w1(this);y.reset();yY(this,y);this.publish("remotePlayerChange")}else jF(this,this.clearPlaylist)};
_.f.dispose=function(){if(this.state_!=3){var y=this.state_;this.state_=3;this.publish("proxyStateChange",y,this.state_)}_.H6.prototype.dispose.call(this)};
_.f.disposeInternal=function(){J2B(this);this.connection_=null;this.actionQueue_.clear();IWg(this,null);_.H6.prototype.disposeInternal.call(this)};
var NOQ=function(y){_.Qa("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(W){this.contextSubscriptions_.push(this.connection_.subscribe(W,_.Fr(this.onProxyEvent_,W),this))},y)},J2B=function(y){_.Qa(y.contextSubscriptions_,function(W){this.connection_.unsubscribeByKey(W)},y);
y.contextSubscriptions_.length=0},q$=function(y){return y.getState()==1},jF=function(y,W){y.actionQueue_.getCount()<50&&y.actionQueue_.enqueue(W)},Px6=function(y,W,c){var Z=w1(y);
M$(Z,c);Z.playerState!=-1E3&&(Z.playerState=W);yY(y,Z)},k5=function(y,W,c){y.connection_.sendMessage(W,c)},yY=function(y,W){J2B(y);
y.connection_.setPlayerContextData(EVf(W));NOQ(y)};
ep.prototype.setState_=function(y){if((y!=this.state_||y==2)&&this.state_!=3&&y!=0){var W=this.state_;this.state_=y;this.publish("proxyStateChange",W,y);if(y==1)for(;!this.actionQueue_.isEmpty();)y=this.actionQueue_,TY9(y),y.front_.pop().apply(this);else y==3&&this.dispose()}};
ep.prototype.onProxyEvent_=function(y,W){this.publish(y,W)};
var IWg=function(y,W){y.castSession_&&(y.castSession_.removeUpdateListener(y.boundCastStatusListener_),y.castSession_.removeMediaListener(y.boundCastMediaListener_),y.onCastMediaChange_(null));y.castSession_=W;if(y.castSession_&&(Ig("Setting cast session: "+y.castSession_.sessionId),y.castSession_.addUpdateListener(y.boundCastStatusListener_),y.castSession_.addMediaListener(y.boundCastMediaListener_),y.castSession_.media.length))y.onCastMediaChange_(y.castSession_.media[0])};
ep.prototype.onCastStatusUpdate_=function(y){if(!y)this.onCastMediaChange_(null),IWg(this,null);else if(this.castSession_.receiver.volume){y=this.castSession_.receiver.volume;var W=w1(this),c=Math.round(100*y.level||0);if(W.volume!=c||W.muted!=y.muted)Ig("Cast volume update: "+y.level+(y.muted?" muted":"")),W.volume=c,W.muted=!!y.muted,yY(this,W)}};
ep.prototype.onCastMediaChange_=function(y){Ig("Cast media: "+!!y);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=y)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),V76(this),this.publish("remotePlayerChange")};
var V76=function(y){var W=y.castMedia_.media,c=y.castMedia_.customData;if(W&&c){var Z=w1(y);W.contentId!=Z.videoId&&Ig("Cast changing video to: "+W.contentId);Z.videoId=W.contentId;Z.playerState=c.playerState;M$(Z,y.castMedia_.getEstimatedTime());yY(y,Z)}else Ig("No cast media video. Ignoring state update.")};
ep.prototype.onCastMediaUpdate_=function(y){if(y)V76(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
ep.prototype.onCloudviewAvailabilityChange_=function(){var y=iyH();y&&IWg(this,y)};
ep.prototype.warn_=function(y){NI("CP",y)};
var pB9=function(y,W,c){return(0,_.$r)(function(Z){this.warn_("Failed to "+W+" with cast v2 channel. Error code: "+Z.code);Z.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+W+" using MDx browser channel."),k5(this,W,c))},y)};var c4=function(y,W,c,Z){Z=Z===void 0?!1:Z;_.H6.call(this);var G=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$17392_http_=y;this.enableConnectWithInitialState_=Z;this.listeners_.push(_.SS(window,"beforeunload",function(){G.JSC$17395_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new LY;this.currentScreenId_=W.id;this.currentScreenIdType_=W.idType;this.channelService=n3Q(this.JSC$17392_http_,c,this.JSC$17395_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){Cx6(G)});
this.channelService.listen("channelClosed",function(){W4("Channel closed");isNaN(G.connectTimerId_)?gw(!0):gw();G.dispose()});
this.channelService.listen("channelError",function(D){gw();isNaN(G.getReconnectTimeout_())?(D==1&&G.currentScreenIdType_=="shortLived"&&G.publish("browserChannelAuthError",D),W4("Channel error: "+D+" without reconnection"),G.dispose()):(G.reconnecting_=!0,W4("Channel error: "+D+" with reconnection in "+G.getReconnectTimeout_()+" ms"),QMD(G,2))});
this.channelService.listen("channelMessage",function(D){A2S(G,D)});
this.channelService.setLoungeToken(W.token);this.subscribe("remoteQueueChange",function(){var D=G.playerContext_.videoId;ydf()&&_.Wj("yt-remote-session-video-id",D)})};
_.R(c4,_.H6);
c4.prototype.connect=function(y,W){if(W){var c=W.listId,Z=W.videoId,G=W.videoIds,D=W.playerParams,Y=W.clickTrackingParams,u=W.index,t={videoId:Z},b=W.currentTime,r=W.locationInfo;W=W.loopMode;b!==void 0&&(t.currentTime=b<=5?0:b);D&&(t.playerParams=D);r&&(t.locationInfo=r);Y&&(t.clickTrackingParams=Y);c&&(t.listId=c);G&&G.length>0&&(t.videoIds=G.join(","));u!==void 0&&(t.currentIndex=u);this.enableConnectWithInitialState_&&(t.loopMode=W||"LOOP_MODE_OFF");c&&(this.playerContext_.listId=c);this.playerContext_.videoId=
Z;this.playerContext_.index=u||0;this.playerContext_.state=3;M$(this.playerContext_,b);this.autoplayMode_="UNSUPPORTED";c=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";W4("Connecting with "+c+" and params: "+(0,_.Up)(t));this.channelService.connect({method:c,params:(0,_.Up)(t)},y,fsB())}else W4("Connecting without params"),this.channelService.connect({},y,fsB());hkQ(this)};
c4.prototype.setLoungeToken=function(y){this.channelService.setLoungeToken(y)};
c4.prototype.dispose=function(){this.isDisposed()||(_.LR("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),QMD(this,3));_.H6.prototype.dispose.call(this)};
c4.prototype.disposeInternal=function(){BOS(this);HWQ(this);LnH(this);_.W7(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.W7(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Q9O(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.H6.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var vVQ=function(y){return _.Qw(y.connectedDevices_,function(W){return W.type=="LOUNGE_SCREEN"})},W4=function(y){NI("conn",y)},QMD=function(y,W){y.publish("proxyStateChange",W)},hkQ=function(y){y.connectTimerId_=_.j5(function(){W4("Connecting timeout");
y.JSC$17395_disconnect_(1)},2E4)},BOS=function(y){_.W7(y.connectTimerId_);
y.connectTimerId_=NaN},LnH=function(y){_.W7(y.reconnectedCheckScreenTimeout_);
y.reconnectedCheckScreenTimeout_=NaN},dT9=function(y){HWQ(y);
y.playingSyncTimerId_=_.j5(function(){Ze(y,"getNowPlaying")},2E4)},HWQ=function(y){_.W7(y.playingSyncTimerId_);
y.playingSyncTimerId_=NaN},Cx6=function(y){W4("Channel opened");
y.reconnecting_&&(y.reconnecting_=!1,LnH(y),y.reconnectedCheckScreenTimeout_=_.j5(function(){W4("Timing out waiting for a screen.");y.JSC$17395_disconnect_(1)},15E3))},TOB=function(y,W){var c=null;
if(W){var Z=vVQ(y);Z&&(c={clientName:Z.clientName,deviceMake:Z.brand,deviceModel:Z.model,osVersion:Z.osVersion})}_.LR("yt.mdx.remote.remoteClient_",c);W&&(BOS(y),LnH(y));c=y.channelService.isChannelOpened()&&isNaN(y.connectTimerId_);W==c?W&&(QMD(y,1),Ze(y,"getSubtitlesTrack")):W?(y.getOtherConnectedRemoteId_()&&y.playerContext_.reset(),QMD(y,1),Ze(y,"getNowPlaying"),S7d(y)):y.JSC$17395_disconnect_(1)},aWS=function(y,W){var c=W.params.videoId;
delete W.params.videoId;c==y.playerContext_.videoId&&(_.Eb.isEmpty(W.params)?y.playerContext_.trackData=null:y.playerContext_.trackData=W.params,y.publish("remotePlayerChange"))},xTS=function(y,W,c){var Z=W.params.videoId||W.params.video_id,G=parseInt(W.params.currentIndex,10);
y.playerContext_.listId=W.params.listId||y.playerContext_.listId;lWQ(y.playerContext_,Z,G);y.publish("remoteQueueChange",c)},iW6=function(y,W){W.params=W.params||{};
xTS(y,W,"NOW_PLAYING_MAY_CHANGE");y.onStateChange_(W);y.publish("autoplayDismissed")};
c4.prototype.onStateChange_=function(y){var W=parseInt(y.params.currentTime||y.params.current_time,10);M$(this.playerContext_,isNaN(W)?0:W);W=parseInt(y.params.state,10);W=isNaN(W)?-1:W;W==-1&&this.playerContext_.playerState==-1E3&&(W=-1E3);this.playerContext_.playerState=W;W=Number(y.params.loadedTime);this.playerContext_.loadedTime=isNaN(W)?0:W;W=Number(y.params.duration);this.playerContext_.duration_=isNaN(W)?0:W;W=this.playerContext_;var c=Number(y.params.liveIngestionTime);W.liveIngestionTime_=
c;W.isLive_=isNaN(c)?!1:!0;W=this.playerContext_;c=Number(y.params.seekableStartTime);y=Number(y.params.seekableEndTime);W.seekableStart_=isNaN(c)?0:c;W.seekableEnd_=isNaN(y)?0:y;this.playerContext_.playerState==1?dT9(this):HWQ(this);this.publish("remotePlayerChange")};
c4.prototype.onAdStateChange_=function(y){if(this.playerContext_.playerState!=-1E3){var W=1085;switch(parseInt(y.params.adState,10)){case 1:W=1081;break;case 2:W=1084;break;case 0:W=1083}this.playerContext_.playerState=W;y=parseInt(y.params.currentTime,10);M$(this.playerContext_,isNaN(y)?0:y);this.publish("remotePlayerChange")}};
var M7Q=function(y,W){var c=W.params.muted=="true";y.playerContext_.volume=parseInt(W.params.volume,10);y.playerContext_.muted=c;y.publish("remotePlayerChange")},ekQ=function(y,W){y.autoplayVideoId_=W.params.videoId;
y.publish("nowAutoplaying",parseInt(W.params.timeout,10))},wB9=function(y,W){y.autoplayVideoId_=W.params.videoId||null;
y.publish("autoplayUpNext",y.autoplayVideoId_)},q7f=function(y,W){y.autoplayMode_=W.params.autoplayMode;
y.publish("autoplayModeChange",y.autoplayMode_);y.autoplayMode_=="DISABLED"&&y.publish("autoplayDismissed")},kVZ=function(y,W){var c=W.params.hasNext=="true";
y.playerContext_.hasPrevious=W.params.hasPrevious=="true";y.playerContext_.hasNext=c;y.publish("previousNextChange")};
c4.prototype.isCapabilitySupportedOnConnectedDevices_=function(y){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var W=_.z(this.connectedDevices_),c=W.next();!c.done;c=W.next())if(!c.value.capabilities.has(y))return!1;return!0};
var A2S=function(y,W){W=W.message;W.params?W4("Received: action="+W.action+", params="+(0,_.Up)(W.params)):W4("Received: action="+W.action+" {}");switch(W.action){case "loungeStatus":W=(0,_.OL)(W.params.devices);y.connectedDevices_=_.Ng(W,function(Z){return new A4(Z)});
W=!!_.Qw(y.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
TOB(y,W);W=y.isCapabilitySupportedOnConnectedDevices_("mlm");y.publish("multiStateLoopEnabled",W);break;case "loungeScreenDisconnected":$i9(y.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
TOB(y,!1);break;case "remoteConnected":var c=new A4((0,_.OL)(W.params.device));_.Qw(y.connectedDevices_,function(Z){return Z.equals(c)})||_.$1I(y.connectedDevices_,c);
break;case "remoteDisconnected":c=new A4((0,_.OL)(W.params.device));$i9(y.connectedDevices_,function(Z){return Z.equals(c)});
break;case "gracefulDisconnect":break;case "playlistModified":xTS(y,W,"QUEUE_MODIFIED");break;case "nowPlaying":iW6(y,W);break;case "onStateChange":y.onStateChange_(W);break;case "onAdStateChange":y.onAdStateChange_(W);break;case "onVolumeChanged":M7Q(y,W);break;case "onSubtitlesTrackChanged":aWS(y,W);break;case "nowAutoplaying":ekQ(y,W);break;case "autoplayDismissed":y.publish("autoplayDismissed");break;case "autoplayUpNext":wB9(y,W);break;case "onAutoplayModeChanged":q7f(y,W);break;case "onHasPreviousNextChanged":kVZ(y,
W);break;case "requestAssistedSignIn":y.publish("assistedSignInRequested",W.params.authCode);break;case "onLoopModeChanged":y.publish("loopModeChange",W.params.loopMode);break;default:W4("Unrecognized action: "+W.action)}};
_.f=c4.prototype;_.f.getProxyState_=function(){var y=3;this.isDisposed()||(y=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(y=1):y=2);return y};
_.f.JSC$17395_disconnect_=function(y){W4("Disconnecting with "+y);_.LR("yt.mdx.remote.remoteClient_",null);BOS(this);this.publish("beforeDisconnect",y);y==1&&gw();this.channelService.disconnect(y);this.dispose()};
_.f.getPlayerContextData_=function(){var y=this.playerContext_;this.clientVideoId_&&(y=this.playerContext_.clone(),lWQ(y,this.clientVideoId_,y.index));return EVf(y)};
_.f.setPlayerContextData_=function(y){var W=this,c=new LY(y);c.videoId&&c.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=c.videoId,_.W7(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.j5(function(){if(W.clientVideoId_){var G=W.clientVideoId_;W.clientVideoId_=null;W.playerContext_.videoId!=G&&Ze(W,"getNowPlaying")}},5E3));
var Z=[];this.playerContext_.listId==c.listId&&this.playerContext_.videoId==c.videoId&&this.playerContext_.index==c.index||Z.push("remoteQueueChange");this.playerContext_.playerState==c.playerState&&this.playerContext_.volume==c.volume&&this.playerContext_.muted==c.muted&&Rk3(this.playerContext_)==Rk3(c)&&(0,_.Up)(this.playerContext_.trackData)==(0,_.Up)(c.trackData)||Z.push("remotePlayerChange");this.playerContext_.reset(y);_.Qa(Z,function(G){this.publish(G)},this)};
_.f.getOtherConnectedRemoteId_=function(){var y=this.channelService.getDeviceId(),W=_.Qw(this.connectedDevices_,function(c){return c.type=="REMOTE_CONTROL"&&c.id!=y});
return W?W.id:""};
_.f.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.f.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.f.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.f.JSC$17395_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var S7d=function(y){_.W7(y.idleDisconnectTimerId_);y.idleDisconnectTimerId_=_.j5(function(){y.JSC$17395_disconnect_(1)},864E5)},Ze=function(y,W,c){c?W4("Sending: action="+W+", params="+(0,_.Up)(c)):W4("Sending: action="+W);
y.channelService.sendMessage(W,c)};
c4.prototype.sendMessageWithUserAction_=function(y,W){Ze(this,y,W);S7d(this)};
c4.prototype.JSC$17395_getXsrfToken_=function(){var y=_.DP.get("SAPISID","")||_.DP.get("__Secure-1PAPISID",void 0)||"",W=_.DP.get("__Secure-3PAPISID","")||"";if(!y&&!W)return"";y=_.OB(_.Fe(y),2);W=_.OB(_.Fe(W),2);return _.OB(_.Fe(","+y+","+W),2)};
c4.prototype.subscribe=c4.prototype.subscribe;c4.prototype.unsubscribeByKey=c4.prototype.unsubscribeByKey;c4.prototype.getProxyState=c4.prototype.getProxyState_;c4.prototype.disconnect=c4.prototype.JSC$17395_disconnect_;c4.prototype.getPlayerContextData=c4.prototype.getPlayerContextData_;c4.prototype.setPlayerContextData=c4.prototype.setPlayerContextData_;c4.prototype.getOtherConnectedRemoteId=c4.prototype.getOtherConnectedRemoteId_;c4.prototype.getReconnectTimeout=c4.prototype.getReconnectTimeout_;
c4.prototype.getAutoplayMode=c4.prototype.getAutoplayMode_;c4.prototype.getAutoplayVideoId=c4.prototype.getAutoplayVideoId_;c4.prototype.reconnect=c4.prototype.JSC$17395_reconnect_;c4.prototype.sendMessage=c4.prototype.sendMessageWithUserAction_;c4.prototype.getXsrfToken=c4.prototype.JSC$17395_getXsrfToken_;c4.prototype.isCapabilitySupportedOnConnectedDevices=c4.prototype.isCapabilitySupportedOnConnectedDevices_;var j19=function(y){Pe.call(this,"ScreenServiceProxy");this.instance_=y;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.$r)(this.JSC$17398_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.$r)(this.onOnlineScreenChange_,this)))};
_.R(j19,Pe);_.f=j19.prototype;_.f.getScreens=function(y){return this.instance_.$_gs(y)};
_.f.contains=function(y){return!!this.instance_.$_c(y)};
_.f.get=function(y){return this.instance_.$_g(y)};
_.f.start=function(){this.instance_.$_st()};
_.f.add=function(y,W,c){this.instance_.$_a(y,W,c)};
_.f.remove=function(y,W,c){this.instance_.$_r(y,W,c)};
_.f.updateName=function(y,W,c,Z){this.instance_.$_un(y,W,c,Z)};
_.f.disposeInternal=function(){for(var y=this.subscriptionKeys_.length,W=0;W<y;++W)this.instance_.$_ubk(this.subscriptionKeys_[W]);this.subscriptionKeys_.length=0;this.instance_=null;Pe.prototype.disposeInternal.call(this)};
_.f.JSC$17398_onScreenChange_=function(){this.publish("screenChange")};
_.f.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
CY.prototype.$_st=CY.prototype.start;CY.prototype.$_gspc=CY.prototype.JSC$17355_getScreenByPairingCode;CY.prototype.$_gsppc=CY.prototype.JSC$17355_getScreenByPollingPairingCode;CY.prototype.$_c=CY.prototype.contains;CY.prototype.$_g=CY.prototype.get;CY.prototype.$_a=CY.prototype.add;CY.prototype.$_un=CY.prototype.updateName;CY.prototype.$_r=CY.prototype.remove;CY.prototype.$_gs=CY.prototype.getScreens;CY.prototype.$_gos=CY.prototype.JSC$17355_getOnlineScreens;CY.prototype.$_s=CY.prototype.subscribe;
CY.prototype.$_ubk=CY.prototype.unsubscribeByKey;var oE9=function(y){Y96();if(!Rg||!Rg.get("yt-remote-disable-remote-module-for-dev")){y=_.Nn("MDX_CONFIG")||y;Uhd();cd9();Gh||(Gh=new UT(y?y.loungeApiHost:void 0),maD()&&(Gh.basePath="/api/loungedev"));fk||(fk=_.JW("yt.mdx.remote.deferredProxies_")||[],_.LR("yt.mdx.remote.deferredProxies_",fk));yTQ();var W=oJ();if(!W){var c=new CY(Gh,y?y.disableAutomaticScreenCache||!1:!1);_.LR("yt.mdx.remote.screenService_",c);W=oJ();var Z={};y&&(Z={appId:y.appId,disableDial:y.disableDial,theme:y.theme,loadCastApiSetupScript:y.loadCastApiSetupScript,
disableCastApi:y.disableCastApi,enableDialLoungeToken:y.enableDialLoungeToken,enableCastLoungeToken:y.enableCastLoungeToken,forceMirroring:y.forceMirroring});_.LR("yt.mdx.remote.enableConnectWithInitialState_",y?y.enableConnectWithInitialState||!1:!1);v39(c,function(D){D?De()&&eVD(De(),"YouTube TV"):c.subscribe("onlineScreenChange",function(){xG("yt-remote-receiver-availability-change")})},Z)}if(y&&!_.JW("yt.mdx.remote.initialized_")){_.LR("yt.mdx.remote.initialized_",!0);
zh("Initializing: "+(0,_.Up)(y));YU.push(_.k2("yt-remote-cast2-api-ready",function(){xG("yt-remote-api-ready")}));
YU.push(_.k2("yt-remote-cast2-availability-change",function(){xG("yt-remote-receiver-availability-change")}));
YU.push(_.k2("yt-remote-cast2-receiver-selected",function(){Wm6();xG("yt-remote-auto-connect","cast-selector-receiver")}));
YU.push(_.k2("yt-remote-cast2-receiver-resumed",function(){xG("yt-remote-receiver-resumed","cast-selector-receiver")}));
YU.push(_.k2("yt-remote-cast2-session-change",cTQ));YU.push(_.k2("yt-remote-connection-change",function(D){D?eVD(De(),"YouTube TV"):ZuQ()||(eVD(null,null),xa9())}));
YU.push(_.k2("yt-remote-cast2-session-failed",function(){xG("yt-remote-connection-failed")}));
Z=GWf();y.isAuto&&(Z.id+="#dial");var G=y.capabilities||[];_.O("desktop_enable_autoplay")&&G.push("atp");G.length>0&&(Z.capabilities=G);Z.name=y.device;Z.app=y.app;(y=y.theme)&&(Z.theme=y);zh(" -- with channel params: "+(0,_.Up)(Z));Z?(_.Wj("yt-remote-session-app",Z.app),_.Wj("yt-remote-session-name",Z.name)):(_.Zr("yt-remote-session-app"),_.Zr("yt-remote-session-name"));_.LR("yt.mdx.remote.channelParams_",Z);W.start();De()||fRQ()}}},z1Q=function(){var y=oJ().instance_.$_gos();
var W=DqH();W&&m1()&&(qdH(y,W)||y.push(W));return wE6(y)},Y1D=function(){var y=z1Q(),W=DqH();
W||(W=ZuQ());return _.Qw(y,function(c){return W&&KY(W,c.key)?!0:!1})},DqH=function(){var y=De();
if(!y)return null;var W=oJ().getScreens();return OT(W,y)},cTQ=function(y){zh("remote.onCastSessionChange_: "+wU6(y));
if(y){var W=DqH();W&&W.id==y.id?(eVD(W.id,"YouTube TV"),y.idType=="shortLived"&&(y=y.token)&&(W=m1())&&W.setLoungeToken(y)):(W&&mqQ(),s1S(y,1))}else m1()&&mqQ()},mqQ=function(){Mo6()?Be().stopSession():hb("stopSession called before API ready.");
var y=m1();y&&(y.disconnect(1),uAQ(null))},tMZ=function(){var y=m1();
return y&&y.getProxyState()!=3?new ep(m1(),void 0):null},zh=function(y){NI("remote",y)},oJ=function(){if(!nEB){var y=_.JW("yt.mdx.remote.screenService_");
nEB=y?new j19(y):null}return nEB},De=function(){return _.JW("yt.mdx.remote.currentScreenId_")},XzZ=function(y){_.LR("yt.mdx.remote.currentScreenId_",y)},Wm6=function(){_.LR("yt.mdx.remote.connectData_",null)},m1=function(){return _.JW("yt.mdx.remote.connection_")},uAQ=function(y){var W=m1();
Wm6();y||XzZ("");_.LR("yt.mdx.remote.connection_",y);fk&&(_.Qa(fk,function(c){c(y)}),fk.length=0);
W&&!y?xG("yt-remote-connection-change",!1):!W&&y&&xG("yt-remote-connection-change",!0)},ZuQ=function(){var y=ydf();
if(!y)return null;var W=oJ();if(!W)return null;W=W.getScreens();return OT(W,y)},s1S=function(y,W){XzZ(y.id);
y=new c4(Gh,y,GWf(),_.JW("yt.mdx.remote.enableConnectWithInitialState_")||!1);y.connect(W,_.JW("yt.mdx.remote.connectData_"));y.subscribe("beforeDisconnect",function(c){xG("yt-remote-before-disconnect",c)});
y.subscribe("beforeDispose",function(){m1()&&uAQ(null)});
y.subscribe("browserChannelAuthError",function(){var c=DqH();c&&c.idType=="shortLived"&&(Mo6()?Be().handleBrowserChannelAuthError():hb("refreshLoungeToken called before API ready."))});
uAQ(y)},fRQ=function(){var y=ZuQ();
y?(zh("Resume connection to: "+wU6(y)),s1S(y,0)):(gw(),xa9(),zh("Skipping connecting because no session screen found."))},Gh=null,fk=null,nEB=null,yTQ=function(){var y=GWf();
if(_.Eb.isEmpty(y)){y=jT6();var W=_.cj("yt-remote-session-name")||"",c=_.cj("yt-remote-session-app")||"";y={device:"REMOTE_CONTROL",id:y,name:W,app:c,mdxVersion:3};y.authuser=String(_.Nn("SESSION_INDEX","0"));(W=_.Nn("DELEGATED_SESSION_ID"))&&(y.pageId=String(W));_.LR("yt.mdx.remote.channelParams_",y)}},GWf=function(){return _.JW("yt.mdx.remote.channelParams_")||{}},YU=[];var bud=new _.EW("yt-menu"),rTd=function(){},Uq9=function(y,W,c){y=W=="right-click"?c.rightClickMenuPopupHint:c.menuPopupHint;
if(!(Fm6(W)>10))return W=W||"default",bud.set(W+"-impression",Fm6(W)+1),y},Fm6=function(y){return parseInt(bud.get((y||"default")+"-impression")||0,10)};
_.qa(rTd);var $qD=function(){this.contexts_=new WeakMap;this.JSC$17404_networkService_=this.activeContext_=null},Kmg=function(y,W,c){var Z=y.contexts_.get(W);
Z||(Z=new Fxg(y.JSC$17404_networkService_),y.contexts_.set(W,Z));y.activeContext_=Z;c&&y.activeContext_.reset();y.activeContext_.start();return y.activeContext_};var sK=function(){};
sK.prototype.enqueue=function(){var y=this,W;return _.m(function(c){if(y.isCounterfactual())return(W=y.getCounterfactualData())&&y.shouldLogCounterfactualImpression()&&y.sendImpressionEndpoints(W),c.return();y.doEnqueue();_.F2(c)})};
sK.prototype.sendImpressionEndpoints=function(y){_.Q8.getInstance().triggerOptionalAction("yt-service-request",{},y[0])};var uq=function(y,W){this.renderer=y;this.page=W};
_.R(uq,sK);uq.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
uq.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
uq.prototype.shouldLogCounterfactualImpression=function(){return!0};
uq.prototype.doEnqueue=function(){var y=_.BF(this.page);y&&y.pause();this.renderer.impressionCommand&&_.Q8.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.RO(_.Q8.getInstance(),[this.renderer.promoCommand],this.page)};var OuS=function(y,W){this.renderer=y;this.resolver=_.px();this.JSC$17416_enforcementCounter=new _.Ry5;W?this.JSC$17416_playerManager=_.BF(W):this.JSC$17416_playerManager=null;_.fZ(1,!0)};
_.R(OuS,sK);_.f=OuS.prototype;_.f.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var y=[];this.renderer.impressionEndpoints.forEach(function(W){(W=_.UH(W))&&y.push(W)});
return y}};
_.f.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.f.shouldLogCounterfactualImpression=function(){var y=_.XWw();y?(this.JSC$17416_enforcementCounter.increment("POPUP"),_.fZ(3)):_.fZ(2);return y};
_.f.cancel=function(){this.resolver.promise.cancel()};
_.f.doEnqueue=function(){var y=this;_.XWw()?(this.JSC$17416_enforcementCounter.increment("POPUP"),_.fZ(3),gEB(this)):this.JSC$17416_playerManager?(this.resolver.promise.then(function(){gEB(y)}),R13(this.resolver,this.JSC$17416_playerManager)):_.fZ(2)};
var R13=function(y,W){var c=_.px();W.getPlayerPromise().then(function(Z){c.resolve(Z)});
c.promise.then(function(Z){Z.addEventListener("onAbnormalityDetected",y.resolve);_.bU(y.promise,function(){Z.removeEventListener("onAbnormalityDetected",y.resolve)})});
y.promise.thenCatch(function(){c.promise.cancel()})},gEB=function(y){_.fZ(3);
var W={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:y.renderer}};W=_.Q8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});Promise.all(W).then(function(){lRH();y.JSC$17416_playerManager&&y.JSC$17416_playerManager.pause()})},lRH=function(){fa9(function(y,W){_.c3Z(y,W);
y===0?_.fZ(7):_.fZ(4)})};var EE3=function(y,W){this.renderer=y;this.page=W;this.resolver=_.px()};
_.R(EE3,sK);_.f=EE3.prototype;_.f.cancel=function(){this.resolver.promise.cancel()};
_.f.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.f.isCounterfactual=function(){return!this.renderer.isVisible};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var y=this;this.resolver.promise.then(function(){var c={popup:{mealbarPromoRenderer:y.renderer},popupType:"MEALBAR"};_.Q8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var W=_.BF(this.page);W&&Nbf(this.resolver,W)}break;default:this.resolver.resolve()}};
var Nbf=function(y,W){var c=_.px();W.getPlayerPromise().then(function(Z){c.resolve(Z)});
c.promise.then(function(Z){Z.addEventListener("onAdEnd",y.resolve);_.bU(y.promise,function(){Z.removeEventListener("onAdEnd",y.resolve)})});
y.promise.thenCatch(function(){c.promise.cancel()})};var IRg=function(y,W){this.renderer=y;this.page=W};
_.R(IRg,sK);_.f=IRg.prototype;_.f.cancel=function(){this.JSC$17424_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17424_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17424_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.f.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.f.isCounterfactual=function(){return!this.renderer.isVisible};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var y=this,W,c;((W=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(c=W.playbackUpsellDialogTriggerConditionData)==null?void 0:c.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17424_downloadedVideosCountSelectorUnsubscriber=_.ot(_.Sv(),y79,function(Z,G){Z>G&&(pzZ(y),y.cancel())}):pzZ(this)};
var pzZ=function(y){var W={popup:{upsellDialogRenderer:y.renderer},popupType:"MODAL"};_.Q8.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:W},{});(y=_.BF(y.page))&&y.pause()};var tu={},PWg=(tu.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",tu.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",tu.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",tu.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",tu.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",tu.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",tu.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",tu),JT9=function(y,W){this.renderer=y;this.targetManager=
W};
_.R(JT9,sK);_.f=JT9.prototype;_.f.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17431_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17431_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17431_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.f.getCounterfactualData=function(){if(this.isCounterfactual()){var y;return(y=this.renderer.promoConfig)==null?void 0:y.impressionEndpoints}};
_.f.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var y=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17431_downloadedVideosCountSelectorUnsubscriber=_.ot(_.Sv(),y79,function(W,c){y.renderer.targetId&&W>c&&(xJf(y.targetManager,y.renderer.targetId,VM9(y)),y.cancel())});
break;default:xJf(this.targetManager,this.renderer.targetId,VM9(this))}};
var VM9=function(y){var W;if((W=y.renderer.suggestedPosition)==null?0:W.type)var c=PWg[y.renderer.suggestedPosition.type];c||(c="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:y.renderer},popupType:"HINT",position:c}}};var CW9=function(){this.previousPage=null},Q1B;
CW9.prototype.registerPromoCommand=function(y,W){AT3(this,void 0,void 0,_.g(y.roadblock,kgf),void 0,void 0,W)};
var AT3=function(y,W,c,Z,G,D,Y){y.previousPage!==Y&&y.pendingTooltipPromo&&y.pendingTooltipPromo.cancel();y.previousPage=Y;G?(y.pendingEnforcementPromo&&y.pendingEnforcementPromo.cancel(),y.pendingEnforcementPromo=new OuS(G,Y),y.pendingEnforcementPromo.enqueue()):D?(y.pendingCommandWrapperPromo=new uq(D,Y),y.pendingCommandWrapperPromo.enqueue()):Z?(y.pendingRoadblockPromo&&y.pendingRoadblockPromo.cancel(),y.pendingRoadblockPromo=new IRg(Z,Y),y.pendingRoadblockPromo.enqueue()):W?(y.pendingMealbarPromo&&
y.pendingMealbarPromo.cancel(),y.pendingMealbarPromo=new EE3(W,Y),y.pendingMealbarPromo.enqueue()):c&&(y.pendingTooltipPromo&&y.pendingTooltipPromo.cancel(),y.pendingTooltipPromo=new JT9(c,_.j_()),y.pendingTooltipPromo.enqueue())},h19=function(){Q1B||(Q1B=new CW9);
return Q1B};var yfQ=!1;var wPg=function(y,W){var c=_.Nn("SESSION_INDEX");this.actionToken_=y;this.commonToken_=W;this.sessionIndex_=c},eG9=function(y){var W=_.px(),c=_.JW("payments.business.integration.bootstrap"),Z=_.JW("payments.business.integration"),G=Z.Style.create().withMaterialDesignStyle(),D=Z.mashupMode.popup("instrument-manager");
c.asMashupMode(D).usingUserIndex(y.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(G).inStandaloneContext(Z.standaloneContextAuthId.forUserId()).instrumentManager(y.actionToken_,y.commonToken_.length>0?y.commonToken_:void 0,function(Y){var u=Y.instrumentId;u?W.resolve(u):(u=_.JW("payments.business.integration.scenario.InstrumentManager"),W.reject(Y.errorCode&&Y.errorCode===u.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Y){_.pj(Y);
W.reject("instrumentManagerLoadError")});
return W.promise};var SK=function(y,W,c){this.payloadName="transactionFlowFailed";this.payload={errorType:y,serializedTransactionFlowLoggingParams:W,isUserDismiss:c===void 0?!1:c}};
_.LR("yt.ypc.shared.YpcTransactionFlowError",SK);var BbZ=function(){return _.cQ.apply(this,arguments)||this};
_.R(BbZ,_.cQ);BbZ.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
BbZ.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
var nk=BbZ;nk.prototype.onErrorMessageDismiss=nk.prototype.onErrorMessageDismiss;_.x([_.L({readOnly:!0,observer:"errorRendererChanged"}),_.e("design:type",Object)],nk.prototype,"errorRenderer",void 0);_.x([_.B("yt-live-chat-error-message-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],nk.prototype,"onErrorMessageDismiss",null);nk=_.x([_.ZV()],nk);var Huf=[nk.prototype];var Lm6;var vEZ;var dqQ=new _.EW("yt-live-chat"),S16=new Map;S16.set("timestamp_toggle","show-timestamps");S16.set("reactions_toggle","allow-reactions");var TbH=function(){return _.v.apply(this,arguments)||this};
_.R(TbH,_.v);_.f=TbH.prototype;_.f.menuItemIdentifierChanged=function(){var y;(y=this.data)!=null&&y.menuItemIdentifier&&(y=S16.get(this.data.menuItemIdentifier))&&(_.O("enable_lwe_web_mute")?(y=dqQ.get(y),this.isToggled=!(y===void 0?!this.data.isToggled:!y)):this.isToggled=dqQ.get(y))};
_.f.onFocus=function(){this.toggleButton.focus()};
_.f.onTap=function(){var y=this.data.command;y&&this.componentBehavior.resolveCommand(y)};
_.f.computeText=function(y,W,c){return this.componentBehavior.getSimpleString(y?c:W)};
_.f.computeIcon=function(y,W,c){return(y=y?c:W)&&y.iconType?_.wp(y.iconType):""};
var XV=TbH;XV.prototype.onTap=XV.prototype.onTap;XV.prototype.onFocus=XV.prototype.onFocus;XV.prototype.menuItemIdentifierChanged=XV.prototype.menuItemIdentifierChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],XV.prototype,"componentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],XV.prototype,"data",void 0);
_.x([_.L({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.e("design:type",String)],XV.prototype,"icon",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],XV.prototype,"isToggled",void 0);_.x([_.jj("tp-yt-paper-toggle-button"),_.e("design:type",Object)],XV.prototype,"toggleButton",void 0);_.x([_.H("data.menuItemIdentifier"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],XV.prototype,"menuItemIdentifierChanged",null);
_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],XV.prototype,"onFocus",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],XV.prototype,"onTap",null);XV=_.x([_.n6({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],XV);
_.T(XV,"yt-live-chat-toggle-renderer",function(){if(vEZ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Lm6===void 0&&(Lm6=document.createElement("template"));var Z=Lm6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);vEZ=y}y=vEZ;return y},{mode:_.O("live_chat_enable_sink_wrapper")?2:0});var aR6=new _.Sm("NAVIGATION_PROGRESS_TOKEN");_.l1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var xq9={},Dr3=(xq9.CSI=function(y,W){var c={};c[y]=W;y=_.PI(_.SME)(c);Object.keys(y).length>0&&_.IP(y)},xq9.ECATCHER=function(y){return function(W,c){_.Nn(y)[W]=c}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),xq9);var iuf={},MMS={},e1H=(MMS[LgB.name]=!0,MMS),bq=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;y.tabGesturesIsActive=!1;y.actionRouterIsRoot=!0;y.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"};y.pageTitle="";y.titleSuffix="YouTube";y.unseenNotificationCount=
0;y.hasNavigated=!1;y.hasSetScrollTopForNavigation=!1;y.pagePreparer=null;y.zwiebackInitJobId=0;y.dataUpdatePromise=null;y.loadDepsPromise=_.sc();y.hasPendingNavigation=!1;y.pendingPlayerOnResponseReceivedActions=[];return y};
_.R(bq,_.cQ);bq.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.O("enable_browser_cookie_status_monitoring")&&_.Xc(_.KX,this.reportBrowserCookieSetting)};
bq.prototype.reportBrowserCookieSetting=function(){var y=new eFD,W="other";_.z$?W="chrome":_.Dq?W="firefox":_.ll?W="safari":_.B7&&(W="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(c){y.increment(_.Y7(),c,W)}).catch(function(){y.increment(_.Y7(),!1,W)}):y.increment(_.Y7(),!1,W)};
bq.prototype.attached=function(){wzS(this);document.addEventListener("yt-navigate-cache",_.qO(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var y=rP();y.init();y.dispatchElement=this.hostElement};
var wzS=function(y,W){W=W===void 0?0:W;var c=_.U().resolve(_.xN(_.kP));if(c)q1D(y,c);else{if(W>=5)throw Error("Xk");setTimeout(function(){wzS(y,W+1)},0)}},q1D=function(y,W){W.addEventListener("yt-navigate-start",_.qO(y,y.onYtNavigateStart));
W.addEventListener("yt-navigate-finish",_.qO(y,y.onYtNavigateFinish));W.addEventListener("yt-navigate-error",_.qO(y,y.onYtNavigateError));W.addEventListener("yt-page-data-fetched",_.qO(y,y.onYtPageDataFetched));W.addEventListener("yt-navigate-redirect",_.qO(y,y.onYtNavigateRedirect))};
_.f=bq.prototype;
_.f.detached=function(){var y=_.U().resolve(_.kP);y.removeEventListener("yt-navigate-start",_.qO(this,this.onYtNavigateStart));y.removeEventListener("yt-navigate-finish",_.qO(this,this.onYtNavigateFinish));y.removeEventListener("yt-navigate-error",_.qO(this,this.onYtNavigateError));y.removeEventListener("yt-page-data-fetched",_.qO(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.qO(this,this.onYtNavigateCache));y.removeEventListener("yt-navigate-redirect",_.qO(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.f.setPageOffset=function(y,W){y?_.GG(this.hostElement,"yt-set-page-offset",[y,W]):_.OP(Error("Yk"))};
_.f.setPageOffsetForNavigation=function(y,W){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(y,W))};
_.f.onYtNavigateSetPageOffset=function(y,W){this.setPageOffsetForNavigation(W.page,W.offset)};
_.f.getPageOffset=function(){var y=_.p(this.hostElement).querySelector("#page-manager").getCurrentPage(),W=0;y&&(W=_.GG(this.hostElement,"yt-get-page-offset",[y])[0]);return W};
_.f.onYtHistoryPop=function(y,W){if(_.I8("DISABLE_WARM_LOADS"))y.preventDefault(),window.location.reload();else{var c=_.U().resolve(_.kP);c.hasPendingNavigation()&&y.preventDefault();c.cancelPendingNavigation();_.fl(this.hostElement,"yt-pending-navigation-cancelled");W.errorMsg&&(y=W.errorMsg.split(" - "),W=Error(y[0]),y.length==2&&y[1]&&(_.NF(W,y[1]),_.Rs(W)),window.location.reload())}};
_.f.onYtHistoryLoad=function(y,W){var c=this;if(_.I8("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(y=W.endpoint)&&Object.keys(y).length||(y=null);var Z=W.historyEntry,G=_.U().resolve(_.kP),D=_.U().resolve(_.h7),Y=null;Z&&Z.rootData&&(Y=Z.rootData);var u=Y&&kWg(Y);!Y||u||Y.filler?y?(G.navigate(y,!0),jA6(this,y)):(W.legacyBorder||u||(W.JSC$26266_savedComponentState==null&&Y==null?_.Rs(new _.ul("Incomplete history entry",W.forward)):_.gC(new _.ul("Malformed history entry",W.JSC$26266_savedComponentState,
W.forward,Y))),window.location.reload()):(_.qMt({isHot:!0}),_.IP({webInfo:{navigationReason:"h"}}),_.Dsw(),_.PA("srt"),_.PA("pdc"),this.cancelPendingTasks(),yjd(this,W.forward,Y),Y.player&&(Y.player.loaded=!1),jA6(this,y),_.za5(G,y||{},Y,2,{},!1,W).then(function(){c.setPageOffset(D.getCurrentPage(),Z.scrollTop||0)}))}};
_.f.initHistoryManager=function(y){if(!this.hasNavigated){this.hasNavigated=!0;var W=_.p(this.hostElement).querySelector("#page-manager").getCurrentData();y=isNaN(y)?this.getPageOffset():y;var c=_.U().resolve(_.kP).currentEndpoint;this.replaceState(c,W,y)}};
_.f.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.f.onYtNavigateStart=function(y,W){this.cancelPendingTasks();W.noProgressBar||(y=_.U().resolve(_.xN(aR6)))&&y.start();y=this.hasPendingNavigation?null:this.data;this.hasError=!1;var c=_.U().resolve(_.h7),Z,G,D;_.O("kevlar_use_vimio_behavior")&&!((Z=W.endpoint)==null?0:(G=Z.commandMetadata)==null?0:(D=G.webCommandMetadata)==null?0:D.ignoreNavigation)&&(Z=c.getCurrentPage())&&Z.disconnectVisibilityRoot();c.prepareForNavigation(W.pageType,W.endpoint);_.O("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.At(1,"pcl"),_.ht(this.pagePreparer,c.preparePage.bind(c,W.pageType,W.endpoint)));Z=this.getPageOffset();this.initHistoryManager(Z);W.reload||this.hasPendingNavigation?this.replaceState(W.endpoint,y,Z):(y==null?void 0:y.page)==="watch"&&W.pageType==="watch"&&_.O("kevlar_replace_watch_to_watch_history_state")?this.replaceState(W.endpoint,y,Z):(y==null?void 0:y.page)!=="shorts"||W.pageType!=="shorts"||W.endpoint.reelWatchEndpoint.sequenceParams||_.O("short_to_short_back_nav_killswitch")?W.type!=
"navigate-back"&&W.type!="navigate-forward"&&(W.pageType==="shorts"&&_.Z2(this.hostElement,"yt-shorts-reset"),this.saveAndPush(W.url,W.endpoint,y,Z)):this.replaceState(W.endpoint,y,0);this.hasPendingNavigation=!0};
var W7D=function(y){y.hasPendingNavigation=!1;(y=_.U().resolve(_.xN(aR6)))&&y.finish()};
bq.prototype.onYtNavigateError=function(y,W){W7D(this);this.hasError=!0;W&&W.errorMessage?this.errorMessage=W.errorMessage:this.errorMessage=void 0;y=this.get("endpoint.commandMetadata.webCommandMetadata.url",W);var c=_.hW(window.location.href);y&&!c.pbjreload&&(W=W.navigationErrorReason||"10",_.O("kevlar_parent_on_pbjreload")&&(c={csn:_.NR()},this.get("data.endpoint.clickTrackingParams")&&(c.itct=this.data.endpoint.clickTrackingParams),_.wz(y,c)),_.l0(_.BI(y,{pbjreload:W})))};
bq.prototype.onYtNavigateCache=function(y,W){var c=this,Z=W.url,G=W.endpoint,D=W.data;y=!!W.miniplayer;W=!!W.skipHistory;if(Z&&G&&D){var Y=this.getPageOffset(),u=this.data||null;W||this.saveAndPush(Z,G,u,Y);Z=_.za5(_.U().resolve(_.kP),G,D,y?4:3,{},y);y&&Z.then(function(){c.dataUpdatePromise&&c.dataUpdatePromise.then(function(){var t=_.U().resolve(_.h7);c.setPageOffset(t.getCurrentPage(),0)})})}};
bq.prototype.onYtNavigateFinish=function(y,W){var c=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){cj9(c,W.fromHistory)})};
var cj9=function(y,W){W7D(y);if(y.pendingPlayerOnResponseReceivedActions){for(var c=_.z(y.pendingPlayerOnResponseReceivedActions),Z=c.next();!Z.done;Z=c.next())_.jl(Z.value,y.hostElement);y.pendingPlayerOnResponseReceivedActions=[]}c=_.U().resolve(_.h7);!W&&y.hasNavigated&&((W=c.getCurrentPage())?W.is==="ytd-shorts"||y.tabGesturesIsActive||y.setPageOffsetForNavigation(W,0):_.Rs(Error("Zk")));_.O0(function(){_.O0(function(){_.PA("pda")})})};
bq.prototype.onYtNavigateRedirect=function(y){y.detail.url&&this.replaceUrl(y.detail.url)};
bq.prototype.onYtNavigate=function(y){if(!y.detail.endpoint){var W=new _.ul("Error: Missing yt-navigate endpoint from target:",y.target,y.target.nodeName);_.OP(W)}if(W=_.O("cold_missing_history"))W=rP(),W.init(!1),W=!(W.browserHistory.boundHistoryReplaceState&&W.browserHistory.boundHistoryPushState);if(W){_.l1("DISABLE_WARM_LOADS",!0);W=new _.ul("Failed to initialize history manager",this.getDebugString());var c=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
c?_.Rs(W):_.OP(W)}W=y.detail.endpoint;var Z,G;_.O("debug_forward_web_query_parameters")&&((Z=W.commandMetadata)==null?0:(G=Z.webCommandMetadata)==null?0:G.url)&&(W=JSON.parse(JSON.stringify(W)),W.commandMetadata.webCommandMetadata.url=_.QPE(W.commandMetadata.webCommandMetadata.url,window.location.search));y={type:0,command:W,form:{params:y.detail.params,tempData:y.detail.tempData||{},requestType:y.detail.type,createScreenConfig:y.detail.createScreenConfig,reload:y.detail.reload?y.detail.reload:!1,
requestForm:y.detail}};_.O("kevlar_yt_navigate_command_handler")?(Z=_.U().resolve(_.i1),y.form.skipDefaultElement=!0,Z.resolveCommand(W,{form:y.form})):this.handleNavigate(y)};
bq.prototype.handleNavigate=function(y){this.hasSetScrollTopForNavigation=!1;var W=_.U().resolve(_.kP),c=y.form||{};W.navigate(y.command,c.reload,c.params,c.tempData,c.requestType,c.createScreenConfig,c.ignoreConfirmation,c.requestForm)&&jA6(this,y.command,c.tempData)};
bq.prototype.onYtPageDataFetched=function(y,W){try{_.kKE().reset();this.data=W.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.U().resolve(_.h7).updatePageData(this.data);var c=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);c&&zJf(c);var Z=this.get("response.responseContext.serviceTrackingParams",this.data);Z&&zJf(Z);var G=
this.get("playerResponse.onResponseReceivedActions",this.data);G&&(G=ZoZ(this,G));G&&_.mq(this.hostElement,G,this.hostElement);var D=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Y=this.get("response.responseContext.consistencyTokenJar",this.data);if(D||Y){var u=_.JLD(),t=(0,_.Eb.getValues)(u.tokenJars);D&&u.replace(t,D);Y&&u.replace(t,Y)}}catch(b){_.OP(b)}};
var jA6=function(y,W,c){try{y.onYtEndpointChangeHandler(W,c)}catch(Z){_.OP(Z)}};
_.f=bq.prototype;_.f.onYtEndpointChangeHandler=function(){};
_.f.setPageTitle=function(y){y=(this.pageTitle=y)?y+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+y};
_.f.onYtUpdateTitle=function(y,W){this.setPageTitle(W)};
_.f.setUnseenNotificationCount=function(y){this.unseenNotificationCount=y;this.setPageTitle(this.pageTitle)};
_.f.handleUpdateNotificationsUnseenCountAction=function(y){_.g(y,Fgf)&&((y=_.g(y,Fgf).unseenCount)?this.setUnseenNotificationCount(y):this.setUnseenNotificationCount(0))};
_.f.handleClearCookieAction=function(y){var W;(y=(W=_.g(y,nZZ))==null?void 0:W.cookieName)&&_.jvt(y)};
_.f.onYtUpdateUnseenNotificationCount=function(y,W){this.setUnseenNotificationCount(W)};
_.f.loadData=function(y){var W=this;this.loadDepsPromise.then(function(){var c=_.U().resolve(_.xN(_.kP));c||_.OP(Error("$k"));if(y&&y.response){if(!y.endpoint){var Z=_.BT(window.document.location.href)||"/",G="";if(Z==="/"||Z.startsWith("/?"))G="WEB_PAGE_TYPE_BROWSE";y.endpoint={commandMetadata:{webCommandMetadata:{url:Z,webPageType:G,rootVe:3854}}}}_.za5(c,y.endpoint,y,5,{})}else y.endpoint?c.navigate(y.endpoint):c.navigate(_.fH);_.KX.cancelJob(W.zwiebackInitJobId);W.zwiebackInitJobId=_.KX.addLowPriorityJob(W8S)})};
var rP=function(){return _.U().resolve(_.ANV)};
_.f=bq.prototype;_.f.getDebugString=function(){return rP().getDebugString()};
_.f.getThirdPartyManipulationSuspected=function(){return rP().getThirdPartyManipulationSuspected()};
_.f.replaceState=function(y,W,c){rP().saveAndReplace(y,W,c)};
_.f.saveAndPush=function(y,W,c,Z){rP().saveAndPush(y,W,c,Z)};
_.f.replaceUrl=function(y){rP().replaceUrl(y)};
var kWg=function(y){return _.O("web_honor_cache_for_back")&&(_.g(y.endpoint,_.Sb)||_.g(y.endpoint,_.mv))?!0:!y||isNaN(y.expirationTime)?!1:(0,_.Tj)()>y.expirationTime},yjd=function(y,W,c){var Z=y.get("response.trackingParams",c),G=_.EL(),D=_.NR();
if(Z&&G&&D&&(Z=y.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",c),!Z&&c.rootVe&&(Z=c.rootVe),G=W?"forwardButton":"backButton",W=y.get("playerResponse.topbar.desktopTopbarRenderer."+G+".buttonRenderer.command.clickTrackingParams",y.data),y=y.get("response.topbar.desktopTopbarRenderer."+G+".buttonRenderer.command.clickTrackingParams",y.data),W=(y=W||y)?_.Dz(y):void 0,y=_.Zz(),G=[_.sc(c)],_.wR(y,Z,W,{dataPromises:G,csnToClone:c.csn}),c.graftedVes))for(c=
_.z(c.graftedVes),Z=c.next();!Z.done;Z=c.next())_.qY(y,Z.value)};
bq.prototype.onStoreGraftedVeAction=function(y){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(y)):_.Rs(Error("al"))};
var ZoZ=function(y,W){return W.filter(function(c){for(var Z in c)if(e1H[Z])return y.pendingPlayerOnResponseReceivedActions.push(c),!0;return!1})};
_.dJ.Object.defineProperties(bq.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
var Kk=bq;Kk.prototype.onStoreGraftedVeAction=Kk.prototype.onStoreGraftedVeAction;Kk.prototype.loadData=Kk.prototype.loadData;Kk.prototype.onYtUpdateUnseenNotificationCount=Kk.prototype.onYtUpdateUnseenNotificationCount;Kk.prototype.handleClearCookieAction=Kk.prototype.handleClearCookieAction;Kk.prototype.handleUpdateNotificationsUnseenCountAction=Kk.prototype.handleUpdateNotificationsUnseenCountAction;Kk.prototype.setUnseenNotificationCount=Kk.prototype.setUnseenNotificationCount;
Kk.prototype.onYtUpdateTitle=Kk.prototype.onYtUpdateTitle;Kk.prototype.setPageTitle=Kk.prototype.setPageTitle;Kk.prototype.onYtEndpointChangeHandler=Kk.prototype.onYtEndpointChangeHandler;Kk.prototype.onYtPageDataFetched=Kk.prototype.onYtPageDataFetched;Kk.prototype.handleNavigate=Kk.prototype.handleNavigate;Kk.prototype.onYtNavigate=Kk.prototype.onYtNavigate;Kk.prototype.onYtNavigateRedirect=Kk.prototype.onYtNavigateRedirect;Kk.prototype.onYtNavigateFinish=Kk.prototype.onYtNavigateFinish;
Kk.prototype.onYtNavigateCache=Kk.prototype.onYtNavigateCache;Kk.prototype.onYtNavigateError=Kk.prototype.onYtNavigateError;Kk.prototype.onYtNavigateStart=Kk.prototype.onYtNavigateStart;Kk.prototype.cancelPendingTasks=Kk.prototype.cancelPendingTasks;Kk.prototype.initHistoryManager=Kk.prototype.initHistoryManager;Kk.prototype.onYtHistoryLoad=Kk.prototype.onYtHistoryLoad;Kk.prototype.onYtHistoryPop=Kk.prototype.onYtHistoryPop;Kk.prototype.onYtNavigateSetPageOffset=Kk.prototype.onYtNavigateSetPageOffset;
Kk.prototype.setPageOffset=Kk.prototype.setPageOffset;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Kk.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Kk.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Kk.prototype,"hasError",void 0);_.x([_.L(),_.e("design:type",Object)],Kk.prototype,"errorMessage",void 0);
_.x([_.B("yt-navigate-set-page-offset"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],Kk.prototype,"onYtNavigateSetPageOffset",null);_.x([_.B("yt-history-pop"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],Kk.prototype,"onYtHistoryPop",null);
_.x([_.B("yt-history-load"),_.e("design:type",Function),_.e("design:paramtypes",[Event,_.I5W]),_.e("design:returntype")],Kk.prototype,"onYtHistoryLoad",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Kk.prototype,"onYtNavigate",null);_.x([_.B("yt-update-title"),_.e("design:type",Function),_.e("design:paramtypes",[Event,String]),_.e("design:returntype")],Kk.prototype,"onYtUpdateTitle",null);
_.x([_.B("yt-update-unseen-notification-count"),_.e("design:type",Function),_.e("design:paramtypes",[Event,Number]),_.e("design:returntype")],Kk.prototype,"onYtUpdateUnseenNotificationCount",null);Kk=_.x([_.ZV()],Kk);iuf.YtdAppBehavior=[_.Hj.YtActionHandlerBehavior,Kk.prototype];var OK=function(){var y=_.cQ.apply(this,arguments)||this;y._noAccessors=!0;return y};
_.R(OK,_.cQ);OK.prototype.ready=function(){var y=this;_.p(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){y.onChange_()})};
OK.prototype.dataChanged_=function(){_.p(this.hostElement).querySelector("#checkbox").checked=!1};
OK.prototype.onChange_=function(){var y=_.p(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Z2(this.hostElement,"yt-dismissal-reason-"+y,this.data.feedbackToken)};
var gP=OK;gP.prototype.dataChanged_=gP.prototype.dataChanged_;_.x([_.L(),_.e("design:type",Object)],gP.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],gP.prototype,"dataChanged_",null);gP=_.x([_.ZV()],gP);var G0d=[gP.prototype];var RJ=function(){var y=_.cQ.apply(this,arguments)||this;y.timeoutJobId=0;y.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return y};
_.R(RJ,_.cQ);RJ.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
RJ.prototype.startTimeout=function(){var y=this,W=this.data&&this.data.displayDurationSeconds;W&&!this.timeoutJobId&&(this.timeoutJobId=_.Xc(_.KX,function(){_.GG(y.hostElement,"yt-close-popup-action",[y.is]);y.timeoutJobId=0},W*1E3))};
RJ.prototype.cancelTimeout=function(){_.KX.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
var lq=RJ;lq.prototype.ytdHatsSurveyBehaviorDataChanged=lq.prototype.ytdHatsSurveyBehaviorDataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],lq.prototype,"ytActionHandlerBehavior",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lq.prototype,"ytdHatsSurveyBehaviorDataChanged",null);lq=_.x([_.ZV()],lq);var fh3=[_.Hj.YtActionHandlerBehavior,lq.prototype];var o1d=function(y,W){return y.SHARED_RENDERERS_.hasOwnProperty(W)?"yt":y.prefix},EK={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}};EK.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.O("kevlar_mealbar_above_player"),modern:_.O("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"}};
EK.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};EK.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};EK.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
EK.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)"}};
EK.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};
EK.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};
EK.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};
EK.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};EK.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"}};
EK.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};EK.TOAST={component:null,properties:{}};var Df6=new function(y,W,c){this.supportedPopups=y;this.navigationEndpointPopupMap=W;this.popupTypeMap=c;this.supportedPopups=y;this.navigationEndpointPopupMap=W;this.popupTypeMap=c}({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:_.O("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"}),zMQ=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$17483_popupConfig=EK;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 YrS=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.rY.getInstance()},Nc=function(y,W){var c=y.pageNameToElement.get(W);
if(!c){switch(W){case "watch":var Z=_.O("web_watch_force_learning_journey_for_testing")?_.QN("ytd-watch-learning-journey"):_.O("kevlar_watch_fixie")?_.QN("ytd-watch-fixie"):_.O("kevlar_watch_grid")?_.QN("ytd-watch-grid"):_.QN("ytd-watch-flexy");break;case "learning-journey-watch":Z=_.QN("ytd-watch-learning-journey");break;case "shorts":Z=_.QN("ytd-shorts");break;case "search":Z=_.QN("ytd-search");break;case "channel":Z=_.QN("ytd-browse");Z.pageSubtype="channels";break;case "trending":Z=_.QN("ytd-browse");
Z.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":Z=
_.QN("ytd-browse");Z.pageSubtype=W;break;case "browse":Z=_.QN("ytd-browse");break;default:_.Rs(new _.ul("Error getting page element for type",W))}c=Z;y.pageNameToElement.set(W,c)}return c};
YrS.prototype.preparePage=function(y,W,c){c&&(y=w0(c)||y);if(y!=="watch"){var Z=this.elementPoolPopulator,G=y;G!=Z.targetPage_&&Z.pendingPages_.indexOf(G)>-1&&(Z.targetPage_&&(Z.pendingPages_.unshift(Z.targetPage_),Z.abort()),e_B(Z,G),_.bC3(Z,G))}if((Z=Nc(this,y))||!_.g(c,_.CD)){Z.isAttached||Z===W||(Z.hidden=!0);if(!(Z.data||y==="watch"&&_.O("swatcheroo_page_pool_dont_provide_filler_data"))){var D;if(y=(D=_.Nn("FILLER_DATA",{})[y])==null?void 0:D.response)Z.data=y}return Z}};var mf6=function(y){this.JSC$28186_clientRoot=y;this.playlistHandlerActionMap={"yt-add-to-playlist-command":uY9,"yt-end-playlist-command":t6H,"yt-recover-playlist-command":XN9,"yt-refresh-playlist-command":F8D,"yt-playlist-remove-videos-action":biD};_.Ac(_.Q8.getInstance(),this.playlistHandlerActionMap,this.JSC$28186_clientRoot);fYZ()},sAg;var IJ=function(y,W,c){this.apiKey=y;this.endpoint=W;this.confidenceThreshold=c===void 0?.5:c;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=W==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
W==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||W==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new yZZ};
_.f=IJ.prototype;
_.f.start=function(y){if(this.state===0)if(this.isOnline()){y.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=y.supportsHttpHeadersOverwriteParam);y.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=y.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.pl("voice_assistant");_.JE("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=y.languageCode||"en-US";this.supportsCrossDomainXhr=y.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=y.youtubeAssistantRequest||null;this.listeningHandler=y.listeningHandler||this.listeningHandler;this.audioDetectedHandler=y.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=y.stopHandler||this.stopHandler;this.completeHandler=y.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=y.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=y.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
y.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=y.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=y.accessToken;this.additionalHeaders=y.additionalHeaders||{};var W;this.prefetchResponseTimeoutMs=(W=y.prefetchResponseTimeoutMs)!=null?W:this.prefetchResponseTimeoutMs;uQZ(this);this.startAudio();t3H(this)}else this.errorHandler("OFFLINE")};
_.f.stop=function(y){var W=y===void 0?{}:y;y=W.logCancel===void 0?!0:W.logCancel;var c=W.logMicClosed===void 0?!0:W.logMicClosed;var Z=W.handleError===void 0?!0:W.handleError;W=W.handleStop===void 0?!0:W.handleStop;this.state!==0&&(y&&pk("voz_cx"),P4(this,{logMicClosed:c,handleStop:W}),Z&&this.errorHandler("ABORTED"))};
_.f.getState=function(){return this.state};
_.f.isSupported=function(){return!0};
_.f.stopAudio=function(y){(y===void 0||y)&&pk("voz_mf")};
_.f.startAudio=function(){pk("voz_vp");return _.sc(null)};
var n13=function(y,W){y.channelOpen&&(y.state!==2&&(y.state=2,pk("voz_ss"),y.listeningHandler()),W=new Uint8Array(W),W='{ "audioIn": "'+_.OB(W)+'" }',y.channel.send(W))},P4=function(y,W){var c=W===void 0?{}:W;
W=c.logMicClosed===void 0?!0:c.logMicClosed;c=c.handleStop===void 0?!0:c.handleStop;y.vozEndOfDataTimeout>-1&&(clearTimeout(y.vozEndOfDataTimeout),y.vozEndOfDataTimeout=-1);XVg(y);y.stopAudio(W);y.channel&&(y.channelOpen=!1,y.manuallyClosedChannel=!0,y.channel.close(),y.channel=void 0);y.transcribedSpeechResults=[];y.state=0;c&&y.stopHandler()},uQZ=function(y){var W={httpHeadersOverwriteParam:y.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},y.additionalHeaders,y.accessToken&&y.isUsingVoz?{Authorization:"Bearer "+y.accessToken}:{"x-goog-api-key":y.apiKey}),supportsCrossDomainXhr:y.supportsCrossDomainXhr};y.channel=new g1(y.endpoint,W);y.channel.open();_.Y0(y.channel,"w",function(){var c=y.channel,Z=c.send,G=y.isUsingVoz?"PLACEHOLDER":"example";G={config:{dialogStateIn:{languageCode:y.languageCode},deviceConfig:{deviceId:G,deviceModelId:G},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!y.isUsingVoz)G.config.requestType=4;else if(y.isUsingVoz&&y.youtubeAssistantRequest){var D=JSON.stringify(y.youtubeAssistantRequest);G.config.internalIn={youtubeAssistantS3InputJson:D}}Z.call(c,G);y.channelOpen=!0;y.manuallyClosedChannel=!1});
_.Y0(y.channel,"x",function(){y.manuallyClosedChannel||(y.channelOpen=!1,y.channel=void 0,P4(y))});
_.Y0(y.channel,"z",function(c){if(c.data){XVg(y);for(var Z=0;Z<c.data.length;Z++){var G=y,D=c.data[Z],Y=D.speechResults;if(Y)a:{var u=[];D=[];var t=!1;Y=_.z(Y);for(var b=Y.next();!b.done;b=Y.next()){b=b.value;if(b.noSpeech){P4(G);G.errorHandler("NO_SPEECH");break a}b.transcript!==void 0&&b.stability!==void 0&&(b.stability<G.confidenceThreshold&&(t=!0),t?D.push(b.transcript):u.push(b.transcript))}if(u.length!==0||D.length!==0)u=u.join(" "),D=D.join(" "),G.receivedEndOfUtterance&&!G.isUsingVoz?G.isUsingVoz||
G.completeHandler([u,D]):(t=G,Y=u,b=D,pk("voz_sf"),t.transcriptionUpdateHandler(Y,b),t.transcribedSpeechResults=[Y,b]),G.receivedEndOfUtterance&&(pk("voz_eou"),G.transcriptionCompleteHandler([u,D]),G.isUsingVoz&&(G.prefetchResponseTimeoutMs===0?P4(G,{logMicClosed:!1,handleStop:!0}):G.prefetchResponseTimeoutMs>0&&boZ(G)))}else G.isUsingVoz&&(D==null?0:D.internalOut)?(D=JSON.parse(D.internalOut.youtubeAssistantS3OutputJson),D.userHasOptedInToVaa||D.vaaConsent?G.vaaConsentUpdateHandler(!!D.userHasOptedInToVaa,
!!D.vaaConsent):(rjd(G),D&&(u=G.transcribedSpeechResults,pk("voz_rqf"),G.completeHandler(u,D)))):D.eventType==="END_OF_UTTERANCE"?G.receivedEndOfUtterance=!0:(pk("voz_err"),G.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Rs(Error("bl")))}}});
_.Y0(y.channel,"y",function(c){P4(y);switch(c.status){case 1:c="WEBCHANNEL_NETWORK_ERROR";break;case 2:c="WEBCHANNEL_SERVER_ERROR";break;default:c="WEBCHANNEL_UNKNOWN_ERROR"}y.errorHandler(c);y.logError(Error(c))})};
IJ.prototype.logError=function(y){_.OP(y)};
IJ.prototype.isOnline=function(){return!0};
var boZ=function(y){rjd(y);y.prefetchResponseSetTimeoutId=setTimeout(function(){P4(y,{logMicClosed:!1,handleStop:!0})},y.prefetchResponseTimeoutMs)},rjd=function(y){y.prefetchResponseSetTimeoutId>-1&&(clearTimeout(y.prefetchResponseSetTimeoutId),y.prefetchResponseSetTimeoutId=-1)},t3H=function(y){XVg(y);
y.noResponseReceivedTimeout=window.setTimeout(function(){P4(y);y.errorHandler("NO_SPEECH")},11E3)},XVg=function(y){y.noResponseReceivedTimeout>-1&&(window.clearTimeout(y.noResponseReceivedTimeout),y.noResponseReceivedTimeout=-1)},pk=function(y){_.PA(y,void 0,"voice_assistant")};var Ju=function(){IJ.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.R(Ju,IJ);Ju.prototype.isSupported=function(){return UrB()};
Ju.prototype.startAudio=function(){var y=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.hG(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Z){F7H(y,Z)};
this.processor.connect(this.audioContext.destination);var W=function(Z){y.stream=Z;if(!y.audioContext)return _.sc(null);Z=y.audioContext.createMediaStreamSource(Z);y.processor&&Z.connect(y.processor);return _.sc(null)},c={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?W(this.stream):navigator.mediaDevices.getUserMedia(c).then(W).catch(function(Z){P4(y);Z.name&&Z.name==="NotAllowedError"?y.errorHandler("NO_MICROPHONE_PERMISSION"):(y.errorHandler("AUDIO_ERROR"),y.logError(Z));return _.hG(null)});
return IJ.prototype.startAudio.call(this)};
Ju.prototype.stopAudio=function(y){y=y===void 0?!0:y;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(W){W.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;IJ.prototype.stopAudio.call(this,y)};
Ju.prototype.isOnline=function(){return navigator.onLine};
var F7H=function(y,W){if(y.audioContext)if(window.OfflineAudioContext){var c=y.audioContext.sampleRate,Z=W.inputBuffer.getChannelData(0);W=new window.OfflineAudioContext(1,Z.length,16E3);for(var G=W.createBuffer(1,Z.length,c),D=G.getChannelData(0),Y=0,u=0;u<Z.length;u++)D[u]=Z[u],Y+=D[u]*D[u];!y.audioDetected&&Math.sqrt(Y/Z.length)>.01&&(y.audioDetected=!0,y.audioDetectedHandler());Z=W.createBufferSource();Z.buffer=G;Z.connect(W.destination);Z.start(0);W.oncomplete=function(t){t=t.renderedBuffer.getChannelData(0);
for(var b=Math.floor(16384E3/c),r=new Int16Array(b),F=0;F<b;++F)r[F]=Math.max(-1,Math.min(1,t[F]))*32767;n13(y,r.buffer)};
W.startRendering()}else Uf3(y,W)},Uf3=function(y,W){var c=y.audioContext.sampleRate,Z=W.inputBuffer.getChannelData(0),G=Math.floor((c+8E3)/16E3);
c=Z.length/G;W=new Float32Array(c);for(var D=0;D<c;++D)W[D]=Z[D*G];Z=new Int16Array(c);for(G=0;G<c;++G)Z[G]=Math.max(-1,Math.min(1,W[G]))*32767;n13(y,Z.buffer)};var $f9={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var K7H=function(){this.JSC$17548_audioEnabled=!0;this.audioFeedbackHolder={}};
K7H.prototype.isPlaying=function(y){return y.currentTime>0&&!y.paused&&!y.ended&&y.readyState>2};
var OoH=function(y){for(var W=_.z(Object.values($f9)),c=W.next();!c.done;c=W.next())c=c.value,y.audioFeedbackHolder[c]=new Audio,y.audioFeedbackHolder[c].src="/s/search/audio/"+c+".mp3",y.audioFeedbackHolder[c].load()},VY=function(y,W){if(y.JSC$17548_audioEnabled!==!1&&W in y.audioFeedbackHolder){for(var c=_.z(Object.values(y.audioFeedbackHolder)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,y.isPlaying(Z)&&Z.pause();
y.audioFeedbackHolder[W].currentTime=0;y.audioFeedbackHolder[W].play().catch(function(){})}};var g1g=function(y,W){var c=this;this.store=y;this.service=W;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){c.setState("offline");c.stop()};
this.audioPlayer=new K7H;var Z;(Z=this.audioPlayer)==null||OoH(Z)};
_.f=g1g.prototype;_.f.getService=function(){return this.service};
_.f.isEnabled=function(){return!!this.service};
_.f.isSupported=function(){var y;return(y=this.service)==null?void 0:y.isSupported()};
_.f.start=function(){var y=this,W,c,Z,G,D,Y,u,t,b,r,F,K,l;return _.m(function(N){switch(N.nextAddress){case 1:y.store.dispatch(sXB("",""));if(!navigator.onLine)return y.setState("offline"),N.return();window.addEventListener("offline",y.handleOfflineEvent);y.stream=null;if(!y.permissionsSupported){N.jumpTo(2);break}_.tm(N,3);return _.n(N,RMf(y),5);case 5:W=N.yieldResult;if(!W)return(c=y.audioPlayer)==null||VY(c,"failure"),N.return();y.service.stream=y.stream;y.setState("listening");_.J6(N,2);break;
case 3:_.rs(N),y.permissionsSupported=!1;case 2:Z={context:_.o$I(_.x7())},Z.youtubeAssistantParams={searchParams:{inlineSearchResponse:y.enableInlineSearchResponse}},G=function(P,V){y.store.dispatch(uz9("transcribing"));y.store.dispatch(sXB(P,V))},D=function(){var P;
(P=y.audioPlayer)==null||VY(P,"open");y.setState("listening")},Y=function(){y.setState("transcribing")},u=function(P){y.setErrorState(P)},t=function(P,V){var Q;
(Q=y.audioPlayer)==null||VY(Q,"success");V&&(_.O("kevlar_voice_search_inline_search")&&(y.responseProcessor=_.U().resolve(_.nwg),y.responseProcessor&&(Q=V.navigationAction,P=V.prefetchedSearchResponse,Q&&P&&(Q=(new _.NLQ).JSC$11761_getStoreKey(Q),_.BU(y.responseProcessor,P,Q)))),y.JSC$17566_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",V))},b=function(){window.removeEventListener("offline",y.handleOfflineEvent)},r=_.XKF(!1),F=r.Authorization!=null,K=y.enableFirstPartyAuth||
y.enableFPAForSignedInUsers&&F?r:{"X-Goog-Visitor-Id":r["X-Goog-Visitor-Id"]},l={completeHandler:t,
errorHandler:u,listeningHandler:D,audioDetectedHandler:Y,stopHandler:b,transcriptionUpdateHandler:G,youtubeAssistantRequest:Z,languageCode:lhS(),additionalHeaders:K,supportsCrossDomainXhr:y.enableFirstPartyAuth||y.enableFPAForSignedInUsers&&F,supportsHttpHeadersOverwriteParam:!y.disableHttpHeadersOverwrite},y.service.start(l),_.F2(N)}})};
_.f.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.f.reset=function(){this.store.dispatch(_.jv({type:"RESET_VOICE_SEARCH_STATE"}))};
_.f.setState=function(y){this.store.dispatch(uz9(y))};
_.f.setErrorState=function(y){switch(y){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var W;(W=this.audioPlayer)==null||VY(W,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)RMf(this);else{var c;(c=this.audioPlayer)==null||VY(c,"failure");this.setState("permission-denied")}break;case "ABORTED":var Z;(Z=this.audioPlayer)==null||VY(Z,"no_input");break;default:var G;(G=this.audioPlayer)==
null||VY(G,"no_input");this.setState("timeout")}};
var RMf=function(y){var W,c;return _.m(function(Z){switch(Z.nextAddress){case 1:return _.n(Z,navigator.permissions.query({name:"microphone"}),2);case 2:W=Z.yieldResult;if(W.state==="granted")return Z.return(!0);if(W.state==="denied")return y.setState("permission-denied"),Z.return(!1);y.setState("permission");c={audio:{sampleSize:16,channelCount:1},video:!1};_.tm(Z,3);return _.n(Z,navigator.mediaDevices.getUserMedia(c),5);case 5:return y.stream=Z.yieldResult,Z.return(!0);case 3:return _.rs(Z),y.setState("permission-denied"),
Z.return(!1)}})},lhS=function(){var y=_.Nn("INNERTUBE_CONTEXT_HL"),W=_.Nn("INNERTUBE_CONTEXT_GL");
return y.indexOf("-")>-1?y:y+"-"+W};var E1d=function(y,W,c){g1g.call(this,W,c);this.JSC$17566_actionRouter=y;this.enableInlineSearchResponse=_.O("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.O("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.O("kevlar_voice_search_enable_fpa_signedin_users")},NGB;
_.R(E1d,g1g);
var Ih6=function(){if(!NGB){var y="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.O("kevlar_voice_search_auth_enabled")||_.O("kevlar_voice_search_use_yt_endpoint")?y="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.O("kevlar_voice_search_use_fp_endpoint")&&(y="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");NGB=
new E1d(_.Q8.getInstance(),_.Sv(),new Ju(_.Nn("VOZ_API_KEY"),y,.5))}return NGB};var pV6=function(y){this.JSC$17570_clientRoot=y;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$17570_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)]]));y=_.z(this.eventListeners);for(var W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;c=c.next().value;c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next()){var G=
_.z(Z.value);Z=G.next().value;G=G.next().value;W.addEventListener(Z,G)}}_.Ac(_.Q8.getInstance(),this.autonavPauseActionMap,this.JSC$17570_clientRoot)},PDH,JjQ=function(y){return _.O("kevlar_autonav_popup_filtering")?(y=_.hq(y))?y.hasAttribute("prevent-autonav"):!0:!0};
_.f=pV6.prototype;_.f.onIronOverlayOpened=function(y){JjQ(y)&&(this.autonavPauseReasons.overlayOpen=!0,Ck(this))};
_.f.onIronOverlayClosed=function(y){JjQ(y)&&(this.autonavPauseReasons.overlayOpen=!1,Ck(this))};
_.f.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Ck(this)};
_.f.onYtAutonavPauseBlur=function(){var y=this;_.KX.addJob(function(){y.isInBackground()||(y.autonavPauseReasons.inputBoxFocus=!1,Ck(y))},8,0)};
_.f.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Ck(this)};
_.f.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Ck(this)};
_.f.onYtAutonavPauseScroll=function(){var y=_.U().resolve(_.h7);y.isOnWatch()&&(y=y.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=y.getBoundingClientRect().top<-200,Ck(this))};
_.f.onYtAutonavPauseUserEngagement=function(y){var W=this;if(_.O("user_engagement_enable_autoplay_pause_feature")){var c=Number(y.lowEngagementThresholdMs);isNaN(c)||c<=0||y.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.A_("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.U().resolve(_.t7),_.MV()<c?_.Xc(_.KX,function(){_.A_("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.GP6()?(this.userEngagementCsn=_.NR(),_.Xc(_.KX,function(){_.A_("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Ck(this)):_.A_("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.KlH(Error("cl`"+JSON.stringify(y)))};
_.f.onYtAutonavPausePlayer=function(y){this.autonavPauseReasons.requestedByPlayer=!!y.detail;Ck(this)};
_.f.onYtAutonavVisibilityChanged=function(){var y=this,W,c,Z;return _.m(function(G){if(G.nextAddress==1)return(W=_.HF())?_.n(G,W.getPlayerPromise(),2):G.return();c=G.yieldResult;Z=c.isMuted()||c.getVolume()===0;y.autonavPauseReasons.backgroundAndMute=y.isInBackground()&&Z;Ck(y);_.F2(G)})};
_.f.onYtAutonavPausePlayerEnded=function(){_.U().resolve(_.t7);var y=144E5;_.O("user_engagement_enable_autoplay_pause_feature")||_.O("is_part_of_any_user_engagement_experiment")||(y=45E5);this.autonavPauseReasons.longIdle=_.MV()>y;V3d(this);Ck(this)};
_.f.onYtUserActivity=function(){var y=this;this.autonavPauseReasons.userEngagement&&(_.Xc(_.KX,function(){_.A_("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",y.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Ck(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Xc(_.KX,function(){_.A_("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",y.userEngagementCsn);_.KD()}),this.autonavPauseReasons.youthereLactExperiment=!1,Ck(this));
this.autonavPauseReasons.longIdle&&!_.O("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Ck(this))};
_.f.isInBackground=function(){var y=window.document.visibilityState;return!(!y||y==="visible")};
var Ck=function(y){for(var W=!1,c=_.z(Object.values(y.autonavPauseReasons)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,W=W||Z;W?_.LF.getInstance().pause(y.autonavPauseReasons):(y=_.LF.getInstance(),y.autonavState_==3?(y.setState(2,!1,!1),y.autonavPauseReason_=void 0):y.autonavState_==1&&(y.disabledAutonavPauseReason_=void 0))},V3d=function(y){var W=!1;
if(_.O("enable_autoplay_pause_by_lact")){_.U().resolve(_.t7);W=_.ey("autoplay_pause_by_lact_sec")*1E3;var c=_.ey("autoplay_pause_by_lact_sampling_fraction");(W=_.MV()>=W&&Math.random()<c)&&!_.GP6()&&(_.Xc(_.KX,function(){_.A_("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),W=!1)}W!==y.autonavPauseReasons.youthereLactExperiment&&(y.autonavPauseReasons.youthereLactExperiment=W)&&(y.userEngagementCsn=_.NR(),_.Xc(_.KX,function(){_.A_("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",y.userEngagementCsn)}));
y.autonavPauseReasons.userEngagement&&_.Xc(_.KX,function(){_.A_("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",y.userEngagementCsn)})};
pV6.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.A_("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.KD(),this.autonavPauseReasons.youthereLactExperiment=!1,Ck(this));this.autonavPauseReasons.userEngagement&&(_.A_("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Ck(this))};
pV6.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var CDS=function(){var y=_.v.apply(this,arguments)||this;y.miniGuideVisible=!1;y.guideOpened=_.O("disable_initial_guide_state_fix")?!1:y.canFitPersistentGuide(y.initialBodyClientWidth);y.guideUserStateOpened=y.getInitialGuideUserStateOpened();y.isFullscreenShorts=!1;y.miniGuideWidthThreshold=_.ey("kevlar_mini_guide_width_threshold",791);y.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");y.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
y.persistentGuideBlockedPagePathRegex=new RegExp(y.persistentGuideBlockedPagesPatterns.join("|"));y.animationTransitionDuration=0;y.lateDataResolver=_.px();y.serviceEndpoint=KzH;y.initialGuideDataFetchFailed=!1;y.initialLoad=!0;y.guideRenderers=new Set;y.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return y};
_.R(CDS,_.v);_.f=CDS.prototype;_.f.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.f.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.f.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.f.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.f.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.f.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.f.ready=function(){_.U().addProvider({provide:_.EO,useValue:this.hostElement})};
_.f.attached=function(){var y=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.qO(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.qO(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.qO(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.qO(this,this.onYtGuideShow));_.Lv(this,function(){y.animationTransitionDuration=200})};
_.f.detached=function(){document.removeEventListener("yt-navigate-finish",_.qO(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.qO(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.qO(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.qO(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.qO(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.qO(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.qO(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.f.getData=function(){return this.data};
_.f.load=function(){var y=this,W,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=y.lateDataResolver.resolve.bind(y),D.return(y.lateDataResolver.promise);if(window.ytInitialGuideData)return W=_.px(),W.resolve(window.ytInitialGuideData),D.return(W.promise);Z=!1;_.tm(D,2);return _.n(D,y.fetchGuideData(),4);case 4:c=D.yieldResult;_.J6(D,3);break;case 2:G=_.rs(D),G.message==="Returned error"&&(Z=!0);
case 3:if(c)return D.return(c);y.onYtGuideClose();Z||(y.initialGuideDataFetchFailed=!0);return D.return(y.lateDataResolver.promise)}})};
_.f.fetchGuideData=function(){var y=this,W,c,Z,G,D,Y;return _.m(function(u){if(u.nextAddress==1)return y.guidePromise||(y.guidePromise=_.D2(y.hostElement,[y.serviceEndpoint])),_.n(u,y.guidePromise,2);if(u.nextAddress!=3)return W=u.yieldResult,c=_.U(),Z=c.resolve(_.Ia),_.n(u,Z(),3);(G=u.yieldResult)&&((D=W)==null?0:D.data)&&((Y=W.data.responseContext)==null?void 0:Y.maxAgeSeconds)!==0&&G.put("service:guide:fallback",new _.ks({innertubeResponse:W.data}));return u.return(W.data)})};
_.f.initializeGuideDataIfEmpty=function(){var y=this,W,c;return _.m(function(Z){if(Z.nextAddress==1){if(!y.initialGuideDataFetchFailed||y.data)return Z.return();_.tm(Z,2);return _.n(Z,y.fetchGuideData(),4)}if(Z.nextAddress!=2)return(W=Z.yieldResult)&&y.lateDataResolver.resolve(W),_.J6(Z,0);c=_.rs(Z);_.Rs(c);_.F2(Z)})};
_.f.initializeGuideData=function(){var y=this,W;return _.m(function(c){switch(c.nextAddress){case 1:return _.zy(diD(),{mainAppWeb:_.Jq()}),_.tm(c,2),_.n(c,y.load(),4);case 4:y.data=c.yieldResult;_.J6(c,3);break;case 2:_.rs(c),_.Y3(diD(),"FAILURE");case 3:W=y.data&&y.data.items&&y.data.items.length>0?"SUCCESS":"FAILURE",_.Y3(diD(),W),_.F2(c)}})};
_.f.setGuideData=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1)return W.disabled?G.return():W.data?(y.data=W.data,W.guideRenderers.add(y),G.return()):_.n(G,W.initializeGuideData(),2);W.graftGuideToPage();c=_.I8("IS_HOMEPAGE_COLD")?"eop":void 0;_.O("disable_element_pool_populator")?W.setGuideDataAfterInit(y):(Z=new _.At(1,c),_.ht(Z,W.setGuideDataAfterInit.bind(W,y)));_.F2(G)})};
_.f.setGuideDataAfterInit=function(y){y.data=this.data;y.markDirty();this.guideRenderers.add(y);_.O0(function(){_.PA("gle")});
_.Lv(this,function(){_.PA("gpe")})};
_.f.graftGuideToPage=function(){if(this.data){var y=this.data&&this.data.trackingParams;y&&(y=_.Dz(y),_.kI(_.Zz(),y))}};
_.f.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.qO(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.f.onDrawerOpenedChanged=function(y,W){!W.value&&this.guideOpened&&(this.guideOpened=!1)};
_.f.onYtGuideToggle=function(y){var W=this.guideOpened;this.guideOpened=!W;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var c=_.Uc();_.$A(0,109,!this.guideUserStateOpened);c.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Z;this.guideOpened&&((Z=y.detail)==null?0:Z.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.qO(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.qO(this,
this.onAppDrawerTransitioned))}W||this.initializeGuideDataIfEmpty()};
_.f.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.qO(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Bn(this.guideElement)};
_.f.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.qO(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(YM9(this.guideOpened))};
_.f.guidePersistentAndVisibleChanged=function(){_.fl(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.f.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.jv({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.f.miniGuideVisibleChanged=function(){_.fl(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.f.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(YM9(this.guideOpened)),this.initialLoad=!1);_.fl(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.f.activeEndpointChanged=function(){_.fl(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.f.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.f.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()};
_.f.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var y=this.canFitPersistentGuide(this.cachedClientWidth);y?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=y}this.updateGuideDrawerElementState()};
_.f.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.f.getGuideOpened=function(){return this.guideOpened};
_.f.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.f.getActiveEndpoint=function(){return this.activeEndpoint};
_.f.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.f.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&&_.Z2(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.f.computeGuidePersistentAndVisible=function(){var y=this;_.gp(this,"computeGuidePersistentAndVisible",function(){y.guidePersistentAndVisible=y.guideOpened&&y.guidePersistent;y.guideIsVisibleButNotPersistent=!(!y.guideOpened||y.guidePersistent)})};
_.f.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.f.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.f.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.f.startLoadingWatch=function(){this.closeGuide()};
_.f.startLoadingShorts=function(){_.O("web_hide_guide_on_shorts")&&this.closeGuide()};
_.f.onYtNavigateFinish=function(y,W){if(!_.G$||W){this.activeEndpoint=W.endpoint;this.pageType=W.pageType;this.pageUrl=W.response.url;var c,Z;y=(Z=_.g((c=W.endpoint)==null?void 0:c.commandMetadata,_.kT))==null?void 0:Z.url;!this.pageUrl&&y&&(this.pageUrl=y);_.O("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.f.getVisibleGuideRenderer=function(){for(var y=_.z(this.guideRenderers),W=y.next();!W.done;W=y.next())if(W=W.value,this.miniGuideVisible&&W.is==="ytd-mini-guide-renderer"||this.guideOpened&&W.is==="ytd-guide-renderer")return W;return null};
_.f.markGuideRendererDirty=function(y){if(y){typeof y.markDirty==="function"&&y.markDirty();y=_.z([].concat(_.No(_.p(y).children)));for(var W=y.next();!W.done;W=y.next())this.markGuideRendererDirty(W.value)}};
_.f.persistentGuideEnabled=function(y,W){if(!W||y==="watch"||y==="settings"||y==="shorts"&&this.isFullscreenShorts||_.O("reels_web_disable_persistent_guide_shorts")&&y==="shorts")return!1;var c=_.c7(W)||"";return _.O("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Z){return c===Z}):!this.persistentGuideBlockedPagePathRegex.test(c)};
_.f.canFitPersistentGuide=function(y){var W=_.ey("kevlar_persistent_guide_width_threshold",1312);return W===-1||_.O("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:y>W};
_.f.canFitMiniGuide=function(y){return this.miniGuideWidthThreshold===-1?!1:y>this.miniGuideWidthThreshold};
_.f.onResize=function(){var y=this;_.gp(this,"calculateGuideState",function(){y.onResizeDebounced()})};
_.f.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.f.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.f.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.f.getInitialGuideUserStateOpened=function(){return!_.Uc().getFlag(109)};
_.dJ.Object.defineProperties(CDS.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Nn("initialBodyClientWidth")||window.innerWidth}}});
var QY=CDS;QY.prototype.onResize=QY.prototype.onResize;QY.prototype.observeForMiniGuideVisible=QY.prototype.observeForMiniGuideVisible;QY.prototype.computeGuidePersistentAndVisible=QY.prototype.computeGuidePersistentAndVisible;QY.prototype.cachedClientWidthChanged=QY.prototype.cachedClientWidthChanged;QY.prototype.resetGuide=QY.prototype.resetGuide;QY.prototype.activeEndpointChanged=QY.prototype.activeEndpointChanged;QY.prototype.guideOpenedChanged=QY.prototype.guideOpenedChanged;
QY.prototype.miniGuideVisibleChanged=QY.prototype.miniGuideVisibleChanged;QY.prototype.guideIsVisibleButNotPersistentChanged=QY.prototype.guideIsVisibleButNotPersistentChanged;QY.prototype.guidePersistentAndVisibleChanged=QY.prototype.guidePersistentAndVisibleChanged;QY.prototype.onGuideElementChanged=QY.prototype.onGuideElementChanged;QY.prototype.onGuidePersistentChanged=QY.prototype.onGuidePersistentChanged;QY.prototype.onRenderGuideChanged=QY.prototype.onRenderGuideChanged;
QY.prototype.onActiveEndpointChanged=QY.prototype.onActiveEndpointChanged;QY.prototype.onMiniGuideVisibleChanged=QY.prototype.onMiniGuideVisibleChanged;QY.prototype.onGuideIsVisibleButNotPersistentChanged=QY.prototype.onGuideIsVisibleButNotPersistentChanged;QY.prototype.onGuidePersistendAndVisibleChanged=QY.prototype.onGuidePersistendAndVisibleChanged;_.x([_.C(_.K7),_.e("design:type",Object)],QY.prototype,"ironResizableBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],QY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],QY.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],QY.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],QY.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],QY.prototype,"disabled",void 0);
_.x([_.L(),_.e("design:type",Boolean)],QY.prototype,"guidePersistentAndVisible",void 0);_.x([_.H("guidePersistentAndVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onGuidePersistendAndVisibleChanged",null);_.x([_.L(),_.e("design:type",Boolean)],QY.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.H("guideIsVisibleButNotPersistent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.x([_.L(),_.e("design:type",Object)],QY.prototype,"miniGuideVisible",void 0);_.x([_.H("miniGuideVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onMiniGuideVisibleChanged",null);_.x([_.L(),_.e("design:type",Boolean)],QY.prototype,"forceMiniGuideClose",void 0);
_.x([_.L(),_.e("design:type",Object)],QY.prototype,"activeEndpoint",void 0);_.x([_.H("activeEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onActiveEndpointChanged",null);_.x([_.L(),_.e("design:type",Boolean)],QY.prototype,"renderGuide",void 0);_.x([_.H("renderGuide"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onRenderGuideChanged",null);
_.x([_.L(),_.e("design:type",Object)],QY.prototype,"guideOpened",void 0);_.x([_.L(),_.e("design:type",Boolean)],QY.prototype,"guidePersistent",void 0);_.x([_.H("guidePersistent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onGuidePersistentChanged",null);_.x([_.L(),_.e("design:type",Object)],QY.prototype,"guideUserStateOpened",void 0);_.x([_.L(),_.e("design:type",String)],QY.prototype,"pageUrl",void 0);
_.x([_.L(),_.e("design:type",String)],QY.prototype,"pageType",void 0);_.x([_.L(),_.e("design:type",Number)],QY.prototype,"cachedClientWidth",void 0);_.x([_.L(),_.e("design:type",Object)],QY.prototype,"guideElement",void 0);_.x([_.L({selector:_.zq}),_.e("design:type",Object)],QY.prototype,"isFullscreenShorts",void 0);_.x([_.H("guideElement"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onGuideElementChanged",null);
_.x([_.H("guidePersistentAndVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"guidePersistentAndVisibleChanged",null);_.x([_.Gs("guideIsVisibleButNotPersistent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.x([_.H("miniGuideVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"miniGuideVisibleChanged",null);_.x([_.Gs("guideOpened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"guideOpenedChanged",null);_.x([_.H("activeEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"activeEndpointChanged",null);
_.x([_.Gs("pageUrl"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"resetGuide",null);_.x([_.Gs("cachedClientWidth"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"cachedClientWidthChanged",null);_.x([_.H("guideOpened","guidePersistent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"computeGuidePersistentAndVisible",null);
_.x([_.Gs("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"observeForMiniGuideVisible",null);_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QY.prototype,"onResize",null);QY=_.x([_.d({disableElementRegistration:!0,is:"yt-guide-manager"})],QY);var QAD=_.T(QY,"yt-guide-manager",void 0,{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var Aj6=function(){var y=_.v.apply(this,arguments)||this;y.JSC$17580_keyboardInUse=!1;y.boundHandleCapturedKeydownEvent=function(W){y.handleCapturedKeydownEvent(W)};
return y};
_.R(Aj6,_.v);_.f=Aj6.prototype;_.f.attached=function(){this.listenToDocument(document)};
_.f.listenToDocument=function(y){y.addEventListener("keydown",_.qO(this,this.onKeyDownEvent));y.addEventListener("keyup",_.qO(this,this.onKeyUpEvent));y.addEventListener("mousedown",_.qO(this,this.onMouseDownEvent));_.O("desktop_keyboard_capture_keydown_killswitch")||y.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);y.addEventListener("yt-page-data-updated",_.qO(this,this.onPageUpdate))};
_.f.detached=function(){this.unlistenFromDocument(document)};
_.f.unlistenFromDocument=function(y){y.removeEventListener("keydown",_.qO(this,this.onKeyDownEvent));y.removeEventListener("keyup",_.qO(this,this.onKeyUpEvent));y.removeEventListener("mousedown",_.qO(this,this.onMouseDownEvent));_.O("desktop_keyboard_capture_keydown_killswitch")||y.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);y.removeEventListener("yt-page-data-updated",_.qO(this,this.onPageUpdate))};
_.f.ready=function(){_.U().addProvider({provide:_.ml,useValue:this})};
_.f.isKeyBoardInUse=function(){return this.JSC$17580_keyboardInUse};
_.f.handleCapturedKeydownEvent=function(y){if(y.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(y)};
_.f.onMouseDownEvent=function(){this.JSC$17580_keyboardInUse=!1};
_.f.onPageUpdate=function(){if(_.O("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.O("web_shorts_keyboard_shortcut_usage_log")){_.d0.clear();for(var y=_.z(_.Lr),W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;c=c.next().value;c=_.se(c);_.d0.set(W,c);_.HA(_.NR(),_.EL(),c)}_.S$.clear();y=_.z(_.v6);for(W=y.next();!W.done;W=y.next())c=_.z(W.value),W=c.next().value,c=c.next().value,c=_.se(c),_.S$.set(W,c),_.HA(_.NR(),_.EL(),c);_.h_(_.NR(),_.EL(),[].concat(_.No(_.S$.values()),
_.No(_.d0.values())));_.vA(_.NR(),[].concat(_.No(_.S$.values()),_.No(_.d0.values())))}};
_.f.onMiniplayerActiveChange=function(){var y;(y=_.U().resolve(_.Cy).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(y.document):this.unlistenFromDocument(y.document))};
_.f.ignoreKeyEvent=function(y){if(y.ctrlKey||y.altKey)if(_.O("kevlar_macro_markers_keyboard_shortcut")){if(y.keyCode!==37&&y.keyCode!==39)return!0}else return!0;var W=_.Aq(y)||[];return _.Di9(W)?!0:y.defaultPrevented?(Z1(y.keyCode,y.shiftKey,this.isShortsPage),!0):y.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(y):!1};
_.f.isSpacebarClick=function(y){var W=y||window.event;var c;W.composedPath&&typeof W.composedPath==="function"?c=W.composedPath():c=W.path;c&&c.length?W=c[0]:(W=W||window.event,W=W.target||W.srcElement,W.nodeType==3&&(W=W.parentNode));return W&&y.keyCode===32&&(y=W.tagName==="BUTTON"||W.tagName==="A"||W.tagName==="INPUT",W=(W=W.getAttribute("role"))&&(W==="option"||W==="button"||W.indexOf("menuitem")===0),y||W)?!0:!1};
_.f.onKeyDownEvent=function(y){if(!this.ignoreKeyEvent(y)&&(y.keyCode===191&&(y.shiftKey||y.metaKey?y.repeat!=null&&y.repeat||(this.openHotkeyDialog(),Z1(y.keyCode,y.shiftKey,this.isShortsPage)):(this.focusSearchBox(),y.preventDefault())),!y.metaKey)){var W=_.U().resolve(_.Cy);switch(y.keyCode){case 9:this.JSC$17580_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(y);break;case 84:W.pipController.getWindow()&&window.focus();this.toggleTheaterMode(y.keyCode,y.shiftKey);break;case 73:W.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(y.keyCode,y.shiftKey);break;case 70:if(this.isShortsPage&&_.O("web_fullscreen_shorts")){_.YHH();break}this.isMiniplayerActive()?W.pipController.getWindow()&&(W.close(!0),window.focus()):this.passEventToPlayer(y);break;case 27:this.closeMiniplayer(y.keyCode,y.shiftKey)||this.passEventToPlayer(y);break;case 13:y.shiftKey&&_.O("web_ephemeral_actions")&&_.U().resolve(_.wE).activate(y);break;default:this.passEventToPlayer(y)}}};
_.f.onKeyUpEvent=function(y){if(!this.ignoreKeyEvent(y))if(_.O("web_speedmaster_spacebar_control")&&y.keyCode===32)this.handlePlayerSpaceKey(y,!0);else{var W=this.getPlayerManager();W&&(W=W.getPlayer())&&W.handleGlobalKeyUp(y.keyCode,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code)}};
_.f.getPlayerManager=function(){var y=_.HF(),W=_.U().resolve(_.xN(_.h7));return y&&W&&W.isOnWatch()?y:null};
_.f.passEventToPlayer=function(y,W){var c=this,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return!_.O("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&c.isMiniplayerActive()?Z=_.U().resolve(_.Cy).getPlayerElement():c.inlinePreviewIsActive?(G=_.fl(c.hostElement,"yt-get-inline-preview-player-action"))&&G[0]&&(Z=G[0]):Z=_.HF(),Z?_.n(Y,Z.getPlayerPromise(),3):Y.jumpTo(0);D=Y.yieldResult;W?D.handleGlobalKeyUp(y.keyCode,y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code,y.repeat):D.handleGlobalKeyDown(y.keyCode,
y.shiftKey,y.ctrlKey,y.altKey,y.metaKey,y.key,y.code,y.repeat);y.keyCode!==38&&y.keyCode!==40&&Z1(y.keyCode,y.shiftKey,c.isShortsPage);_.F2(Y)})};
_.f.focusSearchBox=function(){_.Z2(this.hostElement,"yt-focus-searchbox")};
_.f.openHotkeyDialog=function(){_.Z2(this.hostElement,"yt-open-hotkey-dialog")};
_.f.isMiniplayerActive=function(){return _.U().resolve(_.Cy).isMiniplayerActive()};
_.f.closeMiniplayer=function(y,W){return this.isMiniplayerActive()?(_.U().resolve(_.Cy).close(),Z1(y,W,this.isShortsPage),!0):!1};
_.f.toggleTheaterMode=function(y,W){var c=_.si(_.Sv().getState()),Z=this.getPlayerManager(),G=_.O("disable_theater_mode_keyboard")||_.I8("START_IN_FULL_WINDOW_MODE");Z&&!G&&(c=!c,_.jG()&&_.O("external_fullscreen")&&(c=!0),_.GG(this.hostElement,"yt-toggle-theater-mode",[c]),Z1(y,W,this.isShortsPage))};
_.f.toggleMiniplayer=function(y,W){var c=this.getPlayerManager();if(this.isMiniplayerActive()){var Z;((Z=_.U().resolve(_.xN(_.h7)))==null?0:Z.isOnWatch())?_.U().resolve(_.Cy).close(!0):_.Gm(_.U().resolve(_.Cy));Z1(y,W,this.isShortsPage)}else c&&(_.GG(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Z1(y,W,this.isShortsPage))};
_.f.handlePlayerSpaceKey=function(y,W){var c=!!_.HF()||this.isMiniplayerActive();c=_.O("disable_space_scroll_fix")||c;_.O("global_spacebar_pause")&&!this.isKeyBoardInUse()&&c&&(y.preventDefault(),this.passEventToPlayer(y,W))};
var Au=Aj6;Au.prototype.onMiniplayerActiveChange=Au.prototype.onMiniplayerActiveChange;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Au.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Au.prototype,"ytdReduxBehavior",void 0);_.x([_.L({selector:_.p0O}),_.e("design:type",Boolean)],Au.prototype,"inlinePreviewIsActive",void 0);_.x([_.L({selector:_.fzH}),_.e("design:type",Boolean)],Au.prototype,"isShortsPage",void 0);
_.x([_.L({selector:_.Eq}),_.e("design:type",Boolean)],Au.prototype,"miniplayerIsActive",void 0);_.x([_.H("miniplayerIsActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Au.prototype,"onMiniplayerActiveChange",null);Au=_.x([_.d({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Au);_.T(Au,"yt-hotkey-manager",void 0,{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var hMH=function(){var y=_.v.apply(this,arguments)||this;y.loopStateEntityKey_=null;y.playlistLoopStateEntity_=null;y.isShuffleNextPlaylist=!1;y.JSC$17583_PLAYER_EVENTS_=new Map;y.playerListenersSetup_=!1;y.videoSkipJob_=0;y.canAutoAdvance_=!1;y.playerManager_=null;y.TEST_ONLY={};return y};
_.R(hMH,_.v);_.f=hMH.prototype;_.f.ready=function(){_.U().addProvider({provide:_.EU,useValue:this.hostElement})};
_.f.created=function(){this.JSC$17583_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17583_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17583_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17583_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17583_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17583_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.f.attached=function(){document.addEventListener("yt-navigate-start",_.qO(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.qO(this,this.onYtNavigateFinish_))};
_.f.detached=function(){document.removeEventListener("yt-navigate-start",_.qO(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.qO(this,this.onYtNavigateFinish_))};
_.f.updatePlaylistEventListeners=function(y,W){W&&!this.playerListenersSetup_?(this.playerManager_=y,this.registerPlaylistEventListeners_(y)):!W&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(y))};
_.f.setPlayer=function(y){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=y};
_.f.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.f.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.f.registerPlaylistEventListeners_=function(y){var W=this;y.getPlayerPromise().then(function(c){W.playerListenersSetup_||(W.ytPlayerListenerBehavior.listenToPlayerEvents(c,W.JSC$17583_PLAYER_EVENTS_),W.playerListenersSetup_=!0)})};
_.f.removePlaylistEventListeners_=function(y){var W=this;y.getPlayerPromise().then(function(c){W.playerListenersSetup_&&(W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,W.JSC$17583_PLAYER_EVENTS_),W.playerListenersSetup_=!1)})};
_.f.setPlaylistComponent=function(y){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.qO(this,this.onPlaylistYtNavigate_)),y&&(y.data&&this.playlistComponent.data&&y.data.playlistId==this.playlistComponent.data.playlistId?(y.loopOn=this.playlistComponent.loopOn,y.shuffleOn=this.playlistComponent.shuffleOn):(y.loopOn=!1,y.shuffleOn=!1),this.isShuffleNextPlaylist&&(y.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=y;this.playlistComponent.addEventListener("yt-navigate",
_.qO(this,this.onPlaylistYtNavigate_))};
_.f.setAutoplayRenderer=function(y){this.autoplayData=y};
_.f.setPlaylistData=function(y){this.currentPlaylistData_=y;_.Z2(this.hostElement,"yt-playlist-data-updated");_.Eb.isEmpty(y)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(y)};
_.f.setPlayerPlaybackControlData=function(y){this.playerManager_&&this.playerManager_.updatePlayerComponents(y.playlistPanelRenderer)};
_.f.getPlaylistData=function(){return this.currentPlaylistData_};
_.f.getTempData_=function(y,W){if(this.playlistComponent==null)return null;y={};this.playlistComponent.shuffleOn&&(y.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(y.loop_on=this.playlistComponent.loopOn);W&&(y.autonav="1",_.U().resolve(_.t7),W=_.MV(),W>0&&(y.lact=W),this.playerManager_&&(W=this.playerManager_.getPlayer())&&W.shouldSendVisibilityState()&&(W=W.getVisibilityState(),W!=0&&(y.vis=W)));_.O("enable_unknown_lact_fix_on_html5")&&(_.U().resolve(_.t7),y.lact=_.MV());
return y};
_.f.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.f.setLoopStateEntityKey_=function(y){var W;this.loopStateEntityKey_=((W=this.getPlaylistLoopData_(y))==null?void 0:W.playlistLoopStateEntityKey)||null};
_.f.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.f.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.f.skipVideo=function(){var y=this,W=_.O("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||W)W=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.YY(_.KX,function(){y.onPlaylistNext();y.videoSkipJob_=0},W)};
_.f.cancelVideoSkip=function(){this.videoSkipJob_&&(_.KX.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.f.isInBackground_=function(){var y=window.document.visibilityState;return!(!y||y=="visible")};
_.f.onPlaylistIndex_=function(y){this.playlistComponent&&(y=this.playlistComponent.data.contents[y].playlistPanelVideoRenderer.navigationEndpoint,_.Z2(this.hostElement,"yt-navigate",{endpoint:y,tempData:this.getTempData_(y)}))};
_.f.onPlayerStateChange_=function(y){if(y=y==0&&this.playlistComponent&&this.canAutoAdvance_)y=_.LF.getInstance(),y=!(y.autonavState_===3?y.autonavPauseReason_&&y.autonavPauseReason_.inputBoxFocus===!0:y.autonavState_===1&&y.disabledAutonavPauseReason_&&y.disabledAutonavPauseReason_.inputBoxFocus===!0);y&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.f.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.f.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.f.navigateToAutoplayWatchEndpoint_=function(y,W,c){var Z=this.playlistComponent.data.currentIndex,G=this.getNumPlayableVideos_();y=="NORMAL"&&W=="autoplayVideo"&&Z+1>=G&&c||!(y=this.getVideoEndpoint_(y,W))||(c=this.getTempData_(y,c),_.Z2(this.hostElement,"yt-navigate",{endpoint:y,tempData:c}))};
_.f.getNumPlayableVideos_=function(){for(var y=0,W=_.z(this.playlistComponent.data.contents||[]),c=W.next();!c.done;c=W.next())c.value.playlistPanelVideoRenderer&&(y+=1);return y};
_.f.getVideoEndpoint_=function(y,W){if(this.autoplayData&&this.autoplayData.sets)for(var c=0,Z=this.autoplayData.sets.length;c<Z;c++){var G=this.autoplayData.sets[c];if(G.mode==y){if(G[W])return G[W];break}}else y=new _.ul("AutoplayData is undefined in playlist manager","Mode: "+y+" endpoint: "+W),_.Rs(y)};
_.f.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.f.onPlaylistYtNavigate_=function(y){if(y.detail.endpoint){y.stopPropagation();var W=y.detail;W.tempData=this.getTempData_(y.detail.endpoint);_.Z2(this.hostElement,"yt-navigate",W)}};
_.f.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.f.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.f.playlistLoopStateEntityChanged_=function(y){var W=this,c,Z,G;return _.m(function(D){if(D.nextAddress==1){if(!y)return D.return();c=y.state==="PLAYLIST_LOOP_STATE_ONE";return W.playerManager_?_.n(D,W.playerManager_.getPlayerPromise(),3):D.jumpTo(2)}D.nextAddress!=2&&(Z=D.yieldResult,Z.setLoopVideo(c));G=y.state==="PLAYLIST_LOOP_STATE_ALL";W.playlistComponent&&(W.playlistComponent.loopOn=G);_.F2(D)})};
_.f.getPlaylistLoopData_=function(y){var W,c;if(y=y==null?void 0:(W=y.playlistButtons)==null?void 0:(c=W.menuRenderer)==null?void 0:c.topLevelButtons)for(W=_.z(y),c=W.next();!c.done;c=W.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer};
_.f.getLoopStateCommand_=function(y){var W=this.getPlaylistData(),c;W=((c=this.getPlaylistLoopData_(W))==null?void 0:c.states)||[];var Z;y=(Z=_.g(W[y?1:2],_.Bq2))==null?void 0:Z.button;var G;return(G=_.g(y,_.RU))==null?void 0:G.command};
_.f.onPlayerLoopChange_=function(y){this.playlistLoopStateEntity_&&(y?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(y=this.getLoopStateCommand_(y))&&this.ytComponentBehavior.resolveCommand(y)};
_.f.onSleepTimerSettingsChanged_=function(y){this.canAutoAdvance_=y!=="End of video"};
var hu=hMH;hu.prototype.onPlaylistLoopStateEntityChanged=hu.prototype.onPlaylistLoopStateEntityChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],hu.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],hu.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],hu.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hu.prototype,"loopStateEntityKey_",void 0);
_.x([_.L({selectorArgs:["loopStateEntityKey_"],selector:_.RRg}),_.e("design:type",Object)],hu.prototype,"playlistLoopStateEntity_",void 0);_.x([_.H("playlistLoopStateEntity_"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hu.prototype,"onPlaylistLoopStateEntityChanged",null);hu=_.x([_.d({disableElementRegistration:!0,is:"yt-playlist-manager"})],hu);_.T(hu,"yt-playlist-manager",void 0,{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var BG6,Ho6=function(){if(BG6!==void 0)return BG6;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return BG6=y};var L79=function(){var y=_.v.apply(this,arguments)||this;y.lastCallback=null;y.getAccountLinkPromises={};y.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);y.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return y};
_.R(L79,_.v);_.f=L79.prototype;_.f.getLocation=function(){return window.location.href};
_.f.getCompletionUrl=function(){return _.xT(this.getLocation())};
_.f.containsRedirectState=function(y){return(y=_.O9(_.GXI(y)))?(new URLSearchParams(y)).get("redirect_state")!==null:!1};
_.f.createGalConfig=function(y,W){var c=new POQ;y=c=W?this.getPopupOrRedirectSetting(c,_.Nn("LINK_API_KEY"),_.Nn("LINK_API_KEY_REDIRECT"),y):JkH(c,_.Nn("LINK_API_KEY"));y.authUser=_.Nn("SESSION_INDEX")||0;y.supportedFlows=new Set([4]);return y.build()};
_.f.getPopupOrRedirectSetting=function(y,W,c,Z){this.isGalInteractionPopupMode(Z)?(y.interactionMode=0,y=JkH(y,W)):(y.interactionMode=1,W=this.getCompletionUrl(),y.completionUrl=W,y=JkH(y,c));return y};
_.f.isGalInteractionPopupMode=function(y){if(this.redirectModeProviderAllowlist.has(y))switch(y){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.O("main_web_redirect_integration_riot");default:return!1}return!0};
_.f.getStatusEntityKeyForProviderId=function(y){return _.Gx(y+":all","accountLinkStatusEntity")};
_.f.findNestedPropValue=function(y,W){var c=!1,Z=null;JSON.stringify(y,function(G,D){c||G!==W||(c=!0,Z=D);return c?null:D});
return Z};
_.f.findAccountLinkButtonViewModel=function(y,W){var c=null,Z=!1;JSON.stringify(y,function(G,D){Z||D.accountLinkStatusEntityKey!==W||D.accountLinkStatusSecondaryEntityKey||(Z=!0,c=D);return Z?null:D});
return c};
_.f.executeLinkingSuccessOrFailureCommands=function(y,W,c){var Z=null,G;(W==null?0:(G=W.url)==null?0:G.includes("account_sharing"))?Z=W==null?void 0:W.response:Z=W==null?void 0:W.response;(W=this.findAccountLinkButtonViewModel(Z,y))?(y=c?this.findNestedPropValue(W,"onSuccessCommand"):this.findNestedPropValue(W,"onFailureCommand"))?_.tE([y],this.hostElement):_.Va(Error("dl")):_.Va(Error("el`"+y))};
_.f.handleInitializeRequest=function(y,W){var c=this,Z=Dv9(this.createGalConfig(y,!0));this.containsRedirectState(this.getLocation())?M8B(y,Z.config,Z.galService).then(function(G){var D=c.getStatusEntityKeyForProviderId(y);if(G.statusCode===1)W&&c.executeLinkingSuccessOrFailureCommands(D,W,!0),G=c.getLocation().indexOf("#"),G!==-1&&window.history.pushState(null,"",c.getLocation().substring(0,G));else return W&&c.executeLinkingSuccessOrFailureCommands(D,W,!1),Promise.reject(Error(G.statusMessage))}).catch(function(G){_.Rs(G);
_.$g("gamingAccountLinkStatusChanged",{serviceId:y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(G)}):this.getAccountLinkPromises[y]=Z.startLinkingSession({serviceId:y})};
_.f.handleAccountLinkCommand=function(y){_.g(y,CcZ)&&this.handleLinkRequest(_.g(y,CcZ))};
_.f.handleLinkRequest=function(y){var W=this,c=y.thirdPartyId;if(c)if(this.isGalInteractionPopupMode(c)){var Z=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",y.onFailureCommand)},G=function(){W.closeAndFire("ytd-gaming-account-link-setting-renderer",y.onSuccessCommand)};
this.lastCallback=G;this.getAccountLinkPromises[c].then(function(D){mYB(D).then(function(Y){Y.statusCode===1?G():Z()})}).catch(function(){Z()})}else this.getAccountLinkPromises[c].then(function(D){mYB(D).then(function(Y){if(Y.statusCode!==1)return Promise.reject(Error(Y.statusMessage))})}).catch(function(D){_.Rs(D);
_.$g("gamingAccountLinkStatusChanged",{serviceId:c,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(D)})};
_.f.closeAndFire=function(y,W){_.GG(this.hostElement,"yt-close-popup-action",[y]);W&&_.tE([W],this.hostElement)};
_.f.handleAccountUnlinkCommand=function(y){_.g(y,QwH)&&this.handleUnlinkRequest(_.g(y,QwH))};
_.f.handleUnlinkRequest=function(y){var W=this,c=y.thirdPartyId;if(c){var Z=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",y.onFailureCommand)},G=function(){W.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",y.onSuccessCommand)};
this.lastCallback=G;var D=Dv9(this.createGalConfig(c,!1));this.unlinkUserGal(D,c).then(function(Y){Y.statusCode===1?G():Z()}).catch(function(){Z()})}};
_.f.unlinkUserGal=function(y,W){return y.deleteLink(W)};
_.f.handleLogAccountLinkingEventCommand=function(y){_.O("enable_gel_log_commands")&&_.g(y,ALH)&&(y=_.g(y,ALH).event)&&_.$g("gamingAccountLinkStatusChanged",y)};
_.dJ.Object.defineProperties(L79,{template:{configurable:!0,enumerable:!0,get:function(){return Ho6()}}});
var B4=L79;_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],B4.prototype,"ytOpenPopupBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],B4.prototype,"ytActionHandlerBehavior",void 0);B4=_.x([_.d({disableElementRegistration:!0,is:"ytd-third-party-manager"})],B4);_.T(B4,"ytd-third-party-manager",function(){return Ho6()},{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var v16,dfQ=function(){return v16!==void 0?v16:v16=document.createElement("template")};
document.head.appendChild(dfQ().content);var Sr6,TGZ=function(){if(Sr6!==void 0)return Sr6;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(dfQ().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Sr6=y};var ahQ=_.dl(["\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      "]),xf6=function(){var y=_.v.apply(this,arguments)||this;y.currentPage=void 0;y.renderLoadingStateJobId=0;y.updatePageDataJobId=0;y.pageDisposeJobsets=new WeakMap;y.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"};y.applyZoomTransition=_.wj("web_page_transition_type")==="zoom";y.applySlideTransition=_.wj("web_page_transition_type")==="slide";y.TEST_ONLY=void 0;return y};
_.R(xf6,_.v);_.f=xf6.prototype;_.f.ready=function(){var y=_.U();y.addProvider({provide:_.h7,useValue:this});y.addProvider({provide:_.MQB,useValue:this})};
_.f.created=function(){this.pagePool=new YrS;this.contextSwitcher=new $qD};
_.f.attached=function(){_.Z2(this.hostElement,"attached");var y=_.U().resolve(_.xN(_.tq));y&&(this.contextSwitcher.JSC$17404_networkService_=y);this.viewTransitionManager=_.U().resolve(_.xN(_.iR3));this.setupPageTransitionAnimation()};
_.f.getPageOffset=function(y){return y.getScrollTop()};
_.f.setPageOffset=function(y,W){try{y.setScrollTop(W)}catch(c){}};
_.f.setPageOffsetForNavigation=function(y,W){_.Z2(this.hostElement,"yt-navigate-set-page-offset",{page:y,offset:W===void 0?0:W})};
_.f.pauseActiveContext=function(){var y=this.contextSwitcher;y.activeContext_&&y.activeContext_.pause()};
_.f.getModuleNameForType=function(y){return y==="watch"?_.O("kevlar_watch_fixie")?"watchFixie":_.O("kevlar_watch_grid")?"watchGrid":"watchFlexy":y==="shorts"||y==="search"?y:"browse"};
_.f.attachPage=function(y){var W,c=!_.O("pc_is_attached_ks")&&(y==null?void 0:(W=y.polymerController)==null?void 0:W.isAttached);if(!y.isAttached&&!c)try{_.p(this.hostElement).appendChild(y)}catch(G){var Z;_.Rs(new _.ul("Error attaching page element for component",{origin:(Z=this.currentPage)==null?void 0:Z.is,component:y.is}))}};
_.f.setActivePage=function(y){var W=this,c=!1,Z=function(){var G=W.isOnWatch(),D=W.currentPage;if(y)if(y!==W.currentPage){D&&(D.hidden=!0,D.active=!1,D.removeAttribute("role"));W.currentPage=y;var Y,u=w0((Y=W.data)==null?void 0:Y.endpoint);D&&_.Z2(W.hostElement,"yt-page-type-changed",{oldPageType:D.is,newPageType:y.is,newPageSubtype:u});_.I5().dispatch(_.jv({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:y.is}));_.I5().dispatch(_.jv({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:u||""}));y.hidden=
!1;W.attachPage(y);y.active=!0;y.setAttribute("role","main");D&&W.setPageOffsetForNavigation(y,0);_.O("kevlar_remove_page_dom_on_switch")&&!G&&D&&_.p(W.hostElement).removeChild(D)}else c=!0;else G=new _.ul("Unable to set active page",D?D.is:"unknown origin",(u=W.data)==null?void 0:u.endpoint),_.OP(G)};
this.viewTransitionManager?IY9(this.viewTransitionManager,Z,this.viewTransitionConfigForSetActivePage(this.currentPage,y)):Z();return c};
_.f.viewTransitionConfigForSetActivePage=function(y,W){return _.O("web_thumbnail_to_watch_transition")&&(y==null?void 0:y.is)==="ytd-browse"&&this.isWatchPage(W)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(y==null?void 0:y.is)==="ytd-browse"&&(W==null?void 0:W.is)==="ytd-browse"&&y!==W?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.f.updatePageData=function(y){var W=this,c=this.data;this.updatePageDataJobId&&_.KX.cancelJob(this.updatePageDataJobId);this.data=y;return new _.fD(function(Z){var G=function(){y.filler?W.performDataUpdate(y,c):i2Z(function(){W.performDataUpdate(y,c)});
var t=_.It();_.pH(t,"cr")||t.processSignal("cr");Z()},D=function(){y&&y.page==="watch"?W.updatePageDataJobId=_.YY(_.KX,G):G()};
if(_.O("kevlar_enable_mss_page_modules_client")&&y){var Y=_.U().resolve(_.Ad),u=W.getModuleNameForType(y.page);(Y=Ej3(Y,[u]))?Y.then(D):D()}else D()})};
_.f.isDownloadsPage=function(y){var W,c;return(y==null?void 0:(W=y.endpoint)==null?void 0:(c=W.browseEndpoint)==null?void 0:c.browseId)==="FEdownloads"};
_.f.setPlayerSyncInterval=function(y){var W;return _.m(function(c){if(c.nextAddress==1)return _.n(c,_.U().resolve(_.Tb),2);W=c.yieldResult;W.setUpPositionSyncInterval(y);_.F2(c)})};
_.f.performDataUpdate=function(y,W){_.O("kevlar_early_popup_close")||_.GG(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var c=!y.filler;c&&(_.PA("lps"),_.O("config_age_report_killswitch")||K$d());var Z=aj(y),G,D=!1;if(_.O("kevlar_remove_page_dom_on_switch")){var Y=W&&aj(W);Z===Y&&(G=this.getCurrentPage())}G||(G=Nc(this.pagePool,Z));c&&wg6(this.pagePool.elementPoolPopulator,Z);c&&!this.renderLoadingStateJobId&&(D=this.setActivePage(G));if(G){Y=Z==="watch";var u=
Z==="shorts";_.O("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(G);if(Y||u)G.playerData=y.playerResponse;if(u){y.reelWatchSequenceResponse?G.reelWatchSequenceResponse=y.reelWatchSequenceResponse:y.cachedReelWatchSequenceResponse&&(G.reelWatchSequenceResponse=y.cachedReelWatchSequenceResponse);G.currentEndpoint=y.endpoint;var t;G.isPreviousPageShorts=!!(W==null?0:(t=W.endpoint)==null?0:t.reelWatchEndpoint);y.cachedReelWatchSequenceResponse=y.reelWatchSequenceResponse||
y.cachedReelWatchSequenceResponse||(W==null?void 0:W.cachedReelWatchSequenceResponse);G.cachedReelWatchSequenceResponse=y.cachedReelWatchSequenceResponse}t=this.isDownloadsPage(y);var b=this.isDownloadsPage(W);t&&!b?this.setPlayerSyncInterval(6E5):!t&&b&&this.setPlayerSyncInterval();_.O("block_all_player_prefetch_requests")||this.preparePrefetchRequest(y,G,c,Y,u);pi3(_.U().resolve(_.Cy),W,y);_.YiT(_.U().resolve(_.t7));_.O("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(G);
c?(c=typeof G.loadPage,c==="function"?(G.pageContext=Kmg(this.contextSwitcher,G,G.data!==y.response),W=function(){G.loadPage(y.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&G.is==="ytd-browse"&&D?this.applySlideTransition?IY9(this.viewTransitionManager,W,{transitionName:"slide"}):IY9(this.viewTransitionManager,W,{transitionName:"zoom"}):W()):_.gC(new _.ul("b/38014653 ",[Z,
G.is,G.nodeName,c,G.isAttached,W&&aj(W),this.hostElement.children.length])),_.PA("pdl")):(G.hidden=!0,y.response.filler=!0,G.data=y.response,this.attachPage(G));_.Z2(this.hostElement,"yt-page-data-updated",{pageType:Z})}_.Xc(_.KX,function(){_.O("logging_avoid_blocking_during_navigation")&&_.xu1().transition("none");var r=h19(),F=G;if(y){var K=kyD(y),l=jEQ(y),N;a:{if(y.playerResponse){var P=y.playerResponse,V;if((N=P.auxiliaryUi)==null?0:(V=N.messageRenderers)==null?0:V.upsellDialogRenderer){N=P.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(y.response&&(N=y.response,(P=N.overlay)==null?0:P.upsellDialogRenderer)){N=N.overlay.upsellDialogRenderer;break a}N=void 0}var Q;var S;V=(Q=y.playerResponse)==null?void 0:(S=Q.auxiliaryUi)==null?void 0:S.messageRenderers;Q=(V==null?void 0:V.enforcementMessageViewModel)||(V==null?void 0:V.bkaEnforcementMessageViewModel);Q=(Q==null?void 0:Q.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Q:void 0;var cy;a:{if(y.response&&(S=y.response,(cy=S.overlay)==null?0:cy.commandWrapperPromoRenderer)){cy=
S.overlay.commandWrapperPromoRenderer;break a}cy=void 0}AT3(r,K,l,N,Q,cy,F)}})};
_.f.preparePrefetchRequest=function(y,W,c,Z,G){var D,Y,u,t,b,r,F,K,l,N,P,V,Q,S,cy;return _.m(function(M){if(M.nextAddress==1)return!c||!Z&&!G||_.O("kevlar_disable_background_prefetch")&&_.PI(_.dhy)()===0?M.return():(D=_.BF(W))?_.n(M,D.getPlayerPromise(),2):M.return();Y=M.yieldResult;u=_.U().resolve(_.xN(_.tq));if(!u)return M.return();if(G)return t=_.WU(_.qt),ZUS(t,(b=y.endpoint)==null?void 0:b.reelWatchEndpoint,W.reelWatchSequenceResponse,Y,u),M.return();K=(r=y.response)==null?void 0:(F=r.responseContext)==
null?void 0:F.webResponseContextExtensionData;if(!K)return M.return();Q=(l=y.response)==null?void 0:(N=l.contents)==null?void 0:(P=N.twoColumnWatchNextResults)==null?void 0:(V=P.autoplay)==null?void 0:V.autoplay;S=_.U().resolve(_.EU);cy=_.WU(_.qt);GA6(cy,K,Y,u,S,Q);_.F2(M)})};
_.f.movePlayerToWatch=function(y){var W=this,c,Z;return _.m(function(G){c=Nc(W.pagePool,"watch");Z=c.getPlayerContainer();y.appendTo(Z);_.F2(G)})};
_.f.movePlayerToShorts=function(y){var W=this,c,Z,G;return _.m(function(D){c=Nc(W.pagePool,"shorts");Z=c.getPlayerContainer();(G=y)==null||G.appendTo(Z,void 0,!0);_.F2(D)})};
_.f.getPlayerFromWatch=function(){var y=Nc(this.pagePool,"watch");return _.BF(y)};
_.f.getPlayerFromShorts=function(){var y=Nc(this.pagePool,"shorts");return _.BF(y)};
_.f.startLoadingWatch=function(){var y=Nc(this.pagePool,"watch");this.renderLoadingStateJobId?(_.KX.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(y)};
_.f.startLoadingShorts=function(){var y=Nc(this.pagePool,"shorts");this.setActivePage(y)};
_.f.getCurrentPage=function(){return this.currentPage};
_.f.getDestinationPageType=function(){return this.destinationPageType};
_.f.getCurrentData=function(){return this.data};
_.f.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.f.isOnShorts=function(){var y;return((y=this.currentPage)==null?void 0:y.is)==="ytd-shorts"};
_.f.isWatchPage=function(y){return!!y&&(y.is==="ytd-watch-flexy"||y.is==="ytd-watch-fixie"||y.is==="ytd-watch-grid")};
_.f.preparePage=function(y,W){var c=this,Z=function(){var Y=c.pagePool.preparePage(y,c.currentPage,W);Y&&c.attachPage(Y)},G=function(Y){_.NF(Y,W);
_.Rs(Y)};
if(_.O("kevlar_enable_mss_page_modules_client")){var D=this.getModuleNameForType(y);if(D=Ej3(_.U().resolve(_.Ad),[D])){D.then(Z.bind(this)).catch(G.bind(this));return}}try{Z()}catch(Y){G(Y)}};
_.f.lazyPrepareCriticalPages=function(y,W){y=w0(W)||y;_.O("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(y).then(this.maybePrepareWatchPage.bind(this,y)):this.maybePrepareWatchPage(y)};
_.f.maybePrepareWatchPage=function(y){y!=="watch"&&_.Xc(_.KX,this.preparePage.bind(this,"watch"))};
_.f.downloadPageModules=function(y){y=this.getModuleNameForType(y);var W=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);W.delete(y);var c=_.U().resolve(_.Ad);c.JSC$16143_loadModules(y);return c.JSC$16143_loadModules.apply(c,_.No(W))};
_.f.renderPageLoadingState=function(y,W){this.preparePage(y,W);var c=Nc(this.pagePool,y);c.loadingData&&(c.loadingData.endpoint=W);c.loading=!0;this.setActivePage(c);y==="watch"&&_.Z2(this.hostElement,"yt-guide-close")};
_.f.prepareForNavigation=function(y,W){var c=this;if(this.currentPage&&this.data){var Z=w0(W)||y;this.destinationPageType=Z;aj(this.data)==Z&&_.Z2(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(y==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.KX.cancelJob(this.renderLoadingStateJobId);_.U().resolve(_.Cy).deactivate(W);var G=this.data;this.renderLoadingStateJobId=_.X5(_.KX,function(){if(c.data!=G){var D=Nc(c.pagePool,y);c.setActivePage(D)}else c.renderPageLoadingState(y,
W);c.renderLoadingStateJobId=0},150)}};
_.f.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var y=new _.At(1);this.currentPage.pageDisposeJobs.forEach(function(W){_.ht(y,W)});
this.pageDisposeJobsets.set(this.currentPage,y)}};
_.f.flushPageDisposeJobset=function(y){var W=this.pageDisposeJobsets.get(y);W&&(W.flushJobs(),this.pageDisposeJobsets.delete(y))};
_.f.onYtStopOldPlayer=function(y,W){W=W===void 0?!1:W;var c,Z=_.qn("kevlar_new_stop_old_player_logic_pages");if(_.O("kevlar_check_current_page_on_stop_old_player")&&(Z.length===0||this.currentPage&&Z.includes(this.currentPage.is)))if(this.data&&(c=aj(this.data)),aj(y)===c&&this.currentPage&&aj(this.currentPage.data)!==c)var G=_.BF(this.currentPage);else c=aj(this.data),G=Nc(this.pagePool,c),G=_.BF(G);else this.data&&(c=aj(this.data),G=Nc(this.pagePool,c),G=_.BF(G));if(G)if(y=aj(y),Z=Nc(this.pagePool,
y),Z=_.BF(Z),G==Z)W&&!_.O("kevlar_disable_preemptive_player_reset")&&G.resetForNewPlayback();else if(W=c==="watch"&&y!=="watch",!W||y==="shorts"||_.DlV()&&!r33(this.data)&&y!=="yts-products"&&y!="mini_app"&&y!="playables")c=_.U().resolve(_.Cy),W&&c.isMiniplayerActive()&&c.pipController.getWindow()||G.stop()};
_.f.setupPageTransitionAnimation=function(){var y=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){Wr(this.viewTransitionManager,"slide",{beforeTransition:function(){y.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){y.hostElement.style.viewTransitionName=""}});
Wr(this.viewTransitionManager,"zoom",{beforeTransition:function(){y.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){y.hostElement.style.viewTransitionName=""}});
var W=_.ey("web_page_transition_exit_ms"),c=_.ey("web_page_transition_wait_ms"),Z=_.ey("web_page_transition_enter_ms");if(!isNaN(W)||!isNaN(c)||!isNaN(Z))if(W=RWS(ahQ,W,c,Z))c=document.createElement("style"),c.textContent=_.q3y(W),document.head.appendChild(c)}};
_.dJ.Object.defineProperties(xf6,{template:{configurable:!0,enumerable:!0,get:function(){return TGZ()}}});
var io6=xf6;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],io6.prototype,"ytActionHandlerBehavior",void 0);io6=_.x([_.d({disableElementRegistration:!0,is:"ytd-page-manager"})],io6);_.T(io6,"ytd-page-manager",function(){return TGZ()},{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var H4=function(y,W,c){c=c===void 0?!1:c;_.UR.call(this);this.draggableElement=y;this.callbacks=W;this.allowClicks=c;this.dragOccurred=!1;this.internalDragger=new _.NJ(this.draggableElement);this.dragDelay=new _.xM(this.delayedDrag.bind(this));M39(this);this.allowClicks&&(_.xV5(this.internalDragger,5),y.addEventListener("click",_.qO(this,this.validateClick),{capture:!0}))};
_.R(H4,_.UR);var M39=function(y){_.Y0(y.internalDragger,"earlycancel",function(){y.allowClicks&&(y.dragOccurred=!1)});
_.Y0(y.internalDragger,"start",function(W){var c,Z;(Z=(c=y.callbacks).onStartDrag)==null||Z.call(c,W);!W.defaultPrevented&&y.allowClicks&&(y.dragOccurred=!0)});
_.Y0(y.internalDragger,"beforedrag",function(W){W.preventDefault();y.lastOffset=new _.If(W.clientX-y.internalDragger.startX,W.clientY-y.internalDragger.startY);y.dragDelay.start()});
_.Y0(y.internalDragger,"end",function(){y.dragDelay.stop();var W,c;(c=(W=y.callbacks).onEndDrag)==null||c.call(W);y.lastOffset=void 0})};
H4.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
H4.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.qO(this,this.validateClick),{capture:!0})};
H4.prototype.validateClick=function(y){this.dragOccurred&&(this.dragOccurred=!1,y.stopPropagation(),y.preventDefault())};var Lk=function(y,W){_.UR.call(this);this.JSC$17605_resizeContainer=y;this.callbacks=W;this.aspectRatio=16/9;this.JSC$17605_resizers=[];y=_.z(this.JSC$17605_resizeContainer.children);for(W=y.next();!W.done;W=y.next())eMS(this,W.value)};
_.R(Lk,_.UR);Lk.prototype.disposeInternal=function(){for(var y=_.z(this.JSC$17605_resizers),W=y.next();!W.done;W=y.next())W.value.dispose();y=_.z(this.JSC$17605_resizeContainer.children);for(W=y.next();!W.done;W=y.next())W.value.setAttribute("disabled","");this.JSC$17605_resizers.length=0};
Lk.prototype.setSize=function(y){this.currentMiniplayerSize=y};
Lk.prototype.setAspectRatio=function(y){this.aspectRatio=y};
Lk.prototype.update=function(y,W){for(var c=_.z(this.JSC$17605_resizeContainer.children),Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var G=Z.getAttribute("alignment");_.MO(Z,"disabled",G===y||G===W)}};
var eMS=function(y,W){var c=W.getAttribute("alignment"),Z=new H4(W,{onStartDrag:function(G){if(W.hasAttribute("disabled"))G.preventDefault();else{y.dragStartSize=y.currentMiniplayerSize;var D,Y;(Y=(D=y.callbacks).onStartResize)==null||Y.call(D)}},
onDrag:function(G){if(y.dragStartSize){c!=="north"&&c!=="west"||G.scale(-1);var D=c==="north"||c==="south";G=D?G.y:G.x;D&&y.aspectRatio>=1?G*=y.aspectRatio:!D&&y.aspectRatio<1&&(G/=y.aspectRatio);y.callbacks.onResize(y.dragStartSize+G)}}});
y.JSC$17605_resizers.push(Z)};var wV3,qrB=function(){return wV3!==void 0?wV3:wV3=document.createElement("template")};
document.head.appendChild(qrB().content);var k0d;var jB9=_.Ax(function(y){var W=_.HO(),c=y.onDrag,Z=y.onDragStart,G=y.onDragEnd,D=_.V0(y,{allowClicks:!1,dragThreshold:5}),Y=D.dragThreshold,u=D.allowClicks;y=D.children;D=D.className;var t=void 0,b=void 0,r=new _.If(0,0),F=!1;_.rj(function(){t=new _.NJ(W.value);b=new _.xM(l);K(t,b);if(u()){_.xV5(t,Y());var P;(P=W.value)==null||P.addEventListener("click",N,{capture:!0})}_.KL(function(){var V;(V=t)==null||V.dispose();if(u()){var Q;(Q=W.value)==null||Q.removeEventListener("click",N,{capture:!0})}})});
var K=function(P,V){_.Y0(P,"earlycancel",function(){u()&&(F=!1)});
_.Y0(P,"start",function(Q){Z==null||Z(Q);Q.defaultPrevented||u()&&(F=!0)});
_.Y0(P,"beforedrag",function(Q){t&&b&&(Q.preventDefault(),r=new _.If(Q.clientX-t.startX,Q.clientY-t.startY),b.start())});
_.Y0(P,"end",function(){V.stop();G==null||G();r=new _.If(0,0)})},l=function(){r&&c(r)},N=function(P){F&&(F=!1,P.stopPropagation(),P.preventDefault())};
return _.X("yt-draggable",{el:W,class:_.Mi("ytDraggableComponentHost",D)},y)},"Jf");var yQg=_.Ax(function(y){var W=_.z(_.G9(0,void 0,"Pf10wb")),c=W.next().value,Z=W.next().value;W=function(G){var D={},Y={};return _.X(jB9,{className:_.Mi("ytdMiniplayerComponentResizer",(D.ytdMiniplayerComponentResizerDisabled=function(){return G===y.horizontalAlignment()||G===y.verticalAlignment()},D.ytdMiniplayerComponentResizerNorth=G==="north",D.ytdMiniplayerComponentResizerEast=G==="east",D.ytdMiniplayerComponentResizerSouth=G==="south",D.ytdMiniplayerComponentResizerWest=G==="west",D)),
onDragStart:function(){Z(y.currentMiniplayerSize())},
onDrag:function(u){G!=="north"&&G!=="west"||u.scale(-1);var t;u=(t=G==="north"||G==="south")?u.y:u.x;var b=y.currentAspectRatio();t&&b>=1?u*=b:!t&&b<1&&(u/=b);t=u;y.onResize(c()+t)}},_.X("div",{class:_.Mi("ytdMiniplayerComponentResizerCorner",(Y.ytdMiniplayerComponentResizerNorthCorner=G==="north",Y.ytdMiniplayerComponentResizerEastCorner=G==="east",Y.ytdMiniplayerComponentResizerSouthCorner=G==="south",Y.ytdMiniplayerComponentResizerWestCorner=G==="west",Y))}))};
return _.X("div",{class:"ytdMiniplayerComponentResizers"},W("north"),W("east"),W("south"),W("west"))},"Kf");var WaB=16/9,cQZ=_.Ax(function(){var y=_.HO(),W=_.z(_.G9(new _.nP(NaN,NaN),void 0,"yxHohf")),c=W.next().value,Z=W.next().value;W=_.z(_.G9(!1,void 0,"ku1l7c"));var G=W.next().value,D=W.next().value;W=_.z(_.G9(!1,void 0,"pbOm3b"));var Y=W.next().value,u=W.next().value;W=_.z(_.G9(!1,void 0,"LqfsYc"));var t=W.next().value,b=W.next().value;W=_.z(_.G9(!1,void 0,"wYZnZe"));var r=W.next().value,F=W.next().value;W=_.z(_.G9(!1,void 0,"KVndGb"));var K=W.next().value,l=W.next().value;W=_.z(_.G9(!1,void 0,"ofTiZe"));
var N=W.next().value,P=W.next().value;W=_.z(_.G9(WaB,void 0,"bpheWd"));var V=W.next().value,Q=W.next().value,S=_.z(_.G9(!1,void 0,"MIV0Jb"));W=S.next().value;var cy=S.next().value;S=_.z(_.G9(!1,void 0,"Y2idSc"));var M=S.next().value,fa=S.next().value;S=_.z(_.G9(void 0,void 0,"IuZWBb"));var jI=S.next().value,sD=S.next().value;S=_.z(_.G9(_.Nn("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var ED=S.next().value,N1=S.next().value;S=_.z(_.G9("south",void 0,"mV91if"));var bf=S.next().value,Py=S.next().value;
S=_.z(_.G9(400,void 0,"OwmImd"));var WJ=S.next().value,t5=S.next().value,xF=_.U().resolve(_.Cy).miniplayerPropSignalMap[0],M3=xF.data,wS=xF.externalPlaylistData;S=xF.toastData;var f8=xF.playabilityStatus,eV=xF.isDisabled,N3=xF.watchWhile;xF=_.z(_.WF(xF.isReadyToResume));var K8=xF.next().value,PJ=xF.next().value,cX;_.rj(function(){Z(_.Y$());y.value.addEventListener("animationend",function(jV){jV.target===y.value&&(l(!1),P(!1))})});
_.BO("yt-window-resized",function(jV){jV&&Z(jV)});
var a$=function(){cX&&Q(cX.getVideoAspectRatio())},oI=function(){if(cX){var jV=cX.getPlayerState()===1;
K8()&&jV&&PJ(!1)}};
_.BO("yt-activate-miniplayer",function(jV){var La;return _.m(function(sZ){if(sZ.nextAddress==1)return G()?sZ.return():_.n(sZ,(La=_.U().resolve(_.Cy).getPlayerElement())==null?void 0:La.getPlayerPromise(),2);cX=sZ.yieldResult;if(!cX)return sZ.return();!M()&&_.O("kevlar_watch_while_v2")&&(Py(jV&&!_.O("kevlar_watch_while_bottom_align")?"north":"south"),N1(_.Nn("HTML_DIR")==="rtl"?"west":"east"));var w2=cX;w2.addEventListener("onVideoDataChange",a$);w2.addEventListener("onStateChange",oI);Q(cX.getVideoAspectRatio());
D(!0);l(!0);_.F2(sZ)})});
_.BO("yt-deactivate-miniplayer",function(jV){return _.m(function(La){D(!1);PJ(!1);P(jV);l(!0);if(cX){var sZ=cX;sZ.removeEventListener("onVideoDataChange",a$);sZ.removeEventListener("onStateChange",oI)}_.F2(La)})});
var Zg=function(){var jV=!!M3(),La=K(),sZ=N3();return(sZ===void 0?0:sZ)&&_.O("kevlar_watch_while_modern")?!1:jV||La},xW=function(){var jV;
return!((jV=wS())==null||!jV.contents)},dS=function(){var jV=WJ();
var La=c();La=Math.min(Math.min(La.width,La.height)-32,720);var sZ=V(),w2=Zg(),Z3=xW()&&Y(),J5=Math.min(jV,La);jV=new _.nP(192,w2?116:192);sZ=GHQ(new _.nP(Z3?WaB:sZ,1),new _.nP(J5,w2?J5-76:J5));jV.width<=sZ.width&&jV.height<=sZ.height||(Z2B(sZ,jV),sZ.width=Math.min(sZ.width,La),sZ.height=Math.min(sZ.height,La));return new _.nP(sZ.width,_.IT(192,sZ.height+RJH(w2,Z3),720))},bE=function(){var jV=dS(),La=Zg(),sZ=xW()&&Y();
return new _.nP(jV.width,jV.height-RJH(La,sZ))},EZ=function(){var jV=function(La){La.target===y.value&&r()&&(F(!1),y.value.removeEventListener("transitionend",jV))};
y.value.addEventListener("transitionend",jV);F(!0);u(!Y())};
xF={};return _.X("ytd-miniplayer",{el:y,class:_.Mi("ytdMiniplayerComponentHost",(xF.ytdMiniplayerComponentVisible=function(){return G()||K()},xF.ytdMiniplayerComponentAnimatingSnap=t,xF.ytdMiniplayerComponentAnimatingPlaylistExpand=r,xF.ytdMiniplayerComponentAnimatingFade=K,xF),function(){if(K()){var jV=bf();
var La=G(),sZ=N();jV=La?jV==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":sZ?jV==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":jV==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else jV="";return jV}),
style:_.cF({top:function(){return bf()==="north"?"16px":""},
right:function(){return ED()==="east"?"16px":""},
bottom:function(){return bf()==="south"?"16px":""},
left:function(){return ED()==="west"?"16px":""},
width:function(){return dS().width+"px"},
height:function(){return dS().height+"px"},
transform:function(){var jV=jI();return jV?"translate("+jV.x+"px, "+jV.y+"px)":""}})},_.X("div",{class:"ytdMiniplayerComponentContent"},_.X(jB9,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(jV){var La=g6D(ED(),bf(),c(),dS(),jI()),sZ=bE();Math.abs(jV.clientY-(La.y+sZ.height))>15?cy(!0):jV.preventDefault()},
onDrag:function(jV){sD(jV)},
onDragEnd:function(){var jV=$r6(g6D(ED(),bf(),c(),dS(),jI()),c(),dS()),La=Oi9(ED(),bf(),c(),dS()),sZ=Oi9(jV.horizontalAlignment,jV.verticalAlignment,c(),dS());sZ=new _.If(sZ.x-La.x,sZ.y-La.y);var w2;La=La.y+(((w2=jI())==null?void 0:w2.y)||0)+dS().height/2;var Z3=function(){ED()===jV.horizontalAlignment&&bf()===jV.verticalAlignment||fa(!0);N1(jV.horizontalAlignment);Py(jV.verticalAlignment);sD(void 0)},J5=function(B3){B3.target===y.value&&t()&&(b(!1),Z3(),y.value.removeEventListener("transitionend",
J5))};
cy(!1);bf()==="south"&&La>c().height?(Z3(),_.U().resolve(_.Cy).close()):(y.value.addEventListener("transitionend",J5),b(!0),sD(sZ))}},_.X(_.YN,{cond:G,
then:function(){return _.X(_.kj6,{isDisabled:eV,playabilityStatus:f8,size:bE})}}),_.X(_.YN,{cond:Zg,
then:function(){return _.X(_.w7S,{isReadyToResume:K8,data:M3,expanded:Y,onExpandClick:EZ,playlistData:wS})}}),_.X(_.YN,{cond:W,
then:function(){return _.X("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.X(_.YN,{cond:function(){return xW()&&Y()||r()},
then:function(){return _.X(_.UoH,{className:"ytdMiniplayerComponentPlaylistPanel",data:wS,hideHeaderText:!0,withinMiniplayer:!0})}}),_.X("div",{class:"ytdMiniplayerComponentToast"},_.X(_.jlQ,{toastData:S}))),_.X(yQg,{onResize:function(jV){t5(_.IT(192,jV,720))},
currentAspectRatio:V,currentMiniplayerSize:WJ,horizontalAlignment:ED,verticalAlignment:bf}))},"Lf");_.O("ytd_miniplayer_to_wiz")&&_.A3(cQZ,"ytd-miniplayer",{});_.A3(_.jlQ,"ytd-miniplayer-toast",{props:{toastData:_.Ix}});var ZSf=16/9,GKQ=new _.nP(400,400/ZSf),v4=function(){var y=_.v.apply(this,arguments)||this;y.active=!1;y.hasNoData=!1;y.enabled=!1;y.expanded=!1;y.readyToResume=!1;y.isDisabled=!1;y.externalPlaylistData={};y.premiumBadges=[];y.watchWhile=!1;y.playerState=null;y.verticalAttachment="south";y.horizontalAttachment=_.Nn("HTML_DIR")==="rtl"?"west":"east";y.isAnimatingFade=!1;y.isAnimatingSnap=!1;y.isAnimatingExpand=!1;y.isDragging=!1;y.playerHidden=!1;y.hasPlaylistData=!1;y.closed=!1;y.expandedClosed=!1;
y.isForReadyToResume=!1;y.watchResponse=null;y.player=null;y.playerVe=null;y.expandVe=null;y.closeVe=null;y.readyToResumeCloseVe=null;y.disabledInitialStateIsPlaying=!1;y.PLAYER_EVENTS=new Map;y.aspectRatio=ZSf;y.currentMiniplayerSize=400;y.userSetSize=!1;y.userSetPosition=!1;y.userHasDragged=!1;y.maxMiniplayerSize=720;y.transform=new _.If(0,0);y.windowDimensions=new _.nP(NaN,NaN);y.dimensions=GKQ;y.screenLayer=3;y.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return y};
_.R(v4,_.v);_.f=v4.prototype;_.f.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()};
_.f.ready=function(){this.setUpDragging();this.setUpResizing()};
_.f.attached=function(){this.onWindowResized(_.Y$());this.hostElement.addEventListener("animationend",_.qO(this,this.resetFadingAnimation))};
_.f.detached=function(){this.hostElement.removeEventListener("animationend",_.qO(this,this.resetFadingAnimation))};
_.f.resetFadingAnimation=function(y){y.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.f.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.f.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.f.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var y=_.NR(this.screenLayer);this.readyToResumeCloseVe&&y&&_.vA(y,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.f.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var y=_.NR(0),W=_.EL(0);y&&W&&(_.HA(y,W,this.readyToResumeVe),_.vA(y,[this.readyToResumeVe]))}};
_.f.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var y=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=y===-1||y===1||y===3)&&this.player.pauseVideo()}};
_.f.activate=function(y,W){W=W===void 0?!1:W;var c=this,Z;return _.m(function(G){if(G.nextAddress==1)return c.setInitialActivatePositioning(W),c.enabled=!0,c.active=!0,c.expanded=!1,c.closed=!1,c.expandedClosed=!1,c.watchWhileHidden||(c.isAnimatingFade=!0),_.U().resolve(_.EU).setPlaylistComponent(c.JSC$17616_playlistPanel),y.appendTo(c.playerContainer),_.n(G,y.getPlayerPromise(),2);Z=G.yieldResult;Z.setSizeStyle(!1,!0);c.ytPlayerListenerBehavior.listenToPlayerEvents(Z,c.PLAYER_EVENTS);c.player=Z;
c.watchWhile&&_.O("kevlar_watch_while_minimum_size")&&c.setMiniplayerSize(192);c.setAspectRatio(c.player.getVideoAspectRatio());c.onIsDisabledChanged();_.F2(G)})};
_.f.setInitialActivatePositioning=function(y){if(!this.userSetPosition&&_.O("kevlar_watch_while_v2")){this.verticalAttachment=y&&!_.O("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Nn("HTML_DIR")==="rtl"?"west":"east";var W;(W=this.JSC$17616_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)}};
_.f.deactivate=function(y,W){var c=this;return _.m(function(Z){if(!c.active)return Z.return();y||(c.expanded?c.expandedClosed=!0:c.closed=!0);c.active=!1;c.isForReadyToResume=!1;W&&_.O("kevlar_watch_while_counterfactual")||(c.isAnimatingFade=!0);c.player&&c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c.player,c.PLAYER_EVENTS);c.player=null;_.F2(Z)})};
_.f.onMetadataTap=function(y){this.expandVe&&(y===void 0||y)&&(y=_.NR(this.screenLayer))&&_.SG(y,this.expandVe);_.Gm(_.U().resolve(_.Cy))};
_.f.onDisabledTap=function(y){y.target===_.p(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.f.onPlaylistExpandTap=function(y){if(this.hasPlaylistData){y=_.Aq(y)||[];y=_.z(y);for(var W=y.next();!W.done;W=y.next()){W=W.value;if(W===this.hostElement)break;if(W.classList&&W.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.f.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.qO(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.f.animatedResizePlaylist=function(y){y.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.qO(this,this.animatedResizePlaylist)))};
_.f.getExpandIcon=function(y){return y?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.f.onPlayerVideoDataChange=function(){var y,W=(y=this.player)==null?void 0:y.getVideoAspectRatio();W&&W!==this.aspectRatio&&this.setAspectRatio(W)};
_.f.setAspectRatio=function(y){if(this.active){this.aspectRatio=y;this.updateDimensionsAndResize();var W;(W=this.JSC$17616_resizers)==null||W.setAspectRatio(y)}};
_.f.updateDimensionsAndResize=function(){var y=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),W=this.expanded?ZSf:this.aspectRatio,c=new _.nP(192,this.showInfoBar?116:192);y=GHQ(new _.nP(W,1),new _.nP(y,this.showInfoBar?y-76:y));c.width<=y.width&&c.height<=y.height||(Z2B(y,c),y.width=Math.min(y.width,this.maxMiniplayerSize),y.height=Math.min(y.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&W<=1?Math.max(y.width,y.height)+76:Math.max(y.width,y.height)));this.dimensions=
new _.nP(y.width,this.clamp(y.height+this.getNonPlayerHeight()));this.resize()};
_.f.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var y=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=y.height+"px";var W;(W=this.player)==null||W.setInternalSize(y.width,y.height)};
_.f.getPlayerSize=function(y){var W=Math.max(0,y.height-this.getNonPlayerHeight());return new _.nP(y.width,W)};
_.f.getNonPlayerHeight=function(){var y=0;this.showInfoBar&&(y+=76);this.expanded&&(y+=285);return y};
_.f.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.U().resolve(_.Cy).close()};
_.f.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.f.logClosingClick=function(){this.closeVe&&_.SG(_.NR(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.SG(_.NR(this.screenLayer),this.readyToResumeCloseVe)};
_.f.onPlayerExpandMiniplayer=function(){if(this.expandVe){var y=_.NR(this.screenLayer);y&&_.SG(y,this.expandVe)}};
_.f.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var y=this.playerState===1;this.continueWatching&&y&&(this.continueWatching=!1);this.premiumBadges.length&&y&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.f.getScreenLayer=function(){return this.screenLayer};
_.f.logMiniplayer=function(){var y=_.NR(this.screenLayer),W=_.EL(this.screenLayer);y&&W&&this.playerVe&&(_.HA(y,W,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.h_(y,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.vA(y,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.h_(y,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.f.computePlaylistData=function(y,W){return W};
_.f.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.f.computeExpandButtonHidden=function(y,W,c){return!y||!W||c};
_.f.computePlaylistIndexHidden=function(y,W){return!y||W};
_.f.computePlaylistPanelHidden=function(y,W){return!W&&!y};
_.f.computeExpandButtonLabel=function(y){return y?_.bN("MINIPLAYER_COLLAPSE_LABEL"):_.bN("MINIPLAYER_EXPAND_LABEL")};
_.f.computeDisabledStateCloseButtonLabel=function(){return _.bN("MINIPLAYER_CLOSE",void 0,"Close")};
_.f.onWindowResized=function(y){y&&(y=this.windowDimensions=y,this.maxMiniplayerSize=Math.min(Math.min(y.width,y.height)-32,720),this.updateDimensionsAndResize())};
_.f.setUpResizing=function(){var y=this;this.JSC$17616_resizers||(this.JSC$17616_resizers=new Lk(this.JSC$17616_resizeContainer,{onStartResize:function(){y.handleResizeStart()},
onResize:function(W){y.handleResize(W)}}),this.JSC$17616_resizers.setSize(this.currentMiniplayerSize),this.JSC$17616_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.f.handleResizeStart=function(){var y=_.NR(this.screenLayer);this.userSetSize||(this.userSetSize=!0,y&&this.resizeVe&&_.vA(y,[this.resizeVe]));y&&this.resizeVe&&_.SG(y,this.resizeVe)};
_.f.handleResize=function(y){this.setMiniplayerSize(y);this.updateDimensionsAndResize()};
_.f.setUpDragging=function(){var y=this;this.JSC$17616_dragger||(this.JSC$17616_dragger=new H4(this.draggableContainer,{onStartDrag:function(W){!y.isSafeToDrag(W)||y.isAnimatingSnap?W.preventDefault():y.handleDragStart()},
onDrag:function(W){y.transform=W;y.setTransform(y.transform)},
onEndDrag:function(){y.handleDragEnd()}},!0))};
_.f.handleDragStart=function(){this.isDragging=!0;var y=_.NR(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,y&&this.repositionVe&&_.vA(y,[this.repositionVe]));y&&this.repositionVe&&_.SG(y,this.repositionVe)};
_.f.handleDragEnd=function(){this.isDragging=!1;var y=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&y>this.windowDimensions.height&&_.U().resolve(_.Cy).close();this.animateSnapToCorner()};
_.f.animateSnapToCorner=function(){var y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),W=this.getNearestAttachments();W=this.getGlobalPositionFromAttachments(W.horizontalAttachment,W.verticalAttachment);y=new _.If(W.x-y.x,W.y-y.y);this.isAnimatingSnap=!0;this.setTransform(y);this.hostElement.addEventListener("transitionend",_.qO(this,this.endSnapAnimation))};
_.f.endSnapAnimation=function(y){y.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.qO(this,this.endSnapAnimation)),this.endDrag())};
_.f.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.f.setTransform=function(y){this.hostElement.style.transform=y?"translate("+y.x+"px, "+y.y+"px)":""};
_.f.getGlobalPositionFromAttachments=function(y,W){return new _.If(y==="west"?16:this.windowDimensions.width-this.dimensions.width-16,W==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.f.updateAttachments=function(){var y=this.getNearestAttachments();if(this.horizontalAttachment!==y.horizontalAttachment||this.verticalAttachment!==y.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=y.horizontalAttachment;this.verticalAttachment=y.verticalAttachment;var W;(W=this.JSC$17616_resizers)==null||W.update(this.horizontalAttachment,this.verticalAttachment)};
_.f.getNearestAttachments=function(){var y=this.getCurrentGlobalPosition();return{horizontalAttachment:y.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:y.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.f.getCurrentGlobalPosition=function(){var y=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return K8B(y,this.transform)};
_.f.isSafeToDrag=function(y){var W=this.playerContainer.getBoundingClientRect();return Math.abs(y.clientY-(W.y+W.height))>15};
_.f.setMiniplayerSize=function(y){this.currentMiniplayerSize=this.clamp(y);var W;(W=this.JSC$17616_resizers)==null||W.setSize(this.currentMiniplayerSize)};
_.f.clamp=function(y){return _.IT(192,y,720)};
_.f.registerViewTransitionTasks=function(){var y=this,W=_.U().resolve(_.xN(_.iR3));if(W){var c={beforeTransition:function(){y.hostElement&&(y.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){y.hostElement&&(y.hostElement.style.viewTransitionName="")}};
Wr(W,"slide",c);Wr(W,"zoom",c)}};
_.dJ.Object.defineProperties(v4.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.O("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:_.bN("CONTINUE_WATCHING",void 0,"Continue watching")};var y;if((y=this.externalPlaylistData)==null?0:y.contents)return this.externalPlaylistData.titleText;var W;return(W=this.data)==null?void 0:W.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.externalPlaylistData)==null?0:y.contents){var W;return(W=_.nnH(this.externalPlaylistData))==null?void 0:W.title}var c;return(c=this.data)==null?void 0:c.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var y,W,c,Z;return((y=this.externalPlaylistData)==null?void 0:y.currentIndex)!==void 0&&((W=this.externalPlaylistData)==null?0:W.totalVideos)&&!((c=this.data)==null?0:(Z=c.playlistData)==null?0:Z.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.bhH(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.O("kevlar_watch_while_counterfactual")}}});
v4.prototype.onIsDisabledChanged=v4.prototype.onIsDisabledChanged;v4.prototype.readyToResumeVeChanged=v4.prototype.readyToResumeVeChanged;v4.prototype.premiumBrandingChanged=v4.prototype.premiumBrandingChanged;v4.prototype.onPlayerVeChange=v4.prototype.onPlayerVeChange;v4.prototype.hasPlaylistDataChanged=v4.prototype.hasPlaylistDataChanged;_.x([_.C(_.VW.YtPlayerListenerBehavior),_.e("design:type",_.C4)],v4.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],v4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],v4.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],v4.prototype,"ytdReduxBehavior",void 0);_.x([_.jj("#draggable"),_.e("design:type",HTMLDivElement)],v4.prototype,"draggableContainer",void 0);
_.x([_.jj("#resize-container"),_.e("design:type",HTMLDivElement)],v4.prototype,"JSC$17616_resizeContainer",void 0);_.x([_.jj("#video-container"),_.e("design:type",HTMLDivElement)],v4.prototype,"videoContainer",void 0);_.x([_.jj("#player-container"),_.e("design:type",HTMLDivElement)],v4.prototype,"playerContainer",void 0);_.x([_.jj("#playlist"),_.e("design:type",HTMLDivElement)],v4.prototype,"JSC$17616_playlistPanel",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"active",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"hasNoData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"enabled",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"expanded",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"readyToResume",void 0);
_.x([_.L(),_.e("design:type",Object)],v4.prototype,"isDisabled",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"externalPlaylistData",void 0);_.x([_.L(),_.e("design:type",Array)],v4.prototype,"premiumBadges",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"toastData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"watchWhile",void 0);_.x([_.L(),_.e("design:type",Boolean)],v4.prototype,"premiumBranding",void 0);
_.x([_.L(),_.e("design:type",Object)],v4.prototype,"playerState",void 0);_.x([_.L(),_.e("design:type",Boolean)],v4.prototype,"continueWatching",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],v4.prototype,"verticalAttachment",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],v4.prototype,"horizontalAttachment",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"isAnimatingFade",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"isAnimatingSnap",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"isAnimatingExpand",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"isDragging",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"playerHidden",void 0);
_.x([_.L({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.e("design:type",Object)],v4.prototype,"playlistData",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.e("design:type",Object)],v4.prototype,"hasPlaylistData",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"closed",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],v4.prototype,"expandedClosed",void 0);
_.x([_.L({selector:_.NFI}),_.e("design:type",Boolean)],v4.prototype,"isSingleOptionSurveyActive",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.NW}),_.e("design:type",Boolean)],v4.prototype,"isWatchPage",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("watchWhile"),_.e("design:type",Object),_.e("design:paramtypes",[])],v4.prototype,"showInfoBar",null);_.x([_.A("premiumBadges","showInfoBar"),_.e("design:type",Object),_.e("design:paramtypes",[])],v4.prototype,"showOverlayPremiumBadges",null);
_.x([_.L(),_.e("design:type",Object)],v4.prototype,"watchResponse",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"miniplayerRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"playabilityStatus",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"playerVe",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"expandVe",void 0);_.x([_.L(),_.e("design:type",Object)],v4.prototype,"closeVe",void 0);
_.x([_.L(),_.e("design:type",Object)],v4.prototype,"readyToResumeCloseVe",void 0);_.x([_.L(),_.e("design:type",_.lM)],v4.prototype,"readyToResumeVe",void 0);_.x([_.L(),_.e("design:type",_.lM)],v4.prototype,"resizeVe",void 0);_.x([_.L(),_.e("design:type",_.lM)],v4.prototype,"repositionVe",void 0);_.x([_.H("hasPlaylistData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v4.prototype,"hasPlaylistDataChanged",null);
_.x([_.H("playerVe"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v4.prototype,"onPlayerVeChange",null);_.x([_.H("premiumBranding"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v4.prototype,"premiumBrandingChanged",null);_.x([_.H("readyToResumeVe"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v4.prototype,"readyToResumeVeChanged",null);
_.x([_.H("isDisabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],v4.prototype,"onIsDisabledChanged",null);_.x([_.A("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.e("design:type",Object),_.e("design:paramtypes",[])],v4.prototype,"miniplayerSubtitle",null);_.x([_.A("data.miniplayerTitle","externalPlaylistData"),_.e("design:type",Object),_.e("design:paramtypes",[])],v4.prototype,"miniplayerTitle",null);
_.x([_.A("externalPlaylistData","continueWatching"),_.e("design:type",Object),_.e("design:paramtypes",[])],v4.prototype,"playlistIndexMessage",null);_.x([_.L({reflectToAttribute:!0}),_.A("playabilityStatus"),_.e("design:type",Object),_.e("design:paramtypes",[])],v4.prototype,"showErrorScreen",null);_.x([_.L({reflectToAttribute:!0}),_.A("watchWhile"),_.e("design:type",Object),_.e("design:paramtypes",[])],v4.prototype,"watchWhileHidden",null);
_.O("ytd_miniplayer_to_wiz")||_.T(v4,"ytd-miniplayer",function(){if(k0d===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(qrB().content.cloneNode(!0),y.content.firstChild);y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);k0d=y}y=k0d;return y},{mode:2});var fAQ;var dP=function(){var y=_.v.apply(this,arguments)||this;y.useListItemStyles=_.O("web_list_item_style_for_menu_items");y.systemIcons=_.O("kevlar_system_icons");return y};
_.R(dP,_.v);_.f=dP.prototype;_.f.ready=function(){this.hostElement.addEventListener("tap",_.qO(this,this.onEndpointTapExtra))};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){var y;(y=_.p(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.f.onEndpointTapExtra=function(y){_.Z2(this.hostElement,"iron-activate");var W=this.data.navigationEndpoint;W&&_.g(W,_.BkD)&&(y.stopPropagation(),_.mq(this.hostElement,[W],this.hostElement))};
_.f.computeIcon=function(y){return y&&y.iconType?_.wp(y.iconType):""};
_.f.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.forceUpdateStylesOnLegacyBrowsers=function(){_.O("kevlar_legacy_browsers")&&_.wM(this.hostElement)};
dP.prototype.forceUpdateStylesOnLegacyBrowsers=dP.prototype.forceUpdateStylesOnLegacyBrowsers;dP.prototype.onFocus=dP.prototype.onFocus;_.x([_.C(_.CB),_.e("design:type",Object)],dP.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.Ocf.YtConditionalRendererBehavior),_.e("design:type",Object)],dP.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.C(_.wU.YtEndpointBehavior),_.e("design:type",Object)],dP.prototype,"ytEndpointBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],dP.prototype,"data",void 0);_.x([_.L({computed:"computeIcon(data.icon)",value:""}),_.e("design:type",String)],dP.prototype,"icon",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],dP.prototype,"useIcons",void 0);_.x([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.e("design:type",Boolean)],dP.prototype,"hasSeparator",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dP.prototype,"useListItemStyles",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],dP.prototype,"systemIcons",void 0);_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dP.prototype,"onFocus",null);_.x([_.H("useIcons","hasSeparator"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dP.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.T(dP,"ytd-menu-navigation-item-renderer",function(){if(fAQ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);fAQ=y}y=fAQ;return y},{mode:1});var oCQ;var DmH=_.Lq(_.bN("DOWNLOAD",{},"Download")),znQ=_.Lq(_.bN("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Ygd=_.Lq(_.bN("RETRY",{},"Retry")),mmD=_.Lq(_.bN("PAUSE_DOWNLOADING",{},"Pause downloading")),sB9=_.Lq(_.bN("RESUME_DOWNLOAD",{},"Resume download")),SF=function(){var y=_.v.apply(this,arguments)||this;y.primaryText=DmH;y.primaryIconType="OFFLINE_DOWNLOAD";y.hasSecondaryContent=!1;y.hasSeparator=!1;y.transferState="TRANSFER_STATE_UNKNOWN";y.isVideoDeletedByUser=!1;y.isHidden=!1;y.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return y};
_.R(SF,_.v);_.f=SF.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){this.primaryEntry.focus()};
_.f.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.f.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.f.getRemoveAction=function(){return"ACTION_REMOVE"};
_.f.sendOfflineAction=function(y){var W=this.data.serviceEndpoint;if(W){var c=_.g(W,_.yL);c&&y&&(c.action=y);this.ytComponentBehavior.resolveCommand(W)}};
_.f.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=DmH,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=DmH;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Ygd;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=znQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=sB9;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=znQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
mmD;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=znQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=znQ;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=DmH,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.f.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.f.isSecondaryEntryHidden=function(y,W){return y?!0:!W};
_.f.computeHasSeparator=function(){var y;return!((y=this.data)==null||!y.hasSeparator)};
SF.prototype.showHideButton=SF.prototype.showHideButton;SF.prototype.onTransferStateChange=SF.prototype.onTransferStateChange;SF.prototype.onFocus=SF.prototype.onFocus;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],SF.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],SF.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],SF.prototype,"primaryText",void 0);_.x([_.L(),_.e("design:type",String)],SF.prototype,"primaryIconType",void 0);_.x([_.L(),_.e("design:type",String)],SF.prototype,"primaryAction",void 0);_.x([_.L(),_.e("design:type",Object)],SF.prototype,"secondaryText",void 0);_.x([_.L(),_.e("design:type",String)],SF.prototype,"secondaryIconType",void 0);
_.x([_.L(),_.e("design:type",String)],SF.prototype,"secondaryAction",void 0);_.x([_.L(),_.e("design:type",Object)],SF.prototype,"hasSecondaryContent",void 0);_.x([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.e("design:type",Object)],SF.prototype,"hasSeparator",void 0);_.x([_.L({selector:_.Iv,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.e("design:type",String)],SF.prototype,"transferState",void 0);
_.x([_.L({selector:_.MzH,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.e("design:type",Object)],SF.prototype,"isVideoDeletedByUser",void 0);_.x([_.L(),_.e("design:type",Object)],SF.prototype,"isHidden",void 0);_.x([_.L({selector:_.dtH,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.e("design:type",Object)],SF.prototype,"offlineabilityState",void 0);_.x([_.jj("#primary-entry"),_.e("design:type",Object)],SF.prototype,"primaryEntry",void 0);
_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SF.prototype,"onFocus",null);_.x([_.Gs("transferState","isVideoDeletedByUser"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SF.prototype,"onTransferStateChange",null);_.x([_.Gs("offlineabilityState"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SF.prototype,"showHideButton",null);
_.T(SF,"ytd-menu-service-item-download-renderer",function(){if(oCQ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);oCQ=y}y=oCQ;return y},{mode:1});var u4f;var Th=function(){var y=_.v.apply(this,arguments)||this;y.useIcons=!1;y.systemIcons=_.O("kevlar_system_icons");y.useListItemStyles=_.O("web_list_item_style_for_menu_items");return y};
_.R(Th,_.v);_.f=Th.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){var y;(y=_.p(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.f.onTap=function(){_.fl(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var y=this.data.serviceEndpoint,W=this.data.command;if(y){var c,Z=(c=this.data)==null?void 0:c.trackingParams;c=!!_.g(y,_.LX2);Z&&c&&_.Sv().dispatch(_.jv({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Z}}));this.ytComponentBehavior.resolveCommand(y)||_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}})}W&&(this.ytComponentBehavior.resolveCommand(W)||_.mq(this.hostElement,
[W],this.hostElement))};
_.f.computeIcon=function(y){return y&&y.iconType?_.wp(y.iconType):""};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.computeHasSeparator=function(){var y;return!((y=this.data)==null||!y.hasSeparator)};
_.f.forceUpdateStylesOnLegacyBrowsers=function(){_.O("kevlar_legacy_browsers")&&_.wM(this.hostElement)};
_.f.computeIsSelected=function(){var y;return!((y=this.data)==null||!y.isSelected)};
Th.prototype.forceUpdateStylesOnLegacyBrowsers=Th.prototype.forceUpdateStylesOnLegacyBrowsers;Th.prototype.onTap=Th.prototype.onTap;Th.prototype.onFocus=Th.prototype.onFocus;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],Th.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.Ocf.YtConditionalRendererBehavior),_.e("design:type",Object)],Th.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Th.prototype,"data",void 0);_.x([_.L({computed:"computeIcon(data.icon)",value:""}),_.e("design:type",String)],Th.prototype,"icon",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Th.prototype,"useIcons",void 0);
_.x([_.L({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Th.prototype,"hasSeparator",void 0);_.x([_.L({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Th.prototype,"isSelected",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Th.prototype,"systemIcons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Th.prototype,"useListItemStyles",void 0);
_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Th.prototype,"onFocus",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Th.prototype,"onTap",null);_.x([_.H("useIcons","hasSeparator"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Th.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.T(Th,"ytd-menu-service-item-renderer",function(){if(u4f===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);u4f=y}y=u4f;return y},{mode:2});var t46;var nCB=function(){return _.v.apply(this,arguments)||this};
_.R(nCB,_.v);_.f=nCB.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onDataChanged=function(){var y=this;_.Lv(this,function(){y.postbox.openDialog();y.focus();_.Z2(y.hostElement,"yt-refit")})};
_.f.focus=function(){this.postbox.focus()};
_.f.closePopup=function(){_.GG(this.hostElement,"yt-close-popup-action")};
_.f.onYtCommentboxDismiss=function(){this.closePopup()};
var aJ=nCB;aJ.prototype.onYtCommentboxDismiss=aJ.prototype.onYtCommentboxDismiss;aJ.prototype.onDataChanged=aJ.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aJ.prototype,"data",void 0);_.x([_.L({value:function(){return _.bN("SBOX_INAPPROPRIATE_CANCEL")}}),
_.e("design:type",String)],aJ.prototype,"closeButtonAriaLabel",void 0);_.x([_.jj("#postbox"),_.e("design:type",Object)],aJ.prototype,"postbox",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],aJ.prototype,"onDataChanged",null);_.x([_.B("yt-commentbox-dismiss"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],aJ.prototype,"onYtCommentboxDismiss",null);
aJ=_.x([_.d({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],aJ);
_.T(aJ,"ytd-backstage-post-dialog-popup-renderer",function(){if(t46!==void 0)return t46;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return t46=y},{mode:1});var XmQ;var bS6=function(){return _.v.apply(this,arguments)||this};
_.R(bS6,_.v);var xU=bS6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xU.prototype,"data",void 0);xU=_.x([_.d({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],xU);
_.T(xU,"ytd-sender-id-section-renderer",function(){if(XmQ!==void 0)return XmQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return XmQ=y},{mode:1});var rQD;var Fa6;var Um9;var $mg=function(){return _.v.apply(this,arguments)||this};
_.R($mg,_.v);$mg.prototype.closePopup=function(){_.GG(this.hostElement,"yt-close-popup-action")};
var iq=$mg;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iq.prototype,"data",void 0);iq=_.x([_.n6({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],iq);
_.T(iq,"yt-community-post-section-renderer",function(){if(Um9===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Fa6===void 0&&(Fa6=document.createElement("template"));var Z=Fa6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Um9=y}y=Um9;return y},{mode:2});var KaQ;var OSB;var gC9;var Rn9;var lAQ;var EC9;var Nd6=function(){return _.v.apply(this,arguments)||this};
_.R(Nd6,_.v);var Mc=Nd6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Mc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Mc.prototype,"data",void 0);Mc=_.x([_.n6({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Mc);
_.T(Mc,"yt-share-start-time-with-context-renderer",function(){if(EC9===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;lAQ===void 0&&(lAQ=document.createElement("template"));var Z=lAQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);EC9=y}y=EC9;return y},{mode:2});var IAZ=function(){return _.v.apply(this,arguments)||this};
_.R(IAZ,_.v);IAZ.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
var eF=IAZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],eF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],eF.prototype,"data",void 0);eF=_.x([_.n6({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],eF);
_.T(eF,"yt-share-panel-title-v15-renderer",function(){if(Rn9===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;gC9===void 0&&(gC9=document.createElement("template"));var Z=gC9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Rn9=y}y=Rn9;return y},{mode:2});var pmZ=function(){return _.v.apply(this,arguments)||this};
_.R(pmZ,_.v);pmZ.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"}}}};
var wP=pmZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wP.prototype,"data",void 0);wP=_.x([_.n6({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],wP);
_.T(wP,"yt-share-panel-header-renderer",function(){if(OSB===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;KaQ===void 0&&(KaQ=document.createElement("template"));var Z=KaQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);OSB=y}y=OSB;return y},{mode:2});var Pa9;var JQg;var V4H=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-open-popup-action":"onOpen"};return y};
_.R(V4H,_.v);_.f=V4H.prototype;_.f.attached=function(){this.onOpen()};
_.f.updateTimeSecs=function(y){this.currentTimeSecs=y};
_.f.computeTimeString=function(y){y=y.toString();var W=Math.floor(Number(y)/3600),c=Math.floor(Number(y)%3600%60);return(W>0?W+":":"")+_.e6(Math.floor(Number(y)%3600/60),W>0?2:1)+":"+_.e6(c,2)};
_.f.computeTimeStringA11y=function(y){y=_.w0O({seconds:y});var W=y.hours===void 0?0:y.hours,c=y.minutes===void 0?0:y.minutes,Z=y.seconds===void 0?0:y.seconds;y=[];if(W>0){var G=Gb9().format({hours:W});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Vl)||W>9999)G=G.replace(W.toString(),_.qUf(W)),_.Vl==="km"&&(G=G.replace(".",","));y.push(G)}c>0&&y.push(Gb9().format({minutes:c}));Z>0&&y.push(Gb9().format({seconds:Z}));W="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");c=_.Vl==
"am"?"{0}\u1363 ":_.Vl=="fa"?"{0}\u060c\u200f ":_.Vl=="my"?"{0} - ":_.Vl=="ne"?"{0},":_.Vl=="th"?"{0} ":_.Vl=="ur"?"{0}\u060c ":_.Vl=="ar"||_.Vl=="ar-XB"?"{0} \u0648":_.Vl=="ja"||_.Vl=="zh-CN"||_.Vl=="zh-HK"||_.Vl=="zh-TW"?"{0}\u3001":"{0}, ";Z=_.Vl=="am"?"\u1363 ":_.Vl=="fa"?"\u060c\u200f ":_.Vl=="my"?" - ":_.Vl=="th"?" ":_.Vl=="ur"?"\u060c ":_.Vl=="ar"||_.Vl=="ar-XB"?" \u0648":_.Vl=="ja"||_.Vl=="zh-CN"||_.Vl=="zh-HK"||_.Vl=="zh-TW"?"\u3001":", ";G=_.Vl=="am"?" \u12a5\u1293 {0}":_.Vl=="as"?" \u0986\u09f0\u09c1 {0}":
_.Vl=="az"?" v\u0259 {0}":_.Vl=="bn"?" \u098f\u09ac\u0982 {0}":_.Vl=="cs"?" a\u00a0{0}":_.Vl=="de"?" und {0}":_.Vl=="el"?" \u03ba\u03b1\u03b9 {0}":_.Vl=="eu"?" eta {0}":_.Vl=="fa"?"\u060c \u0648 {0}":_.Vl=="fil"?", at {0}":_.Vl=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Vl=="hi"?", \u0914\u0930 {0}":_.Vl=="hu"?" \u00e9s {0}":_.Vl=="hy"?" \u0587 {0}":_.Vl=="id"?", dan {0}":_.Vl=="iw"?" \u05d5-{0}":_.Vl=="ja"?"\u3001{0}":_.Vl=="ka"?" \u10d3\u10d0 {0}":_.Vl=="km"?" \u1793\u17b7\u1784 {0}":_.Vl=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Vl=="ko"?" \ubc0f {0}":_.Vl=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Vl=="lt"?" ir {0}":_.Vl=="lv"?" un {0}":_.Vl=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Vl=="mr"?" \u0906\u0923\u093f {0}":_.Vl=="ms"?" dan {0}":_.Vl=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Vl=="ne"?" \u0930 {0}":_.Vl=="or"?", \u0b13 {0}":_.Vl=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Vl=="ro"?" \u0219i {0}":_.Vl=="si"?", \u0dc3\u0dc4 {0}":_.Vl=="sk"?" a {0}":_.Vl=="sl"?" in {0}":_.Vl=="sq"?" dhe {0}":_.Vl=="sv"?" och {0}":
_.Vl=="sw"?" na {0}":_.Vl=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Vl=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Vl=="th"?" \u0e41\u0e25\u0e30{0}":_.Vl=="tr"?" ve {0}":_.Vl=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Vl=="uz"?" va {0}":_.Vl=="vi"?" v\u00e0 {0}":_.Vl=="zh-HK"?"\u53ca{0}":_.Vl=="zu"?", ne-{0}":_.Vl=="af"||_.Vl=="nl"?" en {0}":_.Vl=="ar"||_.Vl=="ar-XB"?" \u0648{0}":_.Vl=="be"||_.Vl=="uk"?" \u0456 {0}":_.Vl=="en-GB"||_.Vl=="en-IN"?" and {0}":_.Vl=="en"||_.Vl=="en-XA"?
", and {0}":_.Vl=="et"||_.Vl=="fi"?" ja {0}":_.Vl=="fr"||_.Vl=="fr-CA"?" et {0}":_.Vl=="zh-CN"||_.Vl=="zh-TW"?"\u548c{0}":_.Vl=="da"||_.Vl=="is"||_.Vl=="no"?" og {0}":_.Vl=="es"||_.Vl=="es-419"||_.Vl=="es-US"?" y {0}":_.Vl=="kk"||_.Vl=="lo"||_.Vl=="mn"?", {0}":_.Vl=="bg"||_.Vl=="mk"||_.Vl=="ru"||_.Vl=="sr"?" \u0438 {0}":_.Vl=="gl"||_.Vl=="it"||_.Vl=="pt-BR"||_.Vl=="pt-PT"?" e {0}":" i {0}";var D=_.Vl=="am"?"{0} \u12a5\u1293 {1}":_.Vl=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Vl=="az"?"{0} v\u0259 {1}":
_.Vl=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Vl=="de"?"{0} und {1}":_.Vl=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Vl=="eu"?"{0} eta {1}":_.Vl=="fa"?"{0} \u0648 {1}":_.Vl=="fil"?"{0} at {1}":_.Vl=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Vl=="hi"?"{0} \u0914\u0930 {1}":_.Vl=="hu"?"{0} \u00e9s {1}":_.Vl=="hy"?"{0} \u0587 {1}":_.Vl=="iw"?"{0} \u05d5-{1}":_.Vl=="ja"?"{0}\u3001{1}":_.Vl=="ka"?"{0} \u10d3\u10d0 {1}":_.Vl=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Vl=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Vl=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Vl=="ko"?"{0} \ubc0f {1}":_.Vl=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Vl=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Vl=="lt"?"{0} ir {1}":_.Vl=="lv"?"{0} un {1}":_.Vl=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Vl=="mn"?"{0}, {1}":_.Vl=="mr"?"{0} \u0906\u0923\u093f {1}":_.Vl=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Vl=="ne"?"{0} \u0930 {1}":_.Vl=="or"?"{0} \u0b13 {1}":_.Vl=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Vl=="ro"?"{0} \u0219i {1}":_.Vl==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Vl=="sl"?"{0} in {1}":_.Vl=="sq"?"{0} dhe {1}":_.Vl=="sv"?"{0} och {1}":_.Vl=="sw"?"{0} na {1}":_.Vl=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Vl=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Vl=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Vl=="tr"?"{0} ve {1}":_.Vl=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Vl=="uz"?"{0} va {1}":_.Vl=="vi"?"{0} v\u00e0 {1}":_.Vl=="zh-HK"?"{0}\u53ca{1}":_.Vl=="zu"?"{0} ne-{1}":_.Vl=="af"||_.Vl=="nl"?"{0} en {1}":_.Vl=="ar"||_.Vl==
"ar-XB"?"{0} \u0648{1}":_.Vl=="be"||_.Vl=="uk"?"{0} \u0456 {1}":_.Vl=="cs"||_.Vl=="sk"?"{0} a\u00a0{1}":_.Vl=="et"||_.Vl=="fi"?"{0} ja {1}":_.Vl=="fr"||_.Vl=="fr-CA"?"{0} et {1}":_.Vl=="id"||_.Vl=="ms"?"{0} dan {1}":_.Vl=="zh-CN"||_.Vl=="zh-TW"?"{0}\u548c{1}":_.Vl=="da"||_.Vl=="is"||_.Vl=="no"?"{0} og {1}":_.Vl=="es"||_.Vl=="es-419"||_.Vl=="es-US"?"{0} y {1}":_.Vl=="bg"||_.Vl=="mk"||_.Vl=="ru"||_.Vl=="sr"?"{0} \u0438 {1}":_.Vl=="en"||_.Vl=="en-GB"||_.Vl=="en-IN"||_.Vl=="en-XA"?"{0} and {1}":_.Vl==
"gl"||_.Vl=="it"||_.Vl=="pt-BR"||_.Vl=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Vl==="sq"?(G=G.replace("dhe","e"),D=D.replace("dhe","e")):_.Vl==="th"?(Z=Z.replace("{0}"," {0}"),D=D.replace("{0}","{0} "),D=D.replace("{1}"," {1}")):_.Vl==="ne"?Z=",":_.Vl==="zh-CN"?Z="":W.includes(_.Vl)&&(Z=" ");return y.length<2?y.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(_.Vl)?y.length===2?
D.replace("{0}",y[0]).replace("{1}",y[1]):c.replace("{0}",y[0])+y.slice(1,-1).join(Z)+G.replace("{0}",y[y.length-1]):y.join(Z)};
_.f.getTimeParam=function(){return lqQ(this.timeString)};
_.f.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var y={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},W;_.yk(_.Zz(),(W=this.data)==null?void 0:W.trackingParams,y,7)};
_.f.onChangeStartAtTimestamp=function(){for(var y=this.startAtTimestamp.value.split(":"),W=0,c=1,Z=y.length-1;Z>=0;Z--)W+=Number(y[Z])*c,c*=60;this.updateTimeSecs(W);this.setTimestamp()};
_.f.onOpen=function(){var y=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var W=_.HF();W?W.getPlayerPromise().then(function(c){c=c.getCurrentTime();y.updateTimeSecs(c)}):cz9()&&this.updateTimeSecs(cz9())};
_.f.setTimestamp=function(){var y=Math.floor(this.currentTimeSecs);_.GG(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!y,timestamp:y||""}])};
var qc=V4H;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],qc.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qc.prototype,"data",void 0);_.x([_.L({value:!1,notify:!0}),_.e("design:type",Boolean)],qc.prototype,"isStartAtChecked",void 0);_.x([_.L(),_.e("design:type",Number)],qc.prototype,"currentTimeSecs",void 0);
_.x([_.L({computed:"computeTimeString(currentTimeSecs)"}),_.e("design:type",String)],qc.prototype,"timeString",void 0);_.x([_.L({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.e("design:type",String)],qc.prototype,"timeStringA11y",void 0);_.x([_.jj("#start-at-timestamp"),_.e("design:type",Object)],qc.prototype,"startAtTimestamp",void 0);qc=_.x([_.n6({is:"yt-start-at-renderer",disableElementRegistration:!0})],qc);
_.T(qc,"yt-start-at-renderer",function(){if(JQg===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;Pa9===void 0&&(Pa9=document.createElement("template"));var Z=Pa9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);JQg=y}y=JQg;return y},{mode:2});var CaD;var QBS;var AQ9=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"]]),hnD=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"]]),BdQ=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var HSH={};HSH.YtBindingExpressionsBehavior={identity:_.AH,msg:function(y,W){W=W===void 0?{}:W;return _.bN(y,W,y)},
msgPlural:function(y,W){return _.rK(y,W)},
getMusicIconFromType:function(y){if(_.O("music_web_enable_icon_wil"))y=_.wp(y);else if(hnD.has(y))y="yt-sys-icons:"+hnD.get(y);else{var W=AQ9.get(y)||_.wp(y).split(":")[1];W=_.Rbf(W);var c;y=((c=BdQ.get(y))!=null?c:"yt-sys-icons:")+W}return y}};var La9;var vC6;var dmZ;var SgQ=document.head,Tdd=SgQ.appendChild,aAB;if(dmZ===void 0){var xmQ=document.createElement("template");_.E(xmQ,'\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>');dmZ=xmQ}aAB=dmZ;Tdd.call(SgQ,aAB.content);var kU=function(){var y=_.v.apply(this,arguments)||this;y.screenLayer=7;return y};
_.R(kU,_.v);kU.prototype.getScreenLayer=function(){return this.screenLayer};
kU.prototype.onTap=function(y){y&&y.detail&&(y.detail.x||y.detail.y)&&_.p(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.D2(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(y=this.getScreenLayer(),_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:y}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.dJ.Object.defineProperties(kU.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()}}});
var jP=kU;jP.prototype.onTap=jP.prototype.onTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],jP.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jP.prototype,"data",void 0);_.x([_.A("data.title"),_.e("design:type",Object),_.e("design:paramtypes",[])],jP.prototype,"title",null);
_.x([_.A("data.serviceName"),_.e("design:type",String),_.e("design:paramtypes",[])],jP.prototype,"icon",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],jP.prototype,"onTap",null);jP=_.x([_.n6({is:"yt-share-target-renderer",disableElementRegistration:!0})],jP);
_.T(jP,"yt-share-target-renderer",function(){if(vC6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;La9===void 0&&(La9=document.createElement("template"));var Z=La9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);vC6=y}y=vC6;return y},{mode:2});var hQ9;var BhZ;var HMQ=function(){var y=_.v.apply(this,arguments)||this;y.SHARE_TARGET_WIDTH=70;y.SHARE_TARGET_MARGIN_RIGHT=8;y.PAGE_SCROLL_SPEED=9;y.actionMap={"yt-share-panel-reset-action":"onReset_"};return y};
_.R(HMQ,_.v);_.f=HMQ.prototype;_.f.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.f.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.p(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.p(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.f.onReset_=function(){if(_.p(this.hostElement).querySelector("#list")){var y=_.p(this.hostElement).querySelector("#list");var W=_.p(this.hostElement).querySelector("#list");var c=W.offsetLeft,Z=W.offsetParent;Z||_.JnQ(W)!="fixed"||(Z=_.Pu(W).documentElement);if(Z){if(_.fi&&!yh9(58)){var G=_.LfE(Z);c+=G.left}else Number(_.LOI)>=8&&!(Number(_.LOI)>=9)&&(G=_.LfE(Z),c-=G.left);W=_.BfW(Z)?Z.clientWidth-(c+W.offsetWidth):c}else W=c;WxZ(y,W);this.updateScrollButtons_()}};
_.f.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.f.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.f.onScrollWheel_=function(y){y.stopPropagation();y.preventDefault();var W=ye9(_.p(this.hostElement).querySelector("#list"));y=Math.abs(y.deltaX)>Math.abs(y.deltaY)?y.deltaX:y.deltaY;WxZ(_.p(this.hostElement).querySelector("#list"),W+y);this.updateScrollButtons_()};
_.f.smoothScrollByOnePage_=function(y){var W=_.p(this.hostElement).querySelector("#list"),c=(Math.floor(W.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Z=ye9(W),G=c*(y?1:-1),D=this.PAGE_SCROLL_SPEED,Y=this.updateScrollButtons_.bind(this),u=0,t;(function r(){u+=D;t=u/c*2;WxZ(W,Z+G*(t<1?t*t:-t*t+4*t-2));u<c?window.requestAnimationFrame(r):Y()})()};
_.f.updateScrollButtons_=function(){var y=ye9(_.p(this.hostElement).querySelector("#list")),W=_.p(this.hostElement).querySelector("#list").scrollWidth-_.p(this.hostElement).querySelector("#list").clientWidth;_.p(this.hostElement).querySelector("#scroll-button-back").hidden=y<=0;_.p(this.hostElement).querySelector("#scroll-button-forward").hidden=y>=W};
var y3=HMQ;y3.prototype.onScrollWheel_=y3.prototype.onScrollWheel_;y3.prototype.onDataChanged_=y3.prototype.onDataChanged_;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],y3.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(HSH.YtBindingExpressionsBehavior),_.e("design:type",Object)],y3.prototype,"ytBindingExpressionsBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],y3.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],y3.prototype,"onDataChanged_",null);_.x([_.B("wheel"),_.e("design:type",Function),_.e("design:paramtypes",[WheelEvent]),_.e("design:returntype")],y3.prototype,"onScrollWheel_",null);
y3=_.x([_.n6({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],y3);
_.T(y3,"yt-third-party-share-target-section-renderer",function(){if(BhZ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;hQ9===void 0&&(hQ9=document.createElement("template"));var Z=hQ9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);BhZ=y}y=BhZ;return y},{mode:2});var LbB=function(){return _.v.apply(this,arguments)||this};
_.R(LbB,_.v);LbB.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"}}}};
var Wl=LbB;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Wl.prototype,"data",void 0);Wl=_.x([_.n6({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Wl);
_.T(Wl,"yt-third-party-network-section-renderer",function(){if(QBS===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;CaD===void 0&&(CaD=document.createElement("template"));var Z=CaD;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);QBS=y}y=QBS;return y},{mode:2});_.A3(_.Ax(function(y){return _.X("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.X("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.X(_.bg,{data:function(){return y.data().firstPartyItems}},{listItemViewModel:_.DF})))},"Mf"),"first-party-network-section-view-model",{props:{data:_.Ix}});var vz9=_.dl(["data:image/svg+xml;charset=UTF-8;base64,",""]),dAZ=function(){var y=_.v.apply(this,arguments)||this;y.screenLayer=7;y.qrCodeEnabled=_.O("web_enable_sharing_qr_code");y.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return y};
_.R(dAZ,_.v);_.f=dAZ.prototype;_.f.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"}}}};
_.f.attached=function(){this.JSC$17668_scroller&&(this.JSC$17668_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17668_scroller.attached&&typeof this.JSC$17668_scroller.attached==="function"&&this.JSC$17668_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.f.onDataChanged=function(){var y=this,W;(W=this.data)!=null&&W.contents&&(this.hostElement.setAttribute("links-only","true"),_.MO(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Lv(this,function(){_.Z2(y.hostElement,"yt-refit");y.focusSharePanelHeader()}))};
_.f.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.f.handleSetTimestamp=function(y){var W=this.shortUrl();y.isSet&&(W=_.tP(W,"t",y.timestamp));this.maybeRenderQrCode(W)};
_.f.shortUrl=function(){var y,W=(y=this.data)==null?void 0:y.contents;if(W)for(y=0;y<W.length;y++){var c=void 0,Z=void 0;if((c=W[y])==null?0:(Z=c.thirdPartyNetworkSection)==null?0:Z.copyLinkContainer){var G=Z=c=void 0;return(G=_.g((c=W[y])==null?void 0:(Z=c.thirdPartyNetworkSection)==null?void 0:Z.copyLinkContainer,uid))==null?void 0:G.shortUrl}}};
_.f.maybeRenderQrCode=function(y){var W=this,c,Z,G,D,Y,u,t,b,r;return _.m(function(F){if(F.nextAddress==1){c=_.p(W.hostElement).querySelector("#qr-code");if(!W.qrCodeEnabled||!y)return c&&(c.style.display="none"),F.return();Z=_.vtI(_.U().resolve(_.qM),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});G=document.createElement("div");return typeof Z==="function"?(Z(G),F.jumpTo(2)):_.n(F,Z,3)}F.nextAddress!=2&&(D=F.yieldResult,D(G));t=(Y=G)==null?void 0:(u=Y.firstChild)==null?void 0:u.firstChild;
b=document.createElement("img");r=_.Q7(vz9,btoa(t.outerHTML));b.onload=function(){var K={canvas:c,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:b},l=new lvB;JDD(l,y);VsH(l,!1,CLH(l));var N=l.modules,P=Object.assign({},x7Q,K);N=structuredClone(N);K=N.length;var V,Q=(V=P.canvas)!=null?V:document.createElement("canvas");V=P.cellSize;l=P.logo;var S,cy=(S=P.logoSize)!=null?S:Math.floor(K/4);K%2!==cy%2&&cy++;var M=P.logoPadding,fa=P.backgroundColor;S=K*V;var jI=
P.width,sD=0;jI&&(sD=P.padding,sD=Math.ceil(sD*S/(jI-sD*2)),Q.style.width=jI+"px",Q.style.height=jI+"px");Q.width!==S+sD*2&&(Q.width=S+sD*2);Q.height!==S+sD*2&&(Q.height=S+sD*2);S=Q.getContext("2d");P.autoClear&&S.clearRect(0,0,Q.width,Q.height);S.fillStyle=fa;S.beginPath();S.roundRect(0,0,Q.width,Q.height,P.borderRadius);S.fill();S.save();S.translate(sD,sD);if(l)for(Q=Math.floor(K-cy)/2-M,M=Math.floor(K+cy)/2+M,fa=Q;fa<M;fa++)for(jI=Q;jI<M;jI++)N[fa][jI]=!1;for(Q=0;Q<K;Q++)for(M=0;M<K;M++)(Q<7&&
M<7||Q<7&&M>=K-7||Q>=K-7&&M<7)&&(N[Q][M]=!1);var ED;Q=(ED=P.markerColor)!=null?ED:P.color;ADH(S,0,0,V,Q);ADH(S,V*(K-7),0,V,Q);ADH(S,0,V*(K-7),V,Q);switch(P.cellStyle){case 0:ED=N;N=ED.length;Q=P.cellSize;S.beginPath();for(M=0;M<N;M++)for(fa=0;fa<N;fa++)ED[M][fa]&&S.rect(M*Q,fa*Q,Q,Q);S.fillStyle=P.color;S.fill();break;case 1:ED=N;N=ED.length;Q=P.cellSize;M=Q*P.relativeCircleSize;S.fillStyle=P.color;S.beginPath();for(P=0;P<N;P++)for(fa=0;fa<N;fa++)ED[P][fa]&&(S.beginPath(),S.ellipse((P+.5)*Q,(fa+.5)*
Q,M/2,M/2,0,0,2*Math.PI),S.fill());S.fill();break;case 2:ED=N;N=ED.length;Q=P.cellSize;S.fillStyle=P.color;P=[[1,1],[-1,1],[-1,-1],[1,-1]];S.beginPath();for(M=0;M<N;M++)for(fa=0;fa<N;fa++)if(ED[M][fa])S.roundRect(M*Q,fa*Q,Q,Q,Q/2),M+1<N&&ED[M+1][fa]&&S.rect(M*Q+Q/2,fa*Q,Q,Q),fa+1<N&&ED[M][fa+1]&&S.rect(M*Q,fa*Q+Q/2,Q,Q);else{jI=M*Q+Q/2;sD=fa*Q+Q/2;for(var N1=0;N1<4;N1++){var bf=_.z(P[N1]),Py=bf.next().value;bf=bf.next().value;M+Py>=0&&M+Py<N&&fa+bf>=0&&fa+bf<N&&ED[M+Py][fa]&&ED[M][fa+bf]&&ED[M+Py][fa+
bf]&&(Py=N1*Math.PI/2,bf=Q/2,S.moveTo(jI+bf*Math.cos(Py),sD+bf*Math.sin(Py)),S.arc(jI,sD,Q/2,Py,Py+Math.PI/2,!1),S.lineTo(jI+bf*(Math.cos(Py)-Math.sin(Py)),sD+bf*(Math.cos(Py)+Math.sin(Py))),S.lineTo(jI+bf*Math.cos(Py),sD+bf*Math.sin(Py)))}}S.fill()}l&&S.drawImage(l,(K-cy)*V/2,(K-cy)*V/2,cy*V,cy*V);S.restore();c.style.removeProperty("display")};
b.src=_.N9(r);_.F2(F)})};
_.f.hasCommunityPostRenderer=function(){var y,W,c,Z;return!!((y=this.data)==null?0:(W=y.header)==null?0:(c=W.sharePanelHeaderRenderer)==null?0:(Z=c.communityPost)==null?0:Z.communityPostSectionRenderer)};
_.f.onTapClose=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.f.getScreenLayer=function(){return this.screenLayer};
_.f.logSharePanelPage=function(){if(!_.O("enable_share_panel_navigation_logging_fix_on_web")){var y;if((y=this.data)!=null&&y.trackingParams){y=this.data.trackingParams;var W=this.parentClickTrackingParams;W=W?_.Dz(W):void 0;var c=_.Zz();_.wR(c,21760,W,{layer:7,parentLayer:0});c.graftServerVe(y,void 0,7);_.Sv().dispatch(_.jv({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
var cl=dAZ;cl.prototype.onDataChanged=cl.prototype.onDataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],cl.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],cl.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],cl.prototype,"data",void 0);_.x([_.L({value:_.bN("SBOX_INAPPROPRIATE_CANCEL")}),_.e("design:type",String)],cl.prototype,"closeButtonAriaLabel",void 0);_.x([_.jj("yt-share-panel-header-renderer"),_.e("design:type",HTMLElement)],cl.prototype,"header",void 0);_.x([_.L({selector:function(y){return y.share.parentClickTrackingParams}}),
_.e("design:type",String)],cl.prototype,"parentClickTrackingParams",void 0);_.x([_.L(),_.e("design:type",Object)],cl.prototype,"qrCodeEnabled",void 0);_.x([_.jj("#scroller"),_.e("design:type",Object)],cl.prototype,"JSC$17668_scroller",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],cl.prototype,"onDataChanged",null);cl=_.x([_.d({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],cl);
_.T(cl,"ytd-unified-share-panel-renderer",function(){if(rQD!==void 0)return rQD;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return rQD=y},{mode:1});var Sa6;var Z8=function(){var y=_.v.apply(this,arguments)||this;y.modernModal=_.O("kevlar_sign_in_modal_modernization");return y};
_.R(Z8,_.v);Z8.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Z8.prototype.computeShouldHideOldButtons=function(){var y;return!((y=this.data)==null?0:y.button)};
_.dJ.Object.defineProperties(Z8.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var y,W;if(this.modernModal&&((y=this.data)==null?0:(W=y.button)==null?0:W.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var c,Z;return(c=this.data)==null?void 0:(Z=c.button)==null?void 0:Z.buttonRenderer}}});
var GE=Z8;_.x([_.L(),_.e("design:type",Object)],GE.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],GE.prototype,"ytEventForwardingBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GE.prototype,"modernModal",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],GE.prototype,"buttonRendererData",null);
GE=_.x([_.d({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],GE);
_.T(GE,"ytd-modal-with-title-and-button-renderer",function(){if(Sa6!==void 0)return Sa6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Sa6=y},{mode:1});var Th9;var atQ=function(){return _.v.apply(this,arguments)||this};
_.R(atQ,_.v);atQ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("page-changed",this.page))};
var f3=atQ;f3.prototype.pageChangedForBinding=f3.prototype.pageChangedForBinding;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],f3.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],f3.prototype,"page",void 0);_.x([_.H("page"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],f3.prototype,"pageChangedForBinding",null);
f3=_.x([_.d({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],f3);
_.T(f3,"ytd-account-item-section-header-renderer",function(){if(Th9!==void 0)return Th9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Th9=y},{mode:1});var xA9;var iM9=function(){return _.v.apply(this,arguments)||this};
_.R(iM9,_.v);iM9.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"}}}};
iM9.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
var oR=iM9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],oR.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],oR.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!1}),_.e("design:type",Function)],oR.prototype,"onAccountItemTap",void 0);
oR=_.x([_.d({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],oR);
_.T(oR,"ytd-account-item-section-renderer",function(){if(xA9!==void 0)return xA9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return xA9=y},{mode:1});var MH3;var eQd;var w9d=function(){return _.v.apply(this,arguments)||this};
_.R(w9d,_.v);var D8=w9d;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],D8.prototype,"data",void 0);D8=_.x([_.d({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],D8);
_.T(D8,"ytd-accounts-dialog-header-renderer",function(){if(eQd!==void 0)return eQd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return eQd=y},{mode:1});var qaD;var k19=function(){return _.v.apply(this,arguments)||this};
_.R(k19,_.v);k19.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
var zE=k19;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zE.prototype,"data",void 0);zE=_.x([_.d({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],zE);
_.T(zE,"ytd-google-account-header-renderer",function(){if(qaD!==void 0)return qaD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return qaD=y},{mode:1});var jrQ=function(){return _.v.apply(this,arguments)||this};
_.R(jrQ,_.v);jrQ.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"}}}};
jrQ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("page-changed",this.page))};
var Ye=jrQ;Ye.prototype.pageChangedForBinding=Ye.prototype.pageChangedForBinding;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ye.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],Ye.prototype,"page",void 0);
_.x([_.H("page"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ye.prototype,"pageChangedForBinding",null);Ye=_.x([_.d({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Ye);
_.a5()(Ye,"ytd-account-section-list-renderer",function(){if(MH3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);MH3=y}y=MH3;return y},{allowedProps:["data"],
mode:1});var y0Z;var WYZ=function(){var y=_.v.apply(this,arguments)||this;y.enableHandlesAccountMenuSwitcher=_.O("enable_handles_account_menu_switcher");return y};
_.R(WYZ,_.v);WYZ.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
var mo=WYZ;mo.prototype.dataChanged=mo.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mo.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mo.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mo.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.x([_.jj("#avatar"),_.e("design:type",Object)],mo.prototype,"avatar",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mo.prototype,"dataChanged",null);mo=_.x([_.d({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],mo);
_.a5()(mo,"ytd-active-account-header-renderer",function(){if(y0Z===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);y0Z=y}y=y0Z;return y},{allowedProps:["data"],
mode:1});var c0f;var Z5H;var GzZ=function(){return _.v.apply(this,arguments)||this};
_.R(GzZ,_.v);GzZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
GzZ.prototype.onBackTap=function(){_.Z2(this.hostElement,"yt-menu-back-tapped")};
var sG=GzZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sG.prototype,"data",void 0);sG=_.x([_.d({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],sG);
_.a5()(sG,"ytd-simple-menu-header-renderer",function(){if(Z5H===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);Z5H=y}y=Z5H;return y},{allowedProps:["data"],
mode:2});var fCB;var otQ=function(){return _.v.apply(this,arguments)||this};
_.R(otQ,_.v);var uK=otQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uK.prototype,"data",void 0);uK=_.x([_.d({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],uK);
_.T(uK,"ytd-comment-video-thumbnail-header-renderer",function(){if(fCB!==void 0)return fCB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return fCB=y},{mode:1});var D_B;var zw6=function(){return _.v.apply(this,arguments)||this};
_.R(zw6,_.v);var tB=zw6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tB.prototype,"data",void 0);tB=_.x([_.d({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],tB);
_.T(tB,"ytd-abuse-type-selector-renderer",function(){if(D_B!==void 0)return D_B;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return D_B=y},{mode:1});var YIg;var n3=function(){return _.v.apply(this,arguments)||this};
_.R(n3,_.v);n3.prototype.attached=function(){var y=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){y.additionalContextInput.focusTextInput()})};
n3.prototype.handleAdditionalContextChanged=function(){var y=this;_.gp(this,"ytd-report-channel-additional-context-update",function(){y.ytdReduxBehavior.dispatch(_.jv({type:"ADDITIONAL_CONTEXT_UPDATED",payload:y.additionalContext}))},300)};
n3.prototype.updateAdditionalContextFromBinding=function(y){this.additionalContext=y.detail.value};
var XH=n3;XH.prototype.handleAdditionalContextChanged=XH.prototype.handleAdditionalContextChanged;_.x([_.C(_.$s),_.e("design:type",Object)],XH.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",String)],XH.prototype,"additionalContext",void 0);_.x([_.L({selector:function(y){return y.reportChannelAbuse.additionalContext}}),
_.e("design:type",String)],XH.prototype,"additionalContextRedux",void 0);_.x([_.L(),_.e("design:type",Object)],XH.prototype,"data",void 0);_.x([_.jj("yt-text-input-form-field-renderer"),_.e("design:type",Object)],XH.prototype,"additionalContextInput",void 0);_.x([_.H("additionalContext"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],XH.prototype,"handleAdditionalContextChanged",null);
XH=_.x([_.d({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],XH);
_.T(XH,"ytd-report-channel-modal-additional-context-renderer",function(){if(YIg!==void 0)return YIg;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YIg=y},{mode:1});var m_9;var srQ=function(){var y=_.v.apply(this,arguments)||this;y.nextButtonDisabled=null;y.submitEndpoint=null;y.navigationEndpoint=null;y.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return y};
_.R(srQ,_.v);_.f=srQ.prototype;_.f.computeNextButtonData=function(y,W,c){var Z={};W&&(Z.navigationEndpoint=W);c&&(Z.serviceEndpoint=c);y&&y.buttonRenderer&&_.Eb.extend(Z,y.buttonRenderer);return Z};
_.f.handleReportChannelModalDisableNextButtonAction=function(y){this.setNextButtonIsDisabled(y)};
_.f.handleReportFormEndpointUpdateAction=function(y){this.setNextButtonIsDisabled(!!y.disableSubmitButton);this.resetEndpointData();y.submitEndpoint?this.submitEndpoint=y.submitEndpoint:y.submitNavigationEndpoint&&(this.navigationEndpoint=y.submitNavigationEndpoint)};
_.f.handleSignalActionSubmitForm=function(){var y,W=Object.keys(((y=this.reportChannelAbuseForm)==null?void 0:y.selectedVideoIds)||{}),c;y=((c=this.reportChannelAbuseForm)==null?void 0:c.additionalContext)||"";var Z;c=((Z=this.reportChannelAbuseForm)==null?void 0:Z.impersonatedChannelUrl)||"";var G;if((G=this.data)==null?0:G.submitEndpoint){W={impersonated_channel_url:c,text:y,video_ids:W};var D;_.U().resolve(_.i1).resolveCommand((D=this.data)==null?void 0:D.submitEndpoint,{form:Object.assign({},
W,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.f.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.f.onYtServiceRequestError=function(y){this.setNextButtonIsDisabled(!1);_.bY(this.hostElement,y.detail.error.message)};
_.f.setNextButtonIsDisabled=function(y){this.set("data.nextButton.buttonRenderer.isDisabled",y)};
_.f.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
var bK=srQ;bK.prototype.onYtServiceRequestError=bK.prototype.onYtServiceRequestError;bK.prototype.onYtServiceRequestCompleted=bK.prototype.onYtServiceRequestCompleted;_.x([_.L(),_.e("design:type",Object)],bK.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],bK.prototype,"nextButtonDisabled",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],bK.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],bK.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],bK.prototype,"submitEndpoint",void 0);_.x([_.L(),_.e("design:type",Object)],bK.prototype,"navigationEndpoint",void 0);_.x([_.L({selector:function(y){return y.reportChannelAbuse}}),
_.e("design:type",Object)],bK.prototype,"reportChannelAbuseForm",void 0);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],bK.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],bK.prototype,"onYtServiceRequestError",null);
bK=_.x([_.d({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],bK);
_.T(bK,"ytd-report-channel-modal-footer-renderer",function(){if(m_9!==void 0)return m_9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return m_9=y},{mode:1});var uuf;var r9=function(){var y=_.v.apply(this,arguments)||this;y.boundOnTapDismissButton=function(){y.closePopup()};
return y};
_.R(r9,_.v);r9.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
r9.prototype.handleDataChanged=function(){_.hv(this.hostElement)};
r9.prototype.closePopup=function(){_.GG(this.hostElement,"yt-close-popup-action")};
var FH=r9;FH.prototype.handleDataChanged=FH.prototype.handleDataChanged;_.x([_.L(),_.e("design:type",Object)],FH.prototype,"boundOnTapDismissButton",void 0);_.x([_.L(),_.e("design:type",Object)],FH.prototype,"data",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],FH.prototype,"handleDataChanged",null);FH=_.x([_.d({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],FH);
_.T(FH,"ytd-report-channel-modal-header-renderer",function(){if(uuf!==void 0)return uuf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return uuf=y},{mode:1});var tJ6;var ntQ=function(){var y=_.v.apply(this,arguments)||this;y.autoValidate=!1;y.invalid=!1;y.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return y};
_.R(ntQ,_.v);_.f=ntQ.prototype;_.f.attached=function(){var y=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){y.channelUrlInput.focusTextInput()})};
_.f.disableNextButton=function(y){_.GG(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[y])};
_.f.handleImpersonatedChannelUrlChanged=function(){var y=this;this.disableNextButton(!0);this.invalid=!1;_.gp(this,"ytd-report-channel-impersonated-channel-update",function(){var W=y.impersonatedChannelUrl.trim();y.ytdReduxBehavior.dispatch(_.jv({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:W}));var c;((c=y.data)==null?0:c.submitEndpoint)&&W&&(_.O("web_ytd_report_channel_modal_impersonation_renderer_command_resolver_ks")?_.D2(y.hostElement,[y.data.submitEndpoint,{impersonated_channel_url:W}]):
_.U().resolve(_.i1).resolveCommand(y.data.submitEndpoint,{form:{impersonated_channel_url:W,element:y.hostElement}}))},500)};
_.f.handleModifyReportFormCommand=function(y){this.invalid=this.get("modifyReportFormCommand.action",y)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.f.updateInvalidFromBinding=function(y){this.invalid=y.detail.value};
_.f.updateImpersonatedChannelUrlFromBinding=function(y){this.impersonatedChannelUrl=y.detail.value};
var UG=ntQ;UG.prototype.handleImpersonatedChannelUrlChanged=UG.prototype.handleImpersonatedChannelUrlChanged;_.x([_.C(_.$s),_.e("design:type",Object)],UG.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],UG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],UG.prototype,"autoValidate",void 0);_.x([_.L(),_.e("design:type",Object)],UG.prototype,"invalid",void 0);
_.x([_.L(),_.e("design:type",String)],UG.prototype,"impersonatedChannelUrl",void 0);_.x([_.L({selector:function(y){return y.reportChannelAbuse.impersonatedChannelUrl}}),
_.e("design:type",String)],UG.prototype,"impersonatedChannelUrlRedux",void 0);_.x([_.L(),_.e("design:type",Object)],UG.prototype,"data",void 0);_.x([_.jj("#text-input"),_.e("design:type",Object)],UG.prototype,"channelUrlInput",void 0);_.x([_.H("impersonatedChannelUrl"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],UG.prototype,"handleImpersonatedChannelUrlChanged",null);
UG=_.x([_.d({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],UG);
_.T(UG,"ytd-report-channel-modal-impersonation-renderer",function(){if(tJ6!==void 0)return tJ6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tJ6=y},{mode:1});var XYZ;var b5Q;var $e=function(){return _.v.apply(this,arguments)||this};
_.R($e,_.v);$e.prototype.onCheckboxToggled=function(y){var W,c,Z=(c=_.g((W=this.data)==null?void 0:W.video,_.TR8))==null?void 0:c.videoId;Z&&this.ytdReduxBehavior.dispatch(y.target.checked?_.jv({type:"VIDEO_SELECTED",payload:Z}):_.jv({type:"VIDEO_UNSELECTED",payload:Z}))};
$e.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.dJ.Object.defineProperties($e.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var y,W=(y=this.data)==null?void 0:y.video;if(!W)return{};var c;y=(c=_.g(W,_.TR8))==null?void 0:c.navigationEndpoint;if(!y)return W;_.g(y==null?void 0:y.commandMetadata,_.kT)&&(_.g(y.commandMetadata,_.kT).ignoreNavigation=!0);return W}}});
var K3=$e;_.x([_.L({reflectToAttribute:!0,selector:function(y,W){return W in y.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.e("design:type",Boolean)],K3.prototype,"checked",void 0);_.x([_.L(),_.e("design:type",Object)],K3.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],K3.prototype,"video",null);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],K3.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],K3.prototype,"ytdReduxBehavior",void 0);K3=_.x([_.d({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],K3);
_.T(K3,"ytd-selectable-video-renderer",function(){if(b5Q!==void 0)return b5Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return b5Q=y},{mode:1});var r0Q=function(){var y=_.v.apply(this,arguments)||this;y.monitorScroll=!0;return y};
_.R(r0Q,_.v);r0Q.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
var OG=r0Q;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],OG.prototype,"data",void 0);OG=_.x([_.d({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],OG);
_.T(OG,"ytd-selectable-video-list-renderer",function(){if(XYZ!==void 0)return XYZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return XYZ=y},{mode:1});var FYH;_.bv("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var g9=function(){return _.v.apply(this,arguments)||this};
_.R(g9,_.v);g9.prototype.onChange=function(y){if(y=_.hq(y).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.O("kevlar_command_handler_migration_killswitch"))_.mq(this.hostElement,y,this.hostElement);else{y=_.z(y);for(var W=y.next();!W.done;W=y.next())this.ytComponentBehavior.resolveCommand(W.value)}};
g9.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
g9.prototype.updateDataToggledFromBinding=function(y){this.set("data.toggled",y.detail.value)};
var RR=g9;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],RR.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],RR.prototype,"data",void 0);_.x([_.L({computed:"isEnabled(data)"}),_.e("design:type",Boolean)],RR.prototype,"enabled",void 0);RR=_.x([_.d({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],RR);
_.T(RR,"ytd-toggle-item-renderer",function(){if(FYH!==void 0)return FYH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return FYH=y},{mode:1});var U_9;var $_6;var KY9;var lK=function(){var y=_.v.apply(this,arguments)||this;y.setVisible=!1;y.boundOnSubmitButtonClick=function(){y.onSubmitButtonClick()};
y.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return y};
_.R(lK,_.v);lK.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}}}}}};
lK.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
lK.prototype.onSubmitButtonClick=function(){var y;((y=this.data)==null?0:y.submitEndpoint)&&!_.O("enable_ytc_refunds_submit_form_signal_action")&&_.D2(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
lK.prototype.handleSignalActionSubmitForm=function(){var y;((y=this.data)==null?0:y.submitEndpoint)&&_.D2(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.dJ.Object.defineProperties(lK.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.hiddenByDefault)&&!this.setVisible}}});
var EG=lK;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],EG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],EG.prototype,"setVisible",void 0);_.x([_.L(),_.e("design:type",Object)],EG.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],EG.prototype,"surveyFeedbackData",void 0);_.x([_.L(),_.e("design:type",Object)],EG.prototype,"boundOnSubmitButtonClick",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data","setVisible"),_.e("design:type",Object),_.e("design:paramtypes",[])],EG.prototype,"visibilityHidden",null);EG=_.x([_.n6({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],EG);
_.T(EG,"yt-flow-footer-renderer",function(){if(KY9===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;$_6===void 0&&($_6=document.createElement("template"));var Z=$_6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);KY9=y}y=KY9;return y},{mode:2});var O5Q=function(){return _.v.apply(this,arguments)||this};
_.R(O5Q,_.v);var Nw=O5Q;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Nw.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Nw.prototype,"data",void 0);_.x([_.L({selector:function(y){return y.ypc.surveyFeedbackData}}),
_.e("design:type",Object)],Nw.prototype,"surveyFeedbackData",void 0);Nw=_.x([_.d({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Nw);
_.T(Nw,"ytd-flow-footer-renderer",function(){if(U_9!==void 0)return U_9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return U_9=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var gtd;var RwH;var lCD=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return y};
_.R(lCD,_.v);_.f=lCD.prototype;_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.rI("multiPageMenuSectionItems")}}};
_.f.handleHideEnclosingAction_=function(y){if(this.data&&this.data.items)for(var W=0;W<this.data.items.length;W++){var c=this.data.items[W].notificationRenderer;if(c&&c.notificationId==y.hideEnclosingAction.notificationId){this.splice("data.items",W,1);_.GG(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.f.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.MO(this.hostElement,"hidden",!0)};
_.f.updateMenu_=function(y){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&y&&!y.doNotRefreshInbox){y=this.data.continuations;for(var W=0;W<y.length;W++)if(y[W].invalidationContinuationData){var c=void 0;var Z=(c=y[W].invalidationContinuationData)==null?void 0:c.continuation;break}y=_.Eb.clone(this.data.continuationUpdateEndpoint||null);y.continuation=Z;y.click_tracking_params=this.data.trackingParams;_.D2(this.hostElement,[y])}};
_.f.onServiceRequestCompleted_=function(y,W){if(this.data&&(y=W.actions)){W=0;for(var c=y.length;W<c;W++){var Z=_.g(y[W],_.j7T);if(!Z)break;if((Z.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Z.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Z.continuationItems&&this.data.items){var G=this.data.items.length-1;this.data.items[G].continuationItemRenderer&&this.splice.apply(this,["data.items",G,1].concat(Z.continuationItems))}}}};
var IR=lCD;IR.prototype.onServiceRequestCompleted_=IR.prototype.onServiceRequestCompleted_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],IR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],IR.prototype,"data",void 0);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],IR.prototype,"onServiceRequestCompleted_",null);IR=_.x([_.n6({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],IR);
_.a5()(IR,"yt-multi-page-menu-section-renderer",function(){if(RwH===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;gtd===void 0&&(gtd=document.createElement("template"));var Z=gtd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);RwH=y}y=RwH;return y},{allowedProps:["data"],
mode:2});var Etd;var NAQ;var ICZ=function(){return _.v.apply(this,arguments)||this};
_.R(ICZ,_.v);ICZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.dJ.Object.defineProperties(ICZ.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.progress)==null?0:this.data.progress*100}}});
var p3=ICZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],p3.prototype,"data",void 0);_.x([_.A("data.progress"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],p3.prototype,"showProgressBar",null);
_.x([_.A("data.progress"),_.e("design:type",Number),_.e("design:paramtypes",[])],p3.prototype,"progress",null);p3=_.x([_.n6({is:"yt-flow-header-renderer",disableElementRegistration:!0})],p3);
_.T(p3,"yt-flow-header-renderer",function(){if(NAQ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Etd===void 0&&(Etd=document.createElement("template"));var Z=Etd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);NAQ=y}y=NAQ;return y},{mode:2});var pY3;var PJ6;var J0H=function(){return _.v.apply(this,arguments)||this};
_.R(J0H,_.v);J0H.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var Pl=J0H;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Pl.prototype,"data",void 0);Pl=_.x([_.n6({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],Pl);
_.T(Pl,"yt-post-confirmation-flow-step-renderer",function(){if(PJ6===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;pY3===void 0&&(pY3=document.createElement("template"));var Z=pY3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);PJ6=y}y=PJ6;return y},{mode:2});var VJH;var CJ9;var QrZ=function(){return _.v.apply(this,arguments)||this};
_.R(QrZ,_.v);
QrZ.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"}}}}};
var JB=QrZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],JB.prototype,"data",void 0);JB=_.x([_.n6({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],JB);
_.T(JB,"yt-refund-confirmation-flow-step-renderer",function(){if(CJ9===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;VJH===void 0&&(VJH=document.createElement("template"));var Z=VJH;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);CJ9=y}y=CJ9;return y},{mode:2});_.eu(E69);_.eu(N5H);var Iqd=_.ug({avatarViewModel:_.Ks});_.eu(pNQ);var PmD=_.ug({commentInteractionViewModel:N5H,sharedSubscriptionViewModel:pNQ,buttonViewModel:_.OV});_.eu(Jff);_.eu(V6S);_.eu(CmH);_.eu(QEB);_.eu(Af6);var hJQ=_.ug({profileIdentityInfoViewModel:_.us6,profileInfoViewModel:Af6});_.eu(B56);_.TP(B56,"yt-profile-card-view-model",{propNames:["data"]});var A0d=function(){var y=_.v.apply(this,arguments)||this;y.enableFocusFix=_.O("music_web_enable_focus_on_setting_menu_fix")&&_.I8("IS_MOBILE_WEB",!1);y.covered=!1;y.hideMenu=!1;y.isCommentNotificationOnProfileCard=!1;y.scrolledByTouch=!1;y.disableBackdropFilter=_.O("web_disable_backdrop_filter");y.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return y};
_.R(A0d,_.v);_.f=A0d.prototype;
_.f.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"}}}};
_.f.ready=function(){var y=this;this.JSC$17778_containerElement.addEventListener("scroll",function(){y.ytRendererBehavior.markDirty()})};
_.f.attributeChanged=function(y,W){y==="menu-style"&&_.GG(this.hostElement,"yt-multi-page-menu-closed-action",[W])};
_.f.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.qO(this,this.focusOnStampFinished))};
_.f.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.qO(this,this.focusOnStampFinished))};
_.f.reset=function(){this.closeJobId&&(_.KX.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.f.focusOnStampFinished=function(y){y.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.qO(this,this.focusOnStampFinished)),this.doFocus())};
_.f.doFocus=function(){var y=_.uGi(this.sectionsElement);y.length&&y[0].focus()};
_.f.computeMenuStyle=function(y){return y?y.toLowerCase().replace(/_/g,"-"):""};
_.f.computeIsCommentNotificationOnProfileCard=function(y){return _.O("enable_profile_cards_on_comments")&&y.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.f.computeHideMenu=function(y,W){return y||!(!W||!W.showLoadingSpinner)};
_.f.onPopupClosed=function(){this.isPopUpOpen=!1;_.GG(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.f.onPopupOpened=function(y,W){this.isPopUpOpen=!0;W.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Z2(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.jv({type:"CHANNEL_REPORT_RESET"})))};
_.f.onYtNavigate=function(y,W){this.shouldCloseOnNavigateEvent(W.endpoint)&&_.GG(this.hostElement,"yt-close-all-popups-action")};
_.f.handleEndpoint=function(y){y=_.g(y,_.$I);!this.isCommentNotificationOnProfileCard&&y&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17778_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.f.handleActions=function(y){for(var W=0,c=y.length;W<c;W++){var Z=_.g(y[W],XbZ);Z&&this.handleGetMultiPageMenuAction(Z);(Z=_.g(y[W],_.j7T))&&this.handleAppendContinuationItemsAction(Z)}};
_.f.onServiceRequestSentOrCompleted=function(y,W){y.detail&&y.detail.endpoint&&this.handleEndpoint(y.detail.endpoint);W.actions&&this.handleActions(W.actions)};
_.f.handleGetMultiPageMenuAction=function(y){var W=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.p(this.submenuElement).appendChild(W);(y=y.menu.multiPageMenuRenderer)&&this.logSubmenu(y);W.data=y;W.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.f.handleAppendContinuationItemsAction=function(y){if(this.data&&y.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&y.continuationItems&&this.data.sections){var W=this.data.sections.length-1;this.data.sections[W].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),W--);if(this.data.sections[W].multiPageMenuNotificationSectionRenderer&&y.continuationItems){y=_.z(y==null?void 0:y.continuationItems);for(var c=y.next();!c.done;c=y.next())if(c=c.value,_.g(c,aZ9)){var Z=
void 0,G=void 0,D=void 0,Y=void 0,u=void 0;((Z=this)==null?0:(G=Z.data)==null?0:(D=G.sections)==null?0:(Y=D[W])==null?0:(u=Y.multiPageMenuNotificationSectionRenderer)==null?0:u.items)&&this.push("data.sections."+W+".multiPageMenuNotificationSectionRenderer.items",c)}else if(_.g(c,_.h_E)||_.g(c,_.yQ))this.push("data.sections",c),W++}}};
_.f.logSubmenu=function(y){if(!_.O("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var W=this.ytRendererBehavior.getScreenLayer(),c=_.NR(W),Z=_.EL(W);if((y=y.trackingParams)&&c&&Z){var G=_.Dz(y);_.O("combine_ve_grafts")?_.Zz().graftServerVe(y,Z,W):_.HA(c,Z,G)}}};
_.f.emptySubmenuContainer=function(){for(var y=_.p(this.submenuElement);y.firstChild;)y.removeChild(y.firstChild)};
_.f.onMenuBackTap=function(y){_.Z2(this.hostElement,"yt-submenu-closed");y.stopPropagation()};
_.f.onSubmenuClosed=function(y){_.hq(y)!==this.hostElement&&(this.covered=!1,_.Z2(this.hostElement,"yt-refit"),y.stopPropagation())};
_.f.onRetrieveLocation=function(y,W){W.hasComments&&(W.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),y.stopPropagation())};
_.f.shouldCloseOnNavigateEvent=function(y){if(!y)return!0;if(_.g(y,_.VeZ)||_.g(y,_.COT)||_.g(y,_.JkV)||_.g(y,_.CD))return!1;var W;return((W=_.g(y==null?void 0:y.commandMetadata,_.kT))==null?0:W.ignoreNavigation)?!1:!0};
_.f.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.f.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.f.refitAfterRender=function(){var y=this;_.Lv(this,function(){_.Z2(y.hostElement,"yt-refit")})};
var V3=A0d;V3.prototype.refitAfterRender=V3.prototype.refitAfterRender;V3.prototype.onRetrieveLocation=V3.prototype.onRetrieveLocation;V3.prototype.onSubmenuClosed=V3.prototype.onSubmenuClosed;V3.prototype.onMenuBackTap=V3.prototype.onMenuBackTap;V3.prototype.onServiceRequestSentOrCompleted=V3.prototype.onServiceRequestSentOrCompleted;V3.prototype.onYtNavigate=V3.prototype.onYtNavigate;V3.prototype.onPopupOpened=V3.prototype.onPopupOpened;V3.prototype.onPopupClosed=V3.prototype.onPopupClosed;
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],V3.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],V3.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],V3.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],V3.prototype,"enableFocusFix",void 0);_.x([_.L(),_.e("design:type",Object)],V3.prototype,"covered",void 0);_.x([_.L({computed:"computeHideMenu(covered, data)"}),_.e("design:type",Object)],V3.prototype,"hideMenu",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.e("design:type",String)],V3.prototype,"menuStyle",void 0);
_.x([_.L({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.e("design:type",Object)],V3.prototype,"isCommentNotificationOnProfileCard",void 0);_.x([_.L(),_.e("design:type",Boolean)],V3.prototype,"isPopUpOpen",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],V3.prototype,"scrolledByTouch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],V3.prototype,"disableBackdropFilter",void 0);
_.x([_.jj("#sections"),_.e("design:type",HTMLElement)],V3.prototype,"sectionsElement",void 0);_.x([_.jj("#spinner"),_.e("design:type",HTMLElement)],V3.prototype,"spinnerElement",void 0);_.x([_.jj("#header"),_.e("design:type",HTMLElement)],V3.prototype,"headerElement",void 0);_.x([_.jj("#container"),_.e("design:type",HTMLElement)],V3.prototype,"JSC$17778_containerElement",void 0);_.x([_.jj("#submenu"),_.e("design:type",HTMLElement)],V3.prototype,"submenuElement",void 0);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],V3.prototype,"onPopupClosed",null);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],V3.prototype,"onPopupOpened",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],V3.prototype,"onYtNavigate",null);
_.x([_.B("yt-service-request-completed"),_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],V3.prototype,"onServiceRequestSentOrCompleted",null);_.x([_.B("yt-menu-back-tapped"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],V3.prototype,"onMenuBackTap",null);
_.x([_.B("yt-submenu-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],V3.prototype,"onSubmenuClosed",null);_.x([_.B("yt-retrieve-location"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],V3.prototype,"onRetrieveLocation",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],V3.prototype,"refitAfterRender",null);
V3=_.x([_.d({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],V3);
_.T(V3,"ytd-multi-page-menu-renderer",function(){if(c0f!==void 0)return c0f;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return c0f=y},{mode:1});var hwB;var BAD=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return y};
_.R(BAD,_.v);_.f=BAD.prototype;_.f.created=function(){this.showTooltips=!0};
_.f.computeAccessibility_=function(y){return this.get("accessibility.accessibilityData",y)||null};
_.f.onTap=function(){var y=_.fl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(y&&y.length===1&&y[0])_.GG(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var W;if((W=this.data)==null?0:W.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var c;((c=this.data)==null?0:c.menuRequest)&&_.D2(this.hostElement,[this.data.menuRequest])}}};
_.f.handleTopbarMenuClosedAction=function(y){var W,c;(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(y)===((W=this.data)==null?void 0:(c=W.icon)==null?void 0:c.iconType)&&this.toggleIconState(!1)};
_.f.toggleIconState=function(y){_.O("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=y)};
_.f.handleUpdateTopbarAvatarAction=function(y){var W;y=(W=_.g(y,zp9))==null?void 0:W.avatarUrl;var c,Z;W=(c=this.data)==null?void 0:(Z=c.avatar)==null?void 0:Z.thumbnails;y&&W&&(c={thumbnails:[Object.assign({},W[0],{url:y})]},this.set("data.avatar",c))};
_.dJ.Object.defineProperties(BAD.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.p(this.hostElement).querySelector("#button")}}});
var C3=BAD;C3.prototype.onTap=C3.prototype.onTap;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],C3.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],C3.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.WNV.YtButtonBehavior),_.e("design:type",Object)],C3.prototype,"ytButtonBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],C3.prototype,"data",void 0);_.x([_.jj("yt-icon-button#button"),_.e("design:type",Object)],C3.prototype,"iconButton",void 0);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],C3.prototype,"onTap",null);C3=_.x([_.d({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],C3);
_.T(C3,"ytd-topbar-menu-button-renderer",function(){if(hwB!==void 0)return hwB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return hwB=y},{mode:1});var H59;var LYQ=function(){return _.v.apply(this,arguments)||this};
_.R(LYQ,_.v);LYQ.prototype.getSelected=function(){return this.reasons.selected};
var Q3=LYQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Q3.prototype,"data",void 0);_.x([_.jj("#reasons"),_.e("design:type",Object)],Q3.prototype,"reasons",void 0);Q3=_.x([_.d({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Q3);
_.T(Q3,"ytd-ad-feedback-content",function(){if(H59!==void 0)return H59;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return H59=y},{mode:1});var vtH;var d_6=function(){return _.v.apply(this,arguments)||this};
_.R(d_6,_.v);_.f=d_6.prototype;_.f.onPopupOpened=function(){_.GG(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.f.computeConfirmButton=function(y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:y.confirmLabel}};
_.f.computeCancelButton=function(y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:y.cancelLabel}};
_.f.onConfirmTap=function(){var y=this.content.getSelected();y!==void 0&&(y=this.data.reasons[y].endpoint)&&(_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}}),_.GG(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.f.sendFeedbackSubmitToastAction=function(){var y;(y=this.data)!=null&&y.completionMessage&&_.GG(this.hostElement,"yt-open-popup-action",[_.av(this.data.completionMessage),this])};
_.f.onCancelTap=function(){_.GG(this.hostElement,"yt-close-popup-action")};
var AB=d_6;AB.prototype.onPopupOpened=AB.prototype.onPopupOpened;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],AB.prototype,"data",void 0);_.x([_.jj("#content"),_.e("design:type",Object)],AB.prototype,"content",void 0);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],AB.prototype,"onPopupOpened",null);
AB=_.x([_.d({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],AB);
_.T(AB,"ytd-ad-feedback-renderer",function(){if(vtH!==void 0)return vtH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return vtH=y},{mode:1});var SI3;var TAg=function(){return _.v.apply(this,arguments)||this};
_.R(TAg,_.v);var hB=TAg;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hB.prototype,"data",void 0);hB=_.x([_.d({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],hB);
_.T(hB,"ytd-ad-info-dialog-content",function(){if(SI3!==void 0)return SI3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return SI3=y},{mode:1});var aCd;var Bl=function(){return _.v.apply(this,arguments)||this};
_.R(Bl,_.v);Bl.prototype.computeConfirmButton=function(y){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:y.confirmLabel}};
Bl.prototype.onConfirmTap=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Bl.prototype.computeShouldShowTitle=function(){var y;return!((y=this.data)==null||!y.title)};
Bl.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
var Hl=Bl;Hl.prototype.onPopupClosed=Hl.prototype.onPopupClosed;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Hl.prototype,"data",void 0);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Hl.prototype,"onPopupClosed",null);Hl=_.x([_.d({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Hl);
_.T(Hl,"ytd-ad-info-dialog-renderer",function(){if(aCd!==void 0)return aCd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return aCd=y},{mode:1});var x_H;var i5Z=function(){var y=_.v.apply(this,arguments)||this;y.actionButtonClass="action-button";y.dismissButtonId="dismiss-button";y.dialogDismiss=!0;return y};
_.R(i5Z,_.v);_.f=i5Z.prototype;_.f.computeInPlayer=function(y){return(y==null?void 0:y.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.f.computedLogo=function(){var y,W;return this.isDarkTheme()?(y=this.data)==null?void 0:y.logoDark:(W=this.data)==null?void 0:W.logo};
_.f.computedHeaderImage=function(){var y,W;return this.isDarkTheme()?(y=this.data)==null?void 0:y.headerImageDark:(W=this.data)==null?void 0:W.headerImage};
_.f.computeLogoIconId=function(){var y,W,c,Z=(y=this.computedLogo())==null?void 0:(W=y.sources)==null?void 0:(c=W[0])==null?void 0:c.height;return Z&&Z%31===0?"logo-icon-with-padding":"logo-icon"};
_.f.computeLogoIconHeight=function(){var y,W,c,Z=(y=this.computedLogo())==null?void 0:(W=y.sources)==null?void 0:(c=W[0])==null?void 0:c.height;return Z&&Z%31===0?"31":"24"};
_.f.onPopupClosed=function(){_.U().resolve(_.y6).dispose()};
_.f.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.f.onShow=function(){this.inPlayer&&_.fZ(6)};
_.f.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var y=0;y<this.data.impressionEndpoints.length;y++){var W=_.g(this.data.impressionEndpoints[y],_.Fx);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.f.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.GG(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.dJ.Object.defineProperties(i5Z.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var y,W;return!((y=this.data)==null||!y.headerImageDark)&&!((W=this.data)==null||!W.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.secondaryButton)}}});
var L3=i5Z;L3.prototype.onPopupClosed=L3.prototype.onPopupClosed;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Rx.YtVisibilityBehavior),_.e("design:type",Object)],L3.prototype,"ytVisibilityBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],L3.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],L3.prototype,"actionButtonClass",void 0);_.x([_.L(),_.e("design:type",Object)],L3.prototype,"dismissButtonId",void 0);_.x([_.L(),_.e("design:type",Object)],L3.prototype,"dialogDismiss",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],L3.prototype,"hasHeaderImage",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],L3.prototype,"hasPremiumButton",null);
_.x([_.L({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.e("design:type",Boolean)],L3.prototype,"inPlayer",void 0);_.x([_.jj("#dismiss-button"),_.e("design:type",HTMLElement)],L3.prototype,"dismissButton",void 0);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],L3.prototype,"onPopupClosed",null);L3=_.x([_.d({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],L3);
_.T(L3,"ytd-enforcement-message-view-model",function(){if(x_H!==void 0)return x_H;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return x_H=y},{mode:1});var MJH;var ewQ;var wY3=function(){var y=_.v.apply(this,arguments)||this;y.TEST_ONLY={immediateValidation:function(){y.immediateValidation()},
onValidationResponse:function(W){y.onValidationResponse(W)},
onGenerateHandleFromNameResponse:function(W){y.onGenerateHandleFromNameResponse(W)}};
return y};
_.R(wY3,_.v);_.f=wY3.prototype;_.f.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.f.validate=function(){this.immediateValidation()};
_.f.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.f.setHandleInputValue=function(y){this.handleDir=this.getHandleDir(y);this.handleInput.value=y;this.validationState={status:"PENDING"};this.immediateValidation()};
_.f.getHandleDir=function(y){var W=y===""&&!1;return(W=_.fmE.test.call(_.fmE,y))?"rtl":"ltr"};
_.f.onDataChanged=function(){var y,W;this.handleDir=this.getHandleDir((W=(y=this.data)==null?void 0:y.handle)!=null?W:"");var c;this.validationState=((c=this.data)==null?0:c.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Z;((Z=this.data)==null?0:Z.validateOnInit)&&this.immediateValidation()};
_.f.stopPropagation=function(y){y.stopPropagation()};
_.f.onInput=function(){var y;this.handleDir=this.getHandleDir((y=this.handleInput.value)!=null?y:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.f.onFocusout=function(y){this.handleInput.contains(y.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.f.delayedValidation=function(){var y,W;this.debouncedValidation((W=(y=this.data)==null?void 0:y.validationDelayMs)!=null?W:1E3)};
_.f.immediateValidation=function(){this.debouncedValidation(0)};
_.f.debouncedValidation=function(y){var W=this;_.gp(this,"debouncedValidation",function(){var c,Z=W.staticValidation((c=W.handleInput.value)!=null?c:"");if(Z!==void 0)W.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Z};else{var G;if((G=W.data)!=null&&G.validateChannelHandleCommand){W.validationState={status:"LOADING"};var D;W.ytComponentBehavior.resolveCommand(W.data.validateChannelHandleCommand,{form:{handle:(D=W.handleInput.value)!=null?D:""},commandController:{onSuccess:function(Y,
u){W.onValidationResponse(u)},
onServerError:function(Y,u){W.onValidationServerError(u)}}})}else W.handleUnexpectedValidationError(new _.ul("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",W.data))}},y)};
_.f.staticValidation=function(y){var W;if(((W=this.data)==null?void 0:W.channelHandleStaticValidationParams)!==void 0){W=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(y)&&W.validValueRegexpErrorMessage!==void 0)return W.validValueRegexpErrorMessage;if(W.minLength!==void 0&&y.length<W.minLength&&W.minLengthErrorMessage!==void 0)return W.minLengthErrorMessage;if(W.maxLength!==void 0&&y.length>W.maxLength&&W.maxLengthErrorMessage!==void 0)return W.maxLengthErrorMessage}};
_.f.onValidationResponse=function(y){var W=_.g(y.result,Yk6);W===void 0?this.handleUnexpectedValidationError(new _.ul("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",y)):this.handleValidationResultRenderer(W)};
_.f.onValidationServerError=function(y){this.handleUnexpectedValidationError(new _.ul("ValidateChannelHandle request failed.",y))};
_.f.handleValidationResultRenderer=function(y){if(y.handle===void 0)this.handleUnexpectedValidationError(new _.ul("ChannelHandleValidationResultRenderer does not contain handle.",y));else if(y.handle===this.handleInput.value)switch(y.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:y.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:y.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.ul("Unrecognized ChannelHandleValidationResult",y));break;default:_.d2(y.result)}};
_.f.handleUnexpectedValidationError=function(y){var W;this.validationState={status:"UNKNOWN",handle:(W=this.handleInput.value)!=null?W:""};_.Rs(y)};
_.f.stopEventPropagation=function(y){y.stopPropagation()};
_.f.updateHandleOnChannelNameInputChange=function(y){if(!this.wasEdited){var W,c;this.debouncedGenerateHandleFromName(y,(c=(W=this.data)==null?void 0:W.validationDelayMs)!=null?c:1E3)}};
_.f.debouncedGenerateHandleFromName=function(y,W){var c=this;_.gp(this,"debouncedGenerateHandleFromName",function(){var Z;(Z=c.data)!=null&&Z.validateChannelHandleCommand?c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{name:y},commandController:{onSuccess:function(G,D){c.onGenerateHandleFromNameResponse(D)},
onServerError:function(G,D){_.Rs(new _.ul("Error calling GenerateHandleFromName",D))}}}):_.Rs(new _.ul("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",c.data))},W)};
_.f.onGenerateHandleFromNameResponse=function(y){this.wasEdited||((y=_.g(y.result,mlH))?this.setHandleInputValue(y.handle):_.Rs(new _.ul("Invalid results when generate handle from name")))};
_.dJ.Object.defineProperties(wY3.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var y;if(y=this.validationState)y=this.validationState,y=y.status==="OK"||y.status==="UNKNOWN";if(y)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var y;if(((y=this.validationState)==null?void 0:y.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 y,W=(y=this.channelHandleEntity)==null?void 0:y.handleEdit;this.handleDir=this.getHandleDir(W!=null?W:"");return W}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var y,W;if(((y=this.data)==null?void 0:(W=y.channelHandleStaticValidationParams)==null?void 0:W.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
var vl=wY3;vl.prototype.stopEventPropagation=vl.prototype.stopEventPropagation;vl.prototype.onDataChanged=vl.prototype.onDataChanged;vl.prototype.applyHandleEdit=vl.prototype.applyHandleEdit;vl.prototype.onValueChanged=vl.prototype.onValueChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],vl.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],vl.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],vl.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Boolean)],vl.prototype,"wasEdited",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],vl.prototype,"handleDir",void 0);_.x([_.jj("#handle-input"),_.e("design:type",Object)],vl.prototype,"handleInput",void 0);_.x([_.L(),_.A("validationState"),_.e("design:type",Object),_.e("design:paramtypes",[])],vl.prototype,"value",null);
_.x([_.H("value"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vl.prototype,"onValueChanged",null);_.x([_.A("validationState"),_.e("design:type",Object),_.e("design:paramtypes",[])],vl.prototype,"errorIndicator",null);_.x([_.L({reflectToAttribute:!0}),_.A("errorIndicator"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],vl.prototype,"borderErrorIndicator",null);
_.x([_.L({selectorArgs:["data.channelHandleEntityKey"],selector:function(y,W){return _.fq(y.entities,"channelHandle",W)}}),
_.e("design:type",Object)],vl.prototype,"channelHandleEntity",void 0);_.x([_.A("channelHandleEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],vl.prototype,"handleEdit",null);_.x([_.H("handleEdit"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vl.prototype,"applyHandleEdit",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vl.prototype,"onDataChanged",null);
_.x([_.A("data.channelHandleStaticValidationParams.validValueRegexp"),_.e("design:type",Object),_.e("design:paramtypes",[])],vl.prototype,"validValueRegexp",null);_.x([_.B("yt-service-request-sent"),_.B("yt-service-request-completed"),_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],vl.prototype,"stopEventPropagation",null);vl=_.x([_.d({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],vl);
_.T(vl,"ytd-channel-handle-input-renderer",function(){if(ewQ!==void 0)return ewQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ewQ=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var qIB=function(){var y=_.v.apply(this,arguments)||this;y.data=null;y.errorMessage=null;y.isLoading=!0;y.hideContainer=!1;y.enableNewChannelCreationOnIdForAll=_.O("enable_new_channel_creation_for_id4all");y.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"};y.testOnly={setErrorMessage:function(W){y.resetErrorState();
y.setErrorState(W)}};
return y};
_.R(qIB,_.v);_.f=qIB.prototype;_.f.created=function(){this.logScreenVe()};
_.f.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")};
_.f.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var y;((y=this.zeroStepErrorMessageEntity)==null?0:y.value)&&this.set("errorMessage",_.Lq(this.zeroStepErrorMessageEntity.value))};
_.f.onCreateTap=function(){var y=this;if(this.data&&this.data.channelCreationEndpoint){var W,c;if(!((W=this.data.createChannelButton)==null?0:(c=W.buttonRenderer)==null?0:c.isDisabled)){var Z;if((Z=this.nameInput)!=null&&Z.value){this.setLoadingState();var G,D;W=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(G=this.handleInput)==null?void 0:G.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((D=this.handleInput)==null?void 0:D.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:W,commandController:{onSuccess:function(Y,u){y.onChannelCreationEndpointSuccess(u);y.obakeImageSource&&_.$g("channelCreatedWithObakeImage",{imageSourceType:y.obakeImageSource})},
onServerError:function(){y.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.f.endpointRequiresServiceRequestAction=function(y){return!!_.g(y,_.E9)||!!_.g(y,zp9)};
_.f.isNavigateAction=function(y){var W;return!!_.g(y,_.RC)||!!_.g((W=_.g(y,taH))==null?void 0:W.command,_.RC)};
_.f.isPlaylistAction=function(y){return!!_.g(y,_.KF)||!!_.g(y,_.NY)};
_.f.onChannelCreationEndpointSuccess=function(y){if(y.createChannelError){var W;this.setErrorState((W=y.createChannelError)==null?void 0:W.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.O("enable_secondary_channel_creation_form")&&y.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(y.navigationEndpoint);if(y.actions){W=_.z(y.actions);for(var c=W.next();!c.done;c=W.next())if(c=c.value,this.endpointRequiresServiceRequestAction(c)&&this.ytComponentBehavior.resolveCommand(c),
this.isNavigateAction(c)){var Z=void 0;c=_.g((Z=_.g(c,taH))==null?void 0:Z.command,_.RC);Z=void 0;this.isPlaylistAction((Z=c)==null?void 0:Z.endpoint)&&(_.GG(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Z=void 0,this.ytComponentBehavior.resolveCommand((Z=c)==null?void 0:Z.endpoint))}}y.actions&&y.actions.some(function(G){var D;return _.g(G,_.RC)||_.g((D=_.g(G,taH))==null?void 0:D.command,_.RC)})||_.GG(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.f.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.f.onCancelTap=function(){var y,W,c;if(!((y=this.data)==null?0:(W=y.cancelButton)==null?0:(c=W.buttonRenderer)==null?0:c.isDisabled)){var Z,G,D;y=(Z=this.data)==null?void 0:(G=Z.cancelButton)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.command;if(!y||!_.g(y,_.XwI)){var Y;this.nameInput&&((Y=this.data)==null?0:Y.name)&&(this.nameInput.value=this.data.name);var u;this.handleInput&&((u=this.data)==null?0:u.channelHandleInput)&&(this.handleInput.data=_.g(this.data.channelHandleInput,swH));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.f.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.f.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.f.onClearProfilePhotoTap=function(){var y,W,c;((y=this.data)==null?0:(W=y.clearProfilePhotoButton)==null?0:(c=W.buttonRenderer)==null?0:c.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.f.onEditAvatarTap=function(){var y,W,c;((y=this.data)==null?0:(W=y.editAvatarButton)==null?0:(c=W.buttonRenderer)==null?0:c.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.f.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)};
_.f.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var y;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((y=this.data)==null?0:y.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.f.setErrorState=function(y){this.resetErrorState();if(y)this.set("errorMessage",y);else{var W;if((W=this.zeroStepErrorMessageEntity)==null?0:W.value)this.set("errorMessage",_.Lq(this.zeroStepErrorMessageEntity.value));else{var c;((c=this.data)==null?0:c.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.f.fetchImageBlobWithAlr=function(y,W){W=W===void 0?5:W;var c=this,Z,G,D,Y,u;return _.m(function(t){switch(t.nextAddress){case 1:return _.n(t,fetch(y,{method:"GET",mode:"cors"}),2);case 2:Z=t.yieldResult;if(Z.ok){t.jumpTo(3);break}if(W===0)throw Error();G=c.addJitter(Math.pow(2,5-W));return _.n(t,new Promise(function(b){setTimeout(b,G*1E3)}),4);
case 4:return t.return(c.fetchImageBlobWithAlr(y,W-1));case 3:if(!_.VT(Z.headers.get("content-type")).split(";").some(function(b){return b.trim()==="text/plain"})){t.jumpTo(5);
break}D=c;Y=D.fetchImageBlobWithAlr;return _.n(t,Z.text(),6);case 6:return t.return(Y.call(D,t.yieldResult,W-1));case 5:return _.n(t,Z.blob(),7);case 7:return u=t.yieldResult,t.return(u)}})};
_.f.addJitter=function(y){var W=y*.3*Math.random();Math.random()>.5&&(W*=-1);return y+W};
_.f.openProfilePicturePicker=function(){var y=this,W,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1){W=y.data.scottyUploadUrl;if(!W)return Y.return();c=document.documentElement.hasAttribute("dark");Z=document.body.style.colorScheme;c&&(document.body.style.colorScheme="dark");G=frH(oSZ(GIH(qU9(c?"dark":"light")),function(u){var t,b,r,F,K;return _.m(function(l){if(l.nextAddress==1)return t=_.tP(OAd(new nY(u.photoUrl,!1)).build(),"alr","yes"),y.obakeImageSource=y.pictureChangeSourceToObakeImageSourceType(u.photoSource),
_.tm(l,2),y.setLoadingState(),_.n(l,y.fetchImageBlobWithAlr(t),4);if(l.nextAddress!=2)return b=l.yieldResult,r=new FileReader,r.addEventListener("load",function(){var N,P,V,Q,S,cy;return _.m(function(M){if(M.nextAddress==1){if(b.size>15728640)return y.setErrorState((N=y.data)==null?void 0:N.imageSizeErrorMessage),_.Rs(Error("il")),M.return();if(!r.result)return y.setErrorState((P=y.data)==null?void 0:P.genericImageLoadErrorMessage),_.Rs(Error("jl")),M.return();V=r.result;_.tm(M,2);return _.n(M,HiB(b,
W),4)}if(M.nextAddress!=2)return Q=M.yieldResult,y.handleImageUpdatedAction(V,Q),y.resetErrorState(),_.J6(M,0);S=_.rs(M);y.setErrorState((cy=y.data)==null?void 0:cy.uploadErrorMessage);if(S instanceof Error)_.OP(S);else{var fa=new _.ul(JSON.stringify(S));_.OP(fa)}_.F2(M)})}),r.readAsDataURL(b),_.J6(l,0);
F=_.rs(l);y.setErrorState((K=y.data)==null?void 0:K.genericImageLoadErrorMessage);F instanceof Error?_.OP(F):_.gC(new _.ul(JSON.stringify(F)));_.F2(l)})}),function(){y.hideContainer=!1;
document.body.style.colorScheme=Z});
_.tm(Y,2);return _.n(Y,G.openPicker(),4)}if(Y.nextAddress!=2)return _.J6(Y,0);_.rs(Y);y.setErrorState((D=y.data)==null?void 0:D.selectImageErrorMessage);_.F2(Y)})};
_.f.pictureChangeSourceToObakeImageSourceType=function(y){switch(y){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.f.logScreenVe=function(){_.wR(_.Zz(),124448)};
_.f.graftServerVe=function(){var y=_.EL(),W,c,Z=(W=this.data)==null?void 0:(c=W.loggingDirectives)==null?void 0:c.trackingParams;Z&&y&&(this.channelCreationFormVe=_.Zz().graftServerVe(Z,y),y={visualElement:this.channelCreationFormVe},_.Wh().reportShown(y))};
_.f.isNameChanged=function(y){var W;return((W=this.data)==null?void 0:W.name)!==y};
_.f.isHandleChanged=function(y){var W,c=_.g((W=this.data)==null?void 0:W.channelHandleInput,swH);return c&&y?c.handle!==y:!1};
_.f.handleImageUpdatedAction=function(y,W){this.hideContainer=!1;this.previewDataUrl=y;this.encryptedBlobId=W};
_.f.handleImageSelectionErrorAction=function(y){this.hideContainer=!1;this.setErrorState(y)};
_.f.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.f.showContainer=function(){this.hideContainer=!1};
_.f.maybeWipeZeroStepErrorMessage=function(){var y,W=(y=this.data)==null?void 0:y.zeroStepErrorMessageEntityKey,c;W&&((c=this.zeroStepErrorMessageEntity)==null?0:c.value)&&this.ytdReduxBehavior.dispatch(_.o3("stringEntity",W,{key:W,value:""}))};
_.dJ.Object.defineProperties(qIB.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 y;return((y=this.photoThumbnail)==null?0:y.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 y;return!((y=this.data)==null||!y.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.descriptionInfo}}});
var d9=qIB;d9.prototype.dataChanged=d9.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],d9.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],d9.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],d9.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],d9.prototype,"errorMessage",void 0);
_.x([_.L(),_.e("design:type",Object)],d9.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",String)],d9.prototype,"previewDataUrl",void 0);_.x([_.L(),_.e("design:type",Number)],d9.prototype,"obakeImageSource",void 0);_.x([_.L(),_.e("design:type",Object)],d9.prototype,"hideContainer",void 0);_.x([_.jj("#title-input"),_.e("design:type",Object)],d9.prototype,"nameInput",void 0);_.x([_.jj("#handle-input"),_.e("design:type",Object)],d9.prototype,"handleInput",void 0);
_.x([_.L(),_.e("design:type",Boolean)],d9.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.x([_.L({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.jmh}),_.e("design:type",Object)],d9.prototype,"zeroStepErrorMessageEntity",void 0);_.x([_.A("data","data.isDefaultProfilePhoto","previewDataUrl"),_.e("design:type",Object),_.e("design:paramtypes",[])],d9.prototype,"photoThumbnail",null);
_.x([_.A("data","data.isDefaultProfilePhoto","photoThumbnail"),_.e("design:type",Object),_.e("design:paramtypes",[])],d9.prototype,"userSetPhotoThumbnailUrl",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],d9.prototype,"hideProfilePhotoButtonLayer",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],d9.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.x([_.Gs("data","zeroStepErrorMessageEntity"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],d9.prototype,"dataChanged",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.descriptionInfo","zeroStepErrorMessageEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],d9.prototype,"description",null);d9=_.x([_.d({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],d9);
_.T(d9,"ytd-channel-creation-dialog-renderer",function(){if(MJH!==void 0)return MJH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return MJH=y},{mode:1});var kz9;var SP=function(){var y=_.v.apply(this,arguments)||this;y.isLoading=!1;y.isDisabled=!1;return y};
_.R(SP,_.v);SP.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
SP.prototype.updateDisabled=function(){var y;this.isDisabled=this.isLoading||((y=this.handleInput)==null?void 0:y.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
SP.prototype.onSaveClick=function(){var y=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var W;((W=this.data)==null?void 0:W.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var c;if((c=y.data)==null?0:c.nextEndpoint){var Z;y.ytComponentBehavior.resolveCommand((Z=y.data)==null?void 0:Z.nextEndpoint)}else y.isLoading=
!1,y.closeDialog()},
onServerError:function(){y.isLoading=!1;y.handleInput.validate();var c;y.errorMessage=(c=y.data)==null?void 0:c.errorMessage}}}))}};
SP.prototype.closeDialog=function(){_.GG(this.hostElement,"yt-close-popup-action",[this.is])};
var TE=SP;TE.prototype.updateDisabled=TE.prototype.updateDisabled;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],TE.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TE.prototype,"data",void 0);_.x([_.jj("#handle-input"),_.e("design:type",Object)],TE.prototype,"handleInput",void 0);_.x([_.H("isLoading"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TE.prototype,"updateDisabled",null);
TE=_.x([_.d({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],TE);
_.T(TE,"ytd-channel-handle-edit-dialog-renderer",function(){if(kz9!==void 0)return kz9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kz9=y},{mode:1});var jF6;var y$d=function(){return _.v.apply(this,arguments)||this};
_.R(y$d,_.v);y$d.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var aR=y$d;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],aR.prototype,"data",void 0);aR=_.x([_.d({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],aR);
_.T(aR,"ytd-channel-switcher-footer-renderer",function(){if(jF6!==void 0)return jF6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return jF6=y},{mode:1});var W33;var c$Q;var ZV9=function(){return _.v.apply(this,arguments)||this};
_.R(ZV9,_.v);ZV9.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
var xe=ZV9;xe.prototype.onIronChange=xe.prototype.onIronChange;_.x([_.L(),_.e("design:type",Object)],xe.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!1}),_.e("design:type",Function)],xe.prototype,"onDontAskAgainChanged",void 0);_.x([_.jj("#checkbox"),_.e("design:type",Object)],xe.prototype,"checkbox",void 0);_.x([_.B("iron-change"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xe.prototype,"onIronChange",null);
xe=_.x([_.d({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],xe);
_.T(xe,"ytd-identity-prompt-footer-renderer",function(){if(c$Q!==void 0)return c$Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return c$Q=y},{mode:1});var GcH=function(){var y=_.v.apply(this,arguments)||this;y.dontAskAgain=!1;y.showPopup=!1;y.boundDontAskAgainChanged=function(W){y.dontAskAgainChanged(W)};
y.boundOnAccountItemTap=function(W){y.onAccountItemTap(W)};
return y};
_.R(GcH,_.v);_.f=GcH.prototype;
_.f.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]]"}}}}}};
_.f.ready=function(){var y=this;_.p(this.hostElement).querySelector("#container").addEventListener("scroll",function(){y.ytRendererBehavior.markDirty()})};
_.f.dontAskAgainChanged=function(y){this.dontAskAgain=y};
_.f.onAccountItemTap=function(y){if(y){var W={};this.dontAskAgain&&(W={dont_ask_again:this.dontAskAgain});_.l0(y,W)}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.f.redirectOnlyAccount=function(y){y.sections&&y.sections.length>0&&(y=_.g(y.sections[0],_.wMQ),(y==null?0:y.contents)&&(y==null?void 0:y.contents.length)<=1?(y=_.hW(window.location.href),(y==null?0:y.next)&&_.nAf(y.next)?_.l0(y.next):_.l0("/")):this.showPopup=!0)};
var iK=GcH;iK.prototype.dataChanged=iK.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iK.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iK.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!1}),_.e("design:type",Object)],iK.prototype,"dontAskAgain",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iK.prototype,"showPopup",void 0);_.x([_.L({reflectToAttribute:!1}),_.e("design:type",Object)],iK.prototype,"boundDontAskAgainChanged",void 0);_.x([_.L({reflectToAttribute:!1}),_.e("design:type",Object)],iK.prototype,"boundOnAccountItemTap",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],iK.prototype,"dataChanged",null);
iK=_.x([_.d({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],iK);
_.T(iK,"ytd-channel-switcher-renderer",function(){if(W33!==void 0)return W33;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return W33=y},{mode:1});var fXQ;var oJD=function(){return _.v.apply(this,arguments)||this};
_.R(oJD,_.v);_.dJ.Object.defineProperties(oJD.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
var Mw=oJD;_.x([_.L(),_.e("design:type",Object)],Mw.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],Mw.prototype,"steps",null);Mw=_.x([_.d({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],Mw);
_.T(Mw,"ytd-channel-transfer-stepper-renderer",function(){if(fXQ!==void 0)return fXQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return fXQ=y},{mode:1});var DSH;var ziH=function(){var y=_.v.apply(this,arguments)||this;y.data=null;y.isError=!1;y.isLoading=!1;return y};
_.R(ziH,_.v);_.f=ziH.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.f.computeProfileName=function(y){return y?y.givenNameValue+" "+y.familyNameValue:""};
_.f.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)};
_.f.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)};
var eP=ziH;eP.prototype.onYtServiceRequestError=eP.prototype.onYtServiceRequestError;eP.prototype.onYtServiceRequestSent=eP.prototype.onYtServiceRequestSent;eP.prototype.dataChanged=eP.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],eP.prototype,"data",void 0);
_.x([_.L({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.e("design:type",String)],eP.prototype,"profileName",void 0);_.x([_.L(),_.e("design:type",Object)],eP.prototype,"isError",void 0);_.x([_.L(),_.e("design:type",Object)],eP.prototype,"isLoading",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],eP.prototype,"dataChanged",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],eP.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],eP.prototype,"onYtServiceRequestError",null);eP=_.x([_.d({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],eP);
_.T(eP,"ytd-channel-warm-welcome-cont-renderer",function(){if(DSH!==void 0)return DSH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return DSH=y},{mode:1});var YJf;var mSH=function(){var y=_.v.apply(this,arguments)||this;y.data=null;return y};
_.R(mSH,_.v);mSH.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mSH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
var w9=mSH;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],w9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],w9.prototype,"data",void 0);w9=_.x([_.d({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],w9);
_.T(w9,"ytd-channel-warm-welcome-renderer",function(){if(YJf!==void 0)return YJf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YJf=y},{mode:1});var sF6;var uNf=function(){return _.v.apply(this,arguments)||this};
_.R(uNf,_.v);_.dJ.Object.defineProperties(uNf.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.authorThumbnail)||{}}}});
var qw=uNf;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qw.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],qw.prototype,"thumbnailDetails",null);qw=_.x([_.d({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],qw);
_.T(qw,"ytd-comment-preview-renderer",function(){if(sF6!==void 0)return sF6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sF6=y},{mode:1});var tgZ;var nJ9=function(){return _.v.apply(this,arguments)||this};
_.R(nJ9,_.v);nJ9.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.dJ.Object.defineProperties(nJ9.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.submitButton}}});
var ke=nJ9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ke.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],ke.prototype,"submitButton",null);ke=_.x([_.d({is:"ytd-notice-renderer",disableElementRegistration:!0})],ke);
_.T(ke,"ytd-notice-renderer",function(){if(tgZ!==void 0)return tgZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return tgZ=y},{mode:1});var Xf6;var bVH=function(){return _.v.apply(this,arguments)||this};
_.R(bVH,_.v);bVH.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
var jB=bVH;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jB.prototype,"data",void 0);jB=_.x([_.d({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],jB);
_.T(jB,"ytd-preview-comment-dialog-content",function(){if(Xf6!==void 0)return Xf6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Xf6=y},{mode:1});var r$9;var F3f=function(){return _.v.apply(this,arguments)||this};
_.R(F3f,_.v);F3f.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
F3f.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var yH=F3f;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yH.prototype,"data",void 0);yH=_.x([_.d({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],yH);
_.T(yH,"ytd-preview-comment-dialog-renderer",function(){if(r$9!==void 0)return r$9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return r$9=y},{mode:1});var USZ;var $SH=_.O("web_button_rework")&&_.I8("BUTTON_REWORK")||_.O("web_button_rework_with_live"),K3D=function(){var y=_.v.apply(this,arguments)||this;y.selectedAmountIndex=1;y.privacyCheckboxValue=!1;y.useAmsterdamStyle=$SH;y.amountPlaceholderIndex=-1;return y};
_.R(K3D,_.v);_.f=K3D.prototype;_.f.onAmountClick=function(y){this.selectedAmountIndex=_.p(this.hostElement).querySelector("#amounts").indexForElement(y.currentTarget)};
_.f.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.GG(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.f.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.GG(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.GG(this.hostElement,"yt-close-popup-action",[this.is]);var y;(y=_.HF())==null||y.getPlayerPromise().then(function(W){W.pauseVideo()})}};
_.f.donationCallback=function(y){y.success?(this.hostElement.hasAttribute("live-chat")&&y.response&&y.response.data&&y.response.data.actions&&_.GG(this.hostElement,"yt-live-chat-open-popup",[y.response.data.actions[0]]),_.GG(this.hostElement,"yt-close-popup-action",[this.is]),_.GG(this.hostElement,"yt-live-chat-close-buy-flow")):y.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(y.errorMessageRenderer)};
_.f.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.p(this.hostElement).querySelector("#custom-amount-input").focus()};
_.f.updateConfirmationDialogTextWithAmount=function(y){var W=this.getConfirmDialogRuns();W&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(W),"text"],this.getFormattedAmount(y))};
_.f.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.f.getAmountPlaceholderIndex=function(y){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=y.findIndex(function(W){return W.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.f.getFormattedAmount=function(y){var W;return(new _.Cq(4,((W=this.data)==null?void 0:W.currencyCode)||"")).format(y)};
_.f.isAmountValid=function(y){if(y==="")return!1;y=Number(y)*1E6;var W=this.get("minAmountMicros",this.data),c=this.get("maxAmountMicros",this.data);return W&&y<W||c&&y>c?!1:!0};
_.f.setInputError=function(){this.shouldShowValidationError?_.p(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.p(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.f.setInitialCheckboxValue=function(){var y;this.privacyCheckboxValue=!((y=this.data)==null||!y.privacyCheckboxInitialState)};
_.f.updateCustomAmountInputFromBinding=function(y){this.customAmountInput=y.detail.value};
_.f.updatePrivacyCheckboxValueFromBinding=function(y){this.privacyCheckboxValue=y.detail.value};
_.dJ.Object.defineProperties(K3D.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var y=this,W,c;return((W=this.data)==null?void 0:(c=W.suggestedAmounts)==null?void 0:c.map(function(Z,G){return{buttonRenderer:{style:y.selectedAmountIndex===G?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:Z.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 y;return!((y=this.data)==null||!y.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 y=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(y&&this.amountMicros!==null)return Object.assign({},y,{ypcGetCartEndpoint:Object.assign({},y.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 y=this.get("confirmLargeAmount",this.data);if(y&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),y}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var y=this.get("donateButton.buttonRenderer",this.data);if(y)return Object.assign({},y,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
var WS=K3D;WS.prototype.setInitialCheckboxValue=WS.prototype.setInitialCheckboxValue;WS.prototype.setInputError=WS.prototype.setInputError;WS.prototype.setFocusOnCustomAmountInput=WS.prototype.setFocusOnCustomAmountInput;_.x([_.C(Huf),_.e("design:type",Object)],WS.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WS.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],WS.prototype,"selectedAmountIndex",void 0);_.x([_.L(),_.e("design:type",String)],WS.prototype,"customAmountInput",void 0);_.x([_.L(),_.e("design:type",Object)],WS.prototype,"privacyCheckboxValue",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],WS.prototype,"useAmsterdamStyle",void 0);_.x([_.H("customAmount"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WS.prototype,"setFocusOnCustomAmountInput",null);_.x([_.A("data","selectedAmountIndex"),_.e("design:type",Array),_.e("design:paramtypes",[])],WS.prototype,"suggestedAmountButtons",null);
_.x([_.A("data","selectedAmountIndex"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WS.prototype,"isCustomAmountSelected",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WS.prototype,"showPrivacyCheckbox",null);_.x([_.A("data","selectedAmountIndex","customAmount"),_.e("design:type",Object),_.e("design:paramtypes",[])],WS.prototype,"amountMicros",null);
_.x([_.A("isCustomAmountSelected","customAmountInput"),_.e("design:type",Object),_.e("design:paramtypes",[])],WS.prototype,"customAmount",null);_.x([_.A("customAmount"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WS.prototype,"shouldShowValidationError",null);_.x([_.A("customAmount"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],WS.prototype,"isDonateButtonEnabled",null);
_.x([_.A("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.e("design:type",Object),_.e("design:paramtypes",[])],WS.prototype,"donateCommand",null);_.x([_.A("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.e("design:type",Object),_.e("design:paramtypes",[])],WS.prototype,"donateCommandWithConfirmation",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],WS.prototype,"largeDonationThreshold",null);
_.x([_.A("customAmount","donateCommand","amountMicros"),_.e("design:type",Object),_.e("design:paramtypes",[])],WS.prototype,"confirmLargeAmountCommand",null);_.x([_.A("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.e("design:type",Object),_.e("design:paramtypes",[])],WS.prototype,"donateButtonRenderer",null);_.x([_.H("shouldShowValidationError"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WS.prototype,"setInputError",null);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WS.prototype,"setInitialCheckboxValue",null);WS=_.x([_.d({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],WS);
_.T(WS,"ytd-donation-amount-picker-renderer",function(){if(USZ!==void 0)return USZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return USZ=y},{mode:1});var OV9;var gJg=function(){return _.v.apply(this,arguments)||this};
_.R(gJg,_.v);var cS=gJg;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],cS.prototype,"ytComponentBehavior",void 0);_.x([_.L({}),_.e("design:type",Object)],cS.prototype,"data",void 0);cS=_.x([_.d({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],cS);
_.T(cS,"ytd-donation-post-transaction-content",function(){if(OV9!==void 0)return OV9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return OV9=y},{mode:1});var RiD;var lXS=function(){return _.v.apply(this,arguments)||this};
_.R(lXS,_.v);lXS.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Zj=lXS;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.x([_.L({}),_.e("design:type",Object)],Zj.prototype,"data",void 0);Zj=_.x([_.d({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Zj);
_.T(Zj,"ytd-donation-post-transaction-renderer",function(){if(RiD!==void 0)return RiD;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return RiD=y},{mode:1});var EJ6;var Nk6;var IXg=function(){return _.v.apply(this,arguments)||this};
_.R(IXg,_.v);IXg.prototype.computeIsStreamingProvider=function(y){return!!y.isStreamingShelf};
IXg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var G3=IXg;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],G3.prototype,"data",void 0);_.x([_.L({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],G3.prototype,"isStreamingProvider",void 0);
G3=_.x([_.d({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],G3);
_.T(G3,"ytd-media-provider-renderer",function(){if(Nk6!==void 0)return Nk6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Nk6=y},{mode:1});var pfH;var PQS=function(){return _.v.apply(this,arguments)||this};
_.R(PQS,_.v);PQS.prototype.observeLightsourcePalette=function(){var y,W=(y=this.data)==null?void 0:y.vibrantsourceColorPaletteData;W&&_.nx(this.hostElement,W)};
var fT=PQS;fT.prototype.observeLightsourcePalette=fT.prototype.observeLightsourcePalette;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fT.prototype,"data",void 0);
_.x([_.H("data.vibrantsourceColorPaletteData"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fT.prototype,"observeLightsourcePalette",null);fT=_.x([_.d({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],fT);
_.T(fT,"ytd-streaming-pop-up-dialog",function(){if(pfH!==void 0)return pfH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return pfH=y},{mode:1});var oh=function(){return _.v.apply(this,arguments)||this};
_.R(oh,_.v);oh.prototype.onPopupOpened_=function(){var y;((y=this.data)==null?0:y.serviceEndpoint)&&_.U().resolve(_.i1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
oh.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
oh.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"}}}}};
var Dj=oh;Dj.prototype.onPopupOpened_=Dj.prototype.onPopupOpened_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dO),_.e("design:type",Object)],Dj.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Dj.prototype,"data",void 0);
_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dj.prototype,"onPopupOpened_",null);Dj=_.x([_.d({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Dj);
_.T(Dj,"ytd-brandconnect-popup-renderer",function(){if(EJ6!==void 0)return EJ6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return EJ6=y},{mode:1});var J$D;var VgH=function(){return _.v.apply(this,arguments)||this};
_.R(VgH,_.v);_.f=VgH.prototype;_.f.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){for(var y=0;y<this.getOptionRenderers().length;y++)this.notifyPath("data.options."+y+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+y+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.f.updateSubmitButton=function(y){this.set("data.submitButton.buttonRenderer.isDisabled",!y)};
_.f.computeAlt=function(y){return _.v$(y)};
_.f.onDismissTap=function(){_.GG(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.f.getOptionRenderers=function(y){return(y=y||this.data)&&y.options?y.options.reduce(function(W,c){c.checkboxSurveyOptionRenderer&&W.push(c.checkboxSurveyOptionRenderer);return W},[]):[]};
_.f.onOptionChange=function(y){var W=this,c=!1;if(y.detail.checked)for(var Z=this.getOptionRenderers().find(function(u){return u.value===y.detail.value}),G=this.getOptionRenderers(),D=0;D<G.length;D++){var Y=G[D];
this.notifyPath("data.options."+D+".checkboxSurveyOptionRenderer.checked");Y.checked&&((Z==null?0:Z.isExclusiveOption)?!Y.isExclusiveOption:Y.isExclusiveOption)?this.set("data.options."+D+".checkboxSurveyOptionRenderer.checked",!1):Y.checked&&(c=!0)}else c=this.getOptionRenderers().some(function(u,t){W.notifyPath("data.options."+t+".checkboxSurveyOptionRenderer.checked");return u.checked});
this.updateSubmitButton(c)};
_.f.onSubmitTap=function(){var y=this.getOptionRenderers().filter(function(D){return D.checked});
if(y.length!==0){var W=y.map(function(D){return D.responseEndpoint});
y=[];for(var c=1;c<W.length;c++){var Z=void 0,G=(Z=_.g(W[c],_.Na))==null?void 0:Z.feedbackToken;G&&y.push(G)}W=[W[0]];y.length&&W.push({extra_feedback_tokens:y});_.D2(this.hostElement,W);_.GG(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);y=this.data&&this.data.submitActions||[];if(_.O("kevlar_command_handler_migration_killswitch"))_.mq(this.hostElement,y,this.hostElement);else for(y=_.z(y),W=y.next();!W.done;W=y.next())this.ytComponentBehavior.resolveCommand(W.value)}};
var z3=VgH;z3.prototype.onOptionChange=z3.prototype.onOptionChange;z3.prototype.dataChanged=z3.prototype.dataChanged;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],z3.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],z3.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.x([_.C(fh3),_.e("design:type",Object)],z3.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],z3.prototype,"data",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],z3.prototype,"dataChanged",null);
_.x([_.B("ytd-checkbox-survey-option-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],z3.prototype,"onOptionChange",null);z3=_.x([_.d({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],z3);
_.T(z3,"ytd-checkbox-survey-renderer",function(){if(J$D!==void 0)return J$D;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return J$D=y},{mode:1});var CQH;var QFB;var A$H=function(){return _.v.apply(this,arguments)||this};
_.R(A$H,_.v);var Yh=A$H;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.x([_.C(G0d),_.e("design:type",Object)],Yh.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Yh.prototype,"data",void 0);Yh=_.x([_.d({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Yh);
_.T(Yh,"ytd-dismissal-reason-text-renderer",function(){if(QFB!==void 0)return QFB;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return QFB=y},{mode:1});var hiS;var BkB=function(){return _.v.apply(this,arguments)||this};
_.R(BkB,_.v);var mc=BkB;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mc.prototype,"ytRendererBehavior",void 0);_.x([_.C(G0d),_.e("design:type",Object)],mc.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mc.prototype,"data",void 0);mc=_.x([_.d({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],mc);
_.T(mc,"ytd-dismissal-reason-video-renderer",function(){if(hiS!==void 0)return hiS;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return hiS=y},{mode:1});var HV9=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(HV9,_.v);_.f=HV9.prototype;_.f.created=function(){this.selectedFeedbackTokens=new VA};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.f.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.f.onDismissalReasonSelected=function(y,W){_.Z2(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(W);this.hasReasonsSelected=!0};
_.f.onDismissalReasonDeselected=function(y,W){_.Z2(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(W);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.f.onCancelTap=function(){_.GG(this.hostElement,"yt-close-popup-action")};
_.f.onSubmitTap=function(){var y={feedback_tokens:Array.from(this.selectedFeedbackTokens.values())};_.D2(this.hostElement,[this.data.submitFeedbackEndpoint,y]);_.GG(this.hostElement,"yt-close-popup-action")};
var sy=HV9;sy.prototype.onDismissalReasonDeselected=sy.prototype.onDismissalReasonDeselected;sy.prototype.onDismissalReasonSelected=sy.prototype.onDismissalReasonSelected;sy.prototype.dataChanged=sy.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sy.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Boolean)],sy.prototype,"hasReasonsSelected",void 0);_.x([_.L(),_.e("design:type",VA)],sy.prototype,"selectedFeedbackTokens",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],sy.prototype,"darkerDarkTheme",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],sy.prototype,"dataChanged",null);
_.x([_.B("yt-dismissal-reason-selected"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,String]),_.e("design:returntype")],sy.prototype,"onDismissalReasonSelected",null);_.x([_.B("yt-dismissal-reason-deselected"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,String]),_.e("design:returntype")],sy.prototype,"onDismissalReasonDeselected",null);sy=_.x([_.d({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],sy);
_.T(sy,"ytd-dismissal-follow-up-renderer",function(){if(CQH!==void 0)return CQH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return CQH=y},{mode:1});var L39;var vJH=function(){return _.v.apply(this,arguments)||this};
_.R(vJH,_.v);_.f=vJH.prototype;_.f.onCheckedChange=function(){this.multiselect||_.Z2(this.hostElement,"yt-feedback-single-select-changed");_.p(this.hostElement).querySelector("#freeform").focus();_.Z2(this.hostElement,"yt-refit")};
_.f.showTextBox=function(y,W){return y&&W};
_.f.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))};
_.f.updateDataCheckedFromBinding=function(y){this.set("data.checked",y.detail.value)};
_.f.updateDataResultTextFromBinding=function(y){this.set("data.resultText",y.detail.value)};
var uh=vJH;uh.prototype.dataChanged=uh.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uh.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],uh.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],uh.prototype,"multiselect",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uh.prototype,"dataChanged",null);
uh=_.x([_.d({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],uh);
_.T(uh,"ytd-feedback-option-renderer",function(){if(L39!==void 0)return L39;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return L39=y},{mode:1});var dSQ;var SJ3=function(){return _.v.apply(this,arguments)||this};
_.R(SJ3,_.v);SJ3.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
SJ3.prototype.onSingleSelectCheckedChanged=function(y){y=_.hq(y);for(var W=0;W<this.data.options.length;W++)if(y.data!==_.g(this.data.options[W],yad)){var c="data.options."+W+".feedbackOptionRenderer.checked";this.notifyPath(c);this.set(c,!1)}};
var tV=SJ3;tV.prototype.onSingleSelectCheckedChanged=tV.prototype.onSingleSelectCheckedChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tV.prototype,"data",void 0);
_.x([_.B("yt-feedback-single-select-changed"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],tV.prototype,"onSingleSelectCheckedChanged",null);tV=_.x([_.d({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],tV);
_.T(tV,"ytd-feedback-question-renderer",function(){if(dSQ!==void 0)return dSQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dSQ=y},{mode:1});var TkB;var nT=function(){return _.v.apply(this,arguments)||this};
_.R(nT,_.v);nT.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
nT.prototype.getSelectedFeedbackResults=function(){for(var y={},W=0;W<this.data.questions.length;W++)for(var c=_.g(this.data.questions[W],jnS),Z=0;Z<c.options.length;Z++){var G=_.g(c.options[Z],yad);G&&G.checked&&(y[G.optionKey]=G.resultText)}return y};
nT.prototype.onKeyUp=function(){var y=this;_.vh(_.KX,function(){_.Z2(y.hostElement,"yt-refit")});
_.KX.start()};
nT.prototype.submitSurvey=function(){var y=this.getSelectedFeedbackResults();Object.keys(y).length>0&&_.D2(this.hostElement,[this.data.submitFeedbackEndpoint,{survey_results:y,is_feedback_token_unencrypted:!0}])};
var Xt=nT;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Xt.prototype,"data",void 0);Xt=_.x([_.d({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],Xt);
_.T(Xt,"ytd-feedback-survey-renderer",function(){if(TkB!==void 0)return TkB;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return TkB=y},{mode:1});var aXH;var xSD;var bh=function(){return _.v.apply(this,arguments)||this};
_.R(bh,_.v);bh.prototype.computeAlt=function(y){return _.v$(y)};
bh.prototype.submitResponse=function(){var y,W;(y=this.data)!=null&&y.feedbackToken&&((W=this.data)==null?void 0:W.nextStageIndex)!==void 0&&(_.fl(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.fl(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
bh.prototype.onClick=function(){this.submitResponse()};
var r4=bh;r4.prototype.onClick=r4.prototype.onClick;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],r4.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],r4.prototype,"vertical",void 0);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],r4.prototype,"onClick",null);
r4=_.x([_.d({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],r4);
_.T(r4,"ytd-single-select-answer-option-renderer",function(){if(xSD!==void 0)return xSD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return xSD=y},{mode:1});var iVQ;var Ft=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return y};
_.R(Ft,_.v);Ft.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Ft.prototype.dataChanged=function(){var y,W;this.vertical=((W=(y=this.data)==null?void 0:y.answerOrientation)!=null?W:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Ft.prototype.submitFeedback=function(y){var W;((W=this.data)==null?0:W.responseEndpoint)&&y&&_.D2(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[y]}])};
var Uy=Ft;Uy.prototype.dataChanged=Uy.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Uy.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],Uy.prototype,"eventForwardingBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Uy.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Uy.prototype,"vertical",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Uy.prototype,"darkerDarkTheme",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Uy.prototype,"dataChanged",null);Uy=_.x([_.d({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Uy);
_.T(Uy,"ytd-single-select-question-renderer",function(){if(iVQ!==void 0)return iVQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return iVQ=y},{mode:1});var Mg6=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return y};
_.R(Mg6,_.v);_.f=Mg6.prototype;_.f.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"}}}};
_.f.dataChanged=function(){this.jumpToStage(0)};
_.f.jumpToStage=function(y){var W,c;if((W=this.data)==null?0:(c=W.stages)==null?0:c[y])this.currentStage=this.data.stages[y],this.refitAfterRender()};
_.f.computeAlt=function(y){return _.v$(y)};
_.f.computeSimpleMessage=function(y){var W;return(W=_.g(y,ZeB))==null?void 0:W.messageText};
_.f.computeHideDismiss=function(y){var W;return(W=_.g(y,pb6))==null?void 0:W.hideParentDismissButton};
_.f.onDismissTap=function(){_.GG(this.hostElement,"yt-close-popup-action");_.g(this.currentStage,ZeB)||this.data.dismissalEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.f.refitAfterRender=function(){var y=this;_.Lv(this,function(){_.Z2(y.hostElement,"yt-refit")})};
var $h=Mg6;$h.prototype.dataChanged=$h.prototype.dataChanged;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],$h.prototype,"eventForwardingBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],$h.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(fh3),_.e("design:type",Object)],$h.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$h.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],$h.prototype,"currentStage",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$h.prototype,"dataChanged",null);$h=_.x([_.d({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],$h);
_.T($h,"ytd-multi-stage-survey-renderer",function(){if(aXH!==void 0)return aXH;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return aXH=y},{mode:1});var eiQ;var KT=function(){return _.v.apply(this,arguments)||this};
_.R(KT,_.v);KT.prototype.computeAlt=function(y){return _.v$(y)};
KT.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.U().resolve(_.i1).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.GG(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.qQd(!1)))};
KT.prototype.onTap=function(){this.vertical&&this.submitResponse()};
var Oy=KT;Oy.prototype.onTap=Oy.prototype.onTap;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],Oy.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Oy.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Oy.prototype,"vertical",void 0);
_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Oy.prototype,"onTap",null);Oy=_.x([_.d({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Oy);
_.T(Oy,"ytd-single-option-survey-option-renderer",function(){if(eiQ!==void 0)return eiQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return eiQ=y},{mode:1});var wfQ;var qJQ=function(){return _.v.apply(this,arguments)||this};
_.R(qJQ,_.v);_.f=qJQ.prototype;_.f.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){var y,W;this.vertical=(((y=this.data)==null?void 0:(W=y.surveyOrientation)==null?void 0:W.type)||"HORIZONTAL")==="VERTICAL"};
_.f.computeAlt=function(y){return _.v$(y)};
_.f.onDismissTap=function(){_.GG(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.U().resolve(_.i1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.qQd(!1))};
var g4=qJQ;g4.prototype.dataChanged=g4.prototype.dataChanged;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],g4.prototype,"eventForwardingBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(fh3),_.e("design:type",Object)],g4.prototype,"ytdHatsSurveyBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],g4.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],g4.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],g4.prototype,"vertical",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],g4.prototype,"dataChanged",null);g4=_.x([_.d({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],g4);
_.T(g4,"ytd-single-option-survey-renderer",function(){if(wfQ!==void 0)return wfQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return wfQ=y},{mode:1});var kcZ;var Rh=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(Rh,_.v);Rh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Rh.prototype.onDismissTap=function(){_.GG(this.hostElement,"yt-close-popup-action")};
Rh.prototype.onNavigate=function(){_.GG(this.hostElement,"yt-close-popup-action")};
var lh=Rh;lh.prototype.onNavigate=lh.prototype.onNavigate;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],lh.prototype,"ytEventForwardingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],lh.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],lh.prototype,"darkerDarkTheme",void 0);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lh.prototype,"onNavigate",null);lh=_.x([_.d({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],lh);
_.T(lh,"ytd-survey-follow-up-renderer",function(){if(kcZ!==void 0)return kcZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kcZ=y},{mode:1});var jmZ;var yw6;var WU3;var cw3=function(){var y=_.v.apply(this,arguments)||this;y.polymer2="Element"in Polymer;return y};
_.R(cw3,_.v);_.f=cw3.prototype;_.f.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.f.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.f.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.f.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("minutes-changed",this.minutes))};
_.f.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("seconds-changed",this.seconds))};
_.f.updateMinutesFromBinding=function(y){this.minutes=y.detail.value};
_.f.updateSecondsFromBinding=function(y){this.seconds=y.detail.value};
var Ey=cw3;Ey.prototype.secondsChangedForBinding=Ey.prototype.secondsChangedForBinding;Ey.prototype.minutesChangedForBinding=Ey.prototype.minutesChangedForBinding;Ey.prototype.secondsChanged=Ey.prototype.secondsChanged;_.x([_.L(),_.e("design:type",String)],Ey.prototype,"minutes",void 0);_.x([_.L(),_.e("design:type",String)],Ey.prototype,"seconds",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Ey.prototype,"polymer2",void 0);
_.x([_.jj("#seconds"),_.e("design:type",Object)],Ey.prototype,"secondsEl",void 0);_.x([_.H("seconds"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ey.prototype,"secondsChanged",null);_.x([_.H("minutes"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ey.prototype,"minutesChangedForBinding",null);
_.x([_.H("seconds"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ey.prototype,"secondsChangedForBinding",null);Ey=_.x([_.n6({is:"yt-timestamp-input",disableElementRegistration:!0})],Ey);
_.T(Ey,"yt-timestamp-input",function(){if(WU3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;yw6===void 0&&(yw6=document.createElement("template"));var Z=yw6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);WU3=y}y=WU3;return y},{mode:2});var ZmZ=function(){return _.v.apply(this,arguments)||this};
_.R(ZmZ,_.v);_.f=ZmZ.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17951_scroller.dialogElement=this.hostElement.parentNode};
_.f.dataChanged=function(){var y=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Lx().getPlayerPromise().then(function(W){W=W.getCurrentTime();y.minutes=Math.floor(W/60).toString();y.seconds=(Math.floor(W)%60).toString()})};
_.f.onTapSubmit=function(y){y.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(y={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(y.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(y.minutes=this.minutes,y.seconds=this.seconds),_.U().resolve(_.i1).resolveCommand(this.serviceEndpoint,{form:Object.assign({},y,{element:this.hostElement})}))};
_.f.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.f.onYtServiceRequestCompleted=function(y,W){W=W.actions;if(Array.isArray(W))for(var c=0,Z=W.length;c<Z;c++)_.g(W[c],_.bX)&&(y.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(W[c]))};
_.f.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.f.toggleSubmitButton=function(y){this.set("submitButton.isDisabled",!y)};
_.f.handleInput=function(){var y=this.issueType,W=this.affiliation,c=this.minutes,Z=this.seconds;c=!this.showTimestamp||!!c&&!!Z;this.toggleSubmitButton(!!this.descriptionText&&!!y&&!!W&&c)};
_.f.computeServiceEndpoint=function(y){return this.get("submitButton.buttonRenderer.serviceEndpoint",y)};
_.f.computeSubmitButton=function(y){(y=this.get("submitButton.buttonRenderer",y))&&(y=Object.assign({},y,{serviceEndpoint:void 0}));return y};
_.f.computeShowTimestamp=function(y){return!!y};
_.f.onValueChangedForIssueType=function(y){this.issueType=y.detail.value};
_.f.onValueChangedForAffiliation=function(y){this.affiliation=y.detail.value};
_.f.updateDescriptionTextFromBinding=function(y){this.descriptionText=y.detail.value};
_.f.updateFullNameTextFromBinding=function(y){this.fullNameText=y.detail.value};
_.f.updateMinutesFromBinding=function(y){this.minutes=y.detail.value};
_.f.updateSecondsFromBinding=function(y){this.seconds=y.detail.value};
var NU=ZmZ;NU.prototype.handleInput=NU.prototype.handleInput;NU.prototype.onYtServiceRequestError=NU.prototype.onYtServiceRequestError;NU.prototype.onYtServiceRequestCompleted=NU.prototype.onYtServiceRequestCompleted;NU.prototype.onYtServiceRequestSent=NU.prototype.onYtServiceRequestSent;NU.prototype.dataChanged=NU.prototype.dataChanged;_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],NU.prototype,"ytOpenPopupBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.x([_.jj("#scroller"),_.e("design:type",Object)],NU.prototype,"JSC$17951_scroller",void 0);_.x([_.jj("#description"),_.e("design:type",HTMLInputElement)],NU.prototype,"description",void 0);_.x([_.jj("#full-name"),_.e("design:type",Object)],NU.prototype,"fullName",void 0);_.x([_.L(),_.e("design:type",Object)],NU.prototype,"data",void 0);
_.x([_.L({computed:"computeShowTimestamp(data.timestampLabel)"}),_.e("design:type",Boolean)],NU.prototype,"showTimestamp",void 0);_.x([_.L({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.e("design:type",Object)],NU.prototype,"serviceEndpoint",void 0);_.x([_.L({computed:"computeSubmitButton(data)"}),_.e("design:type",Object)],NU.prototype,"submitButton",void 0);_.x([_.L(),_.e("design:type",String)],NU.prototype,"descriptionText",void 0);
_.x([_.L(),_.e("design:type",Number)],NU.prototype,"issueType",void 0);_.x([_.L(),_.e("design:type",Number)],NU.prototype,"affiliation",void 0);_.x([_.L(),_.e("design:type",String)],NU.prototype,"fullNameText",void 0);_.x([_.L(),_.e("design:type",String)],NU.prototype,"minutes",void 0);_.x([_.L(),_.e("design:type",String)],NU.prototype,"seconds",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],NU.prototype,"dataChanged",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],NU.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],NU.prototype,"onYtServiceRequestCompleted",null);
_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],NU.prototype,"onYtServiceRequestError",null);_.x([_.H("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],NU.prototype,"handleInput",null);NU=_.x([_.d({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],NU);
_.T(NU,"ytd-legal-report-details-form-renderer",function(){if(jmZ!==void 0)return jmZ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return jmZ=y},{mode:1});var GT6;var Ih=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return y};
_.R(Ih,_.v);Ih.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Ih.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var y=this.formRenderer.getForm();y&&this.data.submitEndpoint&&(_.U().resolve(_.i1).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},y,{element:this.hostElement})}),_.GG(this.hostElement,"yt-close-popup-action"))}};
Ih.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.GG(this.hostElement,"yt-close-popup-action"))};
Ih.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
var pT=Ih;pT.prototype.onPopupClosed=pT.prototype.onPopupClosed;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],pT.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],pT.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.x([_.jj("yt-form-renderer"),_.e("design:type",Object)],pT.prototype,"formRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],pT.prototype,"data",void 0);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],pT.prototype,"onPopupClosed",null);pT=_.x([_.d({is:"ytd-form-popup-content",disableElementRegistration:!0})],pT);
_.T(pT,"ytd-form-popup-content",function(){if(GT6!==void 0)return GT6;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return GT6=y},{mode:1});var fBD;var PS=function(){return _.v.apply(this,arguments)||this};
_.R(PS,_.v);PS.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
PS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
PS.prototype.onPopupOpened=function(){_.Z2(this.hostElement,"yt-invalidate-popup-tabbables")};
PS.prototype.onYtServiceRequestCompleted=function(y,W){W.data&&W.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Z2(this.hostElement,"yt-invalidate-popup-tabbables"))};
var JV=PS;JV.prototype.onYtServiceRequestCompleted=JV.prototype.onYtServiceRequestCompleted;JV.prototype.onPopupOpened=JV.prototype.onPopupOpened;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],JV.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],JV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],JV.prototype,"data",void 0);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],JV.prototype,"onPopupOpened",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],JV.prototype,"onYtServiceRequestCompleted",null);JV=_.x([_.d({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],JV);
_.T(JV,"ytd-form-popup-renderer",function(){if(fBD!==void 0)return fBD;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return fBD=y},{mode:1});var ouQ;var DNg=function(){var y=_.v.apply(this,arguments)||this;y.isLoading=!1;return y};
_.R(DNg,_.v);_.f=DNg.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");qHg(this.hostElement)};
_.f.onYtServiceRequestSent=function(){this.isLoading=!0};
_.f.onYtServiceRequestCompleted=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.f.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.mq(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.f.closePopupHandler=function(){this.fireOnCloseActions()};
_.f.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var y=this.get("data.headerImage.thumbnails");y&&(y=_.h3(y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+y+")")}};
_.f.onYtNavigate=function(y){(y=_.hq(y))&&y.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
var VH=DNg;VH.prototype.onYtNavigate=VH.prototype.onYtNavigate;VH.prototype.onHeaderImageChanged=VH.prototype.onHeaderImageChanged;VH.prototype.closePopupHandler=VH.prototype.closePopupHandler;VH.prototype.onYtServiceRequestCompleted=VH.prototype.onYtServiceRequestCompleted;VH.prototype.onYtServiceRequestSent=VH.prototype.onYtServiceRequestSent;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],VH.prototype,"ytEventForwardingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],VH.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],VH.prototype,"isLoading",void 0);_.x([_.jj("#header"),_.e("design:type",HTMLDivElement)],VH.prototype,"header",void 0);_.x([_.jj("#confirm-button"),_.e("design:type",_.c8)],VH.prototype,"confirmButton",void 0);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],VH.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],VH.prototype,"onYtServiceRequestCompleted",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],VH.prototype,"closePopupHandler",null);_.x([_.H("data.headerImage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],VH.prototype,"onHeaderImageChanged",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],VH.prototype,"onYtNavigate",null);
VH=_.x([_.d({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],VH);
_.T(VH,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(ouQ!==void 0)return ouQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ouQ=y},{mode:1});var zjg;var Y53=function(){var y=_.v.apply(this,arguments)||this;y.isLoading=!1;return y};
_.R(Y53,_.v);_.f=Y53.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);qHg(this.hostElement)};
_.f.onYtServiceRequestCompleted=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.f.onYtServiceRequestError=function(y){_.bY(this.hostElement,y.detail.error.message)};
_.f.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.f.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.GG(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.f.onDataChanged=function(){this.isLoading=!1;var y=this.get("data.headerImage.thumbnails");y&&(y=_.h3(y,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+y+")");y=_.NR();var W=_.EL(),c=this.get("data.trackingParams");c&&W&&y&&_.HA(y,W,_.Dz(c))};
_.dJ.Object.defineProperties(Y53.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
var CT=Y53;CT.prototype.onDataChanged=CT.prototype.onDataChanged;CT.prototype.onDomChange=CT.prototype.onDomChange;CT.prototype.onYtServiceRequestError=CT.prototype.onYtServiceRequestError;CT.prototype.onYtServiceRequestCompleted=CT.prototype.onYtServiceRequestCompleted;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],CT.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],CT.prototype,"isLoading",void 0);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],CT.prototype,"hasDescription",null);_.x([_.jj("tp-yt-paper-dialog-scrollable"),_.e("design:type",Object)],CT.prototype,"scrollable",void 0);_.x([_.jj("#header"),_.e("design:type",HTMLElement)],CT.prototype,"header",void 0);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],CT.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],CT.prototype,"onYtServiceRequestError",null);
_.x([_.B("dom-change"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],CT.prototype,"onDomChange",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],CT.prototype,"onDataChanged",null);CT=_.x([_.d({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],CT);
_.T(CT,"ytd-gaming-account-link-setting-renderer",function(){if(zjg!==void 0)return zjg;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return zjg=y},{mode:1});var mNS;var sm9;var u9D=function(){var y=_.v.apply(this,arguments)||this;y.isHeader=!1;y.getEndpointForm=aqQ;return y};
_.R(u9D,_.v);_.f=u9D.prototype;_.f.triggerHintActions=function(){var y=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var W=_.fl(y.hostElement,"yt-get-opened-popups-action");!(W&&W.length===1?W[0]:[]).some(function(c){c=c.openPopupAction.popupType;return c==="SURVEY"||c==="MEALBAR"||c==="HINT"})&&y.data.hintActions&&y.guideOpened&&(_.mq(y.hostElement,y.data.hintActions,y.hostElement),y.data.hintActions=void 0)})};
_.f.getBadgeIconType=function(y){return y&&y.liveBroadcasting?"live":null};
_.f.onDown=function(){this.interaction.triggerDown()};
_.f.onUp=function(){this.interaction.triggerUp()};
_.f.onTap=function(y){if(this.data.serviceEndpoint){var W;_.O("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.g(this.data.serviceEndpoint,_.mv))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):T5d(this.data.serviceEndpoint,this);y.preventDefault()}else this.data.navigationEndpoint&&!_.Cx(_.Aq(y),this.hostElement,["A".toString()])&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.f.computeActive=function(y,W){if(!y)return!1;var c=y.navigationEndpoint;y=y.serviceEndpoint;if(!c&&!y||!W)return!1;if(c){y=(y=w0(W))&&["subscriptions","filteredsubscriptions"].includes(y);if(_.g(c,_.oW)&&_.g(W,_.oW)&&!y){var Z=_.g(c,_.oW).browseId;W=_.g(W,_.oW).browseId;return Z!==void 0&&W!==void 0&&(Z===W||Z==="VLWL"&&W==="FEwatch_later"||Z==="FEwatch_later"&&W==="VLWL")}var G;c=(G=_.g(c.commandMetadata,_.kT))==null?void 0:G.url;W=(Z=_.g(W.commandMetadata,_.kT))==null?void 0:Z.url;return!(!c||
!W||c!==W&&c!==_.c7(W))}return this.isActiveShortsTab(y,W)};
_.f.isActiveShortsTab=function(y,W){W=!!_.g(W,_.mv)||!!_.g(W,_.Ox);return(!!_.g(y,_.mv)||!!_.g(y,_.Ox))&&W};
_.f.computeIsPrimary=function(y){return!!y};
_.dJ.Object.defineProperties(u9D.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 y=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&y)return y}}});
var QH=u9D;QH.prototype.onTap=QH.prototype.onTap;QH.prototype.onUp=QH.prototype.onUp;QH.prototype.onDown=QH.prototype.onDown;QH.prototype.triggerHintActions=QH.prototype.triggerHintActions;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],QH.prototype,"componentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],QH.prototype,"rendererBehavior",void 0);_.x([_.C(_.CA.YtTaskEmitterBehavior),_.e("design:type",Object)],QH.prototype,"taskEmitterBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],QH.prototype,"activeEndpoint",void 0);_.x([_.L(),_.e("design:type",Object)],QH.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],QH.prototype,"guideOpened",void 0);_.x([_.L(),_.e("design:type",String)],QH.prototype,"type",void 0);_.x([_.jj("yt-interaction"),_.e("design:type",Object)],QH.prototype,"interaction",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],QH.prototype,"isHeader",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data","activeEndpoint"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],QH.prototype,"active",null);_.x([_.L({reflectToAttribute:!0}),_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],QH.prototype,"isPrimary",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.count","data.presentationStyle","data.badges.*"),_.e("design:type",String),_.e("design:paramtypes",[])],QH.prototype,"lineEndStyle",null);
_.x([_.A("lineEndStyle"),_.e("design:type",Object),_.e("design:paramtypes",[])],QH.prototype,"ariaLabel",null);_.x([_.H("data.hintActions","guideOpened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QH.prototype,"triggerHintActions",null);_.x([_.B("down"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QH.prototype,"onDown",null);
_.x([_.B("up"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QH.prototype,"onUp",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],QH.prototype,"onTap",null);QH=_.x([_.d({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],QH);
_.T(QH,"ytd-guide-entry-renderer",function(){if(sm9!==void 0)return sm9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return sm9=y},{mode:1});var tRf=function(){var y=_.v.apply(this,arguments)||this;y.userToggled=!1;return y};
_.R(tRf,_.v);_.f=tRf.prototype;_.f.getItemsPath=function(){return"data.expandableItems"};
_.f.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.f.onExpanderItemTapped=function(y){var W=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.O("kevlar_guide_expandable_items_killswitch")&&_.Lv(this,function(){_.Bn(W.expandableItems)});
y.preventDefault()};
_.f.onCollapserItemTapped=function(y){var W=this;this._setExpanded(!1);this.userToggled=!0;y.preventDefault();this.expandableItems&&!_.O("kevlar_guide_collapsible_items_killswitch")&&_.Lv(this,function(){_.hv(W.hostElement)})};
_.f.observeActiveEndpoint=function(){for(var y=this.activeEndpoint,W=this.data,c=this.expandableItems.children,Z=0,G=c.length;Z<G;Z++)c[Z].activeEndpoint=y;W&&W.autoExpandCommand&&y&&!this.userToggled&&(c=this.data.autoExpandCommand,W=!(!_.g(c,_.oW)||!_.g(y,_.oW)||_.g(c,_.oW).browseId!==_.g(y,_.oW).browseId),y=this.get("commandMetadata.webCommandMetadata.url",y),c=this.get("commandMetadata.webCommandMetadata.url",c),W=W||!!(y&&c&&y.includes(c)),this._setExpanded(W),W&&this.ytLazyListBehavior.fillRemainingListItems())};
var AV=tRf;AV.prototype.observeActiveEndpoint=AV.prototype.observeActiveEndpoint;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],AV.prototype,"ytLazyListBehavior",void 0);_.x([_.jj("#expandable-items"),_.e("design:type",HTMLElement)],AV.prototype,"expandableItems",void 0);
_.x([_.L(),_.e("design:type",Object)],AV.prototype,"data",void 0);_.x([_.L({readOnly:!0,reflectToAttribute:!0}),_.e("design:type",Boolean)],AV.prototype,"expanded",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],AV.prototype,"initialCount",void 0);_.x([_.L(),_.e("design:type",Object)],AV.prototype,"activeEndpoint",void 0);_.x([_.H("data","activeEndpoint","canShowMore"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],AV.prototype,"observeActiveEndpoint",null);
AV=_.x([_.d({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],AV);
_.T(AV,"ytd-guide-collapsible-entry-renderer",function(){if(mNS!==void 0)return mNS;var y=document.createElement("template");_.E(y,'\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" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" 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" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mNS=y},{mode:_.xm("kevlar_poly_si_batch_j079")?1:2});var nug;var XwD;var bmZ=function(){var y=_.v.apply(this,arguments)||this;y.allVideosCount=0;y.renderGuideEntry=!1;return y};
_.R(bmZ,_.v);bmZ.prototype.observeRenderEntry=function(){var y;this.renderGuideEntry=!((y=this.data)==null||!y.alwaysShow)||!!this.allVideosCount};
var hV=bmZ;hV.prototype.observeRenderEntry=hV.prototype.observeRenderEntry;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],hV.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hV.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],hV.prototype,"activeEndpoint",void 0);_.x([_.L({selector:_.hDH}),_.e("design:type",Object)],hV.prototype,"allVideosCount",void 0);
_.x([_.L(),_.e("design:type",Object)],hV.prototype,"renderGuideEntry",void 0);_.x([_.Gs("allVideosCount","data.alwaysShow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],hV.prototype,"observeRenderEntry",null);hV=_.x([_.d({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],hV);
_.T(hV,"ytd-guide-downloads-entry-renderer",function(){if(XwD===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);XwD=y}y=XwD;return y},{mode:1});var rwH=function(){var y=_.v.apply(this,arguments)||this;y.youtab=_.O("web_enable_youtab");y.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return y};
_.R(rwH,_.v);_.f=rwH.prototype;_.f.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]]"}}}}}};
_.f.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var y=this.sectionItems.children,W=0,c=y.length;W<c;W++)y[W].activeEndpoint=this.activeEndpoint}};
_.f.handleAddToGuideSectionAction=function(y){var W=_.g(y,bnQ);if(W&&this.data&&(y=W.items,W=W.handlerData,y&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1)){W=0;for(var c=y.length;W<c;W++)y[W].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,y[W])}};
_.f.handleRemoveFromGuideSectionAction=function(y){var W=_.g(y,rLB);W&&this.data&&(y=W.guideEntryId,W=W.handlerData,y&&W&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(W)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(y,this.data.sectionItems),this.removeFromCollapsedSection(y,this.data.sectionItems)))};
_.f.removeFromExpandedSection=function(y,W){y=this.getEntryIndexMatchingId(y,W);y!==-1&&this.splice("data.sectionItems",y,1)};
_.f.removeFromCollapsedSection=function(y,W){var c=W.findIndex(function(Z){return!!_.g(Z,hp6)});
c&&c!==-1&&W[c]&&_.g(W[c],hp6)&&(W=_.g(W[c],hp6).expandableItems)&&(y=this.getEntryIndexMatchingId(y,W),y!==-1&&this.splice("data.sectionItems."+c+".guideCollapsibleEntryRenderer.expandableItems",y,1))};
_.f.getEntryIndexMatchingId=function(y,W){var c=this;return W.findIndex(function(Z){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===y})};
var BS=rwH;BS.prototype.activeEndpointChanged=BS.prototype.activeEndpointChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],BS.prototype,"actionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.jj("#section-items"),_.e("design:type",HTMLDivElement)],BS.prototype,"sectionItems",void 0);_.x([_.jj("#header-entry"),_.e("design:type",Object)],BS.prototype,"headerEntry",void 0);_.x([_.L(),_.e("design:type",Object)],BS.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],BS.prototype,"activeEndpoint",void 0);_.x([_.L(),_.e("design:type",Object)],BS.prototype,"youtab",void 0);
_.x([_.H("activeEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],BS.prototype,"activeEndpointChanged",null);BS=_.x([_.d({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],BS);
_.T(BS,"ytd-guide-collapsible-section-entry-renderer",function(){if(nug===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);nug=y}y=nug;return y},{mode:1});var FUd;var UNZ;var $Nd=function(){var y=_.v.apply(this,arguments)||this;y.modernTypography=_.O("web_modern_typography");y.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 y};
_.R($Nd,_.v);_.f=$Nd.prototype;
_.f.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}}}}};
_.f.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var y=_.fl(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);y&&y.length===1&&y[0]&&_.fl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.f.handleResetChannelUnreadCountCommand=function(y){var W;(y=(W=_.g(y,$ld))==null?void 0:W.channelId)&&this.data&&this.data.items&&(W=this.getPathToEntryMatchingId(y))&&(this.set(W+".guideEntryRenderer.count",0),this.set(W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.f.handleResetSubscriptionsUnreadDotCommand=function(y){var W,c=(W=_.g(y,Kg9))==null?void 0:W.targetId,Z;c&&(Z=this.data)!=null&&Z.items&&(y=this.data.items.findIndex(function(G){var D;return((D=G.guideEntryRenderer)==null?void 0:D.targetId)===c}),y<0||this.set("data.items."+y+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.f.getPathToEntryMatchingId=function(y){if(this.data&&this.data.items){var W=this.getEntryIndexMatchingId(y,this.data.items);if(W>-1)return"data.items."+W;for(var c=0;c<this.data.items.length;c++)if(W=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[c]))if(W=this.getEntryIndexMatchingId(y,W),W>-1)return"data.items."+c+".guideCollapsibleEntryRenderer.expandableItems."+W}};
_.f.handleAddToGuideSectionAction=function(y){var W=this;if(_.g(y,bnQ)){var c=_.g(y,bnQ).items;y=_.g(y,bnQ).handlerData;var Z,G;c&&y&&((Z=this.data)==null?void 0:(G=Z.handlerDatas)==null?void 0:G.indexOf(y))>-1&&(c=c.filter(function(D){return(D=W.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",D))&&!W.isGuideItemPresent(D)}),this.unshift.apply(this,["data.items"].concat(_.No(c))))}};
_.f.isGuideItemPresent=function(y){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(y,this.data.items)!==-1)return!0;var W=this.data.items.find(function(c){return!!c.guideCollapsibleEntryRenderer});
if((W==null?0:W.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(y,W.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.f.getEntryIndexMatchingId=function(y,W){var c=this;return W.findIndex(function(Z){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===y})};
_.f.handleRemoveFromGuideSectionAction=function(y){if(_.g(y,rLB)){var W=_.g(y,rLB).guideEntryId;y=_.g(y,rLB).handlerData;var c,Z;W&&y&&((c=this.data)==null?void 0:(Z=c.handlerDatas)==null?void 0:Z.indexOf(y))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(W,this.data.items),this.removeFromCollapsedSection(W,this.data.items))}};
_.f.removeFromExpandedSection=function(y,W){y=this.getEntryIndexMatchingId(y,W);y!==-1&&this.splice("data.items",y,1)};
_.f.removeFromCollapsedSection=function(y,W){var c=W.findIndex(function(Z){return!!Z.guideCollapsibleEntryRenderer});
c!==-1&&(W=W[c].guideCollapsibleEntryRenderer.expandableItems)&&(y=this.getEntryIndexMatchingId(y,W),y!==-1&&this.splice("data.items."+c+".guideCollapsibleEntryRenderer.expandableItems",y,1))};
_.f.activeEndpointChanged=function(){for(var y=_.p(this.hostElement).querySelector("#items").children,W=0,c=y.length;W<c;W++)y[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.f.guideOpenedChanged=function(){for(var y=_.p(this.hostElement).querySelector("#items").children,W=0,c=y.length;W<c;W++)y[W].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
var HS=$Nd;HS.prototype.guideOpenedChanged=HS.prototype.guideOpenedChanged;HS.prototype.activeEndpointChanged=HS.prototype.activeEndpointChanged;HS.prototype.persistentGuideChanged=HS.prototype.persistentGuideChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],HS.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],HS.prototype,"ytLazyListBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],HS.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],HS.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],HS.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],HS.prototype,"modernTypography",void 0);_.x([_.L(),_.e("design:type",String)],HS.prototype,"type",void 0);_.x([_.L({value:20}),_.e("design:type",Number)],HS.prototype,"initialCount",void 0);_.x([_.L({value:10}),_.e("design:type",Number)],HS.prototype,"targetFramerate",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],HS.prototype,"autoFill",void 0);_.x([_.L({value:50}),_.e("design:type",Number)],HS.prototype,"renderDelay",void 0);
_.x([_.H("guidePersistentAndVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],HS.prototype,"persistentGuideChanged",null);_.x([_.Gs("activeEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],HS.prototype,"activeEndpointChanged",null);_.x([_.Gs("guideOpened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],HS.prototype,"guideOpenedChanged",null);
HS=_.x([_.d({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],HS);
_.T(HS,"ytd-guide-section-renderer",function(){if(UNZ!==void 0)return UNZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return UNZ=y},{mode:_.xm("kevlar_poly_si_batch_j073")?1:2});var KUH;var OmQ=function(){return _.v.apply(this,arguments)||this};
_.R(OmQ,_.v);_.dJ.Object.defineProperties(OmQ.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
var LT=OmQ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],LT.prototype,"rendererBehaviors",void 0);_.x([_.L(),_.e("design:type",Object)],LT.prototype,"data",void 0);_.x([_.L(),_.A("data.signInButton.buttonRenderer.style"),_.e("design:type",Object),_.e("design:paramtypes",[])],LT.prototype,"alignByText",null);LT=_.x([_.d({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],LT);
_.T(LT,"ytd-guide-signin-promo-renderer",function(){if(KUH===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);KUH=y}y=KUH;return y},{mode:1});var vS=function(){var y=_.v.apply(this,arguments)||this;y.showFooter=!1;return y};
_.R(vS,_.v);vS.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}}}}};
vS.prototype.attached=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1){W=_.U().resolve(_.xN(_.EO));if(!W)return c.jumpTo(0);W.setGuideData(y.hostElement);return _.n(c,0,3)}y.ytLazyListBehavior.initialCount=2;return c.return()})};
vS.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
var d4=vS;d4.prototype.dataChanged=d4.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],d4.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.dY.YtLazyListBehavior),_.e("design:type",Object)],d4.prototype,"ytLazyListBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],d4.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],d4.prototype,"showFooter",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],d4.prototype,"autoFill",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],d4.prototype,"dataChanged",null);d4=_.x([_.d({is:"ytd-guide-renderer",disableElementRegistration:!0})],d4);
_.T(d4,"ytd-guide-renderer",function(){if(FUd!==void 0)return FUd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return FUd=y},{mode:_.xm("kevlar_poly_si_batch_j073")?1:2});var guH;var RjD=function(){var y=_.v.apply(this,arguments)||this;y.systemIcons=_.O("kevlar_system_icons");y.frostedGlass=_.O("web_frosted_glass");y.getEndpointForm=aqQ;return y};
_.R(RjD,_.v);_.f=RjD.prototype;_.f.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.f.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.v$(this.data.formattedTitle))};
_.f.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.f.onDown=function(){this.interaction.triggerDown()};
_.f.onUp=function(){this.interaction.triggerUp()};
_.f.onTap=function(y){if(this.data.serviceEndpoint){var W;_.O("shorts_controller_retrieve_seedless_sequence_v2")&&((W=_.g(this.data.serviceEndpoint,_.mv))==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):T5d(this.data.serviceEndpoint,this);y.preventDefault()}else{var c;((c=this.data)==null?0:c.navigationEndpoint)&&!_.Cx(_.Aq(y),this.hostElement,["A".toString()])&&_.Z2(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.f.computeActive=function(y,W){if(!y)return!1;var c=y.navigationEndpoint;y=y.serviceEndpoint;if(!c&&!y||!W)return!1;if(c){y=_.g(c,_.oW);var Z=_.g(W,_.oW);if(y&&Z)return y.browseId===Z.browseId&&y.params===Z.params;var G;c=(G=_.g(c.commandMetadata,_.kT))==null?void 0:G.url;var D;W=(D=_.g(W.commandMetadata,_.kT))==null?void 0:D.url;return!(!c||!W||c!==W&&c!==_.c7(W))}return this.isActiveShortsTab(y,W)};
_.f.isActiveShortsTab=function(y,W){W=!!_.g(W,_.mv)||!!_.g(W,_.Ox);return(!!_.g(y,_.mv)||!!_.g(y,_.Ox))&&W};
_.f.computeTitle=function(y,W){return W?"":_.v$(y)};
_.dJ.Object.defineProperties(RjD.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
var SB=RjD;SB.prototype.onTap=SB.prototype.onTap;SB.prototype.onUp=SB.prototype.onUp;SB.prototype.onDown=SB.prototype.onDown;SB.prototype.onActiveStateChange=SB.prototype.onActiveStateChange;SB.prototype.dataChanged=SB.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],SB.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.gt),_.e("design:type",Object)],SB.prototype,"ironButtonState",void 0);_.x([_.L(),_.e("design:type",Object)],SB.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],SB.prototype,"activeEndpoint",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],SB.prototype,"noLabels",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.e("design:type",Boolean)],SB.prototype,"isActive",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],SB.prototype,"systemIcons",void 0);_.x([_.jj("yt-interaction"),_.e("design:type",Object)],SB.prototype,"interaction",void 0);_.x([_.A("isActive"),_.e("design:type",Object),_.e("design:paramtypes",[])],SB.prototype,"ariaSelected",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],SB.prototype,"frostedGlass",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SB.prototype,"dataChanged",null);_.x([_.H("isActive"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SB.prototype,"onActiveStateChange",null);_.x([_.B("down"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SB.prototype,"onDown",null);
_.x([_.B("up"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],SB.prototype,"onUp",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],SB.prototype,"onTap",null);SB=_.x([_.d({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],SB);
_.T(SB,"ytd-mini-guide-entry-renderer",function(){if(guH!==void 0)return guH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return guH=y},{mode:_.xm("kevlar_poly_si_batch_j063")?1:2});var lBS;var EuQ=function(){var y=_.v.apply(this,arguments)||this;y.allVideosCount=0;y.noLabels=_.O("kevlar_mini_guide_no_labels");y.frostedGlass=_.O("web_frosted_glass");return y};
_.R(EuQ,_.v);_.f=EuQ.prototype;_.f.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.f.visibleChanged=function(){if(this.visible&&!this.data){var y=_.U().resolve(_.xN(_.EO));y&&y.setGuideData(this.hostElement)}};
_.f.dataChanged=function(){var y=[],W;if((W=this.data)!=null&&W.items){W=_.z(this.data.items);for(var c=W.next();!c.done;c=W.next()){c=c.value;var Z=void 0;if((Z=c.guideSectionRenderer)==null?0:Z.items)for(Z=void 0,c=_.z((Z=c.guideSectionRenderer)==null?void 0:Z.items),Z=c.next();!Z.done;Z=c.next())if(Z=Z.value,Z.guideEntryRenderer)Z=Z.guideEntryRenderer,Z.isPrimary&&y.push({guideEntryRenderer:Z});else if(Z.guideCollapsibleSectionEntryRenderer){var G=void 0;((G=_.g(Z.guideCollapsibleSectionEntryRenderer.headerEntry,
QA))==null?0:G.isPrimary)&&y.push({guideEntryRenderer:_.g(Z.guideCollapsibleSectionEntryRenderer.headerEntry,QA)});if(Z=Z.guideCollapsibleSectionEntryRenderer.sectionItems)for(Z=_.z(Z),G=Z.next();!G.done;G=Z.next()){var D=G.value;G=_.g(D,BNf);var Y=void 0;((Y=_.g(D,QA))==null?0:Y.isPrimary)?y.push({guideEntryRenderer:_.g(D,QA)}):G&&(D=void 0,_.g((D=G)==null?void 0:D.entryRenderer,QA)&&(G.alwaysShow||this.allVideosCount)&&y.push({guideEntryRenderer:_.g(G.entryRenderer,QA)}))}}}}this.miniGuideItems=
y};
_.f.activeEndpointChanged=function(){for(var y=this.items.children,W=0;W<y.length;W++)y[W].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
var T3=EuQ;T3.prototype.activeEndpointChanged=T3.prototype.activeEndpointChanged;T3.prototype.dataChanged=T3.prototype.dataChanged;T3.prototype.visibleChanged=T3.prototype.visibleChanged;_.x([_.C(_.$s),_.e("design:type",Object)],T3.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],T3.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],T3.prototype,"ytComponentBehavior",void 0);_.x([_.jj("#items"),_.e("design:type",Object)],T3.prototype,"items",void 0);_.x([_.L(),_.e("design:type",Object)],T3.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],T3.prototype,"visible",void 0);
_.x([_.L(),_.e("design:type",Object)],T3.prototype,"miniGuideItems",void 0);_.x([_.L({selector:_.hDH}),_.e("design:type",Object)],T3.prototype,"allVideosCount",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],T3.prototype,"noLabels",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],T3.prototype,"frostedGlass",void 0);_.x([_.Gs("visible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T3.prototype,"visibleChanged",null);
_.x([_.Gs("data","allVideosCount"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T3.prototype,"dataChanged",null);_.x([_.Gs("activeEndpoint"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],T3.prototype,"activeEndpointChanged",null);T3=_.x([_.d({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],T3);
_.T(T3,"ytd-mini-guide-renderer",function(){if(lBS===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);lBS=y}y=lBS;return y},{mode:1});var NWZ;var IBH=/^[\x00-\x7F]+$/,pwH=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(pwH,_.v);_.dJ.Object.defineProperties(pwH.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var y,W=_.v$((y=this.data)==null?void 0:y.handle);if(W)return _.Lq("@"+W)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var y=_.v$(this.displayHandle),W,c=_.v$((W=this.data)==null?void 0:W.handleUrl);if(y&&c)return _.Lq(c+y)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var y=_.v$(this.displayHandle);if(y&&!IBH.test(y)){var W;return(W=this.data)==null?void 0:W.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var y=_.v$(this.displayHandleUrl),W,c=_.v$((W=this.data)==null?void 0:W.urlInfoText);if(y&&c)return _.Lq(c+" "+y)}}});
var ah=pwH;_.x([_.L(),_.e("design:type",Object)],ah.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],ah.prototype,"displayHandle",null);_.x([_.A("displayHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],ah.prototype,"displayHandleUrl",null);_.x([_.A("displayHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],ah.prototype,"warningText",null);
_.x([_.A("displayHandleUrl"),_.e("design:type",Object),_.e("design:paramtypes",[])],ah.prototype,"urlInfoTextWithUrl",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ah.prototype,"darkerDarkTheme",void 0);ah=_.x([_.d({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],ah);
_.T(ah,"ytd-handles-claiming-confirm-dialog-content",function(){if(NWZ!==void 0)return NWZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return NWZ=y},{mode:1});var P2Q;var JwH=function(){var y=_.v.apply(this,arguments)||this;y.okButtonOverride={style:"mono",type:"outline",size:"M"};return y};
_.R(JwH,_.v);JwH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
JwH.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
var xh=JwH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xh.prototype,"okButtonOverride",void 0);_.x([_.L(),_.e("design:type",Object)],xh.prototype,"data",void 0);xh=_.x([_.d({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],xh);
_.T(xh,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(P2Q!==void 0)return P2Q;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return P2Q=y},{mode:1});var VRd;var C2g=/^[\x00-\x7F]+$/,Qm6=function(){var y=_.v.apply(this,arguments)||this;y.isLoading=!1;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(Qm6,_.v);Qm6.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var y;this.selectedHandle=(y=this.handleInput)==null?void 0:y.value;this.onSelectedHandleChanged(this.selectedHandle);_.fl(this.hostElement,"yt-refit-popups-action")}};
_.dJ.Object.defineProperties(Qm6.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var y;return(y=this.data)==null?void 0:y.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Lq("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Lq(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!C2g.test(this.selectedHandle)){var y;return(y=this.data)==null?void 0:y.warningText}}}});
var ih=Qm6;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ih.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ih.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],ih.prototype,"selectedHandle",void 0);_.x([_.L(),_.e("design:type",Object)],ih.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Function)],ih.prototype,"onSelectedHandleChanged",void 0);
_.x([_.jj("#channel-handle-input"),_.e("design:type",Object)],ih.prototype,"handleInput",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],ih.prototype,"handleUrlPrefix",null);_.x([_.A("selectedHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],ih.prototype,"displayHandle",null);_.x([_.A("selectedHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],ih.prototype,"displayHandleUrl",null);
_.x([_.A("selectedHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],ih.prototype,"warningText",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ih.prototype,"darkerDarkTheme",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ih.prototype,"ytRendererBehavior",void 0);ih=_.x([_.d({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],ih);
_.T(ih,"ytd-handles-claiming-edit-dialog-content",function(){if(VRd!==void 0)return VRd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return VRd=y},{mode:1});var AwD;var hjQ=function(){var y=_.v.apply(this,arguments)||this;y.actionButtonOverride={style:"mono",type:"filled",size:"M"};y.cancelButtonOverride={style:"mono",type:"text",size:"M"};y.selectButtonDisabled=!1;y.isLoading=!1;y.hasSelectedHandleEventListener=!1;y.selectedHandleChanged=function(W){y.selectedHandle=W};
return y};
_.R(hjQ,_.v);_.f=hjQ.prototype;_.f.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.f.onDataChanged=function(){var y,W;this.selectedHandle=(W=_.g((y=this.data)==null?void 0:y.inputField,swH))==null?void 0:W.handle};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onCancel=function(){this.selectedHandle="";_.GG(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onSelectHandle=function(){var y=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.bY(y.hostElement,_.v$(Z.newHandleUpdateStatus.errorMessage)),
y.isLoading=!1;else{var G;if((G=y.data)==null?0:G.onChannelUpdateSuccess){c=y.data.onChannelUpdateSuccess;var D,Y;if(Z=(D=_.g(c,_.bX))==null?void 0:(Y=D.popup)==null?void 0:Y.handlesClaimingConfirmDialogRenderer)Z.handle=_.Lq(y.selectedHandle);y.ytComponentBehavior.resolveCommand(c);_.GG(y.hostElement,"yt-close-popup-action",[y.is])}else y.isLoading=!1}},
onServerError:function(){var c;y.content&&((c=y.content)==null?0:c.handleInput)&&y.content.handleInput.validate();y.isLoading=!1;_.bY(y.hostElement,_.bN("TRY_AGAIN_LATER"))}}}))}};
_.f.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
var MU=hjQ;MU.prototype.onDataChanged=MU.prototype.onDataChanged;MU.prototype.onSelectedHandleChanged=MU.prototype.onSelectedHandleChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],MU.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],MU.prototype,"actionButtonOverride",void 0);_.x([_.L(),_.e("design:type",Object)],MU.prototype,"cancelButtonOverride",void 0);_.x([_.L(),_.e("design:type",Object)],MU.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",String)],MU.prototype,"selectedHandle",void 0);_.x([_.L(),_.e("design:type",Object)],MU.prototype,"selectButtonDisabled",void 0);_.x([_.L(),_.e("design:type",Object)],MU.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Object)],MU.prototype,"hasSelectedHandleEventListener",void 0);_.x([_.L(),_.e("design:type",Object)],MU.prototype,"handleInput",void 0);
_.x([_.H("selectedHandle"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],MU.prototype,"onSelectedHandleChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],MU.prototype,"onDataChanged",null);_.x([_.jj("ytd-handles-claiming-edit-dialog-content"),_.e("design:type",Object)],MU.prototype,"content",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],MU.prototype,"ytRendererstamperBehavior",void 0);MU=_.x([_.d({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],MU);
_.T(MU,"ytd-handles-claiming-edit-dialog-renderer",function(){if(AwD!==void 0)return AwD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return AwD=y},{mode:1});var BWd;var Hm6=function(){return _.v.apply(this,arguments)||this};
_.R(Hm6,_.v);_.dJ.Object.defineProperties(Hm6.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null?0:y.handle){var W;return _.Lq("@"+_.v$((W=this.data)==null?void 0:W.handle))}}}});
var eB=Hm6;_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],eB.prototype,"formattedHandle",null);_.x([_.L(),_.e("design:type",Object)],eB.prototype,"data",void 0);eB=_.x([_.d({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],eB);
_.T(eB,"ytd-handles-claiming-radio-option-renderer",function(){if(BWd!==void 0)return BWd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return BWd=y},{mode:1});var LUS;var vu6=/^[\x00-\x7F]+$/,w4=function(){var y=_.v.apply(this,arguments)||this;y.initialRadioIndex="-1";y.isLoading=!1;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.maybeSubmitFeedback=function(){y.feedbackSurveyRenderer.submitSurvey()};
return y};
_.R(w4,_.v);w4.prototype.updateSelectedHandleIndexFromBinding=function(y){this.selectedRadioIndex=+y.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(y)};
w4.prototype.selectedHandleChanged=function(y){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(y)}};
_.dJ.Object.defineProperties(w4.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var y;return this.ytRendererBehavior.getSimpleString((y=this.data)==null?void 0:y.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Lq("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Lq(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!vu6.test(this.selectedHandle)){var y;return(y=this.data)==null?void 0:y.warningText}}}});
var qU=w4;_.x([_.L(),_.e("design:type",Object)],qU.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],qU.prototype,"initialRadioIndex",void 0);_.x([_.L(),_.e("design:type",Number)],qU.prototype,"selectedRadioIndex",void 0);_.x([_.L(),_.e("design:type",String)],qU.prototype,"selectedHandle",void 0);_.x([_.L(),_.e("design:type",Object)],qU.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Function)],qU.prototype,"onSelectedHandleChanged",void 0);
_.x([_.L(),_.e("design:type",Function)],qU.prototype,"onSelectedRadioIndexChanged",void 0);_.x([_.jj("#channel-handle-input"),_.e("design:type",Object)],qU.prototype,"handleInput",void 0);_.x([_.jj("ytd-feedback-survey-renderer"),_.e("design:type",Object)],qU.prototype,"feedbackSurveyRenderer",void 0);_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],qU.prototype,"radioButtonLength",null);
_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],qU.prototype,"handleUrlPrefix",null);_.x([_.A("selectedHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],qU.prototype,"displayHandle",null);_.x([_.A("selectedHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],qU.prototype,"displayHandleUrl",null);_.x([_.A("selectedHandle"),_.e("design:type",Object),_.e("design:paramtypes",[])],qU.prototype,"warningText",null);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],qU.prototype,"darkerDarkTheme",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);qU=_.x([_.d({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],qU);
_.T(qU,"ytd-handles-claiming-select-dialog-content",function(){if(LUS!==void 0)return LUS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return LUS=y},{mode:1});var dNZ;var S5Q=function(){var y=_.v.apply(this,arguments)||this;y.actionButtonOverride={style:"mono",type:"filled",size:"M"};y.cancelButtonOverride={style:"mono",type:"text",size:"M"};y.initialRadioIndex="-1";y.selectButtonDisabled=!1;y.isLoading=!1;y.selectedRadioIndexChanged=function(W){y.selectedRadioIndex=Number(W.detail.value)};
y.selectedHandleChanged=function(W){y.selectedHandle=W.detail.value};
y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(S5Q,_.v);_.f=S5Q.prototype;_.f.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.f.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.f.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.fl(this.hostElement,"yt-refit-popups-action")};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.GG(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onSelectHandle=function(){var y=this;if(this.selectedHandle!==void 0){var W;((W=this.data)==null?void 0:W.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.bY(y.hostElement,_.v$(Z.newHandleUpdateStatus.errorMessage)),
y.isLoading=!1;else{var G;if((G=y.data)==null?0:G.onChannelUpdateSuccess){c=y.data.onChannelUpdateSuccess;Z=_.g(c,_.bX);var D;if(Z==null?0:(D=Z.popup)==null?0:D.handlesClaimingConfirmDialogRenderer)Z.popup.handlesClaimingConfirmDialogRenderer.handle=_.Lq(y.selectedHandle);y.ytComponentBehavior.resolveCommand(c);_.GG(y.hostElement,"yt-close-popup-action",[y.is])}else y.isLoading=!1}},
onServerError:function(){if(y.selectedRadioIndex===y.radioButtonLength){var c;y.content&&((c=y.content)==null?0:c.handleInput)&&y.content.handleInput.validate()}y.isLoading=!1;_.bY(y.hostElement,_.bN("TRY_AGAIN_LATER"))}}}))}};
_.f.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var y,W;this.selectedHandle=(y=this.content)==null?void 0:(W=y.handleInput)==null?void 0:W.value}else this.selectedRadioIndex>=0&&((y=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(y==null?void 0:y.handle):this.selectedHandle=void 0)};
_.f.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.f.getRadioItem=function(y){if(this.radioButtonLength>y&&y>=0)return _.g(this.data.radioButton[y],PcS)};
_.dJ.Object.defineProperties(S5Q.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var y;return(((y=this.data)==null?void 0:y.radioButton)||[]).length}}});
var kh=S5Q;kh.prototype.onSelectedHandleChanged=kh.prototype.onSelectedHandleChanged;kh.prototype.onSelectedHandleIndexChanged=kh.prototype.onSelectedHandleIndexChanged;kh.prototype.onDataChanged=kh.prototype.onDataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],kh.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kh.prototype,"actionButtonOverride",void 0);_.x([_.L(),_.e("design:type",Object)],kh.prototype,"cancelButtonOverride",void 0);
_.x([_.L(),_.e("design:type",Object)],kh.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],kh.prototype,"initialRadioIndex",void 0);_.x([_.L(),_.e("design:type",Number)],kh.prototype,"selectedRadioIndex",void 0);_.x([_.L(),_.e("design:type",String)],kh.prototype,"selectedHandle",void 0);_.x([_.L(),_.e("design:type",Object)],kh.prototype,"selectButtonDisabled",void 0);_.x([_.L(),_.e("design:type",Object)],kh.prototype,"isLoading",void 0);
_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],kh.prototype,"radioButtonLength",null);_.x([_.jj("ytd-handles-claiming-select-dialog-content"),_.e("design:type",Object)],kh.prototype,"content",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],kh.prototype,"onDataChanged",null);
_.x([_.H("selectedRadioIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],kh.prototype,"onSelectedHandleIndexChanged",null);_.x([_.H("selectedHandle"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],kh.prototype,"onSelectedHandleChanged",null);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],kh.prototype,"darkerDarkTheme",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kh.prototype,"ytRendererstamperBehavior",void 0);kh=_.x([_.d({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],kh);
_.T(kh,"ytd-handles-claiming-select-dialog-renderer",function(){if(dNZ!==void 0)return dNZ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return dNZ=y},{mode:1});var TWQ;var aB6;var xNQ=function(){return _.v.apply(this,arguments)||this};
_.R(xNQ,_.v);xNQ.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
var jW=xNQ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jW.prototype,"data",void 0);jW=_.x([_.d({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],jW);
_.T(jW,"ytd-hotkey-dialog-section-option-renderer",function(){if(aB6!==void 0)return aB6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return aB6=y},{mode:1});var imS;var MRQ=function(){return _.v.apply(this,arguments)||this};
_.R(MRQ,_.v);MRQ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
var yU=MRQ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yU.prototype,"data",void 0);yU=_.x([_.d({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],yU);
_.T(yU,"ytd-hotkey-dialog-section-renderer",function(){if(imS!==void 0)return imS;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return imS=y},{mode:1});var ejB=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(ejB,_.v);ejB.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
var WH=ejB;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WH.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WH.prototype,"darkerDarkTheme",void 0);WH=_.x([_.d({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],WH);
_.T(WH,"ytd-hotkey-dialog-content",function(){if(TWQ!==void 0)return TWQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return TWQ=y},{mode:1});var ww6;var q5g=function(){return _.v.apply(this,arguments)||this};
_.R(q5g,_.v);q5g.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var y=document.querySelector("ytd-hotkey-dialog-content #scrollable");y&&(y.dialogElement=this.hostElement.parentElement)};
q5g.prototype.onCloseTap=function(){_.GG(this.hostElement,"yt-close-popup-action")};
var cH=q5g;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cH.prototype,"data",void 0);cH=_.x([_.d({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],cH);
_.T(cH,"ytd-hotkey-dialog-renderer",function(){if(ww6!==void 0)return ww6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return ww6=y},{mode:1});var kTf;var Zk=function(){return _.v.apply(this,arguments)||this};
_.R(Zk,_.v);Zk.prototype.onYtServiceRequestError=function(){if(this.blocked){var y;var W=(y=this.data)==null?void 0:y.defaultServiceEndpoint}else{var c;W=(c=this.data)==null?void 0:c.toggledServiceEndpoint}var Z;(W=(Z=_.g(W,_.vjZ))==null?void 0:Z.onFailureAction)&&this.ytComponentBehavior.resolveCommand(W);this.updateBlockState(!this.blocked)};
Zk.prototype.onYtToggleButton=function(y){this.updateBlockState(y.detail.toggled)};
Zk.prototype.updateBlockState=function(y){if(y!==this.blocked){var W=this.blockedEntityKey;W&&this.ytdReduxBehavior.dispatch(_.o3("blockStateEntity",W,{key:W,blocked:y}));this.set("data.isToggled",y)}};
_.dJ.Object.defineProperties(Zk.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)}}});
var GJ=Zk;GJ.prototype.onYtToggleButton=GJ.prototype.onYtToggleButton;GJ.prototype.onYtServiceRequestError=GJ.prototype.onYtServiceRequestError;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],GJ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],GJ.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],GJ.prototype,"blockedEntityKey",void 0);
_.x([_.L({selectorArgs:["blockedEntityKey"],selector:function(y,W){return _.fq(y.entities,"blockStateEntity",W)}}),
_.e("design:type",Object)],GJ.prototype,"blockStateEntity",void 0);_.x([_.A("data","blockStateEntity"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],GJ.prototype,"blocked",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],GJ.prototype,"onYtServiceRequestError",null);
_.x([_.B("yt-toggle-button"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],GJ.prototype,"onYtToggleButton",null);GJ=_.x([_.d({is:"ytd-block-button",disableElementRegistration:!0})],GJ);
_.T(GJ,"ytd-block-button",function(){if(kTf!==void 0)return kTf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return kTf=y},
{mode:1});var jag;var yO3;var W0g=function(){return _.v.apply(this,arguments)||this};
_.R(W0g,_.v);var fb=W0g;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],fb.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fb.prototype,"data",void 0);fb=_.x([_.d({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],fb);
_.T(fb,"ytd-kids-blocklist-picker-item-renderer",function(){if(yO3!==void 0)return yO3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return yO3=y},{mode:1});var cOB=function(){return _.v.apply(this,arguments)||this};
_.R(cOB,_.v);cOB.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
var ok=cOB;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ok.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ok.prototype,"data",void 0);ok=_.x([_.d({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],ok);
_.T(ok,"ytd-kids-blocklist-picker-content",function(){if(jag!==void 0)return jag;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return jag=
y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var ZCB;var GXD=function(){var y=_.v.apply(this,arguments)||this;y.hasAnyRequestSucceeded=!1;y.hasAnyRequestFailed=!1;y.numPendingRequests=0;return y};
_.R(GXD,_.v);_.f=GXD.prototype;_.f.attached=function(){this.hostElement.setAttribute("dialog","")};
_.f.onDoneButtonTap=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.f.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.f.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.f.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.f.onPopupClosed=function(y){var W,c;if(((W=y.detail)==null?void 0:(c=W.popup)==null?void 0:c.is)==="tp-yt-paper-dialog"){var Z;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Z=this.data)==null?0:Z.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.av(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
var Dk=GXD;Dk.prototype.onPopupClosed=Dk.prototype.onPopupClosed;Dk.prototype.onYtServiceRequestError=Dk.prototype.onYtServiceRequestError;Dk.prototype.onYtServiceRequestCompleted=Dk.prototype.onYtServiceRequestCompleted;Dk.prototype.onYtServiceRequestSent=Dk.prototype.onYtServiceRequestSent;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Dk.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Dk.prototype,"data",void 0);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dk.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dk.prototype,"onYtServiceRequestCompleted",null);
_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Dk.prototype,"onYtServiceRequestError",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Dk.prototype,"onPopupClosed",null);Dk=_.x([_.d({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Dk);
_.T(Dk,"ytd-kids-blocklist-picker-renderer",function(){if(ZCB!==void 0)return ZCB;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return ZCB=y},{mode:1});var fMg;var oqg;var zJ=function(){return _.v.apply(this,arguments)||this};
_.R(zJ,_.v);zJ.prototype.setTip=function(y){var W=this;this.data&&(this.tip=Uq9(rTd.getInstance(),y,this.data),_.Lv(this,function(){_.Z2(W.hostElement,"yt-refit")}))};
zJ.prototype.clearTip=function(){this.tip=void 0};
zJ.prototype.computeHidden=function(y){return!y};
var Yc=zJ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Yc.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.e("design:type",Boolean)],Yc.prototype,"hidden",void 0);_.x([_.L(),_.e("design:type",Object)],Yc.prototype,"tip",void 0);Yc=_.x([_.d({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Yc);
_.T(Yc,"ytd-menu-popup-tip-renderer",function(){if(oqg!==void 0)return oqg;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);
return oqg=y},{mode:1});var Dsd;var zRQ=function(){var y=_.v.apply(this,arguments)||this;y.useIcons=!1;y.systemIcons=_.O("kevlar_system_icons");y.useListItemStyles=_.O("web_list_item_style_for_menu_items");return y};
_.R(zRQ,_.v);_.f=zRQ.prototype;_.f.onFocus=function(){var y;(y=_.p(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.f.onTap=function(){var y=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(y&&_.g(y,_.uN))this.componentBehavior.resolveCommand(y),this.updateToggledStateInEntity();else if(y){this.componentBehavior.resolveCommand(y)||_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}});var W;((W=_.g(y,_.nl))==null?void 0:W.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.f.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.f.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.f.updateToggledStateInEntity=function(){var y=this.data.toggleMenuServiceItemEntityKey,W=!this.data.isToggled;y&&this.ytdReduxBehavior.dispatch(_.o3("toggleMenuServiceItemEntity",y,{key:y,isToggled:W}))};
_.f.computeIcon=function(y,W,c){return(y=y?c:W)&&y.iconType?_.wp(y.iconType):""};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.isIconActive=function(y){return!_.O("toggle_menu_active_icon_killswitch")&&y};
_.dJ.Object.defineProperties(zRQ.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?0:y.isToggled)?(W=this.data)==null?void 0:W.toggledText:(c=this.data)==null?void 0:c.defaultText}}});
var mJ=zRQ;mJ.prototype.toggledStateEntityChanged=mJ.prototype.toggledStateEntityChanged;mJ.prototype.onYtServiceRequestCompleted=mJ.prototype.onYtServiceRequestCompleted;mJ.prototype.onTap=mJ.prototype.onTap;mJ.prototype.onFocus=mJ.prototype.onFocus;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],mJ.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],mJ.prototype,"componentBehavior",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],mJ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],mJ.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mJ.prototype,"useIcons",void 0);_.x([_.L({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.e("design:type",String)],mJ.prototype,"icon",void 0);
_.x([_.L({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(y,W){return _.fq(y.entities,"toggleMenuServiceItemEntity",W)}}),
_.e("design:type",Object)],mJ.prototype,"toggleMenuServiceItemEntity",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mJ.prototype,"systemIcons",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],mJ.prototype,"useListItemStyles",void 0);_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mJ.prototype,"onFocus",null);
_.x([_.A("data.isToggled"),_.e("design:type",Object),_.e("design:paramtypes",[])],mJ.prototype,"toggleButtonText",null);_.x([_.B("tap"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mJ.prototype,"onTap",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mJ.prototype,"onYtServiceRequestCompleted",null);
_.x([_.H("toggleMenuServiceItemEntity.isToggled","data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],mJ.prototype,"toggledStateEntityChanged",null);mJ=_.x([_.d({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],mJ);
_.T(mJ,"ytd-toggle-menu-service-item-renderer",function(){if(Dsd!==void 0)return Dsd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Dsd=y},{mode:1});var YvQ;var ms3=function(){return _.v.apply(this,arguments)||this};
_.R(ms3,_.v);ms3.prototype.onFocus=function(){var y;(y=_.p(this.hostElement).querySelector("tp-yt-paper-item"))==null||y.focus()};
_.dJ.Object.defineProperties(ms3.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Jn(this.data.iconUrl)}}});
var sl=ms3;sl.prototype.onFocus=sl.prototype.onFocus;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sl.prototype,"rendererBehavior",void 0);_.x([_.C(_.wU.YtEndpointBehavior),_.e("design:type",Object)],sl.prototype,"ytEndpointBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],sl.prototype,"data",void 0);_.x([_.B("focus"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],sl.prototype,"onFocus",null);
_.x([_.A("data.iconUrl"),_.e("design:type",Object),_.e("design:paramtypes",[])],sl.prototype,"imageSource",null);sl=_.x([_.d({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],sl);
_.T(sl,"ytd-menu-custom-icon-item-renderer",function(){if(YvQ!==void 0)return YvQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return YvQ=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});_.A3(_.DF,"yt-list-item-view-model",{props:{data:_.Ix,isMenuItem:_.Ix,isCompact:_.Ix,onTap:_.QE,trailingAccessory:_.Ix,hideSelectionTextChevron:_.Ix,disabled:_.Ix,inPopup:_.Ix,disableHorizontalPadding:_.Ix,isOverlay:_.Ix}});var sa9=function(){var y=_.v.apply(this,arguments)||this;y.disableBackdropFilter=_.O("web_disable_backdrop_filter");return y};
_.R(sa9,_.v);_.f=sa9.prototype;
_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.f.computeAriaLabel=function(y){return y};
_.f.onPopupOpened=function(){this.items.selected=0;for(var y=_.z(_.p(this.items).children),W=y.next();!W.done;W=y.next())W.value.popupPositionTarget=this.positionTarget;if(y=this.popupTip||void 0)y.setTip(this.source||""),this.source=void 0;this.veData&&(y=_.NR())&&_.vA(y,[this.veData])};
_.f.onPopupClosed=function(){var y=this.popupTip||void 0;y&&y.clearTip()};
_.f.onIronActivate=function(y){this.shouldPersist(y)||_.GG(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(y=_.NR())&&_.SG(y,this.veData)};
_.f.shouldPersist=function(y){var W,c;if(((W=y.detail)==null?void 0:W.selected)===void 0||(c=this.data)==null||!c.items)return!1;var Z,G;return!((G=(Z=this.data.items[y.detail.selected])==null?void 0:Z.toggleMenuServiceItemRenderer)==null||!G.persistentOnMenuPopup)};
_.f.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(y){return y.menuNavigationItemRenderer?!!y.menuNavigationItemRenderer.icon:y.menuServiceItemRenderer?!!y.menuServiceItemRenderer.icon:y.menuConditionalServiceItemRenderer?!!y.menuConditionalServiceItemRenderer.icon:y.menuConditionalNavigationItemRenderer?!!y.menuConditionalNavigationItemRenderer.icon:y.toggleMenuServiceItemRenderer?!!y.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
var uy=sa9;uy.prototype.onPopupClosed=uy.prototype.onPopupClosed;uy.prototype.onPopupOpened=uy.prototype.onPopupOpened;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],uy.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],uy.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],uy.prototype,"veData",void 0);_.x([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.e("design:type",String)],uy.prototype,"ariaLabel",void 0);_.x([_.L({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],uy.prototype,"useIcons",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],uy.prototype,"disableBackdropFilter",void 0);_.x([_.jj("#items"),_.e("design:type",Object)],uy.prototype,"items",void 0);_.x([_.jj("ytd-menu-popup-tip-renderer"),_.e("design:type",Object)],uy.prototype,"popupTip",void 0);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uy.prototype,"onPopupOpened",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],uy.prototype,"onPopupClosed",null);uy=_.x([_.d({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],uy);
_.T(uy,"ytd-menu-popup-renderer",function(){if(fMg!==void 0)return fMg;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return fMg=y},{mode:1});var uLQ;var tnS=_.Ax(function(y){y=_.V0(y,{icon:void 0});var W=y.data;y=y.icon;var c=function(){return W().iconBadgeText},Z={},G=_.Mi("yt-spec-icon-badge-shape",function(){a:switch(W().iconBadgeType){case "notification":var D="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":D="yt-spec-icon-badge-shape--type-cart";break a;default:D=""}return D},function(){a:switch(W().iconBadgeStyle){case "overlay":var D="yt-spec-icon-badge-shape--style-overlay";
break a;default:D=""}return D},(Z["yt-spec-icon-badge-shape--text-size-small"]=function(){var D=c();
return!!((D==null?0:D.length)&&D.length>2)},Z));
return _.X("yt-icon-badge-shape",null,_.X(_.YN,{cond:y,then:function(D){return _.X("div",{class:G},_.X("div",{class:"yt-spec-icon-badge-shape__icon"},_.X(_.Gb,{icon:D})),_.X(_.YN,{cond:c,then:function(Y){return _.X("div",{class:"yt-spec-icon-badge-shape__badge"},Y)}}))}}))},"Nf");
tnS.idomCompat=!0;_.A3(tnS,"yt-icon-badge-shape",{props:{data:_.Ix,icon:_.Ix}});var nq6=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};y.unseenCount=0;y.isOverlay=!1;return y};
_.R(nq6,_.v);_.f=nq6.prototype;_.f.attached=function(){var y=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(W){y.onServiceWorkerMessage(W)})};
_.f.onDataChanged=function(){this.isAttached&&!this.JSC$18082_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18082_lastData=this.data};
_.f.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.f.computeIcon=function(){var y,W;return(y=this.data)==null?void 0:(W=y.icon)==null?void 0:W.iconType};
_.f.onServiceWorkerMessage=function(y){y.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.f.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.g(this.data.updateUnseenCountEndpoint,_.nl)&&_.g(this.data.updateUnseenCountEndpoint,_.nl).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.f.handleUpdateNotificationsUnseenCountAction=function(y){var W=this;y=_.g(y,Fgf);y!=null&&y.unseenCount&&y.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(y.unseenCount),_.KX.addLowPriorityJob(function(){W.data.updateUnseenCountEndpoint&&W.ytComponentBehavior.resolveCommand(W.data.updateUnseenCountEndpoint)},y.timeoutMs))};
_.f.onClick=function(){_.Z2(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var y=_.fl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),W=this.data.menuRequest;y&&y.length===1&&y[0]?_.GG(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):W&&this.ytComponentBehavior.resolveCommand(W)};
_.f.handleTopbarMenuClosedAction=function(y){y==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.f.toggleIconState=function(y){this.iconButton&&(this.iconButton.pressed=y)};
_.f.sendUnseenCountRequest=function(y){var W=this;_.Xc(_.KX,function(){W.ytComponentBehavior.resolveCommand(y)})};
_.f.updateCountUI=function(y){this.set("unseenCount",y<9?y:"9+")};
_.dJ.Object.defineProperties(nq6.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
var tp=nq6;tp.prototype.handleUpdateNotificationsUnseenCountAction=tp.prototype.handleUpdateNotificationsUnseenCountAction;tp.prototype.onDataChanged=tp.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tp.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],tp.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.CB),_.e("design:type",Object)],tp.prototype,"ytdOpenPopupBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],tp.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tp.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],tp.prototype,"unseenCount",void 0);_.x([_.L(),_.e("design:type",Object)],tp.prototype,"isOverlay",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],tp.prototype,"showTooltips",void 0);_.x([_.jj("yt-icon-button"),_.e("design:type",Object)],tp.prototype,"iconButton",void 0);
_.x([_.A("unseenCount"),_.e("design:type",Object),_.e("design:paramtypes",[])],tp.prototype,"showNotificationCount",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tp.prototype,"onDataChanged",null);_.x([_.B("yt-update-notifications-unseen-count-action"),_.e("design:type",Function),_.e("design:paramtypes",[Object]),_.e("design:returntype")],tp.prototype,"handleUpdateNotificationsUnseenCountAction",null);
tp=_.x([_.d({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],tp);
_.T(tp,"ytd-notification-topbar-button-renderer",function(){if(uLQ!==void 0)return uLQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return uLQ=y},{mode:_.xm("kevlar_poly_si_batch_j025")?1:2});var XxQ;var nb=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return y};
_.R(nb,_.v);nb.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}}}}}};
nb.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
nb.prototype.onDarkModeToggled=function(y){this.dark=y};
var Xa=nb;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Xa.prototype,"data",void 0);_.x([_.L({value:!0,reflectToAttribute:!0}),_.e("design:type",Boolean)],Xa.prototype,"dark",void 0);
Xa=_.x([_.d({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Xa);
_.T(Xa,"yt-pdg-buy-flow-header-renderer",function(){if(XxQ!==void 0)return XxQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return XxQ=y},{mode:1});var bCH;var rOZ;var F06=function(){var y=_.v.apply(this,arguments)||this;y.immediateValue=0;y.isDarkTheme=!1;y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(F06,_.v);_.f=F06.prototype;_.f.created=function(){_.P_.requestAvailability()};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.dataChanged=function(){var y=_.p(this.hostElement).querySelector("#color-slider");y.immediateValue&&this.updateSliderKnobAndGradientStyles(y.immediateValue);this.data.notches[0].knobColorArgb&&_.wM(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.KZ(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Nn("HTML_DIR")==="rtl"&&_.p(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.f.onSliderImmediateChange=function(){var y=_.p(this.hostElement).querySelector("#color-slider");y.dragging&&(y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(y.immediateValue),this.updateSliderKnobAndGradientStyles(y.immediateValue)),this.updateSliderAria())};
_.f.onSliderChange=function(){var y=_.p(this.hostElement).querySelector("#color-slider");y.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(y.immediateValue),this.updateSliderKnobAndGradientStyles(y.immediateValue));this.updateSliderAria()};
_.f.updateSliderAria=function(){var y=_.p(this.hostElement).querySelector("#color-slider"),W=_.p(this.hostElement).querySelector("#color-slider");W=_.v$(this.data.notches[W.immediateValue].tierValue);_.ztf()&&_.Z2(this.hostElement,"iron-announce",{text:W});y.setAttribute("aria-valuetext",W)};
_.f.updateSuperThanksSelectedTierEntity=function(y){if(y!==this.immediateValue){var W,c,Z=this==null?void 0:(W=this.data)==null?void 0:(c=W.superThanksSelectedTierEntity)==null?void 0:c.key;Z&&Z.length>0&&this.ytdReduxBehavior.dispatch(_.o3("superThanksSelectedTierEntity",Z,{key:Z,index:y}))}};
_.f.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.updateSliderKnobAndGradientStyles=function(y){this.immediateValue=y;y=this.data.notches[y];if(y==null?0:y.knobColorArgb)var W={"--ytd-pdg-color-slider-knob-color":_.KZ(y.knobColorArgb)};(y==null?0:y.linearGradientCssStyle)&&W!==null&&(W=Object.assign({},W,{"--ytd-pdg-color-slider-active-color":y==null?void 0:y.linearGradientCssStyle}));W!==null&&_.wM(this.hostElement,W)};
var by=F06;by.prototype.onSliderChange=by.prototype.onSliderChange;by.prototype.onSliderImmediateChange=by.prototype.onSliderImmediateChange;by.prototype.dataChanged=by.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],by.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],by.prototype,"immediateValue",void 0);_.x([_.L(),_.e("design:type",Number)],by.prototype,"maxMarkers",void 0);
_.x([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fxZ}),_.e("design:type",Object)],by.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],by.prototype,"isDarkTheme",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],by.prototype,"ytdReduxBehavior",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],by.prototype,"dataChanged",null);
_.x([_.B("immediate-value-change"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],by.prototype,"onSliderImmediateChange",null);_.x([_.B("change"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],by.prototype,"onSliderChange",null);by=_.x([_.d({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],by);
_.T(by,"ytd-pdg-color-slider-renderer",function(){if(rOZ!==void 0)return rOZ;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return rOZ=y},{mode:1});var Us6;var $sH;var ry=null;
_.mD({is:"ytd-comment-input",_template:function(){if($sH!==void 0)return $sH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return $sH=y},
behaviors:[_.OWa.YtHostElementBehavior,_.uO,_.KA.YtComponentBehavior,_.Bj.YtRendererstamperBehavior,_.Vn3.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 _.RZ}},
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",_.qO(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;_.ZN();this.focus()},
detached:function(){document.removeEventListener("tap",_.qO(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(y){y=y.detail;y=y.isCustomEmoji?y.shortcuts[0]:y.emojiId;var W=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(W,y);this.maybeUpdateTextDirection_();_.Z2(this.hostElement,"input")},
getInputRange_:function(){var y=_.tD();if(y){y=y.getBrowserRangeObject();for(var W=y.commonAncestorContainer;W;){if(W===this.getEditableTextArea_())return y;W=W.parentNode}}y=this.getEditableTextArea_();y=_.EM(y,y.childNodes.length);y.select();return y.getBrowserRangeObject()},
insertTextWithEmojis_:function(y,W,c){(W=this.emojiManager.createDocumentFragment(W,!0,!1,c===void 0?!0:c))&&W.childNodes.length!==0&&(y.collapsed||y.deleteContents(),c=W.lastChild,y.insertNode(W),_.uXi(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var y=_.tD();if(y){var W=y.JSC$9101_getStartNode(),c=y.JSC$9101_getEndNode();if(xrQ(W)&&xrQ(c)){var Z=y.JSC$9101_getStartOffset(),G;if(_.Dq&&W.nodeType===Node.ELEMENT_NODE&&(G=_.cnW(W)))_.EM(G,0).select();else{G=ve(W)?W:_.CP(W,ve);var D=ve(c)?c:_.CP(c,ve);if(G||D)if(y.isCollapsed()){if(W.nodeType===Node.TEXT_NODE){y=!0;Z===W.length&&(y=!1);if(ry==="end"||ry==="right")y=!1;W=W.parentNode;y=[].concat(_.No(W.parentNode.childNodes)).indexOf(W)+(y?0:1);_.EM(W.parentNode,y).select()}}else G?
G.previousSibling&&G.previousSibling.length>0?_.Nh(c,y.JSC$9101_getEndOffset(),G.previousSibling,G.previousSibling.length-1).select():(W=document.createTextNode("\u200b"),G.parentNode.insertBefore(W,G),_.Nh(c,y.JSC$9101_getEndOffset(),W,0).select()):D&&(D.nextSibling&&D.nextSibling.length>0?_.Nh(W,y.JSC$9101_getStartOffset(),D.nextSibling,1).select():(c=document.createTextNode("\u200b"),D.parentNode.insertBefore(c,D.nextSibling),_.Nh(W,y.JSC$9101_getStartOffset(),c,c.length).select()));ry=null}}else ry=
null}else ry=null},
leftKeyPressed_:function(){ry="left"},
rightKeyPressed_:function(){ry="right"},
endKeyPressed_:function(){ry="end"},
maybeDeleteChip_:function(){var y=k$f(!0);if(y){var W=_.tD(),c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();_.KG(c,W,y,y.childNodes.length).select()}},
maybeBackspaceChip_:function(){var y=k$f(!1);if(y){var W=_.tD(),c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();_.KG(c,W,y,0).select()}},
maybeBackspaceChipWordMode_:function(y){var W=_.tD();if(W.isCollapsed()){var c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();var Z=j_D(c,W,!0);Z&&(_.KG(c,W,Z,0).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(y){var W=_.tD();if(W.isCollapsed()){var c=W.JSC$9101_getStartNode();W=W.JSC$9101_getStartOffset();var Z=j_D(c,W,!1);Z&&(_.KG(c,W,Z,Z.childNodes.length).select(),document.execCommand("delete"),y.preventDefault(),y.stopImmediatePropagation())}},
onContentClick:function(y){y.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(y){y.defaultPrevented||y.currentTarget.tagName==="YTD-COMMENT-INPUT"&&ve(y.target)&&y.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.p(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.p(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(y,W){y=M6D(y,this.emojiManager,W).cloneNode(!0);for(W=y.firstChild;W;)if(W.nodeType!==1)W=W.nextSibling;else switch(W.tagName){case "BR":var c=_.gT();_.m9E(c,W);W=c.nextSibling;break;case "DIV":(c=W.lastChild)&&W.nextSibling&&_.I_(_.gT(),c);W.previousSibling&&(W.previousSibling.nodeType===1||W.previousSibling.nodeType===3&&!W.previousSibling.textContent.endsWith("\n"))&&_.NL(_.gT(),W);c&&c.nodeName==="BR"&&_.to(c);c=W;W.hasChildNodes()?(W=W.firstChild,
_.s$W(c)):(W=W.nextSibling,_.to(c));break;default:W=W.nextSibling}return yPd(y)},
setTextAreaValue:function(y){y||(y="");var W=this.getEditableFormattedString_();W.text="";this.getEditableTextArea_().innerText="";typeof y==="string"&&(y={runs:[{text:y}]});W.text=y},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();ry=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var y=this.getEditableTextArea_();y&&(_.EM(y,y.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Nn("HTML_DIR")==="rtl"){var y=this.getEditableTextArea_(),W=this.getTextAreaValue()!==""?"auto":"rtl";y.setAttribute("dir",W)}},
handleInputEvent_:function(){var y=null;if(this.isEmojiButtonDisplayed){var W=this.getInputRange_();W&&(y=this.emojiInput.retrieveTextBeforeRange(W))}this.insertText_(y,!0);this.updateCharCount_();y=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=y.scrollHeight>y.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var y=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:y})},
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(y){this.isEmojiButtonDisplayed&&(y.preventDefault(),y.stopImmediatePropagation(),y=y.clipboardData.getData("text/plain"),this.insertText_(y,!1,!1),_.Z2(this.hostElement,"input"))},
insertText_:function(y,W,c){W=W===void 0?!1:W;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&y){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(W&&this.emojiInput.offsetStartOfRangeBy(Z,y.length),this.insertTextWithEmojis_(Z,y,c),ii9(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,y),this.updateSuggestionOffset_(Z)))}},
getSimpleString:_.v$,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(y){return y?"focused":"not-focused"},
computePlaceholderText_:function(y){return this.getSimpleString(y)},
computeEditableText_:function(y){return this.getSimpleString(y)},
onPrefilledContentDismissed_:function(y){y.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(y,W){y?this.fire("yt-autonav-pause-focus"):W!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(y){var W=this.getEditableTextArea_();[].concat(_.No(y.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(Z){W.appendChild(document.createTextNode(Z))})});
y.preventDefault()},
preventDefault_:function(y){y.preventDefault()},
onSuggestionInsert_:function(y){this.insertTextWithEmojis_(y.detail.range,y.detail.text)},
onEmojiSuggestionClick_:function(y){this.emojiInput.insertSuggestion(y.detail)},
updateSuggestionOffset_:function(y){if(this.emojiInput&&_.p(this.emojiInput).querySelector("#dropdown")){var W=this.getEditableTextArea_().getBoundingClientRect().bottom,c=y.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(W-c)+5;W=this.getEditableTextArea_().getBoundingClientRect().left;y=y.getBoundingClientRect().left-W;_.p(this.emojiInput).querySelector("#dropdown").style.marginLeft=y+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.EW("yt-post"));return this.localStorage}});var K0S=function(){var y=_.v.apply(this,arguments)||this;y.currentCommentOptionIndex=0;y.isEmojiPickerDisplayed=!1;y.emojiManager=_.RZ;y.isUgcEmpty=!1;y.userGeneratedCommentChangedHandler=function(){_.Z2(y.hostElement,"ytd-pdg-user-generated-comment-changed");y.isEmojiYtdCommentInputEnabled&&(y.isUgcEmpty=!y.ytdCommentInputEl.getTextAreaValue())};
y.pasteHandler=function(W){W.preventDefault();W.stopImmediatePropagation();var c;if(W=(c=W.clipboardData)==null?void 0:c.getData("text/plain"))c=document.getSelection().getRangeAt(0),c.collapsed||c.deleteContents(),W=document.createTextNode(W),c.insertNode(W),c.selectNodeContents(W),c.collapse(!1),W=window.getSelection(),W.removeAllRanges(),W.addRange(c)};
y.onDocumentClick=function(W){if(y.isEmojiPickerDisplayed){var c,Z,G;!(W.target instanceof Node)||(c=W.composedPath())!=null&&c.includes(y.editableTextEl)||(Z=W.composedPath())!=null&&Z.includes(y.emojiButtonEl)||(G=W.composedPath())!=null&&G.includes(y.emojiPickerEl)||(y.isEmojiPickerDisplayed=!1)}};
return y};
_.R(K0S,_.v);_.f=K0S.prototype;_.f.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.f.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.f.detached=function(){var y;(y=this.contentEl)==null||y.removeEventListener("input",this.userGeneratedCommentChangedHandler);var W;(W=this.contentEl)==null||W.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.f.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.f.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var y;this.contentEl.textContent=this.rendererBehavior.getSimpleString((y=this.data)==null?void 0:y.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.f.reloadEmojis=function(){this.emojiPickerEl&&_.g(this.emojiPicker,_.kA2)&&this.emojiPickerEl.updateEmojiCategories()};
_.f.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.wM(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.f.handleBackgroundColorStyling=function(){var y;if((y=this.currentCommentOption)==null?0:y.commentBackgroundColorArgb){var W;_.wM(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.KZ((W=this.currentCommentOption)==null?void 0:W.commentBackgroundColorArgb)})}else _.wM(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.f.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var y;(y=this.contentEl)==null||y.focus()}};
_.f.onEditButtonClick=function(y){var W=document.getSelection();W&&this.contentEl&&(y.stopPropagation(),y.preventDefault(),W.selectAllChildren(this.contentEl),W.collapseToEnd())};
_.f.onContentDrop=function(y){var W=this;if(y.dataTransfer){y=_.z(y.dataTransfer.items);for(var c=y.next();!c.done;c=y.next())c=c.value,c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(Z){var G;(G=W.contentEl)==null||G.appendChild(document.createTextNode(Z))})}};
_.f.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.f.getUserGeneratedCommentText=function(){var y,W=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(y=this.contentEl)==null?void 0:y.textContent;return W?W.trim():""};
_.f.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.f.onEmojiSelect=function(y){this.ytdCommentInputEl.onEmojiSelect(y)};
_.dJ.Object.defineProperties(K0S.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.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 y;return!((y=this.currentCommentOption)==null||!y.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var y;if(_.g((y=this.currentCommentOption)==null?void 0:y.chipRenderer,_.zdV)){var W;return _.g((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.zdV)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var y,W;return((y=this.data)==null?0:y.commentOptionRenderers)?_.g((W=this.data)==null?void 0:W.commentOptionRenderers[this.superThanksSelectedTierEntity.index],MaB):void 0}var c,Z;return((c=this.data)==null?0:c.commentOptionRenderers)?_.g((Z=this.data)==null?void 0:Z.commentOptionRenderers[this.currentCommentOptionIndex],MaB):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var y;return this.rendererBehavior.getSimpleString((y=this.data)==null?void 0:y.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var y;return this.rendererBehavior.getSimpleString((y=this.data)==null?void 0:y.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.commentDialog,_.i$Q))==null?void 0:W.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.commentDialog,_.i$Q))==null?void 0:W.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=_.g((y=this.data)==null?void 0:y.commentDialog,_.i$Q))==null?void 0:W.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(W=_.g((y=this.data)==null?void 0:y.commentDialog,_.i$Q))==null?void 0:W.emojiPicker;if(!_.g(c,_.kA2)||!_.g(c,_.kA2).categories)return!1;y=function(D){return D.emojiPickerCategoryRenderer?D.emojiPickerCategoryRenderer.emojiIds&&D.emojiPickerCategoryRenderer.emojiIds.length>0:D.emojiPickerUpsellCategoryRenderer?D.emojiPickerUpsellCategoryRenderer.emojis&&D.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Z,G;return((Z=_.g(c,_.kA2))==null?0:(G=Z.categories)==null?0:G.find(y))?!0:!1}}});
var Fa=K0S;Fa.prototype.onEmojiSelect=Fa.prototype.onEmojiSelect;Fa.prototype.dataChanged=Fa.prototype.dataChanged;Fa.prototype.currentCommentOptionChanged=Fa.prototype.currentCommentOptionChanged;_.x([_.C(_.$s),_.e("design:type",Object)],Fa.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Fa.prototype,"rendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.jj("#content-dom-if"),_.e("design:type",_.u6)],Fa.prototype,"contentDomIfEl",void 0);_.x([_.jj("#content-no-emojis"),_.e("design:type",HTMLElement)],Fa.prototype,"contentEl",void 0);_.x([_.jj("#container"),_.e("design:type",HTMLElement)],Fa.prototype,"containerEl",void 0);_.x([_.jj("#comment-chip-container"),_.e("design:type",HTMLElement)],Fa.prototype,"paidCommentChipContainerEl",void 0);_.x([_.jj("#text-input"),_.e("design:type",HTMLElement)],Fa.prototype,"editableTextEl",void 0);
_.x([_.jj("#emoji-button"),_.e("design:type",HTMLElement)],Fa.prototype,"emojiButtonEl",void 0);_.x([_.jj("#emoji-picker > yt-emoji-picker-renderer"),_.e("design:type",Object)],Fa.prototype,"emojiPickerEl",void 0);_.x([_.jj("#text-input > ytd-comment-input"),_.e("design:type",Object)],Fa.prototype,"ytdCommentInputEl",void 0);_.x([_.L(),_.e("design:type",Object)],Fa.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Fa.prototype,"currentCommentOptionIndex",void 0);
_.x([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fxZ}),_.e("design:type",Object)],Fa.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.L(),_.e("design:type",Object)],Fa.prototype,"isEmojiPickerDisplayed",void 0);_.x([_.L(),_.e("design:type",Object)],Fa.prototype,"emojiManager",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Fa.prototype,"isUgcEmpty",void 0);
_.x([_.H("currentCommentOption"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Fa.prototype,"currentCommentOptionChanged",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Fa.prototype,"dataChanged",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Fa.prototype,"isEmojiYtdCommentInputEnabled",null);
_.x([_.A("data.title"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"title",null);_.x([_.A("data.authorText"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"channelName",null);_.x([_.A("data.commentOptionRenderers","currentCommentOption"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Fa.prototype,"shouldShowPaidCommentChipRenderer",null);
_.x([_.A("data.commentOptionRenderers","currentCommentOption"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"paidCommentChipRenderer",null);_.x([_.A("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"currentCommentOption",null);
_.x([_.A("data.defaultCommentText","superThanksSelectedTierEntity"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"commentText",null);_.x([_.A("data.placeholderText"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"placeholderText",null);_.x([_.A("data.commentDialog.commentDialogRenderer.editableText"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"editableText",null);
_.x([_.A("data.commentDialog.commentDialogRenderer.emojiButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"emojiButton",null);_.x([_.A("data.commentDialog.commentDialogRenderer.emojiPicker"),_.e("design:type",Object),_.e("design:paramtypes",[])],Fa.prototype,"emojiPicker",null);
_.x([_.A("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Fa.prototype,"isEmojiButtonDisplayed",null);_.x([_.B("yt-emoji-select"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Fa.prototype,"onEmojiSelect",null);Fa=_.x([_.d({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Fa);
_.T(Fa,"ytd-pdg-comment-preview-renderer",function(){if(Us6!==void 0)return Us6;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Us6=y},{mode:2});var OC6;var gq3=function(){var y=_.v.apply(this,arguments)||this;y.selected=!1;return y};
_.R(gq3,_.v);_.f=gq3.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.f.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.f.dataChanged=function(){this.data&&(_.x$(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.wM(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.KZ(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.KZ(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.f.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.f.onClick=function(){this.logClick()};
_.f.onKeyboardSelect=function(){_.Z2(this.hostElement,"tap");this.onClick()};
_.f.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var Ul=gq3;Ul.prototype.onClick=Ul.prototype.onClick;Ul.prototype.selectedChanged=Ul.prototype.selectedChanged;Ul.prototype.dataChanged=Ul.prototype.dataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Ul.prototype,"componentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.uO),_.e("design:type",Object)],Ul.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.C(_.l6),_.e("design:type",Object)],Ul.prototype,"ironSelectableBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ul.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Ul.prototype,"shownThumbnail",void 0);_.x([_.L(),_.e("design:type",Object)],Ul.prototype,"basePriceText",void 0);_.x([_.L(),_.e("design:type",Object)],Ul.prototype,"purchaseCommand",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],Ul.prototype,"selected",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ul.prototype,"dataChanged",null);_.x([_.H("selected"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ul.prototype,"selectedChanged",null);_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ul.prototype,"onClick",null);
Ul=_.x([_.d({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Ul);
_.T(Ul,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(OC6!==void 0)return OC6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return OC6=y},{mode:1});var RRS=function(){var y=_.v.apply(this,arguments)||this;y.selectedItemIndex=0;y.buyButtonDisabled=!1;return y};
_.R(RRS,_.v);_.f=RRS.prototype;
_.f.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]]"}}}}}};
_.f.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var y;var W=(y=_.g(this.data.colorSlider,inB))==null?void 0:y.notches[this.selectedItemIndex].purchaseCommand}else{var c;W=(c=_.g(this.data.selectableItemButtons[this.selectedItemIndex],wb6))==null?void 0:c.purchaseCommand}if(W){y=_.g(W,_.RZm);y.productData||(y.productData={});var Z;y.productData={pdgData:{commentMessageText:(Z=this.commentPreviewRenderer)==null?void 0:Z.getUserGeneratedCommentText()}};
_.Z2(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(W)}}};
_.f.dataChanged=function(){if(this.data){_.RZ.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.X9V(_.RZ,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.RZ.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var y;this.buyButtonDisabled=!((y=_.g(this.data.commentPreview,ep3))==null||!y.placeholderText);this.updatePriceSelectorStatus();var W;if((W=this.data)==null?0:W.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;y=[];this.data.preloadImages&&(y=this.data.preloadImages);
y=y.map(function(c){return _.h3(c.thumbnails,1920)});
y=_.z(y);for(W=y.next();!W.done;W=y.next())(W=W.value)&&_.Eua(W).thenCatch(function(){_.Rs(Error("kl"))})}};
_.f.superThanksSelectedTierEntityChanged=function(){var y;(this==null?void 0:(y=this.superThanksSelectedTierEntity)==null?void 0:y.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.f.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.f.updatePriceSelectorStatus=function(){this.isColorSlider?(_.p(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.p(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.p(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.p(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.f.closeBuyFlow=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.f.onUserGeneratedContentChanged=function(){var y;this.buyButtonDisabled=!((y=this.commentPreviewRenderer)==null?0:y.getUserGeneratedCommentText())};
_.f.updateSelectedItemIndexFromBinding=function(y){this.selectedItemIndex=y.detail.value};
_.dJ.Object.defineProperties(RRS.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var y;return!((y=this.data)==null||!y.disclaimerText)}}});
var $c=RRS;$c.prototype.onUserGeneratedContentChanged=$c.prototype.onUserGeneratedContentChanged;$c.prototype.closeBuyFlow=$c.prototype.closeBuyFlow;$c.prototype.selectedItemIndexChanged=$c.prototype.selectedItemIndexChanged;$c.prototype.superThanksSelectedTierEntityChanged=$c.prototype.superThanksSelectedTierEntityChanged;$c.prototype.dataChanged=$c.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],$c.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],$c.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],$c.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],$c.prototype,"selectedItemIndex",void 0);_.x([_.L(),_.e("design:type",Boolean)],$c.prototype,"isColorSlider",void 0);
_.x([_.L(),_.e("design:type",Object)],$c.prototype,"buyButtonDisabled",void 0);_.x([_.L({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:fxZ}),_.e("design:type",Object)],$c.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.jj("ytd-pdg-comment-preview-renderer"),_.e("design:type",Object)],$c.prototype,"commentPreviewRenderer",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],$c.prototype,"ytdReduxBehavior",void 0);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$c.prototype,"dataChanged",null);_.x([_.H("superThanksSelectedTierEntity"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$c.prototype,"superThanksSelectedTierEntityChanged",null);_.x([_.H("selectedItemIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$c.prototype,"selectedItemIndexChanged",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$c.prototype,"closeBuyFlow",null);_.x([_.B("ytd-pdg-user-generated-comment-changed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],$c.prototype,"onUserGeneratedContentChanged",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],$c.prototype,"isDisclaimerTextShown",null);
$c=_.x([_.d({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],$c);
_.T($c,"yt-super-vod-buy-flow-content-renderer",function(){if(bCH!==void 0)return bCH;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return bCH=y},{mode:1});var lMD;var EqZ=function(){var y=_.v.apply(this,arguments)||this;y.lottieAnimationRef={};return y};
_.R(EqZ,_.v);_.f=EqZ.prototype;_.f.created=function(){_.P_.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.qO(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.f.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Z2(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.f.detached=function(){this.autoCloseJobId&&_.KX.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.qO(this,this.onPopupIronOverlayOpened))};
_.f.dataChanged=function(){var y=this;this.data&&this.data.autoCloseDelay&&(_.GG(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.vh(_.KX,function(){y.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.wM(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.f.onDOMLoadedLottie=function(){var y=this,W,c,Z=Number((W=this.data)==null?void 0:(c=W.autoCloseDelay)==null?void 0:c.seconds)||0;this.fadeOutJobId=_.vh(_.KX,function(){y.lottiePlayerEl.classList.add("fadeout")},(Z-.25)*1E3);
this.autoCloseJobId=_.vh(_.KX,function(){y.closePopup()},Z*1E3)};
_.f.openPopup=function(){this.ironOverlayBehavior.open()};
_.f.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.GG(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.mq(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.U().resolve(_.i1).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.KX.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.KX.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.f.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var y,W;(y=this.lottieAnimationRef)==null||(W=y.lottieEl)==null||W.destroy();y=this.data.lottie;var c,Z;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:y.url+"_"+Math.random(),path:y.url,autoplay:!0,loop:(Z=(c=y.settings)==null?void 0:c.loop)!=null?Z:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.dJ.Object.defineProperties(EqZ.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var y,W;return!!((y=this.data)==null?0:(W=y.lottie)==null?0:W.url)}}});
var Kb=EqZ;Kb.prototype.maybeInitializeLottie=Kb.prototype.maybeInitializeLottie;Kb.prototype.dataChanged=Kb.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Kb.prototype,"rendererBehavior",void 0);_.x([_.C(_.Ak),_.e("design:type",Object)],Kb.prototype,"ironOverlayBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Kb.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Kb.prototype,"lottiePlayerProps",void 0);
_.x([_.L(),_.e("design:type",Object)],Kb.prototype,"lottieAnimationRef",void 0);_.x([_.jj("ytd-lottie-player"),_.e("design:type",HTMLElement)],Kb.prototype,"lottiePlayerEl",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Kb.prototype,"dataChanged",null);_.x([_.A("data"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],Kb.prototype,"hasLottieAnimation",null);
_.x([_.H("data.lottie.url"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Kb.prototype,"maybeInitializeLottie",null);Kb=_.x([_.d({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Kb);
_.T(Kb,"ytd-desktop-image-overlay-renderer",function(){if(lMD!==void 0)return lMD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return lMD=y},{mode:1});var NES;var IMQ=function(){return _.v.apply(this,arguments)||this};
_.R(IMQ,_.v);_.f=IMQ.prototype;_.f.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"}}}}};
_.f.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",_.qO(this,this.closePopup))};
_.f.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.qO(this,this.closePopup))};
_.f.dataChanged=function(){_.fl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.g(this.data.header,xl6)&&(this.hasBackgroundBanner=!!_.g(this.data.header,xl6).backgroundBanner)};
_.f.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.qO(this,this.closePopup))};
_.f.closePopup=function(){this.data&&this.data.onCloseCommand&&_.D2(this.hostElement,[this.data.onCloseCommand])};
var Ap=IMQ;Ap.prototype.handleBuyflowSelectionSubmitted=Ap.prototype.handleBuyflowSelectionSubmitted;Ap.prototype.dataChanged=Ap.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Ap.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Ap.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Ap.prototype,"data",void 0);
_.x([_.L({value:!0,reflectToAttribute:!0}),_.e("design:type",Boolean)],Ap.prototype,"hasBackgroundBanner",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ap.prototype,"dataChanged",null);_.x([_.B("yt-pdg-buy-flow-selection-submitted"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Ap.prototype,"handleBuyflowSelectionSubmitted",null);
Ap=_.x([_.d({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Ap);
_.T(Ap,"ytd-pdg-buy-flow-renderer",function(){if(NES!==void 0)return NES;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return NES=y},{mode:1});var pxH;var Pe6=function(){var y=_.v.apply(this,arguments)||this;y.isOpen=!1;y.isPlaylistCreated=!1;return y};
_.R(Pe6,_.v);_.f=Pe6.prototype;_.f.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.f.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Z2(this.hostElement,"yt-refit")};
_.f.onCreateTap=function(){var y=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.D2(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(W,c){if(!_.O("killswitch_ep_in_create_playlist_response")&&(c==null?0:c.actions))for(W=_.z(c.actions),c=W.next();!c.done;c=W.next())c=c.value,_.g(c,_.E9)&&y.ytComponentBehavior.resolveCommand(c)}}]),this.isPlaylistCreated=!0)};
_.f.onKeydown=function(y){if(y.keyCode===13)this.onCreateTap()};
_.f.onServiceRequestCompleted=function(y){y.stopPropagation();_.GG(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.f.computePrivacyBadge=function(y){return y?[{metadataBadgeRenderer:y}]:[]};
var hp=Pe6;hp.prototype.onServiceRequestCompleted=hp.prototype.onServiceRequestCompleted;hp.prototype.onKeydown=hp.prototype.onKeydown;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hp.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],hp.prototype,"isOpen",void 0);
_.x([_.L(),_.e("design:type",Object)],hp.prototype,"isPlaylistCreated",void 0);_.x([_.L({value:{REQUIRED_LABEL:_.bN("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.bN("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.e("design:type",Object)],hp.prototype,"addToStrings",void 0);_.x([_.L({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.e("design:type",Array)],hp.prototype,"privacyBadge",void 0);
_.x([_.jj("#privacy-input"),_.e("design:type",Object)],hp.prototype,"privacyInput",void 0);_.x([_.jj("#name-input"),_.e("design:type",Object)],hp.prototype,"nameInput",void 0);_.x([_.B("keydown"),_.e("design:type",Function),_.e("design:paramtypes",[KeyboardEvent]),_.e("design:returntype")],hp.prototype,"onKeydown",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],hp.prototype,"onServiceRequestCompleted",null);
hp=_.x([_.d({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],hp);
_.T(hp,"ytd-add-to-playlist-create-renderer",function(){if(pxH!==void 0)return pxH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return pxH=y},{mode:1});var JOB;var VnH;var BH=function(){var y=_.v.apply(this,arguments)||this;y.transferState="TRANSFER_STATE_UNKNOWN";return y};
_.R(BH,_.v);BH.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
BH.prototype.onCheckboxChange=function(y){var W=this;this.data&&_.gp(this,"yt-playlist-checkbox-changed",function(){var c=_.hq(y).checked?W.data.addToPlaylistServiceEndpoint:W.data.removeFromPlaylistServiceEndpoint;c&&_.U().resolve(_.i1).resolveCommand(c,{form:{element:W.hostElement}});_.O("dl_playlist_killswitch")||W.transferState!=="TRANSFER_STATE_UNKNOWN"&&W.transferState!=="TRANSFER_STATE_FAILED"&&W.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:W.data.playlistId,action:"ACTION_SYNC"}})},
100)};
BH.prototype.computeIconType=function(y){return y?"yt-icons:"+y.toLowerCase():null};
var HH=BH;HH.prototype.dataChanged=HH.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],HH.prototype,"data",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],HH.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],HH.prototype,"ytComponentBehavior",void 0);_.x([_.jj("#checkbox"),_.e("design:type",HTMLInputElement)],HH.prototype,"checkbox",void 0);
_.x([_.L({selector:_.pq,selectorArgs:["data.playlistId"]}),_.e("design:type",String)],HH.prototype,"transferState",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],HH.prototype,"dataChanged",null);HH=_.x([_.d({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],HH);
_.T(HH,"ytd-playlist-add-to-option-renderer",function(){if(VnH!==void 0)return VnH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return VnH=y},{mode:1});_.eu(Weg);_.TP(Weg,"ytd-menu-title-renderer",{propNames:["data"]});var CeD=function(){var y=_.v.apply(this,arguments)||this;y.addToStrings={ADD_TO_DROPDOWN_LABEL:_.bN("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};y.closeButtonAriaLabel=_.bN("SBOX_INAPPROPRIATE_CANCEL");y.dialog=_.O("desktop_add_to_playlist_renderer_dialog_popup");return y};
_.R(CeD,_.v);_.f=CeD.prototype;_.f.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"}}}};
_.f.onPopupOpened=function(){_.i0(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.f.onPopupClosed=function(){_.i0(this.playlists,"scrollable",!1)};
_.f.computeAriaLabel=function(){var y;if(this==null?0:(y=this.data)==null?0:y.actions){y=_.z(this.data.actions);for(var W=y.next();!W.done;W=y.next())if(W=W.value,W.menuTitleRenderer)return _.v$(W.menuTitleRenderer.title)}};
_.f.onTapClose=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.dJ.Object.defineProperties(CeD.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var y;if(this==null?0:(y=this.data)==null?0:y.actions){y=_.z(this.data.actions);for(var W=y.next();!W.done;W=y.next())if(W=W.value,W.menuTitleRenderer)return W.menuTitleRenderer}return!1}}});
var Lb=CeD;Lb.prototype.onPopupClosed=Lb.prototype.onPopupClosed;Lb.prototype.onPopupOpened=Lb.prototype.onPopupOpened;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],Lb.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Lb.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],Lb.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],Lb.prototype,"addToStrings",void 0);_.x([_.L({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.e("design:type",String)],Lb.prototype,"ariaLabel",void 0);_.x([_.L(),_.e("design:type",String)],Lb.prototype,"closeButtonAriaLabel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Lb.prototype,"dialog",void 0);
_.x([_.jj("#playlists"),_.e("design:type",HTMLElement)],Lb.prototype,"playlists",void 0);_.x([_.jj("ytd-add-to-playlist-create-renderer"),_.e("design:type",Object)],Lb.prototype,"createRenderer",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],Lb.prototype,"menuTitleRenderer",null);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lb.prototype,"onPopupOpened",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Lb.prototype,"onPopupClosed",null);Lb=_.x([_.d({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Lb);
_.T(Lb,"ytd-add-to-playlist-renderer",function(){if(JOB!==void 0)return JOB;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return JOB=y},{mode:1});var Qa9;var AO6=function(){var y=_.v.apply(this,arguments)||this;y.isPlaylistEditComplete=!1;y.isCollabEngagementDisabled=!1;y.closeButtonAriaLabel=_.bN("SBOX_INAPPROPRIATE_CANCEL");y.saveButton={title:_.bN("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"};y.onValueChanged=function(){y.updateSaveButtonState();y.computeCollabEngagementDisabled()};
return y};
_.R(AO6,_.v);_.f=AO6.prototype;_.f.attached=function(){this.JSC$18138_scroller&&(this.JSC$18138_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18138_scroller.attached&&typeof this.JSC$18138_scroller.attached==="function"&&this.JSC$18138_scroller.attached())};
_.f.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.f.onPopupClosed=function(){this.reset()};
_.f.close=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.f.onClickSave=function(){var y=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var W=[];this.nameInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&W.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var c=Number(this.privacyInput.value);isNaN(c)||W.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:c})}this.votingInput.value!==null&&(c=this.votingInput.value)&&W.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:c});if(W.length>0){var Z;_.g((Z=this.data)==null?void 0:Z.updateSettingsEndpoint,_.KF).actions=W;var G;if((G=this.data)==null?0:G.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){y.close()}}}),this.isPlaylistEditComplete=!0}}};
_.f.computePrivacyBadge=function(y){return y?[{metadataBadgeRenderer:y}]:[]};
_.f.computeEditorData=function(y){var W,c;return y==null?void 0:(W=y.sections)==null?void 0:(c=W[0])==null?void 0:c.playlistSettingsEditorCasualSectionRenderer};
_.f.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.f.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}}}}}};
_.f.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"}))};
_.f.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.f.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.f.isNameChanged=function(){var y,W,c;return(((y=this.editorData)==null?void 0:(W=y.name)==null?void 0:(c=W.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.nameInput.value||"")};
_.f.isDescriptionChanged=function(){var y,W,c;return(((y=this.editorData)==null?void 0:(W=y.description)==null?void 0:(c=W.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.descriptionInput.value||"")};
_.f.isPrivacyChanged=function(){var y,W,c,Z,G,D,Y,u;return((Y=(y=this.editorData)==null?void 0:(W=y.privacy)==null?void 0:(c=W.dropdownFormFieldRenderer)==null?void 0:(Z=c.dropdown)==null?void 0:(G=Z.dropdownRenderer)==null?void 0:(D=G.entries)==null?void 0:D.find(function(t){var b;return t==null?void 0:(b=t.privacyDropdownItemRenderer)==null?void 0:b.isSelected}))==null?void 0:(u=Y.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.privacyInput.value};
_.f.isVotingChanged=function(){var y,W,c,Z,G,D,Y,u;return((Y=(y=this.editorData)==null?void 0:(W=y.voting)==null?void 0:(c=W.dropdownFormFieldRenderer)==null?void 0:(Z=c.dropdown)==null?void 0:(G=Z.dropdownRenderer)==null?void 0:(D=G.entries)==null?void 0:D.find(function(t){var b;return t==null?void 0:(b=t.privacyDropdownItemRenderer)==null?void 0:b.isSelected}))==null?void 0:(u=Y.privacyDropdownItemRenderer)==null?void 0:u.int32Value)!==this.votingInput.value};
var vH=AO6;vH.prototype.onPopupClosed=vH.prototype.onPopupClosed;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],vH.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],vH.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],vH.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],vH.prototype,"data",void 0);_.x([_.L({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.e("design:type",Array)],vH.prototype,"privacyBadge",void 0);_.x([_.L({computed:"computeEditorData(data)"}),_.e("design:type",Object)],vH.prototype,"editorData",void 0);_.x([_.L(),_.e("design:type",Object)],vH.prototype,"isPlaylistEditComplete",void 0);_.x([_.L(),_.e("design:type",Object)],vH.prototype,"isCollabEngagementDisabled",void 0);
_.x([_.L({value:{REQUIRED_LABEL:_.bN("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.bN("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.e("design:type",Object)],vH.prototype,"addToStrings",void 0);_.x([_.L(),_.e("design:type",String)],vH.prototype,"closeButtonAriaLabel",void 0);_.x([_.L(),_.e("design:type",Object)],vH.prototype,"saveButton",void 0);_.x([_.jj("#name-input"),_.e("design:type",Object)],vH.prototype,"nameInput",void 0);
_.x([_.jj("#description-input"),_.e("design:type",Object)],vH.prototype,"descriptionInput",void 0);_.x([_.jj("#privacy-input"),_.e("design:type",Object)],vH.prototype,"privacyInput",void 0);_.x([_.jj("#voting-input"),_.e("design:type",Object)],vH.prototype,"votingInput",void 0);_.x([_.jj("#scroller"),_.e("design:type",Object)],vH.prototype,"JSC$18138_scroller",void 0);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vH.prototype,"onPopupClosed",null);_.x([_.L(),_.e("design:type",Object)],vH.prototype,"onValueChanged",void 0);vH=_.x([_.d({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],vH);
_.T(vH,"ytd-playlist-settings-editor-renderer",function(){if(Qa9===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);Qa9=y}y=Qa9;return y},{mode:1});var hRd;_.bv("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var BEf=function(){return _.v.apply(this,arguments)||this};
_.R(BEf,_.v);_.f=BEf.prototype;_.f.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}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.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 y=this.get("data.nextButton.buttonRenderer.navigationEndpoint");y&&(this.nextNavigationEndpoint=y,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.f.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 y={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",y)}}};
_.f.onPopupOpened=function(y){y.detail!==this&&y.detail!==this.hostElement||!_.O("enable_premium_voluntary_pause")||_.GG(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.f.onNextButtonTap=function(){var y=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);y&&this.ytdOpenPopupBehavior.openPopup(y)};
_.f.updateSelectedResponseIndexFromBinding=function(y){this.selectedResponseIndex=y.detail.value};
var dy=BEf;dy.prototype.onPopupOpened=dy.prototype.onPopupOpened;dy.prototype.onSelectedResponseIndexChange=dy.prototype.onSelectedResponseIndexChange;dy.prototype.dataChanged=dy.prototype.dataChanged;_.x([_.C(_.CB),_.e("design:type",Object)],dy.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],dy.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],dy.prototype,"selectedResponseIndex",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dy.prototype,"dataChanged",null);_.x([_.H("selectedResponseIndex"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],dy.prototype,"onSelectedResponseIndexChange",null);
_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],dy.prototype,"onPopupOpened",null);dy=_.x([_.d({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],dy);
_.T(dy,"ytd-red-cancel-survey-renderer",function(){if(hRd!==void 0)return hRd;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return hRd=y},{mode:1});var HCQ;var L09=function(){var y=_.v.apply(this,arguments)||this;y.closeButtonAriaLabel=_.bN("SBOX_INAPPROPRIATE_CANCEL");return y};
_.R(L09,_.v);L09.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
L09.prototype.onClickClose=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
var SW=L09;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],SW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],SW.prototype,"rendererStamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],SW.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],SW.prototype,"closeButtonAriaLabel",void 0);SW=_.x([_.d({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],SW);
_.T(SW,"ytd-search-filter-options-dialog-renderer",function(){if(HCQ!==void 0)return HCQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return HCQ=y},{mode:1});var vqQ;var Gu3=function(){return function(y){y=y.availabilityType;return y===void 0||y==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||y==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var dsd=function(){var y=_.v.apply(this,arguments)||this;y.qualityOptions=[];y.upsellOptions=[];y.showUpsellSection=!1;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.rememberSettingsChecked=!1;return y};
_.R(dsd,_.v);_.f=dsd.prototype;_.f.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}}}}};
_.f.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.f.updateQualityOptions=function(){if(this.formats===void 0)_.GG(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var y=[],W=[];this.showUpsellSection=!1;for(var c=_.z(this.formats),Z=c.next();!Z.done;Z=c.next())(Z=Z.value)&&(Z.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?W.push(Z):y.push(Z));y.length&&(this.qualityOptions=ZdS(y));W.length&&(this.showUpsellSection=!0,this.upsellOptions=ZdS(W))}};
_.f.updateRememberString=function(){if(this.downloadQualityPickerEntity)var y=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var W;y=(W=this.data)==null?void 0:W.premiumRememberSettingString}else{var c;y=(c=this.data)==null?void 0:c.rememberSettingString}y=y===void 0?_.bN("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):y;this.rememberSettingsCheckboxRenderer={title:_.wK(y),disabled:!1}};
_.f.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.dJ.Object.defineProperties(dsd.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(y=this.data)==null?void 0:y.qualityFormats}}});
var TJ=dsd;TJ.prototype.updateRememberString=TJ.prototype.updateRememberString;TJ.prototype.updateQualityOptions=TJ.prototype.updateQualityOptions;TJ.prototype.dataChanged=TJ.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],TJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],TJ.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TJ.prototype,"data",void 0);
_.x([_.C(_.$s),_.e("design:type",Object)],TJ.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Boolean)],TJ.prototype,"selectedUpsellQuality",void 0);_.x([_.L({computed:"computeIcon_(data.premiumIcon)",value:""}),_.e("design:type",String)],TJ.prototype,"premiumIcon",void 0);_.x([_.L({selector:W$d,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.e("design:type",Object)],TJ.prototype,"downloadQualityPickerEntity",void 0);
_.x([_.L(),_.e("design:type",Array)],TJ.prototype,"qualityOptions",void 0);_.x([_.L(),_.e("design:type",Array)],TJ.prototype,"upsellOptions",void 0);_.x([_.L(),_.e("design:type",Object)],TJ.prototype,"showUpsellSection",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],TJ.prototype,"darkerDarkTheme",void 0);_.x([_.L(),_.e("design:type",Object)],TJ.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.x([_.jj("#remember-settings"),_.e("design:type",HTMLInputElement)],TJ.prototype,"rememberSettingsCheckbox",void 0);_.x([_.L(),_.e("design:type",Object)],TJ.prototype,"rememberSettingsChecked",void 0);_.x([_.L(),_.e("design:type",Function)],TJ.prototype,"onRememberSettingsCheckedChanged",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TJ.prototype,"dataChanged",null);
_.x([_.H("downloadQualityPickerEntity"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TJ.prototype,"updateQualityOptions",null);_.x([_.H("selectedUpsellQuality"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TJ.prototype,"updateRememberString",null);TJ=_.x([_.d({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],TJ);
_.T(TJ,"ytd-download-quality-selector-content",function(){if(vqQ!==void 0)return vqQ;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return vqQ=y},{mode:1});var Sv3;var TEQ=function(){var y=_.v.apply(this,arguments)||this;y.selectedUpsellQuality=!1;y.qualityOptions=[];y.darkerDarkTheme=_.O("web_darker_dark_theme");y.useUpsellDismissAlternate=_.O("use_not_now_dl_upsell_dismiss_cta");y.shouldShowAlternateUpsellDimiss=!1;y.rememberSettings=!1;y.rememberSettingsChecked=!1;y.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};y.rememberSettingsCheckedChanged=function(W){y.rememberSettingsChecked=W};
return y};
_.R(TEQ,_.v);_.f=TEQ.prototype;
_.f.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wK(_.bN("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wK(_.bN("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.wK(_.bN("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.wK(_.bN("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.f.updateQualityOptions=function(){this.formats===void 0?_.GG(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=ZdS(this.formats)};
_.f.onQualityOptionsSelect=function(y){if(this.qualityOptions&&y){y!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var W=_.z(this.qualityOptions.entries()),c=W.next();!c.done;c=
W.next()){c=_.z(c.value);var Z=c.next().value;c=c.next().value;var G=void 0,D=void 0;if(((G=c)==null?void 0:(D=G.settingsRadioOptionRenderer)==null?void 0:D.id)===y){this.selectedQualityIndex=Z;y=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((y=this.formats[Z])==null?void 0:y.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.f.onClickSubmit=function(){var y;if((y=this.downloadButtonRenderer)==null||!y.isDisabled){var W,c;y=(c=(W=this.data)==null?void 0:W.onSubmitEndpoint)!=null?c:{};var Z,G;if(this.formats&&(((Z=_.g(y,_.yL))==null?0:Z.videoId)||((G=_.g(y,_.WG))==null?0:G.playlistId))){var D,Y,u,t,b,r;W={formatType:(t=(D=this.formats)==null?void 0:(Y=D[(u=this.selectedQualityIndex)!=null?u:0])==null?void 0:Y.format)!=null?t:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(b=this.getOfflineEndpoint(y))==null?void 0:(r=b.actionParams)==null?void 0:r.settingsAction)};this.getOfflineEndpoint(y).actionParams=W;this.ytComponentBehavior.resolveCommand(y)}_.GG(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.f.onClickUpsell=function(){var y;if((y=this.upsellButtonRenderer)==null||!y.isDisabled){var W,c;y=(c=(W=this.data)==null?void 0:W.upsellEndpoint)!=null?c:{};this.ytComponentBehavior.resolveCommand(y);_.GG(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);W="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Z,G,D,Y;W=(Y=(Z=this.formats)==null?void 0:(G=Z[(D=this.selectedQualityIndex)!=null?D:0])==null?void 0:G.format)!=null?Y:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:W}})}};
_.f.onClickClose=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.f.getOfflineSettingsAction=function(y,W){return y?W===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":W:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.f.getOfflineEndpoint=function(y){return _.g(y,_.yL)?_.g(y,_.yL):_.g(y,_.WG)};
_.dJ.Object.defineProperties(TEQ.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.wK(_.bN("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var y;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(y=this.data)==null?void 0:y.qualityFormats}}});
var ak=TEQ;ak.prototype.updateQualityOptions=ak.prototype.updateQualityOptions;ak.prototype.dataChanged=ak.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],ak.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ak.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Number)],ak.prototype,"selectedQualityIndex",void 0);_.x([_.L(),_.e("design:type",Object)],ak.prototype,"selectedUpsellQuality",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],ak.prototype,"ytdReduxBehavior",void 0);
_.x([_.L({selector:W$d,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.e("design:type",Object)],ak.prototype,"downloadQualityPickerEntity",void 0);_.x([_.L(),_.e("design:type",Array)],ak.prototype,"qualityOptions",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],ak.prototype,"darkerDarkTheme",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],ak.prototype,"useUpsellDismissAlternate",void 0);
_.x([_.L(),_.e("design:type",Object)],ak.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.x([_.L(),_.e("design:type",Object)],ak.prototype,"downloadButtonRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],ak.prototype,"upsellButtonRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],ak.prototype,"cancelButtonRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],ak.prototype,"upsellCancelButtonRenderer",void 0);_.x([_.L(),_.e("design:type",Object)],ak.prototype,"rememberSettings",void 0);
_.x([_.L(),_.e("design:type",Object)],ak.prototype,"rememberSettingsChecked",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ak.prototype,"dataChanged",null);_.x([_.H("downloadQualityPickerEntity"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],ak.prototype,"updateQualityOptions",null);ak=_.x([_.d({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],ak);
_.T(ak,"ytd-download-quality-selector-renderer",function(){if(Sv3!==void 0)return Sv3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Sv3=y},{mode:1});var aMD;var xsZ=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(xsZ,_.v);xsZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xsZ.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"}}}}};
var xc=xsZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xc.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],xc.prototype,"darkerDarkTheme",void 0);_.x([_.L({computed:"computeIcon_(data.infoIcon)"}),_.e("design:type",Object)],xc.prototype,"infoIcon",void 0);
_.x([_.L({computed:"computeIcon_(data.warningIcon)"}),_.e("design:type",Object)],xc.prototype,"warningIcon",void 0);xc=_.x([_.d({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],xc);
_.T(xc,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(aMD!==void 0)return aMD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return aMD=y},{mode:1});var iCS;var MnZ=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(MnZ,_.v);MnZ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MnZ.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"}}}}};
var iy=MnZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],iy.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],iy.prototype,"darkerDarkTheme",void 0);iy=_.x([_.d({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],iy);
_.T(iy,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(iCS!==void 0)return iCS;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return iCS=y},{mode:1});var eR3;var Mb=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(Mb,_.v);Mb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Mb.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"}}}}};
Mb.prototype.onServiceRequestSentOrCompleted=function(y,W){W&&W.actions&&W.actions.length>0&&_.GG(this.hostElement,"yt-close-popup-action",[this.is])};
var eW=Mb;eW.prototype.onServiceRequestSentOrCompleted=eW.prototype.onServiceRequestSentOrCompleted;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],eW.prototype,"darkerDarkTheme",void 0);_.x([_.L(),_.e("design:type",Object)],eW.prototype,"data",void 0);
_.x([_.B("yt-service-request-completed"),_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],eW.prototype,"onServiceRequestSentOrCompleted",null);eW=_.x([_.d({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],eW);
_.T(eW,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(eR3!==void 0)return eR3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return eR3=y},{mode:1});var wx3;var qvH=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.submitButtonDisabled=!0;return y};
_.R(qvH,_.v);_.f=qvH.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.f.onDataChanged=function(){var y,W,c;if(((y=this.data)==null?void 0:(W=y.confirmButton)==null?void 0:(c=W.buttonRenderer)==null?void 0:c.isDisabled)!==void 0){var Z,G,D;this.submitButtonDisabled=(Z=this.data)==null?void 0:(G=Z.confirmButton)==null?void 0:(D=G.buttonRenderer)==null?void 0:D.isDisabled}};
_.f.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.f.updateSubmitButtonDisabledFromBinding=function(y){this.submitButtonDisabled=y.detail.value};
_.f.updateSubmitButtonDisabledFromConfirmCheckbox=function(y){this.submitButtonDisabled=!y.detail.value};
var wy=qvH;wy.prototype.onDataChanged=wy.prototype.onDataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wy.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],wy.prototype,"darkerDarkTheme",void 0);
_.x([_.L(),_.e("design:type",Object)],wy.prototype,"submitButtonDisabled",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],wy.prototype,"onDataChanged",null);wy=_.x([_.d({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],wy);
_.T(wy,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(wx3!==void 0)return wx3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return wx3=y},{mode:1});var kX3;var jCZ=function(){return _.v.apply(this,arguments)||this};
_.R(jCZ,_.v);_.dJ.Object.defineProperties(jCZ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var y,W,c;return((y=this.data)==null?void 0:y.title)+" "+((W=this.data)==null?void 0:W.metadataPrimary)+" "+((c=this.data)==null?void 0:c.metadataSecondary)}}});
var qb=jCZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],qb.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qb.prototype,"data",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],qb.prototype,"ariaLabel",null);qb=_.x([_.d({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],qb);
_.T(qb,"ytd-compact-product-list-item-renderer",function(){if(kX3!==void 0)return kX3;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return kX3=y},{mode:1});var yND;var WF6=function(){return _.v.apply(this,arguments)||this};
_.R(WF6,_.v);WF6.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]]"}}}}}};
_.dJ.Object.defineProperties(WF6.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
var kc=WF6;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],kc.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kc.prototype,"data",void 0);kc=_.x([_.d({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],kc);
_.T(kc,"ytd-compact-product-list-renderer",function(){if(yND!==void 0)return yND;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return yND=y},{mode:1});var cNf;var ZK3=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(ZK3,_.v);_.f=ZK3.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.f.getBackgroundUrl=function(){var y=this.get("data.headerImage.thumbnails");return y?"url("+_.h3(y,this.hostElement.clientWidth)+")":""};
_.f.onDataChanged=function(){var y=this.getBackgroundUrl();y&&(this.header.style.backgroundImage=y);y=_.NR();var W=_.EL(),c=this.get("data.trackingParams");c&&W&&y&&_.HA(y,W,_.Dz(c));y=_.z(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=y.next();!W.done;W=y.next())W.value.onShow()};
_.f.onPopupClosed=function(y){_.hq(y).localName==="ytd-membership-post-cancel-renderer"&&_.GG(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
var jr=ZK3;jr.prototype.onPopupClosed=jr.prototype.onPopupClosed;jr.prototype.onDataChanged=jr.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],jr.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],jr.prototype,"darkerDarkTheme",void 0);
_.x([_.jj("#header"),_.e("design:type",HTMLDivElement)],jr.prototype,"header",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],jr.prototype,"onDataChanged",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],jr.prototype,"onPopupClosed",null);jr=_.x([_.d({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],jr);
_.T(jr,"ytd-membership-post-cancel-renderer",function(){if(cNf!==void 0)return cNf;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return cNf=y},{mode:1});var Gmd;var f59=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(f59,_.v);f59.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
f59.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
var yB=f59;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],yB.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],yB.prototype,"darkerDarkTheme",void 0);_.x([_.jj("ytd-feedback-survey-renderer"),_.e("design:type",Object)],yB.prototype,"feedbackSurveyRenderer",void 0);yB=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],yB);
_.T(yB,"ytd-sponsorship-confirm-cancel-content",function(){if(Gmd!==void 0)return Gmd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Gmd=y},{mode:1});var od3;var DZH=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.maybeSubmitFeedback=function(){y.content&&y.content.maybeSubmitFeedback()};
return y};
_.R(DZH,_.v);_.f=DZH.prototype;_.f.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.f.onYtPopupOpened=function(y,W){W===this&&this.data&&this.data.onOpenCommands&&_.mq(this.hostElement,this.data.onOpenCommands,this.hostElement);_.GG(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.f.onYtPopupClosed=function(y,W){(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.mq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestCompleted=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.f.onYtServiceRequestError=function(y){_.bY(this.hostElement,y.detail.error.message)};
_.f.onDataChanged=function(){if(this.isAttached){var y=this.backgroundUrl;y&&(_.p(this.hostElement).querySelector("#header").style.backgroundImage=y)}};
_.dJ.Object.defineProperties(DZH.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return y?"url("+_.h3(y,this.hostElement.clientWidth)+")":""}}});
var WW=DZH;WW.prototype.onDataChanged=WW.prototype.onDataChanged;WW.prototype.onYtServiceRequestError=WW.prototype.onYtServiceRequestError;WW.prototype.onYtServiceRequestCompleted=WW.prototype.onYtServiceRequestCompleted;WW.prototype.onYtPopupClosed=WW.prototype.onYtPopupClosed;WW.prototype.onYtPopupOpened=WW.prototype.onYtPopupOpened;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],WW.prototype,"data",void 0);_.x([_.L({value:function(){return _.bN("SBOX_INAPPROPRIATE_CANCEL")}}),
_.e("design:type",String)],WW.prototype,"closeButtonAriaLabel",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],WW.prototype,"darkerDarkTheme",void 0);_.x([_.jj("#scrollable"),_.e("design:type",Object)],WW.prototype,"scrollable",void 0);_.x([_.jj("ytd-sponsorship-confirm-cancel-content"),_.e("design:type",Object)],WW.prototype,"content",void 0);
_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],WW.prototype,"onYtPopupOpened",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],WW.prototype,"onYtPopupClosed",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],WW.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],WW.prototype,"onYtServiceRequestError",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],WW.prototype,"onDataChanged",null);
WW=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],WW);
_.T(WW,"ytd-sponsorship-confirm-cancel-renderer",function(){if(od3!==void 0)return od3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return od3=y},{mode:_.xm("kevlar_poly_si_batch_j081")?1:2});var zmS;var Yid=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(Yid,_.v);Yid.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
var cW=Yid;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],cW.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],cW.prototype,"darkerDarkTheme",void 0);cW=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],cW);
_.T(cW,"ytd-sponsorships-celebration-content",function(){if(zmS!==void 0)return zmS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return zmS=
y},{mode:1});var mZf;var sCZ=_.dl(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),uEB=function(){var y=_.v.apply(this,arguments)||this;y.scriptsAppended=!1;y.buttonOverrides={type:"tonal",style:"overlay-dark"};return y};
_.R(uEB,_.v);_.f=uEB.prototype;
_.f.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:_.O("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}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onDataChanged=function(){var y;(y=this.header)==null||y.style.setProperty("background-color",this.backgroundColor);if(y=this.headerImageUrl){var W;(W=this.header)==null||W.style.setProperty("background-image",y)}W=_.NR(4);y=_.EL(4);var c=this.get("data.trackingParams");if(c&&y&&W){var Z=_.Dz(c);_.HA(W,y,Z);_.O("combine_ve_grafts")?_.Zz().graftServerVe(c,y,4):_.HA(W,y,Z)}W=_.z(this.hostElement.querySelectorAll("yt-img-shadow"));for(y=W.next();!y.done;y=W.next())y.value.onShow();if(W=this.get("data.gtmId"))_.zI(W,
_.Nn("GL","")),this.setupConversionTracking()};
_.f.setupConversionTracking=function(){if(!this.scriptsAppended){var y=document.createElement("script");var W=_.iF(sCZ.join(""));_.M9(y,W);document.head.appendChild(y);y=document.createElement("noscript");y.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(y);this.scriptsAppended=!0}};
_.f.onPopupClosed=function(y){if(_.hq(y).localName==="ytd-sponsorships-celebration-renderer"){_.GG(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var W;this.data&&((W=this.data)==null?0:W.dismissCommand)&&_.km.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.dJ.Object.defineProperties(uEB.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.KZ(y)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return y?"url("+_.h3(y,this.hostElement.getBoundingClientRect().width)+")":""}}});
var Zo=uEB;Zo.prototype.onPopupClosed=Zo.prototype.onPopupClosed;Zo.prototype.onDataChanged=Zo.prototype.onDataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Zo.prototype,"data",void 0);_.x([_.jj("#header"),_.e("design:type",HTMLElement)],Zo.prototype,"header",void 0);
_.x([_.L(),_.e("design:type",Object)],Zo.prototype,"scriptsAppended",void 0);_.x([_.L(),_.e("design:type",Object)],Zo.prototype,"buttonOverrides",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Zo.prototype,"onDataChanged",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Zo.prototype,"onPopupClosed",null);
Zo=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],Zo);
_.T(Zo,"ytd-sponsorships-celebration-renderer",function(){if(mZf!==void 0)return mZf;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return mZf=y},{mode:1});var tY9;var GU=function(){var y=_.v.apply(this,arguments)||this;y.isToggleChecked=!1;return y};
_.R(GU,_.v);GU.prototype.onDataChanged=function(){var y;this.isToggleChecked=((y=this.data)==null?void 0:y.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
GU.prototype.close=function(){var y;((y=this.data)==null?0:y.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
GU.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var y,W=_.g((y=this.data)==null?void 0:y.switchButton,qkS);W&&(this.isToggleChecked&&W.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOnInnertubeCommand),!this.isToggleChecked&&W.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(W.switchOffInnertubeCommand))};
GU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var f0=GU;f0.prototype.onDataChanged=f0.prototype.onDataChanged;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],f0.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],f0.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],f0.prototype,"isToggleChecked",void 0);
_.x([_.L({value:_.bN("CLOSE")}),_.e("design:type",String)],f0.prototype,"closeButtonAriaLabel",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],f0.prototype,"onDataChanged",null);f0=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],f0);
_.T(f0,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(tY9!==void 0)return tY9;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return tY9=y},{mode:1});var nd6;var Xof=function(){return _.v.apply(this,arguments)||this};
_.R(Xof,_.v);_.f=Xof.prototype;_.f.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"}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.detached=function(){this.playerElement.stop()};
_.f.onYtServiceRequestCompleted=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.f.onYtServiceRequestError=function(y){_.bY(this.hostElement,y.detail.error.message)};
_.f.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.f.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.f.getTier=function(y,W){return!y||!y.tiers||W<0?null:_.g(y.tiers[W],W2B)};
_.f.moreThanOne=function(y){return!!(y&&y.length>1)};
_.f.tierOverviewTap=function(y){var W=this;this.selectedTier=y.model.index;_.Lv(this,function(){_.Z2(W.hostElement,"yt-refit")})};
_.f.computeSelectedClass=function(y,W){return this.isSelected(y,W)?"selected":""};
_.f.computeButtonAriaPressed=function(y,W){return this.isSelected(y,W)?"true":"false"};
_.f.isSelected=function(y,W){return y===W};
_.f.onDataChanged=function(){_.p(this.hostElement).querySelector("#header-overlay").style.visibility="";_.p(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 y=_.z(this.hostElement.querySelectorAll("yt-img-shadow")),
W=y.next();!W.done;W=y.next())W.value.onShow();var c;this.set("selectedTier",(c=this.get("data.targetTierIndex"))!=null?c:0);var Z;(y=(Z=this.data)==null?void 0:Z.onVisible)&&this.ytComponentBehavior.resolveCommand(y)};
_.f.initializeVe=function(y){var W=_.NR(),c=_.EL(),Z=this.get("data.trackingParams");c&&W&&(this.screenLayer=4,W=_.PI(_.sYI)(void 0,69877,{clientScreenNonce:W,visualElement:c},void 0,void 0,void 0),_.tXI(W,69877,4),c=_.EL(4),Z&&c&&(Z=_.Dz(Z),_.HA(W,c,Z),y&&(this.offerVideoVe=_.se(74659),_.HA(W,Z,this.offerVideoVe))))};
_.f.setHeaderBackground=function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.p(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.KZ(y);if(y=this.getHeaderImage())y=_.h3(y,screen.width),_.p(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+y+")"};
_.f.getHeaderImage=function(){var y=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&y?y:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f.setupVideoPlayer=function(y){var W=this,c,Z,G,D;return _.m(function(Y){if(Y.nextAddress==1)return c=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Z=W.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.O("kevlar_player_update_killswitch")?W.playerElement.update({args:{autoplay:c,video_id:y,player_params:Z}}):W.playerElement.loadVideoWithPlayerVars({autoplay:c,video_id:y,player_params:Z}),
_.n(Y,W.playerElement.getPlayerPromise(),2);G=Y.yieldResult;G.addEventListener("onStateChange",function(u){W.onPlayerStateChange(u)});
G.setScreenLayer(W.screenLayer);(D=_.NR(4))&&W.offerVideoVe&&_.Ll(D,W.offerVideoVe);c&&(W.pauseOtherPlayers(),W.playerElement.focusOnPlayer(),W.playerElement.getPlayer().hideControls(),_.Xc(_.KX,function(){W.fadeOutHeaderOverlay()},4E3));
_.F2(Y)})};
_.f.onPlayerStateChange=function(y){y===1?this.backgroundPlayerElement&&(y=this.backgroundPlayerElement.player_.getPlayerState(),y!==1&&y!==3||this.backgroundPlayerElement.pause()):y===0&&(_.p(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.p(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.f.fadeOutHeaderOverlay=function(){_.p(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.f.onHeaderTap=function(){if(this.offerVideo){_.p(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var y;((y=this.playerElement.player_)==null?void 0:y.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(y=_.NR(4))&&this.offerVideoVe&&_.SG(y,this.offerVideoVe)}};
_.f.getBackgroundImageLayerClass=function(y){return y?"background-image-layer-with-video":""};
_.f.getHeaderClass=function(y){return y?"header-with-video":""};
_.f.getHeaderOverlayClass=function(y){return y?"header-overlay-with-video":""};
_.f.getTitleContainerClass=function(y,W){return y?"title-container-with-video":W?"title-container-without-video-flexible":"title-container-without-video"};
_.f.tierTitleDisplayStatus=function(y){return this.moreThanOne(y)?"hide":"show"};
_.f.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.U().resolve(_.Cy).getPlayerElement():this.backgroundPlayerElement=_.HF();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var y=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=y===1||y===3;this.backgroundPlayerElement.pause()}};
_.f.isMiniplayerActive=function(){return _.U().resolve(_.Cy).isMiniplayerActive()};
_.f.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("selected-tier-changed",this.selectedTier))};
var oz=Xof;oz.prototype.selectedTierChangedForBinding=oz.prototype.selectedTierChangedForBinding;oz.prototype.onDataChanged=oz.prototype.onDataChanged;oz.prototype.onYtPopupClosed=oz.prototype.onYtPopupClosed;oz.prototype.onYtPopupOpened=oz.prototype.onYtPopupOpened;oz.prototype.onYtServiceRequestError=oz.prototype.onYtServiceRequestError;oz.prototype.onYtServiceRequestCompleted=oz.prototype.onYtServiceRequestCompleted;
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],oz.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],oz.prototype,"data",void 0);_.x([_.L({value:0}),_.e("design:type",Number)],oz.prototype,"selectedTier",void 0);
_.x([_.L({value:""}),_.e("design:type",String)],oz.prototype,"offerVideo",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],oz.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.x([_.L({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.kF(this)}}),
_.e("design:type",String)],oz.prototype,"playerId",void 0);_.x([_.jj("tp-yt-paper-dialog-scrollable"),_.e("design:type",Object)],oz.prototype,"scrollable",void 0);_.x([_.jj("ytd-sponsorships-tier-renderer"),_.e("design:type",Object)],oz.prototype,"tierRenderer",void 0);_.x([_.jj("#player"),_.e("design:type",Object)],oz.prototype,"playerElement",void 0);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],oz.prototype,"onYtServiceRequestCompleted",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],oz.prototype,"onYtServiceRequestError",null);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],oz.prototype,"onYtPopupOpened",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],oz.prototype,"onYtPopupClosed",null);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],oz.prototype,"onDataChanged",null);_.x([_.H("selectedTier"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],oz.prototype,"selectedTierChangedForBinding",null);
oz=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],oz);
_.T(oz,"ytd-sponsorships-offer-renderer",function(){if(nd6!==void 0)return nd6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return nd6=y},{mode:_.xm("kevlar_poly_si_batch_j077")?1:2});var bK3;var Do=function(){var y=_.v.apply(this,arguments)||this;y.buttonOverrides={type:"filled",style:"mono"};return y};
_.R(Do,_.v);Do.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}}}}}};
Do.prototype.backgroundColorChanged=function(){var y,W,c,Z=(W=_.g((y=this.data)==null?void 0:y.content,caQ))==null?void 0:(c=W.backgroundColor)==null?void 0:c.backgroundColor;Z&&(y=_.$$(Z),_.p(this.hostElement).querySelector("#banner").style.backgroundColor=y,_.p(this.hostElement).querySelector("#abstract-art").style.backgroundColor=y)};
Do.prototype.attached=function(){this.JSC$18224_scroller&&(this.JSC$18224_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18224_scroller.attached&&typeof this.JSC$18224_scroller.attached==="function"&&this.JSC$18224_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var zU=Do;zU.prototype.backgroundColorChanged=zU.prototype.backgroundColorChanged;_.x([_.L(),_.e("design:type",Object)],zU.prototype,"data",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("#scroller"),_.e("design:type",Object)],zU.prototype,"JSC$18224_scroller",void 0);_.x([_.L(),_.e("design:type",Object)],zU.prototype,"buttonOverrides",void 0);
_.x([_.H("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zU.prototype,"backgroundColorChanged",null);zU=_.x([_.d({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],zU);
_.T(zU,"ytd-sponsorships-promotion-celebration-renderer",function(){if(bK3!==void 0)return bK3;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return bK3=y},{mode:_.xm("kevlar_poly_si_batch_j077")?1:2});var rN9;var FFH;var UZH=function(){return _.v.apply(this,arguments)||this};
_.R(UZH,_.v);UZH.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
UZH.prototype.computeIsInitiallyChecked=function(y){return y===1};
var YO=UZH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],YO.prototype,"data",void 0);_.x([_.jj("#checkbox"),_.e("design:type",Object)],YO.prototype,"checkbox",void 0);YO=_.x([_.d({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],YO);
_.T(YO,"ytd-subscription-toggle-option-renderer",function(){if(FFH!==void 0)return FFH;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return FFH=y},{mode:1});var mG=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return y};
_.R(mG,_.v);mG.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"}}}};
mG.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mG.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var y=_.p(this.hostElement).querySelector("#options").selected;y=this.data.options[y].subscriptionRadioOptionRenderer.serviceEndpoint;var W=_.p(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");W&&y&&y.modifyChannelNotificationPreferenceEndpoint&&(W=W.getValue())&&(y.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[W]);_.U().resolve(_.i1).resolveCommand(y,{form:{element:this.hostElement}});
_.GG(this.hostElement,"yt-close-popup-action")};
_.dJ.Object.defineProperties(mG.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var y=this.data.options,W=0;W<y.length;W++){var c=y[W].subscriptionRadioOptionRenderer;if(c&&c.selected)return W}return null}}});
var sn=mG;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],sn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],sn.prototype,"eventForwardingBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],sn.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],sn.prototype,"darkerDarkTheme",void 0);_.x([_.A("data.options"),_.e("design:type",Object),_.e("design:paramtypes",[])],sn.prototype,"initialIndex",null);sn=_.x([_.d({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],sn);
_.T(sn,"ytd-subscription-notification-options-renderer",function(){if(rN9!==void 0)return rN9;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return rN9=y},{mode:1});var $Z6;var KFS=function(){return _.v.apply(this,arguments)||this};
_.R(KFS,_.v);var ur=KFS;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ur.prototype,"data",void 0);ur=_.x([_.d({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],ur);
_.T(ur,"ytd-tvfilm-offer-groups-renderer",function(){if($Z6!==void 0)return $Z6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return $Z6=y},{mode:1});var OKQ;var gdQ=function(){var y=_.v.apply(this,arguments)||this;y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(gdQ,_.v);_.f=gdQ.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.f.computeThumbnailClass=function(y){return y.thumbnailOverlays?y.isShow?"thumbnail-show":"thumbnail-movie":y.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.f.computeCommerceSectionClass=function(y){return y.offers&&y.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.f.computeTitleClass=function(y){return y.offers&&y.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.f.onDataChanged=function(){[].concat(_.No(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(y){y.onShow()})};
var tg=gdQ;tg.prototype.onDataChanged=tg.prototype.onDataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],tg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tg.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],tg.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tg.prototype,"darkerDarkTheme",void 0);
_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tg.prototype,"onDataChanged",null);tg=_.x([_.d({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],tg);
_.T(tg,"ytd-ypc-offers-overlay-renderer",function(){if(OKQ!==void 0)return OKQ;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return OKQ=y},{mode:_.xm("kevlar_poly_si_batch_j028")?1:2});var Rmd;var l5D=function(){this.usedMethods=new Set};
l5D.prototype.add=function(y){this.usedMethods.add(y)};
l5D.prototype.reset=function(){this.usedMethods.clear()};var I5Q=function(y,W){this.query=y;this.previousSearchQuery=W;this.id=Ed9++;if(!Nc6){W=_.Nn("SBOX_SETTINGS");y="https://"+((W==null?void 0:W.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var c=W==null?void 0:W.REQUEST_LANGUAGE;c&&(y+="&hl="+c);(c=W==null?void 0:W.REQUEST_DOMAIN)&&(y+="&gl="+c);y+="&client=youtube&gs_ri=youtube";(c=W==null?void 0:W.SUGG_EXP_ID)&&(y+="&sugexp="+encodeURIComponent(c));(c=W==null?void 0:W.PSUGGEST_TOKEN)&&(y+="&tok="+c);(W=
W==null?void 0:W.SESSION_INDEX)&&(y+="&authuser="+W);_.O("desktop_enable_visual_suggest")&&(y+="&h=180&w=320&ytvs=1");Nc6=y}},poH=function(y){var W="q="+encodeURIComponent(y.query);
y.previousSearchQuery&&(W+="&pq="+encodeURIComponent(y.previousSearchQuery));return W},PYD=function(){var y=_.Nn("SBOX_SETTINGS"),W={};
if(y==null?0:y.SEND_VISITOR_DATA)W["X-Goog-Visitor-Id"]=y==null?void 0:y.VISITOR_DATA;return W},JN9=function(y){var W=Nc6;
W+="&gs_id="+y.id.toString(36);W+="&q="+encodeURIComponent(y.query);W+="&cp="+y.query.length;y.previousSearchQuery&&(W+="&pq="+encodeURIComponent(y.previousSearchQuery));(y=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(W+="&video_id="+y);return W},Ed9=0,Nc6="";var VY9=function(y,W){this.text=y;this.bold=W},CY9=function(y,W,c){this.input=W;
this.index=c;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=y[0];this.type=y[1];this.subtypes=y[2];var Z;this.displayText=o_Z((Z=y[3])==null?void 0:Z.b);var G;this.ignoredPrefix=o_Z((G=y[3])==null?void 0:G.a);var D,Y;this.hasNewVideo=((D=y[3])==null?void 0:(Y=D.zam)==null?void 0:Y.toString())==="true"?!0:!1;var u;this.visualSuggestUrl=(u=y[3])==null?void 0:u.zai},QCH=function(y){var W=[],c,Z=(c=y.displayText)!=null?c:y.text;
if(y.type===33)return W.push(new VY9(Z,!1)),W;if(Z.length>=y.input.length&&Z.substring(0,y.input.length)===y.input)W.push(new VY9(y.input,!1)),W.push(new VY9(Z.substring(y.input.length),!0));else{var G=new Set(y.input.split(/\s/)),D=Z.split(/\s/);W=D.map(function(Y,u){return new VY9(Y.trim()+(u===D.length-1?"":" "),!G.has(Y))})}return W};var ANH=function(y){this.rawResponse=["",[],{}];this.suggestions=[];try{var W=JSON.parse(DLf(y));if(typeof W==="object"&&W!==null)this.rawResponse=W;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(Z){console.log("Suggest: Failed to parse SuggestResponse!");return}var c=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Z,G){return new CY9(Z,c,G)})};var hm6=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new l5D;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18260_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},Bcg,HK9=function(){Bcg||(Bcg=new hm6);
return Bcg};
hm6.prototype.updateSuggestions=function(y){var W=this;this.availableSuggestions.forEach(function(c){W.previousSuggestions[c]=!0});
this.availableSuggestions=y.map(function(c){var Z=c.type.toString();c.subtypes.length>0&&(Z+="i"+c.subtypes.join("i"),Z+="k"+c.suggestionSources.COMPLETE_SERVER.toString());return Z})};
var LFH=function(y,W){var c=Date.now();y.firstEditTime<0&&(y.firstEditTime=c);W&&(y.lastQueryBuildTime=c);y.lastEditTime=c};
hm6.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18260_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var vdf=function(y){var W="";y.availableSuggestions.forEach(function(G){delete y.previousSuggestions[G]});
for(var c=_.z(Object.keys(y.previousSuggestions)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,y.previousSuggestions[Z]&&(W+=(W?"j":"")+Z);return W},dZg=function(y,W){var c=[];
W&&(c[1]=W.toString());c[0]="youtube";c[7]=Date.now()-y.startTime;c[6]=y.sessionNumber;y.zeroPrefixSuggestionCount>=0&&(c[33]=y.zeroPrefixSuggestionCount);c[13]=y.outOfSyncResponseCount;if(y.availableSuggestions.length>0){for(var Z=W="",G=0,D=_.z(y.availableSuggestions),Y=D.next();!Y.done;Y=D.next())Y=Y.value,Y!==Z&&(G>1&&(W+="l"+G),W+=(Z?"j":"")+Y,G=0,Z=Y),G+=1;G>1&&(W+="l"+G);c[3]=W}c[35]=vdf(y);y.selectedSuggestionIndex>=0&&(c[2]=y.selectedSuggestionIndex);var u;if(W=(u=_.Nn("SBOX_SETTINGS"))==
null?void 0:u.SUGG_EXP_ID)c[19]=y.normalize(W),u=0,y.experimentTriggeredBeforeFinal&&(u|=1),y.experimentTriggeredFinal&&(u|=2),c[20]=u;c[26]=Array.from(y.inputMethodsTracker.usedMethods).join("j");if(y.JSC$18260_totalRoundTripTime>0){c[15]=y.JSC$18260_totalRoundTripTime;c[14]=y.maxRoundTripTime;u=[];for(G=W=0;G<10;G++)Z=y.roundTripTimeHistogram[G],Z===0?W++:(W>1?u.push(G+"-"+Z):W===1?u.push("0j"+Z):u.push(Z.toString()),W=0);u=u.join("j");c[16]=u}y.zeroPrefixRoundTripTime>0&&(c[36]=y.zeroPrefixRoundTripTime);
y.lastQueryBuildTime>0&&(c[18]=y.lastQueryBuildTime-y.startTime);y.firstEditTime>0&&(c[4]=y.firstEditTime-y.startTime);y.lastEditTime>0&&(c[5]=y.lastEditTime-y.startTime);return c.join(".")};
hm6.prototype.normalize=function(y){return y.replaceAll(".","-")};
var SiZ=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Tc9=function(){var y=_.v.apply(this,arguments)||this;y.microphoneSpinnerActive=!1;y.noAnimations=!1;y.boundExitClick=function(){y.onExitButtonClick()};
y.speechOverlayClassName="";y.isLevelAnimating=!1;y.playCloseDialogAudioFeedback=!0;y.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return y};
_.R(Tc9,_.v);_.f=Tc9.prototype;_.f.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.f.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Ih6()};
_.f.dataChanged=function(){this.logDialog()};
_.f.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var y;(y=this.manager.audioPlayer)!=null&&(y.JSC$17548_audioEnabled=!1)}this.manager.stop();(y=this.manager.audioPlayer)!=null&&(y.JSC$17548_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.f.handleSpeechQueryCompleteAction=function(y){var W=y.navigationAction;W&&(y.trackingParams&&_.Zz().graftServerVe(y.trackingParams,this.dialogVe,5),_.Z2(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getNavigationParams(W),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.f.onExitButtonClick=function(){this.closeDialog()};
_.f.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var y;if((y=this.manager)!=null){var W;(W=y.audioPlayer)==null||VY(W,"failure");y.setState("microphone-off");y.stop()}}else(y=this.manager)==null||y.start()};
_.f.transcriptionChanged=function(){var y,W;(((y=this.transcription)==null?0:y.low)||((W=this.transcription)==null?0:W.high))&&this.setState("transcribing",this.transcription)};
_.f.stateChanged=function(){this.setState(this.state,this.transcription)};
_.f.logDialog=function(){var y;(y=this.data)!=null&&y.trackingParams&&(y=_.Zz(),_.wR(y,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=y.graftServerVe(this.data.trackingParams,void 0,5))};
_.f.getNavigationParams=function(y){var W={};if(_.O("web_yt_searchbox")){var c=HK9();c.inputMethodsTracker.add(6);c=dZg(c,15);W.gs_l=c;var Z;W.oq=((Z=_.g(y,_.Dl))==null?void 0:Z.query)||""}else if(y=window.ytvoicesearchloggingparams){if(y=y())W.oq=y.oq,W.gs_l=y.gs_l}else _.Va(Error("ll"));return W};
_.f.closeDialog=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.f.setState=function(y,W){if(this.data){var c=this.data,Z={};switch(y){case "listening":Z={headerText:c.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "timeout":Z={headerText:c.promptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,microphoneAriaLabel:c.promptMicrophoneLabel};break;case "microphone-off":Z={headerText:c.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,
microphoneAriaLabel:c.promptMicrophoneLabel};break;case "transcribing":(W==null?0:W.low)||(W==null?0:W.high)?Z={transcriptionLow:W==null?void 0:W.low,transcriptionHigh:W==null?void 0:W.high,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel}:Z={headerText:c.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "processing":Z={headerText:c.loadingHeader,microphoneState:"processing",microphoneAriaLabel:c.microphoneButtonAriaLabel};
break;case "offline":Z={headerText:c.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:c.connectionErrorMicrophoneLabel,microphoneAriaLabel:c.connectionErrorMicrophoneLabel};break;case "permission":Z={headerText:c.permissionsHeader,bodyLine1:c.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:c.permissionsSubtext};break;case "permission-denied":Z={headerText:c.disabledHeader,bodyLine1:c.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:c.disabledSubtext}}Z.className=
y;this.speechOverlayState=Z;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.f.setMicrophoneState=function(y){var W=this.isLevelAnimating;this.isLevelAnimating=y==="speaking";!W&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=y==="processing"&&!this.noAnimations};
_.f.setClass=function(y){this.speechOverlayClassName&&_.i0(this.hostElement,this.speechOverlayClassName,!1);y&&(this.speechOverlayClassName=y,_.i0(this.hostElement,y,!0))};
_.f.runLevelAnimation=function(){var y=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var W=1+Math.random()*.75,c=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+c/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+W+")");_.KX.addJob(function(){y.runLevelAnimation()},3,c)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
var n0=Tc9;n0.prototype.stateChanged=n0.prototype.stateChanged;n0.prototype.transcriptionChanged=n0.prototype.transcriptionChanged;n0.prototype.onPopupClosed=n0.prototype.onPopupClosed;n0.prototype.dataChanged=n0.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],n0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],n0.prototype,"rendererStamperBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],n0.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],n0.prototype,"eventForwardingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],n0.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],n0.prototype,"speechOverlayState",void 0);
_.x([_.L(),_.e("design:type",Object)],n0.prototype,"microphoneSpinnerActive",void 0);_.x([_.L({type:_.O("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.e("design:type",Object)],n0.prototype,"noAnimations",void 0);_.x([_.L({selector:function(y){var W;return(W=y.voiceSearch)==null?void 0:W.transcription}}),
_.e("design:type",Object)],n0.prototype,"transcription",void 0);_.x([_.L({selector:function(y){var W;return(W=y.voiceSearch)==null?void 0:W.overlay}}),
_.e("design:type",String)],n0.prototype,"state",void 0);_.x([_.L(),_.e("design:type",Object)],n0.prototype,"boundExitClick",void 0);_.x([_.jj("#microphone-levels"),_.e("design:type",HTMLElement)],n0.prototype,"level",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],n0.prototype,"dataChanged",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],n0.prototype,"onPopupClosed",null);
_.x([_.Gs("transcription"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],n0.prototype,"transcriptionChanged",null);_.x([_.Gs("state"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],n0.prototype,"stateChanged",null);n0=_.x([_.d({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],n0);
_.T(n0,"ytd-voice-search-dialog-renderer",function(){if(Rmd!==void 0)return Rmd;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Rmd=y},{mode:1});var a5S;var xZd=function(){var y=_.v.apply(this,arguments)||this;y.isOverlay=!1;y.hidden=!1;return y};
_.R(xZd,_.v);_.f=xZd.prototype;_.f.onPopupClosed=function(){this.toggleIconState(!1)};
_.f.computeIcon=function(){var y,W,c;return(W=_.g((y=this.data)==null?void 0:y.icon,DBH))==null?void 0:(c=W.icon)==null?void 0:c.iconType};
_.f.computeIconBadgeShape=function(){var y;return{iconBadgeType:"cart",iconBadgeText:(y=this.iconBadgeEntity)==null?void 0:y.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.f.onClick=function(){var y;(y=this.data)!=null&&y.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.f.computeHidden=function(y){return!y};
_.f.toggleIconState=function(y){this.iconButton&&(this.iconButton.pressed=y)};
var XU=xZd;XU.prototype.onPopupClosed=XU.prototype.onPopupClosed;_.x([_.C(_.$s),_.e("design:type",Object)],XU.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],XU.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],XU.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],XU.prototype,"isOverlay",void 0);
_.x([_.L({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.e("design:type",Object)],XU.prototype,"hidden",void 0);_.x([_.L({selectorArgs:["data.iconBadgeEntityKey"],selector:function(y,W){return _.fq(y.entities,"iconBadgeEntity",W)}}),
_.e("design:type",Object)],XU.prototype,"iconBadgeEntity",void 0);_.x([_.jj("yt-icon-button"),_.e("design:type",HTMLButtonElement)],XU.prototype,"iconButton",void 0);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],XU.prototype,"onPopupClosed",null);XU=_.x([_.d({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],XU);
_.T(XU,"ytd-icon-badge-topbar-button-renderer",function(){if(a5S!==void 0)return a5S;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return a5S=y},{mode:1});var iKD;var MY6=function(){var y=_.v.apply(this,arguments)||this;y.premiumOptions=[];y.darkerDarkTheme=_.O("web_darker_dark_theme");return y};
_.R(MY6,_.v);MY6.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.dJ.Object.defineProperties(MY6.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
var br=MY6;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],br.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Array)],br.prototype,"premiumOptions",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],br.prototype,"darkerDarkTheme",void 0);_.x([_.A("premiumOptions"),_.e("design:type",Object),_.e("design:paramtypes",[])],br.prototype,"hasPremiumOptions",null);
br=_.x([_.d({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],br);
_.T(br,"ytd-offline-promo-content",function(){if(iKD!==void 0)return iKD;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return iKD=y},{mode:1});var em6;var ro=function(){var y=_.v.apply(this,arguments)||this;y.premiumOptions=[];return y};
_.R(ro,_.v);ro.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var y;this.premiumOptions=fi9((y=this.data)==null?void 0:y.formats)};
ro.prototype.onClickSubmit=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var y;(y=_.HF())==null||y.pause()};
ro.prototype.attached=function(){this.JSC$18280_scroller&&(this.JSC$18280_scroller.dialogElement=this.hostElement.parentNode)};
_.dJ.Object.defineProperties(ro.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
var FU=ro;FU.prototype.dataChanged=FU.prototype.dataChanged;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],FU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],FU.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],FU.prototype,"data",void 0);
_.x([_.L({computed:"computeIcon_(data.headersIcon)",value:""}),_.e("design:type",String)],FU.prototype,"headersIcon",void 0);_.x([_.L(),_.e("design:type",Array)],FU.prototype,"premiumOptions",void 0);_.x([_.jj("#scroller"),_.e("design:type",Object)],FU.prototype,"JSC$18280_scroller",void 0);_.x([_.A("headersIcon"),_.e("design:type",Object),_.e("design:paramtypes",[])],FU.prototype,"showIcon",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],FU.prototype,"dataChanged",null);FU=_.x([_.d({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],FU);
_.T(FU,"ytd-offline-promo-renderer",function(){if(em6!==void 0)return em6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return em6=y},{mode:1});var woS;var qi9=function(){var y=_.v.apply(this,arguments)||this;y.playbackPauseInterval=NaN;y.isLoading=!1;y.hasError=!1;y.dialogClass="";y.youtubeLabel=_.bN("LOGO_ALT_LABEL",{},"YouTube Home");y.logoName="yt-logos-ext:yt-logo-updated";y.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return y};
_.R(qi9,_.v);_.f=qi9.prototype;_.f.onDataChange=function(){var y;if(this.showEOMV1Text=!((y=this.data)==null||!y.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.f.attached=function(){this.pausePlayer()};
_.f.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.f.handleLangSelect=function(y){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[y.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.f.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.f.handleSaveConsent=function(y){var W=this;this.showLoadingSpinner();this.showLoadingSpinner();TZd(_.g(y,fZf)).catch(function(c){_.Rs(new _.ul("Something went wrong when save consent "+(c.message?c.message:c)+"."));W.hideLoadingSpinner();W.showErrorMessage()})};
_.f.handleDisablePersonalization=function(y){var W=this;this.showLoadingSpinner();azH(_.g(y,Gg6)).then(function(){W.dialog.close();W.resumePlayer()}).catch(function(c){_.Rs(new _.ul("Something went wrong when disable personalization "+(c.message?c.message:c)+"."));
W.hideLoadingSpinner();W.showErrorMessage()})};
_.f.showLoadingSpinner=function(){var y=this;this.showSpinnerJobId=_.KX.addLowPriorityJob(function(){y.isLoading=!0},500)};
_.f.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.KX.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.f.showErrorMessage=function(){var y=this;this.hasError=!0;_.KX.addLowPriorityJob(function(){y.hasError=!1},2E3)};
_.f.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.y2(function(){try{var y=_.HF();y&&y.pause()}catch(W){}},100))};
_.f.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var y=_.HF();y&&y.play()}catch(W){}};
_.dJ.Object.defineProperties(qi9.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.eomV1Text)return[];y=[];for(var W=["SHIELD","WARNING","BAR_CHART"],c=this.data.eomV1Text.essentialCookieMsg.items,Z=0;Z<W.length&&Z<c.length;Z++)y.push({icon:W[Z],text:c[Z]});return y}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var y;if((y=this.data)==null||!y.eomV1Text)return[];y=[];for(var W=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],c=this.data.eomV1Text.nonEssentialCookieMsg.items,Z=0;Z<W.length&&Z<c.length;Z++)y.push({icon:W[Z],text:c[Z]});return y}}});
var Un=qi9;Un.prototype.onDataChange=Un.prototype.onDataChange;_.x([_.L(),_.e("design:type",Object)],Un.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],Un.prototype,"showEOMV1Text",void 0);_.x([_.L(),_.e("design:type",Object)],Un.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Object)],Un.prototype,"hasError",void 0);_.x([_.L(),_.e("design:type",Number)],Un.prototype,"showSpinnerJobId",void 0);_.x([_.L(),_.e("design:type",Object)],Un.prototype,"dialogClass",void 0);
_.x([_.jj("#dialog"),_.e("design:type",Object)],Un.prototype,"dialog",void 0);_.x([_.jj("#cb-header"),_.e("design:type",HTMLElement)],Un.prototype,"header",void 0);_.x([_.jj("#lang-select"),_.e("design:type",HTMLElement)],Un.prototype,"langSelect",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Un.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Un.prototype,"ytComponentBehavior",void 0);
_.x([_.L(),_.e("design:type",String)],Un.prototype,"youtubeLabel",void 0);_.x([_.L(),_.e("design:type",Object)],Un.prototype,"logoName",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Un.prototype,"onDataChange",null);_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],Un.prototype,"eomEssentialCookieMsgItems",null);
_.x([_.A("data"),_.e("design:type",Array),_.e("design:paramtypes",[])],Un.prototype,"eomNonEssentialCookieMsgItems",null);Un=_.x([_.d({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Un);
_.T(Un,"ytd-consent-bump-v2-lightbox",function(){if(woS!==void 0)return woS;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return woS=y},{mode:1});var kmd;var jj9=function(){return _.v.apply(this,arguments)||this};
_.R(jj9,_.v);jj9.prototype.ready=function(){if(!_.Y7()||zgQ)var y=!0;else zgQ=!0,y=!1;y||(y=document.querySelector("ytd-app"),y||(y=document.body),this.internalLightBox=_.p(y).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
var $O=jj9;_.x([_.L(),_.e("design:type",Object)],$O.prototype,"data",void 0);_.x([_.jj("#lightbox"),_.e("design:type",Object)],$O.prototype,"lightBox",void 0);$O=_.x([_.d({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],$O);
_.T($O,"ytd-consent-bump-v2-renderer",function(){if(kmd!==void 0)return kmd;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return kmd=y},{mode:1});var y_S;var Wi3;var c_3;var Zr6=function(){var y=_.v.apply(this,arguments)||this;y.ephemeralActionsEnabled=_.O("web_ephemeral_actions");return y};
_.R(Zr6,_.v);_.f=Zr6.prototype;_.f.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&OUZ(this.toastManager,this.toastType)};
_.f.open=function(y){this.toast&&(this.ephemeralAction&&_.U().resolve(_.wE).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=y!=null?y:0,this.toastManager.enqueue(this.toast,y)):this.toast.open())};
_.f.close=function(y){var W;(W=this.toast)==null||W.close();this.toastManager&&y===1&&OUZ(this.toastManager,y)};
_.f.refit=function(){var y;(y=this.toast)==null||y.refit()};
_.f.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var y;(y=this.toast)==null||y.close()}};
_.f.setVerticalOffset=function(y){this.toast&&(this.toast.verticalOffset=y,this.toast.fit())};
_.f.computeButtonClass_=function(y){return y?"toast-button":""};
_.f.computeText_=function(y){return _.v$(y)};
_.f.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.IZ("toast-opened-changed",this.toastOpened))};
_.f.updateToastOpenedFromBinding=function(y){this.toastOpened=y.detail.value};
_.dJ.Object.defineProperties(Zr6.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var y,W,c=(y=this.data)==null?void 0:(W=y.actionButton)==null?void 0:W.buttonRenderer;return(c==null?void 0:c.command)||(c==null?void 0:c.serviceEndpoint)||(c==null?void 0:c.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 y=[],W;((W=this.data)==null?0:W.responseText)&&y.push(_.v$(this.data.responseText));var c;((c=this.data)==null?0:c.subText)&&y.push(_.v$(this.data.subText));var Z,G;if((Z=this.data)==null?0:(G=Z.actionButton)==null?0:G.buttonRenderer){var D,Y;y.push(((D=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Y=D.accessibilityData)==null?void 0:Y.label)||_.v$(this.data.actionButton.buttonRenderer.text))}return y.filter(function(u){return u}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var y,W;return(W=(y=this.toast)==null?void 0:y.opened)!=null?W:!1}}});
var K0=Zr6;K0.prototype.toastOpenedChangedForBinding=K0.prototype.toastOpenedChangedForBinding;K0.prototype.toastOpenedChanged=K0.prototype.toastOpenedChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],K0.prototype,"ytEventForwardingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],K0.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],K0.prototype,"duration",void 0);_.x([_.L(),_.e("design:type",Number)],K0.prototype,"toastType",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],K0.prototype,"useCloseButton",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],K0.prototype,"closeToastOnActionButtonClick",void 0);_.x([_.L({value:function(){return _.bN("SBOX_INAPPROPRIATE_CANCEL")}}),
_.e("design:type",String)],K0.prototype,"closeButtonAriaLabel",void 0);_.x([_.L(),_.e("design:type",Boolean)],K0.prototype,"toastOpened",void 0);_.x([_.L(),_.e("design:type",Boolean)],K0.prototype,"hasOpened",void 0);_.x([_.L(),_.e("design:type",Object)],K0.prototype,"ephemeralActionsEnabled",void 0);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],K0.prototype,"command",null);
_.x([_.A("ephemeralActionsEnabled","labelText","command","duration"),_.e("design:type",Object),_.e("design:paramtypes",[])],K0.prototype,"ephemeralAction",null);_.x([_.A("ephemeralAction"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],K0.prototype,"hasEphemeralAction",null);_.x([_.jj("#toast"),_.e("design:type",Object)],K0.prototype,"toast",void 0);_.x([_.L({value:function(){return{style:"call-to-action-inverse"}}}),
_.e("design:type",Object)],K0.prototype,"buttonOverrides",void 0);_.x([_.L({value:{style:"mono-inverse"}}),_.e("design:type",Object)],K0.prototype,"closeButtonOverrides",void 0);_.x([_.L({value:function(){return _.U().resolve(_.xN(_.SN9))}}),
_.e("design:type",Object)],K0.prototype,"toastManager",void 0);_.x([_.A("data.responseText","data.subText","data.actionButton"),_.e("design:type",Object),_.e("design:paramtypes",[])],K0.prototype,"labelText",null);_.x([_.H("toastOpened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],K0.prototype,"toastOpenedChanged",null);
_.x([_.H("toastOpened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],K0.prototype,"toastOpenedChangedForBinding",null);K0=_.x([_.n6({is:"yt-notification-action-renderer",disableElementRegistration:!0})],K0);
_.T(K0,"yt-notification-action-renderer",function(){if(c_3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Wi3===void 0&&(Wi3=document.createElement("template"));var Z=Wi3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);c_3=y}y=c_3;return y},{mode:2});var GBf=function(){var y=_.v.apply(this,arguments)||this;y.duration=4E3;y.downloadingCount=0;y.downloadedCount=0;y.downloadingOnlySmartDownloads=!1;y.sessionTotalDownloads=0;y.sessionDownloaded=0;y.previousSessionsDownloaded=0;y.totalDownloadPercentage=0;y.currentDownloadProgress=0;y.currentDownloadPercentage=0;y.isLeaderTab=!0;y.isFullScreen=!1;y.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};y.boundBeforeUnload=function(W){y.isLeaderTab&&y.downloadingCount>0&&(W.preventDefault(),
W.returnValue=!0)};
return y};
_.R(GBf,_.v);_.f=GBf.prototype;
_.f.open=function(){this.updateDownloadState();if(this.data){var y=this.sessionDownloaded+1,W=this.sessionTotalDownloads>1?_.bN("VIDEOS_DOWNLOADING_RATIO",{downloaded:y.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+y+"/"+this.sessionTotalDownloads):_.bN("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(W=this.sessionTotalDownloads>1?_.bN("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:y.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
y+"/"+this.sessionTotalDownloads):_.bN("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));y=this.isLeaderTab?_.bN("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.v$(this.data.responseText)!==W||_.v$(this.data.subText)!==y)this.set("data.responseText",_.Lq(W)),this.set("data.subText",_.Lq(y)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.f.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.f.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.f.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.f.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var y=this.downloadedCount-this.previousSessionsDownloaded;y<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-y);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.f.handleFullscreenChange=function(y){(this.isFullScreen=y)||this.updatePopup()};
var On=GBf;On.prototype.updateCurrentDownloadProgress=On.prototype.updateCurrentDownloadProgress;On.prototype.updatePopup=On.prototype.updatePopup;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],On.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],On.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],On.prototype,"actionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],On.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],On.prototype,"duration",void 0);_.x([_.L({selector:function(y){return _.hdH(y.entities).length}}),
_.e("design:type",Object)],On.prototype,"downloadingCount",void 0);_.x([_.L({selector:y79}),_.e("design:type",Object)],On.prototype,"downloadedCount",void 0);_.x([_.L({selector:function(y){var W=_.hdH(y.entities);return jLd(y.entities,W)}}),
_.e("design:type",Object)],On.prototype,"downloadingOnlySmartDownloads",void 0);_.x([_.L(),_.e("design:type",Object)],On.prototype,"sessionTotalDownloads",void 0);_.x([_.L(),_.e("design:type",Object)],On.prototype,"sessionDownloaded",void 0);_.x([_.L(),_.e("design:type",Object)],On.prototype,"previousSessionsDownloaded",void 0);_.x([_.L(),_.e("design:type",Object)],On.prototype,"totalDownloadPercentage",void 0);
_.x([_.L({selector:function(y){var W;y=(W=_.hdH(y.entities))!=null?W:[];return y.length>0?_.luH(y.slice(-1)):0}}),
_.e("design:type",Object)],On.prototype,"currentDownloadProgress",void 0);_.x([_.L(),_.e("design:type",Object)],On.prototype,"currentDownloadPercentage",void 0);_.x([_.L({selector:_.vPw}),_.e("design:type",Object)],On.prototype,"isLeaderTab",void 0);_.x([_.jj("yt-notification-action-renderer"),_.e("design:type",Object)],On.prototype,"notificationActionRenderer",void 0);
_.x([_.Gs("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],On.prototype,"updatePopup",null);_.x([_.Gs("currentDownloadProgress"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],On.prototype,"updateCurrentDownloadProgress",null);On=_.x([_.d({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],On);
_.T(On,"ytd-video-download-toast-renderer",function(){if(y_S!==void 0)return y_S;var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return y_S=y},{mode:1});var f79;var oGB;var DG6=function(){return _.v.apply(this,arguments)||this};
_.R(DG6,_.v);DG6.prototype.computeIsRedLogo=function(y,W){!y&&W&&(y=W);return y==="YOUTUBE_RED_LOGO"||y==="YOUTUBE_PREMIUM_LOGO"};
DG6.prototype.computeLogoName=function(y){y=this.componentBehavior.computeIcon_(y);return y===""?"yt-logos-ext:yt-logo-updated":y};
var go=DG6;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],go.prototype,"componentBehavior",void 0);_.x([_.L({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.e("design:type",Boolean)],go.prototype,"isRedLogo",void 0);_.x([_.L({computed:"computeLogoName(data)"}),_.e("design:type",String)],go.prototype,"logoName",void 0);_.x([_.L({value:{}}),_.e("design:type",Object)],go.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],go.prototype,"logoType",void 0);go=_.x([_.d({disableElementRegistration:!0,is:"ytd-logo"})],go);
_.T(go,"ytd-logo",function(){if(oGB!==void 0)return oGB;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return oGB=y},{mode:_.xm("kevlar_poly_si_batch_j074")?1:2});var za9=function(){var y=_.v.apply(this,arguments)||this;y.animationRef={};return y};
_.R(za9,_.v);_.f=za9.prototype;_.f.attached=function(){document.addEventListener("yt-navigate-finish",_.qO(this,this.logYoodle))};
_.f.detached=function(){document.removeEventListener("yt-navigate-finish",_.qO(this,this.logYoodle))};
_.f.logYoodle=function(){var y,W;if((y=this.data)==null?0:(W=y.loggingDirectives)==null?0:W.trackingParams)this.ytRendererBehavior.markDirty(),_.Zz().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.f.computeHideImg=function(y,W){return!!y||!!W};
_.f.computeHideYtdLogo=function(y,W){return!y||!!W};
_.f.computeHideLottie=function(y){return!y};
_.f.computeIsRedLogo=function(y){return y==="YOUTUBE_RED_LOGO"||y==="YOUTUBE_PREMIUM_LOGO"};
_.f.renderLogoEntity=function(){var y=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),W=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getLogoTitleText(this.data),Z=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==y&&(this.url=y);this.animatedUrl!==W&&(this.animatedUrl=W);this.logoTitleText!==c&&(this.logoTitleText=c);this.lottieUrl!==Z&&(this.lottieUrl=Z,this.lottiePlayerProps=this.computeLottiePlayerProps(Z))};
_.f.getSanitizedThumbnail=function(y){return y&&y.thumbnails?_.eQw(y.thumbnails,122)||"":""};
_.f.getThumbnailUrl=function(y,W){if(!W)return"";var c,Z;y=y?(c=W.darkThemeLogo)==null?void 0:c.thumbnail:(Z=W.lightThemeLogo)==null?void 0:Z.thumbnail;return this.getSanitizedThumbnail(y)};
_.f.getAnimatedThumbnailUrl=function(y,W){return W?this.getSanitizedThumbnail(y?W.darkThemeAnimatedLogo:W.lightThemeAnimatedLogo):""};
_.f.getLogoTitleText=function(y){if(y)return _.v$(y.tooltipText)};
_.f.computeLogoIcon=function(y,W){if(W){var c,Z;return y?(c=W.darkThemeLogo)==null?void 0:c.icon:(Z=W.lightThemeLogo)==null?void 0:Z.icon}};
_.f.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.f.getLottieUrl=function(y,W){var c,Z,G,D;return y?W==null?void 0:(c=W.darkThemeLogo)==null?void 0:(Z=c.lottieAnimation)==null?void 0:Z.url:W==null?void 0:(G=W.lightThemeLogo)==null?void 0:(D=G.lottieAnimation)==null?void 0:D.url};
_.f.computeLottiePlayerProps=function(y){if(y){var W;if((W=this.animationRef)==null?0:W.lottieEl){var c;(c=this.animationRef)==null||c.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:y,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.f.onLottieError=function(){this.data&&this.lottieUrl&&_.Z2(this.hostElement,"yoodle-error")};
_.f.onImgError=function(){this.data&&!this.lottieUrl&&_.Z2(this.hostElement,"yoodle-error")};
var Rz=za9;Rz.prototype.playAnimation=Rz.prototype.playAnimation;Rz.prototype.renderLogoEntity=Rz.prototype.renderLogoEntity;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Rz.prototype,"data",void 0);_.x([_.L({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.e("design:type",Boolean)],Rz.prototype,"hideImg",void 0);
_.x([_.L({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.e("design:type",Boolean)],Rz.prototype,"hideYtdLogo",void 0);_.x([_.L({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.e("design:type",Boolean)],Rz.prototype,"hideLottie",void 0);_.x([_.L({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.e("design:type",Boolean)],Rz.prototype,"isRedLogo",void 0);
_.x([_.L(),_.e("design:type",Boolean)],Rz.prototype,"useDarkThemeYoodle",void 0);_.x([_.L(),_.e("design:type",String)],Rz.prototype,"url",void 0);_.x([_.L(),_.e("design:type",String)],Rz.prototype,"animatedUrl",void 0);_.x([_.L(),_.e("design:type",String)],Rz.prototype,"logoTitleText",void 0);_.x([_.L({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.e("design:type",Object)],Rz.prototype,"logoIcon",void 0);_.x([_.L(),_.e("design:type",Object)],Rz.prototype,"logoType",void 0);
_.x([_.L(),_.e("design:type",String)],Rz.prototype,"lottieUrl",void 0);_.x([_.L(),_.e("design:type",Object)],Rz.prototype,"lottiePlayerProps",void 0);_.x([_.L(),_.e("design:type",Object)],Rz.prototype,"animationRef",void 0);_.x([_.H("data"),_.H("useDarkThemeYoodle"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Rz.prototype,"renderLogoEntity",null);
_.x([_.B("click"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],Rz.prototype,"playAnimation",null);Rz=_.x([_.d({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Rz);
_.T(Rz,"ytd-yoodle-renderer",function(){if(f79!==void 0)return f79;var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return f79=y},{mode:_.xm("kevlar_poly_si_batch_j074")?1:2});var Y8Q;var mG3;var sj6=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return y};
_.R(sj6,_.v);_.f=sj6.prototype;_.f.onYoodleError=function(){_.O("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.f.computeLogoName=function(y){y=this.componentBehavior.computeIcon_(y);return y===""?"yt-logos-ext:yt-logo-updated":y};
_.f.computeTitle=function(y,W,c){return c&&(W==null?0:W.tooltipText)?_.v$(W.tooltipText):_.v$(y)};
_.f.computeAriaLabel=function(y,W,c){return c&&(W==null?0:W.tooltipText)?_.v$(y):""};
_.f.computeShowYoodle=function(y,W,c){return!y||!W&&!!c&&!_.Eb.isEmpty(c)};
_.f.onNavigateHomeAction=function(){if(_.O("kevlar_miniplayer_navigate_home_from_app_killswitch")){var y;(y=_.p(this.hostElement).querySelector(".yt-simple-endpoint"))==null||y.click()}};
_.f.computeLogoHref=function(y,W,c){var Z;(c==null?0:c.onTapCommand)?Z=this.componentBehavior.computeHref_(c.onTapCommand):y&&(Z=this.componentBehavior.computeHref_(y));return Z?Z:W};
_.f.computeCommand=function(y,W){return(W==null?void 0:W.onTapCommand)||y};
_.f.getEndpointForm=function(){if(_.O("kevlar_topbar_disable_cache_only_home")){var y=_.U().resolve(_.Fq),W=oY6(y.getState())||"";y=_.ugt(y.getState())||"";return{disableCache:W==="ytd-browse"&&y==="home"}}return{disableCache:!0}};
var lr=sj6;lr.prototype.onYoodleError=lr.prototype.onYoodleError;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],lr.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],lr.prototype,"componentBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],lr.prototype,"ytdReduxBehavior",void 0);
_.x([_.L(),_.e("design:type",Object)],lr.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],lr.prototype,"countryCode",void 0);_.x([_.L({selectorArgs:["data.overrideEntityKey"],selector:function(y,W){return _.fq(y.entities,"logoEntity",W)}}),
_.e("design:type",Object)],lr.prototype,"logoEntity",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.e("design:type",Boolean)],lr.prototype,"showYoodle",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],lr.prototype,"yoodleError",void 0);_.x([_.L({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.e("design:type",String)],lr.prototype,"titleText",void 0);
_.x([_.L({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.e("design:type",String)],lr.prototype,"ariaLabelText",void 0);_.x([_.L({value:"/"}),_.e("design:type",String)],lr.prototype,"defaultEndpointUrl",void 0);_.x([_.L({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.e("design:type",String)],lr.prototype,"endpointUrl",void 0);
_.x([_.L({computed:"computeCommand(data.endpoint, logoEntity)"}),_.e("design:type",String)],lr.prototype,"command",void 0);_.x([_.L(),_.e("design:type",Object)],lr.prototype,"logoType",void 0);_.x([_.L({}),_.e("design:type",Boolean)],lr.prototype,"useDarkThemeYoodle",void 0);_.x([_.B("yoodle-error"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],lr.prototype,"onYoodleError",null);lr=_.x([_.d({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],lr);
_.T(lr,"ytd-topbar-logo-renderer",function(){if(mG3!==void 0)return mG3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return mG3=y},{mode:_.xm("kevlar_poly_si_batch_j027")?1:2});var uT9=0;var t$f=_.J_.SEARCH_APPEND_LABEL,nG6=_.J_.SUGGESTION_NEW_VIDEOS_TEXT,X66=_.J_.SUGGESTION_THUMBNAIL_LABEL,br6=_.Ax(function(y){function W(EZ){var jV,La;return _.m(function(sZ){if(sZ.nextAddress==1)return jV=new Request(EZ),_.tm(sZ,2),_.n(sZ,fetch(jV,{credentials:"include"}),4);if(sZ.nextAddress!=2)return eV(!0),_.J6(sZ,0);La=_.rs(sZ);_.Rs(La);_.F2(sZ)})}
var c=y.isHighlighted;var Z=y.suggestion;var G=y.onClickCallback;var D=y.onHoverUpdateCallback;var Y=y.labels;var u=y.queryBuilderFunction;var t=y.onRemoveCallback;var b=y.suggestionIndex;var r=y.generateUniqueId;var F=y.highlightedId;var K=y.useScrollMargin;var l=y.isKeyboardMode;var N=null,P=null,V=_.HO(),Q=_.HO(),S=_.LD(function(EZ){EZ&&_.py(237477,EZ,P,function(jV){P=jV})}),cy=_.LD(function(EZ){EZ&&_.py(237477,EZ,P,function(jV){P=jV})}),M=_.j9(function(EZ){if((EZ==null?void 0:EZ.button)===2)return EZ.preventDefault(),
!1;
var jV=_.NR();jV&&N&&_.TG(jV,N,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var La;G(EZ,Z().text,Z().index,EZ==null?void 0:(La=EZ.detail)==null?void 0:La.wasSelectedByKeyboard);return!1}),fa=function(){return Z().type===35},jI=function(){return _.O("desktop_enable_single_suggestion_highlight")},sD=function(){return _.ey("desktop_suggestions_panel_row_height")||0},ED=function(){var EZ;
return _.O("desktop_enable_new_video_metadata")&&((EZ=Z())==null?void 0:EZ.hasNewVideo)===!0},N1=function(){return _.O("desktop_enable_visual_suggest")},bf=function(){return jI()?(c==null?void 0:c())||PJ()&&!(l==null?0:l()):(c==null?void 0:c())||PJ()},Py=function(){var EZ=_.Nn("SBOX_SETTINGS");
return fa()&&!(EZ==null?0:EZ.HIDE_REMOVE_LINK)},WJ=function(){return QCH(Z())},t5,xF=!((t5=_.U().resolve(_.xN(_.EH)))==null||!t5()),M3=function(){return fa()?"ARROW_TIME":"SEARCH"},wS=function(){return Y==null?void 0:Y().SUGGESTION_DISMISS_LABEL},f8=function(){return Y==null?void 0:Y().SUGGESTION_DISMISSED_LABEL};
t5=_.z(_.G9(!1,void 0,"l3epFd"));y=t5.next().value;var eV=t5.next().value;t5=_.z(_.G9(!1,void 0,"IdYnHc"));var N3=t5.next().value,K8=t5.next().value,PJ=N3,cX=_.j9(function(){u(Q.value.innerText);return!1}),a$=_.j9(function(EZ){EZ.preventDefault();
return!1}),oI=_.j9(function(EZ){var jV=Z().text,La=_.Nn("SBOX_SETTINGS"),sZ="https://"+(La.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
sZ+="&delq="+encodeURIComponent(jV);(jV=La==null?void 0:La.PSUGGEST_TOKEN)&&(sZ+="&tok="+jV);(La=La==null?void 0:La.SESSION_INDEX)&&(sZ+="&authuser="+La);W(sZ);EZ.preventDefault();(EZ=_.NR())&&P&&_.TG(EZ,P,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");t(b==null?void 0:b());return!1}),Zg=_.j9(function(){if(jI()&&(l==null?0:l()))return!1;
K8(!0);D(!0);return!1}),xW=_.j9(function(){K8(!1);
D(!1);return!1});
t5=_.z(_.G9("",void 0,"bHTG2e"));var dS=t5.next().value,bE=t5.next().value;_.Xl(function(){Py()&&bE(r==null?void 0:r(b==null?void 0:b()));V.value&&_.py(12453,V.value,N,function(EZ){N=EZ})});
return _.X(_.YN,{cond:y,then:function(){var EZ={};return _.X("div",{class:_.Mi("ytSuggestionComponentRemovedText",(EZ.ytSuggestionComponentLargerRemovedText=function(){return N1()},EZ)),
style:function(){return sD()>0?"height: "+sD()+"px;":""},
role:"button"},f8)},
else:function(){var EZ={},jV={};return _.X("div",{class:_.Mi("ytSuggestionComponentSuggestion",(EZ.ytSuggestionComponentSuggestionHover=function(){return!jI()},EZ.ytSuggestionComponentHighlighted=bf,EZ.ytSuggestionComponentPersonalizedSuggestion=fa,EZ.ytSuggestionComponentMweb=!1,EZ.ytSuggestionComponentLargerSuggestion=function(){return ED()||N1()},EZ.ytSuggestionComponentThumbnailSuggestion=function(){return N1()},EZ.ytSuggestionComponentRoundedSuggestion=function(){return _.O("desktop_enable_scrollable_suggestions_panel")&&
_.O("desktop_enable_suggestions_panel_padding")},EZ)),
style:function(){return sD()>0?"height: "+sD()+"px;":""},
role:"presentation","on:mousedown":M,"on:mouseover":Zg,"on:mouseout":xW,el:V},_.X("div",{class:_.Mi("ytSuggestionComponentText",(jV.ytSuggestionComponentScrollMargin=K,jV)),"aria-label":function(){return ED()?Z().text+" "+nG6:Z().text},
id:function(){return r==null?void 0:r(b==null?void 0:b())},
"on:mousedown":M,role:"option"},_.X(_.YN,{cond:function(){return Z().type!==33},
then:function(){return _.X(_.Gb,{icon:M3,className:"ytSuggestionComponentIcon"})}}),_.X("div",{class:"ytSuggestionComponentLeftContainer"},_.X("span",{el:Q,
role:"button",tabindex:0},_.X(_.mC,{each:WJ},function(La){return La.bold?_.X("span",{class:"ytSuggestionComponentBold"},La.text):_.X("span",null,La.text)})),_.X(_.YN,{cond:function(){return ED()},
then:function(){return _.X("div",{class:"ytSuggestionComponentNewVideoContainer"},_.X("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.X("div",{class:"ytSuggestionComponentNewVideoText"},nG6))}}))),_.X("div",{class:"ytSuggestionComponentRightContainer"},_.X(_.YN,{cond:function(){return N1()&&Z().visualSuggestUrl!==void 0},
then:function(){return _.X("img",{"aria-label":X66,class:"ytSuggestionComponentvisualSuggestThumbnail",src:function(){return Z().visualSuggestUrl}})}}),_.X(_.u1,null,_.X(_.sE,{when:function(){return N1()&&Py()}},function(){var La={};
return _.X("button",{class:_.Mi("ytSuggestionComponentRemoveLinkClearButton",(La.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return dS()&&dS()===(F==null?void 0:F())},La.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!bf()},La)),
el:cy,"on:mousedown":oI,"aria-label":wS,id:function(){return dS()}},_.X(_.Gb,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.X(_.sE,{when:function(){return!(N1()&&Z().visualSuggestUrl!==void 0)&&Py()}},function(){var La={};
return _.X("a",{class:_.Mi("ytSuggestionComponentRemoveLink",(La.ytSuggestionComponentRemoveLinkDark=xF,La.ytSuggestionComponentRemoveLinkSelected=function(){return dS()&&dS()===(F==null?void 0:F())},La)),
el:S,"on:mousedown":oI,"aria-label":wS,tabindex:0,role:"button",id:function(){return dS()}},wS)}),_.X(_.sE,{when:function(){return!1}},function(){return _.X("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":cX,"on:mousedown":a$,role:"button","aria-label":t$f},_.X(_.Gb,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Of");var r_d=_.Ax(function(){var y=_.j9(function(){HK9().inputMethodsTracker.add(3);var W,c=(W=_.Nn("SBOX_SETTINGS"))==null?void 0:W.REQUEST_LANGUAGE;if(c)return _.Vn("//www.google.com/textinputassistant/14/"+c+"_tia.js"),!1});
return _.X("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.X("button",{class:"ytdTextInputAssistantButton","on:click":y},_.X("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Pf");var Fid=function(){this.cache=new Map},UGH=function(y){for(var W=_.z(y.cache.entries()),c=W.next();!c.done;c=W.next()){var Z=_.z(c.value);
c=Z.next().value;Z=Z.next().value;Z.suggestions.some(function(G){return G.type===35})&&y.cache.delete(c)}};var $Gg=_.J_.SEARCH,Kid=_.J_.SEARCH_CLEAR_LABEL,Or9=new _.Sm("FAKE_SUGGEST_RESPONSE");_.A3(_.Ax(function(y){function W(){La||(La=setTimeout(function(){w2()},1E3))}
function c(Gi,zi){if(Gi.trim()){jV=Gi;_.l1("REFINEMENTS_TUPLE",void 0);bE=!0;var Ti;zi=dZg(a$,zi);var $W=(Ti=y.searchEndpoint)==null?void 0:Ti.call(y);Ti=N3.value.value;$W||($W=$J9);var Kf;(Kf=_.g($W.commandMetadata,_.kT))!=null&&Kf.url||(Kf=Error("ml`"+JSON.stringify($W)),_.OP(Kf),$W=$J9);Kf=_.Eb.unsafeClone($W);$W=_.pD(_.g(Kf.commandMetadata,_.kT).url,"search_query",Gi);_.Q4(location.href,"sv")==="1"&&(_.g(Kf,_.Dl).params="EgOAAgE%3D",$W=_.pD($W,"sv","1"));_.g(Kf,_.Dl)&&(_.g(Kf,_.Dl).query=Gi);
$W=$W.replace(/%20/g,"+");_.g(Kf.commandMetadata,_.kT).url=$W;_.U().resolve(_.i1).resolveCommand(Kf,{form:{tempData:{gs_l:zi,oq:Ti!=null?Ti:Gi}}});w2();N3.value.value=Gi;N3.value.blur();a$.reset()}}
function Z(Gi){return _.m(function(zi){return zi.return(new Promise(function(Ti){var $W=new XMLHttpRequest;$W.open("GET",JN9(Gi),!0);$W.withCredentials=!0;var Kf=_.Nn("SBOX_SETTINGS");(Kf==null?0:Kf.SEND_VISITOR_DATA)&&$W.setRequestHeader("X-Goog-Visitor-Id",Kf==null?void 0:Kf.VISITOR_DATA);$W.onload=function(){Ti($W.responseText)};
$W.onerror=function(){_.Rs(Error("nl"));Ti(null)};
setTimeout(function(){$W.abort()},1E4);
$W.send(null)}))})}
function G(Gi){var zi,Ti,$W,Kf;return _.m(function(qg){switch(qg.nextAddress){case 1:return zi={credentials:"include",headers:PYD()},window.AbortController&&(Ti=new AbortController,setTimeout(function(){Ti.abort("ytsbox-suggest-timeout")},1E4),zi.signal=Ti.signal),_.tm(qg,2),_.n(qg,fetch(JN9(Gi),zi),4);
case 4:$W=qg.yieldResult.text();_.J6(qg,3);break;case 2:return Kf=_.rs(qg),Kf!=="ytsbox-abort-last"&&Kf!=="ytsbox-suggest-timeout"&&_.Rs(Kf),qg.return(null);case 3:return qg.return($W)}})}
function D(Gi){var zi,Ti,$W;return _.m(function(Kf){switch(Kf.nextAddress){case 1:if(zi=_.U().resolve(_.xN(Or9)))return Kf.return(zi);Ti=Date.now();W();return _.O("yt_searchbox_xhr")?_.n(Kf,Z(Gi),5):_.n(Kf,G(Gi),4);case 4:$W=Kf.yieldResult;Kf.jumpTo(3);break;case 5:$W=Kf.yieldResult;case 3:if($W){La&&(clearTimeout(La),La=null);var qg=a$,lE=Ti,oN=Gi.query.length===0;lE=Date.now()-lE;oN?qg.zeroPrefixRoundTripTime=lE:(qg.JSC$18260_totalRoundTripTime+=lE,qg.maxRoundTripTime=Math.max(qg.maxRoundTripTime,
lE),oN=Math.floor(lE/100),oN>=SiZ.length?++qg.roundTripTimeHistogram[9]:++qg.roundTripTimeHistogram[SiZ[oN]])}return Kf.return($W)}})}
function Y(Gi){var zi,Ti,$W;return _.m(function(Kf){if(Kf.nextAddress==1)return(zi=cX.cache.get(poH(Gi)))?Kf.return(zi):_.n(Kf,D(Gi),2);Ti=Kf.yieldResult;if(Ti===null)return Kf.return(null);$W=new ANH(Ti);Gi.query.length===0&&$W.suggestions.length===0||cX.cache.set(poH(Gi),$W);return Kf.return($W)})}
function u(Gi){var zi,Ti;return _.m(function($W){if($W.nextAddress==1){EZ=!1;var Kf=jV;Kf=_.wD1()==="search"?(_.Q4(location.href,"search_query")||_.Q4(location.href,"q"))===Kf:!1;zi=new I5Q(Gi,Kf?jV:null);return _.n($W,Y(zi),2)}Ti=$W.yieldResult;if(Ti===null)return $W.return();zi.query.length===0&&(a$.zeroPrefixSuggestionCount=Ti.suggestions.length);if(zi.id<=sZ)return a$.outOfSyncResponseCount++,$W.return();if(document.activeElement!==N3.value)return $W.return();sZ=zi.id;var qg=a$,lE=Ti.rawResponse[2]||
{};qg.experimentTriggeredBeforeFinal||(qg.experimentTriggeredBeforeFinal=qg.experimentTriggeredFinal);qg.experimentTriggeredFinal=!!lE.e;a$.updateSuggestions(Ti.suggestions);V(-1);M3([]);Ti.suggestions!==l()&&MR(Ti.suggestions.length);N(Ti.suggestions);ED(Ti.suggestions.length>0&&Ti.suggestions[0].type===33);PJ&&(PJ.hidden=Ti.suggestions.length===0,sD()?(PJ.style.minWidth="",qg=PJ.style,lE=(Kf=l()[0])==null?void 0:Kf.ignoredPrefix,qg.marginLeft=(lE?Math.min(lE.length*6,K8.value.offsetWidth):0).toString()+
"px"):(PJ.style.minWidth=K8.value.offsetWidth+"px",PJ.style.marginLeft="0"),gj());_.F2($W)})}
function t(){if(!bE)return!1;var Gi=_.Nn("REFINEMENTS_TUPLE");return Gi?(Gi=Gi[1].map(function(zi,Ti){return new CY9([zi,0,[71]],N3.value.value,Ti)}),l()!==Gi&&MR(Gi.length),M3([]),N(Gi),a$.updateSuggestions(Gi),bE=!1,PJ.hidden=Gi.length===0,EZ=Gi.length>0,!0):!1}
function b(){var Gi=N3.value.value;(typeof Gi==="string"||Gi instanceof String)&&Gi!==""?M(!0):M(!1)}
function r(){if(_.wD1()==="search"){var Gi=window.location.href;try{var zi=_.Q4(Gi,"search_query")||_.Q4(Gi,"q")||""}catch(Ti){zi=""}zi&&(N3.value.value=zi,M(!0))}}
var F=_.z(_.G9([],void 0,"nfrtkb")),K=F.next().value;F=F.next().value;var l=K,N=F;K=_.z(_.G9(-1,void 0,"cRyFvd"));var P=K.next().value,V=K.next().value;K=_.z(_.G9(-1,void 0,"EriPWe"));var Q=K.next().value,S=K.next().value;K=_.z(_.G9(!1,void 0,"UK7opd"));var cy=K.next().value,M=K.next().value;K=_.z(_.G9(!1,void 0,"ego0bc"));var fa=K.next().value,jI=K.next().value;F=_.z(_.G9(!1,void 0,"lRwSBb"));K=F.next().value;F=F.next().value;var sD=K,ED=F;F=_.z(_.G9(!1,void 0,"gLkpXb"));K=F.next().value;var N1=
F.next().value;F=_.z(_.G9(!1,void 0,"In4Zlb"));var bf=F.next().value,Py=F.next().value;F=_.z(_.G9(1,void 0,"pQNR0c"));var WJ=F.next().value,t5=F.next().value;F=_.z(_.G9([],void 0,"EFteUe"));var xF=F.next().value,M3=F.next().value;F=_.z(_.G9(!1,void 0,"fnEGyd"));var wS=F.next().value,f8=F.next().value;F=_.O("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var eV=_.HO(),N3=_.HO(),K8=_.HO(),PJ,cX=new Fid,a$=
HK9(),oI=_.U().resolve(_.xN(_.EH)),Zg=function(){var Gi;return((Gi=y.forceDarkMode)==null?void 0:Gi.call(y))||!(oI==null||!oI())},xW=function(){return _.O("desktop_enable_scrollable_suggestions_panel")},dS="i"+uT9++,bE=!1,EZ=!1,jV="",La=null,sZ=-1,w2=function(){M3([]);
N([]);ED(!1);PJ&&(PJ.hidden=!0);La&&(clearTimeout(La),La=null);V(-1)},Z3=function(Gi,zi){Gi.preventDefault();
f8(!0);PJ&&(PJ.hidden=!1);var Ti=P();Gi=l();var $W=xF();zi=zsg(zi);Ti+=zi;for(Ti>=Gi.length?Ti=-1:Ti<-1&&(Ti=Gi.length-1);Ti!==-1&&($W.includes(Ti)||Ti>=Gi.length||Ti<0);)Ti+=zi,Ti>=Gi.length&&(Ti=-1);V(Ti);P()>=0&&(N3.value.value=l()[P()].text,S(0),b(),Gi=P(),$W=Q(),($W=document.getElementById($X[Gi][$W]))&&xW()&&(Gi===l().length-1?PJ.scrollTop=PJ.scrollHeight:$W.scrollIntoView({block:"nearest",inline:"start"})))};
_.vO(N3,"focus",function(Gi){if(!(Gi.relatedTarget instanceof Element&&Gi.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){jI(!0);var zi;(zi=y.focusCallback)==null||zi.call(y,!0);t()||(EZ?PJ.hidden=!1:(_.Z2(eV.value,"yt-autonav-pause-focus",{}),u(Gi.target.value)))}});
_.vO(N3,"blur",function(Gi){if(!(Gi.relatedTarget instanceof Element&&Gi.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){jI(!1);var zi;(zi=y.focusCallback)==null||zi.call(y,!1);PJ.scrollTop=0;PJ.hidden=!0;_.Z2(eV.value,"yt-autonav-pause-blur",{})}});
var J5=function(Gi){Gi=zsg(Gi);var zi;((zi=$X[P()])==null?0:zi[Q()+Gi])&&S(Q()+Gi)},B3=_.j9(function(Gi){var zi=Gi.target;
switch(Gi.keyCode){case 13:Gi.preventDefault();var Ti;if((Ti=$X[P()])==null?0:Ti[Q()]){var $W;($W=document.getElementById($X[P()][Q()]))==null||$W.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Gi=Gi.shiftKey?4:3;Ti=a$;$W=P();Ti.selectedSuggestionIndex=$W;c(zi.value,Gi);break;case 27:PJ&&(PJ.hidden=!0);break;case 40:Z3(Gi,40);break;case 38:Z3(Gi,38);break;case 39:J5(39);break;case 37:J5(37);break;case 229:a$.inputMethodsTracker.add(4);break;default:a$.inputMethodsTracker.add(1),
LFH(a$)}return!1}),E3=_.j9(function(Gi){u(Gi.target.value);
b();xW()&&PJ&&(PJ.scrollTop=0);return!1}),T7=_.j9(function(){a$.inputMethodsTracker.add(2);
LFH(a$);return!1});
_.Xl(function(){if(PJ){a$.reset();if(window.ResizeObserver){var Gi=new ResizeObserver(function(){sD()||(PJ.style.minWidth=K8.value.offsetWidth+"px")});
Gi.observe(K8.value);(new ResizeObserver(function(){gj()})).observe(PJ);
_.KL(function(){Gi.disconnect()})}r();
window.addEventListener("yt-navigate-finish",r);window.addEventListener("yt-focus-searchbox",function(){N3.value.focus()});
var zi;N1((zi=_.Nn("SBOX_SETTINGS"))==null?void 0:zi.HAS_ON_SCREEN_KEYBOARD)}else _.OP(new _.ul("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var YX=_.j9(function(Gi){Gi.preventDefault();c(N3.value.value,12);return!1}),JS=_.j9(function(Gi){Gi.preventDefault();
var zi,Ti;(zi=N3)==null||(Ti=zi.value)==null||Ti.focus();var $W,Kf;(($W=N3)==null?void 0:(Kf=$W.value)==null?void 0:Kf.value)!==""&&(N3.value.value="",N3.value.dispatchEvent(new Event("input")));return!1}),iM=_.j9(function(){var Gi=D8Q(N3.value.value,l().filter(function(zi){return zi.type!==35}).map(function(zi){return{label:zi.text}}));
_.GG(eV.value,"yt-open-popup-action",[{openPopupAction:Gi},document.body]);return!1}),lG=_.j9(function(){N3.value.focus();
return!1}),a8=function(Gi,zi,Ti,$W){a$.selectedSuggestionIndex=Ti;
c(zi,$W?3:1)},OE=function(Gi){N3.value.value=Gi;
N3.value.dispatchEvent(new Event("input"));a$.inputMethodsTracker.add(5);LFH(a$,!0)},$X=[[]],WQ=function(Gi){var zi="searchbox-suggestion"+_.lL(_.Ed);
$X[Gi].push(zi);return zi},MR=function(Gi){if(l()){$X=[[]];
for(var zi=0;zi<Gi;zi++)$X.push([])}},gj=function(){if(xW()){var Gi=PJ,zi=Gi.scrollTop;
Gi=Gi.scrollHeight-Gi.clientHeight;Py(zi>=Gi);zi=Math.abs(Gi-zi);zi<=40?t5(1-(40-zi)/40):t5(1)}},v7=function(){return"opacity: "+WJ()*100+"%"},XF=_.j9(function(){gj();
return!1}),dX=_.j9(function(){f8(!1);
return!1}),rg,JH={},hH={},Xm={},Gf={};
return _.X("yt-searchbox",{class:_.Mi("ytSearchboxComponentHost",(JH.ytSearchboxComponentMweb=!1,JH.ytSearchboxComponentDesktop=!0,JH["yt-searchbox-filled-query"]=function(){return cy()},JH["ytd-masthead"]=function(){return!fa()},JH.ytSearchboxComponentHostDark=Zg,JH)),
role:"search",el:eV,"client-ve-type":10349},_.X("div",{el:K8,"on:click":lG,class:_.Mi("ytSearchboxComponentInputBox",(hH.ytSearchboxComponentInputBoxDark=Zg,hH.ytSearchboxComponentInputBoxHasFocus=fa,hH))},_.X("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":YX},_.X(_.YN,{cond:fa,then:function(){return _.X("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.X(_.Gb,{icon:"SEARCH"}))}}),_.X("input",{el:N3,
class:_.Mi("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":dS,"aria-expanded":!((rg=PJ)==null?0:rg.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":E3,"on:keydown":B3,"on:paste":T7,placeholder:y.placeholderText,"aria-activedescendant":function(){var Gi;return(Gi=$X[P()])==null?void 0:Gi[Q()]},
"aria-autocomplete":"list",role:"combobox"})),_.X(_.YN,{cond:K,then:function(){return _.X("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.X(r_d,null))}}),_.X(_.YN,{cond:cy,
then:function(){return _.X("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.X("button",{class:"ytSearchboxComponentClearButton","on:click":JS,"aria-label":y.clearButtonAriaLabel||Kid},_.X(_.Gb,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.X(_.zb,{model:{}})))}})),_.X("button",{class:_.Mi("ytSearchboxComponentSearchButton",(Xm.ytSearchboxComponentSearchButtonDark=Zg,Xm)),
"on:click":YX,"aria-label":$Gg,title:y.placeholderText},_.X(_.Gb,{icon:"SEARCH"})),_.X(_.YN,{cond:function(){if(UrB()&&_.O("mweb_voice_search")&&y.voiceSearchButton)return y.voiceSearchButton()},
then:function(Gi){var zi={};return _.X("div",{class:_.Mi("ytSearchboxComponentVoiceSearchWrapper",(zi.ytSearchboxComponentHideVoiceSearchButton=function(){return cy()},zi))},_.X(_.bg,{data:Gi},{buttonRenderer:function(Ti){return _.X(_.dx,{data:Ti.data,
onButtonClickCallback:function(){}})}}))}}),_.X("div",{el:_.It1(function(Gi){return void(PJ=Gi)}),
id:dS,class:_.Mi("ytSearchboxComponentSuggestionsContainer",(Gf.ytSearchboxComponentSuggestionsContainerDark=Zg,Gf["yt-searchbox-suggestions-container"]=!1,Gf.ytSearchboxComponentSuggestionsContainerScrollable=xW(),Gf.ytSearchboxComponentSuggestionsContainerAnimated=F,Gf)),"on:scroll":XF,"on:mousemove":dX,role:"listbox",hidden:!0},_.X(_.mC,{each:l},function(Gi,zi){return _.X(br6,{suggestion:Gi,isHighlighted:function(){return zi()===P()},
onClickCallback:a8,onHoverUpdateCallback:function(Ti){if(_.O("desktop_enable_single_suggestion_highlight")){var $W=zi();Ti&&(S(0),V($W))}},
onRemoveCallback:function(Ti){UGH(cX);Ti===void 0||Ti<0||xF().includes(Ti)||M3([].concat(_.No(xF()),[Ti]))},
labels:y.labels,queryBuilderFunction:OE,suggestionIndex:zi,generateUniqueId:WQ,highlightedId:function(){var Ti;return(Ti=$X[P()])==null?void 0:Ti[Q()]},
useScrollMargin:xW(),isKeyboardMode:wS})}),_.X(_.YN,{cond:function(){return!sD()&&l().find(function(Gi){return Gi.type!==35})&&_.O("searchbox_reporting")},
then:function(){return _.X("button",{class:"ytSearchboxComponentReportButton","on:mousedown":iM},_.bN("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.X(_.YN,{cond:function(){return!bf()&&xW()},
then:function(){return _.X("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.X("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:v7}))}})))},"Qf"),"yt-searchbox",{props:{searchEndpoint:_.Ix,
placeholderText:_.Ix,labels:_.Ix,voiceSearchButton:_.Ix,focusCallback:_.QE,clearButtonAriaLabel:_.Ix,forceDarkMode:_.Ix}});var gGS=function(){var y=_.v.apply(this,arguments)||this;y.menuButtonTargetId="topbar-guide-menu";y.narrow=!1;y.menuStrings={BACK_ALT_LABEL:_.bN("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.bN("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.bN("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.bN("SBOX_PLACEHOLDER",void 0,"Search")};y.pageDarkTheme=document.documentElement.hasAttribute("dark");y.watchPageScrollTop=0;y.theater=!1;y.fullscreen=!1;y.desktopUnifiedSearchPanelMode=_.O("desktop_enable_unified_search_panel");
y.cinematicTheaterMode=_.O("web_cinematic_theater_mode");y.ytSearchboxFocused=!1;y.searchboxLabels=_.Nn("SBOX_LABELS");y.topbarIsAboveChipbar=!1;y.isDarkThemeForced=!1;y.areGhostCardsHidden=!1;y.guideKeyboardToggle=!1;y.voiceSearchManager=Ih6();y.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};y.setYtSearchboxFocused=function(W){y.ytSearchboxFocused=W};
return y};
_.R(gGS,_.v);_.f=gGS.prototype;_.f.computeSimpleText=function(y){return _.v$(y)};
_.f.onDarkChanged=function(){for(var y=_.z(this.buttons||[]),W=y.next();!W.done;W=y.next())W.value.isOverlay=!!this.dark;y=_.z(this.buttonRenderers||[]);for(W=y.next();!W.done;W=y.next())W.value.overrides=this.computeButtonOverride()};
_.f.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var y=_.pH(_.It(),"aa");_.i0(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||y||(this.isDarkThemeForced=this.dark=!0);this.logoType?(y=this.hostElement.querySelector("#masthead-logo"))&&(_.O("polymer_on_demand_shady_dom")?y.setAttribute("slot","masthead-logo-old"):_.to(y)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.qO(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.qO(this,this.onSetTheaterModeEnabled))};
_.f.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.qO(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.qO(this,this.onSetTheaterModeEnabled))};
_.f.dataChanged=function(){var y=this.data;y&&(this.voiceEnabled=y.voiceSearchButton?Ih6().isSupported():!1,_.kVm(_.j_(),this.menuButtonTargetId,this.guideButton),y.onReceivedActions&&y.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.mq(this.hostElement,y.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&y&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.i0(this.hostElement,"dark",!1),_.i0(this.hostElement,"theater",!1),
(y=this.hostElement.querySelector("#masthead-logo"))&&(_.O("polymer_on_demand_shady_dom")?y.setAttribute("slot","masthead-logo-old"):_.to(y))))};
_.f.computeCenterHidden=function(){var y;return this.data&&!((y=this.data.searchbox)==null?0:y.fusionSearchboxRenderer)};
_.f.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.i0(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.f.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.f.onWatchScroll=function(y){this.watchPageScrollTop=y.detail||0;this.updateMastheadBackgroundOpacity()};
_.f.onFullscreenChangeAction=function(y){y||(this.watchPageScrollTop=0);this.fullscreen=y;this.updateMastheadBackgroundOpacity()};
_.f.onSetTheaterModeEnabled=function(y){this.theater=y.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.f.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.f.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.f.setBackgroundOpacity=function(y){y=this.calculateBackgroundOpacity(y);this.background.style.opacity=""+y};
_.f.calculateBackgroundOpacity=function(y){var W=this.theater&&this.cinematicTheaterMode?.6:0,c=this.hostElement.clientHeight/2;return Math.min(Math.max(y,0),c)/c*(1-W)+W};
_.f.shouldShowCinematicMastHead=function(){var y=_.O("kevlar_watch_grid")&&!_.O("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(y||this.pageDarkTheme)};
_.f.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.f.focusGuide=function(){this.guideButton.focus()};
_.f.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.Z2(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.f.onGuideToggleTap=function(){_.Z2(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.f.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.f.onGuideToggleHover=function(){_.Z2(this.hostElement,"yt-guide-hover")};
_.f.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.f.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.f.closeOnOutsideClickCondition=function(y){for(y=_.Aq(y);y[0];){var W=y.shift();if(W instanceof Element&&W.id==="kbd")return!1}return!0};
_.f.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.f.pausePlayer=function(){var y;(y=_.HF())==null||y.pause();this.pauseMiniplayer()};
_.f.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var y;(y=_.U().resolve(_.Cy).getPlayerElement())==null||y.pause()}};
_.f.isMiniplayerActive=function(){return _.U().resolve(_.Cy).isMiniplayerActive()};
_.f.updateNarrowFromBinding=function(y){this.narrow=y.detail.value};
_.f.onYtSendFeedbackAction=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.dJ.Object.defineProperties(gGS.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var y;return(y=this.data)==null?void 0:y.voiceSearchButton}}}});
var En=gGS;En.prototype.narrowChanged=En.prototype.narrowChanged;En.prototype.onIronResize=En.prototype.onIronResize;En.prototype.onWatchPageChange=En.prototype.onWatchPageChange;En.prototype.onRendererStamperFinished=En.prototype.onRendererStamperFinished;En.prototype.dataChanged=En.prototype.dataChanged;En.prototype.onDarkChanged=En.prototype.onDarkChanged;_.x([_.C(_.K7),_.e("design:type",Object)],En.prototype,"ironResizableBehavior",void 0);
_.x([_.C(_.CnH),_.e("design:type",Object)],En.prototype,"ytdExpandableInputBehavior",void 0);_.x([_.C(_.N6.YtdGuideStateAwareBehavior),_.e("design:type",Object)],En.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],En.prototype,"ytComponentBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],En.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.$s),_.e("design:type",Object)],En.prototype,"ytdReduxBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],En.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],En.prototype,"narrow",void 0);_.x([_.L(),_.e("design:type",Object)],En.prototype,"logoType",void 0);
_.x([_.L(),_.e("design:type",Boolean)],En.prototype,"voiceEnabled",void 0);_.x([_.L(),_.e("design:type",Object)],En.prototype,"menuStrings",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],En.prototype,"dark",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],En.prototype,"pageDarkTheme",void 0);_.x([_.L(),_.e("design:type",Object)],En.prototype,"watchPageScrollTop",void 0);
_.x([_.L({reflectToAttribute:!0,selector:_.NW}),_.e("design:type",Boolean)],En.prototype,"isWatchPage",void 0);_.x([_.L({reflectToAttribute:!0,selector:_.IEt}),_.e("design:type",Boolean)],En.prototype,"isShortsPage",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],En.prototype,"theater",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],En.prototype,"fullscreen",void 0);
_.x([_.L({reflectToAttribute:!0,selector:_.CAO}),_.e("design:type",String)],En.prototype,"frostedGlassMode",void 0);_.x([_.L(),_.e("design:type",Object)],En.prototype,"ytSearchboxFocused",void 0);_.x([_.y0("#buttons > *"),_.e("design:type",Array)],En.prototype,"buttons",void 0);_.x([_.y0("ytd-button-renderer"),_.e("design:type",Array)],En.prototype,"buttonRenderers",void 0);_.x([_.jj("#background"),_.e("design:type",HTMLDivElement)],En.prototype,"background",void 0);
_.x([_.jj("#guide-button"),_.e("design:type",Object)],En.prototype,"guideButton",void 0);_.x([_.jj("#logo"),_.e("design:type",Object)],En.prototype,"logo",void 0);_.x([_.L({computed:"computeButtonOverride(dark)"}),_.e("design:type",Object)],En.prototype,"buttonOverrides",void 0);_.x([_.Gs("dark"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],En.prototype,"onDarkChanged",null);_.x([_.L({value:function(){return this.onVoiceTap.bind(this)}}),
_.e("design:type",Function)],En.prototype,"boundOnTapVoiceButton",void 0);_.x([_.L(),_.e("design:type",Object)],En.prototype,"topbarIsAboveChipbar",void 0);_.x([_.A("voiceEnabled"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],En.prototype,"shouldShowVoiceSearchButton",null);_.x([_.A("data"),_.e("design:type",Object),_.e("design:paramtypes",[])],En.prototype,"voiceSearchButton",null);
_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],En.prototype,"dataChanged",null);_.x([_.B("yt-rendererstamper-finished"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],En.prototype,"onRendererStamperFinished",null);_.x([_.Gs("isWatchPage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],En.prototype,"onWatchPageChange",null);
_.x([_.B("iron-resize"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],En.prototype,"onIronResize",null);_.x([_.Gs("narrow"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],En.prototype,"narrowChanged",null);En=_.x([_.d({disableElementRegistration:!0,is:"ytd-masthead"})],En);
_.T(En,"ytd-masthead",function(){if(Y8Q!==void 0)return Y8Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return Y8Q=y},{mode:_.xm("kevlar_poly_si_batch_j036")?1:2});var Ra6;var l7S={},EGH={},N06={},I7Q={},p66=(I7Q.OFFLINE=(l7S["publicytnetworkstatus-online"]="BACK_ONLINE",l7S),I7Q.ONLINE=(EGH["publicytnetworkstatus-offline"]="OFFLINE",EGH),I7Q.BACK_ONLINE=(N06["publicytnetworkstatus-offline"]="OFFLINE",N06.TIMER_TRIGGER="ONLINE",N06),I7Q),P46=function(){var y=_.v.apply(this,arguments)||this;y.currentState="ONLINE";y.scheduledJobId=0;y.bannerString="";y.bannerVe=null;y.networkStatusManagerInstance=new _.CX;return y};
_.R(P46,_.v);_.f=P46.prototype;_.f.attached=function(){var y=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.f.detached=function(){var y=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){y.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){y.stateChangeHandler("publicytnetworkstatus-offline")})};
_.f.enterState=function(y){var W=this;this.scheduledJobId&&_.KX.cancelJob(this.scheduledJobId);y==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):y==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.bN("NO_INTERNET_CONNECTION",void 0,"No internet connection")):y==="BACK_ONLINE"&&(this.bannerString=_.bN("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Xc(_.KX,function(){W.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=y};
_.f.stateChangeHandler=function(y){(y=p66[this.currentState][y])&&this.enterState(y)};
_.f.logVisibility=function(y){var W=_.NR();this.createBannerVe(y);W&&this.bannerVe&&(y?_.vA(W,[this.bannerVe]):_.dK(W,[this.bannerVe]))};
_.f.createBannerVe=function(y){!this.bannerVe&&y&&(this.bannerVe=_.se(37929),_.kI(_.Zz(),this.bannerVe))};
var Np=P46;_.x([_.L({reflectToAttribute:!0}),_.e("design:type",String)],Np.prototype,"currentState",void 0);_.x([_.L(),_.e("design:type",Object)],Np.prototype,"scheduledJobId",void 0);_.x([_.L(),_.e("design:type",Object)],Np.prototype,"bannerString",void 0);Np=_.x([_.d({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Np);
_.T(Np,"ytd-network-status-banner",function(){if(Ra6!==void 0)return Ra6;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Ra6=
y},{mode:1});var J_Q;var V$d=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};y.hidden=!0;y.frostedGlass=_.O("web_frosted_glass");return y};
_.R(V$d,_.v);V$d.prototype.computeHidden=function(y){return y&&y.status?!1:!0};
V$d.prototype.handleUpdatePermissionRoleCommand=function(y){if(y=_.g(y,_.mYZ))if(y=_.g(y.renderer,_.Yx2))this.data=y};
var Iz=V$d;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],Iz.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],Iz.prototype,"componentBehavior",void 0);_.x([_.L({value:!0,computed:"computeHidden(data)"}),_.e("design:type",Object)],Iz.prototype,"hidden",void 0);_.x([_.L(),_.e("design:type",Object)],Iz.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],Iz.prototype,"frostedGlass",void 0);
Iz=_.x([_.d({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Iz);
_.T(Iz,"ytd-permission-role-bottom-bar-renderer",function(){if(J_Q!==void 0)return J_Q;var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);return J_Q=y},{mode:1});var C4B;var Qj3;var Yf9={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var A_S=function(){return _.v.apply(this,arguments)||this};
_.R(A_S,_.v);_.f=A_S.prototype;_.f.attached=function(){this.JSC$18362_scroller&&(this.JSC$18362_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18362_scroller.attached&&typeof this.JSC$18362_scroller.attached==="function"&&this.JSC$18362_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(c){c.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var y=_.p(this.hostElement);y.querySelector("tp-yt-paper-radio-group").selected="";var W=y.querySelector("#reason-text");W&&(W.value="");y.querySelector("#description-text").value=""}};
_.f.canSubmit=function(y,W){_.Z2(this.hostElement,"yt-invalidate-popup-tabbables");return!(y&&W)};
_.f.onCancel=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.f.onSubmit=function(){var y=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(D){return D.active}).map(function(D){return D.innerText.trim()}),W=this.hostElement.querySelector("tp-yt-paper-radio-group"),c=W.selectedItem,Z=c.name;
c=c.innerText.trim();var G=W.querySelector("#reason-text");W=void 0;G&&(W=G.value);(G=this.descriptionText.value)&&(G=G.trim());mLQ(this.data.searchQuery,y,Z,c,G,W);_.GG(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.f.sendFormSubmitToast=function(){var y=_.xR(_.bN("SBOX_INAPPROPRIATE_TOAST"));_.GG(this.hostElement,"yt-open-popup-action",[y,this])};
_.f.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(y){return y.active})};
_.f.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
var p0=A_S;p0.prototype.onIronSelect=p0.prototype.onIronSelect;p0.prototype.onIronChange=p0.prototype.onIronChange;p0.prototype.dataChanged=p0.prototype.dataChanged;_.x([_.L(),_.e("design:type",Object)],p0.prototype,"data",void 0);_.x([_.L({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.e("design:type",Boolean)],p0.prototype,"submitDisabled",void 0);_.x([_.L(),_.e("design:type",Boolean)],p0.prototype,"suggestionSelected",void 0);
_.x([_.L(),_.e("design:type",Boolean)],p0.prototype,"catagorySelected",void 0);_.x([_.jj("#scroller"),_.e("design:type",Object)],p0.prototype,"JSC$18362_scroller",void 0);_.x([_.jj("#description-text"),_.e("design:type",Object)],p0.prototype,"descriptionText",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p0.prototype,"dataChanged",null);
_.x([_.B("iron-change"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p0.prototype,"onIronChange",null);_.x([_.B("iron-select"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],p0.prototype,"onIronSelect",null);p0=_.x([_.d({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],p0);
_.T(p0,"ytd-search-suggestion-report-dialog",function(){if(Qj3!==void 0)return Qj3;var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return Qj3=y},{mode:1});var PW=function(y){var W=y.openPopupAction;var c=y.target;var Z=y.container;var G=y.popupContainerConfig;var D=y.getElement;y=y.removeWhenClosed===void 0?!1:y.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=W;this.target=c;this.container=Z;this.popupContainerConfig=G;this.getElement=D;this.JSC$18368_popupConfig=this.popupContainerConfig.JSC$17483_popupConfig[this.openPopupAction.popupType];this.rendererName=(W=this.getName())?_.NiE(W,o1d(this.popupContainerConfig,
W)):"";_.O("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=y);this.createPopup()};
PW.prototype.updatePopup=function(y){this.openPopupAction=y;this.JSC$18368_popupConfig=this.popupContainerConfig.JSC$17483_popupConfig[this.openPopupAction.popupType];haB(this);_.O("reorder_popup_updates_killswitch")&&B0d(this);_.O("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var vGD=function(y,W,c){y.target=c;var Z;c=((Z=y.target.polymerController)!=null?Z:y.target).popupPositionTarget||y.target;y.JSC$18368_popupConfig.targetContainer&&(c=y.container);y.popup.positionTarget=c;y.popupContent.positionTarget=c;_.O("reorder_popup_updates_killswitch")||B0d(y);y.JSC$18368_popupConfig.forceFocus&&(y.popupContent.style.outline="none");y.popupContent.tabIndex=-1;y.JSC$18368_popupConfig.narrowProperties&&(y.popup.style.position="static");y.JSC$18368_popupConfig.preventAutonav&&
y.popup.setAttribute("prevent-autonav",!0);y.JSC$18368_popupConfig.forceCloseOnOutsideClick&&y.popup.setAttribute("force-close-on-outside-click",!0);Hrd(y,W);LiD(y,y.JSC$18368_popupConfig.styles);y.isRtl()&&LiD(y,y.JSC$18368_popupConfig.rtlStyles);if(!y.openPopupAction.shouldStopParentSignal){var G;W=(G=y.target.polymerController)!=null?G:y.target;(y.popupContent.startForwardingEvents||y.popupContainerConfig.forwardingEnabledPopups.has(y.rendererName))&&W.parentComponent!==y.popupContent&&y.popupContent!==
y.target&&y.target!==document.body&&(y.popupContent.startForwardingEvents?y.popupContent.startForwardingEvents(y.popupContainerConfig.forwardedEvents,y.target):(y.JSC$18368_eventForwarder||(y.JSC$18368_eventForwarder=new _.Ds(y.popupContent)),y.JSC$18368_eventForwarder.start(y.popupContainerConfig.forwardedEvents,y.target)))}};
PW.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Hrd=function(y,W){dGQ(y,W&&y.JSC$18368_popupConfig.narrowProperties?y.JSC$18368_popupConfig.narrowProperties:y.JSC$18368_popupConfig.properties);y.isRtl()&&dGQ(y,y.JSC$18368_popupConfig.rtlProperties);B0d(y)};
PW.prototype.createPopup=function(){var y=this.JSC$18368_popupConfig.component;if(this.popupContent=S8H(this,this.rendererName)){if(y){this.popup=S8H(this,y);var W=this.popupContent;_.O("web_enable_wrapper_for_cow_component_in_popup")&&(W=document.createElement("div"),W.appendChild(this.popupContent));_.O("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18368_popupConfig.slotName&&W.setAttribute("slot",this.JSC$18368_popupConfig.slotName);y=this.popup;var c=this.container.tagName.toLowerCase(),
Z=_.BK(W);_.raI(_.LZ(y),_.Sd(W,c,Z));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.O("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.p(this.container).appendChild(this.popup)}};
var haB=function(y){var W,c,Z=(W=y.openPopupAction.accessibilityData)==null?void 0:(c=W.accessibilityData)==null?void 0:c.label;Z&&(y.popup.ariaLabel=Z);var G;((G=y.popupContent.polymerController)!=null?G:y.popupContent).data=(0,_.Eb.unsafeClone)(y.openPopupAction.popup[y.getName()]);y.popupContent.duration=T0D(y);y.popupContent.positionType=y.openPopupAction.position;var D=y.openPopupAction.properties;D&&Object.keys(D).forEach(function(Y){y.popupContent[Y]=D[Y]})},dGQ=function(y,W){if(W)for(var c=
_.z(Object.keys(W)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,y.popup[Z]=W[Z]},B0d=function(y){if(y.openPopupAction.position){var W=y.JSC$18368_popupConfig.positionalProperties&&y.JSC$18368_popupConfig.positionalProperties[y.openPopupAction.position],c=y.JSC$18368_popupConfig.rtlPositionalProperties&&y.JSC$18368_popupConfig.rtlPositionalProperties[y.openPopupAction.position];
W=y.isRtl()&&c?c:W;W.shiftedHorizontalOffset&&(c=y.popup.style.display,y.popup.style.display="block",y.popupContent&&y.popup.positionTarget&&y.popupContent.clientWidth>y.popup.positionTarget.clientWidth&&(W.horizontalOffset=y.popup.positionTarget.clientWidth/2-W.shiftedHorizontalOffset),y.popup.style.display=c);dGQ(y,W)}},LiD=function(y,W){if(W)for(var c=_.z(Object.keys(W)),Z=c.next();!Z.done;Z=c.next())Z=Z.value,y.popup.style[Z]=W[Z]};
PW.prototype.getName=function(){return _.Kj(this.openPopupAction.popup,"renderer")||_.Kj(this.openPopupAction.popup,"dialog")||_.Kj(this.openPopupAction.popup,"model")||void 0};
var T0D=function(y){y=y.openPopupAction.durationHintMs;return y===0?y:Math.max(4E3,y||4E3)};
PW.prototype.isRtl=function(){return _.Nn("HTML_DIR")==="rtl"};
var S8H=function(y,W){y=y.getElement(W,y.target);y==null&&_.Rs(new _.ul("popup getElement returned null",W));return y};var a7Q={};
a7Q.YtPopupContainerBehavior=[_.KA.YtComponentBehavior,_.Hj.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_);_.WA(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.cA(this.hostElement)},
closePopup:function(y){var W=this.createCacheKey(void 0,y);this.popups_[W]&&this.handleClosePopupAction_(void 0,y)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.KX.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.KX.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(y){y.opened&&y.keepBelowPlayer&&this.ensurePopupBelowPlayer(y)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var y in this.popups_){var W=this.popups_[y];if(W.popup.scrollAction==="refit"){var c=W.popup.positionTarget.getBoundingClientRect(),Z=W.popup;c=c.top;var G=W;if(!G.naturalHeight){G.popup.hidden=!1;G.popup.style.position="fixed";G.popup.style.top="0px";G.popup.style.left="0px";var D=G.popup.getBoundingClientRect();G.naturalHeight=D.bottom-D.top;G.popup.refit()}Z.hidden=!(c>=G.naturalHeight+60);W.popupContent.clientHeight===0&&W.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(y){this.popupContainerConfig=y},
handleOpenPopupAction:function(y,W){var c=y.openPopupAction,Z=_.U().resolve(_.xN(_.SN9))&&c.popupType==="TOAST";Z&&!c.uniqueId&&(c.uniqueId=_.uY());if(!_.O("popup_container_parent_target_killswitch")){var G;W=(G=this.getParentTarget(W))!=null?G:W}var D=this.ensurePopup_(c,W);return new _.fD(function(Y){D.then(function(u){if(!u)return Y();this.maybeCreateNarrowMediaQuery_();var t=this.createCacheKey(u.rendererName,u.openPopupAction.uniqueId);if(c.showOncePerUniqueId){if(this.shownPopupKeys_.has(t))return Y();
this.shownPopupKeys_.add(t)}t=this.popups_[t];var b=!(!t||!t.openPopupAction.beReused);b=!!c.reusePopup||b;if(u.popup.opened&&!b){Z&&!u.openPopupAction.replacePopup||this.handleClosePopupAction_(u.rendererName,u.openPopupAction.uniqueId);b=c.popupType==="DIALOG"&&!_.O("popup_container_dialog_reopen_killswitch");if(!Z&&!b&&t&&t.target==W&&!u.openPopupAction.replacePopup)return Y();_.Lv(u.popup,function(){this.completeOpenPopupAction_(c,W,u);Y()}.bind(this))}else u.popup.opened?u.updatePopup(c):this.completeOpenPopupAction_(c,
W,u),Y()}.bind(this))}.bind(this))},
getParentTarget:function(y){if(y&&y instanceof HTMLElement)for(var W=_.z(Object.entries(this.popups_)),c=W.next();!c.done;c=W.next())if(c=_.z(c.value),c.next(),c=c.next().value,c.popup.tagName==="TP-YT-IRON-DROPDOWN"&&c.popup.opened&&y.closest(c.rendererName))return c.target},
completeOpenPopupAction_:function(y,W,c){_.O("reorder_popup_updates_killswitch")?(vGD(c,this.narrowMediaQuery_.queryMatches,W),c.updatePopup(y)):(c.updatePopup(y),vGD(c,this.narrowMediaQuery_.queryMatches,W));y=c.popup;y.addEventListener("iron-overlay-opened",_.qO(this,this.onPopupIronOverlayOpened_));y.addEventListener("iron-overlay-closed",_.qO(this,this.onPopupIronOverlayClosed_));y.addEventListener("iron-overlay-canceled",_.qO(this,this.onPopupIronOverlayCanceled_));y.addEventListener("yt-refit",
_.qO(this,this.refitPopup_));y.addEventListener("yt-invalidate-popup-tabbables",_.qO(this,this.handleInvalidatePopupTabbables_));y.open()},
getPopupDurationMs_:function(y){return y.durationHintMs===0?y.durationHintMs:Math.max(4E3,y.durationHintMs||4E3)},
handleClosePopupAction_:function(y,W){var c=_.O("web_popup_cache_key_killswitch")||!!W;if(y||c){var Z=this.createCacheKey(y,W);y=(y=this.popups_[Z])&&y.popup}else y=_.XUQ(_.C7);if(y&&y.close){if(W=_.U().resolve(_.xN(_.ml)))y.restoreFocusOnClose=W.isKeyBoardInUse();y.close();this.removePopup_(y,Z)}},
handleClosePopupCommand_:function(y){y.closePopupCommand&&y.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,y.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(y){var W={},c;for(c in this.popups_)if(W={key$jscomp$1156:W.key$jscomp$1156},W.key$jscomp$1156=c,!y||!y.some(function(D){return function(Y){return Y==D.key$jscomp$1156}}(W))){var Z=this.popups_[W.key$jscomp$1156],G=Z.popup;
_.U().resolve(_.xN(_.SN9))&&Z.openPopupAction.popupType==="TOAST"||(G&&G.close&&G.close(),this.removePopup_(G,W.key$jscomp$1156))}},
handleClosePopupsAction_:function(y){y.forEach(function(W){var c=this.popups_[W];c&&((c=c.popup)&&c.close&&c.close(),this.removePopup_(c,W))}.bind(this))},
handleGetPopupOpenedAction_:function(y,W){return(W=this.createCacheKey(y,W))&&this.popups_[W]?this.popups_[y].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var y=[],W;for(W in this.popups_){var c=this.popups_[W];c.popup.opened&&y.push(c)}return y},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(y,W){_.O("ytpopup_disable_default_html_caching")&&y&&y.removeWhenClosed&&(_.p(this.hostElement).removeChild(y),W&&this.popups_[W]&&delete this.popups_[W])},
shouldReusePopup_:function(y){return!(!y||!y.reusePopup)||!(!y||!y.beReused)},
ensurePopup_:function(y,W){this.maybeCreateNarrowMediaQuery_();var c=_.Kj(y.popup,"renderer")||_.Kj(y.popup,"dialog")||_.Kj(y.popup,"model");if(!c)return _.sc();c=_.NiE(c,o1d(this.popupContainerConfig,c));return _.sc(this.getAndMaybeCreatePopup_(y,c,W))},
getAndMaybeCreatePopup_:function(y,W,c){var Z=this.createCacheKey(W,y.uniqueId);if(this.popups_[Z])return this.popups_[Z];y=new PW({openPopupAction:y,target:c,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(W)});return this.popups_[Z]=y},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(y){return _.O("ytpopup_disable_default_html_caching")?y&&y.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",_.qO(this,this.openPopupQueryMatchesChanged_)),_.p(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(y){y=y.detail.value;for(var W in this.popups_)Hrd(this.popups_[W],y)},
onPopupIronOverlayClosed_:function(y){var W=y.currentTarget,c=_.BxI(W);c=c.length>0?c[0]:W;if(c.is!=="ytd-reel-watch-while-dialog-renderer"||y.target.is!=="tp-yt-iron-dropdown"){y.detail.popup=W;y.detail.popupRenderer=c;var Z,G={context:{openingElement:((Z=this.popups_[(c==null?void 0:c.is)||""])==null?void 0:Z.target)||void 0}};Object.assign(G,y.detail);var D;_.Z2((D=c.hostElement)!=null?D:c,"yt-popup-closed",G);W.removeEventListener("yt-refit",_.qO(this,this.refitPopup_));W.removeEventListener("yt-invalidate-popup-tabbables",
_.qO(this,this.handleInvalidatePopupTabbables_));W.removeEventListener("iron-overlay-canceled",_.qO(this,this.onPopupIronOverlayCanceled_));W.removeEventListener("iron-overlay-closed",_.qO(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(W)}},
onPopupIronOverlayCanceled_:function(y,W){var c=y.currentTarget,Z=_.BxI(c);Z=Z.length>0?Z[0]:c;if(Z.is!=="ytd-reel-watch-while-dialog-renderer"||y.target.is!=="tp-yt-iron-dropdown"){var G;_.Z2((G=Z.hostElement)!=null?G:Z,"yt-popup-canceled",y.detail);G=W?_.Aq(W):null;(!W||["click","tap"].includes(W.type))&&!c.hasAttribute("force-close-on-outside-click")&&c.positionTarget&&G&&G.includes(c.positionTarget)&&y.preventDefault();c.restoreFocusOnClose=_.uO.keyboardEventMatchesKeys(W,"esc")}},
onPopupIronOverlayOpened_:function(y){y=y.currentTarget;var W=_.BxI(y);W=W.length>0?W[0]:y;var c,Z;_.Z2((c=W.hostElement)!=null?c:W,"yt-popup-opened",(Z=W.hostElement)!=null?Z:W);y.keepBelowPlayer&&(this.ensurePopupBelowPlayer(y,!0),this.dynamicallyPositionedElements_.add(y));c=_.U().resolve(_.xN(_.ml));Z=!!W.querySelector("#toast");c&&c.isKeyBoardInUse()&&!Z&&(typeof W.focusFirstItem==="function"?W.focusFirstItem():(W=_.uGi(y),W.length&&W[0].focus()));y.removeEventListener("iron-overlay-opened",
_.qO(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(y){y=y.currentTarget;y.refit&&y.refit()},
refitPopups_:function(){for(var y in this.popups_)this.popups_[y].refit()},
handleInvalidatePopupTabbables_:function(y){y=y.currentTarget;y.invalidateTabbables&&y.invalidateTabbables()},
createCacheKey:function(y,W){return _.O("web_popup_cache_key_killswitch")?W?y+"#"+W:y:W?"#"+W:y},
openSheet:function(y,W){var c=y==null?void 0:y.openPopupActionCommand;!c&&(y==null?0:y.viewModel)&&(c={openPopupAction:{popup:{sheetViewModel:y.viewModel},popupType:"CONTEXTUAL_SHEET"}});c&&this.handleOpenPopupAction(c,W)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var y=this;return _.m(function(W){return W.return(y.handleGetOpenedPopupsAction_().filter(function(c){var Z;return((Z=c.openPopupAction)==null?void 0:Z.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(y,W,c){if(_.O("web_dialog_utils_killswitch")){var Z=y==null?void 0:y.openPopupActionCommand,G=(c==null?0:c.ariaLabel)?{accessibilityData:{accessibilityData:{label:c.ariaLabel}}}:void 0;!Z&&(y==null?0:y.viewModel)&&(Z={openPopupAction:Object.assign({},{popup:{dialogViewModel:y.viewModel},popupType:(c==null?0:c.isModal)?"MODAL":"DIALOG"},G&&G)});Z&&this.handleOpenPopupAction(Z,W)}else{if(G=y==null?void 0:y.viewModel){var D=c=c===void 0?{}:c;c=D.ariaLabel;G={popup:{dialogViewModel:G},
popupType:D.isModal?"MODAL":"DIALOG"};D={accessibilityData:{label:c}};c&&(G.accessibilityData=D);G={openPopupAction:G}}else G=void 0;(G=(Z=G)!=null?Z:y==null?void 0:y.openPopupActionCommand)&&this.handleOpenPopupAction(G,W)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var y=this;return _.m(function(W){return W.return(y.handleGetOpenedPopupsAction_().filter(function(c){var Z;return((Z=c.openPopupAction)==null?void 0:Z.popupType)==="DIALOG"}).length>0)})}}];var xGd;var irD;var M$3=_.dl(["about:blank"]),eaD=function(){var y=_.v.apply(this,arguments)||this;y.isMuted=!1;y.pageLoadTimeoutId=void 0;return y};
_.R(eaD,_.v);_.f=eaD.prototype;_.f.dataChanged=function(){var y=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var W=this.data.url,c=_.OW(W);_.O("enable_yt_ata_iframe_authuser")?(c=_.OW(W),_.df(this.iframe,s_Q(c))):_.df(this.iframe,c);this.pageLoadTimeoutId=_.Xc(_.gl(),function(){return void y.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.x6({destination:window,iframe:this.iframe,origin:_.tDE(c.toString()),channelName:"ataiframe",onMessage:_.LE2(oZZ,function(Z){DlD(Z.data)?(Z=_.Qd(Z.data,1,_.kW,_.ky()),Z.length!==1?_.Rs(Error("ol")):(Z=Z[0],Z===3?(y.isMuted=!0,y.logStateChanged({adMuteRequested:!0})):Z===1&&y.close())):_.Rs(Error("pl"))}),
onEstablished:function(){y.cancelPageLoadTimeout();y.logStateChanged({pageLoadSucceeded:!0})}})}};
_.f.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.gl().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.f.logStateChanged=function(y){var W;if((W=this.data)==null?0:W.trackingParams)y={adsClientData:{aboutThisAdData:y}},_.Zz().stateChanged(this.data.trackingParams,y)};
_.f.close=function(){_.GG(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.handlesPopupClosed=function(y,W){var c=this,Z,G;return _.m(function(D){if(D.nextAddress==1)return _.Nn("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.GG(c.hostElement,"on-about-this-ad-popup-closed",[c.isMuted,W]),D.jumpTo(0)):y&&uw6(y)?_.n(D,t2Z(y),4):(c.isMuted&&_.GG(c.hostElement,"yt-mute-ad-action",[c.is,c]),D.jumpTo(0));if(Z=D.yieldResult){var Y=G=new _.O7(Z),u=c.isMuted;Y.getOptions().includes("onAboutThisAdPopupClosed")?_.O3E(Y,"onAboutThisAdPopupClosed",{isMuted:u,layoutId:W}):_.e8("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.F2(D)})};
_.f.onPopupClosed=function(y){var W=this,c,Z;return _.m(function(G){c=_.cu(M$3);_.df(W.iframe,c);W.cancelPageLoadTimeout();if(!W.data)return G.jumpTo(0);W.ytRendererBehavior.markDirty();Z=y.detail.context.openingElement;return _.n(G,W.handlesPopupClosed(Z,W.data.layoutId),0)})};
_.f.detached=function(){this.cancelPageLoadTimeout()};
_.f.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Jg=eaD;Jg.prototype.onPopupClosed=Jg.prototype.onPopupClosed;Jg.prototype.dataChanged=Jg.prototype.dataChanged;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.x([_.jj("#iframe"),_.e("design:type",HTMLIFrameElement)],Jg.prototype,"iframe",void 0);_.x([_.L(),_.e("design:type",Object)],Jg.prototype,"data",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Jg.prototype,"dataChanged",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype",Promise)],Jg.prototype,"onPopupClosed",null);Jg=_.x([_.n6({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Jg);
_.T(Jg,"yt-about-this-ad-renderer",function(){if(irD===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;xGd===void 0&&(xGd=document.createElement("template"));var Z=xGd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);irD=y}y=irD;return y},{mode:2});var w6Q;var q8H;var VB=function(y){var W=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=W.message;"stack"in W&&(this.stack=W.stack);this.maxFileSizeMB=y;Object.setPrototypeOf(this,VB.prototype)};
_.R(VB,Error);var kBZ=function(y,W){var c=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.minWidth=y;this.minHeight=W;Object.setPrototypeOf(this,kBZ.prototype)};
_.R(kBZ,Error);var jgZ=function(y){this.requirements=y;this.JSC$18396_maxFileSize=y.maxFileSizeMB*1024*1024},ybB=function(y,W){if(W.size>y.JSC$18396_maxFileSize)throw new VB(y.requirements.maxFileSizeMB);
};var WkQ=function(y,W){this.canvas=y;this.imageEditorBuilder=W};
WkQ.prototype.addEventListeners=function(y){var W=function(G){cb3(y,G)};
this.JSC$18402_mouseDownEvent=W;var c=function(G){ZYH(y,G)};
this.JSC$18402_mouseMoveEvent=c;var Z=function(){G46(y)};
this.JSC$18402_mouseUpEvent=Z;this.canvas.addEventListener("mousedown",W);this.canvas.addEventListener("mousemove",c);document.addEventListener("mouseup",Z)};
WkQ.prototype.removeEventListeners=function(){this.JSC$18402_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18402_mouseDownEvent);this.JSC$18402_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18402_mouseMoveEvent);this.JSC$18402_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18402_mouseUpEvent)};
var f16=function(y,W){y.removeEventListeners();return new Promise(function(c){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var G=y.imageEditorBuilder(y.canvas,Z);y.addEventListeners(G);c(G)};
Z.src=W})},C0=function(y,W,c,Z,G,D,Y,u){this.canvas=y;
this.image=W;this.requiredRatio=c;this.minImageCropDimension=Z;this.minOutputImageResolution=G;this.component=D;this.styleFocusedCorner=u===void 0?!0:u;this.action=2;this.focusedCorner=this.resizeCorner=0;y=this.canvas.getContext("2d");if(!y)throw Error("ql");this.ctx=y;this.canvasMargin=Y!=null?Y:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Y=this.image;y=this.canvasInnerWidth/Y.width;Y.height*y>912&&(y=Y.width/Y.height*912/Y.width);Y=y;this.scaledImageWidth=this.canvas.width%2?
XM9(this.image.width*Y):n_d(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$18405_overlayMarginBottom=this.JSC$18405_overlayMarginTop=this.canvasMargin;this.JSC$18405_overlayMarginRight=this.JSC$18405_overlayMarginLeft=this.horizontalMargin;this.JSC$18405_overlayWidth=this.scaledImageWidth;this.JSC$18405_overlayHeight=this.scaledImageHeight;
y=this.image.width/this.image.height;y>this.requiredRatio?(this.JSC$18405_overlayWidth=this.canvas.width%2?XM9(this.scaledImageHeight*this.requiredRatio):n_d(this.scaledImageHeight*this.requiredRatio),this.JSC$18405_overlayMarginRight=this.JSC$18405_overlayMarginLeft=(this.canvas.width-this.JSC$18405_overlayWidth)/2):y<this.requiredRatio&&(this.JSC$18405_overlayHeight=this.canvas.height%2?XM9(this.scaledImageWidth/this.requiredRatio):n_d(this.scaledImageWidth/this.requiredRatio),this.JSC$18405_overlayMarginBottom=
this.JSC$18405_overlayMarginTop=(this.canvas.height-this.JSC$18405_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Y,this.scaledImageWidth);oBS(this)};
C0.prototype.getContext=function(){return this.ctx};
var cb3=function(y,W){W={x:Math.round(W.pageX-y.canvas.getBoundingClientRect().left),y:Math.round(W.pageY-y.canvas.getBoundingClientRect().top)};y.dragStart=W;DIg(y,W)!==0?(y.action=1,zx6(y,W),y.resizeCorner=DIg(y,W)):W.x>y.JSC$18405_overlayMarginLeft&&W.x<y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth&&W.y>y.JSC$18405_overlayMarginTop&&W.y<y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight&&(y.action=0)},YTD=function(y,W){switch(W){case 1:return{x:y.JSC$18405_overlayMarginLeft,
y:y.JSC$18405_overlayMarginTop};case 2:return{x:y.JSC$18405_overlayMarginLeft,y:y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight};case 3:return{x:y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth,y:y.JSC$18405_overlayMarginTop};case 4:return{x:y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth,y:y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight};default:throw Error("rl");}},sgB=function(y,W){if(y.focusedCorner!==0){y.dragStart=YTD(y,y.focusedCorner);
y.action=1;y.resizeCorner=y.focusedCorner;var c=y.dragStart.x,Z=y.dragStart.y;switch(W){case 0:y.focusedCorner===1||y.focusedCorner===4?(c-=10,Z-=10):(c-=10,Z+=10);break;case 1:y.focusedCorner===1||y.focusedCorner===4?(c+=10,Z+=10):(c+=10,Z-=10);break;case 2:c=y.focusedCorner===1||y.focusedCorner===4?c-10:c+10;Z-=10;break;case 3:c=y.focusedCorner===1||y.focusedCorner===4?c+10:c-10;Z+=10;break;default:throw Error("sl");}mIf(y,{x:c,y:Z});oBS(y);y.action=2;y.dragStart=void 0}},ZYH=function(y,W){W={x:Math.round(W.pageX-
y.canvas.getBoundingClientRect().left),
y:Math.round(W.pageY-y.canvas.getBoundingClientRect().top)};zx6(y,W);switch(y.action){case 1:mIf(y,W);break;case 0:y.dragStart&&(y.JSC$18405_overlayMarginLeft=Math.max(y.horizontalMargin,Math.min(y.JSC$18405_overlayMarginLeft-(y.dragStart.x-W.x),y.horizontalMargin+y.scaledImageWidth-y.JSC$18405_overlayWidth)),y.JSC$18405_overlayMarginRight=y.canvas.width-y.JSC$18405_overlayMarginLeft-y.JSC$18405_overlayWidth,y.JSC$18405_overlayMarginTop=Math.max(y.canvasMargin,Math.min(y.JSC$18405_overlayMarginTop-
(y.dragStart.y-W.y),y.scaledImageHeight-y.JSC$18405_overlayHeight+y.canvasMargin)),y.JSC$18405_overlayMarginBottom=y.canvas.height-(y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight));break;default:return}oBS(y);y.dragStart=W},G46=function(y){y.action=2;
y.dragStart=void 0;document.body.style.cursor="auto"},zx6=function(y,W){switch(DIg(y,W)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:y.action!==1&&(document.body.style.cursor="auto")}},DIg=function(y,W){var c=y.JSC$18405_overlayMarginLeft-5,Z=y.JSC$18405_overlayMarginTop-5,G=y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth-5;
y=y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight-5;return u0Q(W,{x:c,y:Z})?1:u0Q(W,{x:G,y:Z})?3:u0Q(W,{x:c,y:y})?2:u0Q(W,{x:G,y:y})?4:0},u0Q=function(y,W){return y.x>=W.x&&y.x<=W.x+10&&y.y>=W.y&&y.y<=W.y+10},mIf=function(y,W){if(y.dragStart)switch(y.resizeCorner){case 2:Math.abs((y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth-W.x)/(W.y-y.JSC$18405_overlayMarginTop))>=y.requiredRatio?tK6(y,W.x):nBH(y,W.y);
break;case 1:Math.abs((y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth-W.x)/(y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight-W.y))>=y.requiredRatio?Xed(y,W.x):nBH(y,W.y);break;case 4:Math.abs((W.x-y.JSC$18405_overlayMarginLeft)/(W.y-y.JSC$18405_overlayMarginTop))>=y.requiredRatio?tK6(y,W.x):bYS(y,W.y);break;case 3:Math.abs((W.x-y.JSC$18405_overlayMarginLeft)/(y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight-W.y))>=y.requiredRatio?Xed(y,W.x):bYS(y,W.y);break;default:throw Error("tl");
}},tK6=function(y,W){var c=y.JSC$18405_overlayMarginTop;
y.JSC$18405_overlayMarginBottom=rbH(y,W);y.JSC$18405_overlayHeight=y.canvas.height-y.JSC$18405_overlayMarginBottom-c;y.JSC$18405_overlayWidth=Math.round(y.JSC$18405_overlayHeight*y.requiredRatio);Fkd(y)},Xed=function(y,W){var c=y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight;
y.JSC$18405_overlayMarginTop=rbH(y,W);y.JSC$18405_overlayHeight=c-y.JSC$18405_overlayMarginTop;y.JSC$18405_overlayWidth=Math.round(y.JSC$18405_overlayHeight*y.requiredRatio);Fkd(y)},Fkd=function(y){switch(y.resizeCorner){case 2:case 1:y.JSC$18405_overlayMarginLeft=y.canvas.width-y.JSC$18405_overlayMarginRight-y.JSC$18405_overlayWidth;
break;case 4:case 3:y.JSC$18405_overlayMarginRight=y.canvas.width-y.JSC$18405_overlayMarginLeft-y.JSC$18405_overlayWidth;break;default:throw Error("tl");}},nBH=function(y,W){var c=y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth;
y.JSC$18405_overlayMarginLeft=UI3(y,W);y.JSC$18405_overlayWidth=c-y.JSC$18405_overlayMarginLeft;y.JSC$18405_overlayHeight=Math.round(y.JSC$18405_overlayWidth/y.requiredRatio);$I6(y)},bYS=function(y,W){var c=y.JSC$18405_overlayMarginLeft;
y.JSC$18405_overlayMarginRight=UI3(y,W);y.JSC$18405_overlayWidth=y.canvas.width-y.JSC$18405_overlayMarginRight-c;y.JSC$18405_overlayHeight=Math.round(y.JSC$18405_overlayWidth/y.requiredRatio);$I6(y)},$I6=function(y){switch(y.resizeCorner){case 2:case 4:y.JSC$18405_overlayMarginBottom=y.canvas.height-y.JSC$18405_overlayMarginTop-y.JSC$18405_overlayHeight;
break;case 1:case 3:y.JSC$18405_overlayMarginTop=y.canvas.height-y.JSC$18405_overlayMarginBottom-y.JSC$18405_overlayHeight;break;default:throw Error("tl");}},rbH=function(y,W){switch(y.resizeCorner){case 2:W=y.canvas.height-(y.JSC$18405_overlayMarginTop+Kk9(y,W));
break;case 4:W=y.canvas.height-(y.JSC$18405_overlayMarginTop+OYd(y,W));break;case 1:W=y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight-Kk9(y,W);break;case 3:W=y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight-OYd(y,W);break;default:throw Error("tl");}return Math.max(W,y.canvasMargin)},Kk9=function(y,W){W=y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth-Math.max(W,y.horizontalMargin);
W=W<0?y.JSC$18405_overlayWidth:Math.max(W,y.minOverlayWidth);return Math.round(W/y.requiredRatio)},OYd=function(y,W){W=y.canvas.width-Math.max(y.canvas.width-W,y.horizontalMargin)-y.JSC$18405_overlayMarginLeft;
W=W<0?y.JSC$18405_overlayWidth:Math.max(W,y.minOverlayWidth);return Math.round(W/y.requiredRatio)},UI3=function(y,W){switch(y.resizeCorner){case 2:W=y.canvas.width-y.JSC$18405_overlayMarginRight-gBS(y,W);
break;case 4:W=y.canvas.width-y.JSC$18405_overlayMarginLeft-gBS(y,W);break;case 1:W=y.canvas.width-y.JSC$18405_overlayMarginRight-Rxd(y,W);break;case 3:W=y.canvas.width-y.JSC$18405_overlayMarginLeft-Rxd(y,W);break;default:throw Error("tl");}return Math.max(W,y.horizontalMargin)},gBS=function(y,W){W=y.canvas.height-Math.max(y.canvas.height-W,y.canvasMargin)-y.JSC$18405_overlayMarginTop;
return W<0?y.JSC$18405_overlayWidth:Math.max(Math.round(W*y.requiredRatio),y.minOverlayWidth)},Rxd=function(y,W){W=y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight-Math.max(W,y.canvasMargin);
return W<0?y.JSC$18405_overlayWidth:Math.max(Math.round(W*y.requiredRatio),y.minOverlayWidth)},oBS=function(y){y.ctx.clearRect(0,0,y.canvas.width,y.canvas.height);
y.ctx.drawImage(y.image,0,0,y.image.width,y.image.height,y.horizontalMargin,y.canvasMargin,y.canvas.width-2*y.horizontalMargin,y.scaledImageHeight);y.ctx.fillStyle="rgba(0, 0, 0, 0.7)";y.ctx.fillRect(y.horizontalMargin,y.JSC$18405_overlayMarginTop,y.JSC$18405_overlayMarginLeft-y.horizontalMargin,y.JSC$18405_overlayHeight);y.ctx.fillRect(y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth,y.JSC$18405_overlayMarginTop,y.JSC$18405_overlayMarginRight-y.horizontalMargin,y.JSC$18405_overlayHeight);y.ctx.fillRect(y.horizontalMargin,
y.canvasMargin,y.scaledImageWidth,y.JSC$18405_overlayMarginTop-y.canvasMargin);y.ctx.fillRect(y.horizontalMargin,y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight,y.scaledImageWidth,y.JSC$18405_overlayMarginBottom-y.canvasMargin);y.drawOverlay();y.component&&_.Z2(y.component,"image-updated")};
C0.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18405_overlayMarginLeft,this.JSC$18405_overlayMarginTop,this.JSC$18405_overlayWidth,this.JSC$18405_overlayHeight);l1Q(this)};
var l1Q=function(y){var W=y.JSC$18405_overlayMarginLeft-5,c=y.JSC$18405_overlayMarginTop-5,Z=y.JSC$18405_overlayMarginLeft+y.JSC$18405_overlayWidth-5,G=y.JSC$18405_overlayMarginTop+y.JSC$18405_overlayHeight-5;y.ctx.fillStyle="#FFF";y.ctx.fillRect(W,c,10,10);y.ctx.strokeRect(W,c,10,10);y.ctx.fillRect(Z,c,10,10);y.ctx.strokeRect(Z,c,10,10);y.ctx.fillRect(W,G,10,10);y.ctx.strokeRect(W,G,10,10);y.ctx.fillRect(Z,G,10,10);y.ctx.strokeRect(Z,G,10,10);if(y.focusedCorner!==0&&y.styleFocusedCorner){y.ctx.lineWidth=
4;y.ctx.strokeStyle="#3EA6FF";switch(y.focusedCorner){case 1:--W;--c;break;case 2:--W;c=G-1;break;case 3:W=Z-1;--c;break;case 4:W=Z-1;c=G-1;break;default:return}y.ctx.strokeRect(W,c,12,12)}};
C0.prototype.crop=function(y,W){W=W===void 0?!0:W;var c=this.image.width/this.scaledImageWidth,Z=document.createElement("canvas"),G=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],D=this.JSC$18405_overlayWidth*c,Y=this.JSC$18405_overlayHeight*c;Z.width=Math.max(D,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Z.height=Math.max(Y,G);y&&(Z.width=Math.min(Z.width,Z.height),Z.height=Math.min(Z.width,Z.height));
y=Z.getContext("2d");if(!y)throw Error("hl");G=(this.JSC$18405_overlayMarginLeft-this.horizontalMargin)*c;c*=this.JSC$18405_overlayMarginTop-this.canvasMargin;W||(y.fillStyle="white",y.fillRect(0,0,Z.width,Z.height));y.drawImage(this.image,G,c,D,Y,0,0,Z.width,Z.height);return Z};var EBH=function(y,W,c,Z,G){C0.call(this,y,W,c,Z,void 0,G,8,!1)};
_.R(EBH,C0);EBH.prototype.drawOverlay=function(){var y=this.getContext(),W=this.JSC$18405_overlayWidth,c=this.JSC$18405_overlayHeight,Z=this.JSC$18405_overlayMarginTop,G=this.JSC$18405_overlayMarginLeft;y.lineWidth=2;y.strokeStyle="#3EA6FF";y.beginPath();y.arc(G+W/2,Z+c/2,W/2,0,2*Math.PI);y.stroke();y.strokeRect(G,Z,W,c);l1Q(this)};
var Nwd={maxFileSizeMB:15,minWidth:98,minHeight:98},I19=["image/png","image/jpeg","image/gif"],peD=function(){var y=_.v.apply(this,arguments)||this;y.fileSelectorFocusListener=null;y.errorMessage=null;y.isLoading=!0;y.hideContainer=!0;y.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return y};
_.R(peD,_.v);_.f=peD.prototype;_.f.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.f.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.f.computePlaylistThumbnail=function(y){return y==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.f.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.GG(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.f.setErrorState=function(y){this.resetErrorState();y&&(this.errorMessage=y)};
_.f.showPopup=function(){var y=this;this.hideContainer=!1;_.Xc(_.KX,function(){_.Z2(y.hostElement,"yt-refit")});
this.isLoading=!1};
_.f.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.f.closePopup=function(){this.resetFileSelector();_.GG(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onCancelTap=function(){this.isPlaylistThumbnail||_.GG(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.f.openFileSelector=function(){var y=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Xc(_.KX,function(){setTimeout(function(){if(!y.fileSelector.files||y.fileSelector.files.length===0)y.onCancelTap();y.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(W){W instanceof Error?_.OP(W):_.gC(new _.ul(JSON.stringify(W)))}};
_.f.handleFileSelection=function(){var y=this,W,c,Z,G,D,Y;return _.m(function(u){switch(u.nextAddress){case 1:_.tm(u,2);if(!y.fileSelector.files||!y.imageEditorCanvas)return y.onCancelTap(),u.return();W=y.fileSelector.files[0];ybB(y.imageChecker,W);_.tm(u,4);return _.n(u,v66(W),6);case 6:y.mimeType=u.yieldResult;_.J6(u,5,2);break;case 4:_.rs(u,2),_.GG(y.hostElement,"yt-image-selection-error-action",[(c=y.data)==null?void 0:c.genericImageLoadErrorMessage]),y.onCancelTap();case 5:Z=new FileReader;Z.addEventListener("load",
function(){var t,b;return _.m(function(r){if(r.nextAddress==1){if(!Z.result)return _.Rs(Error("jl")),r.return();t=Z.result;b=new Image;b.src=t;b.onload=function(){try{var F=y.imageChecker;if(b.width<F.requirements.minWidth||b.height<F.requirements.minHeight)throw new kBZ(F.requirements.minWidth,F.requirements.minHeight);}catch(l){if(l instanceof kBZ){var K;_.GG(y.hostElement,"yt-image-selection-error-action",[(K=y.data)==null?void 0:K.imageDimensionErrorMessage]);y.logImageDimensionErrorVe()}else l instanceof
Error?_.OP(l):(F=new _.ul(JSON.stringify(l)),_.OP(F));y.onCancelTap()}y.showPopup()};
b.onerror=function(){var F;_.GG(y.hostElement,"yt-image-selection-error-action",[(F=y.data)==null?void 0:F.genericImageLoadErrorMessage]);y.onCancelTap()};
return _.n(r,f16(y.imageEditorCanvas,t),2)}y.imageEditor=r.yieldResult;y.updatePositionOfAllCorners();y.addEventListeners(y.imageEditor);_.F2(r)})},!1);
Z.readAsDataURL(W);_.J6(u,0);break;case 2:G=_.rs(u),G instanceof VB?_.GG(y.hostElement,"yt-image-selection-error-action",[(D=y.data)==null?void 0:D.imageSizeErrorMessage]):(G instanceof Error?_.OP(G):_.gC(new _.ul(JSON.stringify(G))),_.GG(y.hostElement,"yt-image-selection-error-action",[(Y=y.data)==null?void 0:Y.genericImageLoadErrorMessage])),y.onCancelTap(),_.F2(u)}})};
_.f.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var y=_.ch(_.Zz(),{veType:232707,visualElement:_.se(232707)});y&&(y={visualElement:y},_.Wh().reportShown(y))}};
_.f.handleImageSelectionErrorAction=function(y){this.isPlaylistThumbnail&&_.S6I(this.hostElement,y)};
_.f.convertToImageFormatBundle=function(y){var W=this,c,Z,G;return _.m(function(D){switch(D.nextAddress){case 1:return c=y.toDataURL(W.outputMimeType,1),_.n(D,dr6(c),2);case 2:Z=D.yieldResult;_.tm(D,3);ybB(W.imageChecker,Z);_.J6(D,4);break;case 3:G=_.rs(D);if(!(G instanceof VB))throw G;_.Rs(new _.ul("Output size is bigger than input size for image",W.mimeType,W.outputMimeType,Z.size));c=y.toDataURL("image/jpeg",.95);return _.n(D,dr6(c),6);case 6:Z=D.yieldResult;case 4:return D.return({dataUrl:c,imageFile:Z})}})};
_.f.handleUploadImageToScottyCommand=function(y){var W=this,c,Z,G,D,Y,u,t,b,r,F;return _.m(function(K){switch(K.nextAddress){case 1:if(!W.imageEditor||!_.g(y,RpD))return K.return();c=_.g(y,RpD).scottyUploadUrl;if(!c){var l=new _.ul("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.OP(l);return K.return()}_.tm(K,2);W.setLoadingState();Z=W.imageEditor.crop(!1,!1);return _.n(K,W.convertToImageFormatBundle(Z),4);case 4:return G=K.yieldResult,_.n(K,HiB(G.imageFile,c),5);case 5:D=
K.yieldResult;((Y=W.data)==null?0:Y.onUploadEndpoint)?(u=W.buildUploadServiceEndpoint(D),W.ytComponentBehavior.resolveCommand(u),t=_.g(u,_.KF),((b=t)==null?0:b.params)?W.closePopup():W.resetFileSelector()):(_.GG(W.hostElement,"yt-image-updated-action",[G.dataUrl,D]),W.closePopup());_.J6(K,0);break;case 2:r=_.rs(K),W.setErrorState((F=W.data)==null?void 0:F.uploadErrorMessage),r instanceof Error?_.OP(r):(l=new _.ul(JSON.stringify(r)),_.OP(l)),_.F2(K)}})};
_.f.buildUploadServiceEndpoint=function(y){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",y),this.data.onUploadEndpoint):null};
_.f.dataChanged=function(){var y=this,W;return _.m(function(c){if(c.nextAddress==1){if(!y.data||!y.canvasElement)return c.return();y.data.imageRatio&&y.data.minImageCropWidth||_.gC(new _.ul("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));W=function(Z,G){return y.data.imageType==="IMAGE_TYPE_AVATAR"?new EBH(Z,G,y.data.imageRatio,[y.data.minImageCropWidth,y.data.minImageCropWidth/y.data.imageRatio],y.hostElement):new C0(Z,G,y.data.imageRatio,[y.data.minImageCropWidth,
y.data.minImageCropWidth/y.data.imageRatio],void 0,y.hostElement,8,!1)};
y.imageEditorCanvas=new WkQ(y.canvasElement,W);return y.data.url?_.n(c,f16(y.imageEditorCanvas,y.data.url),3):(y.hideContainer=!0,y.openFileSelector(),c.jumpTo(0))}y.imageEditor=c.yieldResult;y.showPopup();y.addEventListeners(y.imageEditor);_.F2(c)})};
_.f.addEventListeners=function(y){this.removeEventListeners();var W=function(G){cb3(y,G)};
this.JSC$18413_mouseDownEvent=W;var c=function(G){ZYH(y,G)};
this.JSC$18413_mouseMoveEvent=c;var Z=function(){G46(y)};
this.JSC$18413_mouseUpEvent=Z;this.topLeftCorner.addEventListener("mousedown",W);this.topLeftCorner.addEventListener("mousemove",c);this.topLeftCorner.addEventListener("mouseup",Z);this.topRightCorner.addEventListener("mousedown",W);this.topRightCorner.addEventListener("mousemove",c);this.topRightCorner.addEventListener("mouseup",Z);this.bottomLeftCorner.addEventListener("mousedown",W);this.bottomLeftCorner.addEventListener("mousemove",c);this.bottomLeftCorner.addEventListener("mouseup",Z);this.bottomRightCorner.addEventListener("mousedown",
W);this.bottomRightCorner.addEventListener("mousemove",c);this.bottomRightCorner.addEventListener("mouseup",Z)};
_.f.removeEventListeners=function(){this.JSC$18413_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18413_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18413_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18413_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18413_mouseDownEvent));this.JSC$18413_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18413_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18413_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18413_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18413_mouseMoveEvent));this.JSC$18413_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18413_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18413_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18413_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18413_mouseUpEvent))};
_.f.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var y=document.activeElement;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;switch(y){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};
_.f.updatePositionOfCorner=function(y,W){var c=y.y-W.offsetHeight/2+4;W.style.left=y.x-W.offsetWidth/2+16+"px";W.style.top=c+"px"};
_.f.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var y=_.z([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),W=y.next();!W.done;W=y.next()){W=W.value;var c=YTD(this.imageEditor,W.corner);this.updatePositionOfCorner(c,W.div)}};
_.f.onLeft=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(sgB(this.imageEditor,0),this.updatePositionOfAllCorners(),y.preventDefault())};
_.f.onRight=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(sgB(this.imageEditor,1),this.updatePositionOfAllCorners(),y.preventDefault())};
_.f.onUp=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(sgB(this.imageEditor,2),this.updatePositionOfAllCorners(),y.preventDefault())};
_.f.onDown=function(y){this.imageEditor&&this.setFocusInImageEditor()&&(sgB(this.imageEditor,3),this.updatePositionOfAllCorners(),y.preventDefault())};
_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.dJ.Object.defineProperties(peD.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&I19.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var y,W,c;((W=this.data)==null?0:W.imageRatio)&&((c=this.data)==null?0:c.minImageCropWidth)?y={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:y=Nwd;return new jgZ(y)}}});
var QB=peD;QB.prototype.updatePositionOfAllCorners=QB.prototype.updatePositionOfAllCorners;QB.prototype.dataChanged=QB.prototype.dataChanged;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],QB.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],QB.prototype,"ytComponentBehavior",void 0);_.x([_.C(_.uO),_.e("design:type",Object)],QB.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.jj("#canvas"),_.e("design:type",HTMLCanvasElement)],QB.prototype,"canvasElement",void 0);_.x([_.jj("#file-selector"),_.e("design:type",HTMLInputElement)],QB.prototype,"fileSelector",void 0);_.x([_.jj("#top-left-corner"),_.e("design:type",HTMLDivElement)],QB.prototype,"topLeftCorner",void 0);_.x([_.jj("#top-right-corner"),_.e("design:type",HTMLDivElement)],QB.prototype,"topRightCorner",void 0);
_.x([_.jj("#bottom-left-corner"),_.e("design:type",HTMLDivElement)],QB.prototype,"bottomLeftCorner",void 0);_.x([_.jj("#bottom-right-corner"),_.e("design:type",HTMLDivElement)],QB.prototype,"bottomRightCorner",void 0);_.x([_.L(),_.e("design:type",Object)],QB.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],QB.prototype,"errorMessage",void 0);_.x([_.L(),_.e("design:type",Object)],QB.prototype,"isLoading",void 0);_.x([_.L(),_.e("design:type",Object)],QB.prototype,"hideContainer",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.e("design:type",Boolean)],QB.prototype,"isPlaylistThumbnail",void 0);_.x([_.Gs("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],QB.prototype,"dataChanged",null);_.x([_.B("image-updated"),_.B("yt-refit"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],QB.prototype,"updatePositionOfAllCorners",null);
QB=_.x([_.n6({is:"yt-image-editor-renderer",disableElementRegistration:!0})],QB);
_.T(QB,"yt-image-editor-renderer",function(){if(q8H===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;w6Q===void 0&&(w6Q=document.createElement("template"));var Z=w6Q;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);q8H=y}y=q8H;return y},{mode:2});var Pd3;var Jb9;var Ag=function(){return _.v.apply(this,arguments)||this};
_.R(Ag,_.v);Ag.prototype.updateMinutesFromBinding=function(y){this.handleMinutesChanged&&this.handleMinutesChanged(y)};
Ag.prototype.updateSecondsFromBinding=function(y){this.handleSecondsChanged&&this.handleSecondsChanged(y)};
Ag.prototype.updateDescriptionFromBinding=function(y){this.handleDescriptionChanged&&this.handleDescriptionChanged(y)};
var hg=Ag;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],hg.prototype,"ytComponentBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],hg.prototype,"data",void 0);_.x([_.L(),_.e("design:type",String)],hg.prototype,"minutes",void 0);_.x([_.L(),_.e("design:type",String)],hg.prototype,"seconds",void 0);_.x([_.L(),_.e("design:type",String)],hg.prototype,"description",void 0);_.x([_.L(),_.e("design:type",Function)],hg.prototype,"handleMinutesChanged",void 0);
_.x([_.L(),_.e("design:type",Function)],hg.prototype,"handleSecondsChanged",void 0);_.x([_.L(),_.e("design:type",Function)],hg.prototype,"handleDescriptionChanged",void 0);_.x([_.L(),_.e("design:type",Number)],hg.prototype,"characterLimit",void 0);_.x([_.L(),_.e("design:type",Number)],hg.prototype,"textNumRows",void 0);hg=_.x([_.n6({is:"yt-report-details-form-content",disableElementRegistration:!0})],hg);
_.T(hg,"yt-report-details-form-content",function(){if(Jb9===void 0){var y=document.createElement("template");_.E(y,'\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>');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;Pd3===void 0&&(Pd3=document.createElement("template"));var Z=Pd3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Jb9=y}y=Jb9;return y},{mode:2});var VKS;var Cdd;var QgH=function(){var y=_.v.apply(this,arguments)||this;y.updateMinutesFromBinding=function(W){y.minutes=W.detail.value};
y.updateSecondsFromBinding=function(W){y.seconds=W.detail.value};
y.updateDescriptionFromBinding=function(W){y.description=W.detail.value};
return y};
_.R(QgH,_.v);_.f=QgH.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.f.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"}}}};
_.f.ready=function(){_.p(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.f.onSubmitYtAction=function(y){var W=y.detail;W.actionName==="yt-service-request"&&(W=W.args[1],W.flagEndpoint&&(y.stopPropagation(),this.refireAction(W)))};
_.f.refireAction=function(y){var W={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(W.vss_id=this.vssId);_.D2(this.hostElement,[y,W]);this.submitDisabled=!0};
_.f.dataChanged=function(){var y=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var W=_.HF();W&&W.getPlayerPromise().then(function(c){var Z=c.getOption("cc","track")||c.getOption("captions","track");Z&&(y.vssId=Z.vss_id);c=c.getCurrentTime();y.minutes=Math.floor(c/60).toString();y.seconds=(Math.floor(c)%60).toString()})};
_.f.updateSubmitButtonState=function(){var y;((y=this.data)==null?0:y.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==="")};
_.f.onYtServiceRequestCompleted=function(){_.GG(this.hostElement,"yt-close-popup-action")};
_.f.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.dJ.Object.defineProperties(QgH.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var y;return((y=this.data)==null?void 0:y.textNumRows)||4}}});
var BW=QgH;BW.prototype.onYtServiceRequestError=BW.prototype.onYtServiceRequestError;BW.prototype.onYtServiceRequestCompleted=BW.prototype.onYtServiceRequestCompleted;BW.prototype.updateSubmitButtonState=BW.prototype.updateSubmitButtonState;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);
_.x([_.L({observer:"dataChanged"}),_.e("design:type",Object)],BW.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Boolean)],BW.prototype,"submitDisabled",void 0);_.x([_.L(),_.e("design:type",String)],BW.prototype,"minutes",void 0);_.x([_.L(),_.e("design:type",String)],BW.prototype,"seconds",void 0);_.x([_.L(),_.e("design:type",String)],BW.prototype,"description",void 0);_.x([_.L(),_.e("design:type",String)],BW.prototype,"vssId",void 0);
_.x([_.L({value:_.Nn("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.e("design:type",Boolean)],BW.prototype,"isMusic",void 0);_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],BW.prototype,"characterLimit",null);_.x([_.A("data"),_.e("design:type",Number),_.e("design:paramtypes",[])],BW.prototype,"textNumRows",null);
_.x([_.Gs("minutes","seconds","description","submitDisabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],BW.prototype,"updateSubmitButtonState",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],BW.prototype,"onYtServiceRequestCompleted",null);
_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],BW.prototype,"onYtServiceRequestError",null);BW=_.x([_.n6({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],BW);
_.T(BW,"yt-report-details-form-renderer",function(){if(Cdd===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;VKS===void 0&&(VKS=document.createElement("template"));var Z=VKS;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Cdd=y}y=Cdd;return y});var Ab6;var hxB;var BwH;var HY9;var LkH=function(){return _.v.apply(this,arguments)||this};
_.R(LkH,_.v);
LkH.prototype.onCheckedChanged_=function(){if(this.data){var y=_.p(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.GG(this.hostElement,"yt-additional-detail-checkbox-update",[y]):this.data.identifier==="yt-hide-user-checkbox"?_.GG(this.hostElement,"yt-hide-user-checkbox-update",[y]):y&&this.data.enableCommand?_.GG(this.hostElement,"yt-modify-report-form-command",[_.g(this.data.enableCommand,Va9)]):!y&&this.data.disableCommand&&_.GG(this.hostElement,
"yt-modify-report-form-command",[_.g(this.data.enableCommand,Va9)])}};
LkH.prototype.onLabelTap_=function(y){y.target.tagName!="A"&&(_.p(this.hostElement).querySelector("#checkbox").checked=!_.p(this.hostElement).querySelector("#checkbox").checked)};
var HW=LkH;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],HW.prototype,"data",void 0);HW=_.x([_.n6({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],HW);
_.T(HW,"yt-boolean-form-field-v2-renderer",function(){if(HY9===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;BwH===void 0&&(BwH=document.createElement("template"));var Z=BwH;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);HY9=y}y=HY9;return y});var vBQ=function(){var y=_.v.apply(this,arguments)||this;y.canShowAdditionalDetailCheckbox=!1;y.canShowCheckbox=!1;y.keepDropdownFocusedAfterSelection=!0;return y};
_.R(vBQ,_.v);vBQ.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}}}}};
var L0=vBQ;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],L0.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],L0.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.L(),_.e("design:type",Object)],L0.prototype,"canShowCheckbox",void 0);_.x([_.L(),_.e("design:type",Object)],L0.prototype,"keepDropdownFocusedAfterSelection",void 0);
L0=_.x([_.n6({is:"yt-report-form-modal-content",disableElementRegistration:!0})],L0);
_.T(L0,"yt-report-form-modal-content",function(){if(hxB===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Ab6===void 0&&(Ab6=document.createElement("template"));var Z=Ab6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);hxB=y}y=hxB;return y},{mode:2});var dI9;var STS;var TwH=function(){var y=_.v.apply(this,arguments)||this;y.submitting=!1;y.submitButtonDisabled=!0;y.command=null;y.canShowCheckbox=!1;y.canShowAdditionalDetailCheckbox=!1;y.canShowNextButton=!1;y.additionalDetailCheckboxChecked=!1;y.refitJob=0;y.keepDropdownFocusedAfterSelection=!0;y.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 y};
_.R(TwH,_.v);_.f=TwH.prototype;_.f.created=function(){this.refitJob=0};
_.f.attached=function(){this.JSC$18436_scroller&&(this.JSC$18436_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18436_scroller.attached&&typeof this.JSC$18436_scroller.attached==="function"&&this.JSC$18436_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(y){y&&(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,y.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),y.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.f.onYtPopupOpened=function(){var y=_.HF();y&&y.getPlayerPromise().then(function(W){W.pauseVideo()})};
_.f.onYtNavigate=function(y){_.g(y.detail.endpoint,_.I9W)&&(y.stopPropagation(),this.hideReportForm=!0)};
_.f.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.f.onYtServiceRequestCompleted=function(y,W){var c=W.actions;if(c){if(c.length===1&&_.g(c[0],_.uN)){var Z;c=((Z=_.g(c[0],_.uN))==null?void 0:Z.commands)||[]}Z=0;for(var G=c.length;Z<G;Z++)_.g(c[Z],_.bX)&&(y.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(c[Z]))}if(W.data&&(y=this.get("feedbackResponses",W.data)))for(W=0;W<y.length;W++)if(y[W].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.f.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.f._onDescendantIronResize=function(y){y.stopPropagation();return!1};
_.f.handleReportFormEndpointUpdateAction=function(y){if(y.submitEndpoint){var W=this.command=y.submitEndpoint;W=_.g(W,_.upW);if(W==null?0:W.additionalDetailCheckboxChecked)W.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else y.submitNavigationEndpoint?(this.command=y.submitNavigationEndpoint,this.toggleSubmitButton(!1)):y.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:y.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;y.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",y));this.refit()};
_.f.handleConfirmDialogCloseAction=function(y){y.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.f.submitButtonDisabledChanged=function(){var y=this.hostElement.parentElement;y&&y.invalidateTabbables&&y.invalidateTabbables()};
_.f.handleModifyReportFormCommand=function(y){y=this.get("action",y);y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:y==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:y==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:y==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:y==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.f.updateDialogStyling=function(){var y,W,c,Z,G,D=((G=(y=this.data)==null?void 0:(W=y.optionsSupportedRenderers)==null?void 0:(c=W.optionsRenderer)==null?void 0:(Z=c.items)==null?void 0:Z.length)!=null?G:0)<=2?0:240;_.wM(this.hostElement,{"--yt-report-form-modal-renderer-min-width":D+"px"})};
_.f.toggleSubmitButton=function(y){this.submitButtonDisabled=!y;this.submitButtonDisabled=y};
_.f.computeSubmitButtonData=function(y,W){var c={};_.g(W,_.I9W)?c.navigationEndpoint=W:c.command=W||void 0;y&&y.buttonRenderer&&_.Eb.extend(c,y.buttonRenderer);return c};
_.f.computeNextButtonData=function(y,W){var c={};if(!y||!y.buttonRenderer)return c;_.Eb.extend(c,y.buttonRenderer);if(!W)return c;if(_.g(W,_.I9W))c.navigationEndpoint=JJg(W);else if(c.command=JJg(W),y=_.g(c.command,_.upW))y.legalCheckboxChecked=!0;return c};
_.f.computeShowNextButton=function(y,W,c){return!!y&&W&&c};
_.f.refit=function(){var y=this;this.refitJob||(this.refitJob=_.KX.addLowPriorityJob(function(){_.Z2(y.hostElement,"yt-refit");y.refitJob=0}))};
_.f.handleAdditionalDetailCheckboxUpdateAction=function(y){this.additionalDetailCheckboxChecked=y;_.g(this.command,_.upW).additionalDetailCheckboxChecked=y};
_.dJ.Object.defineProperties(TwH,{template:{configurable:!0,enumerable:!0,get:function(){if(STS===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;dI9===void 0&&(dI9=document.createElement("template"));var Z=dI9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);STS=y}y=STS;return y}}});
var vW=TwH;vW.prototype.onYtServiceRequestError=vW.prototype.onYtServiceRequestError;vW.prototype.onYtServiceRequestCompleted=vW.prototype.onYtServiceRequestCompleted;vW.prototype.onYtServiceRequestSent=vW.prototype.onYtServiceRequestSent;vW.prototype.onYtNavigate=vW.prototype.onYtNavigate;vW.prototype.onYtPopupOpened=vW.prototype.onYtPopupOpened;_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],vW.prototype,"openPopupBehavior",void 0);
_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],vW.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],vW.prototype,"eventForwardingBehavior",void 0);_.x([_.C(_.K7),_.e("design:type",Object)],vW.prototype,"ironResizableBehavior",void 0);_.x([_.L({observer:"dataChanged"}),_.e("design:type",Object)],vW.prototype,"data",void 0);
_.x([_.L(),_.e("design:type",Object)],vW.prototype,"submitting",void 0);_.x([_.L({observer:"submitButtonDisabledChanged"}),_.e("design:type",Object)],vW.prototype,"submitButtonDisabled",void 0);_.x([_.L(),_.e("design:type",Object)],vW.prototype,"command",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],vW.prototype,"hideReportForm",void 0);_.x([_.L(),_.e("design:type",Object)],vW.prototype,"canShowCheckbox",void 0);
_.x([_.L(),_.e("design:type",Object)],vW.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.L(),_.e("design:type",Object)],vW.prototype,"canShowNextButton",void 0);_.x([_.L(),_.e("design:type",Object)],vW.prototype,"additionalDetailCheckboxChecked",void 0);_.x([_.L(),_.e("design:type",Object)],vW.prototype,"refitJob",void 0);_.x([_.L(),_.e("design:type",Object)],vW.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.x([_.jj("#scroller"),_.e("design:type",Object)],vW.prototype,"JSC$18436_scroller",void 0);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],vW.prototype,"onYtPopupOpened",null);_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],vW.prototype,"onYtNavigate",null);
_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],vW.prototype,"onYtServiceRequestSent",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],vW.prototype,"onYtServiceRequestCompleted",null);
_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],vW.prototype,"onYtServiceRequestError",null);vW=_.x([_.n6({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],vW);var a1D;var xI3;var iY3=function(){return _.v.apply(this,arguments)||this};
_.R(iY3,_.v);_.f=iY3.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.f.onVisible=function(){if(_.O("web_ephemeral_actions_focus")){var y,W;(W=_.U().resolve(_.xN(_.wE)))==null||W.enqueue({label:_.v$((y=this.data)==null?void 0:y.messageTitle),elementToFocus:this.hostElement})}};
_.f.onThumbnailLoaded=function(){_.Z2(this.hostElement,"yt-refit")};
_.f.onDismissTap=function(){_.GG(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.f.computeAlternateIcon=function(y){return y?y==="BACKSTAGE_ARTWORK"?"backstage:artwork":y:null};
_.f.computeFontFamily=function(y){return y==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.f.computeBackgroundStyle=function(y,W){if(y=this.computeBackgroundImage(y,W))if(y=_.Bh(y.thumbnails))return'background-image: url("'+y+'");'};
_.f.computeHasFullHeightImage=function(y){return!(!(y&&y.thumbnails&&y.thumbnails.length>0)||this.modern)};
_.f.isModernStyle=function(y){return y.style==="STYLE_MODERN"};
_.f.computeIcon=function(y,W){if(y&&y.icon)return W?y.iconDark:y.icon};
_.f.computeBackgroundImage=function(y,W){if(y&&y.backgroundImage)return W?y.backgroundImageDark:y.backgroundImage};
_.f.computeLogo=function(y,W){if(y&&y.logo)return W?y.logoDark:y.logo};
_.f.computeShouldShowModernIcon=function(y,W){return y&&!!W};
_.f.getLogoContainerClassName=function(y){return this.logoWithPadding(y)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.f.getLogoImageId=function(y){return this.logoWithPadding(y)?"mealbar-logo-with-padding":"mealbar-logo"};
_.f.logoWithPadding=function(y){var W,c,Z;return(y=(W=this.computeLogo(y,this.isDarkTheme))==null?void 0:(c=W.thumbnails)==null?void 0:(Z=c[0])==null?void 0:Z.height)&&y%31===0?!0:!1};
var Sr=iY3;Sr.prototype.onThumbnailLoaded=Sr.prototype.onThumbnailLoaded;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.x([_.L({}),_.e("design:type",Object)],Sr.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.e("design:type",Boolean)],Sr.prototype,"modern",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],Sr.prototype,"isDarkTheme",void 0);
_.x([_.L({computed:"computeIcon(data, isDarkTheme)"}),_.e("design:type",Object)],Sr.prototype,"icon",void 0);_.x([_.L({computed:"computeLogo(data, isDarkTheme)"}),_.e("design:type",Object)],Sr.prototype,"logo",void 0);_.x([_.L({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.e("design:type",Object)],Sr.prototype,"backgroundStyle",void 0);_.x([_.L({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.e("design:type",Object)],Sr.prototype,"alternateIcon",void 0);
_.x([_.L({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.e("design:type",Boolean)],Sr.prototype,"hasFullHeightImage",void 0);_.x([_.L({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.e("design:type",Boolean)],Sr.prototype,"useYoutubeSans",void 0);_.x([_.L({computed:"computeShouldShowModernIcon(modern, icon)"}),_.e("design:type",Boolean)],Sr.prototype,"shouldShowModernIcon",void 0);
_.x([_.B("yt-img-shadow-loaded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Sr.prototype,"onThumbnailLoaded",null);Sr=_.x([_.n6({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Sr);
_.T(Sr,"yt-mealbar-promo-renderer",function(){if(xI3===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;a1D===void 0&&(a1D=document.createElement("template"));var Z=a1D;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);xI3=y}y=xI3;return y},{mode:2});var MKd;var ex9;var weD=function(){return _.v.apply(this,arguments)||this};
_.R(weD,_.v);_.f=weD.prototype;_.f.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]]"}}}}}};
_.f.computeHasButtons_=function(y){return!(!y.dismissButton&&!y.acceptButton)};
_.f.computeStyle_=function(y){return y||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.f.observeImpressionEndpoints_=function(){var y=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(W){W.clickTrackingParams&&delete W.clickTrackingParams;_.D2(y.hostElement,[W])})};
_.f.onTap_=function(){_.GG(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
var TU=weD;TU.prototype.observeImpressionEndpoints_=TU.prototype.observeImpressionEndpoints_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],TU.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],TU.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],TU.prototype,"positionType",void 0);_.x([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.e("design:type",Boolean)],TU.prototype,"hasButtons_",void 0);_.x([_.L({value:function(){return this.onTap_.bind(this)}}),
_.e("design:type",Function)],TU.prototype,"boundOnTap_",void 0);_.x([_.L({value:{style:"mono-inverse"}}),_.e("design:type",Object)],TU.prototype,"buttonOverride",void 0);_.x([_.H("data.promoConfig.impressionEndpoints"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],TU.prototype,"observeImpressionEndpoints_",null);TU=_.x([_.n6({is:"yt-tooltip-renderer",disableElementRegistration:!0})],TU);
_.T(TU,"yt-tooltip-renderer",function(){if(ex9===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;MKd===void 0&&(MKd=document.createElement("template"));var Z=MKd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);ex9=y}y=ex9;return y},{mode:2});var qT6;var k4Q;var jbQ={},yF3=(jbQ.WEB_REMIX="music.youtube.com",jbQ),Wj3=function(){var y=_.v.apply(this,arguments)||this;y.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return y};
_.R(Wj3,_.v);_.f=Wj3.prototype;_.f.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.created=function(){this.embedHost_=yF3[_.Nn("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.f.ready=function(){_.p(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.f.computeEmbedCode_=function(y,W,c,Z,G){if(!y)return"";var D=y.videoId,Y=y.fullListId,u=[];y.attributionId&&u.push("si="+y.attributionId);Z||u.push("controls=0");c&&Number(W)>0&&u.push("start="+W);Y&&(D="videoseries",u.push("list="+Y));c="https://"+(G?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+D;y.clipId&&(u.push("clip="+y.clipId),u.push("clipt="+y.clipTiming));W=u.length>0?c+"?"+u.join("&amp;"):c;y.encryptedEmbedConfig&&u.push("embed_config="+JSON.stringify({enc:y.encryptedEmbedConfig}));
u=u.length>0?c+"?"+u.join("&amp;"):c;_.O("web_sharing_embed_preview_killswitch")?_.p(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(u,y.previewWidth||854,y.previewHeight||480):(_.l5(this.videoPreviewContainer),_.p(this.videoPreviewContainer).appendChild(this.buildIframeElement(u)));return this.getEmbedCode_(W,y.width||560,y.height||315)};
_.f.buildIframeElement=function(y){var W=document.createElement("iframe"),c,Z;W.width=""+((Z=(c=this.data)==null?void 0:c.previewWidth)!=null?Z:854);var G,D;W.height=""+((D=(G=this.data)==null?void 0:G.previewHeight)!=null?D:480);_.a3D(W,2,y);W.title="YouTube video player";W.frameBorder="0";W.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";W.referrerPolicy="strict-origin-when-cross-origin";W.allowFullscreen=!0;return W};
_.f.computeIsSquareAspectRatio_=function(y){return y.previewHeight&&y.previewWidth?y.previewHeight==y.previewWidth:!1};
_.f.computeShowEmbedOptions_=function(y){return!!y.enablePrivacyModeOptionLabel||!!y.showPlayerControlsOptionLabel};
_.f.getEmbedCode_=function(y,W,c){return'<iframe width="'+W+'" height="'+c+'" src="'+y+'" 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>'};
_.f.handleSignalActionCopyShareEmbedUrl_=function(){_.p(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.f.handleSetTimestamp_=function(y){this.startAtTimeStamp_=(this.startAtChecked_=y.isSet)?y.timestamp:0};
_.f.closePanel_=function(){_.GG(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.f.onEmbedCode_=function(){_.p(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.f.onYtPopupClosed_=function(){_.l5(_.p(this.hostElement).querySelector("#video-preview"))};
_.f.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.g(this.data.actionButtons[0],_.RU)&&this.ytRendererBehavior.logExplicitClick(_.g(this.data.actionButtons[0],_.RU))};
var az=Wj3;az.prototype.onYtPopupClosed_=az.prototype.onYtPopupClosed_;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],az.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],az.prototype,"data",void 0);
_.x([_.L({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.e("design:type",String)],az.prototype,"embedCode_",void 0);_.x([_.L({value:!0}),_.e("design:type",Boolean)],az.prototype,"isPlayerControlsOptionChecked_",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],az.prototype,"isPrivacyModeOptionChecked_",void 0);_.x([_.L({value:!1,notify:!0}),_.e("design:type",Boolean)],az.prototype,"startAtChecked_",void 0);
_.x([_.L({value:0}),_.e("design:type",Number)],az.prototype,"startAtTimeStamp_",void 0);_.x([_.L({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],az.prototype,"isSquareAspectRatio_",void 0);_.x([_.jj("#video-preview"),_.e("design:type",HTMLElement)],az.prototype,"videoPreviewContainer",void 0);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],az.prototype,"onYtPopupClosed_",null);
az=_.x([_.n6({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],az);
_.T(az,"yt-sharing-embed-renderer",function(){if(k4Q===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;qT6===void 0&&(qT6=document.createElement("template"));var Z=qT6;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);k4Q=y}y=k4Q;return y},{mode:2});var cF3={};
cF3.YtUnlimitedFamilyInterstitialBehavior=[_.e_.YtOpenPopupBehavior,_.Hj.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(y){y=_.l3W(_.hq(y),"yt-button-renderer");return y?y.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(y){this.dialogHistory_.push(y)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var y=this.popFromHistory();if(y){var W={openPopupAction:{popupType:"DIALOG",popup:{}}};W.openPopupAction.popup[y.renderer]=y.data;this.showingPreviousDialog_=!0;this.openPopup(W)}},
handleOpenPopupAction_:function(y){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var W=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Z){return!!y.openPopupAction.popup[Z]}),c=this.getElementName_();
W&&this.data&&(this.pushToHistory({renderer:c,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(y){if(y=_.g(y,oaQ))this.loading=!0,_.GG(this.hostElement,"yt-open-create-family-dialog",[y,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var y=this.hostElement.nodeName.split("-").slice(1).map(function(W){return""+W[0].toUpperCase()+W.slice(1).toLowerCase()}).join("");
return y[0].toLowerCase()+y.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var ZEg;var GlQ;var fIQ=function(){return _.v.apply(this,arguments)||this};
_.R(fIQ,_.v);_.f=fIQ.prototype;_.f.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}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.GG(this.hostElement,"yt-register-create-family-dialog");_.p(this.hostElement).querySelector("#thumbnail").onShow()};
_.f.fireOnCloseCommand_=function(){var y;((y=this.data)==null?0:y.onCloseCommand)&&_.mq(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.f.onYtServiceRequestSent_=function(y,W){W&&W.endpoint&&_.g(W.endpoint,_.nl)||(this.loading=!0)};
_.f.onYtServiceRequestCompleted_=function(){var y=this.hostElement.parentElement;y.close&&y.close();this.loading=!1};
_.f.openPopupHandler_=function(y){if(y.detail==this){var W;((W=this.data)==null?0:W.onOpenCommands)&&_.mq(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.f.closePopupHandler_=function(y,W){this.fireOnCloseCommand_();if(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1){var c;((c=this.data)==null?0:c.onDismissCommands)&&_.mq(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.f.dataChanged_=function(){this.loading=!1};
var xO=fIQ;xO.prototype.dataChanged_=xO.prototype.dataChanged_;xO.prototype.closePopupHandler_=xO.prototype.closePopupHandler_;xO.prototype.openPopupHandler_=xO.prototype.openPopupHandler_;xO.prototype.onYtServiceRequestCompleted_=xO.prototype.onYtServiceRequestCompleted_;xO.prototype.onYtServiceRequestSent_=xO.prototype.onYtServiceRequestSent_;_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],xO.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],xO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(cF3.YtUnlimitedFamilyInterstitialBehavior),_.e("design:type",Object)],xO.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],xO.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],xO.prototype,"loading",void 0);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],xO.prototype,"onYtServiceRequestSent_",null);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],xO.prototype,"onYtServiceRequestCompleted_",null);
_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],xO.prototype,"openPopupHandler_",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],xO.prototype,"closePopupHandler_",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],xO.prototype,"dataChanged_",null);
xO=_.x([_.n6({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],xO);
_.T(xO,"yt-unlimited-family-message-interstitial-renderer",function(){if(GlQ===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;ZEg===void 0&&(ZEg=document.createElement("template"));var Z=ZEg;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);GlQ=y}y=GlQ;return y},{mode:2});var o9d;var Dzg;var ir=function(){return _.v.apply(this,arguments)||this};
_.R(ir,_.v);ir.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"}}}};
ir.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.p(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(y){y.onShow()});
_.p(this.hostElement).querySelector("#main-thumbnail").onShow()};
ir.prototype.onButtonTap_=function(y){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(y)};
ir.prototype.computeMainThumbnailWidth_=function(y){return y&&y.length!==0?72:96};
var Mp=ir;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.x([_.C(cF3.YtUnlimitedFamilyInterstitialBehavior),_.e("design:type",Object)],Mp.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],Mp.prototype,"data",void 0);
_.x([_.L({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.e("design:type",Number)],Mp.prototype,"mainThumbnailWidth_",void 0);_.x([_.L({value:function(){return this.onButtonTap_.bind(this)}}),
_.e("design:type",Function)],Mp.prototype,"boundButtonTap_",void 0);Mp=_.x([_.n6({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Mp);
_.T(Mp,"yt-unlimited-family-profile-interstitial-renderer",function(){if(Dzg===void 0){var y=document.createElement("template");_.E(y,'\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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;o9d===void 0&&(o9d=document.createElement("template"));var Z=o9d;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);Dzg=y}y=Dzg;return y},{mode:2});var zH9;var YYS;var mzf=function(){var y=_.v.apply(this,arguments)||this;y.sliderAriaValueText_=null;y.selectedIndex_=0;y.messages={PAUSE_SLIDER:_.bN("PAUSE_SLIDER",void 0,"Pause Duration")};return y};
_.R(mzf,_.v);_.f=mzf.prototype;_.f.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_]]"}}}}}};
_.f.onPopupOpened_=function(y){y.detail==this&&_.O("enable_premium_voluntary_pause")&&(_.GG(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.setDialogData=function(y){this.data=y;this.resetSlider_()};
_.f.dataChanged_=function(){this.data&&this.resetSlider_()};
_.f.onSubmitTap_=function(){if(this.data.confirmCommand){var y=this.data.confirmCommand;_.g(y,_.YoV)&&_.D2(this.hostElement,[y,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.f.onExitButtonTap_=function(){_.GG(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.f.closePopupHandler_=function(y,W){(W&&W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.handleOnDismissCommands_()};
_.f.onSliderChange_=function(){this.selectedIndex_=_.p(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.f.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.f.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.f.resetSlider_=function(){if(this.data){var y=this.data.defaultEndOptionIndex||0,W=_.p(this.hostElement).querySelector("#id-pause-slider");if(W.immediateValue<y)for(;W.immediateValue!=y;)W.increment();else if(y<W.immediateValue)for(;W.immediateValue!=y;)W.decrement();this.selectedIndex_=y;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.f.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.mq(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.f.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.mq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestSent=function(){this.loading=!0};
_.f.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
var er=mzf;er.prototype.onYtServiceRequestCompleted=er.prototype.onYtServiceRequestCompleted;er.prototype.onYtServiceRequestSent=er.prototype.onYtServiceRequestSent;er.prototype.closePopupHandler_=er.prototype.closePopupHandler_;er.prototype.dataChanged_=er.prototype.dataChanged_;er.prototype.onPopupOpened_=er.prototype.onPopupOpened_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],er.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],er.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],er.prototype,"data",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],er.prototype,"loading",void 0);_.x([_.L(),_.e("design:type",Number)],er.prototype,"selectIndexMax_",void 0);_.x([_.L(),_.e("design:type",Object)],er.prototype,"selectedData_",void 0);
_.x([_.L(),_.e("design:type",Object)],er.prototype,"sliderAriaValueText_",void 0);_.x([_.L({value:function(){return this.onSubmitTap_.bind(this)}}),
_.e("design:type",Function)],er.prototype,"onButtonTap_",void 0);_.x([_.L({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.e("design:type",Function)],er.prototype,"onSecondaryTap_",void 0);_.x([_.L(),_.e("design:type",Object)],er.prototype,"messages",void 0);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],er.prototype,"onPopupOpened_",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],er.prototype,"dataChanged_",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],er.prototype,"closePopupHandler_",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],er.prototype,"onYtServiceRequestSent",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],er.prototype,"onYtServiceRequestCompleted",null);er=_.x([_.n6({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],er);
_.T(er,"yt-unplugged-pause-membership-dialog-renderer",function(){if(YYS===void 0){var y=document.createElement("template");_.E(y,'\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">[[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>');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;zH9===void 0&&(zH9=document.createElement("template"));var Z=zH9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);YYS=y}y=YYS;return y},{mode:2});var sbS;var ug6;var tUZ=function(){return _.v.apply(this,arguments)||this};
_.R(tUZ,_.v);tUZ.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.rI("vcBalanceRenderer")}}};
var wo=tUZ;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],wo.prototype,"data",void 0);wo=_.x([_.n6({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],wo);
_.T(wo,"yt-vc-offer-layout-header-renderer",function(){if(ug6===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;sbS===void 0&&(sbS=document.createElement("template"));var Z=sbS;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);ug6=y}y=ug6;return y},{mode:2});var n9B;var XrH;var bEg;var rFQ;var Fjd=function(){return _.v.apply(this,arguments)||this};
_.R(Fjd,_.v);Fjd.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.dJ.Object.defineProperties(Fjd.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)}}});
var qp=Fjd;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.oQQ.YtTappableItemBehavior),_.e("design:type",Object)],qp.prototype,"ytTappableItemBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],qp.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.A("data.accessibilityText"),_.e("design:type",String),_.e("design:paramtypes",[])],qp.prototype,"ariaLabel",null);_.x([_.L({reflectToAttribute:!0}),_.A("data.style"),_.e("design:type",String),_.e("design:paramtypes",[])],qp.prototype,"vcOfferStyle",null);_.x([_.A("data.style","data.titleText"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],qp.prototype,"showTitleText",null);qp=_.x([_.n6({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],qp);
_.T(qp,"yt-vc-offer-renderer",function(){if(rFQ===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;bEg===void 0&&(bEg=document.createElement("template"));var Z=bEg;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);rFQ=y}y=rFQ;return y},{mode:2});var Uz9=function(){return _.v.apply(this,arguments)||this};
_.R(Uz9,_.v);Uz9.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}}}}}};
var kO=Uz9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],kO.prototype,"data",void 0);kO=_.x([_.n6({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],kO);
_.T(kO,"yt-vc-offer-layout-renderer",function(){if(XrH===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;n9B===void 0&&(n9B=document.createElement("template"));var Z=n9B;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);XrH=y}y=XrH;return y},{mode:2});var $zQ;var KjH;var OES;var g99;var RH9=function(){return _.v.apply(this,arguments)||this};
_.R(RH9,_.v);RH9.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}}}}}};
var j1=RH9;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],j1.prototype,"data",void 0);j1=_.x([_.n6({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],j1);
_.T(j1,"yt-ypc-offers-modal-top-bar-renderer",function(){if(g99===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;OES===void 0&&(OES=document.createElement("template"));var Z=OES;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);g99=y}y=g99;return y},{mode:2});var yj=function(){return _.v.apply(this,arguments)||this};
_.R(yj,_.v);yj.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"}}}}};
yj.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
yj.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var y=this.scrollable;y.attached&&typeof y.attached==="function"&&y.attached()};
var Wt=yj;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Wt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.jj("#scrollable"),_.e("design:type",Object)],Wt.prototype,"scrollable",void 0);_.x([_.L(),_.e("design:type",Object)],Wt.prototype,"data",void 0);Wt=_.x([_.n6({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Wt);
_.T(Wt,"yt-ypc-offers-modal-renderer",function(){if(KjH===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;$zQ===void 0&&($zQ=document.createElement("template"));var Z=$zQ;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);KjH=y}y=KjH;return y},{mode:2});var lIf;var E9f;var N6B=function(){return _.v.apply(this,arguments)||this};
_.R(N6B,_.v);_.f=N6B.prototype;_.f.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}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.p(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.f.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.GG(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.f.onYtPopupOpened_=function(y,W){(W==null?void 0:W.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.mq(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.f.onYtPopupClosed_=function(y,W){this.continueButtonTapped||W&&(W.canceled===!0||W.canceled===!1&&W.confirmed===!1)&&this.data.onDismissCommands&&_.mq(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestError_=function(y){this.set("showSpinner",!1);_.bY(this.hostElement,y.detail.error.message)};
_.f.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.O("enable_ypc_spinners")?_.GG(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
var ct=N6B;ct.prototype.onYtServiceRequestError_=ct.prototype.onYtServiceRequestError_;ct.prototype.onYtPopupClosed_=ct.prototype.onYtPopupClosed_;ct.prototype.onYtPopupOpened_=ct.prototype.onYtPopupOpened_;ct.prototype.onYtServiceRequestCompleted_=ct.prototype.onYtServiceRequestCompleted_;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],ct.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],ct.prototype,"data",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],ct.prototype,"showSpinner",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],ct.prototype,"continueButtonTapped",void 0);_.x([_.L({value:function(){return this.onContinueTapped_.bind(this)}}),
_.e("design:type",Function)],ct.prototype,"bindOnContinueTapped_",void 0);_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],ct.prototype,"onYtServiceRequestCompleted_",null);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],ct.prototype,"onYtPopupOpened_",null);
_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],ct.prototype,"onYtPopupClosed_",null);_.x([_.B("yt-service-request-error"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],ct.prototype,"onYtServiceRequestError_",null);ct=_.x([_.n6({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ct);
_.T(ct,"yt-ypc-upgrade-dialog-renderer",function(){if(E9f===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;lIf===void 0&&(lIf=document.createElement("template"));var Z=lIf;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);E9f=y}y=E9f;return y},{mode:2});var IIf;var prD;var ZO=function(){return _.v.apply(this,arguments)||this};
_.R(ZO,_.v);ZO.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ZO.prototype.computeHasButtons_=function(y){return!(!y.dismissButton&&!y.confirmButton)};
ZO.prototype.computeStyle_=function(y){return y||"BUBBLE_HINT_STYLE_UNKNOWN"};
var GN=ZO;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],GN.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],GN.prototype,"data",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],GN.prototype,"positionType",void 0);_.x([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.e("design:type",Boolean)],GN.prototype,"hasButtons_",void 0);_.x([_.L({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.e("design:type",Boolean)],GN.prototype,"style_",void 0);GN=_.x([_.n6({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],GN);
_.T(GN,"yt-bubble-hint-renderer",function(){if(prD===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;IIf===void 0&&(IIf=document.createElement("template"));var Z=IIf;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);prD=y}y=prD;return y},{mode:2});var P8B;var JF3;var VU6=function(){var y=_.SN.apply(this,arguments)||this;y.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return y};
_.R(VU6,_.SN);_.f=VU6.prototype;_.f.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.f.attached=function(){var y=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){y.$.thumbnail.onShow();y.$["header-image"].onShow()})};
_.f.handleCheckBoxUpdateAction_=function(y){this.canShowCheckboxEnabledConfirmButton=y};
_.f.computeUseOverlayForSpinner_=function(y,W){return!!y&&W};
_.f.computeShowSpinner_=function(y,W){return y||!!W};
_.f.fireOnCloseActions_=function(){var y,W=_.z(((y=this.data)==null?void 0:y.onClosedActions)||[]);for(y=W.next();!y.done;y=W.next())this.ytRendererBehavior.resolveCommand(y.value)};
_.f.fireOnOpenCommands_=function(y){var W,c=(W=this.data)==null?void 0:W.onOpenCommands;if(c)for(y.stopImmediatePropagation(),y=_.z(c),W=y.next();!W.done;W=y.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.f.fireOnDismissCommands_=function(y){var W,c=(W=this.data)==null?void 0:W.onDismissCommands;if(c)for(y.stopImmediatePropagation(),y=_.z(c),W=y.next();!W.done;W=y.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.f.openPopupHandler_=function(y){y.detail==this&&this.fireOnOpenCommands_(y)};
_.f.closePopupHandler_=function(y,W){_.fl(this,"yt-confirm-dialog-close-action",[W]);this.fireOnCloseActions_();(W&&W.canceled===!0||W&&W.canceled===!1&&W.confirmed===!1)&&this.fireOnDismissCommands_(y)};
_.f.onHeaderImageChanged_=function(){var y;((y=this.data)==null?0:y.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.f.computeHasHeaderImageWidth_=function(y){return y!=void 0};
_.f.computeHasLoadingMessage=function(y){return!!y};
_.f.onHeaderImageWidthChanged_=function(){var y,W=(y=this.data)==null?void 0:y.headerImageWidth;if(W){if(y=1.25*W*2+W,this.$.main.style.width=y+"px",W=this.$.scroller.firstElementChild)W.style.minWidth=y+"px"}else this.$.main.style.width="100%"};
_.f.onThumbnailChanged_=function(){var y;((y=this.data)==null?0:y.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")};
_.f.onYtNavigate_=function(y){y=_.hq(y);y instanceof Node&&_.x$(this.$["confirm-button"]).contains(y)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.f.computePrimaryIsCancel_=function(y){return y};
_.f.computeIsCancelButtonHidden_=function(y){return y.skipCancelButton||!y.cancelButton};
_.f.computeIsCheckboxHidden_=function(y){return!y.checkbox};
_.f.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.f.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.f.onYtServiceRequestCompleted_=function(){var y;((y=this.data)==null?0:y.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.dJ.Object.defineProperties(VU6,{template:{configurable:!0,enumerable:!0,get:function(){if(JF3===void 0){var y=document.createElement("template");_.E(y,'\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  <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;P8B===void 0&&(P8B=document.createElement("template"));var Z=P8B;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);JF3=y}y=JF3;return y}}});
var fw=VU6;fw.prototype.onYtServiceRequestCompleted_=fw.prototype.onYtServiceRequestCompleted_;fw.prototype.onYtServiceRequestSent_=fw.prototype.onYtServiceRequestSent_;fw.prototype.onThumbnailLoaded_=fw.prototype.onThumbnailLoaded_;fw.prototype.onYtNavigate_=fw.prototype.onYtNavigate_;fw.prototype.onThumbnailChanged_=fw.prototype.onThumbnailChanged_;fw.prototype.onHeaderImageWidthChanged_=fw.prototype.onHeaderImageWidthChanged_;fw.prototype.onHeaderImageChanged_=fw.prototype.onHeaderImageChanged_;
fw.prototype.closePopupHandler_=fw.prototype.closePopupHandler_;fw.prototype.openPopupHandler_=fw.prototype.openPopupHandler_;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],fw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],fw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);
_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],fw.prototype,"ytEventForwardingBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],fw.prototype,"data",void 0);_.x([_.L({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.e("design:type",Boolean)],fw.prototype,"primaryIsCancel",void 0);_.x([_.L({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.e("design:type",Boolean)],fw.prototype,"isCancelButtonHidden",void 0);
_.x([_.L({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.e("design:type",Boolean)],fw.prototype,"isCheckboxHidden",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],fw.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.x([_.L({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.e("design:type",Boolean)],fw.prototype,"useOverlayForSpinner_",void 0);
_.x([_.L({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.e("design:type",Boolean)],fw.prototype,"showSpinner_",void 0);_.x([_.L({value:!1}),_.e("design:type",Boolean)],fw.prototype,"isActionInProgress_",void 0);_.x([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.e("design:type",Boolean)],fw.prototype,"hasHeaderImageWidth_",void 0);
_.x([_.L({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.e("design:type",Boolean)],fw.prototype,"hasLoadingMessage",void 0);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],fw.prototype,"openPopupHandler_",null);_.x([_.B("yt-popup-closed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],fw.prototype,"closePopupHandler_",null);
_.x([_.H("data.headerImage"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fw.prototype,"onHeaderImageChanged_",null);_.x([_.H("data.headerImageWidth"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fw.prototype,"onHeaderImageWidthChanged_",null);_.x([_.H("data.thumbnail"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fw.prototype,"onThumbnailChanged_",null);
_.x([_.B("yt-navigate"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],fw.prototype,"onYtNavigate_",null);_.x([_.B("yt-img-shadow-loaded"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],fw.prototype,"onThumbnailLoaded_",null);_.x([_.B("yt-service-request-sent"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.RL]),_.e("design:returntype")],fw.prototype,"onYtServiceRequestSent_",null);
_.x([_.B("yt-service-request-completed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,_.Vf]),_.e("design:returntype")],fw.prototype,"onYtServiceRequestCompleted_",null);fw=_.x([_.n6({is:"yt-confirm-dialog-renderer",noInjection:!0})],fw);var C8f;var QbB;var oq=function(){return _.v.apply(this,arguments)||this};
_.R(oq,_.v);oq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.p(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
oq.prototype.computeConfirmButton_=function(y){var W={text:y.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};y.confirmNavigationEndpoint?W.navigationEndpoint=y.confirmNavigationEndpoint:y.confirmServiceEndpoint&&(W.serviceEndpoint=y.confirmServiceEndpoint);return W};
oq.prototype.computeShowTitle_=function(y){return!(y==null||!y.title)};
var DO=oq;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],DO.prototype,"data",void 0);_.x([_.L({computed:"computeShowTitle_(data)"}),_.e("design:type",Boolean)],DO.prototype,"showTitle",void 0);DO=_.x([_.n6({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],DO);
_.T(DO,"yt-fancy-dismissible-dialog-renderer",function(){if(QbB===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;C8f===void 0&&(C8f=document.createElement("template"));var Z=C8f;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);QbB=y}y=QbB;return y});var AF3;var hH6;var B6Z=function(){var y=_.v.apply(this,arguments)||this;y.spinnerActive=!1;return y};
_.R(B6Z,_.v);B6Z.prototype.created=function(){s7S(2201)};
B6Z.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
B6Z.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
var zN=B6Z;zN.prototype.onIronOverlayClosed=zN.prototype.onIronOverlayClosed;zN.prototype.onIronOverlayOpened=zN.prototype.onIronOverlayOpened;_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.Ak),_.e("design:type",Object)],zN.prototype,"tpYtIronOverlayBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],zN.prototype,"data",void 0);_.x([_.L(),_.e("design:type",Object)],zN.prototype,"spinnerActive",void 0);
_.x([_.B("iron-overlay-opened"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zN.prototype,"onIronOverlayOpened",null);_.x([_.B("iron-overlay-closed"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],zN.prototype,"onIronOverlayClosed",null);zN=_.x([_.n6({is:"yt-loading-renderer",disableElementRegistration:!0})],zN);
_.T(zN,"yt-loading-renderer",function(){if(hH6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;AF3===void 0&&(AF3=document.createElement("template"));var Z=AF3;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);hH6=y}y=hH6;return y},{mode:2});var HEd;var LjD;var v9Q=function(){var y=_.v.apply(this,arguments)||this;y.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);y.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);y.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";y.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return y};
_.R(v9Q,_.v);_.f=v9Q.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.f.onDarkModeToggledAction=function(y){this.isDarkTheme=y};
_.f.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.f.openPopupHandler_=function(y){y.detail===this.hostElement&&this.hostElement.hidden&&_.GG(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.f.onDismissButtonTap_=function(){var y;this.closeOnDismissButton_.has(((y=this.data)==null?void 0:y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.GG(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.f.onAcceptButtonTap_=function(){var y;this.closeOnAcceptButton_.has(((y=this.data)==null?void 0:y.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.GG(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.f.computeHasHeader_=function(y){return!!y.headerBackgroundImage};
_.f.computeLayoutStyle_=function(y){return y};
_.f.computePopupSize_=function(y){return y};
_.f.computeIconType_=function(y){return y.dialogIcon&&y.dialogIcon.iconType?y.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":y.dialogIcon.iconType:""};
_.f.computeIsLogo_=function(y){return!!y.dialogIcon&&!!y.dialogIcon.iconType&&(y.dialogIcon.iconType==="YOUTUBE_LOGO"||y.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||y.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.f.computeHasCustomLogo=function(y){return!(y==null||!y.headerForegroundImage)};
_.f.computeCustomLogo=function(y,W){if(y!=null&&y.headerForegroundImage)return y.headerForegroundImageDark?W?y.headerForegroundImageDark:y.headerForegroundImage:y.headerForegroundImage};
_.f.computeHeaderBackgroundImage=function(y,W){if(y!=null&&y.headerBackgroundImage)return W&&(y==null?0:y.headerBackgroundImageDark)?y.headerBackgroundImageDark:y.headerBackgroundImage};
_.f.shouldShowIconContainer=function(y,W){return y&&!W};
_.f.shouldShowNonYouTubeIcon=function(y,W){return!y&&!W};
_.f.getLogoImageId=function(y){var W,c,Z;return(y=(W=this.computeCustomLogo(y,this.isDarkTheme))==null?void 0:(c=W.thumbnails)==null?void 0:(Z=c[0])==null?void 0:Z.height)&&y%31===0?"custom-logo-with-padding":"custom-logo"};
var Yo=v9Q;Yo.prototype.openPopupHandler_=Yo.prototype.openPopupHandler_;Yo.prototype.dataChanged_=Yo.prototype.dataChanged_;_.x([_.C(_.Bj.YtRendererstamperBehavior),_.e("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.x([_.L(),_.e("design:type",Boolean)],Yo.prototype,"isDarkTheme",void 0);
_.x([_.L({computed:"computeCustomLogo(data, isDarkTheme)"}),_.e("design:type",Object)],Yo.prototype,"customLogo",void 0);_.x([_.L({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.e("design:type",Object)],Yo.prototype,"headerBackgroundImage",void 0);_.x([_.L(),_.e("design:type",Object)],Yo.prototype,"data",void 0);_.x([_.L({computed:"computeHasHeader_(data)"}),_.e("design:type",Boolean)],Yo.prototype,"hasHeader",void 0);
_.x([_.L({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.e("design:type",Object)],Yo.prototype,"layoutStyle",void 0);_.x([_.L({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.e("design:type",Object)],Yo.prototype,"popupSize",void 0);_.x([_.L({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Yo.prototype,"hasLogo",void 0);
_.x([_.L({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.e("design:type",Boolean)],Yo.prototype,"hasCustomLogo",void 0);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],Yo.prototype,"dataChanged_",null);_.x([_.B("yt-popup-opened"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],Yo.prototype,"openPopupHandler_",null);
Yo=_.x([_.n6({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Yo);
_.T(Yo,"yt-upsell-dialog-renderer",function(){if(LjD===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;HEd===void 0&&(HEd=document.createElement("template"));var Z=HEd;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);LjD=y}y=LjD;return y},{mode:2});var dz9=_.Ax(function(y){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.X(_.YN,{cond:y.title,then:function(W){return _.X("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},W)}}))},"Rf"),SYB=_.Ax(function(y){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.X(_.bg,{data:y.closeButton},{buttonViewModel:function(W){return _.X("div",null,_.X(_.OV,{data:W.data}))}}))},"Sf"),T6g=_.Ax(function(y){var W=
y.data;
return _.X(_.a2,null,_.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.X(_.YN,{cond:function(){return!!W().image&&!!W().title},
then:function(){return _.X(_.J3,{data:function(){return W().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.X(_.YN,{cond:function(){return W().title},
then:function(c){return _.X("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},c)}}),_.X(_.YN,{cond:function(){return W().primaryGenre},
then:function(c){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},c)}}))),_.X(_.YN,{cond:function(){var c=W().description;
return c&&c.length<=150},
then:function(){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return W().description}))}}))},"Tf"),aI3=_.Ax(function(y){y=y.infoRows;
var W=_.U().resolve(_.Ic),c=_.O("enable_displaying_ppn");return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.X(_.mC,{each:y},function(Z){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.X(_.YN,{cond:function(){return Z.label},
then:function(G){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},G)}}),_.X(_.YN,{cond:function(){return Z.attributedLabel},
then:function(G){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.X(_.Da,{text:G,noPreWrap:!0}))}}),_.X(_.YN,{cond:function(){return Z.value},
then:function(G){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},G)}}),_.X(_.YN,{cond:function(){return Z.attributedValue},
then:function(G){return _.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.X(_.Da,{text:G,noPreWrap:!0}))}}))}),_.X(_.YN,{cond:function(){return c&&W.clientData.has("post_play_nonce")},
then:function(){return _.X("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.X("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},W.getData("post_play_nonce")))}}))},"Uf"),xzS=_.Ax(function(y){var W=y.data;
return _.X("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.X(dz9,{title:function(){return W().dialogTitle}}),_.X(T6g,{data:W}),_.X(_.YN,{cond:function(){return W().infoRow},
then:function(c){return _.X(aI3,{infoRows:c})}}),_.X(SYB,{closeButton:function(){return W().closeButton}}))},"Vf");
xzS.idomCompat=!0;_.A3(xzS,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;return _.X("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.X(_.J3,{data:function(){return W().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.X("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.X("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.X(_.YN,{cond:function(){var c=W().ytLogo;return c?c.iconType:null},
then:function(c){return _.X(_.Gb,{icon:c,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.X("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.X("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.X(_.Da,{text:function(){return W().body}})),_.X("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.X(_.Da,{text:function(){return W().verifyStateText}}))),
_.X("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.X("div",null,_.X(_.bg,{data:function(){return W().dismissButton}},{buttonViewModel:_.OV})),_.X("div",null,_.X(_.bg,{data:function(){return W().linkParentButton}},{buttonViewModel:_.OV})))))},"Wf"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Ix}});var iEH=_.Ax(function(y){var W=y.data;return _.X("installment-agreements-view-model",{class:_.Mi("ytInstallmentAgreementsViewModelHost")},_.X(_.mC,{each:_.Jx(function(){return W().agreements},[])},function(c){return _.X("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.X("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.X(_.Da,{text:c.label})),_.X("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.X(_.bg,{data:function(){return c.openButton}},{buttonViewModel:_.OV})))}))},
"Xf");
iEH.idomCompat=!0;var MUH=_.Ax(function(y){return _.X("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.X(_.Da,{text:function(){return y.data().inviteMessage}})),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.X(_.Da,{text:function(){return y.data().attributedAccountSectionHeaderText}})),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.X(_.bg,{data:function(){return y.data().accountAvatar}},{avatarViewModel:_.Om}),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.X(_.Da,{text:function(){return y.data().accountName}}),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.X(_.Da,{text:function(){return y.data().handle}}))),_.X(_.bg,{data:function(){return y.data().trailingButton}},{buttonViewModel:_.OV})),_.X("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.X(_.Da,{text:function(){return y.data().termsOfService}})))},"Yf");var eHZ=_.Ax(function(y){var W=_.z(_.WF(function(){var jI,sD;return((jI=y.data().createPlaylistDialogFormSchema)==null?0:(sD=jI.initialValues)==null?0:sD.title)?y.data().createPlaylistDialogFormSchema.initialValues.title:""})),c=W.next().value,Z=W.next().value;
W=_.z(_.WF(function(){y.data();return!1}));
var G=W.next().value,D=W.next().value;W=_.z(_.WF(function(){y.data();return!1}));
var Y=W.next().value,u=W.next().value;W=_.z(_.WF(function(){var jI,sD;return(jI=y.data().createPlaylistDialogFormSchema)==null?void 0:(sD=jI.initialValues)==null?void 0:sD.visibility}));
var t=W.next().value,b=W.next().value;W=_.z(_.WF(function(){y.data();return!1}));
var r=W.next().value,F=W.next().value;W=_.z(_.WF(function(){var jI,sD;return(jI=y.data().createPlaylistDialogFormSchema)==null?void 0:(sD=jI.initialValues)==null?void 0:sD.isCollaborative}));
var K=W.next().value,l=W.next().value,N=_.HO();_.$k(function(){var jI=N.value.querySelector("textarea");jI&&(jI.value=c())});
_.rj(function(){var jI;_.TzS((jI=y.data().createPlaylistDialogFormSchema)==null?void 0:jI.id,{onSubmit:function(){var sD=c();var ED=t(),N1=K(),bf=y.data();sD={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:sD,privacyStatus:ED,videoIds:bf.videoIds,sourcePlaylistId:bf.sourcePlaylistId,params:N1?bf.createPlaylistParamsCollaborationEnabled:bf.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.U().resolve(_.i1).resolveCommand(sD)},
isValid:function(){return G()&&!Y()&&!r()}})});
var P=function(jI){if(jI!==void 0&&(Z(jI),!G()&&jI.length>0&&D(!0),G())){var sD=bdd(y.data());if(sD){var ED=sD.minLength;sD=sD.maxLength;ED&&jI.length<ED?u(!0):sD&&jI.length>sD?u(!0):u(!1)}}},V=function(){var jI=!(!K()||t()!=="PRIVATE");
F(jI)},Q=function(jI){jI!==void 0&&(b(jI),V())},S=function(){if(r())return Fe9(y.data())},cy=function(){l(!K());
V()},M=function(){return{validate:function(jI){if(G()){var sD=bdd(y.data());
if(sD){var ED=sD.minLength;sD=sD.translations;if(ED&&jI.length<ED)return sD==null?void 0:sD.minLengthErrorMessage}}}}},fa=function(){var jI=bdd(y.data()),sD=jI==null?void 0:jI.maxLength,ED;
jI=jI==null?void 0:(ED=jI.translations)==null?void 0:ED.maxLengthErrorMessage;if(sD&&jI)return{maxChars:sD,errorMessage:jI}};
return _.X("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.X("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:N},_.X(_.bg,{data:function(){return y.data().playlistTitle}},{textFormFieldViewModel:function(jI){return _.X(_.DMS,{data:jI.data,
text:c,onInput:P,validation:M,characterLimit:fa})},
textFieldViewModel:function(jI){return _.X(_.om6,{data:jI.data,text:c,onInput:P,validation:M,characterLimit:fa})}})),_.X("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.X(_.bg,{data:function(){return y.data().playlistVisibility}},{dropdownViewModel:function(jI){return _.X(_.UMB,{data:jI.data,
onSelected:Q,error:S})}})),_.X(_.YN,{cond:function(){return!!y.data().playlistCollaborate},
then:function(){return _.X("div",null,_.X(_.bg,{data:function(){return y.data().playlistCollaborate}},{switchListItemViewModel:function(jI){return _.X(_.LdE,{data:jI.data,
onTap:cy})}}))}}))},"Zf");var wr6=_.Ax(function(y){var W=_.Jx(y.noPadding,!1),c=function(){var G,D;return(D=(G=y.data().logo.accessibilityData)==null?void 0:G.label)!=null?D:""},Z={};
return _.X("upsell-view-model",{class:_.Mi("ytUpsellViewModelHost",(Z.ytUpsellViewModelHostNoPadding=function(){return W()},Z))},_.X("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.X(_.YN,{cond:function(){return _.a3(y.data().logo)},
then:function(G){return _.X(_.J3,{data:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:c})}})),_.X("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.X(_.Da,{text:function(){return y.data().title}})),_.X("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.X(_.mC,{each:function(){var G;
return(G=y.data().subtitles)!=null?G:[]},
keyBy:"INDEX"},function(G){return _.X("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.X(_.Da,{text:G}))})),_.X("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.X(_.mC,{each:function(){var G;
return(G=y.data().benefitInfos)!=null?G:[]},
keyBy:"INDEX"},function(G){return _.X(_.YN,{cond:function(){return G().info},
then:function(D){return _.X("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.X(_.Gb,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.X(_.Da,{text:D}))}})})),_.X("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.X(_.mC,{each:function(){var G;
return(G=y.data().legalInfos)!=null?G:[]},
keyBy:"INDEX"},function(G){return _.X("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.X(_.Da,{text:G}))})))},"$f");var qY6=_.Ax(function(y){var W=y.data;y={};y=(y.ytMiniAppScoreChallengeViewModelScoreRadial=!0,y.ytMiniAppScoreChallengeViewModelDarkScoreRadial=ULQ(),y);return _.X("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.X("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return W().title}),_.X("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return W().subtitle}),_.X("div",{class:_.wZ(y)},_.X("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return W().score})),_.X("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return W().prompt}))},"ag");var klf=function(){this.store=_.I5();this.formId=""};var jDQ=_.Ax(function(y){function W(u){if(u&&(u=_.g(u,_.zZ)))return Object.assign({},u,{isSelected:D()})}
var c=_.z(_.WF(function(){var u,t;return(t=(u=_.g(y.data().option,_.zZ))==null?void 0:u.isSelected)!=null?t:!1})),Z=c.next().value,G=c.next().value,D=Z;
_.rj(function(){var u;_.TzS((u=y.data().formSchema)==null?void 0:u.id,{onSubmit:function(){var t=_.U().resolve(_.i1),b=!!y.data().selectedCommand,r=!!y.data().unselectedCommand;if(D()){if(b)var F=y.data().selectedCommand}else r&&(F=y.data().unselectedCommand);F=_.UH(F);W(y.data().option)&&!F?(t="",!b&&r?t="selected ":b&&!r&&(t="unselected "),b=new _.ul("No "+t+"command found for SelectionListItemFormViewModel"),_.OP(b)):F&&t.resolveCommand(F)},
isValid:function(){return!0}})});
var Y=function(){G(!D())};
_.KL(function(){var u,t,b=(u=y.data())==null?void 0:(t=u.formSchema)==null?void 0:t.id;b&&_.dRd()().delete(b)});
return _.X("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.X("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.X(_.Da,{text:function(){return y.data().paragraph}})),_.X(_.YN,{cond:function(){return W(y.data().option)},
then:function(u){return _.X(_.DF,{data:u,isCompact:!0,hideSelectionTextChevron:!0,onTap:Y,disableHorizontalPadding:!0})}}))},"bg");var Odg=_.ug({avatarStackViewModel:_.c4V}),y4Q=_.qi(g_Z);_.eu(g_Z);var WLS=_.Ax(function(y){var W=_.aU6(function(){return y.data().formId}),c=W.onSubmit,Z=W.isValid;
return _.X("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.X(_.bg,{data:function(){return y.data().panelFooter}},{panelFooterViewModel:function(G){return _.X(_.NG,{data:G.data,
disablePadding:!0,disablePrimaryButton:function(){return!Z()},
onClickPrimaryButton:function(){c()}})}}))},"cg");var Gd3=_.Ax(function(y){var W=_.V0(y,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),c=W.elRefCallback;y=W.iconWiz;var Z=W.assetWiz,G=W.assetType,D=W.titleWiz,Y=W.leadingActionHeaderWiz,u=W.trailingActionHeaderWiz,t=W.headerPosition,b=W.contentWiz,r=W.buttonLayout,F=W.buttonStyle,K=W.primaryButtonWiz,l=W.secondaryButtonWiz,N=W.contentAlignment,P=W.isFullscreen,V=W.width,Q=W.maxHeight,S=W.isHeaderWizDefined,
cy=W.headerWiz,M=W.isFooterWizDefined,fa=W.footerWiz;W=_.HO(function(xF){c==null||c(xF)});
var jI=Z?function(){return Z({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,sD=K?function(){var xF={};
return K({buttonOverrides:function(){return{style:(F==null?void 0:F())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Mi((xF["yt-spec-dialog-layout__dialog-layout-button"]=!0,xF["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(r==null?void 0:r())===0||(r==null?void 0:r())===2},xF))})}:void 0,ED=l?function(){var xF={};
return l({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Mi((xF["yt-spec-dialog-layout__dialog-layout-button"]=!0,xF["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(r==null?void 0:r())===0||(r==null?void 0:r())===2},xF))})}:void 0,N1=function(){return(!!D||!!Y||!!u)&&t()===0},bf={},Py={},WJ={},t5={};
return _.X("dialog-layout",{el:W,class:_.Mi((bf["yt-spec-dialog-layout"]=!0,bf["yt-spec-dialog-layout--dialog-layout-fullscreen"]=P,bf["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!P()},bf["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return Q()===1},bf["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(G==null?void 0:G())===1},bf)),
style:function(){return(V==null?void 0:V())!==void 0?"width: "+V+"px;":""}},y?_.X("div",{class:_.Mi((Py["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Py["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Z&&t()===1},Py["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return N()===1},Py))},_.X(y,null)):null,_.X(_.YN,{cond:S,
then:function(){return cy?_.X("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.X(cy,null)):null},
else:function(){return _.X(_.a2,null,_.X(_.YN,{cond:N1,then:function(){return _.X(c4D,{contentAlignment:N,LeadingActionHeader:Y,TrailingActionHeader:u,Title:D,isAboveAsset:!!jI})}}),jI?_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.X(jI,null)):null)}}),_.X("div",{class:_.Mi((WJ["yt-spec-dialog-layout__dialog-layout-container"]=!0,WJ["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(N==null?void 0:N())===1},WJ["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!D&&!cy||!!jI&&(t==null?void 0:t())===0},WJ))},_.X(_.YN,{cond:function(){return D&&!cy&&(t==null?void 0:t())===1},
then:function(){return _.X(c4D,{contentAlignment:N,LeadingActionHeader:Y,TrailingActionHeader:u,Title:D,isAboveAsset:!1})}}),b?_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.X(b,null))):null,_.X(_.YN,{cond:M,
then:function(){return fa?_.X("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.X(fa,null)):null}}),sD||ED?_.X(ZJH,{footerClasses:_.Mi((t5["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,t5["yt-spec-dialog-layout__dialog-layout-footer"]=!0,t5["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(r==null?void 0:r())===2},t5["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(r==null?void 0:r())===1},t5)),
PrimaryButton:sD,SecondaryButton:ED}):null))},"dg"),c4D=_.Ax(function(y){var W=_.V0(y,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),c=W.contentAlignment,Z=W.LeadingActionHeader;y=W.Title;var G=W.TrailingActionHeader,D=W.isAboveAsset,Y=W.enableLeadingActionHeader;W={};return _.X("div",{class:_.Mi((W["yt-spec-dialog-layout__dialog-header-container"]=!0,W["yt-spec-dialog-layout__dialog-header"]=!0,W["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=D,W["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(c==null?void 0:c())===1&&Y()},W))},_.X(_.YN,{cond:function(){return Y()},
then:function(){return Z?_.X("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.X(Z,null)):null}}),y?_.X("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.X(y,null)):null,G?_.X("div",null,_.X(G,null)):null)},"eg"),ZJH=_.Ax(function(y){var W=y.footerClasses;
var c=y.PrimaryButton;y=y.SecondaryButton;return _.X("div",{class:W},y?_.X(y,null):null,c?_.X(c,null):null)},"fg");var f4Q=_.Ax(function(y){var W=y.data;return _.X("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.X("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.X(_.bg,{data:function(){return W().avatar}},{avatarViewModel:_.Om})),_.X("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X(_.Da,{text:function(){return W().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"gg");var o5B=_.Ax(function(y){var W=y.data;return _.X("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.X("div",{class:"ytAccessConfirmationViewModelContent"},_.X(_.bg,{data:function(){return W().dualAvatar}},{dualAvatarViewModel:function(c){return _.X("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.X(_.fG6,{data:c.data}))}}),_.X("h2",{class:"ytAccessConfirmationViewModelTitle"},_.X(_.Da,{text:function(){return W().title}})),_.X(_.Da,{text:function(){return W().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"hg");var D$S=_.Ax(function(y){var W=y.data;var c=void 0;y=_.z(_.G9("",void 0,"O14qgc"));var Z=y.next().value,G=y.next().value,D,Y=function(){G("");var b;(b=c)!=null&&b.store.dispatch(_.jv({type:"RESET_COMMAND_MAP"}))};
_.rj(function(){c=new klf;window.addEventListener("yt-popup-closed",Y)});
_.$k(function(){if(c&&D!==W().formId){var b=c,r=W();r.formId&&(b.formId=r.formId,b.store.dispatch(_.jv({type:"SET_CURRENT_FORM_ID",payload:{formId:b.formId}})));D=W().formId}});
_.KL(function(){window.removeEventListener("yt-popup-closed",Y)});
var u=function(b,r,F){r.key&&F&&r.key!==Z()&&(G(r.key),c&&r.command&&c.store.dispatch(_.jv({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:F,command:r.command}})))},t=function(){if(_.g(W().content,_.GxQ))return!(Z==null?0:Z())};
return _.X("yt-dialog-view-model",{class:_.Mi("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.X(Gd3,{headerWiz:function(){return _.X("span",{skip:!0},_.X(_.bg,{data:function(){return W().header}},{dialogHeaderViewModel:function(b){return _.X(y4Q,{data:b.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!W().header},
contentWiz:function(){return _.X("span",{skip:!0},_.X(_.bg,{data:function(){return W().customContent?W().customContent:W().content}},{basicContentViewModel:_.aS6,
createPlaylistDialogFormViewModel:eHZ,collaborativePlaylistInviteMessageViewModel:MUH,miniAppScoreChallengeViewModel:qY6,radioButtonGroupViewModel:function(b){return _.X(_.b63,{data:b.data,selectedKey:Z,onSelected:u})},
selectionListItemFormViewModel:jDQ,upsellViewModel:function(b){return _.X(wr6,{data:b.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:f4Q,installmentAgreementsViewModel:iEH,accessConfirmationViewModel:o5B,listViewModel:_.i_i}))},
footerWiz:function(){return _.X("span",{skip:!0},_.X(_.bg,{data:function(){return W().footer}},{panelFooterViewModel:function(b){return _.X(_.NG,{data:b.data,
disablePadding:!0,disablePrimaryButton:t})},
formPanelFooterViewModel:WLS,formFooterViewModel:function(b){return _.X(_.Z6d,{data:b.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!W().footer}}))},"ig");
D$S.idomCompat=!0;_.A3(D$S,"yt-dialog-view-model",{props:{data:_.Ix},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var z3Q=_.Ax(function(y){var W=y.data;y={};return _.X("yt-panel-header-view-model",{class:_.Mi("yt-panel-header-view-model-wiz",(y["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!W().shouldHideDivider},y["yt-panel-header-view-model-wiz--compact"]=function(){return!!W().subtitle},y))},_.X("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.X(_.YN,{cond:function(){return W().title},
then:function(c){return _.X(_.Da,{text:c,className:"yt-panel-header-view-model-wiz__title"})}}),_.X(_.YN,{cond:function(){return W().subtitle},
then:function(c){return _.X(_.Da,{text:c,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.X("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.X(_.bg,{data:function(){return W().trailingButtons}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"jg");
z3Q.idomCompat=!0;var Y6Q=_.Ax(function(y){var W=_.j9(function(D){var Y;if((Y=y.skipContentClick)==null?0:Y.call(y))return!1;y.onContentWrapperClick(D);return!0}),c,Z,G;
return _.X("div",{class:_.Mi("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return y.isAnimating()?"transform: translateY("+y.currentY()+"px);transition: 0.2s":""}},(c=y.header)==null?void 0:c.call(y),_.X("div",{id:y.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.cF({"max-height":(0,_.oK)(y.maxHeightForContentWrapper)}),"on:scroll":NTQ(y.onScroll),"on:touchmove":NTQ(function(D){return void D.stopPropagation()})},_.X("div",{el:{onRender:y.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":W},(Z=y.body)==null?void 0:Z.call(y))),(G=y.footer)==null?void 0:G.call(y))},"kg");
Y6Q.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var m$6=_.Ax(function(y){var W=_.Jx(y.leadingLabel),c=_.Jx(y.trailingLabel),Z=_.Jx(y.footerButtonType),G=function(){return W()||c()||y.hasPrimaryButton()||y.hasSecondaryButton()},D={},Y=_.Mi("yt-spec-bottom-sheet-layout__primary-button",(D["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Z()===0&&y.hasPrimaryButton()},D["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Z()===1&&y.hasPrimaryButton()},D["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Z()===2&&y.hasPrimaryButton()},D["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Z()===3&&y.hasPrimaryButton()},D));
D={};var u=_.Mi("yt-spec-bottom-sheet-layout__secondary-button",(D["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Z()===1&&y.hasSecondaryButton()},D["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Z()===2&&y.hasSecondaryButton()},D["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Z()===3&&y.hasPrimaryButton()},D));
return _.X(_.YN,{cond:y.hasFooterOverride,then:function(){var t;return _.X(_.a2,null,(t=y.footerOverride)==null?void 0:t.call(y))},
else:function(){return _.X(_.YN,{cond:G,then:function(){return _.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.X(_.YN,{cond:function(){return W()||c()},
then:function(){var t={};return _.X("div",{class:_.Mi("yt-spec-bottom-sheet-layout__footer-label-wrapper",(t["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!y.hasPrimaryButton()},t))},_.X(_.YN,{cond:W,
then:function(){return _.X("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},W)}}),_.X(_.YN,{cond:c,
then:function(){return _.X("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},c)}}))}}),_.X(_.YN,{cond:function(){return y.hasPrimaryButton()||y.hasSecondaryButton()},
then:function(){var t={};return _.X("div",{class:_.Mi("yt-spec-bottom-sheet-layout__footer-button-wrapper",(t["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Bd8,t))},_.X(_.YN,{cond:function(){return y.hasSecondaryButton()&&Z()!==0},
then:function(){var b;return _.X("div",{class:u},(b=y.secondaryButton)==null?void 0:b.call(y))}}),_.X(_.YN,{cond:y.hasPrimaryButton,
then:function(){var b;return _.X("div",{class:Y},(b=y.primaryButton)==null?void 0:b.call(y))}}))}}))}})}})},"lg");
m$6.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var sD9=_.Ax(function(y){var W=_.Jx(y.title),c=_.Jx(y.subtitle),Z=_.j9(function(Y){var u;(u=y.touchstart)==null||u.call(y,Y);return!1}),G=_.j9(function(Y){var u;
(u=y.touchmove)==null||u.call(y,Y);return!1}),D=_.j9(function(Y){var u;
(u=y.touchend)==null||u.call(y,Y);return!1});
return _.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:y.headerId,"on:touchstart":Z,"on:touchmove":G,"on:touchend":D},_.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.X(_.YN,{cond:y.hasHeaderOverride,then:function(){var Y;return _.X(_.a2,null,(Y=y.headerOverride)==null?void 0:Y.call(y))},
else:function(){var Y={};return _.X("div",{class:_.Mi((Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Y["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=W,Y))},_.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.X(_.YN,{cond:W,then:function(){return _.X(_.a2,null,_.X("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},W),_.X(_.YN,{cond:c,then:function(){return _.X("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
c)}}))}})),_.X(_.YN,{cond:function(){return W()&&y.hasActionHeader()},
then:function(){var u;return _.X("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(u=y.actionHeader)==null?void 0:u.call(y))}}))}}))},"mg");
sD9.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Ax(function(y){var W={stack:[],error:void 0,hasError:!1};try{var c=function(){WJ().dispatch("Close Sheet",{clientHeight:K(),maxHeight:0});setTimeout(function(){Iif()},250)},Z=function(){document.body.style.overscrollBehavior="";
Py.isFullScreen[0]()?Py.currentY[0]()>=60?WJ().dispatch("Snap To Neutral Position",{maxHeight:jI()}):WJ().dispatch("Snap To Full Screen",{maxHeight:ED()}):Py.currentY[0]()>=60?c():Py.currentY[0]()<=-60&&Q()>jI()?WJ().dispatch("Snap To Full Screen",{maxHeight:ED()}):WJ().dispatch("Snap To Neutral Position",{maxHeight:jI()})},G=function(xF){xF.preventDefault();
WJ().dispatch("Touch Move",{event:xF,contentScrollable:Q()>jI(),fullContentWrapperHeight:ED(),contentWrapperHeight:jI(),contentHeightMap:bf,contentWrapperId:"content-wrapper",header:pM9(y),footer:pM9(y)})},D=function(xF){document.body.style.overscrollBehavior="none";
xF.preventDefault();WJ().dispatch("Touch Start",{event:xF})},Y=function(){l(window.innerHeight);
Q()>jI()||sD(Q());Py.isFullScreen[0]()&&Q()>jI()?WJ().dispatch("Snap To Full Screen",{maxHeight:ED()}):WJ().dispatch("Snap To Neutral Position",{maxHeight:jI()})},u=function(xF){typeof N1!=="undefined"&&(bf["content-wrapper"]===void 0&&(bf["content-wrapper"]=xF.children[0].clientHeight),S(bf["content-wrapper"]),Q()>jI()||sD(Q()))},t=function(xF){if(!N1&&typeof MutationObserver!=="undefined"){var M3={childList:!0};
"MutationObserver"in window&&(N1=new MutationObserver(u.bind(void 0,xF)),N1.observe(xF,M3))}};
_.C6(W,_.ZXh(_.ae));var b=_.z(_.G9(window.innerHeight,void 0,"Knpls")),r=b.next().value,F=b.next().value,K=r,l=F,N=_.z(_.G9(0,void 0,"N0qFo")),P=N.next().value,V=N.next().value,Q=P,S=V,cy=_.z(_.WF(function(){var xF=pM9(y);return.6*K()-Rs9(xF)-li3(xF)})),M=cy.next().value,fa=cy.next().value,jI=M,sD=fa,ED=function(){var xF=pM9(y);
return K()-Rs9(xF)-li3(xF)-24-24},N1=null,bf={},Py={initialY:_.G9(0,void 0,"r4ch9"),
currentY:_.G9(0,void 0,"CvvHV"),isAnimating:_.G9(!1,void 0,"FxET1b"),isFullScreen:_.G9(!1,void 0,"vBIcVe"),maxHeightForContentWrapper:_.WF(jI)},WJ=function(){var xF=null;return function(){if(!xF){var M3={initialY:Py.initialY[0](),currentY:Py.currentY[0](),isAnimating:Py.isAnimating[0](),isFullScreen:Py.isFullScreen[0](),maxHeightForContentWrapper:Py.maxHeightForContentWrapper[0]()};xF=E_D(M3)}return xF}}();
_.rj(function(){window.addEventListener("resize",Y);WJ().subscribe(function(xF){Py.initialY[1](xF.initialY);Py.currentY[1](xF.currentY);Py.isAnimating[1](xF.isAnimating);Py.isFullScreen[1](xF.isFullScreen);Py.maxHeightForContentWrapper[1](xF.maxHeightForContentWrapper)})});
_.KL(function(){window.removeEventListener("resize",Y);N1&&(N1.disconnect(),N1=null)});
var t5=_.Mi({"bottom-sheet-content-without-icon":function(){var xF;return!((xF=y.shouldShowIcons)==null?0:xF.call(y))}});
return _.X("bottom-sheet-layout",null,_.X(Y6Q,{contentWrapperId:"content-wrapper",isAnimating:function(){return Py.isAnimating[0]()},
currentY:function(){return Py.currentY[0]()},
maxHeightForContentWrapper:function(){return Py.maxHeightForContentWrapper[0]()},
shouldShowIcons:y.shouldShowIcons,skipContentClick:y.skipContentClick,onScroll:function(){var xF=document.getElementById("header-wrapper"),M3=document.getElementById("content-wrapper");if(xF&&M3){var wS={};wS=(wS["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,wS["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,wS);xF.className=M3.scrollTop>1?_.wZ(wS):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Iif,contentWrapperEl:function(xF){t(xF);requestAnimationFrame(function(){u(xF)})},
header:function(){return _.X(sD9,{touchstart:D,touchmove:G,touchend:Z,title:y.headerTitle,subtitle:y.headerSubtitle,headerId:"header-wrapper",headerOverride:y.headerFn,hasHeaderOverride:y.hasHeaderFn,actionHeader:y.headerActionHeader,hasActionHeader:y.hasHeaderActionHeader})},
footer:function(){return _.X(m$6,{footerButtonType:y.footerButtonType,leadingLabel:y.footerLeadingLabel,trailingLabel:y.footerTrailingLabel,primaryButton:y.footerPrimaryButton,hasPrimaryButton:y.hasFooterPrimaryButton,secondaryButton:y.footerSecondaryButton,hasSecondaryButton:y.hasFooterSecondaryButton,footerOverride:y.footerFn,hasFooterOverride:y.hasFooterFn})},
body:function(){return _.X(_.YN,{cond:y.hasContentFn,then:function(){var xF;return _.X("div",{class:t5},(xF=y.contentFn)==null?void 0:xF.call(y))}})}}))}catch(xF){W.error=xF,W.hasError=!0}finally{_.Q0(W)}},"ng").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var unD=_.Ax(function(y){var W=_.U().resolve(_.bc),c=_.j9(function(){return void W.closeSheet()});
return _.X("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":c},_.X(_.YN,{cond:function(){return!!y.header},
then:function(){return _.X("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},y.header())}}),_.X(_.YN,{cond:function(){return!!y.content},
then:function(){return _.X("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},y.content())}}),_.X(_.YN,{cond:function(){return!!y.footer},
then:function(){return _.X("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},y.footer())}}))},"og");
unD.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var tpf=_.Ax(function(y){y=y.data;var W={};return _.X("yt-sheet-view-model",{class:_.Mi("yt-sheet-view-model-wiz",(W["yt-sheet-view-model-wiz--contextual"]=!0,W["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.O("web_disable_backdrop_filter"),W))},_.X(_.YN,{cond:y,then:function(c){return _.X(unD,{header:function(){return _.X(_.bg,{data:function(){return c().header}},{panelHeaderViewModel:z3Q})},
content:function(){return _.X(_.bg,{data:function(){return c().content}},{listViewModel:function(Z){return _.X(_.i_i,{data:Z.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:wr6,miniAppScoreChallengeViewModel:qY6})},
footer:function(){return _.X(_.bg,{data:function(){return c().footer}},{panelFooterViewModel:_.NG})}})}}))},"pg");
tpf.idomCompat=!0;_.A3(tpf,"yt-sheet-view-model",{props:{data:_.Ix}});var XDH=_.Ax(function(y){var W=function(){var c;return(c=y.data().enableDebuggingFeatures)!=null?c:!1};
return _.X("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.X(_.mC,{each:function(){var c;return(c=y.data().stickers)!=null?c:[]}},function(c){return _.X(n5d,{data:function(){return c},
debugMode:W})}))},"qg"),n5d=_.Ax(function(y){var W=_.V0(y,{debugMode:!1}).debugMode,c=_.Jx(function(){var t;
return(t=y.data().region)==null?void 0:t.w},0),Z=_.Jx(function(){var t;
return(t=y.data().region)==null?void 0:t.h},0),G=_.Jx(function(){var t;
return(t=y.data().region)==null?void 0:t.x},0),D=_.Jx(function(){var t;
return(t=y.data().region)==null?void 0:t.y},0),Y=_.j9(function(){var t=y.data().onTap;
t&&_.OH(t)}),u={};
return _.X("div",{class:_.Mi("ytStoriesStickerLayerViewModelSticker",(u.ytStoriesStickerLayerViewModelDebugMode=W,u)),style:_.cF({width:function(){return 100*c()+"%"},
height:function(){return 100*Z()+"%"},
left:function(){return 100*G()+"%"},
top:function(){return 100*D()+"%"},
"flex-direction":function(){return P59(y.data().flexDirection)},
"justify-content":function(){return JP6(y.data().justifyContent)},
"align-items":function(){return V29(y.data().alignItems)}}),
"on:click":Y},_.X(_.bg,{data:function(){return y.data().button||y.data().toggleButton}},{buttonViewModel:function(t){return _.X(_.OV,{data:t.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(t){return _.X(_.UV,{data:t.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"rg");var r4Q=_.Ax(function(y){var W=function(){return y.data()},c=_.Jx(function(){return W().backgroundColor},0),Z=_.Jx(function(){return W().actionButtons},[]),G=_.Jx(function(){return W().stickerLayer},{}),D={},Y=function(){var t,b;
return{animationRef:D,animationConfig:{autoplay:!1,loop:!1,path:(b=(t=W().foregroundAnimation)==null?void 0:t.url)!=null?b:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){y.navigateToNextItemOnLottieComplete()}}}},u=function(){var t,b,r,F,K,l,N,P;
return{animationConfig:{autoplay:(l=(t=W().backgroundAnimation)==null?void 0:(b=t.settings)==null?void 0:b.autoplay)!=null?l:!1,loop:(N=(r=W().backgroundAnimation)==null?void 0:(F=r.settings)==null?void 0:F.loop)!=null?N:!1,path:(P=(K=W().backgroundAnimation)==null?void 0:K.url)!=null?P:"",name:"stories_item_background_animation"}}};
_.$k(function(){if(y.isVisible()){var t;(t=D.lottieEl)==null||t.play()}else{var b;(b=D.lottieEl)==null||b.stop()}});
return _.X("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.cF({"background-color":function(){return _.KZ(c())+";"}})},_.X("div",{class:"ytStoriesItemViewModelAssetContent"},_.X(_.YN,{cond:function(){return!!W().backgroundAnimation},
then:function(){return _.X(_.el,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.X(_.YN,{cond:function(){return!!W().backgroundImage},
then:function(){return _.X(_.J3,{data:function(){return W().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.X(_.YN,{cond:function(){return!!W().foregroundAnimation},
then:function(){return _.X(_.el,{data:Y,animationName:function(){return Y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.X(_.YN,{cond:function(){return!!W().foregroundImage},
then:function(){return _.X(_.J3,{data:function(){return W().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.X("div",{class:"ytStoriesItemViewModelTopShadow"}),_.X(_.bg,{data:function(){return G()}},{storiesStickerLayerViewModel:XDH})),_.X("div",{class:"ytStoriesItemViewModelBottomShadow"},_.X("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.j9(y.pauseAutoNavigation)},_.X(_.mC,{each:Z},function(t){return _.X(bJd,{data:function(){return t}})}))))},"sg"),bJd=_.Ax(function(y){var W={};
return _.X("div",{class:_.Mi("ytStoriesItemViewModelActionButton",(W.ytStoriesItemViewModelStretchedActionButton=function(){return y.data().size==="STORIES_BUTTON_SIZE_STRETCH"},W))},_.X(_.bg,{data:function(){return y.data().button}},{buttonViewModel:function(c){return _.X(_.OV,{data:c.data,
className:"ytStoriesItemViewModelButton"})}}))},"tg");_.A3(_.Ax(function(y){var W=_.z(_.WF(function(){var S;return(S=y.data().startIndex)!=null?S:0})),c=W.next().value,Z=W.next().value;
W=_.z(_.G9(!1,void 0,"klmjc"));var G=W.next().value,D=W.next().value,Y=function(){var S;return(S=y.data().storyItems)!=null?S:[]},u=function(){return y.data().dismissButton},t=function(){var S;
return _.g((S=_.g(u(),_.ri))==null?void 0:S.onTap,_.Fx)},b=_.HO(),r,F=function(){var S;
(S=r)==null||S.cancel();r=K(c()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});r.onfinish=function(){K(c()).style.width="100%";var cy=_.g(Y()[c()],vZ6),M,fa;cy!=null&&cy.foregroundAnimation&&((cy==null?0:(M=cy.foregroundAnimation)==null?0:M.url)||(cy==null?0:(fa=cy.foregroundAnimation)==null?0:fa.payload))||(c()!==Y().length-1?(Z(c()+1),F()):t()&&_.$0(t()))}},K=function(S){return b.value.children[S].children[0]},l=function(){for(var S=0;S<c();S++)K(S).style.width="100%"};
W=_.j9(function(){G()?D(!1):(c()===Y().length-1&&t()&&_.$0(t()),K(c()).style.width="100%",c()!==Y().length-1&&(Z(c()+1),F()))});
var N=_.j9(function(){G()?D(!1):(K(c()).style.width="0%",c()!==0?Z(c()-1):Z(c()),F())}),P=function(){D(!0)},V=function(){K(c()).style.width="100%";
c()!==Y().length-1?(Z(c()+1),F()):t()&&_.$0(t())},Q=_.j9(function(){var S;
(S=r)==null||S.pause()});
_.$k(function(){if(G()){var S;(S=r)==null||S.pause()}else{var cy;(cy=r)==null||cy.play()}});
_.$k(function(){l();c()===y.data().startIndex&&F()});
_.rj(function(){l();F()});
return _.X("yt-stories-viewer-view-model",{class:_.Mi("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.X("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.X("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":N,"on:mousedown":Q}),_.X("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":W,"on:mousedown":Q})),_.X(_.bg,{data:Y},{storiesItemViewModel:function(S,cy){var M=S.data;return _.X(_.YN,{cond:function(){return Math.abs(cy()-
c())<=1},
then:function(){var fa={};return _.X("div",{class:_.Mi("ytStoriesViewerViewModelStoryItem",(fa.ytStoriesViewerViewModelHiddenStoryItem=function(){return cy()!==c()},fa))},_.X(r4Q,{data:M,
pauseAutoNavigation:P,navigateToNextItemOnLottieComplete:V,isVisible:function(){return cy()===c()}}))}})}}),_.X("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:b},_.X(_.mC,{each:Y},function(){return _.X("div",{class:"ytStoriesViewerViewModelProgressBar"},_.X("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.X("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.X(_.bg,{data:u},{buttonViewModel:_.OV})))},"ug"),"yt-stories-viewer-view-model",{props:{data:_.Ix}});_.A3(_.Ax(function(y){var W=y.data;var c=_.HO(),Z=[];return _.X("yt-gen-ai-feedback-form-view-model",{el:c,class:"ytGenAiFeedbackFormViewModelHost"},_.X(_.Da,{text:function(){return W().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.X("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.X(_.bg,{data:function(){return W().feedbackChips}},{toggleButtonViewModel:function(G){var D=G.data;
return _.X(_.UV,{data:D,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Y){var u=D();u=_.g(u,_.F5);u=_.g(u==null?void 0:u.defaultButtonViewModel,_.ri).trackingParams;Y?Z.push(u):(Y=Z.indexOf(u),Y>-1&&Z.splice(Y,1))}})}})),_.X(_.Da,{text:function(){return W().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.X("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.X(_.bg,{data:function(){return W().submitButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){C5S(c.value,Z,W().uniqueId)}})}}),_.X(_.bg,{data:function(){return W().moreFeedbackButton}},{buttonViewModel:function(G){return _.X(_.OV,{data:G.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"vg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Ix},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var mP=function(){return _.v.apply(this,arguments)||this};
_.R(mP,_.v);mP.prototype.created=function(){s7S(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(zMQ);var y=_.U().resolve(_.Ry9);y&&(y.container=this.ytPopupContainerBehavior);if(y=_.U().resolve(_.bc))y.container=this.ytPopupContainerBehavior;if(y=_.U().resolve(_.rN)){var W=this.ytPopupContainerBehavior;y.containerWasInjected?_.Rs(Error("cj")):y.container=W}};
mP.prototype.ensurePopupBelowPlayer=function(y,W){var c=_.U().resolve(_.xN(_.h7));if(!c||!c.isOnWatch()||!_.HF())return!1;c=c.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.Y$().height>c+this.getPopupHeight(y,W)?(y.style.top="auto",y.style.bottom="0px"):(y.style.top=c+"px",y.style.bottom="auto");return!0};
mP.prototype.getPopupHeight=function(y,W){W&&(y.cachedPopupHeight=0);if(!y.cachedPopupHeight){W=0;var c=y.clientHeight,Z=window.getComputedStyle(y);W+=parseInt(Z.marginTop,10);W+=parseInt(Z.marginBottom,10);y.cachedPopupHeight=c+W}return y.cachedPopupHeight};
mP.prototype.getElement=function(y){return document.createElement(y)};
var FLD=mP;_.x([_.C(a7Q.YtPopupContainerBehavior),_.e("design:type",Object)],FLD.prototype,"ytPopupContainerBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],FLD.prototype,"ytComponentBehavior",void 0);FLD=_.x([_.d({disableElementRegistration:!0,is:"ytd-popup-container"})],FLD);
_.T(FLD,"ytd-popup-container",function(){if(C4B!==void 0)return C4B;var y=document.createElement("template");_.E(y,"\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");y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);return C4B=y},{mode:1});var U$D;var $$Q={};$$Q.YtLogYpcFlowCommandsBehavior=[_.Hj.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(y){_.g(y,fcQ)&&(y=_.g(y,fcQ))&&(y.serializedTransactionFlowLoggingParams?_.Hng(y.serializedTransactionFlowLoggingParams):y.serializedYpcCancelFlowLoggingParams?(y=y.serializedYpcCancelFlowLoggingParams)&&_.XE("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",y):y.serializedYpcResumeFlowLoggingParams?(y=y.serializedYpcResumeFlowLoggingParams)&&_.XE("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",y):y.serializedYpcPauseFlowLoggingParams?(y=y.serializedYpcPauseFlowLoggingParams)&&
_.XE("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",y):y.serializedYpcRefundFlowLoggingParams?(y=y.serializedYpcRefundFlowLoggingParams)&&qeH("YPC_EVENT_TYPE_START",y):y.serializedYpcDeactivateFlowLoggingParams?(y=y.serializedYpcDeactivateFlowLoggingParams)&&_.XE("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",y):y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(y=y.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.XE("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",y))},
handleLogYpcFlowDismiss_:function(y){_.g(y,GQf)&&(y=_.g(y,GQf),y.serializedTransactionFlowLoggingParams?_.LgD(y.serializedTransactionFlowLoggingParams):y.serializedYpcCancelFlowLoggingParams?(y=y.serializedYpcCancelFlowLoggingParams)&&_.XE("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",y):y.serializedYpcResumeFlowLoggingParams?(y=y.serializedYpcResumeFlowLoggingParams)&&_.XE("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",y):y.serializedYpcPauseFlowLoggingParams?(y=
y.serializedYpcPauseFlowLoggingParams)&&_.XE("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",y):y.serializedYpcRefundFlowLoggingParams&&(y=y.serializedYpcRefundFlowLoggingParams)&&qeH("YPC_EVENT_TYPE_CANCEL",y))}}];var KL3={};KL3.YtCancelRecurrenceBehavior=[_.KA.YtComponentBehavior,_.Th5,{attached:function(){var y=this;MmH(this,function(W,c){return y.ypcCancelRecurrenceHandler(W,c)})},
ypcCancelRecurrenceHandler:function(y,W){var c=this;if(!W||!W.ypcCancelRecurrenceEndpoint)return!1;if(!W.ypcCancelRecurrenceEndpoint.params)return _.pj(Error("ul")),!0;_.vE(this.hostElement);var Z=_.Ee.instance,G=_.U().resolve(_.xN(_.tq));Z&&_.Nu(Z,W)?_.IL(Z,W).then(function(D){c.ypcCancelRecurrenceSuccess_(y,W,{data:D})},function(D){c.ypcCancelRecurrenceFailure_(y,W,D)}).thenCatch(function(){_.pj(Error("vl"))}):G?G.requestDataForServiceEndpoint(W).then(function(D){c.ypcCancelRecurrenceSuccess_(y,
W,D)},function(D){c.ypcCancelRecurrenceFailure_(y,W,D)}).thenCatch(function(){_.pj(Error("vl"))}):_.pj(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(y,W,c){_.de(this.hostElement);c.data||(c={data:c});c.data&&c.data.actions&&_.mq(this.hostElement,c.data.actions,this.hostElement);c.data.messageRenderer?j3S(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(W=W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.XE("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",W);_.Z2(y,"yt-service-request-completed",c)},
ypcCancelRecurrenceFailure_:function(y,W,c){_.de(this.hostElement);j3S(W.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Z2(y,"yt-service-request-error",{error:c,params:[y,W]})}}];var OJQ=function(y,W){_.yw.call(this,W)};
_.R(OJQ,KxD);var g5Z={};g5Z.YtCompleteTransactionBehavior=[_.KA.YtComponentBehavior,_.Th5,{attached:function(){var y=this;MmH(this,function(W,c){return y.ypcCompleteTransactionHandler(W,c)})},
completeTransaction:function(y,W){var c=this;W={payments_payload:window.btoa(W.integratorData),buybucket_params:y.data.buybucketParams,offer_params:y.data.offerParams};var Z=_.U().resolve(_.tq),G=y.data.completeTransactionEndpoint,D=this.get("ypcCompleteTransactionEndpoint.actions",G);D&&_.mq(this.hostElement,D,this.hostElement);return(D=_.Ee.instance)&&_.Nu(D,G)?_.IL(D,G,W).then(function(Y){return!Y||(Y==null?0:Y.error)?(Y=c.get("data.serializedTransactionFlowLoggingParams",y),_.hG(new SK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Y))):{data:Y}}).then(function(Y){return c.handleCompleteTransactionSuccess_(Y,y)},function(){return c.handleCompleteTransactionFailure_(y)}):Z.requestDataForServiceEndpoint(G,W).then(function(Y){return c.handleCompleteTransactionSuccess_(Y,y)},function(){return c.handleCompleteTransactionFailure_(y)})},
handleCompleteTransactionSuccess_:function(y,W){y.data||(y={data:y});if(y.data.messageRenderer)return _.hG(new OJQ(y.data.messageRenderer));if(y.data.trackingParams){var c=_.NR(),Z=_.EL();c&&Z&&_.HA(c,Z,_.Dz(y.data.trackingParams))}W=this.get("data.serializedTransactionFlowLoggingParams",W);kbQ(W);return _.sc(y)},
handleCompleteTransactionFailure_:function(y){y=this.get("data.serializedTransactionFlowLoggingParams",y);_.CZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",y);return _.hG(new SK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",y))},
ypcCompleteTransactionHandler:function(y,W){var c=this;if(!W.ypcCompleteTransactionEndpoint)return!1;if(!W.ypcCompleteTransactionEndpoint.transactionParams)return _.pj(Error("xl")),!0;W.ypcCompleteTransactionEndpoint&&W.ypcCompleteTransactionEndpoint.gtmData&&_.YS(W.ypcCompleteTransactionEndpoint.gtmData);var Z=_.U().resolve(_.xN(_.tq));if(Z){_.vE(this.hostElement);var G=_.Ee.instance;G&&_.Nu(G,W)?_.IL(G,W).then(function(D){return!D||(D==null?0:D.error)?(D=c.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
W),_.hG(new SK("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D))):{data:D}}).then(function(D){_.Z2(y,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(W,D)},function(){return c.ypcCompleteTransactionFailure_(W)}):Z.requestDataForServiceEndpoint(W).then(function(D){_.Z2(y,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(W,D)},function(){return c.ypcCompleteTransactionFailure_(W)})}return!0},
ypcCompleteTransactionSuccess_:function(y,W){_.de(this.hostElement);W.data||(W={data:W});_.GG(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);W.data.messageRenderer||W.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(y):(_.YS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",y));W.data.actions&&(y=fqB(W.data.actions),W=o6B(W.data.actions),y.length&&_.D2(this.hostElement,
y),W.length&&_.mq(this.hostElement,W,this.hostElement))},
ypcCompleteTransactionFailure_:function(y){_.de(this.hostElement);_.GG(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",y,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(y,W,c){if(W=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",W))W={serializedTransactionFlowLoggingParams:W},c&&(W.errorType=c),_.$g(y,W),_.KD()}}];var R3f={};R3f.YtEndpointHandlerWithYpcBehavior=[_.Th5,_.Hj.YtActionHandlerBehavior,[{openWalletDialog:function(y,W,c,Z,G,D,Y){var u=this,t=_.px();W=W.replace(/-/g,"+").replace(/_/g,"/");var b=_.Uc().get("hl");_.rCE(_.WU(_.QM),W,t.resolve,G,function(r){D&&D();t.reject(r)},b,function(r){return u.onServerBackendAnalyticEvent_(y,c,r)},this.onDialogClose_.bind(this),Z,Y);
return t.promise},
openFixFlowDialog:function(y,W,c,Z){y=y.replace(/-/g,"+").replace(/_/g,"/");_.WU(_.QM).openFixFlowDialog(y,W,c,Z)},
onDialogClose_:function(){_.GG(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(y,W,c){y.fire("yt-commerce-action-init-done");W&&_.D2(this.hostElement,[W,{backend_analytics:c}])}}],
_.e_.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(y,W){y=this.get("data.nativeFlowEndpoint",W);W=this.get("data.fallbackEndpoint",W);y?_.D2(this.hostElement,[y]):W&&_.Z2(this.hostElement,"yt-navigate",{endpoint:W})}}],
KL3.YtCancelRecurrenceBehavior,g5Z.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 y=this;MmH(this,function(W,c,Z){return y.handleYPCEndpoint(W,c,Z)});
this.ypcRegisterActionMapJobId_=_.Xc(_.KX,function(){y.registerActionMap(y.buyFlowActionMap_)})},
detached:function(){var y=this;_.KX.cancelJob(this.ypcRegisterActionMapJobId_);_.Xc(_.KX,function(){y.unregisterActionMap(y.buyFlowActionMap_)})},
handleYPCEndpoint:function(y,W,c){var Z=W.ypcGetCartEndpoint;if(Z){_.pl("commerce_transaction");var G=Z.gtmId;G&&_.zI(G);(Z=Z.gtmData)&&_.YS(Z)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",W)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(y,W),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",W)!=null?(this.handleYPCFixInstrumentEndpoint_(y,W),!0):W.ypcPauseSubscriptionCommand?(Sfd(this.hostElement,y,W,c),
!0):W.ypcResumeSubscriptionCommand?(xLQ(this.hostElement,y,W),!0):W.getPaymentInstrumentsParamsCommand?(LeD(this.hostElement,y,W),!0):W.ypcHandleTransactionEndpoint?(BTQ(this.hostElement,y,W,c),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(y,W){var c=this;_.PA("ttcr",void 0,"commerce_transaction");W=W.ypcGetCartEndpoint;var Z=W.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,G=Z.encryptedPurchaseParams,D=Z.serializedTransactionFlowLoggingParams,Y=Z.serializedPaymentsClientParams,u=this.createGetCartResponseFromParams_(Z,W.offerParams,D);this.changeButtonState(y,!0);_.bU(this.openWalletDialog(y,G,Z.ypcLogWalletAnalyticDataEndpoint,D,function(){c.changeButtonState(y,!1)},function(){c.changeButtonState(y,
!1)},Y).then(function(t){return c.handleBuyFlowCompleteCallback_(y,u,t)},function(){return c.handleOnLoadError(u)}).then(function(t){return void c.handlePostPurchaseSuccess_(y,u,t)},function(t){return void c.handlePostPurchaseError_(t)}),function(){c.changeButtonState(y,!1);
y instanceof Element&&_.Z2(y,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(y,W,c){var Z=y.completeTransactionEndpoint,G=y.handleTransactionEndpoint;W={data:{offerParams:window.btoa(W),serializedTransactionFlowLoggingParams:c}};G?W.data.handleTransactionEndpoint=G:W.data.completeTransactionEndpoint=Z;y.onCartDismissCommand&&(W.data.onCartDismissCommand=y.onCartDismissCommand);return W},
onGetCartServiceRequestCompleted_:function(y,W){var c=this,Z=y.target;if(W&&W.data&&W.data.messageRenderer)_.de(this.hostElement),this.handleMessageRenderer_(W.data.messageRenderer),this.changeButtonState(Z,!1);else{var G=this.get("data.encryptedPurchaseParams",W),D=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",W),Y=this.get("data.ypcLogWalletAnalyticDataEndpoint",W),u=this.get("data.serializedPaymentsClientParams",W),t=this.getLoggingParams_(W);if(t||G||D)y.stopPropagation(),_.PA("ttcr",
void 0,"commerce_transaction"),G||_.de(this.hostElement),this.changeButtonState(Z,!1),D?_.GG(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Nn("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:D}}},this]):G&&(this.changeButtonState(Z,!0),y=null,y=this.openWalletDialog(Z,G,Y,t,function(){_.de(c.hostElement);c.changeButtonState(Z,!1)},function(){_.de(c.hostElement);
c.changeButtonState(Z,!1)},u),_.bU(y.then(function(b){return c.handleBuyFlowCompleteCallback_(Z,W,b)},function(){return c.handleOnLoadError(W)}).then(function(b){return c.handlePostPurchaseSuccess_(Z,W,b)},function(b){return c.handlePostPurchaseError_(b)}),function(){c.changeButtonState(Z,!1);
_.Z2(Z,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(y,W){W&&W.endpoint&&W.endpoint.ypcGetCartEndpoint&&!W.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)&&_.mq(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",W.endpoint.ypcGetCartEndpoint)],y.target),_.vE(this.hostElement),this.changeButtonState(y.target,!0))},
onServiceRequestError_:function(y,W){if(W&&W.params&&W.params.length){W=_.z(W.params);for(var c=W.next();!c.done;c=W.next())if((c=c.value)&&c.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)&&_.mq(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)],y.target);_.de(this.hostElement);this.changeButtonState(y.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(y,W,c){var Z=c.integratorData;return Z==null||Z===""||c.error!=null?(Z=this.getLoggingParams_(W),String(c.error)==="-1"?(W.data.onCartDismissCommand&&_.mq(this.hostElement,[W.data.onCartDismissCommand],y),_.hG(new SK("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z,!0))):_.hG(new SK("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z))):W.data.handleTransactionEndpoint?Hd9(this.hostElement,W.data.handleTransactionEndpoint,{payments_payload:Z,funds_guarantee_callback_client_data:c.integratorClientCallbackData}):
this.completeTransaction(W,c)},
handlePostPurchaseSuccess_:function(y,W,c){W=c.data;var Z=!1,G,D;if(W&&((G=W.command)==null?0:(D=G.commandExecutorCommand)==null?0:D.commands)){var Y,u;G=(Y=W.command)==null?void 0:(u=Y.commandExecutorCommand)==null?void 0:u.commands;for(Y=0;Y<G.length;Y++)if(_.g(G[Y],_.D73)){Z=!0;break}}Z||(W&&W.gtmDatas&&W.gtmDatas.length?_.YS(W.gtmDatas[0]):_.YS('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));c.data&&c.data.actions&&(W=fqB(c.data.actions),c=o6B(c.data.actions),W.length&&
_.D2(this.hostElement,W),c.length&&_.mq(this.hostElement,c,y))},
handlePostPurchaseError_:function(y){y&&y.payload&&y.payload.isUserDismiss||_.OP(Error("zl"))},
handleOnLoadError:function(y){y=this.getLoggingParams_(y);return _.hG(new SK("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",y))},
getLoggingParams_:function(y){return this.get("data.serializedTransactionFlowLoggingParams",y)},
handleMessageRenderer_:function(y){var W=_.Kj(y,"renderer"),c=_.Nn("openPopupConfig");W==="confirmDialogRenderer"&&c&&_.GG(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:c.popupTypeMap[W],popup:y}},this])},
handleYPCFixInstrumentEndpoint_:function(y,W){var c=this,Z=W.ypcFixInstrumentEndpoint;W=Z.encryptedFixInstrumentParameters;this.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(y,!0);this.openFixFlowDialog(W,function(G,D){c.onFixFlowCompleteCallback_(Z,G,D)},function(){return c.changeButtonState(y,!1)},function(){c.changeButtonState(y,!1);
c.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(y,W,c){var Z=_.JW("payments.business.integration.scenario.FixInstrument");if(W==Z.IntegratorCallbackType.ON_COMPLETE){W="FIX_FOP_EVENT_TYPE_CANCEL";var G=null;c.error!=null?c.error!=Z.OnCompleteCallbackError.USER_CANCELLED&&(_.mq(this.hostElement,[y.errorAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_FAILURE",G="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.mq(this.hostElement,[y.successAction],this.hostElement),W="FIX_FOP_EVENT_TYPE_SUCCESS");_.mq(this.hostElement,[y.onFinishAction],
this.hostElement);this.logFixFopEvent_(y,W,G)}},
logFixFopEvent_:function(y,W,c){(y=y.serializedFixFopLoggingParams)?(W={eventType:W,serializedFixFopLoggingParams:y},c!=null&&(W.errorType=c),_.$g("fixFopFlow",W),_.KD()):_.OP(Error("Al"))},
changeButtonState:function(y,W){_.O("enable_ypc_spinners")&&y&&(y.is==="yt-button-renderer"||y.is==="ytd-button-renderer")&&(y.disabled=W)}}];var l4d=function(y){this.JSC$28486_clientRoot=y;this.feedbackCollectorActionMap={"yt-help-dialog-requested":M26,"yt-feedback-dialog-requested":idQ,"yt-signal-action-help":esd,"yt-signal-action-send-feedback":wM6,"yt-send-feedback-action":ku9,"yt-user-feedback-endpoint":j43};_.Ac(_.Q8.getInstance(),this.feedbackCollectorActionMap,this.JSC$28486_clientRoot)},E5D;var N1f=function(y){this.JSC$28491_clientRoot=y;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":yUf.bind(null,this.JSC$28491_clientRoot),"yt-signal-action-delete-all-downloads":cUf,"yt-signal-action-delete-download":Z$9,"yt-signal-action-delete-playlist-download":f99,"yt-signal-action-install-pwa":s4Q,"yt-signal-action-refresh-downloads":YpB,"yt-offline-video-endpoint":tw6,"yt-offline-playlist-endpoint":XP9,"yt-update-local-app-setting-command":rU9,"yt-offline-orchestration-action-command":UK9,
"yt-signal-action-undo-delete-download":DKd,"yt-local-watch-history-command":O$H};_.Ac(_.Q8.getInstance(),this.downloadManagerActionMap,this.JSC$28491_clientRoot);_.pZ.instance=new _.pZ},I46;var pDd=function(){var y=_.v.apply(this,arguments)||this;y.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_"};y.remoteApi_=null;return y};
_.R(pDd,_.v);_.f=pDd.prototype;
_.f.ready=function(){_.O("polymer_enable_mdx")&&(oE9({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.O("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.O("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.O("enable_cast_short_lived_lounge_token")}),_.k2("yt-remote-connection-change",this.handleConnectionChange_,this),_.k2("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=tMZ())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.f.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.f.handleConnectionChange_=function(y){(this.mdxConnected=y)?(y=Y1D(),!y&&Tl9()&&as3()&&(y={key:"cast-selector-receiver",name:as3()}),y=y.name):y=null;this.receiverName=y;_.Mg(this.remoteApi_);(this.remoteApi_=tMZ())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.f.handleReceiverAvailabilityChange_=function(){var y=z1Q();Tl9()&&_.cj("yt-remote-cast-available")&&y.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=y.length>0};
_.f.handleRemoteQueueChange_=function(){var y=this.currentVideoId_,W=this.currentListId_,c=w1(this.remoteApi_);this.currentVideoId_=c.videoId;this.currentListId_=c.listId;this.currentVideoId_&&_.GG(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.O("polymer_enable_mdx_queue")?this.currentListId_:null,y,W])};
_.f.handleAddToQueueAction_=function(y){y=_.g(y,dl3);this.remoteApi_&&(y.videoId?this.remoteApi_.addVideo(y.videoId):y.playlistId&&this.remoteApi_.addPlaylist(y.playlistId))};
_.f.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.f.handleInsertInQueueAction_=function(y){y=_.g(y,SkQ);this.remoteApi_&&y.videoId&&this.remoteApi_.JSC$17385_insertVideo(y.videoId)};
_.f.handleRemoveFromQueueAction_=function(y){y=_.g(y,TNH);this.remoteApi_&&y.videoId&&this.remoteApi_.JSC$17385_removeVideo(y.videoId)};
var s_=pDd;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],s_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L(),_.e("design:type",Object)],s_.prototype,"appId",void 0);_.x([_.L(),_.e("design:type",Boolean)],s_.prototype,"mdxConnected",void 0);_.x([_.L(),_.e("design:type",Boolean)],s_.prototype,"receiverAvailable",void 0);_.x([_.L(),_.e("design:type",Object)],s_.prototype,"receiverName",void 0);_.x([_.L(),_.e("design:type",Object)],s_.prototype,"currentVideoId_",void 0);
_.x([_.L(),_.e("design:type",Object)],s_.prototype,"currentListId_",void 0);s_=_.x([_.n6({is:"yt-mdx-manager",disableElementRegistration:!0})],s_);_.T(s_,"yt-mdx-manager",void 0,{mode:2});var PkH;var J4S;var VpH=function(){var y=_.v.apply(this,arguments)||this;y.APP_IDS={ytr:3,ytm:5};y.JSC$18625_timeoutId_=0;y.actionMap={"yt-open-create-family-dialog":"open"};return y};
_.R(VpH,_.v);_.f=VpH.prototype;_.f.created=function(){s7S(2200)};
_.f.detached=function(){this.observer_&&this.observer_.disconnect()};
_.f.open=function(y,W){var c=this,Z=y.serializedYpcFamilyCreateLoggingParams;this.JSC$18625_timeoutId_=setTimeout(this.abort_.bind(this,y.postFlowErrorEndpoint,Z),3E4);W&&(this.onReadyCallback_=W);var G=_.p(this.hostElement).querySelector("#unicorn-iframe");Z&&Z&&wF3("ypcFamilyCreateFlowStarted",Z);_.YMf("family_creation",function(){var D=_.JW("gapi.family_creation.render");_.JW("gapi.config.update")("iframes/family_creation/url",c.getFamilyCreationUrlWithUnicornParams_());var Y=3;y.appId&&y.appId in
c.APP_IDS&&(Y=c.APP_IDS[y.appId]);Y={authUser:_.Nn("SESSION_INDEX")||0,clientId:Y,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Nn("HL"),initialflow:[4,5,6,7],m:c.isMobile?1:0,onFlowComplete:c.onUnicornFlowComplete_.bind(c,y.postFlowSuccessEndpoint,Z),onError:c.onUnicornFlowError_.bind(c,y.postFlowErrorEndpoint,Z),onReady:c.onUnicornFlowReady_.bind(c,y.referencePcidParams)};D(G,Y)})};
_.f.close=function(){_.p(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.f.onUnicornFlowComplete_=function(y,W){this.close();W&&W&&wF3("ypcFamilyCreateFlowSucceeded",W);_.Z2(this.hostElement,"yt-navigate",{endpoint:y})};
_.f.onUnicornFlowError_=function(y,W){this.close();W&&wF3("ypcFamilyCreateFlowCancelled",W);_.Z2(this.hostElement,"yt-navigate",{endpoint:y})};
_.f.onUnicornFlowReady_=function(y){var W=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();y&&_.JW("gapi.family_creation.setConfig")(0,y);this.observer_=new MutationObserver(function(){_.p(W.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.p(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.p(this.hostElement).querySelector("#dialog").open()};
_.f.getFamilyCreationUrlWithUnicornParams_=function(){return _.Nn("YTR_FAMILY_CREATION_URL")};
_.f.getCurrentUrl_=function(){return document.location.href};
_.f.abort_=function(y,W){this.clearTimeout_();this.onUnicornFlowError_(y,W)};
_.f.clearTimeout_=function(){clearTimeout(this.JSC$18625_timeoutId_)};
var uj=VpH;_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],uj.prototype,"ytActionHandlerBehavior",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],uj.prototype,"isMobile",void 0);_.x([_.L(),_.e("design:type",Object)],uj.prototype,"onReadyCallback_",void 0);_.x([_.L(),_.e("design:type",Object)],uj.prototype,"observer_",void 0);uj=_.x([_.n6({is:"yt-create-family-dialog",disableElementRegistration:!0})],uj);
_.T(uj,"yt-create-family-dialog",function(){if(J4S===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);var W=y.content,c=W.insertBefore;PkH===void 0&&(PkH=document.createElement("template"));var Z=PkH;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);J4S=y}y=J4S;return y},{mode:2});var Ck9;var QD6;var A49=function(){var y=_.v.apply(this,arguments)||this;y.STEP=1;y.BLOCK_ON=80;y.MIN_PROGESS=0;y.MAX_PROGESS=100;return y};
_.R(A49,_.v);_.f=A49.prototype;_.f.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.f.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));_.U().addProvider({provide:aR6,useValue:this})};
_.f.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.f.finish=function(){var y=this;this.progress=this.MAX_PROGESS;gpB(function(){y.progress==y.MAX_PROGESS&&(y.hostElement.hidden=!0)})};
_.f.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.dJ.Object.defineProperties(A49.prototype,{progress:{configurable:!0,enumerable:!0,set:function(y){this.progress_=y;var W="scaleX("+y/this.MAX_PROGESS+")",c=_.p(this.hostElement).querySelector("#progress").style;c.transform=W;c.webkitTransform=W;this.hostElement.setAttribute("aria-valuenow",String(y))},
get:function(){return this.progress_}}});
var h3d=A49;_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],h3d.prototype,"ytComponentBehavior",void 0);h3d=_.x([_.n6({is:"yt-page-navigation-progress",disableElementRegistration:!0})],h3d);
_.T(h3d,"yt-page-navigation-progress",function(){if(QD6===void 0){var y=document.createElement("template");_.E(y,'\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');y.content.insertBefore(_.q().content.cloneNode(!0),
y.content.firstChild);var W=y.content,c=W.insertBefore;Ck9===void 0&&(Ck9=document.createElement("template"));var Z=Ck9;c.call(W,Z.content.cloneNode(!0),y.content.firstChild);QD6=y}y=QD6;return y},{mode:2});var B1Q={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"},HJ3={"font-size":"12px","font-style":"italic"},LLQ={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Naf=function(){return _.m(function(y){_.F2(y)})};_.A3(_.Ax(function(){var y=_.FP(_.S_y);return _.X("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var W;return(W=y())==null?void 0:W.announcement})},"wg"),"yt-ephemeral-actions");var xKg=new Map;var phQ=function(y,W){var c=this;this.handleError=y;this.logEventInternal=W;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){c.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
phQ.prototype.logError=function(y){this.handleError(y)};
phQ.prototype.logEvent=function(y,W){switch(y){case "IDB_DATA_CORRUPTED":_.O("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":_.O("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":v5H(this,W);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":y=Object.assign({},W,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",y)}};
var v5H=function(y,W){_.kq.getInstance().estimate().then(function(c){c=Object.assign({},W,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:MwZ(c==null?void 0:c.usage),deviceStorageQuotaMbytes:MwZ(c==null?void 0:c.quota)});y.logEventInternal("idbQuotaExceeded",c)})};var d$6=function(){var y=_.v.apply(this,arguments)||this;y.tabGesturesIsActive=!1;y.deprecateFullerscreenUi=_.O("web_watch_fullerscreen_deprecation_ui");y.hasDelegation=!1;y.darkerDarkTheme=_.O("web_darker_dark_theme");y.isFrostedGlassInitialized=!1;y.frostedGlassExp=_.O("web_frosted_glass");y.mastheadHiddenFocusWithinKillswitch=_.O("web_masthead_hidden_focus_within_killswitch");y.ephemeralActionsEnabled=_.O("web_ephemeral_actions");y.scrollAtTop=!0;y.guideScrollTop=0;y.isTheaterModeSession=_.I8("START_IN_THEATER_MODE");
y.isFullWindowSession=_.I8("START_IN_FULL_WINDOW_MODE");y.hasCreateFamilyDialog=!1;y.mastheadHeight=56;y.networkStatusManager=new _.CX;y.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":"handleSelectCountryCommand","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"};y.dynamicActionMap={"yt-run-attestation-command":function(W){var c=_.GaD.instance,Z=_.g(W,_.xL8);return Z?_.O("use_rta_manager_for_async")&&
n09()?yJ6(c,Z,W.clickTrackingParams):jO9(c,Z,W.clickTrackingParams):_.hG(Error("mi"))}};
y.isFrostedGlassDisabled=!1;y.isChannelOrPlaylistPage=!1;return y};
_.R(d$6,_.v);_.f=d$6.prototype;_.f.created=function(){var y=_.U();_.O("kevlar_clear_duplicate_pref_cookie")&&_.Xc(_.KX,function(){var W=_.DP.get("PREF");W&&!/f\d=/.test(W)&&(W=_.wj("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=W?"PREF=null;domain="+W+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.O("gzip_gel_with_worker")&&_.KDH();_.O("jspb_serialize_with_worker")&&LIH();_.O("web_worker_availability_check")&&i$6();_.O("nwl_init_killswitch")||BZZ().then(function(){_.KX.addLowPriorityJob(q9g)});
this.pageManagerAttachedPromise=_.px();this.ytdAppBehavior.loadDepsPromise=_.X1([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.ig(this.onThrottledScroll,200,this);_.O("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=y.resolve(_.q6);this.boundOnTouchStart=this.onTouchStart.bind(this);Ps6();$hZ=!!_.JW("ytappsettings.initialized");ce=_.JW("ytappsettings.previousValue");Pv6=_.JW("ytappsettings.previousSnapshotTime");$hZ||
($hZ=!0,J7H());Zi9();G$d();_.l1("DEFERRED_DETACH",_.O("kevlar_tuner_should_defer_detach"));_.l1("REUSE_COMPONENTS",!0);_.l1("STAMPER_STABLE_LIST",!0);_.l1("SCHEDULED_LAZY_LIST",!0);_.l1("openPopupConfig",Df6);_.l1("useClickHandler",!0);_.O("kevlar_shell_cleanup")&&_.KX.addLowPriorityJob(UuZ.bind(this,_.DH.caches));_.I8("IS_SHELL_LOAD")&&_.IP({shellStartupDurationMs:Math.round((0,_.Tj)()-_.gK())});JU6(this.networkStatusManager);_.O("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",RGD(B1Q)),
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!",RGD(HJ3)),console.log("%cVisit http://go/join-youtube-web to apply today.",RGD(LLQ)));_.MG6(y.resolve(_.Ms),1E3)};
_.f.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var y=whD();y&&!_.O("external_fullscreen_killswitch")&&document.addEventListener(y,this.setFullscreen.bind(this));(y=window.matchMedia("(prefers-color-scheme: dark)"))&&y.addEventListener&&y.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.f.attached=function(){var y=this;_.It().processSignal("ci");_.O("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Cf0?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Y3(_.gjH(),"SUCCESS");this.updateIconSet();_.WA(this.guideInnerContent,!1);_.j_().initVisibilityObserver();this.guideService.guideElement=this.guide;var W=document.createElement("ytd-miniplayer"),c=_.p(this.hostElement).querySelector("#content");
_.p(this.hostElement).insertBefore(W,c);_.It().processSignal("ma");_.U().resolve(_.Cy).init(W);_.I8("IS_SHELL_LOAD")&&(c=document.createElement("ytd-network-status-banner"),_.p(this.hostElement).insertBefore(c,W));_.O("kevlar_right_click_on_lockups")&&_.C7._onCaptureClick&&document.addEventListener("contextmenu",_.C7._onCaptureClick.bind(_.C7),!0);var Z=function(){var G=_.QN("yt-page-navigation-progress");_.p(y.hostElement).appendChild(G)};
setTimeout(function(){_.It().parkOrScheduleJob(Z,0,"eocs",16)},0);
_.O("service_worker_push_enabled")&&_.Xc(_.KX,eUD);_.Ac(_.Q8.getInstance(),this.dynamicActionMap,this.hostElement);_.Z2(this.hostElement,"ytd-app-attached");_.It().processSignal("aa");uPS(this.hostElement);_.LR("gapi.load",_.YMf);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Xc(_.KX,
function(){var G=document.createElement("ytd-video-preview");_.p(_.p(y.hostElement).querySelector("#video-preview")).appendChild(G)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Xc(_.KX,function(){I9Q();y.registerViewTransitionTasks()});
if(_.IW()&&this.isAppDarkTheme()!==_.Et())this.onDarkModeToggledAction();else W=_.NO()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==W&&(_.O("enable_dark_theme_only_on_shorts")?_.l0(_.O("enable_dark_theme_only_on_shorts_control")?window.location.href:_.BI(window.location.href,{theme:"dark"})):_.Rs(new _.ul("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(sAg=new mf6(this.hostElement)),I46=new N1f(this.hostElement),E5D=new l4d(this.hostElement),PDH=new pV6(this.hostElement)};
_.f.getThemeSettingsToLog=function(){var y=_.NO()==="USER_INTERFACE_THEME_DARK";y=_.IW()?_.Et()?"os-dark":"os-light":y?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:y,cookiesEnabled:_.Y7()}};
_.f.detached=function(){_.cA(this.guideInnerContent);_.KX.cancelJob(qG);qG=0;_.KX.cancelJob(jK);jK=0;_.Q9O(sLf);sLf.length=0;zUZ=_.U6I=null;_.j_().dispose();_.O("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.hc(_.Q8.getInstance(),sAg.playlistHandlerActionMap,sAg.JSC$28186_clientRoot);_.hc(_.Q8.getInstance(),I46.downloadManagerActionMap,I46.JSC$28491_clientRoot);_.hc(_.Q8.getInstance(),E5D.feedbackCollectorActionMap,E5D.JSC$28486_clientRoot);
for(var y=_.z(PDH.eventListeners),W=y.next();!W.done;W=y.next()){var c=_.z(W.value);W=c.next().value;c=c.next().value;c=_.z(c);for(var Z=c.next();!Z.done;Z=c.next()){var G=_.z(Z.value);Z=G.next().value;G=G.next().value;W.removeEventListener(Z,G)}}_.hc(_.Q8.getInstance(),PDH.autonavPauseActionMap,PDH.JSC$17570_clientRoot)};
_.f.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Uc().getFlag(186)};
_.f.computeIsInlinePreviewEnabled=function(y,W,c){return!c&&_.TKB({miniplayerIsActive:y,miniplayerPlaybackState:W})};
_.f.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.jv({type:"SET_FROSTED_GLASS_MODE",payload:!_.O("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"}))};
_.f.computeIsFrostedGlassDisabled=function(y,W,c,Z){return y||W||c||Z&&_.O("web_frosted_glass_disable_watch")};
_.f.computeIsHomePage=function(y,W){if(!y||W==null||!W.endpoint)return!1;var c;return((c=_.g(W.endpoint,_.oW))==null?void 0:c.browseId)==="FEwhat_to_watch"};
_.f.updateIsChannelOrPlaylistPage=function(){if(_.O("web_frosted_glass")){var y,W,c=(W=(y=_.U().resolve(_.xN(_.h7)))==null?void 0:y.getCurrentPage())==null?void 0:W.pageSubtype;this.isChannelOrPlaylistPage=c?["channel","channels","playlist"].includes(c):!1}};
_.f.scheduleFrostedGlassInitialization=function(){var y=this;_.O("web_frosted_glass")&&_.It().parkOrScheduleJob(function(){y.isFrostedGlassInitialized=!0},0,_.rc(["eocs",
"cr"]),300)};
_.f.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.ca8(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.jv({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.jv({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.f.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(mhB(!0))};
_.f.onYtSignalActionRequestPersistentStorage=function(){if(!_.O("request_persistent_storage_killswitch")){var y=_.U().resolve(_.LTf);y.cachedPersistStatePromise||(y.cachedPersistStatePromise=lYZ())}};
_.f.handleYtChannelCreationFormEndpoints=function(y){y&&this.ytComponentBehavior.resolveCommand(y)};
_.f.handleShowEngagementPanelEndpoint=function(y){y&&this.ytComponentBehavior.resolveCommand(y)};
_.f.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(mhB(!1))};
_.f.initIconDefs=function(y,W,c){var Z=document.createElement("iron-iconset-svg");Z.name=y;y=document.createElementNS("http://www.w3.org/2000/svg","svg");Z.appendChild(y);y.appendChild(W);if(c)for(var G in c)Z[G]=c[G];document.body.appendChild(Z);return Z};
_.f.onWindowResized=function(){_.GG(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var y=_.uS8.getInstance();y.documentWidth_=document.body.clientWidth;EbQ(y)};
_.f.onWindowScrolled=function(){var y=_.U().resolve(_.h7).getCurrentPage();if(y!=null&&y.getScrollTop){var W=this.ytdReduxBehavior,c=W.dispatch;y=y.getScrollTop()<=0;c.call(W,_.jv({type:"SET_SCROLL_AT_TOP",payload:y}))}};
_.f.guideIsVisibleButNotPersistentSelectorChanged=function(){var y=_.U().resolve(_.h7).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=y.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"),
y.setScrollTop(this.guideScrollTop));_.fl(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.f.getCurrentPageScrollableElementType=function(){var y=_.U().resolve(_.h7).getCurrentPage();if(y&&y.getPageScrollingElement())return y.getPageScrollingElement().nodeName};
_.f.observeGuideVisibility=function(){var y=_.uS8.getInstance(),W=this.miniGuideVisible;y.guidePersistentAndVisible_=this.guidePersistentAndVisible;y.miniGuideVisible_=W;EbQ(y)};
_.f.handleEduDismissAction=function(y){y&&y.eduDismissAction&&(_.GG(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.DTW.getInstance(),_.dF.set(y.eduDismissAction.key+"-dismissed",!0))};
_.f.handleEduImpressionAction=function(y){if(y&&y.eduImpressionAction){var W=_.DTW.getInstance();y=y.eduImpressionAction.key;W.JSC$10741_eduDisplayedThisLoad_[_.oVW[y].setKey||y]=!0;_.dF.set(y+"-impression",parseInt(_.dF.get(y+"-impression")||0,10)+1)}};
_.f.onYtSignalActionConfirmMentionsEdu=function(){_.GG(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.at.getInstance();_.TR.set("edu-dismissed",!0)};
_.f.onYtSignalActionRecordMentionsEduImpression=function(){_.at.getInstance();var y=_.TR.set,W=parseInt(_.TR.get("edu-impressions"),10);y.call(_.TR,"edu-impressions",(isFinite(W)?W:0)+1)};
_.f.onYtPageManagerAttached=function(y){var W;((W=_.hq(y))==null?void 0:W.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.f.onInvokeInstrumentManagerAction=function(y,W){kFB(W,y)};
_.f.updateIconSet=function(){var y=this.hostElement.querySelector("#masthead");if(y){var W=_.x$(y),c=W.querySelector("g#yt-logo-updated");c&&(y=document.createElementNS("http://www.w3.org/2000/svg","defs"),y.appendChild(c.cloneNode(!0)),(W=W.querySelector("g#yt-logo-red-updated"))&&y.appendChild(W.cloneNode(!0)),this.initIconDefs("yt-logos-ext",y))}};
_.f.updateMastheadData=function(){var y=this,W,c,Z,G;return _.m(function(D){if(D.nextAddress==1){W=y.data;c=y.hostElement.querySelector("#masthead");if(!c)return D.return();_.Lv(y,function(){c.data=y.topbarData});
return y.get("response.topbar",W)&&y.get("response.topbar.responseContext.maxAgeSeconds",W)!==0?(Z=_.U().resolve(_.Ia))?_.n(D,Z(),7):y.ephemeralResponseStore?_.n(D,y.ephemeralResponseStore.put("service:topbar:fallback",new _.ks({innertubeResponse:y.get("response.topbar",W)})),0):D.jumpTo(0):D.jumpTo(0)}return(G=D.yieldResult)?_.n(D,G.put("service:topbar:fallback",new _.ks({innertubeResponse:y.get("response.topbar",W)})),0):D.jumpTo(0)})};
_.f.computeTopbarData=function(y){if(!y)return null;var W;return this.isShortsPage&&this.topbarData&&!_.g((W=y.response)==null?void 0:W.topbar,IZf)?this.topbarData:y.response&&"topbar"in y.response?_.g(y.response.topbar,IZf)||null:null};
_.f.onSetTheaterModeEnabled=function(y,W){this.isTheaterModeSession=W.enabled;this.setTheaterModeStyles(W.enabled)};
_.f.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.f.onDarkModeToggledAction=function(){var y=_.c7(window.location.href);if(!_.IZO(y)){(y=!!_.hW(window.location.href).themeRefresh)&&_.Rs(new _.ul("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!y){J7H();y={themeRefresh:1};var W=_.U().resolve(_.h7);if(W.isOnWatch()){var c,Z;W=((c=W.getPlayerFromWatch())==null?void 0:(Z=c.getPlayer())==null?void 0:Z.getCurrentTime())||0;W>=1&&(y.time_continue=Math.floor(W))}_.Y7()||_.NO()!=="USER_INTERFACE_THEME_DARK"||(y.theme="dark");_.l0(_.BI(window.location.href,
y))}_.O("web_appshell_refresh_trigger")&&_.DH.caches&&this.refreshAppShellResponse();c=_.BT(window.location.href);_.U().resolve(_.ANV).replaceUrl(_.qR(c,"theme"))}};
_.f.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.f.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.f.onPlayerFullscreen=function(y){_.jG();this.playerFullscreen=y};
_.f.setRestrictedMode=function(y){var W=_.Uc();_.$A(0,58,y);W.save();_.U().resolve(_.kP).reload()};
_.f.onPageChanged=function(y){y.detail.newPageType==="ytd-watch-flexy"||y.detail.newPageType==="ytd-watch-fixie"||y.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.RT("WEB_PAGE_TYPE_WATCH")):y.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.RT("WEB_PAGE_TYPE_SHORTS")):y.detail.newPageType==="ytd-browse"&&y.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.RT("WEB_PAGE_TYPE_MINI_APP")):_.O("web_frosted_glass")&&y.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.RT("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.RT("WEB_PAGE_TYPE_UNKNOWN"));y.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.f.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.f.onGuideToggleTap=function(){_.Z2(this.hostElement,"yt-guide-toggle")};
_.f.onGuideToggleHover=function(){_.Z2(this.hostElement,"yt-guide-hover")};
_.f.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f.setMastheadTheme=function(){var y=_.x$(this.hostElement).querySelector("#masthead");y&&(y.dark=y.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),y.isDarkThemeForced=!1)};
_.f.onRequestPanelModeChange=function(y,W){this.hideHeaderShadow=W.mode!=="seamed"};
_.f.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.f.onDrawerIronSelect=function(y){_.hq(y).id==="guide"&&this.processDrawerIronSelect()};
_.f.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var y="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(y="opened"));_.Z2(this.hostElement,"yt-autonav-pause-guide-"+y)};
_.f.onAddElementToApp=function(y){_.p(this.hostElement).appendChild(y.detail)};
_.f.onThrottledScroll=function(){var y=_.U().resolve(_.h7).getCurrentPage();y&&(this.scrollAtTop=y.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.f.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.f.setFullscreen=function(){if(_.O("external_fullscreen")||!this.isWatchPage){var y=_.O("kevlar_fullerscreen_root_only_killswitch")?!!_.jG():!!_.jG()&&_.jG()===document.documentElement;y=(this.isWatchPage||_.O("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(y||this.isFullWindowSession);this.fullscreen!==y&&((this.fullscreen=y)&&_.fl(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Sv().dispatch(_.zWg(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.GG(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.f.setFullscreenLoggingForShorts=function(y){var W,c,Z;return _.m(function(G){if(G.nextAddress==1)return _.n(G,(W=_.HF())==null?void 0:W.getPlayerPromise(),2);c=G.yieldResult;(Z=c)==null||Z.setAppFullscreen(y);_.F2(G)})};
_.f.updateMastheadCssHeight=function(){var y=this.mastheadHeight;this.fullscreen&&(y=0);_.wM(this.hostElement,{"--ytd-masthead-height":y+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.f.updateNetworkStatusBannerDisplayStatus=function(){var y="unset";this.fullscreen&&(y="none");_.wM(this.hostElement,{"--ytd-network-status-banner-display":y})};
_.f.updateNetworkStatusBannerCssHeight=function(){var y="unset";this.fullscreen&&(y="0px");_.wM(this.hostElement,{"--ytd-network-status-banner-max-height":y})};
_.f.toggleFullscreenStyles=function(y,W,c){var Z=_.U().resolve(_.h7).getCurrentPage();y||W?(document.body.classList.add("no-scroll"),Z.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.qO(this,this.onScroll)),Z.setScrollTop(0),_.wM(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.tN()+"px"})):c?_.Z2(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Z2(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),Z.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.qO(this,this.onScroll)));this.mastheadHidden=y||W||c;this.updateMastheadCssHeight();_.O("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.f.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.f.onYtMastheadHeightChanged=function(y,W){this.mastheadHeight=W.height;this.updateMastheadCssHeight()};
_.f.onYtNavigateAction=function(y){y=this.get("navigateAction.endpoint",y);_.Z2(this.hostElement,"yt-navigate",{endpoint:y})};
_.f.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var y=document.createElement("yt-create-family-dialog");_.p(this.hostElement).appendChild(y);this.hasCreateFamilyDialog=!0}};
_.f.onSetPushNotificationsEnabledCommand=function(y){var W=this,c=_.g(y,NNB);c&&typeof c.enabled==="boolean"&&(Notification.permission!=="granted"?TIZ().then(function(){Notification.permission==="granted"?(Ex9(!c.enabled).then(pF9),c.successAction&&_.D2(W.hostElement,[c.successAction])):c.failureAction&&_.D2(W.hostElement,[c.failureAction])}):(Ex9(!c.enabled).then(pF9),c.successAction&&_.D2(this.hostElement,[c.successAction])))};
_.f.onYtSignalActionEnableChromeNotifications=function(){aa9(!0)};
_.f.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.g(this.topbarData.hotkeyDialog,JLB)}}})};
_.f.onYtSignalActionShowKeyboardShortcutDialog=function(){_.GG(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.f.onYtEndpointChangeHandler=function(y,W){var c=_.WU(_.qt);c.pendingPrefetchJob_&&(W=!(!W||W.autonav!="1"),c.pendingPrefetchJob_.resolve(y&&_.$6h(y)?_.KKa(y,W):""),c.pendingPrefetchJob_=null);_.GG(this.hostElement,"yt-pause-active-page-context");_.GG(this.hostElement,"ytd-log-youthere-nav");_.GG(this.hostElement,"yt-prepare-page-dispose")};
_.f.handleClearUrlParamCommand=function(y){if(y.clearUrlParamCommand&&y.clearUrlParamCommand.paramKeys){var W=y.clearUrlParamCommand.paramKeys;y=_.ho(window.location.href);W=_.z(W);for(var c=W.next();!c.done;c=W.next())y.JSC$7898_queryData_.remove(c.value);window.history.replaceState(window.history.state,document.title,y.toString())}};
_.f.handleCommandWithCommandHandler=function(y,W){_.km.instance.resolveCommand(y,{form:{element:W}})};
_.f.onYtTimedCommand=function(y){var W=this;y=_.g(y,taH);var c=y.command;c&&_.X5(_.KX,function(){var Z=_.g(c,_.iFV);Z?(_.km.instance.resolveCommand(c),W.maybeLogGetAnswerRequestTick(Z)):_.mq(W.hostElement,[c],W.hostElement)},y.timeoutMs||0)};
_.f.maybeLogGetAnswerRequestTick=function(y){y&&y.isFirstRequest&&(_.pl("search_overview_answer"),_.PA("so_rq",void 0,"search_overview_answer"))};
_.f.onYtSignalActionSkipNavigation=function(){var y=_.U().resolve(_.h7).getCurrentPage();_.Bn(y)};
_.f.onYtSignalActionCopyDebugData=function(){GZ9()};
_.f.handleEntityUpdateCommand=function(y){_.mZ(_.g(y,_.kH2).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.f.logFlowLoggingEventCommand=function(y){if(y=_.g(y,_.Tvf))if(y.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var W=y.flowEventNamespace,c=y.flowEventType,Z=y.flowType;Z&&W&&c&&_.uKH(_.cK(W,c,y.flowEventMetadata),Z)}else{W=_.G2();c=y.flowEventNamespace;Z=y.flowEventType;var G=y.flowType;G&&c&&Z&&_.Zl(W,_.cK(c,Z,y.flowEventMetadata),G,y.flowNonce)}};
_.f.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.f.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.f.onTouchStart=function(){var y=_.yN();_.NR()&&_.lv(y.JSC$10893_screenManager,{visualElement:y.ve})};
_.f.handleWebNativeShareCommand=function(y){navigator.share({url:_.g(y,lZ9).url}).catch(function(){})};
_.f.handleSelectCountryCommand=function(y){if(y=_.g(y,OnQ).gl){var W={persist_gl:1,gl:y},c=_.Uc();c.set("gl",y);c.save();y=xD3(W);_.l0(y)}};
_.f.handlePersistSubscriptionsDisplayPreferencesCommand=function(y){if(y=_.g(y,UlH)){var W=_.Uc();_.$A(0,155,y.useListView);W.save()}};
_.f.handleSelectLanguageCommand=function(y){if(y=_.g(y,gZS).hl){var W=_.Uc();W.set("hl",y);W.save();_.U().resolve(_.kP).reload()}};
_.f.handleConfirmDialogEndpoint=function(y){(y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(y))&&this.ytOpenPopupBehavior.openPopup(y)};
_.f.handleOpenPopupNavigationEndpoints=function(y,W){_.O("web_button_rework")&&(y=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(y))&&this.ytOpenPopupBehavior.openPopup(y,W)};
_.f.handleSaveCommandToSessionStorage=function(y){if(y=_.g(y,_.kuE)){var W=y.key;W&&y.command&&window.sessionStorage.setItem(W,JSON.stringify(y.command))}};
_.f.hardReloadWithShellPurge=function(y){y=y===void 0?{}:y;y=Object.assign({},y,{purge_shell:1});y=xD3(y);_.l0(y)};
_.f.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(y){y&&y.active&&y.active.postMessage({type:"refresh_shell"})}).catch(function(y){y.name!=="SecurityError"&&_.OP(y)})};
_.f.onDeviceThemeChanged=function(){var y=_.Et();_.$A(_.Uc(),185,y);_.Uc().save()};
_.f.handleYtRegisterPromoCommand=function(y){if(_.g(y,EZd)){var W=_.U().resolve(_.h7).getCurrentPage()||this.hostElement;h19().registerPromoCommand(_.g(y,EZd),W)}};
_.f.onYtNavigateHomeAction=function(){if(!_.O("kevlar_miniplayer_navigate_home_from_app_killswitch")){var y,W,c,Z,G=(Z=(y=this.topbarData)==null?void 0:(W=y.logo)==null?void 0:(c=W.topbarLogoRenderer)==null?void 0:c.endpoint)!=null?Z:_.fH;this.ytComponentBehavior.resolveCommand(G)}};
_.f.onYtLocationCollectionCommand=function(y){Ep6(_.g(y,LgB))};
_.f.onYtGetLocationCommand=function(y){mrd(_.g(y,HnS),this)};
_.f.updateRenderGuideFromBinding=function(y){this.renderGuide=y.detail.value};
_.f.updateGuidePersistentAndVisibleFromBinding=function(y){this.guidePersistentAndVisible=y.detail.value};
_.f.updateMiniGuideVisibleFromBinding=function(y){this.miniGuideVisible=y.detail.value};
_.f.onThemeSelected=function(y,W){var c=_.Uc(),Z=y||W?y:_.Et(),G=(Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.IZO(_.c7(window.location.href));_.$A(0,165,y);_.$A(0,174,W);c.save();G&&_.GG(this.hostElement,"yt-dark-mode-toggled-action",[Z]);_.GG(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.f.getCurrentTheme=function(){return _.IW()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.NO()};
_.f.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.f.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.f.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.f.handleShowConsentPrimitive=function(y){var W=this,c,Z;return _.m(function(G){if(G.nextAddress==1){try{c=(Z=_.HF())==null?void 0:Z.getPlayerPromise()}catch(D){}return _.n(G,a9S(y,c),2)}_.GG(W.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.F2(G)})};
_.f.handleSelectActiveIdentityEndpointInternal=function(y){_.gM();y=_.g(y,_.DtV);if(y!=null&&y.supportedTokens){y=_.z(y.supportedTokens);for(var W=y.next();!W.done;W=y.next())W=W.value,W.accountSigninToken&&_.l0(W.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.f.handleUpdatePermissionRoleCommand=function(y){if(y=_.g(y,_.mYZ)){var W;this.hasDelegation=!((W=_.g(y.renderer,_.Yx2))==null||!W.status)}};
_.f.registerViewTransitionTasks=function(){var y=this,W=_.U().resolve(_.xN(_.iR3));if(W){var c,Z=(c=this.guide)==null?void 0:c.querySelector("#scrim"),G,D=(G=this.guide)==null?void 0:G.querySelector("#contentContainer");Z&&D&&(c={beforeTransition:function(){var Y;(Y=y.guide)!=null&&Y.persistent||(Z.style.viewTransitionName="app-drawer-scrim",D.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var Y;(Y=y.guide)!=null&&Y.persistent||(Z.style.viewTransitionName="",D.style.viewTransitionName="")}},Wr(W,"slide",c),Wr(W,"zoom",c))}};
_.dJ.Object.defineProperties(d$6.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.O("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.dJ.Object.defineProperties(d$6,{template:{configurable:!0,enumerable:!0,get:function(){if(U$D===void 0){var y=document.createElement("template");_.E(y,'\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');
y.content.insertBefore(_.q().content.cloneNode(!0),y.content.firstChild);U$D=y}y=U$D;return y}}});
var tC=d$6;tC.prototype.onOpenHotkeyDialog=tC.prototype.onOpenHotkeyDialog;tC.prototype.onYtMastheadHeightChanged=tC.prototype.onYtMastheadHeightChanged;tC.prototype.setFullscreen=tC.prototype.setFullscreen;tC.prototype.onAddElementToApp=tC.prototype.onAddElementToApp;tC.prototype.onDrawerIronSelect=tC.prototype.onDrawerIronSelect;tC.prototype.onGuideOpenButtonHover=tC.prototype.onGuideOpenButtonHover;tC.prototype.onRequestPanelModeChange=tC.prototype.onRequestPanelModeChange;
tC.prototype.onPageDataUpdated=tC.prototype.onPageDataUpdated;tC.prototype.onPageChanged=tC.prototype.onPageChanged;tC.prototype.onSetTheaterModeEnabled=tC.prototype.onSetTheaterModeEnabled;tC.prototype.updateMastheadData=tC.prototype.updateMastheadData;tC.prototype.onYtPageManagerAttached=tC.prototype.onYtPageManagerAttached;tC.prototype.observeGuideVisibility=tC.prototype.observeGuideVisibility;tC.prototype.guideIsVisibleButNotPersistentSelectorChanged=tC.prototype.guideIsVisibleButNotPersistentSelectorChanged;
tC.prototype.isInlinePreviewEnabledChanged=tC.prototype.isInlinePreviewEnabledChanged;tC.prototype.dispatchFrostedGlassMode=tC.prototype.dispatchFrostedGlassMode;_.x([_.C(_.$s),_.e("design:type",Object)],tC.prototype,"ytdReduxBehavior",void 0);_.x([_.C(_.zQ.YtEventForwardingBehavior),_.e("design:type",Object)],tC.prototype,"ytEventForwardingBehavior",void 0);_.x([_.C(_.e_.YtOpenPopupBehavior),_.e("design:type",Object)],tC.prototype,"ytOpenPopupBehavior",void 0);
_.x([_.C(_.Hj.YtActionHandlerBehavior),_.e("design:type",Object)],tC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.C({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Q8.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.O("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var y;((y=this.actionRouterNode.hostElement)!=null?y:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var y;((y=this.actionRouterNode.hostElement)!=null?y:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(y){this.actionRouter_.handleAction(y.detail)}}),
_.e("design:type",Object)],tC.prototype,"ytActionRouterBehavior",void 0);_.x([_.C(iuf.YtdAppBehavior),_.e("design:type",Object)],tC.prototype,"ytdAppBehavior",void 0);_.x([_.C(_.wU.YtEndpointBehavior),_.e("design:type",Object)],tC.prototype,"ytEndpointBehavior",void 0);_.x([_.C(R3f.YtEndpointHandlerWithYpcBehavior),_.e("design:type",Object)],tC.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.x([_.C($$Q.YtLogYpcFlowCommandsBehavior),_.e("design:type",Object)],tC.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.x([_.C(_.k.YtRendererBehavior),_.e("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);_.x([_.C(_.KA.YtComponentBehavior),_.e("design:type",Object)],tC.prototype,"ytComponentBehavior",void 0);_.x([_.L({selector:_.U49}),_.e("design:type",Object)],tC.prototype,"tabGesturesIsActive",void 0);_.x([_.L(),_.e("design:type",Boolean)],tC.prototype,"renderGuide",void 0);
_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"guidePersistentAndVisible",void 0);_.x([_.L({selector:_.FyZ}),_.e("design:type",Boolean)],tC.prototype,"guideIsVisibleButNotPersistent",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"standalone",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"miniGuideVisible",void 0);
_.x([_.L({selector:_.JIO}),_.e("design:type",Number)],tC.prototype,"miniplayerPlaybackState",void 0);_.x([_.L({selector:_.Eq,reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"miniplayerIsActive",void 0);_.x([_.L({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.e("design:type",Boolean)],tC.prototype,"isInlinePreviewEnabled",void 0);_.x([_.L(),_.e("design:type",Boolean)],tC.prototype,"isInlinePreviewDisabled",void 0);
_.x([_.L({reflectToAttribute:!0,value:function(){return _.I8("START_IN_FULL_WINDOW_MODE")}}),
_.e("design:type",Boolean)],tC.prototype,"mastheadHidden",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"playerFullscreen",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tC.prototype,"deprecateFullerscreenUi",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"fullscreen",void 0);_.x([_.L({value:!1,reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"hideHeaderShadow",void 0);
_.x([_.L({value:{GUIDE_ALT_LABEL:_.bN("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.e("design:type",Object)],tC.prototype,"menuStrings",void 0);_.x([_.L({computed:"computeTopbarData(data)"}),_.e("design:type",Object)],tC.prototype,"topbarData",void 0);_.x([_.L({selector:_.NW}),_.e("design:type",Boolean)],tC.prototype,"isWatchPage",void 0);_.x([_.L({selector:_.IEt,reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"isShortsPage",void 0);
_.x([_.L({selector:function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.e("design:type",Boolean)],tC.prototype,"isMiniAppPage",void 0);_.x([_.L({selector:function(y){return y.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.e("design:type",Boolean)],tC.prototype,"isBrowsePage",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Boolean)],tC.prototype,"scrolling",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tC.prototype,"hasDelegation",void 0);_.x([_.L({reflectToAttribute:!0,value:!1}),_.e("design:type",Boolean)],tC.prototype,"guideScrolledByTouch",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tC.prototype,"darkerDarkTheme",void 0);
_.x([_.L(),_.e("design:type",Object)],tC.prototype,"isFrostedGlassInitialized",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tC.prototype,"frostedGlassExp",void 0);_.x([_.L({selector:function(y){return y.ui.chipBarIsSticky}}),
_.e("design:type",Boolean)],tC.prototype,"chipBarIsSticky",void 0);_.x([_.L({computed:"computeIsHomePage(isBrowsePage, data)"}),_.e("design:type",Boolean)],tC.prototype,"isHomePage",void 0);_.x([_.L({reflectToAttribute:!0}),_.e("design:type",Object)],tC.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.x([_.L(),_.e("design:type",Object)],tC.prototype,"ephemeralActionsEnabled",void 0);_.x([_.B6("guide"),_.e("design:type",Object)],tC.prototype,"guide",void 0);
_.x([_.B6("guide-service"),_.e("design:type",QAD)],tC.prototype,"guideService",void 0);_.x([_.B6("guide-inner-content"),_.e("design:type",HTMLDivElement)],tC.prototype,"guideInnerContent",void 0);_.x([_.L({selector:_.CAO}),_.e("design:type",String)],tC.prototype,"frostedGlassMode",void 0);
_.x([_.H("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"dispatchFrostedGlassMode",null);_.x([_.L({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.e("design:type",Object)],tC.prototype,"isFrostedGlassDisabled",void 0);
_.x([_.A("isHomePage","chipBarIsSticky"),_.e("design:type",Boolean),_.e("design:paramtypes",[])],tC.prototype,"applyFrostedGlassToChipBar",null);_.x([_.L(),_.e("design:type",Object)],tC.prototype,"isChannelOrPlaylistPage",void 0);_.x([_.Gs("isInlinePreviewEnabled"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"isInlinePreviewEnabledChanged",null);
_.x([_.H("guideIsVisibleButNotPersistent"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.x([_.H("guidePersistentAndVisible","miniGuideVisible"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"observeGuideVisibility",null);
_.x([_.B("attached"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],tC.prototype,"onYtPageManagerAttached",null);_.x([_.H("data"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype",Promise)],tC.prototype,"updateMastheadData",null);_.x([_.B("yt-set-theater-mode-enabled"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],tC.prototype,"onSetTheaterModeEnabled",null);
_.x([_.B("yt-page-type-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],tC.prototype,"onPageChanged",null);_.x([_.B("yt-page-data-updated"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"onPageDataUpdated",null);_.x([_.B("yt-request-panel-mode-change"),_.e("design:type",Function),_.e("design:paramtypes",[Event,Object]),_.e("design:returntype")],tC.prototype,"onRequestPanelModeChange",null);
_.x([_.B("yt-guide-hover"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"onGuideOpenButtonHover",null);_.x([_.B("app-drawer-transitioned"),_.e("design:type",Function),_.e("design:paramtypes",[Event]),_.e("design:returntype")],tC.prototype,"onDrawerIronSelect",null);_.x([_.B("yt-add-element-to-app"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent]),_.e("design:returntype")],tC.prototype,"onAddElementToApp",null);
_.x([_.B("yt-set-fullerscreen-styles"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"setFullscreen",null);_.x([_.B("yt-masthead-height-changed"),_.e("design:type",Function),_.e("design:paramtypes",[CustomEvent,Object]),_.e("design:returntype")],tC.prototype,"onYtMastheadHeightChanged",null);_.x([_.B("yt-open-hotkey-dialog"),_.e("design:type",Function),_.e("design:paramtypes",[]),_.e("design:returntype")],tC.prototype,"onOpenHotkeyDialog",null);
tC=_.x([_.d({is:"ytd-app"})],tC);_.It().processSignal("eor");
_.NQ();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
